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

com.pulumi.azurenative.batch.inputs.CertificateReferenceArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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.azurenative.batch.inputs;

import com.pulumi.azurenative.batch.enums.CertificateStoreLocation;
import com.pulumi.azurenative.batch.enums.CertificateVisibility;
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.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Warning: This object is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
 * 
 */
public final class CertificateReferenceArgs extends com.pulumi.resources.ResourceArgs {

    public static final CertificateReferenceArgs Empty = new CertificateReferenceArgs();

    @Import(name="id", required=true)
    private Output id;

    public Output id() {
        return this.id;
    }

    /**
     * The default value is currentUser. This property is applicable only for pools configured with Windows nodes (that is, created with cloudServiceConfiguration, or with virtualMachineConfiguration using a Windows image reference). For Linux compute nodes, the certificates are stored in a directory inside the task working directory and an environment variable AZ_BATCH_CERTIFICATES_DIR is supplied to the task to query for this location. For certificates with visibility of 'remoteUser', a 'certs' directory is created in the user's home directory (e.g., /home/{user-name}/certs) and certificates are placed in that directory.
     * 
     */
    @Import(name="storeLocation")
    private @Nullable Output storeLocation;

    /**
     * @return The default value is currentUser. This property is applicable only for pools configured with Windows nodes (that is, created with cloudServiceConfiguration, or with virtualMachineConfiguration using a Windows image reference). For Linux compute nodes, the certificates are stored in a directory inside the task working directory and an environment variable AZ_BATCH_CERTIFICATES_DIR is supplied to the task to query for this location. For certificates with visibility of 'remoteUser', a 'certs' directory is created in the user's home directory (e.g., /home/{user-name}/certs) and certificates are placed in that directory.
     * 
     */
    public Optional> storeLocation() {
        return Optional.ofNullable(this.storeLocation);
    }

    /**
     * This property is applicable only for pools configured with Windows nodes (that is, created with cloudServiceConfiguration, or with virtualMachineConfiguration using a Windows image reference). Common store names include: My, Root, CA, Trust, Disallowed, TrustedPeople, TrustedPublisher, AuthRoot, AddressBook, but any custom store name can also be used. The default value is My.
     * 
     */
    @Import(name="storeName")
    private @Nullable Output storeName;

    /**
     * @return This property is applicable only for pools configured with Windows nodes (that is, created with cloudServiceConfiguration, or with virtualMachineConfiguration using a Windows image reference). Common store names include: My, Root, CA, Trust, Disallowed, TrustedPeople, TrustedPublisher, AuthRoot, AddressBook, but any custom store name can also be used. The default value is My.
     * 
     */
    public Optional> storeName() {
        return Optional.ofNullable(this.storeName);
    }

    @Import(name="visibility")
    private @Nullable Output> visibility;

    public Optional>> visibility() {
        return Optional.ofNullable(this.visibility);
    }

    private CertificateReferenceArgs() {}

    private CertificateReferenceArgs(CertificateReferenceArgs $) {
        this.id = $.id;
        this.storeLocation = $.storeLocation;
        this.storeName = $.storeName;
        this.visibility = $.visibility;
    }

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

    public static final class Builder {
        private CertificateReferenceArgs $;

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

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

        public Builder id(Output id) {
            $.id = id;
            return this;
        }

        public Builder id(String id) {
            return id(Output.of(id));
        }

        /**
         * @param storeLocation The default value is currentUser. This property is applicable only for pools configured with Windows nodes (that is, created with cloudServiceConfiguration, or with virtualMachineConfiguration using a Windows image reference). For Linux compute nodes, the certificates are stored in a directory inside the task working directory and an environment variable AZ_BATCH_CERTIFICATES_DIR is supplied to the task to query for this location. For certificates with visibility of 'remoteUser', a 'certs' directory is created in the user's home directory (e.g., /home/{user-name}/certs) and certificates are placed in that directory.
         * 
         * @return builder
         * 
         */
        public Builder storeLocation(@Nullable Output storeLocation) {
            $.storeLocation = storeLocation;
            return this;
        }

        /**
         * @param storeLocation The default value is currentUser. This property is applicable only for pools configured with Windows nodes (that is, created with cloudServiceConfiguration, or with virtualMachineConfiguration using a Windows image reference). For Linux compute nodes, the certificates are stored in a directory inside the task working directory and an environment variable AZ_BATCH_CERTIFICATES_DIR is supplied to the task to query for this location. For certificates with visibility of 'remoteUser', a 'certs' directory is created in the user's home directory (e.g., /home/{user-name}/certs) and certificates are placed in that directory.
         * 
         * @return builder
         * 
         */
        public Builder storeLocation(CertificateStoreLocation storeLocation) {
            return storeLocation(Output.of(storeLocation));
        }

        /**
         * @param storeName This property is applicable only for pools configured with Windows nodes (that is, created with cloudServiceConfiguration, or with virtualMachineConfiguration using a Windows image reference). Common store names include: My, Root, CA, Trust, Disallowed, TrustedPeople, TrustedPublisher, AuthRoot, AddressBook, but any custom store name can also be used. The default value is My.
         * 
         * @return builder
         * 
         */
        public Builder storeName(@Nullable Output storeName) {
            $.storeName = storeName;
            return this;
        }

        /**
         * @param storeName This property is applicable only for pools configured with Windows nodes (that is, created with cloudServiceConfiguration, or with virtualMachineConfiguration using a Windows image reference). Common store names include: My, Root, CA, Trust, Disallowed, TrustedPeople, TrustedPublisher, AuthRoot, AddressBook, but any custom store name can also be used. The default value is My.
         * 
         * @return builder
         * 
         */
        public Builder storeName(String storeName) {
            return storeName(Output.of(storeName));
        }

        public Builder visibility(@Nullable Output> visibility) {
            $.visibility = visibility;
            return this;
        }

        public Builder visibility(List visibility) {
            return visibility(Output.of(visibility));
        }

        public Builder visibility(CertificateVisibility... visibility) {
            return visibility(List.of(visibility));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy