VpcDestinationPropertiesProperty Struct
The properties of a virtual private cloud (VPC) destination.
| Source | |
|---|---|
| Type last changed |
Example
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
# 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
// 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();
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"
};
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
roleArnoptionalstringrole_arnoptionalstrroleArnoptionalStringRoleArnoptionalstringRoleArnoptional*string #The ARN of a role that has permission to create and attach to elastic network interfaces (ENIs).
securityGroupsoptionalstring[]security_groupsoptionaltyping.List[str]securityGroupsoptionalList<String>SecurityGroupsoptionalstring[]SecurityGroupsoptional*[]*string #The security groups of the VPC destination.
subnetIdsoptionalstring[]subnet_idsoptionaltyping.List[str]subnetIdsoptionalList<String>SubnetIdsoptionalstring[]SubnetIdsoptional*[]*string #The subnet IDs of the VPC destination.
The ID of the VPC.