Class CfnGatewayRoute
Creates a gateway route.
Inherited Members
Namespace: Amazon.CDK.AWS.AppMesh
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnGatewayRoute : CfnResource, IInspectable, IGatewayRouteRef, IConstruct, IDependable, IEnvironmentAware, ITaggable
Syntax (vb)
Public Class CfnGatewayRoute Inherits CfnResource Implements IInspectable, IGatewayRouteRef, IConstruct, IDependable, IEnvironmentAware, ITaggable
Remarks
A gateway route is attached to a virtual gateway and routes traffic to an existing virtual service. If a route matches a request, it can distribute traffic to a target virtual service.
For more information about gateway routes, see Gateway routes .
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-gatewayroute.html
CloudformationResource: AWS::AppMesh::GatewayRoute
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 cfnGatewayRoute = new CfnGatewayRoute(this, "MyCfnGatewayRoute", new CfnGatewayRouteProps {
MeshName = "meshName",
Spec = new GatewayRouteSpecProperty {
GrpcRoute = 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"
}
},
Http2Route = 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"
}
} }
}
},
HttpRoute = 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
},
VirtualGatewayName = "virtualGatewayName",
// the properties below are optional
GatewayRouteName = "gatewayRouteName",
MeshOwner = "meshOwner",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
});
Synopsis
Constructors
| CfnGatewayRoute(Construct, string, ICfnGatewayRouteProps) | Create a new |
Properties
| AttrArn | The full Amazon Resource Name (ARN) for the gateway route. |
| AttrGatewayRouteName | The name of the gateway route. |
| AttrId | Creates a gateway route. |
| AttrMeshName | The name of the service mesh that the gateway route resides in. |
| AttrMeshOwner | The AWS IAM account ID of the service mesh owner. |
| AttrResourceOwner | The IAM account ID of the resource owner. |
| AttrUid | The unique identifier for the gateway route. |
| AttrVirtualGatewayName | The name of the virtual gateway that the gateway route is associated with. |
| CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
| CfnProperties | Creates a gateway route. |
| GatewayRouteName | The name of the gateway route. |
| GatewayRouteRef | A reference to a GatewayRoute resource. |
| MeshName | The name of the service mesh that the resource resides in. |
| MeshOwner | The AWS IAM account ID of the service mesh owner. |
| Spec | The specifications of the gateway route. |
| Tags | Tag Manager which manages the tags for this resource. |
| TagsRaw | Optional metadata that you can apply to the gateway route to assist with categorization and organization. |
| VirtualGatewayName | The virtual gateway that the gateway route is associated with. |
Methods
| Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
| RenderProperties(IDictionary<string, object>) | Creates a gateway route. |
Constructors
CfnGatewayRoute(Construct, string, ICfnGatewayRouteProps)
Create a new AWS::AppMesh::GatewayRoute.
public CfnGatewayRoute(Construct scope, string id, ICfnGatewayRouteProps props)
Parameters
- scope Construct
Scope in which this resource is defined.
- id string
Construct identifier for this resource (unique in its scope).
- props ICfnGatewayRouteProps
Resource properties.
Remarks
A gateway route is attached to a virtual gateway and routes traffic to an existing virtual service. If a route matches a request, it can distribute traffic to a target virtual service.
For more information about gateway routes, see Gateway routes .
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-gatewayroute.html
CloudformationResource: AWS::AppMesh::GatewayRoute
ExampleMetadata: fixture=_generated
Properties
AttrArn
The full Amazon Resource Name (ARN) for the gateway route.
public virtual string AttrArn { get; }
Property Value
Remarks
CloudformationAttribute: Arn
AttrGatewayRouteName
The name of the gateway route.
public virtual string AttrGatewayRouteName { get; }
Property Value
Remarks
CloudformationAttribute: GatewayRouteName
AttrId
Creates a gateway route.
public virtual string AttrId { get; }
Property Value
Remarks
CloudformationAttribute: Id
AttrMeshName
The name of the service mesh that the gateway route resides in.
public virtual string AttrMeshName { get; }
Property Value
Remarks
CloudformationAttribute: MeshName
AttrMeshOwner
The AWS IAM account ID of the service mesh owner.
public virtual string AttrMeshOwner { get; }
Property Value
Remarks
If the account ID is not your own, then it's the ID of the account that shared the mesh with your account. For more information about mesh sharing, see Working with Shared Meshes .
CloudformationAttribute: MeshOwner
AttrResourceOwner
The IAM account ID of the resource owner.
public virtual string AttrResourceOwner { get; }
Property Value
Remarks
If the account ID is not your own, then it's the ID of the mesh owner or of another account that the mesh is shared with. For more information about mesh sharing, see Working with Shared Meshes .
CloudformationAttribute: ResourceOwner
AttrUid
The unique identifier for the gateway route.
public virtual string AttrUid { get; }
Property Value
Remarks
CloudformationAttribute: Uid
AttrVirtualGatewayName
The name of the virtual gateway that the gateway route is associated with.
public virtual string AttrVirtualGatewayName { get; }
Property Value
Remarks
CloudformationAttribute: VirtualGatewayName
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
Remarks
A gateway route is attached to a virtual gateway and routes traffic to an existing virtual service. If a route matches a request, it can distribute traffic to a target virtual service.
For more information about gateway routes, see Gateway routes .
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-gatewayroute.html
CloudformationResource: AWS::AppMesh::GatewayRoute
ExampleMetadata: fixture=_generated
CfnProperties
Creates a gateway route.
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
Overrides
Remarks
A gateway route is attached to a virtual gateway and routes traffic to an existing virtual service. If a route matches a request, it can distribute traffic to a target virtual service.
For more information about gateway routes, see Gateway routes .
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-gatewayroute.html
CloudformationResource: AWS::AppMesh::GatewayRoute
ExampleMetadata: fixture=_generated
GatewayRouteName
The name of the gateway route.
public virtual string? GatewayRouteName { get; set; }
Property Value
Remarks
A gateway route is attached to a virtual gateway and routes traffic to an existing virtual service. If a route matches a request, it can distribute traffic to a target virtual service.
For more information about gateway routes, see Gateway routes .
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-gatewayroute.html
CloudformationResource: AWS::AppMesh::GatewayRoute
ExampleMetadata: fixture=_generated
GatewayRouteRef
A reference to a GatewayRoute resource.
public virtual IGatewayRouteReference GatewayRouteRef { get; }
Property Value
Remarks
A gateway route is attached to a virtual gateway and routes traffic to an existing virtual service. If a route matches a request, it can distribute traffic to a target virtual service.
For more information about gateway routes, see Gateway routes .
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-gatewayroute.html
CloudformationResource: AWS::AppMesh::GatewayRoute
ExampleMetadata: fixture=_generated
MeshName
The name of the service mesh that the resource resides in.
public virtual string MeshName { get; set; }
Property Value
Remarks
A gateway route is attached to a virtual gateway and routes traffic to an existing virtual service. If a route matches a request, it can distribute traffic to a target virtual service.
For more information about gateway routes, see Gateway routes .
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-gatewayroute.html
CloudformationResource: AWS::AppMesh::GatewayRoute
ExampleMetadata: fixture=_generated
MeshOwner
The AWS IAM account ID of the service mesh owner.
public virtual string? MeshOwner { get; set; }
Property Value
Remarks
A gateway route is attached to a virtual gateway and routes traffic to an existing virtual service. If a route matches a request, it can distribute traffic to a target virtual service.
For more information about gateway routes, see Gateway routes .
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-gatewayroute.html
CloudformationResource: AWS::AppMesh::GatewayRoute
ExampleMetadata: fixture=_generated
Spec
The specifications of the gateway route.
public virtual object Spec { get; set; }
Property Value
Remarks
Type union: either IResolvable or CfnGatewayRoute.IGatewayRouteSpecProperty
Tags
Tag Manager which manages the tags for this resource.
public virtual TagManager Tags { get; }
Property Value
Remarks
A gateway route is attached to a virtual gateway and routes traffic to an existing virtual service. If a route matches a request, it can distribute traffic to a target virtual service.
For more information about gateway routes, see Gateway routes .
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-gatewayroute.html
CloudformationResource: AWS::AppMesh::GatewayRoute
ExampleMetadata: fixture=_generated
TagsRaw
Optional metadata that you can apply to the gateway route to assist with categorization and organization.
public virtual ICfnTag[]? TagsRaw { get; set; }
Property Value
ICfnTag[]
Remarks
A gateway route is attached to a virtual gateway and routes traffic to an existing virtual service. If a route matches a request, it can distribute traffic to a target virtual service.
For more information about gateway routes, see Gateway routes .
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-gatewayroute.html
CloudformationResource: AWS::AppMesh::GatewayRoute
ExampleMetadata: fixture=_generated
VirtualGatewayName
The virtual gateway that the gateway route is associated with.
public virtual string VirtualGatewayName { get; set; }
Property Value
Remarks
A gateway route is attached to a virtual gateway and routes traffic to an existing virtual service. If a route matches a request, it can distribute traffic to a target virtual service.
For more information about gateway routes, see Gateway routes .
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-gatewayroute.html
CloudformationResource: AWS::AppMesh::GatewayRoute
ExampleMetadata: fixture=_generated
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
Remarks
A gateway route is attached to a virtual gateway and routes traffic to an existing virtual service. If a route matches a request, it can distribute traffic to a target virtual service.
For more information about gateway routes, see Gateway routes .
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-gatewayroute.html
CloudformationResource: AWS::AppMesh::GatewayRoute
ExampleMetadata: fixture=_generated
RenderProperties(IDictionary<string, object>)
Creates a gateway route.
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props IDictionary<string, object>
Returns
Overrides
Remarks
A gateway route is attached to a virtual gateway and routes traffic to an existing virtual service. If a route matches a request, it can distribute traffic to a target virtual service.
For more information about gateway routes, see Gateway routes .
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appmesh-gatewayroute.html
CloudformationResource: AWS::AppMesh::GatewayRoute
ExampleMetadata: fixture=_generated