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

com.pulumi.azure.apimanagement.IdentityProviderAadArgs 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.apimanagement;

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 IdentityProviderAadArgs extends com.pulumi.resources.ResourceArgs {

    public static final IdentityProviderAadArgs Empty = new IdentityProviderAadArgs();

    /**
     * List of allowed AAD Tenants.
     * 
     */
    @Import(name="allowedTenants", required=true)
    private Output> allowedTenants;

    /**
     * @return List of allowed AAD Tenants.
     * 
     */
    public Output> allowedTenants() {
        return this.allowedTenants;
    }

    /**
     * The Name of the API Management Service where this AAD Identity Provider should be created. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="apiManagementName", required=true)
    private Output apiManagementName;

    /**
     * @return The Name of the API Management Service where this AAD Identity Provider should be created. Changing this forces a new resource to be created.
     * 
     */
    public Output apiManagementName() {
        return this.apiManagementName;
    }

    /**
     * Client Id of the Application in the AAD Identity Provider.
     * 
     */
    @Import(name="clientId", required=true)
    private Output clientId;

    /**
     * @return Client Id of the Application in the AAD Identity Provider.
     * 
     */
    public Output clientId() {
        return this.clientId;
    }

    /**
     * The client library to be used in the AAD Identity Provider.
     * 
     */
    @Import(name="clientLibrary")
    private @Nullable Output clientLibrary;

    /**
     * @return The client library to be used in the AAD Identity Provider.
     * 
     */
    public Optional> clientLibrary() {
        return Optional.ofNullable(this.clientLibrary);
    }

    /**
     * Client secret of the Application in the AAD Identity Provider.
     * 
     */
    @Import(name="clientSecret", required=true)
    private Output clientSecret;

    /**
     * @return Client secret of the Application in the AAD Identity Provider.
     * 
     */
    public Output clientSecret() {
        return this.clientSecret;
    }

    /**
     * The Name of the Resource Group where the API Management Service exists. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The Name of the Resource Group where the API Management Service exists. Changing this forces a new resource to be created.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * The AAD Tenant to use instead of Common when logging into Active Directory.
     * 
     */
    @Import(name="signinTenant")
    private @Nullable Output signinTenant;

    /**
     * @return The AAD Tenant to use instead of Common when logging into Active Directory.
     * 
     */
    public Optional> signinTenant() {
        return Optional.ofNullable(this.signinTenant);
    }

    private IdentityProviderAadArgs() {}

    private IdentityProviderAadArgs(IdentityProviderAadArgs $) {
        this.allowedTenants = $.allowedTenants;
        this.apiManagementName = $.apiManagementName;
        this.clientId = $.clientId;
        this.clientLibrary = $.clientLibrary;
        this.clientSecret = $.clientSecret;
        this.resourceGroupName = $.resourceGroupName;
        this.signinTenant = $.signinTenant;
    }

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

    public static final class Builder {
        private IdentityProviderAadArgs $;

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

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

        /**
         * @param allowedTenants List of allowed AAD Tenants.
         * 
         * @return builder
         * 
         */
        public Builder allowedTenants(Output> allowedTenants) {
            $.allowedTenants = allowedTenants;
            return this;
        }

        /**
         * @param allowedTenants List of allowed AAD Tenants.
         * 
         * @return builder
         * 
         */
        public Builder allowedTenants(List allowedTenants) {
            return allowedTenants(Output.of(allowedTenants));
        }

        /**
         * @param allowedTenants List of allowed AAD Tenants.
         * 
         * @return builder
         * 
         */
        public Builder allowedTenants(String... allowedTenants) {
            return allowedTenants(List.of(allowedTenants));
        }

        /**
         * @param apiManagementName The Name of the API Management Service where this AAD Identity Provider should be created. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder apiManagementName(Output apiManagementName) {
            $.apiManagementName = apiManagementName;
            return this;
        }

        /**
         * @param apiManagementName The Name of the API Management Service where this AAD Identity Provider should be created. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder apiManagementName(String apiManagementName) {
            return apiManagementName(Output.of(apiManagementName));
        }

        /**
         * @param clientId Client Id of the Application in the AAD Identity Provider.
         * 
         * @return builder
         * 
         */
        public Builder clientId(Output clientId) {
            $.clientId = clientId;
            return this;
        }

        /**
         * @param clientId Client Id of the Application in the AAD Identity Provider.
         * 
         * @return builder
         * 
         */
        public Builder clientId(String clientId) {
            return clientId(Output.of(clientId));
        }

        /**
         * @param clientLibrary The client library to be used in the AAD Identity Provider.
         * 
         * @return builder
         * 
         */
        public Builder clientLibrary(@Nullable Output clientLibrary) {
            $.clientLibrary = clientLibrary;
            return this;
        }

        /**
         * @param clientLibrary The client library to be used in the AAD Identity Provider.
         * 
         * @return builder
         * 
         */
        public Builder clientLibrary(String clientLibrary) {
            return clientLibrary(Output.of(clientLibrary));
        }

        /**
         * @param clientSecret Client secret of the Application in the AAD Identity Provider.
         * 
         * @return builder
         * 
         */
        public Builder clientSecret(Output clientSecret) {
            $.clientSecret = clientSecret;
            return this;
        }

        /**
         * @param clientSecret Client secret of the Application in the AAD Identity Provider.
         * 
         * @return builder
         * 
         */
        public Builder clientSecret(String clientSecret) {
            return clientSecret(Output.of(clientSecret));
        }

        /**
         * @param resourceGroupName The Name of the Resource Group where the API Management Service exists. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The Name of the Resource Group where the API Management Service exists. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param signinTenant The AAD Tenant to use instead of Common when logging into Active Directory.
         * 
         * @return builder
         * 
         */
        public Builder signinTenant(@Nullable Output signinTenant) {
            $.signinTenant = signinTenant;
            return this;
        }

        /**
         * @param signinTenant The AAD Tenant to use instead of Common when logging into Active Directory.
         * 
         * @return builder
         * 
         */
        public Builder signinTenant(String signinTenant) {
            return signinTenant(Output.of(signinTenant));
        }

        public IdentityProviderAadArgs build() {
            if ($.allowedTenants == null) {
                throw new MissingRequiredPropertyException("IdentityProviderAadArgs", "allowedTenants");
            }
            if ($.apiManagementName == null) {
                throw new MissingRequiredPropertyException("IdentityProviderAadArgs", "apiManagementName");
            }
            if ($.clientId == null) {
                throw new MissingRequiredPropertyException("IdentityProviderAadArgs", "clientId");
            }
            if ($.clientSecret == null) {
                throw new MissingRequiredPropertyException("IdentityProviderAadArgs", "clientSecret");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("IdentityProviderAadArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy