Class GatewayRoute
GatewayRoute represents a new or existing gateway route attached to a VirtualGateway and Mesh.
Inherited Members
Namespace: Amazon.CDK.AWS.AppMesh
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class GatewayRoute : Resource, IGatewayRoute, IResource
Syntax (vb)
Public Class GatewayRoute
Inherits Resource
Implements IGatewayRoute, IResource
Remarks
See: https://docs.aws.amazon.com/app-mesh/latest/userguide/gateway-routes.html
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;
GatewayRouteSpec gatewayRouteSpec;
VirtualGateway virtualGateway;
var gatewayRoute = new GatewayRoute(this, "MyGatewayRoute", new GatewayRouteProps {
RouteSpec = gatewayRouteSpec,
VirtualGateway = virtualGateway,
// the properties below are optional
GatewayRouteName = "gatewayRouteName"
});
Synopsis
Constructors
GatewayRoute(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
GatewayRoute(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
GatewayRoute(Construct, String, IGatewayRouteProps) |
Properties
GatewayRouteArn | The Amazon Resource Name (ARN) for the GatewayRoute. |
GatewayRouteName | The name of the GatewayRoute. |
VirtualGateway | The VirtualGateway this GatewayRoute is a part of. |
Methods
FromGatewayRouteArn(Construct, String, String) | Import an existing GatewayRoute given an ARN. |
FromGatewayRouteAttributes(Construct, String, IGatewayRouteAttributes) | Import an existing GatewayRoute given attributes. |
Constructors
GatewayRoute(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected GatewayRoute(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
GatewayRoute(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected GatewayRoute(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
GatewayRoute(Construct, String, IGatewayRouteProps)
public GatewayRoute(Construct scope, string id, IGatewayRouteProps props)
Parameters
- scope Constructs.Construct
- id System.String
- props IGatewayRouteProps
Properties
GatewayRouteArn
The Amazon Resource Name (ARN) for the GatewayRoute.
public virtual string GatewayRouteArn { get; }
Property Value
System.String
GatewayRouteName
The name of the GatewayRoute.
public virtual string GatewayRouteName { get; }
Property Value
System.String
VirtualGateway
The VirtualGateway this GatewayRoute is a part of.
public virtual IVirtualGateway VirtualGateway { get; }
Property Value
Methods
FromGatewayRouteArn(Construct, String, String)
Import an existing GatewayRoute given an ARN.
public static IGatewayRoute FromGatewayRouteArn(Construct scope, string id, string gatewayRouteArn)
Parameters
- scope Constructs.Construct
- id System.String
- gatewayRouteArn System.String
Returns
FromGatewayRouteAttributes(Construct, String, IGatewayRouteAttributes)
Import an existing GatewayRoute given attributes.
public static IGatewayRoute FromGatewayRouteAttributes(Construct scope, string id, IGatewayRouteAttributes attrs)
Parameters
- scope Constructs.Construct
- id System.String
- attrs IGatewayRouteAttributes
Returns