@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.347Z") @Stability(value=Stable) public class CfnTransitGatewayConnect extends CfnResource implements IInspectable
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();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnTransitGatewayConnect.Builder
A fluent builder for
CfnTransitGatewayConnect. |
static interface |
CfnTransitGatewayConnect.TransitGatewayConnectOptionsProperty
Describes the Connect attachment options.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnTransitGatewayConnect(software.constructs.Construct scope,
String id,
CfnTransitGatewayConnectProps props)
Create a new `AWS::EC2::TransitGatewayConnect`.
|
protected |
CfnTransitGatewayConnect(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnTransitGatewayConnect(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrCreationTime()
The creation time.
|
String |
getAttrState()
The state of the attachment.
|
String |
getAttrTransitGatewayAttachmentId()
The ID of the transit gateway attachment.
|
String |
getAttrTransitGatewayId()
The ID of the transit gateway.
|
protected Map<String,Object> |
getCfnProperties() |
Object |
getOptions()
The Connect attachment options.
|
TagManager |
getTags()
The tags for the attachment.
|
String |
getTransportTransitGatewayAttachmentId()
The ID of the attachment from which the Connect attachment was created.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setOptions(CfnTransitGatewayConnect.TransitGatewayConnectOptionsProperty value)
The Connect attachment options.
|
void |
setOptions(IResolvable value)
The Connect attachment options.
|
void |
setTransportTransitGatewayAttachmentId(String value)
The ID of the attachment from which the Connect attachment was created.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnTransitGatewayConnect(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnTransitGatewayConnect(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnTransitGatewayConnect(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnTransitGatewayConnectProps props)
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.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrCreationTime()
@Stability(value=Stable) @NotNull public String getAttrState()
@Stability(value=Stable) @NotNull public String getAttrTransitGatewayAttachmentId()
@Stability(value=Stable) @NotNull public String getAttrTransitGatewayId()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @NotNull public Object getOptions()
@Stability(value=Stable)
public void setOptions(@NotNull
CfnTransitGatewayConnect.TransitGatewayConnectOptionsProperty value)
@Stability(value=Stable)
public void setOptions(@NotNull
IResolvable value)
@Stability(value=Stable) @NotNull public String getTransportTransitGatewayAttachmentId()
@Stability(value=Stable)
public void setTransportTransitGatewayAttachmentId(@NotNull
String value)
Copyright © 2022. All rights reserved.