getMetadata method
Returns existing metadata for an Amplify app.
May throw InvalidParameterException.
May throw UnauthorizedException.
Parameter appId :
The unique ID of the Amplify app.
Parameter environmentName :
The name of the backend environment that is part of the Amplify app.
Implementation
Future<GetMetadataResponse> getMetadata({
required String appId,
required String environmentName,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/app/${Uri.encodeComponent(appId)}/environment/${Uri.encodeComponent(environmentName)}/metadata',
exceptionFnMap: _exceptionFns,
);
return GetMetadataResponse.fromJson(response);
}