Class CfnGatewayRoute.GrpcGatewayRouteMatchProperty
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 CfnGatewayRoute.GrpcGatewayRouteMatchProperty : CfnGatewayRoute.IGrpcGatewayRouteMatchProperty
Syntax (vb)
Public Class CfnGatewayRoute.GrpcGatewayRouteMatchProperty Implements CfnGatewayRoute.IGrpcGatewayRouteMatchProperty
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 grpcGatewayRouteMatchProperty = new GrpcGatewayRouteMatchProperty {
Hostname = new GatewayRouteHostnameMatchProperty {
Exact = "exact",
Suffix = "suffix"
},
Metadata = new [] { new GrpcGatewayRouteMetadataProperty {
Name = "name",
// the properties below are optional
Invert = false,
Match = new GatewayRouteMetadataMatchProperty {
Exact = "exact",
Prefix = "prefix",
Range = new GatewayRouteRangeMatchProperty {
End = 123,
Start = 123
},
Regex = "regex",
Suffix = "suffix"
}
} },
Port = 123,
ServiceName = "serviceName"
};
Synopsis
Constructors
| GrpcGatewayRouteMatchProperty() | An object that represents the criteria for determining a request match. |
Properties
| Hostname | The gateway route host name to be matched on. |
| Metadata | The gateway route metadata to be matched on. |
| Port | The gateway route port to be matched on. |
| ServiceName | The fully qualified domain name for the service to match from the request. |
Constructors
GrpcGatewayRouteMatchProperty()
An object that represents the criteria for determining a request match.
public GrpcGatewayRouteMatchProperty()
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 grpcGatewayRouteMatchProperty = new GrpcGatewayRouteMatchProperty {
Hostname = new GatewayRouteHostnameMatchProperty {
Exact = "exact",
Suffix = "suffix"
},
Metadata = new [] { new GrpcGatewayRouteMetadataProperty {
Name = "name",
// the properties below are optional
Invert = false,
Match = new GatewayRouteMetadataMatchProperty {
Exact = "exact",
Prefix = "prefix",
Range = new GatewayRouteRangeMatchProperty {
End = 123,
Start = 123
},
Regex = "regex",
Suffix = "suffix"
}
} },
Port = 123,
ServiceName = "serviceName"
};
Properties
Hostname
The gateway route host name to be matched on.
public object? Hostname { get; set; }
Property Value
Remarks
Metadata
The gateway route metadata to be matched on.
public object? Metadata { get; set; }
Property Value
Remarks
Port
The gateway route port to be matched 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; }