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

com.pulumi.azure.appservice.inputs.LinuxFunctionAppAuthSettingsV2MicrosoftV2Args 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 LinuxFunctionAppAuthSettingsV2MicrosoftV2Args extends com.pulumi.resources.ResourceArgs {

    public static final LinuxFunctionAppAuthSettingsV2MicrosoftV2Args Empty = new LinuxFunctionAppAuthSettingsV2MicrosoftV2Args();

    /**
     * Specifies a list of Allowed Audiences that will be requested as part of Microsoft Sign-In authentication.
     * 
     */
    @Import(name="allowedAudiences")
    private @Nullable Output> allowedAudiences;

    /**
     * @return Specifies a list of Allowed Audiences that will be requested as part of Microsoft Sign-In authentication.
     * 
     */
    public Optional>> allowedAudiences() {
        return Optional.ofNullable(this.allowedAudiences);
    }

    /**
     * The OAuth 2.0 client ID that was created for the app used for authentication.
     * 
     */
    @Import(name="clientId", required=true)
    private Output clientId;

    /**
     * @return The OAuth 2.0 client ID that was created for the app used for authentication.
     * 
     */
    public Output clientId() {
        return this.clientId;
    }

    /**
     * The app setting name containing the OAuth 2.0 client secret that was created for the app used for authentication.
     * 
     * !> **NOTE:** A setting with this name must exist in `app_settings` to function correctly.
     * 
     */
    @Import(name="clientSecretSettingName", required=true)
    private Output clientSecretSettingName;

    /**
     * @return The app setting name containing the OAuth 2.0 client secret that was created for the app used for authentication.
     * 
     * !> **NOTE:** A setting with this name must exist in `app_settings` to function correctly.
     * 
     */
    public Output clientSecretSettingName() {
        return this.clientSecretSettingName;
    }

    /**
     * The list of Login scopes that should be requested as part of Microsoft Account authentication.
     * 
     */
    @Import(name="loginScopes")
    private @Nullable Output> loginScopes;

    /**
     * @return The list of Login scopes that should be requested as part of Microsoft Account authentication.
     * 
     */
    public Optional>> loginScopes() {
        return Optional.ofNullable(this.loginScopes);
    }

    private LinuxFunctionAppAuthSettingsV2MicrosoftV2Args() {}

    private LinuxFunctionAppAuthSettingsV2MicrosoftV2Args(LinuxFunctionAppAuthSettingsV2MicrosoftV2Args $) {
        this.allowedAudiences = $.allowedAudiences;
        this.clientId = $.clientId;
        this.clientSecretSettingName = $.clientSecretSettingName;
        this.loginScopes = $.loginScopes;
    }

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

    public static final class Builder {
        private LinuxFunctionAppAuthSettingsV2MicrosoftV2Args $;

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

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

        /**
         * @param allowedAudiences Specifies a list of Allowed Audiences that will be requested as part of Microsoft Sign-In authentication.
         * 
         * @return builder
         * 
         */
        public Builder allowedAudiences(@Nullable Output> allowedAudiences) {
            $.allowedAudiences = allowedAudiences;
            return this;
        }

        /**
         * @param allowedAudiences Specifies a list of Allowed Audiences that will be requested as part of Microsoft Sign-In authentication.
         * 
         * @return builder
         * 
         */
        public Builder allowedAudiences(List allowedAudiences) {
            return allowedAudiences(Output.of(allowedAudiences));
        }

        /**
         * @param allowedAudiences Specifies a list of Allowed Audiences that will be requested as part of Microsoft Sign-In authentication.
         * 
         * @return builder
         * 
         */
        public Builder allowedAudiences(String... allowedAudiences) {
            return allowedAudiences(List.of(allowedAudiences));
        }

        /**
         * @param clientId The OAuth 2.0 client ID that was created for the app used for authentication.
         * 
         * @return builder
         * 
         */
        public Builder clientId(Output clientId) {
            $.clientId = clientId;
            return this;
        }

        /**
         * @param clientId The OAuth 2.0 client ID that was created for the app used for authentication.
         * 
         * @return builder
         * 
         */
        public Builder clientId(String clientId) {
            return clientId(Output.of(clientId));
        }

        /**
         * @param clientSecretSettingName The app setting name containing the OAuth 2.0 client secret that was created for the app used for authentication.
         * 
         * !> **NOTE:** A setting with this name must exist in `app_settings` to function correctly.
         * 
         * @return builder
         * 
         */
        public Builder clientSecretSettingName(Output clientSecretSettingName) {
            $.clientSecretSettingName = clientSecretSettingName;
            return this;
        }

        /**
         * @param clientSecretSettingName The app setting name containing the OAuth 2.0 client secret that was created for the app used for authentication.
         * 
         * !> **NOTE:** A setting with this name must exist in `app_settings` to function correctly.
         * 
         * @return builder
         * 
         */
        public Builder clientSecretSettingName(String clientSecretSettingName) {
            return clientSecretSettingName(Output.of(clientSecretSettingName));
        }

        /**
         * @param loginScopes The list of Login scopes that should be requested as part of Microsoft Account authentication.
         * 
         * @return builder
         * 
         */
        public Builder loginScopes(@Nullable Output> loginScopes) {
            $.loginScopes = loginScopes;
            return this;
        }

        /**
         * @param loginScopes The list of Login scopes that should be requested as part of Microsoft Account authentication.
         * 
         * @return builder
         * 
         */
        public Builder loginScopes(List loginScopes) {
            return loginScopes(Output.of(loginScopes));
        }

        /**
         * @param loginScopes The list of Login scopes that should be requested as part of Microsoft Account authentication.
         * 
         * @return builder
         * 
         */
        public Builder loginScopes(String... loginScopes) {
            return loginScopes(List.of(loginScopes));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy