Class CfnRoute.GrpcRouteMatchProperty
An object that represents the criteria for determining a request match.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.AppMesh
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnRoute.GrpcRouteMatchProperty : CfnRoute.IGrpcRouteMatchProperty
Syntax (vb)
Public Class CfnRoute.GrpcRouteMatchProperty Implements CfnRoute.IGrpcRouteMatchProperty
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 grpcRouteMatchProperty = 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"
};
Synopsis
Constructors
| GrpcRouteMatchProperty() | An object that represents the criteria for determining a request match. |
Properties
| Metadata | An object that represents the data to match from the request. |
| MethodName | The method name to match from the request. |
| Port | The port number to match on. |
| ServiceName | The fully qualified domain name for the service to match from the request. |
Constructors
GrpcRouteMatchProperty()
An object that represents the criteria for determining a request match.
public GrpcRouteMatchProperty()
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 grpcRouteMatchProperty = 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"
};
Properties
Metadata
An object that represents the data to match from the request.
public object? Metadata { get; set; }
Property Value
Remarks
MethodName
The method name to match from the request.
public string? MethodName { get; set; }
Property Value
Remarks
If you specify a name, you must also specify a serviceName .
Port
The port number to match on.
public double? Port { get; set; }
Property Value
Remarks
ServiceName
The fully qualified domain name for the service to match from the request.
public string? ServiceName { get; set; }