

# VpcAttachment
<a name="API_VpcAttachment"></a>

Describes an attachment between a virtual private gateway and a VPC.

## Contents
<a name="API_VpcAttachment_Contents"></a>

 ** state **   
The current state of the attachment.  
Type: String  
Valid Values: `attaching | attached | detaching | detached`   
Required: No

 ** vpcId **   
The ID of the VPC.  
Type: String  
Required: No

## See Also
<a name="API_VpcAttachment_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/ec2-2016-11-15/VpcAttachment) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/ec2-2016-11-15/VpcAttachment) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/ec2-2016-11-15/VpcAttachment) 