Class CfnConnectAttachment
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.networkmanager.CfnConnectAttachment
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IConnectAttachmentRef,ITaggable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T22:26:40.762Z")
@Stability(Stable)
public class CfnConnectAttachment
extends CfnResource
implements IInspectable, IConnectAttachmentRef, ITaggable
Creates a core network Connect attachment from a specified core network attachment.
A core network Connect attachment is a GRE-based tunnel attachment that you can use to establish a connection between a core network and an appliance. A core network Connect attachment uses an existing VPC 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.networkmanager.*;
CfnConnectAttachment cfnConnectAttachment = CfnConnectAttachment.Builder.create(this, "MyCfnConnectAttachment")
.coreNetworkId("coreNetworkId")
.edgeLocation("edgeLocation")
.options(ConnectAttachmentOptionsProperty.builder()
.protocol("protocol")
.build())
.transportAttachmentId("transportAttachmentId")
// the properties below are optional
.networkFunctionGroupName("networkFunctionGroupName")
.proposedNetworkFunctionGroupChange(ProposedNetworkFunctionGroupChangeProperty.builder()
.attachmentPolicyRuleNumber(123)
.networkFunctionGroupName("networkFunctionGroupName")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build())
.proposedSegmentChange(ProposedSegmentChangeProperty.builder()
.attachmentPolicyRuleNumber(123)
.segmentName("segmentName")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnConnectAttachment.static interfaceDescribes a core network Connect attachment options.static interfaceDescribes proposed changes to a network function group.static interfaceDescribes a proposed segment change.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.networkmanager.IConnectAttachmentRef
IConnectAttachmentRef.Jsii$Default, IConnectAttachmentRef.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnConnectAttachment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnConnectAttachment(software.amazon.jsii.JsiiObjectRef objRef) CfnConnectAttachment(software.constructs.Construct scope, String id, CfnConnectAttachmentProps props) Create a newAWS::NetworkManager::ConnectAttachment. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForConnectAttachment(IConnectAttachmentRef resource) static IConnectAttachmentReffromAttachmentId(software.constructs.Construct scope, String id, String attachmentId) Creates a new IConnectAttachmentRef from a attachmentId.The ID of the Connect attachment.The rule number associated with the attachment.The type of attachment.The ARN of the core network.The timestamp when the Connect attachment was created.Errors from the last modification of the attachment.The ID of the Connect attachment owner.The resource ARN for the Connect attachment.The name of the Connect attachment's segment.The state of the Connect attachment.The timestamp when the Connect attachment was last updated.A reference to a ConnectAttachment resource.The ID of the core network where the Connect attachment is located.The Region where the edge is located.The name of the network function group.Options for connecting an attachment.Describes proposed changes to a network function group.Describes a proposed segment change.getTags()Tag Manager which manages the tags for this resource.The tags associated with the Connect attachment.The ID of the transport attachment.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnConnectAttachment.renderProperties(Map<String, Object> props) voidsetCoreNetworkId(String value) The ID of the core network where the Connect attachment is located.voidsetEdgeLocation(String value) The Region where the edge is located.voidThe name of the network function group.voidsetOptions(IResolvable value) Options for connecting an attachment.voidOptions for connecting an attachment.voidDescribes proposed changes to a network function group.voidsetProposedNetworkFunctionGroupChange(CfnConnectAttachment.ProposedNetworkFunctionGroupChangeProperty value) Describes proposed changes to a network function group.voidDescribes a proposed segment change.voidDescribes a proposed segment change.voidsetTagsRaw(List<CfnTag> value) The tags associated with the Connect attachment.voidsetTransportAttachmentId(String value) The ID of the transport attachment.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnConnectAttachment
protected CfnConnectAttachment(software.amazon.jsii.JsiiObjectRef objRef) -
CfnConnectAttachment
protected CfnConnectAttachment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnConnectAttachment
@Stability(Stable) public CfnConnectAttachment(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnConnectAttachmentProps props) Create a newAWS::NetworkManager::ConnectAttachment.- 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
-
arnForConnectAttachment
@Stability(Stable) @NotNull public static String arnForConnectAttachment(@NotNull IConnectAttachmentRef resource) - Parameters:
resource- This parameter is required.
-
fromAttachmentId
@Stability(Stable) @NotNull public static IConnectAttachmentRef fromAttachmentId(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String attachmentId) Creates a new IConnectAttachmentRef from a attachmentId.- Parameters:
scope- This parameter is required.id- This parameter is required.attachmentId- This parameter is required.
-
isCfnConnectAttachment
Checks whether the given object is a CfnConnectAttachment.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- 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:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrAttachmentId
The ID of the Connect attachment. -
getAttrAttachmentPolicyRuleNumber
The rule number associated with the attachment. -
getAttrAttachmentType
The type of attachment.This will be
CONNECT. -
getAttrCoreNetworkArn
The ARN of the core network. -
getAttrCreatedAt
The timestamp when the Connect attachment was created. -
getAttrLastModificationErrors
Errors from the last modification of the attachment. -
getAttrOwnerAccountId
The ID of the Connect attachment owner. -
getAttrResourceArn
The resource ARN for the Connect attachment. -
getAttrSegmentName
The name of the Connect attachment's segment. -
getAttrState
The state of the Connect attachment.This can be:
REJECTED|PENDING_ATTACHMENT_ACCEPTANCE|CREATING|FAILED|AVAILABLE|UPDATING|PENDING_NETWORK_UPDATE|PENDING_TAG_ACCEPTANCE|DELETING. -
getAttrUpdatedAt
The timestamp when the Connect attachment was last updated. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getConnectAttachmentRef
A reference to a ConnectAttachment resource.- Specified by:
getConnectAttachmentRefin interfaceIConnectAttachmentRef
-
getTags
Tag Manager which manages the tags for this resource. -
getCoreNetworkId
The ID of the core network where the Connect attachment is located. -
setCoreNetworkId
The ID of the core network where the Connect attachment is located. -
getEdgeLocation
The Region where the edge is located. -
setEdgeLocation
The Region where the edge is located. -
getOptions
Options for connecting an attachment.Returns union: either
IResolvableorCfnConnectAttachment.ConnectAttachmentOptionsProperty -
setOptions
Options for connecting an attachment. -
setOptions
@Stability(Stable) public void setOptions(@NotNull CfnConnectAttachment.ConnectAttachmentOptionsProperty value) Options for connecting an attachment. -
getTransportAttachmentId
The ID of the transport attachment. -
setTransportAttachmentId
The ID of the transport attachment. -
getNetworkFunctionGroupName
The name of the network function group. -
setNetworkFunctionGroupName
The name of the network function group. -
getProposedNetworkFunctionGroupChange
Describes proposed changes to a network function group.Returns union: either
IResolvableorCfnConnectAttachment.ProposedNetworkFunctionGroupChangeProperty -
setProposedNetworkFunctionGroupChange
Describes proposed changes to a network function group. -
setProposedNetworkFunctionGroupChange
@Stability(Stable) public void setProposedNetworkFunctionGroupChange(@Nullable CfnConnectAttachment.ProposedNetworkFunctionGroupChangeProperty value) Describes proposed changes to a network function group. -
getProposedSegmentChange
Describes a proposed segment change.Returns union: either
IResolvableorCfnConnectAttachment.ProposedSegmentChangeProperty -
setProposedSegmentChange
Describes a proposed segment change. -
setProposedSegmentChange
@Stability(Stable) public void setProposedSegmentChange(@Nullable CfnConnectAttachment.ProposedSegmentChangeProperty value) Describes a proposed segment change. -
getTagsRaw
The tags associated with the Connect attachment. -
setTagsRaw
The tags associated with the Connect attachment.
-