

This is the new *CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [AWS CloudFormation User Guide](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/Welcome.html).

# AWS::NetworkManager::ConnectAttachment
<a name="aws-resource-networkmanager-connectattachment"></a>

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.

## Syntax
<a name="aws-resource-networkmanager-connectattachment-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-resource-networkmanager-connectattachment-syntax.json"></a>

```
{
  "Type" : "AWS::NetworkManager::ConnectAttachment",
  "Properties" : {
      "[CoreNetworkId](#cfn-networkmanager-connectattachment-corenetworkid)" : String,
      "[EdgeLocation](#cfn-networkmanager-connectattachment-edgelocation)" : String,
      "[NetworkFunctionGroupName](#cfn-networkmanager-connectattachment-networkfunctiongroupname)" : String,
      "[Options](#cfn-networkmanager-connectattachment-options)" : ConnectAttachmentOptions,
      "[ProposedNetworkFunctionGroupChange](#cfn-networkmanager-connectattachment-proposednetworkfunctiongroupchange)" : ProposedNetworkFunctionGroupChange,
      "[ProposedSegmentChange](#cfn-networkmanager-connectattachment-proposedsegmentchange)" : ProposedSegmentChange,
      "[RoutingPolicyLabel](#cfn-networkmanager-connectattachment-routingpolicylabel)" : String,
      "[Tags](#cfn-networkmanager-connectattachment-tags)" : [ Tag, ... ],
      "[TransportAttachmentId](#cfn-networkmanager-connectattachment-transportattachmentid)" : String
    }
}
```

### YAML
<a name="aws-resource-networkmanager-connectattachment-syntax.yaml"></a>

```
Type: AWS::NetworkManager::ConnectAttachment
Properties:
  [CoreNetworkId](#cfn-networkmanager-connectattachment-corenetworkid): String
  [EdgeLocation](#cfn-networkmanager-connectattachment-edgelocation): String
  [NetworkFunctionGroupName](#cfn-networkmanager-connectattachment-networkfunctiongroupname): String
  [Options](#cfn-networkmanager-connectattachment-options): 
    ConnectAttachmentOptions
  [ProposedNetworkFunctionGroupChange](#cfn-networkmanager-connectattachment-proposednetworkfunctiongroupchange): 
    ProposedNetworkFunctionGroupChange
  [ProposedSegmentChange](#cfn-networkmanager-connectattachment-proposedsegmentchange): 
    ProposedSegmentChange
  [RoutingPolicyLabel](#cfn-networkmanager-connectattachment-routingpolicylabel): String
  [Tags](#cfn-networkmanager-connectattachment-tags): 
    - Tag
  [TransportAttachmentId](#cfn-networkmanager-connectattachment-transportattachmentid): String
```

## Properties
<a name="aws-resource-networkmanager-connectattachment-properties"></a>

`CoreNetworkId`  <a name="cfn-networkmanager-connectattachment-corenetworkid"></a>
The ID of the core network where the Connect attachment is located.  
*Required*: Yes  
*Type*: String  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`EdgeLocation`  <a name="cfn-networkmanager-connectattachment-edgelocation"></a>
The Region where the edge is located.  
*Required*: Yes  
*Type*: String  
*Pattern*: `[\s\S]*`  
*Minimum*: `1`  
*Maximum*: `63`  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`NetworkFunctionGroupName`  <a name="cfn-networkmanager-connectattachment-networkfunctiongroupname"></a>
The name of the network function group.  
*Required*: No  
*Type*: String  
*Pattern*: `[\s\S]*`  
*Minimum*: `0`  
*Maximum*: `256`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`Options`  <a name="cfn-networkmanager-connectattachment-options"></a>
Options for connecting an attachment.  
*Required*: Yes  
*Type*: [ConnectAttachmentOptions](aws-properties-networkmanager-connectattachment-connectattachmentoptions.md)  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`ProposedNetworkFunctionGroupChange`  <a name="cfn-networkmanager-connectattachment-proposednetworkfunctiongroupchange"></a>
Describes proposed changes to a network function group.   
*Required*: No  
*Type*: [ProposedNetworkFunctionGroupChange](aws-properties-networkmanager-connectattachment-proposednetworkfunctiongroupchange.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`ProposedSegmentChange`  <a name="cfn-networkmanager-connectattachment-proposedsegmentchange"></a>
Describes a proposed segment change. In some cases, the segment change must first be evaluated and accepted.   
*Required*: No  
*Type*: [ProposedSegmentChange](aws-properties-networkmanager-connectattachment-proposedsegmentchange.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`RoutingPolicyLabel`  <a name="cfn-networkmanager-connectattachment-routingpolicylabel"></a>
Property description not available.  
*Required*: No  
*Type*: String  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`Tags`  <a name="cfn-networkmanager-connectattachment-tags"></a>
The tags associated with the Connect attachment.  
*Required*: No  
*Type*: Array of [Tag](aws-properties-networkmanager-connectattachment-tag.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`TransportAttachmentId`  <a name="cfn-networkmanager-connectattachment-transportattachmentid"></a>
The ID of the transport attachment.  
*Required*: Yes  
*Type*: String  
*Pattern*: `^attachment-([0-9a-f]{8,17})$`  
*Minimum*: `0`  
*Maximum*: `50`  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

## Return values
<a name="aws-resource-networkmanager-connectattachment-return-values"></a>

### Ref
<a name="aws-resource-networkmanager-connectattachment-return-values-ref"></a>

When you pass the logical ID of this resource to the intrinsic `Ref` function, `Ref` returns the `AttachmentId`. For example, `{ "Ref: "attachment-02767e74104a33690" }`.

For more information about using the `Ref` function, see [https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/intrinsic-function-reference-ref.html](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/intrinsic-function-reference-ref.html).

### Fn::GetAtt
<a name="aws-resource-networkmanager-connectattachment-return-values-fn--getatt"></a>

The `Fn::GetAtt` intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values.

For more information about using the `Fn::GetAtt` intrinsic function, see [https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/intrinsic-function-reference-getatt.html](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/intrinsic-function-reference-getatt.html).

#### 
<a name="aws-resource-networkmanager-connectattachment-return-values-fn--getatt-fn--getatt"></a>

`AttachmentId`  <a name="AttachmentId-fn::getatt"></a>
The ID of the Connect attachment.

`AttachmentPolicyRuleNumber`  <a name="AttachmentPolicyRuleNumber-fn::getatt"></a>
The rule number associated with the attachment.

`AttachmentType`  <a name="AttachmentType-fn::getatt"></a>
The type of attachment. This will be `CONNECT`.

`CoreNetworkArn`  <a name="CoreNetworkArn-fn::getatt"></a>
The ARN of the core network.

`CreatedAt`  <a name="CreatedAt-fn::getatt"></a>
The timestamp when the Connect attachment was created.

`LastModificationErrors`  <a name="LastModificationErrors-fn::getatt"></a>
Property description not available.

`OwnerAccountId`  <a name="OwnerAccountId-fn::getatt"></a>
The ID of the Connect attachment owner.

`ResourceArn`  <a name="ResourceArn-fn::getatt"></a>
The resource ARN for the Connect attachment.

`SegmentName`  <a name="SegmentName-fn::getatt"></a>
The name of the Connect attachment's segment.

`State`  <a name="State-fn::getatt"></a>
The state of the Connect attachment. This can be: `REJECTED` \$1 `PENDING_ATTACHMENT_ACCEPTANCE` \$1 `CREATING` \$1 `FAILED` \$1 `AVAILABLE` \$1 `UPDATING` \$1 ` PENDING_NETWORK_UPDATE` \$1 `PENDING_TAG_ACCEPTANCE` \$1 `DELETING`. 

`UpdatedAt`  <a name="UpdatedAt-fn::getatt"></a>
The timestamp when the Connect attachment was last updated.