Show / Hide Table of Contents

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 CfnRoute.IHttpRouteProperty
Syntax (vb)
Public Interface CfnRoute.IHttpRouteProperty
Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-httproute.html

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

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-httproute.html#cfn-appmesh-route-httproute-action

Match

An object that represents the criteria for determining a request match.

object Match { get; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-httproute.html#cfn-appmesh-route-httproute-match

RetryPolicy

An object that represents a retry policy.

object? RetryPolicy { get; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-httproute.html#cfn-appmesh-route-httproute-retrypolicy

Timeout

An object that represents types of timeouts.

object? Timeout { get; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-route-httproute.html#cfn-appmesh-route-httproute-timeout

Back to top Generated by DocFX