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.97.0 (build 729de35)", date="2024-04-24T21:00:28.853Z") @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();
 
  • 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

      @Stability(Stable) public GenericWindowsImage(@NotNull Map<String,String> amiMap)
      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 interface IMachineImage
      Parameters:
      scope - This parameter is required.