class AutoScalingGroupRequireImdsv2Aspect
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.AutoScaling.AutoScalingGroupRequireImdsv2Aspect |
Java | software.amazon.awscdk.services.autoscaling.AutoScalingGroupRequireImdsv2Aspect |
Python | aws_cdk.aws_autoscaling.AutoScalingGroupRequireImdsv2Aspect |
TypeScript (source) | @aws-cdk/aws-autoscaling » AutoScalingGroupRequireImdsv2Aspect |
Implements
IAspect
Aspect that makes IMDSv2 required on instances deployed by AutoScalingGroups.
Example
const aspect = new autoscaling.AutoScalingGroupRequireImdsv2Aspect();
Aspects.of(this).add(aspect);
Initializer
new AutoScalingGroupRequireImdsv2Aspect()
Methods
| Name | Description |
|---|---|
| visit(node) | All aspects can visit an IConstruct. |
| protected warn(node, message) | Adds a warning annotation to a node. |
visit(node)
public visit(node: IConstruct): void
Parameters
- node
IConstruct
All aspects can visit an IConstruct.
protected warn(node, message)
protected warn(node: IConstruct, message: string): void
Parameters
- node
IConstruct— The scope to add the warning to. - message
string— The warning message.
Adds a warning annotation to a node.

.NET
Java
Python
TypeScript (