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

com.pulumi.azure.appservice.inputs.WindowsFunctionAppAuthSettingsActiveDirectoryArgs 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.appservice.inputs;

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;


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

    public static final WindowsFunctionAppAuthSettingsActiveDirectoryArgs Empty = new WindowsFunctionAppAuthSettingsActiveDirectoryArgs();

    /**
     * Specifies a list of Allowed audience values to consider when validating JWTs issued by Azure Active Directory.
     * 
     * > **Note:** The `client_id` value is always considered an allowed audience.
     * 
     */
    @Import(name="allowedAudiences")
    private @Nullable Output> allowedAudiences;

    /**
     * @return Specifies a list of Allowed audience values to consider when validating JWTs issued by Azure Active Directory.
     * 
     * > **Note:** The `client_id` value is always considered an allowed audience.
     * 
     */
    public Optional>> allowedAudiences() {
        return Optional.ofNullable(this.allowedAudiences);
    }

    /**
     * The ID of the Client to use to authenticate with Azure Active Directory.
     * 
     */
    @Import(name="clientId", required=true)
    private Output clientId;

    /**
     * @return The ID of the Client to use to authenticate with Azure Active Directory.
     * 
     */
    public Output clientId() {
        return this.clientId;
    }

    /**
     * The Client Secret for the Client ID. Cannot be used with `client_secret_setting_name`.
     * 
     */
    @Import(name="clientSecret")
    private @Nullable Output clientSecret;

    /**
     * @return The Client Secret for the Client ID. Cannot be used with `client_secret_setting_name`.
     * 
     */
    public Optional> clientSecret() {
        return Optional.ofNullable(this.clientSecret);
    }

    /**
     * The App Setting name that contains the client secret of the Client. Cannot be used with `client_secret`.
     * 
     */
    @Import(name="clientSecretSettingName")
    private @Nullable Output clientSecretSettingName;

    /**
     * @return The App Setting name that contains the client secret of the Client. Cannot be used with `client_secret`.
     * 
     */
    public Optional> clientSecretSettingName() {
        return Optional.ofNullable(this.clientSecretSettingName);
    }

    private WindowsFunctionAppAuthSettingsActiveDirectoryArgs() {}

    private WindowsFunctionAppAuthSettingsActiveDirectoryArgs(WindowsFunctionAppAuthSettingsActiveDirectoryArgs $) {
        this.allowedAudiences = $.allowedAudiences;
        this.clientId = $.clientId;
        this.clientSecret = $.clientSecret;
        this.clientSecretSettingName = $.clientSecretSettingName;
    }

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

    public static final class Builder {
        private WindowsFunctionAppAuthSettingsActiveDirectoryArgs $;

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

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

        /**
         * @param allowedAudiences Specifies a list of Allowed audience values to consider when validating JWTs issued by Azure Active Directory.
         * 
         * > **Note:** The `client_id` value is always considered an allowed audience.
         * 
         * @return builder
         * 
         */
        public Builder allowedAudiences(@Nullable Output> allowedAudiences) {
            $.allowedAudiences = allowedAudiences;
            return this;
        }

        /**
         * @param allowedAudiences Specifies a list of Allowed audience values to consider when validating JWTs issued by Azure Active Directory.
         * 
         * > **Note:** The `client_id` value is always considered an allowed audience.
         * 
         * @return builder
         * 
         */
        public Builder allowedAudiences(List allowedAudiences) {
            return allowedAudiences(Output.of(allowedAudiences));
        }

        /**
         * @param allowedAudiences Specifies a list of Allowed audience values to consider when validating JWTs issued by Azure Active Directory.
         * 
         * > **Note:** The `client_id` value is always considered an allowed audience.
         * 
         * @return builder
         * 
         */
        public Builder allowedAudiences(String... allowedAudiences) {
            return allowedAudiences(List.of(allowedAudiences));
        }

        /**
         * @param clientId The ID of the Client to use to authenticate with Azure Active Directory.
         * 
         * @return builder
         * 
         */
        public Builder clientId(Output clientId) {
            $.clientId = clientId;
            return this;
        }

        /**
         * @param clientId The ID of the Client to use to authenticate with Azure Active Directory.
         * 
         * @return builder
         * 
         */
        public Builder clientId(String clientId) {
            return clientId(Output.of(clientId));
        }

        /**
         * @param clientSecret The Client Secret for the Client ID. Cannot be used with `client_secret_setting_name`.
         * 
         * @return builder
         * 
         */
        public Builder clientSecret(@Nullable Output clientSecret) {
            $.clientSecret = clientSecret;
            return this;
        }

        /**
         * @param clientSecret The Client Secret for the Client ID. Cannot be used with `client_secret_setting_name`.
         * 
         * @return builder
         * 
         */
        public Builder clientSecret(String clientSecret) {
            return clientSecret(Output.of(clientSecret));
        }

        /**
         * @param clientSecretSettingName The App Setting name that contains the client secret of the Client. Cannot be used with `client_secret`.
         * 
         * @return builder
         * 
         */
        public Builder clientSecretSettingName(@Nullable Output clientSecretSettingName) {
            $.clientSecretSettingName = clientSecretSettingName;
            return this;
        }

        /**
         * @param clientSecretSettingName The App Setting name that contains the client secret of the Client. Cannot be used with `client_secret`.
         * 
         * @return builder
         * 
         */
        public Builder clientSecretSettingName(String clientSecretSettingName) {
            return clientSecretSettingName(Output.of(clientSecretSettingName));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy