deleteResourcePolicy method

Future<void> deleteResourcePolicy({
  1. required String resourceArn,
})

Deletes a resource-based policy on 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<void> deleteResourcePolicy({
  required String resourceArn,
}) async {
  final $query = <String, List<String>>{
    'resourceArn': [resourceArn],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri: '/DeleteResourcePolicy',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
}