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