interface HttpRouteProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.AppMesh.Mixins.CfnRoutePropsMixin.HttpRouteProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsappmesh/mixins#CfnRoutePropsMixin_HttpRouteProperty |
Java | software.amazon.awscdk.mixins.preview.services.appmesh.mixins.CfnRoutePropsMixin.HttpRouteProperty |
Python | aws_cdk.mixins_preview.aws_appmesh.mixins.CfnRoutePropsMixin.HttpRouteProperty |
TypeScript | @aws-cdk/mixins-preview » aws_appmesh » mixins » CfnRoutePropsMixin » HttpRouteProperty |
An object that represents an HTTP or HTTP/2 route type.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as appmesh_mixins } from '@aws-cdk/mixins-preview/aws-appmesh';
const httpRouteProperty: appmesh_mixins.CfnRoutePropsMixin.HttpRouteProperty = {
action: {
weightedTargets: [{
port: 123,
virtualNode: 'virtualNode',
weight: 123,
}],
},
match: {
headers: [{
invert: false,
match: {
exact: 'exact',
prefix: 'prefix',
range: {
end: 123,
start: 123,
},
regex: 'regex',
suffix: 'suffix',
},
name: 'name',
}],
method: 'method',
path: {
exact: 'exact',
regex: 'regex',
},
port: 123,
prefix: 'prefix',
queryParameters: [{
match: {
exact: 'exact',
},
name: 'name',
}],
scheme: 'scheme',
},
retryPolicy: {
httpRetryEvents: ['httpRetryEvents'],
maxRetries: 123,
perRetryTimeout: {
unit: 'unit',
value: 123,
},
tcpRetryEvents: ['tcpRetryEvents'],
},
timeout: {
idle: {
unit: 'unit',
value: 123,
},
perRequest: {
unit: 'unit',
value: 123,
},
},
};
Properties
| Name | Type | Description |
|---|---|---|
| action? | IResolvable | Http | An object that represents the action to take if a match is determined. |
| match? | IResolvable | Http | An object that represents the criteria for determining a request match. |
| retry | IResolvable | Http | An object that represents a retry policy. |
| timeout? | IResolvable | Http | An object that represents types of timeouts. |
action?
Type:
IResolvable | Http
(optional)
An object that represents the action to take if a match is determined.
match?
Type:
IResolvable | Http
(optional)
An object that represents the criteria for determining a request match.
retryPolicy?
Type:
IResolvable | Http
(optional)
An object that represents a retry policy.
timeout?
Type:
IResolvable | Http
(optional)
An object that represents types of timeouts.

.NET
Go
Java
Python
TypeScript