interface InstanceRequireImdsv2AspectProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.EC2.InstanceRequireImdsv2AspectProps |
![]() | software.amazon.awscdk.services.ec2.InstanceRequireImdsv2AspectProps |
![]() | aws_cdk.aws_ec2.InstanceRequireImdsv2AspectProps |
![]() | @aws-cdk/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 * as ec2 from '@aws-cdk/aws-ec2';
const instanceRequireImdsv2AspectProps: ec2.InstanceRequireImdsv2AspectProps = {
suppressLaunchTemplateWarning: false,
suppressWarnings: false,
};
Properties
Name | Type | Description |
---|---|---|
suppress | boolean | Whether warnings that would be raised when an Instance is associated with an existing Launch Template should be suppressed or not. |
suppress | boolean | Whether 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.