Class GatewayRouteHostnameMatch
Used to generate host name matching methods.
Inheritance
Namespace: Amazon.CDK.AWS.AppMesh
Assembly: Amazon.CDK.AWS.AppMesh.dll
Syntax (csharp)
public abstract class GatewayRouteHostnameMatch : DeputyBase
Syntax (vb)
Public MustInherit Class GatewayRouteHostnameMatch
Inherits DeputyBase
Remarks
ExampleMetadata: infused
Examples
VirtualGateway gateway;
VirtualService virtualService;
gateway.AddGatewayRoute("gateway-route-grpc", new GatewayRouteBaseProps {
RouteSpec = GatewayRouteSpec.Grpc(new GrpcGatewayRouteSpecOptions {
RouteTarget = virtualService,
Match = new GrpcGatewayRouteMatch {
Hostname = GatewayRouteHostnameMatch.EndsWith(".example.com")
}
})
});
Synopsis
Constructors
GatewayRouteHostnameMatch() | |
GatewayRouteHostnameMatch(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
GatewayRouteHostnameMatch(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Methods
Bind(Construct) | Returns the gateway route host name match configuration. |
EndsWith(String) | The value of the host name with the given name must end with the specified characters. |
Exactly(String) | The value of the host name must match the specified value exactly. |
Constructors
GatewayRouteHostnameMatch()
protected GatewayRouteHostnameMatch()
GatewayRouteHostnameMatch(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected GatewayRouteHostnameMatch(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
GatewayRouteHostnameMatch(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected GatewayRouteHostnameMatch(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Methods
Bind(Construct)
Returns the gateway route host name match configuration.
public abstract IGatewayRouteHostnameMatchConfig Bind(Construct scope)
Parameters
- scope Construct
Returns
IGatewayRouteHostnameMatchConfig
EndsWith(String)
The value of the host name with the given name must end with the specified characters.
public static GatewayRouteHostnameMatch EndsWith(string suffix)
Parameters
- suffix System.String
The specified ending characters of the host name to match on.
Returns
Exactly(String)
The value of the host name must match the specified value exactly.
public static GatewayRouteHostnameMatch Exactly(string name)
Parameters
- name System.String
The exact host name to match on.
Returns