Enum 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();
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription(experimental) Create using Amazon Linux 2.(experimental) Create using Amazon Linux 2023.Deprecated.Since Ubuntu 18.04 has ended standard support as of May 31, 2023, we recommend you choose Ubuntu 22.04.(experimental) Create using Ubuntu 22.04. -
Method Summary
-
Enum Constant Details
-
AMAZON_LINUX_2
(experimental) Create using Amazon Linux 2. -
AMAZON_LINUX_2023
(experimental) Create using Amazon Linux 2023. -
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
(experimental) Create using Ubuntu 22.04.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-