deleteResourcePolicy method
Deletes the resource policy that Resource Access Manager uses to share your Incident Manager resource.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter policyId :
The ID of the resource policy you're deleting.
Parameter resourceArn :
The Amazon Resource Name (ARN) of the resource you're deleting the policy
from.
Implementation
Future<void> deleteResourcePolicy({
required String policyId,
required String resourceArn,
}) async {
final $payload = <String, dynamic>{
'policyId': policyId,
'resourceArn': resourceArn,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/deleteResourcePolicy',
exceptionFnMap: _exceptionFns,
);
}