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

com.pulumi.azure.keyvault.inputs.GetCertificateDataArgs 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.10.0-alpha.1731737215
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.keyvault.inputs;

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


public final class GetCertificateDataArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetCertificateDataArgs Empty = new GetCertificateDataArgs();

    /**
     * Specifies the ID of the Key Vault instance where the Secret resides, available on the `azure.keyvault.KeyVault` Data Source / Resource.
     * 
     */
    @Import(name="keyVaultId", required=true)
    private Output keyVaultId;

    /**
     * @return Specifies the ID of the Key Vault instance where the Secret resides, available on the `azure.keyvault.KeyVault` Data Source / Resource.
     * 
     */
    public Output keyVaultId() {
        return this.keyVaultId;
    }

    /**
     * Specifies the name of the Key Vault Secret.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return Specifies the name of the Key Vault Secret.
     * 
     */
    public Output name() {
        return this.name;
    }

    /**
     * Specifies the version of the certificate to look up.  (Defaults to latest)
     * 
     * > **NOTE:** The vault must be in the same subscription as the provider. If the vault is in another subscription, you must create an aliased provider for that subscription.
     * 
     */
    @Import(name="version")
    private @Nullable Output version;

    /**
     * @return Specifies the version of the certificate to look up.  (Defaults to latest)
     * 
     * > **NOTE:** The vault must be in the same subscription as the provider. If the vault is in another subscription, you must create an aliased provider for that subscription.
     * 
     */
    public Optional> version() {
        return Optional.ofNullable(this.version);
    }

    private GetCertificateDataArgs() {}

    private GetCertificateDataArgs(GetCertificateDataArgs $) {
        this.keyVaultId = $.keyVaultId;
        this.name = $.name;
        this.version = $.version;
    }

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

    public static final class Builder {
        private GetCertificateDataArgs $;

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

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

        /**
         * @param keyVaultId Specifies the ID of the Key Vault instance where the Secret resides, available on the `azure.keyvault.KeyVault` Data Source / Resource.
         * 
         * @return builder
         * 
         */
        public Builder keyVaultId(Output keyVaultId) {
            $.keyVaultId = keyVaultId;
            return this;
        }

        /**
         * @param keyVaultId Specifies the ID of the Key Vault instance where the Secret resides, available on the `azure.keyvault.KeyVault` Data Source / Resource.
         * 
         * @return builder
         * 
         */
        public Builder keyVaultId(String keyVaultId) {
            return keyVaultId(Output.of(keyVaultId));
        }

        /**
         * @param name Specifies the name of the Key Vault Secret.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Specifies the name of the Key Vault Secret.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param version Specifies the version of the certificate to look up.  (Defaults to latest)
         * 
         * > **NOTE:** The vault must be in the same subscription as the provider. If the vault is in another subscription, you must create an aliased provider for that subscription.
         * 
         * @return builder
         * 
         */
        public Builder version(@Nullable Output version) {
            $.version = version;
            return this;
        }

        /**
         * @param version Specifies the version of the certificate to look up.  (Defaults to latest)
         * 
         * > **NOTE:** The vault must be in the same subscription as the provider. If the vault is in another subscription, you must create an aliased provider for that subscription.
         * 
         * @return builder
         * 
         */
        public Builder version(String version) {
            return version(Output.of(version));
        }

        public GetCertificateDataArgs build() {
            if ($.keyVaultId == null) {
                throw new MissingRequiredPropertyException("GetCertificateDataArgs", "keyVaultId");
            }
            if ($.name == null) {
                throw new MissingRequiredPropertyException("GetCertificateDataArgs", "name");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy