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

com.pulumi.aws.imagebuilder.ImageRecipeArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

The newest version!
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.aws.imagebuilder;

import com.pulumi.aws.imagebuilder.inputs.ImageRecipeBlockDeviceMappingArgs;
import com.pulumi.aws.imagebuilder.inputs.ImageRecipeComponentArgs;
import com.pulumi.aws.imagebuilder.inputs.ImageRecipeSystemsManagerAgentArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class ImageRecipeArgs extends com.pulumi.resources.ResourceArgs {

    public static final ImageRecipeArgs Empty = new ImageRecipeArgs();

    /**
     * Configuration block(s) with block device mappings for the image recipe. Detailed below.
     * 
     */
    @Import(name="blockDeviceMappings")
    private @Nullable Output> blockDeviceMappings;

    /**
     * @return Configuration block(s) with block device mappings for the image recipe. Detailed below.
     * 
     */
    public Optional>> blockDeviceMappings() {
        return Optional.ofNullable(this.blockDeviceMappings);
    }

    /**
     * Ordered configuration block(s) with components for the image recipe. Detailed below.
     * 
     */
    @Import(name="components", required=true)
    private Output> components;

    /**
     * @return Ordered configuration block(s) with components for the image recipe. Detailed below.
     * 
     */
    public Output> components() {
        return this.components;
    }

    /**
     * Description of the image recipe.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return Description of the image recipe.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * Name of the image recipe.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Name of the image recipe.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The image recipe uses this image as a base from which to build your customized image. The value can be the base image ARN or an AMI ID.
     * 
     */
    @Import(name="parentImage", required=true)
    private Output parentImage;

    /**
     * @return The image recipe uses this image as a base from which to build your customized image. The value can be the base image ARN or an AMI ID.
     * 
     */
    public Output parentImage() {
        return this.parentImage;
    }

    /**
     * Configuration block for the Systems Manager Agent installed by default by Image Builder. Detailed below.
     * 
     */
    @Import(name="systemsManagerAgent")
    private @Nullable Output systemsManagerAgent;

    /**
     * @return Configuration block for the Systems Manager Agent installed by default by Image Builder. Detailed below.
     * 
     */
    public Optional> systemsManagerAgent() {
        return Optional.ofNullable(this.systemsManagerAgent);
    }

    /**
     * Key-value map of resource tags for the image recipe. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Key-value map of resource tags for the image recipe. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * Base64 encoded user data. Use this to provide commands or a command script to run when you launch your build instance.
     * 
     */
    @Import(name="userDataBase64")
    private @Nullable Output userDataBase64;

    /**
     * @return Base64 encoded user data. Use this to provide commands or a command script to run when you launch your build instance.
     * 
     */
    public Optional> userDataBase64() {
        return Optional.ofNullable(this.userDataBase64);
    }

    /**
     * The semantic version of the image recipe, which specifies the version in the following format, with numeric values in each position to indicate a specific version: major.minor.patch. For example: 1.0.0.
     * 
     * The following attributes are optional:
     * 
     */
    @Import(name="version", required=true)
    private Output version;

    /**
     * @return The semantic version of the image recipe, which specifies the version in the following format, with numeric values in each position to indicate a specific version: major.minor.patch. For example: 1.0.0.
     * 
     * The following attributes are optional:
     * 
     */
    public Output version() {
        return this.version;
    }

    /**
     * The working directory to be used during build and test workflows.
     * 
     */
    @Import(name="workingDirectory")
    private @Nullable Output workingDirectory;

    /**
     * @return The working directory to be used during build and test workflows.
     * 
     */
    public Optional> workingDirectory() {
        return Optional.ofNullable(this.workingDirectory);
    }

    private ImageRecipeArgs() {}

    private ImageRecipeArgs(ImageRecipeArgs $) {
        this.blockDeviceMappings = $.blockDeviceMappings;
        this.components = $.components;
        this.description = $.description;
        this.name = $.name;
        this.parentImage = $.parentImage;
        this.systemsManagerAgent = $.systemsManagerAgent;
        this.tags = $.tags;
        this.userDataBase64 = $.userDataBase64;
        this.version = $.version;
        this.workingDirectory = $.workingDirectory;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(ImageRecipeArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private ImageRecipeArgs $;

        public Builder() {
            $ = new ImageRecipeArgs();
        }

        public Builder(ImageRecipeArgs defaults) {
            $ = new ImageRecipeArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param blockDeviceMappings Configuration block(s) with block device mappings for the image recipe. Detailed below.
         * 
         * @return builder
         * 
         */
        public Builder blockDeviceMappings(@Nullable Output> blockDeviceMappings) {
            $.blockDeviceMappings = blockDeviceMappings;
            return this;
        }

        /**
         * @param blockDeviceMappings Configuration block(s) with block device mappings for the image recipe. Detailed below.
         * 
         * @return builder
         * 
         */
        public Builder blockDeviceMappings(List blockDeviceMappings) {
            return blockDeviceMappings(Output.of(blockDeviceMappings));
        }

        /**
         * @param blockDeviceMappings Configuration block(s) with block device mappings for the image recipe. Detailed below.
         * 
         * @return builder
         * 
         */
        public Builder blockDeviceMappings(ImageRecipeBlockDeviceMappingArgs... blockDeviceMappings) {
            return blockDeviceMappings(List.of(blockDeviceMappings));
        }

        /**
         * @param components Ordered configuration block(s) with components for the image recipe. Detailed below.
         * 
         * @return builder
         * 
         */
        public Builder components(Output> components) {
            $.components = components;
            return this;
        }

        /**
         * @param components Ordered configuration block(s) with components for the image recipe. Detailed below.
         * 
         * @return builder
         * 
         */
        public Builder components(List components) {
            return components(Output.of(components));
        }

        /**
         * @param components Ordered configuration block(s) with components for the image recipe. Detailed below.
         * 
         * @return builder
         * 
         */
        public Builder components(ImageRecipeComponentArgs... components) {
            return components(List.of(components));
        }

        /**
         * @param description Description of the image recipe.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description Description of the image recipe.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param name Name of the image recipe.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name of the image recipe.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param parentImage The image recipe uses this image as a base from which to build your customized image. The value can be the base image ARN or an AMI ID.
         * 
         * @return builder
         * 
         */
        public Builder parentImage(Output parentImage) {
            $.parentImage = parentImage;
            return this;
        }

        /**
         * @param parentImage The image recipe uses this image as a base from which to build your customized image. The value can be the base image ARN or an AMI ID.
         * 
         * @return builder
         * 
         */
        public Builder parentImage(String parentImage) {
            return parentImage(Output.of(parentImage));
        }

        /**
         * @param systemsManagerAgent Configuration block for the Systems Manager Agent installed by default by Image Builder. Detailed below.
         * 
         * @return builder
         * 
         */
        public Builder systemsManagerAgent(@Nullable Output systemsManagerAgent) {
            $.systemsManagerAgent = systemsManagerAgent;
            return this;
        }

        /**
         * @param systemsManagerAgent Configuration block for the Systems Manager Agent installed by default by Image Builder. Detailed below.
         * 
         * @return builder
         * 
         */
        public Builder systemsManagerAgent(ImageRecipeSystemsManagerAgentArgs systemsManagerAgent) {
            return systemsManagerAgent(Output.of(systemsManagerAgent));
        }

        /**
         * @param tags Key-value map of resource tags for the image recipe. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Key-value map of resource tags for the image recipe. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param userDataBase64 Base64 encoded user data. Use this to provide commands or a command script to run when you launch your build instance.
         * 
         * @return builder
         * 
         */
        public Builder userDataBase64(@Nullable Output userDataBase64) {
            $.userDataBase64 = userDataBase64;
            return this;
        }

        /**
         * @param userDataBase64 Base64 encoded user data. Use this to provide commands or a command script to run when you launch your build instance.
         * 
         * @return builder
         * 
         */
        public Builder userDataBase64(String userDataBase64) {
            return userDataBase64(Output.of(userDataBase64));
        }

        /**
         * @param version The semantic version of the image recipe, which specifies the version in the following format, with numeric values in each position to indicate a specific version: major.minor.patch. For example: 1.0.0.
         * 
         * The following attributes are optional:
         * 
         * @return builder
         * 
         */
        public Builder version(Output version) {
            $.version = version;
            return this;
        }

        /**
         * @param version The semantic version of the image recipe, which specifies the version in the following format, with numeric values in each position to indicate a specific version: major.minor.patch. For example: 1.0.0.
         * 
         * The following attributes are optional:
         * 
         * @return builder
         * 
         */
        public Builder version(String version) {
            return version(Output.of(version));
        }

        /**
         * @param workingDirectory The working directory to be used during build and test workflows.
         * 
         * @return builder
         * 
         */
        public Builder workingDirectory(@Nullable Output workingDirectory) {
            $.workingDirectory = workingDirectory;
            return this;
        }

        /**
         * @param workingDirectory The working directory to be used during build and test workflows.
         * 
         * @return builder
         * 
         */
        public Builder workingDirectory(String workingDirectory) {
            return workingDirectory(Output.of(workingDirectory));
        }

        public ImageRecipeArgs build() {
            if ($.components == null) {
                throw new MissingRequiredPropertyException("ImageRecipeArgs", "components");
            }
            if ($.parentImage == null) {
                throw new MissingRequiredPropertyException("ImageRecipeArgs", "parentImage");
            }
            if ($.version == null) {
                throw new MissingRequiredPropertyException("ImageRecipeArgs", "version");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy