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.104.0 (build e79254c)",
date="2024-12-06T14:43:18.034Z")
@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") .cachedInContext(false) .os(OperatingSystemType.LINUX) .parameterVersion("parameterVersion") .userData(userData) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A fluent builder forResolveSsmParameterAtLaunchImage
.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.IMachineImage
IMachineImage.Jsii$Default, IMachineImage.Jsii$Proxy
-
Constructor Summary
ModifierConstructorDescriptionResolveSsmParameterAtLaunchImage
(String parameterName) ResolveSsmParameterAtLaunchImage
(String parameterName, SsmParameterImageOptions props) protected
ResolveSsmParameterAtLaunchImage
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
ResolveSsmParameterAtLaunchImage
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptiongetImage
(software.constructs.Construct __) 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, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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 __) Return the image to use in the given context.- Specified by:
getImage
in interfaceIMachineImage
- Parameters:
__
- This parameter is required._
- This parameter is required.
-
getParameterName
Name of the SSM parameter we're looking up.
-