SubnetReference

class aws_cdk.aws_ec2.SubnetReference(*, subnet_id)

Bases: object

A reference to a Subnet resource.

Parameters:

subnet_id (str) – The SubnetId of the Subnet resource.

ExampleMetadata:

fixture=_generated

Example:

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

subnet_reference = ec2.SubnetReference(
    subnet_id="subnetId"
)

Attributes

subnet_id

The SubnetId of the Subnet resource.