Interface CfnRoute.IGrpcRouteProperty
An object that represents a gRPC route type.
Namespace: Amazon.CDK.AWS.AppMesh
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IGrpcRouteProperty
Syntax (vb)
Public Interface IGrpcRouteProperty
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 grpcRouteProperty = new GrpcRouteProperty {
Action = new GrpcRouteActionProperty {
WeightedTargets = new [] { new WeightedTargetProperty {
VirtualNode = "virtualNode",
Weight = 123,
// the properties below are optional
Port = 123
} }
},
Match = new GrpcRouteMatchProperty {
Metadata = new [] { new GrpcRouteMetadataProperty {
Name = "name",
// the properties below are optional
Invert = false,
Match = new GrpcRouteMetadataMatchMethodProperty {
Exact = "exact",
Prefix = "prefix",
Range = new MatchRangeProperty {
End = 123,
Start = 123
},
Regex = "regex",
Suffix = "suffix"
}
} },
MethodName = "methodName",
Port = 123,
ServiceName = "serviceName"
},
// the properties below are optional
RetryPolicy = new GrpcRetryPolicyProperty {
MaxRetries = 123,
PerRetryTimeout = new DurationProperty {
Unit = "unit",
Value = 123
},
// the properties below are optional
GrpcRetryEvents = new [] { "grpcRetryEvents" },
HttpRetryEvents = new [] { "httpRetryEvents" },
TcpRetryEvents = new [] { "tcpRetryEvents" }
},
Timeout = new GrpcTimeoutProperty {
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