Class GatewayRoute

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.appmesh.GatewayRoute
All Implemented Interfaces:
IResource, IGatewayRoute, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-08T21:35:02.667Z") @Stability(Stable) public class GatewayRoute extends Resource implements IGatewayRoute
GatewayRoute represents a new or existing gateway route attached to a VirtualGateway and Mesh.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.appmesh.*;
 GatewayRouteSpec gatewayRouteSpec;
 VirtualGateway virtualGateway;
 GatewayRoute gatewayRoute = GatewayRoute.Builder.create(this, "MyGatewayRoute")
         .routeSpec(gatewayRouteSpec)
         .virtualGateway(virtualGateway)
         // the properties below are optional
         .gatewayRouteName("gatewayRouteName")
         .build();
 

See Also:
  • Constructor Details

    • GatewayRoute

      protected GatewayRoute(software.amazon.jsii.JsiiObjectRef objRef)
    • GatewayRoute

      protected GatewayRoute(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • GatewayRoute

      @Stability(Stable) public GatewayRoute(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull GatewayRouteProps props)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      props - This parameter is required.
  • Method Details

    • fromGatewayRouteArn

      @Stability(Stable) @NotNull public static IGatewayRoute fromGatewayRouteArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String gatewayRouteArn)
      Import an existing GatewayRoute given an ARN.

      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      gatewayRouteArn - This parameter is required.
    • fromGatewayRouteAttributes

      @Stability(Stable) @NotNull public static IGatewayRoute fromGatewayRouteAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull GatewayRouteAttributes attrs)
      Import an existing GatewayRoute given attributes.

      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      attrs - This parameter is required.
    • getGatewayRouteArn

      @Stability(Stable) @NotNull public String getGatewayRouteArn()
      The Amazon Resource Name (ARN) for the GatewayRoute.
      Specified by:
      getGatewayRouteArn in interface IGatewayRoute
    • getGatewayRouteName

      @Stability(Stable) @NotNull public String getGatewayRouteName()
      The name of the GatewayRoute.
      Specified by:
      getGatewayRouteName in interface IGatewayRoute
    • getVirtualGateway

      @Stability(Stable) @NotNull public IVirtualGateway getVirtualGateway()
      The VirtualGateway this GatewayRoute is a part of.
      Specified by:
      getVirtualGateway in interface IGatewayRoute