Class AutoScalingGroupRequireImdsv2Aspect
Aspect that makes IMDSv2 required on instances deployed by AutoScalingGroups.
Inheritance
System.Object
AutoScalingGroupRequireImdsv2Aspect
Implements
Namespace: Amazon.CDK.AWS.AutoScaling
Assembly: Amazon.CDK.AWS.AutoScaling.dll
Syntax (csharp)
public class AutoScalingGroupRequireImdsv2Aspect : DeputyBase, IAspect
Syntax (vb)
Public Class AutoScalingGroupRequireImdsv2Aspect
Inherits DeputyBase
Implements IAspect
Remarks
ExampleMetadata: infused
Examples
var aspect = new AutoScalingGroupRequireImdsv2Aspect();
Aspects.Of(this).Add(aspect);
Synopsis
Constructors
| AutoScalingGroupRequireImdsv2Aspect() | |
| AutoScalingGroupRequireImdsv2Aspect(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
| AutoScalingGroupRequireImdsv2Aspect(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Methods
| Visit(IConstruct) | All aspects can visit an IConstruct. |
| Warn(IConstruct, String) | Adds a warning annotation to a node. |
Constructors
AutoScalingGroupRequireImdsv2Aspect()
public AutoScalingGroupRequireImdsv2Aspect()
AutoScalingGroupRequireImdsv2Aspect(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected AutoScalingGroupRequireImdsv2Aspect(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
AutoScalingGroupRequireImdsv2Aspect(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected AutoScalingGroupRequireImdsv2Aspect(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Methods
Visit(IConstruct)
All aspects can visit an IConstruct.
public virtual void Visit(IConstruct node)
Parameters
- node IConstruct
Warn(IConstruct, String)
Adds a warning annotation to a node.
protected virtual void Warn(IConstruct node, string message)
Parameters
- node IConstruct
The scope to add the warning to.
- message System.String
The warning message.