@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.419Z") @Stability(value=Stable) public class GenericSSMParameterImage extends software.amazon.jsii.JsiiObject implements IMachineImage
This Machine Image automatically updates to the latest version on every deployment. Be aware this will cause your instances to be replaced when a new version of the image becomes available. Do not store stateful information on the instance if you are using this image.
The AMI ID is selected using the values published to the SSM parameter store.
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;
GenericSSMParameterImage genericSSMParameterImage = new GenericSSMParameterImage("parameterName", OperatingSystemType.LINUX, userData);
software.amazon.jsii.JsiiObject.InitializationModeIMachineImage.Jsii$Default, IMachineImage.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
GenericSSMParameterImage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
GenericSSMParameterImage(software.amazon.jsii.JsiiObjectRef objRef) |
|
GenericSSMParameterImage(String parameterName,
OperatingSystemType os) |
|
GenericSSMParameterImage(String parameterName,
OperatingSystemType os,
UserData userData) |
| Modifier and Type | Method and Description |
|---|---|
MachineImageConfig |
getImage(software.constructs.Construct scope)
Return the image to use in the given context.
|
String |
getParameterName()
Name of the SSM parameter we're looking up.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected GenericSSMParameterImage(software.amazon.jsii.JsiiObjectRef objRef)
protected GenericSSMParameterImage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public GenericSSMParameterImage(@NotNull
String parameterName,
@NotNull
OperatingSystemType os,
@Nullable
UserData userData)
parameterName - This parameter is required.os - This parameter is required.userData - @Stability(value=Stable)
public GenericSSMParameterImage(@NotNull
String parameterName,
@NotNull
OperatingSystemType os)
parameterName - This parameter is required.os - This parameter is required.@Stability(value=Stable) @NotNull public MachineImageConfig getImage(@NotNull software.constructs.Construct scope)
getImage in interface IMachineImagescope - This parameter is required.@Stability(value=Stable) @NotNull public String getParameterName()
Copyright © 2022. All rights reserved.