Class ResolveSsmParameterAtLaunchImage
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.ec2.ResolveSsmParameterAtLaunchImage
- All Implemented Interfaces:
IMachineImage,software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-20T23:37:19.406Z")
@Stability(Stable)
public class ResolveSsmParameterAtLaunchImage
extends software.amazon.jsii.JsiiObject
implements IMachineImage
Select the image based on a given SSM parameter at instance launch time.
This Machine Image comes with an imageId as resolve:ssm:parameter-name or resolve:ssm:parameter-name:version format
as described in the document:
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;
UserData userData;
ResolveSsmParameterAtLaunchImage resolveSsmParameterAtLaunchImage = ResolveSsmParameterAtLaunchImage.Builder.create("parameterName")
.additionalCacheKey("additionalCacheKey")
.cachedInContext(false)
.os(OperatingSystemType.LINUX)
.parameterVersion("parameterVersion")
.userData(userData)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forResolveSsmParameterAtLaunchImage.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.IMachineImage
IMachineImage.Jsii$Default, IMachineImage.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionResolveSsmParameterAtLaunchImage(String parameterName) ResolveSsmParameterAtLaunchImage(String parameterName, SsmParameterImageOptions props) protectedResolveSsmParameterAtLaunchImage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedResolveSsmParameterAtLaunchImage(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptiongetImage(software.constructs.Construct _scope) Return the image to use in the given context.Name of the SSM parameter we're looking up.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
-
ResolveSsmParameterAtLaunchImage
protected ResolveSsmParameterAtLaunchImage(software.amazon.jsii.JsiiObjectRef objRef) -
ResolveSsmParameterAtLaunchImage
protected ResolveSsmParameterAtLaunchImage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
ResolveSsmParameterAtLaunchImage
@Stability(Stable) public ResolveSsmParameterAtLaunchImage(@NotNull String parameterName, @Nullable SsmParameterImageOptions props) - Parameters:
parameterName- This parameter is required.props-
-
ResolveSsmParameterAtLaunchImage
- Parameters:
parameterName- This parameter is required.
-
-
Method Details
-
getImage
@Stability(Stable) @NotNull public MachineImageConfig getImage(@NotNull software.constructs.Construct _scope) Return the image to use in the given context.- Specified by:
getImagein interfaceIMachineImage- Parameters:
_scope- This parameter is required.
-
getParameterName
Name of the SSM parameter we're looking up.
-