InstanceReference

class aws_cdk.aws_ec2.InstanceReference(*, instance_id)

Bases: object

A reference to a Instance resource.

Parameters:

instance_id (str) – The InstanceId of the Instance 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

instance_reference = ec2.InstanceReference(
    instance_id="instanceId"
)

Attributes

instance_id

The InstanceId of the Instance resource.