Class CfnTransitGatewayRoute.Builder

java.lang.Object
software.amazon.awscdk.services.ec2.CfnTransitGatewayRoute.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTransitGatewayRoute>
Enclosing class:
CfnTransitGatewayRoute

@Stability(Stable) public static final class CfnTransitGatewayRoute.Builder extends Object implements software.amazon.jsii.Builder<CfnTransitGatewayRoute>
A fluent builder for CfnTransitGatewayRoute.
  • Method Details

    • create

      @Stability(Stable) public static CfnTransitGatewayRoute.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnTransitGatewayRoute.Builder.
    • transitGatewayRouteTableId

      @Stability(Stable) public CfnTransitGatewayRoute.Builder transitGatewayRouteTableId(String transitGatewayRouteTableId)
      The ID of the transit gateway route table.

      Parameters:
      transitGatewayRouteTableId - The ID of the transit gateway route table. This parameter is required.
      Returns:
      this
    • blackhole

      @Stability(Stable) public CfnTransitGatewayRoute.Builder blackhole(Boolean blackhole)
      Indicates whether to drop traffic that matches this route.

      Parameters:
      blackhole - Indicates whether to drop traffic that matches this route. This parameter is required.
      Returns:
      this
    • blackhole

      @Stability(Stable) public CfnTransitGatewayRoute.Builder blackhole(IResolvable blackhole)
      Indicates whether to drop traffic that matches this route.

      Parameters:
      blackhole - Indicates whether to drop traffic that matches this route. This parameter is required.
      Returns:
      this
    • destinationCidrBlock

      @Stability(Stable) public CfnTransitGatewayRoute.Builder destinationCidrBlock(String destinationCidrBlock)
      The CIDR block used for destination matches.

      Parameters:
      destinationCidrBlock - The CIDR block used for destination matches. This parameter is required.
      Returns:
      this
    • transitGatewayAttachmentId

      @Stability(Stable) public CfnTransitGatewayRoute.Builder transitGatewayAttachmentId(String transitGatewayAttachmentId)
      The ID of the attachment.

      Parameters:
      transitGatewayAttachmentId - The ID of the attachment. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnTransitGatewayRoute build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnTransitGatewayRoute>
      Returns:
      a newly built instance of CfnTransitGatewayRoute.