@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.455Z") @Stability(value=Stable) public class InstanceRequireImdsv2Aspect extends software.amazon.jsii.JsiiObject implements IAspect
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:
// Example automatically generated from non-compiling source. May contain errors. InstanceRequireImdsv2Aspect aspect = new InstanceRequireImdsv2Aspect(); Aspects.of(this).add(aspect);
| Modifier and Type | Class and Description |
|---|---|
static class |
InstanceRequireImdsv2Aspect.Builder
A fluent builder for
InstanceRequireImdsv2Aspect. |
software.amazon.jsii.JsiiObject.InitializationModeIAspect.Jsii$Default, IAspect.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
InstanceRequireImdsv2Aspect() |
|
InstanceRequireImdsv2Aspect(InstanceRequireImdsv2AspectProps props) |
protected |
InstanceRequireImdsv2Aspect(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
InstanceRequireImdsv2Aspect(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
protected Boolean |
getSuppressWarnings() |
void |
visit(software.constructs.IConstruct node)
All aspects can visit an IConstruct.
|
protected void |
warn(software.constructs.IConstruct node,
String message)
Adds a warning annotation to a node, unless `suppressWarnings` is true.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected InstanceRequireImdsv2Aspect(software.amazon.jsii.JsiiObjectRef objRef)
protected InstanceRequireImdsv2Aspect(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public InstanceRequireImdsv2Aspect(@Nullable
InstanceRequireImdsv2AspectProps props)
props - @Stability(value=Stable) public InstanceRequireImdsv2Aspect()
@Stability(value=Stable)
public void visit(@NotNull
software.constructs.IConstruct node)
@Stability(value=Stable)
protected void warn(@NotNull
software.constructs.IConstruct node,
@NotNull
String message)
node - This parameter is required.message - This parameter is required.@Stability(value=Stable) @NotNull protected Boolean getSuppressWarnings()
Copyright © 2022. All rights reserved.