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

com.pulumi.azure.arckubernetes.ClusterExtensionArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.15.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.azure.arckubernetes;

import com.pulumi.azure.arckubernetes.inputs.ClusterExtensionIdentityArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ClusterExtensionArgs Empty = new ClusterExtensionArgs();

    /**
     * Specifies the Cluster ID. Changing this forces a new Arc Kubernetes Cluster Extension to be created.
     * 
     */
    @Import(name="clusterId", required=true)
    private Output clusterId;

    /**
     * @return Specifies the Cluster ID. Changing this forces a new Arc Kubernetes Cluster Extension to be created.
     * 
     */
    public Output clusterId() {
        return this.clusterId;
    }

    /**
     * Configuration settings that are sensitive, as name-value pairs for configuring this extension.
     * 
     */
    @Import(name="configurationProtectedSettings")
    private @Nullable Output> configurationProtectedSettings;

    /**
     * @return Configuration settings that are sensitive, as name-value pairs for configuring this extension.
     * 
     */
    public Optional>> configurationProtectedSettings() {
        return Optional.ofNullable(this.configurationProtectedSettings);
    }

    /**
     * Configuration settings, as name-value pairs for configuring this extension.
     * 
     */
    @Import(name="configurationSettings")
    private @Nullable Output> configurationSettings;

    /**
     * @return Configuration settings, as name-value pairs for configuring this extension.
     * 
     */
    public Optional>> configurationSettings() {
        return Optional.ofNullable(this.configurationSettings);
    }

    /**
     * Specifies the type of extension. It must be one of the extension types registered with Microsoft.KubernetesConfiguration by the Extension publisher. For more information, please refer to [Available Extensions for Arc-enabled Kubernetes clusters](https://learn.microsoft.com/en-us/azure/azure-arc/kubernetes/extensions-release). Changing this forces a new Arc Kubernetes Cluster Extension to be created.
     * 
     */
    @Import(name="extensionType", required=true)
    private Output extensionType;

    /**
     * @return Specifies the type of extension. It must be one of the extension types registered with Microsoft.KubernetesConfiguration by the Extension publisher. For more information, please refer to [Available Extensions for Arc-enabled Kubernetes clusters](https://learn.microsoft.com/en-us/azure/azure-arc/kubernetes/extensions-release). Changing this forces a new Arc Kubernetes Cluster Extension to be created.
     * 
     */
    public Output extensionType() {
        return this.extensionType;
    }

    /**
     * An `identity` block as defined below. Changing this forces a new Arc Kubernetes Cluster Extension to be created.
     * 
     */
    @Import(name="identity", required=true)
    private Output identity;

    /**
     * @return An `identity` block as defined below. Changing this forces a new Arc Kubernetes Cluster Extension to be created.
     * 
     */
    public Output identity() {
        return this.identity;
    }

    /**
     * Specifies the name which should be used for this Arc Kubernetes Cluster Extension. Changing this forces a new Arc Kubernetes Cluster Extension to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Specifies the name which should be used for this Arc Kubernetes Cluster Extension. Changing this forces a new Arc Kubernetes Cluster Extension to be created.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Namespace where the extension release must be placed for a cluster scoped extension. If this namespace does not exist, it will be created. Changing this forces a new Arc Kubernetes Cluster Extension to be created.
     * 
     */
    @Import(name="releaseNamespace")
    private @Nullable Output releaseNamespace;

    /**
     * @return Namespace where the extension release must be placed for a cluster scoped extension. If this namespace does not exist, it will be created. Changing this forces a new Arc Kubernetes Cluster Extension to be created.
     * 
     */
    public Optional> releaseNamespace() {
        return Optional.ofNullable(this.releaseNamespace);
    }

    /**
     * The release train used by this extension. Possible values include but are not limited to `Stable`, `Preview`. Changing this forces a new Arc Kubernetes Cluster Extension to be created.
     * 
     */
    @Import(name="releaseTrain")
    private @Nullable Output releaseTrain;

    /**
     * @return The release train used by this extension. Possible values include but are not limited to `Stable`, `Preview`. Changing this forces a new Arc Kubernetes Cluster Extension to be created.
     * 
     */
    public Optional> releaseTrain() {
        return Optional.ofNullable(this.releaseTrain);
    }

    /**
     * Namespace where the extension will be created for a namespace scoped extension. If this namespace does not exist, it will be created. Changing this forces a new Arc Kubernetes Cluster Extension to be created.
     * 
     */
    @Import(name="targetNamespace")
    private @Nullable Output targetNamespace;

    /**
     * @return Namespace where the extension will be created for a namespace scoped extension. If this namespace does not exist, it will be created. Changing this forces a new Arc Kubernetes Cluster Extension to be created.
     * 
     */
    public Optional> targetNamespace() {
        return Optional.ofNullable(this.targetNamespace);
    }

    /**
     * User-specified version that the extension should pin to. If it is not set, Azure will use the latest version and auto upgrade it. Changing this forces a new Arc Kubernetes Cluster Extension to be created.
     * 
     */
    @Import(name="version")
    private @Nullable Output version;

    /**
     * @return User-specified version that the extension should pin to. If it is not set, Azure will use the latest version and auto upgrade it. Changing this forces a new Arc Kubernetes Cluster Extension to be created.
     * 
     */
    public Optional> version() {
        return Optional.ofNullable(this.version);
    }

    private ClusterExtensionArgs() {}

    private ClusterExtensionArgs(ClusterExtensionArgs $) {
        this.clusterId = $.clusterId;
        this.configurationProtectedSettings = $.configurationProtectedSettings;
        this.configurationSettings = $.configurationSettings;
        this.extensionType = $.extensionType;
        this.identity = $.identity;
        this.name = $.name;
        this.releaseNamespace = $.releaseNamespace;
        this.releaseTrain = $.releaseTrain;
        this.targetNamespace = $.targetNamespace;
        this.version = $.version;
    }

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

    public static final class Builder {
        private ClusterExtensionArgs $;

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

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

        /**
         * @param clusterId Specifies the Cluster ID. Changing this forces a new Arc Kubernetes Cluster Extension to be created.
         * 
         * @return builder
         * 
         */
        public Builder clusterId(Output clusterId) {
            $.clusterId = clusterId;
            return this;
        }

        /**
         * @param clusterId Specifies the Cluster ID. Changing this forces a new Arc Kubernetes Cluster Extension to be created.
         * 
         * @return builder
         * 
         */
        public Builder clusterId(String clusterId) {
            return clusterId(Output.of(clusterId));
        }

        /**
         * @param configurationProtectedSettings Configuration settings that are sensitive, as name-value pairs for configuring this extension.
         * 
         * @return builder
         * 
         */
        public Builder configurationProtectedSettings(@Nullable Output> configurationProtectedSettings) {
            $.configurationProtectedSettings = configurationProtectedSettings;
            return this;
        }

        /**
         * @param configurationProtectedSettings Configuration settings that are sensitive, as name-value pairs for configuring this extension.
         * 
         * @return builder
         * 
         */
        public Builder configurationProtectedSettings(Map configurationProtectedSettings) {
            return configurationProtectedSettings(Output.of(configurationProtectedSettings));
        }

        /**
         * @param configurationSettings Configuration settings, as name-value pairs for configuring this extension.
         * 
         * @return builder
         * 
         */
        public Builder configurationSettings(@Nullable Output> configurationSettings) {
            $.configurationSettings = configurationSettings;
            return this;
        }

        /**
         * @param configurationSettings Configuration settings, as name-value pairs for configuring this extension.
         * 
         * @return builder
         * 
         */
        public Builder configurationSettings(Map configurationSettings) {
            return configurationSettings(Output.of(configurationSettings));
        }

        /**
         * @param extensionType Specifies the type of extension. It must be one of the extension types registered with Microsoft.KubernetesConfiguration by the Extension publisher. For more information, please refer to [Available Extensions for Arc-enabled Kubernetes clusters](https://learn.microsoft.com/en-us/azure/azure-arc/kubernetes/extensions-release). Changing this forces a new Arc Kubernetes Cluster Extension to be created.
         * 
         * @return builder
         * 
         */
        public Builder extensionType(Output extensionType) {
            $.extensionType = extensionType;
            return this;
        }

        /**
         * @param extensionType Specifies the type of extension. It must be one of the extension types registered with Microsoft.KubernetesConfiguration by the Extension publisher. For more information, please refer to [Available Extensions for Arc-enabled Kubernetes clusters](https://learn.microsoft.com/en-us/azure/azure-arc/kubernetes/extensions-release). Changing this forces a new Arc Kubernetes Cluster Extension to be created.
         * 
         * @return builder
         * 
         */
        public Builder extensionType(String extensionType) {
            return extensionType(Output.of(extensionType));
        }

        /**
         * @param identity An `identity` block as defined below. Changing this forces a new Arc Kubernetes Cluster Extension to be created.
         * 
         * @return builder
         * 
         */
        public Builder identity(Output identity) {
            $.identity = identity;
            return this;
        }

        /**
         * @param identity An `identity` block as defined below. Changing this forces a new Arc Kubernetes Cluster Extension to be created.
         * 
         * @return builder
         * 
         */
        public Builder identity(ClusterExtensionIdentityArgs identity) {
            return identity(Output.of(identity));
        }

        /**
         * @param name Specifies the name which should be used for this Arc Kubernetes Cluster Extension. Changing this forces a new Arc Kubernetes Cluster Extension to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Specifies the name which should be used for this Arc Kubernetes Cluster Extension. Changing this forces a new Arc Kubernetes Cluster Extension to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param releaseNamespace Namespace where the extension release must be placed for a cluster scoped extension. If this namespace does not exist, it will be created. Changing this forces a new Arc Kubernetes Cluster Extension to be created.
         * 
         * @return builder
         * 
         */
        public Builder releaseNamespace(@Nullable Output releaseNamespace) {
            $.releaseNamespace = releaseNamespace;
            return this;
        }

        /**
         * @param releaseNamespace Namespace where the extension release must be placed for a cluster scoped extension. If this namespace does not exist, it will be created. Changing this forces a new Arc Kubernetes Cluster Extension to be created.
         * 
         * @return builder
         * 
         */
        public Builder releaseNamespace(String releaseNamespace) {
            return releaseNamespace(Output.of(releaseNamespace));
        }

        /**
         * @param releaseTrain The release train used by this extension. Possible values include but are not limited to `Stable`, `Preview`. Changing this forces a new Arc Kubernetes Cluster Extension to be created.
         * 
         * @return builder
         * 
         */
        public Builder releaseTrain(@Nullable Output releaseTrain) {
            $.releaseTrain = releaseTrain;
            return this;
        }

        /**
         * @param releaseTrain The release train used by this extension. Possible values include but are not limited to `Stable`, `Preview`. Changing this forces a new Arc Kubernetes Cluster Extension to be created.
         * 
         * @return builder
         * 
         */
        public Builder releaseTrain(String releaseTrain) {
            return releaseTrain(Output.of(releaseTrain));
        }

        /**
         * @param targetNamespace Namespace where the extension will be created for a namespace scoped extension. If this namespace does not exist, it will be created. Changing this forces a new Arc Kubernetes Cluster Extension to be created.
         * 
         * @return builder
         * 
         */
        public Builder targetNamespace(@Nullable Output targetNamespace) {
            $.targetNamespace = targetNamespace;
            return this;
        }

        /**
         * @param targetNamespace Namespace where the extension will be created for a namespace scoped extension. If this namespace does not exist, it will be created. Changing this forces a new Arc Kubernetes Cluster Extension to be created.
         * 
         * @return builder
         * 
         */
        public Builder targetNamespace(String targetNamespace) {
            return targetNamespace(Output.of(targetNamespace));
        }

        /**
         * @param version User-specified version that the extension should pin to. If it is not set, Azure will use the latest version and auto upgrade it. Changing this forces a new Arc Kubernetes Cluster Extension to be created.
         * 
         * @return builder
         * 
         */
        public Builder version(@Nullable Output version) {
            $.version = version;
            return this;
        }

        /**
         * @param version User-specified version that the extension should pin to. If it is not set, Azure will use the latest version and auto upgrade it. Changing this forces a new Arc Kubernetes Cluster Extension to be created.
         * 
         * @return builder
         * 
         */
        public Builder version(String version) {
            return version(Output.of(version));
        }

        public ClusterExtensionArgs build() {
            if ($.clusterId == null) {
                throw new MissingRequiredPropertyException("ClusterExtensionArgs", "clusterId");
            }
            if ($.extensionType == null) {
                throw new MissingRequiredPropertyException("ClusterExtensionArgs", "extensionType");
            }
            if ($.identity == null) {
                throw new MissingRequiredPropertyException("ClusterExtensionArgs", "identity");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy