getImageRecipePolicy method
Gets an image recipe policy.
May throw ServiceException. May throw ServiceUnavailableException. May throw InvalidRequestException. May throw ResourceNotFoundException. May throw ForbiddenException. May throw CallRateLimitExceededException.
Parameter imageRecipeArn
:
The Amazon Resource Name (ARN) of the image recipe whose policy you want
to retrieve.
Implementation
Future<GetImageRecipePolicyResponse> getImageRecipePolicy({
required String imageRecipeArn,
}) async {
ArgumentError.checkNotNull(imageRecipeArn, 'imageRecipeArn');
final $query = <String, List<String>>{
'imageRecipeArn': [imageRecipeArn],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/GetImageRecipePolicy',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return GetImageRecipePolicyResponse.fromJson(response);
}