Interface CfnRoute.IHttpRouteProperty
An object that represents an HTTP or HTTP/2 route type.
Namespace: Amazon.CDK.AWS.AppMesh
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IHttpRouteProperty
Syntax (vb)
Public Interface IHttpRouteProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AppMesh;
var httpRouteProperty = new HttpRouteProperty {
Action = new HttpRouteActionProperty {
WeightedTargets = new [] { new WeightedTargetProperty {
VirtualNode = "virtualNode",
Weight = 123,
// the properties below are optional
Port = 123
} }
},
Match = new HttpRouteMatchProperty {
Headers = new [] { new HttpRouteHeaderProperty {
Name = "name",
// the properties below are optional
Invert = false,
Match = new HeaderMatchMethodProperty {
Exact = "exact",
Prefix = "prefix",
Range = new MatchRangeProperty {
End = 123,
Start = 123
},
Regex = "regex",
Suffix = "suffix"
}
} },
Method = "method",
Path = new HttpPathMatchProperty {
Exact = "exact",
Regex = "regex"
},
Port = 123,
Prefix = "prefix",
QueryParameters = new [] { new QueryParameterProperty {
Name = "name",
// the properties below are optional
Match = new HttpQueryParameterMatchProperty {
Exact = "exact"
}
} },
Scheme = "scheme"
},
// the properties below are optional
RetryPolicy = new HttpRetryPolicyProperty {
MaxRetries = 123,
PerRetryTimeout = new DurationProperty {
Unit = "unit",
Value = 123
},
// the properties below are optional
HttpRetryEvents = new [] { "httpRetryEvents" },
TcpRetryEvents = new [] { "tcpRetryEvents" }
},
Timeout = new HttpTimeoutProperty {
Idle = new DurationProperty {
Unit = "unit",
Value = 123
},
PerRequest = new DurationProperty {
Unit = "unit",
Value = 123
}
}
};
Synopsis
Properties
Action | An object that represents the action to take if a match is determined. |
Match | An object that represents the criteria for determining a request match. |
RetryPolicy | An object that represents a retry policy. |
Timeout | An object that represents types of timeouts. |
Properties
Action
An object that represents the action to take if a match is determined.
object Action { get; }
Property Value
System.Object
Remarks
Match
An object that represents the criteria for determining a request match.
object Match { get; }
Property Value
System.Object
Remarks
RetryPolicy
An object that represents a retry policy.
virtual object RetryPolicy { get; }
Property Value
System.Object
Remarks
Timeout
An object that represents types of timeouts.
virtual object Timeout { get; }
Property Value
System.Object