AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Container for the parameters to the CreateServiceNetworkVpcAssociation operation. Associates a VPC with a service network. When you associate a VPC with the service network, it enables all the resources within that VPC to be clients and communicate with other services in the service network. For more information, see Manage VPC associations in the Amazon VPC Lattice User Guide.
You can't use this operation if there is a disassociation in progress. If the association fails, retry by deleting the association and recreating it.
As a result of this operation, the association gets created in the service network account and the VPC owner account.
If you add a security group to the service network and VPC association, the association must continue to always 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 recreate it without security groups.
Namespace: Amazon.VPCLattice.Model
Assembly: AWSSDK.VPCLattice.dll
Version: 3.x.y.z
public class CreateServiceNetworkVpcAssociationRequest : AmazonVPCLatticeRequest IAmazonWebServiceRequest
The CreateServiceNetworkVpcAssociationRequest type exposes the following members
Name | Description | |
---|---|---|
![]() |
CreateServiceNetworkVpcAssociationRequest() |
Name | Type | Description | |
---|---|---|---|
![]() |
ClientToken | System.String |
Gets and sets the property ClientToken. A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you retry a request that completed successfully using the same client token and parameters, the retry succeeds without performing any actions. If the parameters aren't identical, the retry fails. |
![]() |
SecurityGroupIds | System.Collections.Generic.List<System.String> |
Gets and sets the property SecurityGroupIds. The IDs of the security groups. Security groups aren't added by default. You can add a security group to apply network level controls to control which resources in a VPC are allowed to access the service network and its services. For more information, see Control traffic to resources using security groups in the Amazon VPC User Guide. |
![]() |
ServiceNetworkIdentifier | System.String |
Gets and sets the property ServiceNetworkIdentifier. The ID or ARN of the service network. You must use an ARN if the resources are in different accounts. |
![]() |
Tags | System.Collections.Generic.Dictionary<System.String, System.String> |
Gets and sets the property Tags. The tags for the association. |
![]() |
VpcIdentifier | System.String |
Gets and sets the property VpcIdentifier. The ID of the VPC. |
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5 and newer, 3.5