Class InstanceRequireImdsv2Aspect
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.ec2.InstanceRequireImdsv2Aspect
- All Implemented Interfaces:
IAspect,software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:39.404Z")
@Stability(Stable)
public class InstanceRequireImdsv2Aspect
extends software.amazon.jsii.JsiiObject
implements IAspect
Aspect that applies IMDS configuration on EC2 Instance constructs.
This aspect configures IMDS on an EC2 instance by creating a Launch Template with the IMDS configuration and associating that Launch Template with the instance. If an Instance is already associated with a Launch Template, a warning will (optionally) be added to the construct node and it will be skipped.
To cover Instances already associated with Launch Templates, use LaunchTemplateImdsAspect.
Example:
InstanceRequireImdsv2Aspect aspect = new InstanceRequireImdsv2Aspect(); Aspects.of(this).add(aspect);
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forInstanceRequireImdsv2Aspect.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IAspect
IAspect.Jsii$Default, IAspect.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedInstanceRequireImdsv2Aspect(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedInstanceRequireImdsv2Aspect(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionprotected Booleanvoidvisit(IConstruct node) All aspects can visit an IConstruct.protected voidwarn(IConstruct node, String message) Adds a warning annotation to a node, unlesssuppressWarningsis true.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
InstanceRequireImdsv2Aspect
protected InstanceRequireImdsv2Aspect(software.amazon.jsii.JsiiObjectRef objRef) -
InstanceRequireImdsv2Aspect
protected InstanceRequireImdsv2Aspect(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
InstanceRequireImdsv2Aspect
@Stability(Stable) public InstanceRequireImdsv2Aspect(@Nullable InstanceRequireImdsv2AspectProps props) - Parameters:
props-
-
InstanceRequireImdsv2Aspect
@Stability(Stable) public InstanceRequireImdsv2Aspect()
-
-
Method Details
-
visit
All aspects can visit an IConstruct. -
warn
Adds a warning annotation to a node, unlesssuppressWarningsis true.- Parameters:
node- This parameter is required.message- This parameter is required.
-
getSuppressWarnings
-