LaunchTemplateRequireImdsv2Aspect

class aws_cdk.aws_ec2.LaunchTemplateRequireImdsv2Aspect(*, suppress_warnings=None)

Bases: object

Aspect that applies IMDS configuration on EC2 Launch Template constructs.

See:

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata-metadataoptions.html

ExampleMetadata:

fixture=_generated

Example:

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

launch_template_require_imdsv2_aspect = ec2.LaunchTemplateRequireImdsv2Aspect(
    suppress_warnings=False
)
Parameters:

suppress_warnings (Optional[bool]) – Whether warning annotations from this Aspect should be suppressed or not. Default: - false

Methods

visit(node)

All aspects can visit an IConstruct.

Parameters:

node (IConstruct) –

Return type:

None