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, ITaggable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-21T06:34:11.411Z") @Stability(Stable) public class CfnConnectAttachment extends CfnResource implements IInspectable, 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:
  • 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

    • 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)
      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.
    • getAttrAttachmentId

      @Stability(Stable) @NotNull public String getAttrAttachmentId()
      The ID of the Connect attachment.
    • getAttrAttachmentPolicyRuleNumber

      @Stability(Stable) @NotNull public Number getAttrAttachmentPolicyRuleNumber()
      The rule number associated with the attachment.
    • getAttrAttachmentType

      @Stability(Stable) @NotNull public String getAttrAttachmentType()
      The type of attachment.

      This will be CONNECT .

    • getAttrCoreNetworkArn

      @Stability(Stable) @NotNull public String getAttrCoreNetworkArn()
      The ARN of the core network.
    • getAttrCreatedAt

      @Stability(Stable) @NotNull public String getAttrCreatedAt()
      The timestamp when the Connect attachment was created.
    • getAttrOwnerAccountId

      @Stability(Stable) @NotNull public String getAttrOwnerAccountId()
      The ID of the Connect attachment owner.
    • getAttrResourceArn

      @Stability(Stable) @NotNull public String getAttrResourceArn()
      The resource ARN for the Connect attachment.
    • getAttrSegmentName

      @Stability(Stable) @NotNull public String getAttrSegmentName()
      The name of the Connect attachment's segment.
    • getAttrState

      @Stability(Stable) @NotNull public String 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

      @Stability(Stable) @NotNull public String getAttrUpdatedAt()
      The timestamp when the Connect attachment was last updated.
    • 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
    • getCoreNetworkId

      @Stability(Stable) @NotNull public String getCoreNetworkId()
      The ID of the core network where the Connect attachment is located.
    • setCoreNetworkId

      @Stability(Stable) public void setCoreNetworkId(@NotNull String value)
      The ID of the core network where the Connect attachment is located.
    • getEdgeLocation

      @Stability(Stable) @NotNull public String getEdgeLocation()
      The Region where the edge is located.
    • setEdgeLocation

      @Stability(Stable) public void setEdgeLocation(@NotNull String value)
      The Region where the edge is located.
    • getOptions

      @Stability(Stable) @NotNull public Object getOptions()
      Options for connecting an attachment.
    • setOptions

      @Stability(Stable) public void setOptions(@NotNull IResolvable value)
      Options for connecting an attachment.
    • setOptions

      @Stability(Stable) public void setOptions(@NotNull CfnConnectAttachment.ConnectAttachmentOptionsProperty value)
      Options for connecting an attachment.
    • getTransportAttachmentId

      @Stability(Stable) @NotNull public String getTransportAttachmentId()
      The ID of the transport attachment.
    • setTransportAttachmentId

      @Stability(Stable) public void setTransportAttachmentId(@NotNull String value)
      The ID of the transport attachment.
    • getNetworkFunctionGroupName

      @Stability(Stable) @Nullable public String getNetworkFunctionGroupName()
      The name of the network function group.
    • setNetworkFunctionGroupName

      @Stability(Stable) public void setNetworkFunctionGroupName(@Nullable String value)
      The name of the network function group.
    • getProposedNetworkFunctionGroupChange

      @Stability(Stable) @Nullable public Object getProposedNetworkFunctionGroupChange()
      Describes proposed changes to a network function group.
    • setProposedNetworkFunctionGroupChange

      @Stability(Stable) public void setProposedNetworkFunctionGroupChange(@Nullable IResolvable value)
      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

      @Stability(Stable) @Nullable public Object getProposedSegmentChange()
      Describes a proposed segment change.
    • setProposedSegmentChange

      @Stability(Stable) public void setProposedSegmentChange(@Nullable IResolvable value)
      Describes a proposed segment change.
    • setProposedSegmentChange

      @Stability(Stable) public void setProposedSegmentChange(@Nullable CfnConnectAttachment.ProposedSegmentChangeProperty value)
      Describes a proposed segment change.
    • getTagsRaw

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

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