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

com.pulumi.azurenative.datafactory.inputs.SnowflakeV2LinkedServiceArgs Maven / Gradle / Ivy

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

import com.pulumi.azurenative.datafactory.enums.SnowflakeAuthenticationType;
import com.pulumi.azurenative.datafactory.inputs.AzureKeyVaultSecretReferenceArgs;
import com.pulumi.azurenative.datafactory.inputs.IntegrationRuntimeReferenceArgs;
import com.pulumi.azurenative.datafactory.inputs.ParameterSpecificationArgs;
import com.pulumi.azurenative.datafactory.inputs.SecureStringArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Object;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Snowflake linked service.
 * 
 */
public final class SnowflakeV2LinkedServiceArgs extends com.pulumi.resources.ResourceArgs {

    public static final SnowflakeV2LinkedServiceArgs Empty = new SnowflakeV2LinkedServiceArgs();

    /**
     * The account identifier of your Snowflake account, e.g. xy12345.east-us-2.azure
     * 
     */
    @Import(name="accountIdentifier", required=true)
    private Output accountIdentifier;

    /**
     * @return The account identifier of your Snowflake account, e.g. xy12345.east-us-2.azure
     * 
     */
    public Output accountIdentifier() {
        return this.accountIdentifier;
    }

    /**
     * List of tags that can be used for describing the linked service.
     * 
     */
    @Import(name="annotations")
    private @Nullable Output> annotations;

    /**
     * @return List of tags that can be used for describing the linked service.
     * 
     */
    public Optional>> annotations() {
        return Optional.ofNullable(this.annotations);
    }

    /**
     * The type used for authentication. Type: string.
     * 
     */
    @Import(name="authenticationType")
    private @Nullable Output> authenticationType;

    /**
     * @return The type used for authentication. Type: string.
     * 
     */
    public Optional>> authenticationType() {
        return Optional.ofNullable(this.authenticationType);
    }

    /**
     * The client ID of the application registered in Azure Active Directory for AADServicePrincipal authentication.
     * 
     */
    @Import(name="clientId")
    private @Nullable Output clientId;

    /**
     * @return The client ID of the application registered in Azure Active Directory for AADServicePrincipal authentication.
     * 
     */
    public Optional> clientId() {
        return Optional.ofNullable(this.clientId);
    }

    /**
     * The Azure key vault secret reference of client secret for AADServicePrincipal authentication.
     * 
     */
    @Import(name="clientSecret")
    private @Nullable Output> clientSecret;

    /**
     * @return The Azure key vault secret reference of client secret for AADServicePrincipal authentication.
     * 
     */
    public Optional>> clientSecret() {
        return Optional.ofNullable(this.clientSecret);
    }

    /**
     * The integration runtime reference.
     * 
     */
    @Import(name="connectVia")
    private @Nullable Output connectVia;

    /**
     * @return The integration runtime reference.
     * 
     */
    public Optional> connectVia() {
        return Optional.ofNullable(this.connectVia);
    }

    /**
     * The name of the Snowflake database.
     * 
     */
    @Import(name="database", required=true)
    private Output database;

    /**
     * @return The name of the Snowflake database.
     * 
     */
    public Output database() {
        return this.database;
    }

    /**
     * Linked service description.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return Linked service description.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string.
     * 
     */
    @Import(name="encryptedCredential")
    private @Nullable Output encryptedCredential;

    /**
     * @return The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string.
     * 
     */
    public Optional> encryptedCredential() {
        return Optional.ofNullable(this.encryptedCredential);
    }

    /**
     * The host name of the Snowflake account.
     * 
     */
    @Import(name="host")
    private @Nullable Output host;

    /**
     * @return The host name of the Snowflake account.
     * 
     */
    public Optional> host() {
        return Optional.ofNullable(this.host);
    }

    /**
     * Parameters for linked service.
     * 
     */
    @Import(name="parameters")
    private @Nullable Output> parameters;

    /**
     * @return Parameters for linked service.
     * 
     */
    public Optional>> parameters() {
        return Optional.ofNullable(this.parameters);
    }

    /**
     * The Azure key vault secret reference of password in connection string.
     * 
     */
    @Import(name="password")
    private @Nullable Output> password;

    /**
     * @return The Azure key vault secret reference of password in connection string.
     * 
     */
    public Optional>> password() {
        return Optional.ofNullable(this.password);
    }

    /**
     * The Azure key vault secret reference of privateKey for KeyPair auth.
     * 
     */
    @Import(name="privateKey")
    private @Nullable Output> privateKey;

    /**
     * @return The Azure key vault secret reference of privateKey for KeyPair auth.
     * 
     */
    public Optional>> privateKey() {
        return Optional.ofNullable(this.privateKey);
    }

    /**
     * The Azure key vault secret reference of private key password for KeyPair auth with encrypted private key.
     * 
     */
    @Import(name="privateKeyPassphrase")
    private @Nullable Output> privateKeyPassphrase;

    /**
     * @return The Azure key vault secret reference of private key password for KeyPair auth with encrypted private key.
     * 
     */
    public Optional>> privateKeyPassphrase() {
        return Optional.ofNullable(this.privateKeyPassphrase);
    }

    /**
     * The scope of the application registered in Azure Active Directory for AADServicePrincipal authentication.
     * 
     */
    @Import(name="scope")
    private @Nullable Output scope;

    /**
     * @return The scope of the application registered in Azure Active Directory for AADServicePrincipal authentication.
     * 
     */
    public Optional> scope() {
        return Optional.ofNullable(this.scope);
    }

    /**
     * The tenant ID of the application registered in Azure Active Directory for AADServicePrincipal authentication.
     * 
     */
    @Import(name="tenantId")
    private @Nullable Output tenantId;

    /**
     * @return The tenant ID of the application registered in Azure Active Directory for AADServicePrincipal authentication.
     * 
     */
    public Optional> tenantId() {
        return Optional.ofNullable(this.tenantId);
    }

    /**
     * Type of linked service.
     * Expected value is 'SnowflakeV2'.
     * 
     */
    @Import(name="type", required=true)
    private Output type;

    /**
     * @return Type of linked service.
     * Expected value is 'SnowflakeV2'.
     * 
     */
    public Output type() {
        return this.type;
    }

    /**
     * The name of the Snowflake user.
     * 
     */
    @Import(name="user")
    private @Nullable Output user;

    /**
     * @return The name of the Snowflake user.
     * 
     */
    public Optional> user() {
        return Optional.ofNullable(this.user);
    }

    /**
     * Version of the linked service.
     * 
     */
    @Import(name="version")
    private @Nullable Output version;

    /**
     * @return Version of the linked service.
     * 
     */
    public Optional> version() {
        return Optional.ofNullable(this.version);
    }

    /**
     * The name of the Snowflake warehouse.
     * 
     */
    @Import(name="warehouse", required=true)
    private Output warehouse;

    /**
     * @return The name of the Snowflake warehouse.
     * 
     */
    public Output warehouse() {
        return this.warehouse;
    }

    private SnowflakeV2LinkedServiceArgs() {}

    private SnowflakeV2LinkedServiceArgs(SnowflakeV2LinkedServiceArgs $) {
        this.accountIdentifier = $.accountIdentifier;
        this.annotations = $.annotations;
        this.authenticationType = $.authenticationType;
        this.clientId = $.clientId;
        this.clientSecret = $.clientSecret;
        this.connectVia = $.connectVia;
        this.database = $.database;
        this.description = $.description;
        this.encryptedCredential = $.encryptedCredential;
        this.host = $.host;
        this.parameters = $.parameters;
        this.password = $.password;
        this.privateKey = $.privateKey;
        this.privateKeyPassphrase = $.privateKeyPassphrase;
        this.scope = $.scope;
        this.tenantId = $.tenantId;
        this.type = $.type;
        this.user = $.user;
        this.version = $.version;
        this.warehouse = $.warehouse;
    }

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

    public static final class Builder {
        private SnowflakeV2LinkedServiceArgs $;

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

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

        /**
         * @param accountIdentifier The account identifier of your Snowflake account, e.g. xy12345.east-us-2.azure
         * 
         * @return builder
         * 
         */
        public Builder accountIdentifier(Output accountIdentifier) {
            $.accountIdentifier = accountIdentifier;
            return this;
        }

        /**
         * @param accountIdentifier The account identifier of your Snowflake account, e.g. xy12345.east-us-2.azure
         * 
         * @return builder
         * 
         */
        public Builder accountIdentifier(Object accountIdentifier) {
            return accountIdentifier(Output.of(accountIdentifier));
        }

        /**
         * @param annotations List of tags that can be used for describing the linked service.
         * 
         * @return builder
         * 
         */
        public Builder annotations(@Nullable Output> annotations) {
            $.annotations = annotations;
            return this;
        }

        /**
         * @param annotations List of tags that can be used for describing the linked service.
         * 
         * @return builder
         * 
         */
        public Builder annotations(List annotations) {
            return annotations(Output.of(annotations));
        }

        /**
         * @param annotations List of tags that can be used for describing the linked service.
         * 
         * @return builder
         * 
         */
        public Builder annotations(Object... annotations) {
            return annotations(List.of(annotations));
        }

        /**
         * @param authenticationType The type used for authentication. Type: string.
         * 
         * @return builder
         * 
         */
        public Builder authenticationType(@Nullable Output> authenticationType) {
            $.authenticationType = authenticationType;
            return this;
        }

        /**
         * @param authenticationType The type used for authentication. Type: string.
         * 
         * @return builder
         * 
         */
        public Builder authenticationType(Either authenticationType) {
            return authenticationType(Output.of(authenticationType));
        }

        /**
         * @param authenticationType The type used for authentication. Type: string.
         * 
         * @return builder
         * 
         */
        public Builder authenticationType(String authenticationType) {
            return authenticationType(Either.ofLeft(authenticationType));
        }

        /**
         * @param authenticationType The type used for authentication. Type: string.
         * 
         * @return builder
         * 
         */
        public Builder authenticationType(SnowflakeAuthenticationType authenticationType) {
            return authenticationType(Either.ofRight(authenticationType));
        }

        /**
         * @param clientId The client ID of the application registered in Azure Active Directory for AADServicePrincipal authentication.
         * 
         * @return builder
         * 
         */
        public Builder clientId(@Nullable Output clientId) {
            $.clientId = clientId;
            return this;
        }

        /**
         * @param clientId The client ID of the application registered in Azure Active Directory for AADServicePrincipal authentication.
         * 
         * @return builder
         * 
         */
        public Builder clientId(Object clientId) {
            return clientId(Output.of(clientId));
        }

        /**
         * @param clientSecret The Azure key vault secret reference of client secret for AADServicePrincipal authentication.
         * 
         * @return builder
         * 
         */
        public Builder clientSecret(@Nullable Output> clientSecret) {
            $.clientSecret = clientSecret;
            return this;
        }

        /**
         * @param clientSecret The Azure key vault secret reference of client secret for AADServicePrincipal authentication.
         * 
         * @return builder
         * 
         */
        public Builder clientSecret(Either clientSecret) {
            return clientSecret(Output.of(clientSecret));
        }

        /**
         * @param clientSecret The Azure key vault secret reference of client secret for AADServicePrincipal authentication.
         * 
         * @return builder
         * 
         */
        public Builder clientSecret(AzureKeyVaultSecretReferenceArgs clientSecret) {
            return clientSecret(Either.ofLeft(clientSecret));
        }

        /**
         * @param clientSecret The Azure key vault secret reference of client secret for AADServicePrincipal authentication.
         * 
         * @return builder
         * 
         */
        public Builder clientSecret(SecureStringArgs clientSecret) {
            return clientSecret(Either.ofRight(clientSecret));
        }

        /**
         * @param connectVia The integration runtime reference.
         * 
         * @return builder
         * 
         */
        public Builder connectVia(@Nullable Output connectVia) {
            $.connectVia = connectVia;
            return this;
        }

        /**
         * @param connectVia The integration runtime reference.
         * 
         * @return builder
         * 
         */
        public Builder connectVia(IntegrationRuntimeReferenceArgs connectVia) {
            return connectVia(Output.of(connectVia));
        }

        /**
         * @param database The name of the Snowflake database.
         * 
         * @return builder
         * 
         */
        public Builder database(Output database) {
            $.database = database;
            return this;
        }

        /**
         * @param database The name of the Snowflake database.
         * 
         * @return builder
         * 
         */
        public Builder database(Object database) {
            return database(Output.of(database));
        }

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

        /**
         * @param description Linked service description.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param encryptedCredential The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string.
         * 
         * @return builder
         * 
         */
        public Builder encryptedCredential(@Nullable Output encryptedCredential) {
            $.encryptedCredential = encryptedCredential;
            return this;
        }

        /**
         * @param encryptedCredential The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string.
         * 
         * @return builder
         * 
         */
        public Builder encryptedCredential(String encryptedCredential) {
            return encryptedCredential(Output.of(encryptedCredential));
        }

        /**
         * @param host The host name of the Snowflake account.
         * 
         * @return builder
         * 
         */
        public Builder host(@Nullable Output host) {
            $.host = host;
            return this;
        }

        /**
         * @param host The host name of the Snowflake account.
         * 
         * @return builder
         * 
         */
        public Builder host(Object host) {
            return host(Output.of(host));
        }

        /**
         * @param parameters Parameters for linked service.
         * 
         * @return builder
         * 
         */
        public Builder parameters(@Nullable Output> parameters) {
            $.parameters = parameters;
            return this;
        }

        /**
         * @param parameters Parameters for linked service.
         * 
         * @return builder
         * 
         */
        public Builder parameters(Map parameters) {
            return parameters(Output.of(parameters));
        }

        /**
         * @param password The Azure key vault secret reference of password in connection string.
         * 
         * @return builder
         * 
         */
        public Builder password(@Nullable Output> password) {
            $.password = password;
            return this;
        }

        /**
         * @param password The Azure key vault secret reference of password in connection string.
         * 
         * @return builder
         * 
         */
        public Builder password(Either password) {
            return password(Output.of(password));
        }

        /**
         * @param password The Azure key vault secret reference of password in connection string.
         * 
         * @return builder
         * 
         */
        public Builder password(AzureKeyVaultSecretReferenceArgs password) {
            return password(Either.ofLeft(password));
        }

        /**
         * @param password The Azure key vault secret reference of password in connection string.
         * 
         * @return builder
         * 
         */
        public Builder password(SecureStringArgs password) {
            return password(Either.ofRight(password));
        }

        /**
         * @param privateKey The Azure key vault secret reference of privateKey for KeyPair auth.
         * 
         * @return builder
         * 
         */
        public Builder privateKey(@Nullable Output> privateKey) {
            $.privateKey = privateKey;
            return this;
        }

        /**
         * @param privateKey The Azure key vault secret reference of privateKey for KeyPair auth.
         * 
         * @return builder
         * 
         */
        public Builder privateKey(Either privateKey) {
            return privateKey(Output.of(privateKey));
        }

        /**
         * @param privateKey The Azure key vault secret reference of privateKey for KeyPair auth.
         * 
         * @return builder
         * 
         */
        public Builder privateKey(AzureKeyVaultSecretReferenceArgs privateKey) {
            return privateKey(Either.ofLeft(privateKey));
        }

        /**
         * @param privateKey The Azure key vault secret reference of privateKey for KeyPair auth.
         * 
         * @return builder
         * 
         */
        public Builder privateKey(SecureStringArgs privateKey) {
            return privateKey(Either.ofRight(privateKey));
        }

        /**
         * @param privateKeyPassphrase The Azure key vault secret reference of private key password for KeyPair auth with encrypted private key.
         * 
         * @return builder
         * 
         */
        public Builder privateKeyPassphrase(@Nullable Output> privateKeyPassphrase) {
            $.privateKeyPassphrase = privateKeyPassphrase;
            return this;
        }

        /**
         * @param privateKeyPassphrase The Azure key vault secret reference of private key password for KeyPair auth with encrypted private key.
         * 
         * @return builder
         * 
         */
        public Builder privateKeyPassphrase(Either privateKeyPassphrase) {
            return privateKeyPassphrase(Output.of(privateKeyPassphrase));
        }

        /**
         * @param privateKeyPassphrase The Azure key vault secret reference of private key password for KeyPair auth with encrypted private key.
         * 
         * @return builder
         * 
         */
        public Builder privateKeyPassphrase(AzureKeyVaultSecretReferenceArgs privateKeyPassphrase) {
            return privateKeyPassphrase(Either.ofLeft(privateKeyPassphrase));
        }

        /**
         * @param privateKeyPassphrase The Azure key vault secret reference of private key password for KeyPair auth with encrypted private key.
         * 
         * @return builder
         * 
         */
        public Builder privateKeyPassphrase(SecureStringArgs privateKeyPassphrase) {
            return privateKeyPassphrase(Either.ofRight(privateKeyPassphrase));
        }

        /**
         * @param scope The scope of the application registered in Azure Active Directory for AADServicePrincipal authentication.
         * 
         * @return builder
         * 
         */
        public Builder scope(@Nullable Output scope) {
            $.scope = scope;
            return this;
        }

        /**
         * @param scope The scope of the application registered in Azure Active Directory for AADServicePrincipal authentication.
         * 
         * @return builder
         * 
         */
        public Builder scope(Object scope) {
            return scope(Output.of(scope));
        }

        /**
         * @param tenantId The tenant ID of the application registered in Azure Active Directory for AADServicePrincipal authentication.
         * 
         * @return builder
         * 
         */
        public Builder tenantId(@Nullable Output tenantId) {
            $.tenantId = tenantId;
            return this;
        }

        /**
         * @param tenantId The tenant ID of the application registered in Azure Active Directory for AADServicePrincipal authentication.
         * 
         * @return builder
         * 
         */
        public Builder tenantId(Object tenantId) {
            return tenantId(Output.of(tenantId));
        }

        /**
         * @param type Type of linked service.
         * Expected value is 'SnowflakeV2'.
         * 
         * @return builder
         * 
         */
        public Builder type(Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type Type of linked service.
         * Expected value is 'SnowflakeV2'.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        /**
         * @param user The name of the Snowflake user.
         * 
         * @return builder
         * 
         */
        public Builder user(@Nullable Output user) {
            $.user = user;
            return this;
        }

        /**
         * @param user The name of the Snowflake user.
         * 
         * @return builder
         * 
         */
        public Builder user(Object user) {
            return user(Output.of(user));
        }

        /**
         * @param version Version of the linked service.
         * 
         * @return builder
         * 
         */
        public Builder version(@Nullable Output version) {
            $.version = version;
            return this;
        }

        /**
         * @param version Version of the linked service.
         * 
         * @return builder
         * 
         */
        public Builder version(String version) {
            return version(Output.of(version));
        }

        /**
         * @param warehouse The name of the Snowflake warehouse.
         * 
         * @return builder
         * 
         */
        public Builder warehouse(Output warehouse) {
            $.warehouse = warehouse;
            return this;
        }

        /**
         * @param warehouse The name of the Snowflake warehouse.
         * 
         * @return builder
         * 
         */
        public Builder warehouse(Object warehouse) {
            return warehouse(Output.of(warehouse));
        }

        public SnowflakeV2LinkedServiceArgs build() {
            if ($.accountIdentifier == null) {
                throw new MissingRequiredPropertyException("SnowflakeV2LinkedServiceArgs", "accountIdentifier");
            }
            $.authenticationType = Codegen.stringProp("authenticationType").left(SnowflakeAuthenticationType.class).output().arg($.authenticationType).def("Basic").getNullable();
            if ($.database == null) {
                throw new MissingRequiredPropertyException("SnowflakeV2LinkedServiceArgs", "database");
            }
            $.type = Codegen.stringProp("type").output().arg($.type).require();
            if ($.warehouse == null) {
                throw new MissingRequiredPropertyException("SnowflakeV2LinkedServiceArgs", "warehouse");
            }
            return $;
        }
    }

}