Interface IGatewayRouteSpecConfig
All Properties for GatewayRoute Specs.
Namespace: Amazon.CDK.AWS.AppMesh
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IGatewayRouteSpecConfig
Syntax (vb)
Public Interface IGatewayRouteSpecConfig
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 gatewayRouteSpecConfig = new GatewayRouteSpecConfig {
GrpcSpecConfig = new GrpcGatewayRouteProperty {
Action = new GrpcGatewayRouteActionProperty {
Target = new GatewayRouteTargetProperty {
VirtualService = new GatewayRouteVirtualServiceProperty {
VirtualServiceName = "virtualServiceName"
},
// the properties below are optional
Port = 123
},
// the properties below are optional
Rewrite = new GrpcGatewayRouteRewriteProperty {
Hostname = new GatewayRouteHostnameRewriteProperty {
DefaultTargetHostname = "defaultTargetHostname"
}
}
},
Match = 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"
}
},
Http2SpecConfig = new HttpGatewayRouteProperty {
Action = new HttpGatewayRouteActionProperty {
Target = new GatewayRouteTargetProperty {
VirtualService = new GatewayRouteVirtualServiceProperty {
VirtualServiceName = "virtualServiceName"
},
// the properties below are optional
Port = 123
},
// the properties below are optional
Rewrite = new HttpGatewayRouteRewriteProperty {
Hostname = new GatewayRouteHostnameRewriteProperty {
DefaultTargetHostname = "defaultTargetHostname"
},
Path = new HttpGatewayRoutePathRewriteProperty {
Exact = "exact"
},
Prefix = new HttpGatewayRoutePrefixRewriteProperty {
DefaultPrefix = "defaultPrefix",
Value = "value"
}
}
},
Match = new HttpGatewayRouteMatchProperty {
Headers = new [] { new HttpGatewayRouteHeaderProperty {
Name = "name",
// the properties below are optional
Invert = false,
Match = new HttpGatewayRouteHeaderMatchProperty {
Exact = "exact",
Prefix = "prefix",
Range = new GatewayRouteRangeMatchProperty {
End = 123,
Start = 123
},
Regex = "regex",
Suffix = "suffix"
}
} },
Hostname = new GatewayRouteHostnameMatchProperty {
Exact = "exact",
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"
}
} }
}
},
HttpSpecConfig = new HttpGatewayRouteProperty {
Action = new HttpGatewayRouteActionProperty {
Target = new GatewayRouteTargetProperty {
VirtualService = new GatewayRouteVirtualServiceProperty {
VirtualServiceName = "virtualServiceName"
},
// the properties below are optional
Port = 123
},
// the properties below are optional
Rewrite = new HttpGatewayRouteRewriteProperty {
Hostname = new GatewayRouteHostnameRewriteProperty {
DefaultTargetHostname = "defaultTargetHostname"
},
Path = new HttpGatewayRoutePathRewriteProperty {
Exact = "exact"
},
Prefix = new HttpGatewayRoutePrefixRewriteProperty {
DefaultPrefix = "defaultPrefix",
Value = "value"
}
}
},
Match = new HttpGatewayRouteMatchProperty {
Headers = new [] { new HttpGatewayRouteHeaderProperty {
Name = "name",
// the properties below are optional
Invert = false,
Match = new HttpGatewayRouteHeaderMatchProperty {
Exact = "exact",
Prefix = "prefix",
Range = new GatewayRouteRangeMatchProperty {
End = 123,
Start = 123
},
Regex = "regex",
Suffix = "suffix"
}
} },
Hostname = new GatewayRouteHostnameMatchProperty {
Exact = "exact",
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"
}
} }
}
},
Priority = 123
};
Synopsis
Properties
GrpcSpecConfig | The spec for a grpc gateway route. |
Http2SpecConfig | The spec for an http2 gateway route. |
HttpSpecConfig | The spec for an http gateway route. |
Priority | The priority for the gateway route. |
Properties
GrpcSpecConfig
The spec for a grpc gateway route.
virtual CfnGatewayRoute.IGrpcGatewayRouteProperty GrpcSpecConfig { get; }
Property Value
CfnGatewayRoute.IGrpcGatewayRouteProperty
Remarks
Default: - no grpc spec
Http2SpecConfig
The spec for an http2 gateway route.
virtual CfnGatewayRoute.IHttpGatewayRouteProperty Http2SpecConfig { get; }
Property Value
CfnGatewayRoute.IHttpGatewayRouteProperty
Remarks
Default: - no http2 spec
HttpSpecConfig
The spec for an http gateway route.
virtual CfnGatewayRoute.IHttpGatewayRouteProperty HttpSpecConfig { get; }
Property Value
CfnGatewayRoute.IHttpGatewayRouteProperty
Remarks
Default: - no http spec
Priority
The priority for the gateway route.
virtual Nullable<double> Priority { get; }
Property Value
System.Nullable<System.Double>
Remarks
When a Virtual Gateway has multiple gateway routes, gateway route match is performed in the order of specified value, where 0 is the highest priority, and first matched gateway route is selected.
Default: - no particular priority