Class GenericWindowsImage
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.ec2.GenericWindowsImage
- All Implemented Interfaces:
IMachineImage
,software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2025-01-15T21:09:18.161Z")
@Stability(Stable)
public class GenericWindowsImage
extends software.amazon.jsii.JsiiObject
implements IMachineImage
Construct a Windows machine image from an AMI map.
Allows you to create a generic Windows EC2 , manually specify an AMI map.
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; GenericWindowsImage genericWindowsImage = GenericWindowsImage.Builder.create(Map.of( "amiMapKey", "amiMap")) .userData(userData) .build();
-
Nested Class Summary
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
ModifierConstructorDescriptionGenericWindowsImage
(Map<String, String> amiMap) GenericWindowsImage
(Map<String, String> amiMap, GenericWindowsImageProps props) protected
GenericWindowsImage
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
GenericWindowsImage
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptiongetImage
(software.constructs.Construct scope) Return the image to use in the given context.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
-
GenericWindowsImage
protected GenericWindowsImage(software.amazon.jsii.JsiiObjectRef objRef) -
GenericWindowsImage
protected GenericWindowsImage(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
GenericWindowsImage
@Stability(Stable) public GenericWindowsImage(@NotNull Map<String, String> amiMap, @Nullable GenericWindowsImageProps props) - Parameters:
amiMap
- This parameter is required.props
-
-
GenericWindowsImage
- Parameters:
amiMap
- 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:
getImage
in interfaceIMachineImage
- Parameters:
scope
- This parameter is required.
-