deleteResourcePolicy method

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

Deletes the specified resource policy.

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

Parameter resourceArn : The Amazon Resource Name (ARN) of the resource.

Implementation

Future<void> deleteResourcePolicy({
  required String resourceArn,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri: '/resourcepolicy/${Uri.encodeComponent(resourceArn)}',
    exceptionFnMap: _exceptionFns,
  );
}