InstanceRequireImdsv2AspectProps

class aws_cdk.aws_ec2.InstanceRequireImdsv2AspectProps(*, suppress_launch_template_warning=None, suppress_warnings=None)

Bases: object

Properties for InstanceRequireImdsv2Aspect.

Parameters:
  • suppress_launch_template_warning (Optional[bool]) – Whether warnings that would be raised when an Instance is associated with an existing Launch Template should be suppressed or not. You can set this to true if LaunchTemplateImdsAspect is being used alongside this Aspect to suppress false-positive warnings because any Launch Templates associated with Instances will still be covered. Default: - false

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

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

instance_require_imdsv2_aspect_props = ec2.InstanceRequireImdsv2AspectProps(
    suppress_launch_template_warning=False,
    suppress_warnings=False
)

Attributes

suppress_launch_template_warning

Whether warnings that would be raised when an Instance is associated with an existing Launch Template should be suppressed or not.

You can set this to true if LaunchTemplateImdsAspect is being used alongside this Aspect to suppress false-positive warnings because any Launch Templates associated with Instances will still be covered.

Default:
  • false

suppress_warnings

Whether warning annotations from this Aspect should be suppressed or not.

Default:
  • false