getResourcePolicy method
Returns information about a resource policy.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ThrottlingException.
May throw ValidationException.
Parameter resourceArn :
The ARN of the resource.
Implementation
Future<GetResourcePolicyResponse> getResourcePolicy({
required String resourceArn,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/resource-policy/${Uri.encodeComponent(resourceArn)}',
exceptionFnMap: _exceptionFns,
);
return GetResourcePolicyResponse.fromJson(response);
}