getResourcePolicy method

Future<GetResourcePolicyResponse> getResourcePolicy({
  1. required String resourceArn,
})

Gets a resource-based policy of an entity that is identified by its resource ARN.

May throw AccessDeniedException. May throw InternalServiceException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter resourceArn : The Amazon Resource Name (ARN) of the entity resource that is associated with the resource policy.

Implementation

Future<GetResourcePolicyResponse> getResourcePolicy({
  required String resourceArn,
}) async {
  final $query = <String, List<String>>{
    'resourceArn': [resourceArn],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/GetResourcePolicy',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return GetResourcePolicyResponse.fromJson(response);
}