getResourcePolicy method

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

Gets the resource-based permission policy that is set for the given environment.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter identifier : The Amazon Resource Name (ARN) of the resource associated with the policy.

Implementation

Future<GetResourcePolicyResponse> getResourcePolicy({
  required String identifier,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/resourcepolicy/${Uri.encodeComponent(identifier)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetResourcePolicyResponse.fromJson(response);
}