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

com.pulumi.azurenative.web.WebAppAuthSettingsV2Slot 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.web;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.web.WebAppAuthSettingsV2SlotArgs;
import com.pulumi.azurenative.web.outputs.AuthPlatformResponse;
import com.pulumi.azurenative.web.outputs.GlobalValidationResponse;
import com.pulumi.azurenative.web.outputs.HttpSettingsResponse;
import com.pulumi.azurenative.web.outputs.IdentityProvidersResponse;
import com.pulumi.azurenative.web.outputs.LoginResponse;
import com.pulumi.core.Alias;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.String;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * Configuration settings for the Azure App Service Authentication / Authorization V2 feature.
 * Azure REST API version: 2021-02-01. Prior API version in Azure Native 1.x: 2020-12-01.
 * 
 * Other available API versions: 2020-10-01.
 * ## Import
 * 
 * An existing resource can be imported using its type token, name, and identifier, e.g.
 * 
 * ```sh
 * $ pulumi import azure-native:web:WebAppAuthSettingsV2Slot myresource1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/authsettingsV2 
 * ```
 * 
 */
@ResourceType(type="azure-native:web:WebAppAuthSettingsV2Slot")
public class WebAppAuthSettingsV2Slot extends com.pulumi.resources.CustomResource {
    /**
     * The configuration settings that determines the validation flow of users using App Service Authentication/Authorization.
     * 
     */
    @Export(name="globalValidation", refs={GlobalValidationResponse.class}, tree="[0]")
    private Output globalValidation;

    /**
     * @return The configuration settings that determines the validation flow of users using App Service Authentication/Authorization.
     * 
     */
    public Output> globalValidation() {
        return Codegen.optional(this.globalValidation);
    }
    /**
     * The configuration settings of the HTTP requests for authentication and authorization requests made against App Service Authentication/Authorization.
     * 
     */
    @Export(name="httpSettings", refs={HttpSettingsResponse.class}, tree="[0]")
    private Output httpSettings;

    /**
     * @return The configuration settings of the HTTP requests for authentication and authorization requests made against App Service Authentication/Authorization.
     * 
     */
    public Output> httpSettings() {
        return Codegen.optional(this.httpSettings);
    }
    /**
     * The configuration settings of each of the identity providers used to configure App Service Authentication/Authorization.
     * 
     */
    @Export(name="identityProviders", refs={IdentityProvidersResponse.class}, tree="[0]")
    private Output identityProviders;

    /**
     * @return The configuration settings of each of the identity providers used to configure App Service Authentication/Authorization.
     * 
     */
    public Output> identityProviders() {
        return Codegen.optional(this.identityProviders);
    }
    /**
     * Kind of resource.
     * 
     */
    @Export(name="kind", refs={String.class}, tree="[0]")
    private Output kind;

    /**
     * @return Kind of resource.
     * 
     */
    public Output> kind() {
        return Codegen.optional(this.kind);
    }
    /**
     * The configuration settings of the login flow of users using App Service Authentication/Authorization.
     * 
     */
    @Export(name="login", refs={LoginResponse.class}, tree="[0]")
    private Output login;

    /**
     * @return The configuration settings of the login flow of users using App Service Authentication/Authorization.
     * 
     */
    public Output> login() {
        return Codegen.optional(this.login);
    }
    /**
     * Resource Name.
     * 
     */
    @Export(name="name", refs={String.class}, tree="[0]")
    private Output name;

    /**
     * @return Resource Name.
     * 
     */
    public Output name() {
        return this.name;
    }
    /**
     * The configuration settings of the platform of App Service Authentication/Authorization.
     * 
     */
    @Export(name="platform", refs={AuthPlatformResponse.class}, tree="[0]")
    private Output platform;

    /**
     * @return The configuration settings of the platform of App Service Authentication/Authorization.
     * 
     */
    public Output> platform() {
        return Codegen.optional(this.platform);
    }
    /**
     * Resource type.
     * 
     */
    @Export(name="type", refs={String.class}, tree="[0]")
    private Output type;

    /**
     * @return Resource type.
     * 
     */
    public Output type() {
        return this.type;
    }

    /**
     *
     * @param name The _unique_ name of the resulting resource.
     */
    public WebAppAuthSettingsV2Slot(java.lang.String name) {
        this(name, WebAppAuthSettingsV2SlotArgs.Empty);
    }
    /**
     *
     * @param name The _unique_ name of the resulting resource.
     * @param args The arguments to use to populate this resource's properties.
     */
    public WebAppAuthSettingsV2Slot(java.lang.String name, WebAppAuthSettingsV2SlotArgs args) {
        this(name, args, null);
    }
    /**
     *
     * @param name The _unique_ name of the resulting resource.
     * @param args The arguments to use to populate this resource's properties.
     * @param options A bag of options that control this resource's behavior.
     */
    public WebAppAuthSettingsV2Slot(java.lang.String name, WebAppAuthSettingsV2SlotArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        super("azure-native:web:WebAppAuthSettingsV2Slot", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
    }

    private WebAppAuthSettingsV2Slot(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        super("azure-native:web:WebAppAuthSettingsV2Slot", name, null, makeResourceOptions(options, id), false);
    }

    private static WebAppAuthSettingsV2SlotArgs makeArgs(WebAppAuthSettingsV2SlotArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        if (options != null && options.getUrn().isPresent()) {
            return null;
        }
        return args == null ? WebAppAuthSettingsV2SlotArgs.Empty : args;
    }

    private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) {
        var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder()
            .version(Utilities.getVersion())
            .aliases(List.of(
                Output.of(Alias.builder().type("azure-native:web/v20200601:WebAppAuthSettingsV2Slot").build()),
                Output.of(Alias.builder().type("azure-native:web/v20200901:WebAppAuthSettingsV2Slot").build()),
                Output.of(Alias.builder().type("azure-native:web/v20201001:WebAppAuthSettingsV2Slot").build()),
                Output.of(Alias.builder().type("azure-native:web/v20201201:WebAppAuthSettingsV2Slot").build()),
                Output.of(Alias.builder().type("azure-native:web/v20210101:WebAppAuthSettingsV2Slot").build()),
                Output.of(Alias.builder().type("azure-native:web/v20210115:WebAppAuthSettingsV2Slot").build()),
                Output.of(Alias.builder().type("azure-native:web/v20210201:WebAppAuthSettingsV2Slot").build())
            ))
            .build();
        return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
    }

    /**
     * Get an existing Host resource's state with the given name, ID, and optional extra
     * properties used to qualify the lookup.
     *
     * @param name The _unique_ name of the resulting resource.
     * @param id The _unique_ provider ID of the resource to lookup.
     * @param options Optional settings to control the behavior of the CustomResource.
     */
    public static WebAppAuthSettingsV2Slot get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        return new WebAppAuthSettingsV2Slot(name, id, options);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy