# VpcDestinationPropertiesProperty

The properties of a virtual private cloud (VPC) destination.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iot as iot } from 'aws-cdk-lib';
const vpcDestinationPropertiesProperty: iot.CfnTopicRuleDestination.VpcDestinationPropertiesProperty = {
  roleArn: 'roleArn',
  securityGroups: ['securityGroups'],
  subnetIds: ['subnetIds'],
  vpcId: 'vpcId',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_iot as iot

vpc_destination_properties_property = iot.CfnTopicRuleDestination.VpcDestinationPropertiesProperty(
    role_arn="roleArn",
    security_groups=["securityGroups"],
    subnet_ids=["subnetIds"],
    vpc_id="vpcId"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.iot.*;

VpcDestinationPropertiesProperty vpcDestinationPropertiesProperty = VpcDestinationPropertiesProperty.builder()
        .roleArn("roleArn")
        .securityGroups(List.of("securityGroups"))
        .subnetIds(List.of("subnetIds"))
        .vpcId("vpcId")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.IoT;

var vpcDestinationPropertiesProperty = new VpcDestinationPropertiesProperty {
    RoleArn = "roleArn",
    SecurityGroups = new [] { "securityGroups" },
    SubnetIds = new [] { "subnetIds" },
    VpcId = "vpcId"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

vpcDestinationPropertiesProperty := &VpcDestinationPropertiesProperty{
	RoleArn: jsii.String("roleArn"),
	SecurityGroups: []*string{
		jsii.String("securityGroups"),
	},
	SubnetIds: []*string{
		jsii.String("subnetIds"),
	},
	VpcId: jsii.String("vpcId"),
}
```

## Properties

- `roleArn`: string — The ARN of a role that has permission to create and attach to elastic network interfaces (ENIs).

- `securityGroups`: string[] — The security groups of the VPC destination.

- `subnetIds`: string[] — The subnet IDs of the VPC destination.

- `vpcId`: string — The ID of the VPC.
