All Downloads are FREE. Search and download functionalities are using the official Maven repository.

software.amazon.awscdk.services.ecs.EcsOptimizedImage Maven / Gradle / Ivy

There is a newer version: 1.204.0
Show newest version
package software.amazon.awscdk.services.ecs;

/**
 * Construct a Linux or Windows machine image from the latest ECS Optimized AMI published in SSM.
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.29.0 (build 41df200)", date = "2021-05-25T18:24:57.051Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
@software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.ecs.$Module.class, fqn = "@aws-cdk/aws-ecs.EcsOptimizedImage")
public class EcsOptimizedImage extends software.amazon.jsii.JsiiObject implements software.amazon.awscdk.services.ec2.IMachineImage {

    protected EcsOptimizedImage(final software.amazon.jsii.JsiiObjectRef objRef) {
        super(objRef);
    }

    protected EcsOptimizedImage(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
        super(initializationMode);
    }

    /**
     * Construct an Amazon Linux AMI image from the latest ECS Optimized AMI published in SSM.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable)
    public static @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.ecs.EcsOptimizedImage amazonLinux() {
        return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.awscdk.services.ecs.EcsOptimizedImage.class, "amazonLinux", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ecs.EcsOptimizedImage.class));
    }

    /**
     * Construct an Amazon Linux 2 image from the latest ECS Optimized AMI published in SSM.
     * 

* @param hardwareType ECS-optimized AMI variant to use. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.ecs.EcsOptimizedImage amazonLinux2(final @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.ecs.AmiHardwareType hardwareType) { return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.awscdk.services.ecs.EcsOptimizedImage.class, "amazonLinux2", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ecs.EcsOptimizedImage.class), new Object[] { hardwareType }); } /** * Construct an Amazon Linux 2 image from the latest ECS Optimized AMI published in SSM. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.ecs.EcsOptimizedImage amazonLinux2() { return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.awscdk.services.ecs.EcsOptimizedImage.class, "amazonLinux2", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ecs.EcsOptimizedImage.class)); } /** * Construct a Windows image from the latest ECS Optimized AMI published in SSM. *

* @param windowsVersion Windows Version to use. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.ecs.EcsOptimizedImage windows(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.ecs.WindowsOptimizedVersion windowsVersion) { return software.amazon.jsii.JsiiObject.jsiiStaticCall(software.amazon.awscdk.services.ecs.EcsOptimizedImage.class, "windows", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ecs.EcsOptimizedImage.class), new Object[] { java.util.Objects.requireNonNull(windowsVersion, "windowsVersion is required") }); } /** * Return the correct image. *

* @param scope This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.ec2.MachineImageConfig getImage(final @org.jetbrains.annotations.NotNull software.amazon.awscdk.core.Construct scope) { return software.amazon.jsii.Kernel.call(this, "getImage", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.ec2.MachineImageConfig.class), new Object[] { java.util.Objects.requireNonNull(scope, "scope is required") }); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy