We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.29.0 published on Thursday, Jun 5, 2025 by Pulumi
aws-native.apigatewayv2.getRoutingRule
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.29.0 published on Thursday, Jun 5, 2025 by Pulumi
Schema for AWS::ApiGatewayV2::RoutingRule
Using getRoutingRule
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getRoutingRule(args: GetRoutingRuleArgs, opts?: InvokeOptions): Promise<GetRoutingRuleResult>
function getRoutingRuleOutput(args: GetRoutingRuleOutputArgs, opts?: InvokeOptions): Output<GetRoutingRuleResult>
def get_routing_rule(routing_rule_arn: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetRoutingRuleResult
def get_routing_rule_output(routing_rule_arn: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRoutingRuleResult]
func LookupRoutingRule(ctx *Context, args *LookupRoutingRuleArgs, opts ...InvokeOption) (*LookupRoutingRuleResult, error)
func LookupRoutingRuleOutput(ctx *Context, args *LookupRoutingRuleOutputArgs, opts ...InvokeOption) LookupRoutingRuleResultOutput
> Note: This function is named LookupRoutingRule
in the Go SDK.
public static class GetRoutingRule
{
public static Task<GetRoutingRuleResult> InvokeAsync(GetRoutingRuleArgs args, InvokeOptions? opts = null)
public static Output<GetRoutingRuleResult> Invoke(GetRoutingRuleInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetRoutingRuleResult> getRoutingRule(GetRoutingRuleArgs args, InvokeOptions options)
public static Output<GetRoutingRuleResult> getRoutingRule(GetRoutingRuleArgs args, InvokeOptions options)
fn::invoke:
function: aws-native:apigatewayv2:getRoutingRule
arguments:
# arguments dictionary
The following arguments are supported:
- Routing
Rule stringArn - Amazon Resource Name (ARN) of the resource.
- Routing
Rule stringArn - Amazon Resource Name (ARN) of the resource.
- routing
Rule StringArn - Amazon Resource Name (ARN) of the resource.
- routing
Rule stringArn - Amazon Resource Name (ARN) of the resource.
- routing_
rule_ strarn - Amazon Resource Name (ARN) of the resource.
- routing
Rule StringArn - Amazon Resource Name (ARN) of the resource.
getRoutingRule Result
The following output properties are available:
- Actions
List<Pulumi.
Aws Native. Api Gateway V2. Outputs. Routing Rule Action> - The resulting action based on matching a routing rules condition. Only InvokeApi is supported.
- Conditions
List<Pulumi.
Aws Native. Api Gateway V2. Outputs. Routing Rule Condition> - The conditions of the routing rule.
- Priority int
- The order in which API Gateway evaluates a rule. Priority is evaluated from the lowest value to the highest value. Rules can't have the same priority. Priority values 1-1,000,000 are supported.
- Routing
Rule stringArn - Amazon Resource Name (ARN) of the resource.
- Routing
Rule stringId - RoutingRule Id generated by service
- Actions
[]Routing
Rule Action - The resulting action based on matching a routing rules condition. Only InvokeApi is supported.
- Conditions
[]Routing
Rule Condition - The conditions of the routing rule.
- Priority int
- The order in which API Gateway evaluates a rule. Priority is evaluated from the lowest value to the highest value. Rules can't have the same priority. Priority values 1-1,000,000 are supported.
- Routing
Rule stringArn - Amazon Resource Name (ARN) of the resource.
- Routing
Rule stringId - RoutingRule Id generated by service
- actions
List<Routing
Rule Action> - The resulting action based on matching a routing rules condition. Only InvokeApi is supported.
- conditions
List<Routing
Rule Condition> - The conditions of the routing rule.
- priority Integer
- The order in which API Gateway evaluates a rule. Priority is evaluated from the lowest value to the highest value. Rules can't have the same priority. Priority values 1-1,000,000 are supported.
- routing
Rule StringArn - Amazon Resource Name (ARN) of the resource.
- routing
Rule StringId - RoutingRule Id generated by service
- actions
Routing
Rule Action[] - The resulting action based on matching a routing rules condition. Only InvokeApi is supported.
- conditions
Routing
Rule Condition[] - The conditions of the routing rule.
- priority number
- The order in which API Gateway evaluates a rule. Priority is evaluated from the lowest value to the highest value. Rules can't have the same priority. Priority values 1-1,000,000 are supported.
- routing
Rule stringArn - Amazon Resource Name (ARN) of the resource.
- routing
Rule stringId - RoutingRule Id generated by service
- actions
Sequence[Routing
Rule Action] - The resulting action based on matching a routing rules condition. Only InvokeApi is supported.
- conditions
Sequence[Routing
Rule Condition] - The conditions of the routing rule.
- priority int
- The order in which API Gateway evaluates a rule. Priority is evaluated from the lowest value to the highest value. Rules can't have the same priority. Priority values 1-1,000,000 are supported.
- routing_
rule_ strarn - Amazon Resource Name (ARN) of the resource.
- routing_
rule_ strid - RoutingRule Id generated by service
- actions List<Property Map>
- The resulting action based on matching a routing rules condition. Only InvokeApi is supported.
- conditions List<Property Map>
- The conditions of the routing rule.
- priority Number
- The order in which API Gateway evaluates a rule. Priority is evaluated from the lowest value to the highest value. Rules can't have the same priority. Priority values 1-1,000,000 are supported.
- routing
Rule StringArn - Amazon Resource Name (ARN) of the resource.
- routing
Rule StringId - RoutingRule Id generated by service
Supporting Types
RoutingRuleAction
- Invoke
Api Pulumi.Aws Native. Api Gateway V2. Inputs. Routing Rule Action Invoke Api - Represents an InvokeApi action.
- Invoke
Api RoutingRule Action Invoke Api - Represents an InvokeApi action.
- invoke
Api RoutingRule Action Invoke Api - Represents an InvokeApi action.
- invoke
Api RoutingRule Action Invoke Api - Represents an InvokeApi action.
- invoke_
api RoutingRule Action Invoke Api - Represents an InvokeApi action.
- invoke
Api Property Map - Represents an InvokeApi action.
RoutingRuleActionInvokeApi
- Api
Id string - The API identifier of the target API.
- Stage string
- The name of the target stage.
- Strip
Base boolPath - The strip base path setting. When true, API Gateway strips the incoming matched base path when forwarding the request to the target API.
- Api
Id string - The API identifier of the target API.
- Stage string
- The name of the target stage.
- Strip
Base boolPath - The strip base path setting. When true, API Gateway strips the incoming matched base path when forwarding the request to the target API.
- api
Id String - The API identifier of the target API.
- stage String
- The name of the target stage.
- strip
Base BooleanPath - The strip base path setting. When true, API Gateway strips the incoming matched base path when forwarding the request to the target API.
- api
Id string - The API identifier of the target API.
- stage string
- The name of the target stage.
- strip
Base booleanPath - The strip base path setting. When true, API Gateway strips the incoming matched base path when forwarding the request to the target API.
- api_
id str - The API identifier of the target API.
- stage str
- The name of the target stage.
- strip_
base_ boolpath - The strip base path setting. When true, API Gateway strips the incoming matched base path when forwarding the request to the target API.
- api
Id String - The API identifier of the target API.
- stage String
- The name of the target stage.
- strip
Base BooleanPath - The strip base path setting. When true, API Gateway strips the incoming matched base path when forwarding the request to the target API.
RoutingRuleCondition
- Match
Base Pulumi.Paths Aws Native. Api Gateway V2. Inputs. Routing Rule Match Base Paths - The base path to be matched.
- Match
Headers Pulumi.Aws Native. Api Gateway V2. Inputs. Routing Rule Match Headers - The headers to be matched.
- Match
Base RoutingPaths Rule Match Base Paths - The base path to be matched.
- Match
Headers RoutingRule Match Headers - The headers to be matched.
- match
Base RoutingPaths Rule Match Base Paths - The base path to be matched.
- match
Headers RoutingRule Match Headers - The headers to be matched.
- match
Base RoutingPaths Rule Match Base Paths - The base path to be matched.
- match
Headers RoutingRule Match Headers - The headers to be matched.
- match_
base_ Routingpaths Rule Match Base Paths - The base path to be matched.
- match_
headers RoutingRule Match Headers - The headers to be matched.
- match
Base Property MapPaths - The base path to be matched.
- match
Headers Property Map - The headers to be matched.
RoutingRuleMatchBasePaths
- Any
Of List<string> - The string of the case sensitive base path to be matched.
- Any
Of []string - The string of the case sensitive base path to be matched.
- any
Of List<String> - The string of the case sensitive base path to be matched.
- any
Of string[] - The string of the case sensitive base path to be matched.
- any_
of Sequence[str] - The string of the case sensitive base path to be matched.
- any
Of List<String> - The string of the case sensitive base path to be matched.
RoutingRuleMatchHeaderValue
- Header string
- The case insensitive header name to be matched. The header name must be less than 40 characters and the only allowed characters are
a-z
,A-Z
,0-9
, and the following special characters:*?-!#$%&'.^_
|~.` . - Value
Glob string - The case sensitive header glob value to be matched against entire header value. The header glob value must be less than 128 characters and the only allowed characters are
a-z
,A-Z
,0-9
, and the following special characters:*?-!#$%&'.^_
|~. Wildcard matching is supported for header glob values but must be for
prefix-match,
suffix-match, or
infix-match` .
- Header string
- The case insensitive header name to be matched. The header name must be less than 40 characters and the only allowed characters are
a-z
,A-Z
,0-9
, and the following special characters:*?-!#$%&'.^_
|~.` . - Value
Glob string - The case sensitive header glob value to be matched against entire header value. The header glob value must be less than 128 characters and the only allowed characters are
a-z
,A-Z
,0-9
, and the following special characters:*?-!#$%&'.^_
|~. Wildcard matching is supported for header glob values but must be for
prefix-match,
suffix-match, or
infix-match` .
- header String
- The case insensitive header name to be matched. The header name must be less than 40 characters and the only allowed characters are
a-z
,A-Z
,0-9
, and the following special characters:*?-!#$%&'.^_
|~.` . - value
Glob String - The case sensitive header glob value to be matched against entire header value. The header glob value must be less than 128 characters and the only allowed characters are
a-z
,A-Z
,0-9
, and the following special characters:*?-!#$%&'.^_
|~. Wildcard matching is supported for header glob values but must be for
prefix-match,
suffix-match, or
infix-match` .
- header string
- The case insensitive header name to be matched. The header name must be less than 40 characters and the only allowed characters are
a-z
,A-Z
,0-9
, and the following special characters:*?-!#$%&'.^_
|~.` . - value
Glob string - The case sensitive header glob value to be matched against entire header value. The header glob value must be less than 128 characters and the only allowed characters are
a-z
,A-Z
,0-9
, and the following special characters:*?-!#$%&'.^_
|~. Wildcard matching is supported for header glob values but must be for
prefix-match,
suffix-match, or
infix-match` .
- header str
- The case insensitive header name to be matched. The header name must be less than 40 characters and the only allowed characters are
a-z
,A-Z
,0-9
, and the following special characters:*?-!#$%&'.^_
|~.` . - value_
glob str - The case sensitive header glob value to be matched against entire header value. The header glob value must be less than 128 characters and the only allowed characters are
a-z
,A-Z
,0-9
, and the following special characters:*?-!#$%&'.^_
|~. Wildcard matching is supported for header glob values but must be for
prefix-match,
suffix-match, or
infix-match` .
- header String
- The case insensitive header name to be matched. The header name must be less than 40 characters and the only allowed characters are
a-z
,A-Z
,0-9
, and the following special characters:*?-!#$%&'.^_
|~.` . - value
Glob String - The case sensitive header glob value to be matched against entire header value. The header glob value must be less than 128 characters and the only allowed characters are
a-z
,A-Z
,0-9
, and the following special characters:*?-!#$%&'.^_
|~. Wildcard matching is supported for header glob values but must be for
prefix-match,
suffix-match, or
infix-match` .
RoutingRuleMatchHeaders
- Any
Of List<Pulumi.Aws Native. Api Gateway V2. Inputs. Routing Rule Match Header Value> - The header name and header value glob to be matched. The matchHeaders condition is matched if any of the header name and header value globs are matched.
- Any
Of []RoutingRule Match Header Value - The header name and header value glob to be matched. The matchHeaders condition is matched if any of the header name and header value globs are matched.
- any
Of List<RoutingRule Match Header Value> - The header name and header value glob to be matched. The matchHeaders condition is matched if any of the header name and header value globs are matched.
- any
Of RoutingRule Match Header Value[] - The header name and header value glob to be matched. The matchHeaders condition is matched if any of the header name and header value globs are matched.
- any_
of Sequence[RoutingRule Match Header Value] - The header name and header value glob to be matched. The matchHeaders condition is matched if any of the header name and header value globs are matched.
- any
Of List<Property Map> - The header name and header value glob to be matched. The matchHeaders condition is matched if any of the header name and header value globs are matched.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.29.0 published on Thursday, Jun 5, 2025 by Pulumi