aws-cdk-lib.aws_ec2.InstanceRequireImdsv2AspectProps

interface InstanceRequireImdsv2AspectProps

LanguageType name
.NETAmazon.CDK.AWS.EC2.InstanceRequireImdsv2AspectProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsec2#InstanceRequireImdsv2AspectProps
Javasoftware.amazon.awscdk.services.ec2.InstanceRequireImdsv2AspectProps
Pythonaws_cdk.aws_ec2.InstanceRequireImdsv2AspectProps
TypeScript (source)aws-cdk-lib » aws_ec2 » InstanceRequireImdsv2AspectProps

Properties for InstanceRequireImdsv2Aspect.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const instanceRequireImdsv2AspectProps: ec2.InstanceRequireImdsv2AspectProps = {
  suppressLaunchTemplateWarning: false,
  suppressWarnings: false,
};

Properties

NameTypeDescription
suppressLaunchTemplateWarning?booleanWhether warnings that would be raised when an Instance is associated with an existing Launch Template should be suppressed or not.
suppressWarnings?booleanWhether warning annotations from this Aspect should be suppressed or not.

suppressLaunchTemplateWarning?

Type: boolean (optional, default: false)

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.


suppressWarnings?

Type: boolean (optional, default: false)

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