

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

# AWS::FSx::S3AccessPointAttachment S3AccessPointVpcConfiguration
<a name="aws-properties-fsx-s3accesspointattachment-s3accesspointvpcconfiguration"></a>

If included, Amazon S3 restricts access to this access point to requests from the specified virtual private cloud (VPC).

## Syntax
<a name="aws-properties-fsx-s3accesspointattachment-s3accesspointvpcconfiguration-syntax"></a>

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

### JSON
<a name="aws-properties-fsx-s3accesspointattachment-s3accesspointvpcconfiguration-syntax.json"></a>

```
{
  "[VpcId](#cfn-fsx-s3accesspointattachment-s3accesspointvpcconfiguration-vpcid)" : {{String}}
}
```

### YAML
<a name="aws-properties-fsx-s3accesspointattachment-s3accesspointvpcconfiguration-syntax.yaml"></a>

```
  [VpcId](#cfn-fsx-s3accesspointattachment-s3accesspointvpcconfiguration-vpcid): {{String}}
```

## Properties
<a name="aws-properties-fsx-s3accesspointattachment-s3accesspointvpcconfiguration-properties"></a>

`VpcId`  <a name="cfn-fsx-s3accesspointattachment-s3accesspointvpcconfiguration-vpcid"></a>
Specifies the virtual private cloud (VPC) for the S3 access point VPC configuration, if one exists.  
*Required*: Yes  
*Type*: String  
*Pattern*: `^(vpc-[0-9a-f]{8,})$`  
*Minimum*: `12`  
*Maximum*: `21`  
*Update requires*: [Replacement](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)