apigateway:CreateRoutingRule

Write

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

Resource types

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

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

Condition keys

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

apigateway:Request/ConditionBasePaths ArrayOfString

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

apigateway:Request/Priority Numeric

Filters access by priority of the routing rule. Available during the CreateRoutingRule and UpdateRoutingRule 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:CreateRoutingRule. Replace "Resource": "*" with a specific ARN to follow least privilege.

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

Related actions in apigateway

View all apigateway actions →