deleteResourcePolicy method

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

Deletes a resource policy for the specified resource. This revokes the access of the principals specified in the resource policy.

May throw AccessDeniedException. May throw ConflictException. May throw InternalServerException. May throw ThrottlingException. May throw ValidationException.

Parameter resourceArn : The ARN of the policy to delete.

Implementation

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