deleteResourcePolicy method
Deletes the resource policy attached to the CloudFront resource.
May throw AccessDenied.
May throw EntityNotFound.
May throw IllegalDelete.
May throw InvalidArgument.
May throw PreconditionFailed.
May throw UnsupportedOperation.
Parameter resourceArn :
The Amazon Resource Name (ARN) of the CloudFront resource for which the
resource policy should be deleted.
Implementation
Future<void> deleteResourcePolicy({
required String resourceArn,
}) async {
await _protocol.send(
method: 'POST',
requestUri: '/2020-05-31/delete-resource-policy',
payload: DeleteResourcePolicyRequest(resourceArn: resourceArn)
.toXml('DeleteResourcePolicyRequest'),
exceptionFnMap: _exceptionFns,
);
}