java.lang.Object
java.lang.Enum<ImageId>
software.amazon.awscdk.services.cloud9.alpha.ImageId
All Implemented Interfaces:
Serializable, Comparable<ImageId>, java.lang.constant.Constable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-22T02:24:11.400Z") @Stability(Experimental) public enum ImageId extends Enum<ImageId>
(experimental) The image ID used for creating an Amazon EC2 environment.

Example:

 import software.amazon.awscdk.services.iam.*;
 Vpc vpc;
 User user = new User(this, "user");
 user.addManagedPolicy(ManagedPolicy.fromAwsManagedPolicyName("AWSCloud9Administrator"));
 Ec2Environment.Builder.create(this, "C9Env")
         .vpc(vpc)
         .imageId(ImageId.AMAZON_LINUX_2)
         .owner(Owner.user(user))
         .build();
 
  • Enum Constant Details

    • AMAZON_LINUX_2

      @Stability(Experimental) public static final ImageId AMAZON_LINUX_2
      (experimental) Create using Amazon Linux 2.
    • AMAZON_LINUX_2023

      @Stability(Experimental) public static final ImageId AMAZON_LINUX_2023
      (experimental) Create using Amazon Linux 2023.
    • UBUNTU_18_04

      @Stability(Deprecated) @Deprecated public static final ImageId UBUNTU_18_04
      Deprecated.
      Since Ubuntu 18.04 has ended standard support as of May 31, 2023, we recommend you choose Ubuntu 22.04.
      (deprecated) Create using Ubuntu 18.04.

    • UBUNTU_22_04

      @Stability(Experimental) public static final ImageId UBUNTU_22_04
      (experimental) Create using Ubuntu 22.04.
  • Method Details

    • values

      public static ImageId[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ImageId valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null