Interface CfnRoute.HttpRouteProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnRoute.HttpRouteProperty.Jsii$Proxy
- Enclosing class:
CfnRoute
@Stability(Stable)
public static interface CfnRoute.HttpRouteProperty
extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.services.appmesh.*;
HttpRouteProperty httpRouteProperty = HttpRouteProperty.builder()
.action(HttpRouteActionProperty.builder()
.weightedTargets(List.of(WeightedTargetProperty.builder()
.virtualNode("virtualNode")
.weight(123)
// the properties below are optional
.port(123)
.build()))
.build())
.match(HttpRouteMatchProperty.builder()
.headers(List.of(HttpRouteHeaderProperty.builder()
.name("name")
// the properties below are optional
.invert(false)
.match(HeaderMatchMethodProperty.builder()
.exact("exact")
.prefix("prefix")
.range(MatchRangeProperty.builder()
.end(123)
.start(123)
.build())
.regex("regex")
.suffix("suffix")
.build())
.build()))
.method("method")
.path(HttpPathMatchProperty.builder()
.exact("exact")
.regex("regex")
.build())
.port(123)
.prefix("prefix")
.queryParameters(List.of(QueryParameterProperty.builder()
.name("name")
// the properties below are optional
.match(HttpQueryParameterMatchProperty.builder()
.exact("exact")
.build())
.build()))
.scheme("scheme")
.build())
// the properties below are optional
.retryPolicy(HttpRetryPolicyProperty.builder()
.maxRetries(123)
.perRetryTimeout(DurationProperty.builder()
.unit("unit")
.value(123)
.build())
// the properties below are optional
.httpRetryEvents(List.of("httpRetryEvents"))
.tcpRetryEvents(List.of("tcpRetryEvents"))
.build())
.timeout(HttpTimeoutProperty.builder()
.idle(DurationProperty.builder()
.unit("unit")
.value(123)
.build())
.perRequest(DurationProperty.builder()
.unit("unit")
.value(123)
.build())
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnRoute.HttpRoutePropertystatic final classAn implementation forCfnRoute.HttpRouteProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()An object that represents the action to take if a match is determined.getMatch()An object that represents the criteria for determining a request match.default ObjectAn object that represents a retry policy.default ObjectAn object that represents types of timeouts.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAction
An object that represents the action to take if a match is determined.Returns union: either
IResolvableorCfnRoute.HttpRouteActionProperty- See Also:
-
getMatch
An object that represents the criteria for determining a request match.Returns union: either
IResolvableorCfnRoute.HttpRouteMatchProperty- See Also:
-
getRetryPolicy
An object that represents a retry policy.Returns union: either
IResolvableorCfnRoute.HttpRetryPolicyProperty- See Also:
-
getTimeout
An object that represents types of timeouts.Returns union: either
IResolvableorCfnRoute.HttpTimeoutProperty- See Also:
-
builder
- Returns:
- a
CfnRoute.HttpRouteProperty.BuilderofCfnRoute.HttpRouteProperty
-