

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::OSIS::Pipeline VpcAttachmentOptions
<a name="aws-properties-osis-pipeline-vpcattachmentoptions"></a>

Options for attaching a VPC to pipeline.

## Syntax
<a name="aws-properties-osis-pipeline-vpcattachmentoptions-syntax"></a>

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

### JSON
<a name="aws-properties-osis-pipeline-vpcattachmentoptions-syntax.json"></a>

```
{
  "[AttachToVpc](#cfn-osis-pipeline-vpcattachmentoptions-attachtovpc)" : {{Boolean}},
  "[CidrBlock](#cfn-osis-pipeline-vpcattachmentoptions-cidrblock)" : {{String}}
}
```

### YAML
<a name="aws-properties-osis-pipeline-vpcattachmentoptions-syntax.yaml"></a>

```
  [AttachToVpc](#cfn-osis-pipeline-vpcattachmentoptions-attachtovpc): {{Boolean}}
  [CidrBlock](#cfn-osis-pipeline-vpcattachmentoptions-cidrblock): {{String}}
```

## Properties
<a name="aws-properties-osis-pipeline-vpcattachmentoptions-properties"></a>

`AttachToVpc`  <a name="cfn-osis-pipeline-vpcattachmentoptions-attachtovpc"></a>
Whether a VPC is attached to the pipeline.  
*Required*: Yes  
*Type*: Boolean  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`CidrBlock`  <a name="cfn-osis-pipeline-vpcattachmentoptions-cidrblock"></a>
The CIDR block to be reserved for OpenSearch Ingestion to create elastic network interfaces (ENIs).  
*Required*: Yes  
*Type*: String  
*Pattern*: `^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)/(3[0-2]|[12]?[0-9])$`  
*Update requires*: [No interruption](https://docs.amazonaws.cn/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)