deletePermissionPolicy method

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

Permanently deletes an IAM policy from the specified rule group.

You must be the owner of the rule group to perform this operation.

May throw WAFNonexistentItemException. May throw WAFInternalErrorException. May throw WAFInvalidParameterException.

Parameter resourceArn : The Amazon Resource Name (ARN) of the rule group from which you want to delete the policy.

You must be the owner of the rule group to perform this operation.

Implementation

Future<void> deletePermissionPolicy({
  required String resourceArn,
}) async {
  ArgumentError.checkNotNull(resourceArn, 'resourceArn');
  _s.validateStringLength(
    'resourceArn',
    resourceArn,
    20,
    2048,
    isRequired: true,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AWSWAF_20190729.DeletePermissionPolicy'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'ResourceArn': resourceArn,
    },
  );
}