apigateway:DeleteRoutingRule

Write

apigateway:DeleteRoutingRule is a Write access-level action in the apigateway service. Grants permission to delete a routing rule

Resource types

ARNs that apigateway:DeleteRoutingRule can be scoped to in an IAM policy.

arn:${Partition}:apigateway:${Region}:${Account}:/domainnames/${DomainName}/routingrules/${RoutingRuleId}
RoutingRule

Condition keys

Keys you can use in the Condition block of a policy that grants apigateway:DeleteRoutingRule.

apigateway:Resource/ConditionBasePaths ArrayOfString

Filters access by base paths defined on the condition of the existing routing rule. Available during the UpdateRoutingRule and DeleteRoutingRule operations

apigateway:Resource/Priority Numeric

Filters access by priority of the existing routing rule. Available during the UpdateRoutingRule and DeleteRoutingRule operations

aws:ResourceTag/${TagKey} String

Filters access by tag key-value pairs attached to the resource

Example IAM policy

A minimal policy that allows apigateway:DeleteRoutingRule. Replace "Resource": "*" with a specific ARN to follow least privilege.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowApigatewayDeleteRoutingRule",
      "Effect": "Allow",
      "Action": "apigateway:DeleteRoutingRule",
      "Resource": "*"
    }
  ]
}

Related actions in apigateway

View all apigateway actions →