---
title: "PATCH /vpc-attachments/{attachmentId}"
method: PATCH
path: "/vpc-attachments/{attachmentId}"
---

# PATCH /vpc-attachments/{attachmentId}

`PATCH /vpc-attachments/{attachmentId}`

Updates a VPC attachment.

## Path parameters

- `attachmentId` string, required

## Request body

- object
  - `AddSubnetArns` SubnetArn[] — Adds a subnet ARN to the VPC attachment.
  - `RemoveSubnetArns` SubnetArn[] — Removes a subnet ARN from the attachment.
  - `Options` object — Describes the VPC options.
    - `Ipv6Support` boolean — Indicates whether IPv6 is supported.
    - `ApplianceModeSupport` boolean — Indicates whether appliance mode is supported. If enabled, traffic flow between a source and destination use the same Availability Zone for the VPC attachment for the lifetime of that flow. The default value is <code>false</code>.

## Response `200`

Success

- UpdateVpcAttachmentResponse
  - `VpcAttachment` object — Describes the updated VPC attachment.
    - `Attachment` object — Provides details about the VPC attachment.
      - `CoreNetworkId` string — The ID of a core network.
      - `CoreNetworkArn` string — The ARN of a core network.
      - `AttachmentId` string — The ID of the attachment.
      - `OwnerAccountId` string — The ID of the attachment account owner.
      - `AttachmentType` 'CONNECT' | 'SITE_TO_SITE_VPN' | 'VPC' | 'TRANSIT_GATEWAY_ROUTE_TABLE' — The type of attachment.
      - `State` 'REJECTED' | 'PENDING_ATTACHMENT_ACCEPTANCE' | 'CREATING' | 'FAILED' | 'AVAILABLE' | 'UPDATING' | 'PENDING_NETWORK_UPDATE' | 'PENDING_TAG_ACCEPTANCE' | 'DELETING' — The state of the attachment.
      - `EdgeLocation` string — The Region where the edge is located.
      - `ResourceArn` string — The attachment resource ARN.
      - `AttachmentPolicyRuleNumber` integer — The policy rule number associated with the attachment.
      - `SegmentName` string — The name of the segment attachment.
      - `Tags` Tag[] — The tags associated with the attachment.
        - `Key` string — <p>The tag key.</p> <p>Constraints: Maximum length of 128 characters.</p>
        - `Value` string — <p>The tag value.</p> <p>Constraints: Maximum length of 256 characters.</p>
      - `ProposedSegmentChange` object — The attachment to move from one segment to another.
        - `Tags` Tag[] — The list of key-value tags that changed for the segment.
          - `Key` string — <p>The tag key.</p> <p>Constraints: Maximum length of 128 characters.</p>
          - `Value` string — <p>The tag value.</p> <p>Constraints: Maximum length of 256 characters.</p>
        - `AttachmentPolicyRuleNumber` integer — The rule number in the policy document that applies to this change.
        - `SegmentName` string — The name of the segment to change.
      - `CreatedAt` string, date-time — The timestamp when the attachment was created.
      - `UpdatedAt` string, date-time — The timestamp when the attachment was last updated.
    - `SubnetArns` SubnetArn[] — The subnet ARNs.
    - `Options` object — Provides details about the VPC attachment.
      - `Ipv6Support` boolean — Indicates whether IPv6 is supported.
      - `ApplianceModeSupport` boolean — Indicates whether appliance mode is supported. If enabled, traffic flow between a source and destination use the same Availability Zone for the VPC attachment for the lifetime of that flow. The default value is <code>false</code>.

## Other responses

- `480` — ValidationException
- `481` — AccessDeniedException
- `482` — ResourceNotFoundException
- `483` — ConflictException
- `484` — ThrottlingException
- `485` — InternalServerException

---

[API](https://skmtc.net/aws/apis/networkmanager.md) · [All operations](https://skmtc.net/aws/apis/networkmanager/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/networkmanager/versions/4ea0acef56bf/schema)
