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

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

package software.amazon.awscdk.services.ecs;

/**
 * Construct an Bottlerocket image from the latest AMI published in SSM.
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.31.0 (build 6fa403d)", date = "2021-07-21T15:56:51.158Z")
@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.BottleRocketImage")
public class BottleRocketImage extends software.amazon.jsii.JsiiObject implements software.amazon.awscdk.services.ec2.IMachineImage {

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

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

    /**
     * Constructs a new instance of the BottleRocketImage class.
     * 

* @param props */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public BottleRocketImage(final @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.ecs.BottleRocketImageProps props) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { props }); } /** * Constructs a new instance of the BottleRocketImage class. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public BottleRocketImage() { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this); } /** * 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") }); } /** * A fluent builder for {@link software.amazon.awscdk.services.ecs.BottleRocketImage}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static final class Builder implements software.amazon.jsii.Builder { /** * @return a new instance of {@link Builder}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public static Builder create() { return new Builder(); } private software.amazon.awscdk.services.ecs.BottleRocketImageProps.Builder props; private Builder() { } /** * The Amazon ECS variant to use. *

* Only aws-ecs-1 is currently available *

* Default: - BottlerocketEcsVariant.AWS_ECS_1 *

* @return {@code this} * @param variant The Amazon ECS variant to use. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) public Builder variant(final software.amazon.awscdk.services.ecs.BottlerocketEcsVariant variant) { this.props().variant(variant); return this; } /** * @returns a newly built instance of {@link software.amazon.awscdk.services.ecs.BottleRocketImage}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Stable) @Override public software.amazon.awscdk.services.ecs.BottleRocketImage build() { return new software.amazon.awscdk.services.ecs.BottleRocketImage( this.props != null ? this.props.build() : null ); } private software.amazon.awscdk.services.ecs.BottleRocketImageProps.Builder props() { if (this.props == null) { this.props = new software.amazon.awscdk.services.ecs.BottleRocketImageProps.Builder(); } return this.props; } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy