Class CfnTransitGatewayConnect

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

@Generated(value="jsii-pacmak/1.96.0 (build 921e240)", date="2024-04-10T22:22:26.816Z") @Stability(Stable) public class CfnTransitGatewayConnect extends CfnResource implements IInspectable, ITaggable
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();
 

See Also:
  • 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 software.constructs.Construct scope, @NotNull String id, @NotNull CfnTransitGatewayConnectProps props)
      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). 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()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getTags in interface ITaggable
    • getOptions

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

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

      @Stability(Stable) public void setOptions(@NotNull CfnTransitGatewayConnect.TransitGatewayConnectOptionsProperty value)
      The Connect attachment options.
    • 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.
    • getTagsRaw

      @Stability(Stable) @Nullable public List<CfnTag> getTagsRaw()
      The tags for the attachment.
    • setTagsRaw

      @Stability(Stable) public void setTagsRaw(@Nullable List<CfnTag> value)
      The tags for the attachment.