---
title: "PATCH /servicenetworkvpcassociations/{serviceNetworkVpcAssociationIdentifier}"
method: PATCH
path: "/servicenetworkvpcassociations/{serviceNetworkVpcAssociationIdentifier}"
---

# PATCH /servicenetworkvpcassociations/{serviceNetworkVpcAssociationIdentifier}

`PATCH /servicenetworkvpcassociations/{serviceNetworkVpcAssociationIdentifier}`

Updates the service network and VPC association. If you add a security group to the service network and VPC association, the association must continue to have at least one security group. You can add or edit security groups at any time. However, to remove all security groups, you must first delete the association and then recreate it without security groups.

## Path parameters

- `serviceNetworkVpcAssociationIdentifier` string, required

## Request body

- object
  - `securityGroupIds` SecurityGroupId[], required — The IDs of the security groups.

## Response `200`

Success

- UpdateServiceNetworkVpcAssociationResponse
  - `id` string — The ID of the association.
  - `arn` string — The Amazon Resource Name (ARN) of the association.
  - `status` 'CREATE_IN_PROGRESS' | 'ACTIVE' | 'UPDATE_IN_PROGRESS' | 'DELETE_IN_PROGRESS' | 'CREATE_FAILED' | 'DELETE_FAILED' | 'UPDATE_FAILED' — The status. You can retry the operation if the status is <code>DELETE_FAILED</code>. However, if you retry it while the status is <code>DELETE_IN_PROGRESS</code>, there is no change in the status.
  - `createdBy` string — The account that created the association.
  - `securityGroupIds` SecurityGroupId[] — The IDs of the security groups.

## Other responses

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

---

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