getPolicy method
Returns the resource-based policy.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter arn :
The Amazon Resource Name (ARN) of the resource for which the policy need
to be returned.
Implementation
Future<GetPolicyOutput> getPolicy({
required String arn,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/policies/${Uri.encodeComponent(arn)}',
exceptionFnMap: _exceptionFns,
);
return GetPolicyOutput.fromJson(response);
}