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

com.pulumi.aws.appstream.ImageBuilderArgs Maven / Gradle / Ivy

Go to download

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

There is a newer version: 6.72.0
Show 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.appstream;

import com.pulumi.aws.appstream.inputs.ImageBuilderAccessEndpointArgs;
import com.pulumi.aws.appstream.inputs.ImageBuilderDomainJoinInfoArgs;
import com.pulumi.aws.appstream.inputs.ImageBuilderVpcConfigArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
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 ImageBuilderArgs extends com.pulumi.resources.ResourceArgs {

    public static final ImageBuilderArgs Empty = new ImageBuilderArgs();

    /**
     * Set of interface VPC endpoint (interface endpoint) objects. Maximum of 4. See below.
     * 
     */
    @Import(name="accessEndpoints")
    private @Nullable Output> accessEndpoints;

    /**
     * @return Set of interface VPC endpoint (interface endpoint) objects. Maximum of 4. See below.
     * 
     */
    public Optional>> accessEndpoints() {
        return Optional.ofNullable(this.accessEndpoints);
    }

    /**
     * Version of the AppStream 2.0 agent to use for this image builder.
     * 
     */
    @Import(name="appstreamAgentVersion")
    private @Nullable Output appstreamAgentVersion;

    /**
     * @return Version of the AppStream 2.0 agent to use for this image builder.
     * 
     */
    public Optional> appstreamAgentVersion() {
        return Optional.ofNullable(this.appstreamAgentVersion);
    }

    /**
     * Description to display.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return Description to display.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * Human-readable friendly name for the AppStream image builder.
     * 
     */
    @Import(name="displayName")
    private @Nullable Output displayName;

    /**
     * @return Human-readable friendly name for the AppStream image builder.
     * 
     */
    public Optional> displayName() {
        return Optional.ofNullable(this.displayName);
    }

    /**
     * Configuration block for the name of the directory and organizational unit (OU) to use to join the image builder to a Microsoft Active Directory domain. See below.
     * 
     */
    @Import(name="domainJoinInfo")
    private @Nullable Output domainJoinInfo;

    /**
     * @return Configuration block for the name of the directory and organizational unit (OU) to use to join the image builder to a Microsoft Active Directory domain. See below.
     * 
     */
    public Optional> domainJoinInfo() {
        return Optional.ofNullable(this.domainJoinInfo);
    }

    /**
     * Enables or disables default internet access for the image builder.
     * 
     */
    @Import(name="enableDefaultInternetAccess")
    private @Nullable Output enableDefaultInternetAccess;

    /**
     * @return Enables or disables default internet access for the image builder.
     * 
     */
    public Optional> enableDefaultInternetAccess() {
        return Optional.ofNullable(this.enableDefaultInternetAccess);
    }

    /**
     * ARN of the IAM role to apply to the image builder.
     * 
     */
    @Import(name="iamRoleArn")
    private @Nullable Output iamRoleArn;

    /**
     * @return ARN of the IAM role to apply to the image builder.
     * 
     */
    public Optional> iamRoleArn() {
        return Optional.ofNullable(this.iamRoleArn);
    }

    /**
     * ARN of the public, private, or shared image to use.
     * 
     */
    @Import(name="imageArn")
    private @Nullable Output imageArn;

    /**
     * @return ARN of the public, private, or shared image to use.
     * 
     */
    public Optional> imageArn() {
        return Optional.ofNullable(this.imageArn);
    }

    /**
     * Name of the image used to create the image builder.
     * 
     */
    @Import(name="imageName")
    private @Nullable Output imageName;

    /**
     * @return Name of the image used to create the image builder.
     * 
     */
    public Optional> imageName() {
        return Optional.ofNullable(this.imageName);
    }

    /**
     * Instance type to use when launching the image builder.
     * 
     */
    @Import(name="instanceType", required=true)
    private Output instanceType;

    /**
     * @return Instance type to use when launching the image builder.
     * 
     */
    public Output instanceType() {
        return this.instanceType;
    }

    /**
     * Unique name for the image builder.
     * 
     * The following arguments are optional:
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Unique name for the image builder.
     * 
     * The following arguments are optional:
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Map of tags to assign to the instance. 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 Map of tags to assign to the instance. 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);
    }

    /**
     * Configuration block for the VPC configuration for the image builder. See below.
     * 
     */
    @Import(name="vpcConfig")
    private @Nullable Output vpcConfig;

    /**
     * @return Configuration block for the VPC configuration for the image builder. See below.
     * 
     */
    public Optional> vpcConfig() {
        return Optional.ofNullable(this.vpcConfig);
    }

    private ImageBuilderArgs() {}

    private ImageBuilderArgs(ImageBuilderArgs $) {
        this.accessEndpoints = $.accessEndpoints;
        this.appstreamAgentVersion = $.appstreamAgentVersion;
        this.description = $.description;
        this.displayName = $.displayName;
        this.domainJoinInfo = $.domainJoinInfo;
        this.enableDefaultInternetAccess = $.enableDefaultInternetAccess;
        this.iamRoleArn = $.iamRoleArn;
        this.imageArn = $.imageArn;
        this.imageName = $.imageName;
        this.instanceType = $.instanceType;
        this.name = $.name;
        this.tags = $.tags;
        this.vpcConfig = $.vpcConfig;
    }

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

    public static final class Builder {
        private ImageBuilderArgs $;

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

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

        /**
         * @param accessEndpoints Set of interface VPC endpoint (interface endpoint) objects. Maximum of 4. See below.
         * 
         * @return builder
         * 
         */
        public Builder accessEndpoints(@Nullable Output> accessEndpoints) {
            $.accessEndpoints = accessEndpoints;
            return this;
        }

        /**
         * @param accessEndpoints Set of interface VPC endpoint (interface endpoint) objects. Maximum of 4. See below.
         * 
         * @return builder
         * 
         */
        public Builder accessEndpoints(List accessEndpoints) {
            return accessEndpoints(Output.of(accessEndpoints));
        }

        /**
         * @param accessEndpoints Set of interface VPC endpoint (interface endpoint) objects. Maximum of 4. See below.
         * 
         * @return builder
         * 
         */
        public Builder accessEndpoints(ImageBuilderAccessEndpointArgs... accessEndpoints) {
            return accessEndpoints(List.of(accessEndpoints));
        }

        /**
         * @param appstreamAgentVersion Version of the AppStream 2.0 agent to use for this image builder.
         * 
         * @return builder
         * 
         */
        public Builder appstreamAgentVersion(@Nullable Output appstreamAgentVersion) {
            $.appstreamAgentVersion = appstreamAgentVersion;
            return this;
        }

        /**
         * @param appstreamAgentVersion Version of the AppStream 2.0 agent to use for this image builder.
         * 
         * @return builder
         * 
         */
        public Builder appstreamAgentVersion(String appstreamAgentVersion) {
            return appstreamAgentVersion(Output.of(appstreamAgentVersion));
        }

        /**
         * @param description Description to display.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description Description to display.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param displayName Human-readable friendly name for the AppStream image builder.
         * 
         * @return builder
         * 
         */
        public Builder displayName(@Nullable Output displayName) {
            $.displayName = displayName;
            return this;
        }

        /**
         * @param displayName Human-readable friendly name for the AppStream image builder.
         * 
         * @return builder
         * 
         */
        public Builder displayName(String displayName) {
            return displayName(Output.of(displayName));
        }

        /**
         * @param domainJoinInfo Configuration block for the name of the directory and organizational unit (OU) to use to join the image builder to a Microsoft Active Directory domain. See below.
         * 
         * @return builder
         * 
         */
        public Builder domainJoinInfo(@Nullable Output domainJoinInfo) {
            $.domainJoinInfo = domainJoinInfo;
            return this;
        }

        /**
         * @param domainJoinInfo Configuration block for the name of the directory and organizational unit (OU) to use to join the image builder to a Microsoft Active Directory domain. See below.
         * 
         * @return builder
         * 
         */
        public Builder domainJoinInfo(ImageBuilderDomainJoinInfoArgs domainJoinInfo) {
            return domainJoinInfo(Output.of(domainJoinInfo));
        }

        /**
         * @param enableDefaultInternetAccess Enables or disables default internet access for the image builder.
         * 
         * @return builder
         * 
         */
        public Builder enableDefaultInternetAccess(@Nullable Output enableDefaultInternetAccess) {
            $.enableDefaultInternetAccess = enableDefaultInternetAccess;
            return this;
        }

        /**
         * @param enableDefaultInternetAccess Enables or disables default internet access for the image builder.
         * 
         * @return builder
         * 
         */
        public Builder enableDefaultInternetAccess(Boolean enableDefaultInternetAccess) {
            return enableDefaultInternetAccess(Output.of(enableDefaultInternetAccess));
        }

        /**
         * @param iamRoleArn ARN of the IAM role to apply to the image builder.
         * 
         * @return builder
         * 
         */
        public Builder iamRoleArn(@Nullable Output iamRoleArn) {
            $.iamRoleArn = iamRoleArn;
            return this;
        }

        /**
         * @param iamRoleArn ARN of the IAM role to apply to the image builder.
         * 
         * @return builder
         * 
         */
        public Builder iamRoleArn(String iamRoleArn) {
            return iamRoleArn(Output.of(iamRoleArn));
        }

        /**
         * @param imageArn ARN of the public, private, or shared image to use.
         * 
         * @return builder
         * 
         */
        public Builder imageArn(@Nullable Output imageArn) {
            $.imageArn = imageArn;
            return this;
        }

        /**
         * @param imageArn ARN of the public, private, or shared image to use.
         * 
         * @return builder
         * 
         */
        public Builder imageArn(String imageArn) {
            return imageArn(Output.of(imageArn));
        }

        /**
         * @param imageName Name of the image used to create the image builder.
         * 
         * @return builder
         * 
         */
        public Builder imageName(@Nullable Output imageName) {
            $.imageName = imageName;
            return this;
        }

        /**
         * @param imageName Name of the image used to create the image builder.
         * 
         * @return builder
         * 
         */
        public Builder imageName(String imageName) {
            return imageName(Output.of(imageName));
        }

        /**
         * @param instanceType Instance type to use when launching the image builder.
         * 
         * @return builder
         * 
         */
        public Builder instanceType(Output instanceType) {
            $.instanceType = instanceType;
            return this;
        }

        /**
         * @param instanceType Instance type to use when launching the image builder.
         * 
         * @return builder
         * 
         */
        public Builder instanceType(String instanceType) {
            return instanceType(Output.of(instanceType));
        }

        /**
         * @param name Unique name for the image builder.
         * 
         * The following arguments are optional:
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Unique name for the image builder.
         * 
         * The following arguments are optional:
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param tags Map of tags to assign to the instance. 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 Map of tags to assign to the instance. 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 vpcConfig Configuration block for the VPC configuration for the image builder. See below.
         * 
         * @return builder
         * 
         */
        public Builder vpcConfig(@Nullable Output vpcConfig) {
            $.vpcConfig = vpcConfig;
            return this;
        }

        /**
         * @param vpcConfig Configuration block for the VPC configuration for the image builder. See below.
         * 
         * @return builder
         * 
         */
        public Builder vpcConfig(ImageBuilderVpcConfigArgs vpcConfig) {
            return vpcConfig(Output.of(vpcConfig));
        }

        public ImageBuilderArgs build() {
            if ($.instanceType == null) {
                throw new MissingRequiredPropertyException("ImageBuilderArgs", "instanceType");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy