Class CfnTransitGatewayConnect

java.lang.Object
software.amazon.jsii.JsiiObject
All Implemented Interfaces:
IConstruct, IDependable, IInspectable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:39.090Z") @Stability(Stable) public class CfnTransitGatewayConnect extends CfnResource implements IInspectable
A CloudFormation AWS::EC2::TransitGatewayConnect.

Creates a Connect attachment from a specified transit gateway attachment. A Connect attachment is a GRE-based tunnel attachment that you can use to establish a connection between a transit gateway and an appliance.

A Connect attachment uses an existing VPC or AWS Direct Connect attachment as the underlying transport mechanism.

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.ec2.*;
 CfnTransitGatewayConnect cfnTransitGatewayConnect = CfnTransitGatewayConnect.Builder.create(this, "MyCfnTransitGatewayConnect")
         .options(TransitGatewayConnectOptionsProperty.builder()
                 .protocol("protocol")
                 .build())
         .transportTransitGatewayAttachmentId("transportTransitGatewayAttachmentId")
         // the properties below are optional
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .build();
 
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnTransitGatewayConnect

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

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

      @Stability(Stable) public CfnTransitGatewayConnect(@NotNull Construct scope, @NotNull String id, @NotNull CfnTransitGatewayConnectProps props)
      Create a new AWS::EC2::TransitGatewayConnect.

      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      props -
      • resource properties.
      This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector -
      • tree inspector to collect and process attributes.
      This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrCreationTime

      @Stability(Stable) @NotNull public String getAttrCreationTime()
      The creation time.
    • getAttrState

      @Stability(Stable) @NotNull public String getAttrState()
      The state of the attachment.
    • getAttrTransitGatewayAttachmentId

      @Stability(Stable) @NotNull public String getAttrTransitGatewayAttachmentId()
      The ID of the transit gateway attachment.
    • getAttrTransitGatewayId

      @Stability(Stable) @NotNull public String getAttrTransitGatewayId()
      The ID of the transit gateway.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getTags

      @Stability(Stable) @NotNull public TagManager getTags()
      The tags for the attachment.
    • getOptions

      @Stability(Stable) @NotNull public Object getOptions()
      The Connect attachment options.

      • protocol (gre)
    • setOptions

      @Stability(Stable) public void setOptions(@NotNull IResolvable value)
      The Connect attachment options.

      • protocol (gre)
    • setOptions

      @Stability(Stable) public void setOptions(@NotNull CfnTransitGatewayConnect.TransitGatewayConnectOptionsProperty value)
      The Connect attachment options.

      • protocol (gre)
    • getTransportTransitGatewayAttachmentId

      @Stability(Stable) @NotNull public String getTransportTransitGatewayAttachmentId()
      The ID of the attachment from which the Connect attachment was created.
    • setTransportTransitGatewayAttachmentId

      @Stability(Stable) public void setTransportTransitGatewayAttachmentId(@NotNull String value)
      The ID of the attachment from which the Connect attachment was created.