interface ConditionProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Apigatewayv2.CfnRoutingRule.ConditionProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsapigatewayv2#CfnRoutingRule_ConditionProperty |
![]() | software.amazon.awscdk.services.apigatewayv2.CfnRoutingRule.ConditionProperty |
![]() | aws_cdk.aws_apigatewayv2.CfnRoutingRule.ConditionProperty |
![]() | aws-cdk-lib » aws_apigatewayv2 » CfnRoutingRule » ConditionProperty |
Represents a condition.
Conditions can contain up to two matchHeaders
conditions and one matchBasePaths
conditions. API Gateway evaluates header conditions and base path conditions together. You can only use AND between header and base path conditions.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_apigatewayv2 as apigatewayv2 } from 'aws-cdk-lib';
const conditionProperty: apigatewayv2.CfnRoutingRule.ConditionProperty = {
matchBasePaths: {
anyOf: ['anyOf'],
},
matchHeaders: {
anyOf: [{
header: 'header',
valueGlob: 'valueGlob',
}],
},
};
Properties
Name | Type | Description |
---|---|---|
match | IResolvable | Match | The base path to be matched. |
match | IResolvable | Match | The headers to be matched. |
matchBasePaths?
Type:
IResolvable
|
Match
(optional)
The base path to be matched.
matchHeaders?
Type:
IResolvable
|
Match
(optional)
The headers to be matched.