![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.apimanagement.kotlin.IdentityProviderArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.apimanagement.kotlin
import com.pulumi.azurenative.apimanagement.IdentityProviderArgs.builder
import com.pulumi.azurenative.apimanagement.kotlin.enums.IdentityProviderType
import com.pulumi.core.Either
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Identity Provider details.
* Azure REST API version: 2022-08-01. Prior API version in Azure Native 1.x: 2020-12-01.
* Other available API versions: 2016-07-07, 2016-10-10, 2019-01-01, 2022-09-01-preview, 2023-03-01-preview, 2023-05-01-preview, 2023-09-01-preview, 2024-05-01.
* ## Example Usage
* ### ApiManagementCreateIdentityProvider
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var identityProvider = new AzureNative.ApiManagement.IdentityProvider("identityProvider", new()
* {
* ClientId = "facebookid",
* ClientSecret = "facebookapplicationsecret",
* IdentityProviderName = "facebook",
* ResourceGroupName = "rg1",
* ServiceName = "apimService1",
* });
* });
* ```
* ```go
* package main
* import (
* apimanagement "github.com/pulumi/pulumi-azure-native-sdk/apimanagement/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := apimanagement.NewIdentityProvider(ctx, "identityProvider", &apimanagement.IdentityProviderArgs{
* ClientId: pulumi.String("facebookid"),
* ClientSecret: pulumi.String("facebookapplicationsecret"),
* IdentityProviderName: pulumi.String("facebook"),
* ResourceGroupName: pulumi.String("rg1"),
* ServiceName: pulumi.String("apimService1"),
* })
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.apimanagement.IdentityProvider;
* import com.pulumi.azurenative.apimanagement.IdentityProviderArgs;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
* public static void stack(Context ctx) {
* var identityProvider = new IdentityProvider("identityProvider", IdentityProviderArgs.builder()
* .clientId("facebookid")
* .clientSecret("facebookapplicationsecret")
* .identityProviderName("facebook")
* .resourceGroupName("rg1")
* .serviceName("apimService1")
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:apimanagement:IdentityProvider Facebook /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/identityProviders/{identityProviderName}
* ```
* @property allowedTenants List of Allowed Tenants when configuring Azure Active Directory login.
* @property authority OpenID Connect discovery endpoint hostname for AAD or AAD B2C.
* @property clientId Client Id of the Application in the external Identity Provider. It is App ID for Facebook login, Client ID for Google login, App ID for Microsoft.
* @property clientLibrary The client library to be used in the developer portal. Only applies to AAD and AAD B2C Identity Provider.
* @property clientSecret Client secret of the Application in external Identity Provider, used to authenticate login request. For example, it is App Secret for Facebook login, API Key for Google login, Public Key for Microsoft. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value.
* @property identityProviderName Identity Provider Type identifier.
* @property passwordResetPolicyName Password Reset Policy Name. Only applies to AAD B2C Identity Provider.
* @property profileEditingPolicyName Profile Editing Policy Name. Only applies to AAD B2C Identity Provider.
* @property resourceGroupName The name of the resource group. The name is case insensitive.
* @property serviceName The name of the API Management service.
* @property signinPolicyName Signin Policy Name. Only applies to AAD B2C Identity Provider.
* @property signinTenant The TenantId to use instead of Common when logging into Active Directory
* @property signupPolicyName Signup Policy Name. Only applies to AAD B2C Identity Provider.
* @property type Identity Provider Type identifier.
*/
public data class IdentityProviderArgs(
public val allowedTenants: Output>? = null,
public val authority: Output? = null,
public val clientId: Output? = null,
public val clientLibrary: Output? = null,
public val clientSecret: Output? = null,
public val identityProviderName: Output? = null,
public val passwordResetPolicyName: Output? = null,
public val profileEditingPolicyName: Output? = null,
public val resourceGroupName: Output? = null,
public val serviceName: Output? = null,
public val signinPolicyName: Output? = null,
public val signinTenant: Output? = null,
public val signupPolicyName: Output? = null,
public val type: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.apimanagement.IdentityProviderArgs =
com.pulumi.azurenative.apimanagement.IdentityProviderArgs.builder()
.allowedTenants(allowedTenants?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.authority(authority?.applyValue({ args0 -> args0 }))
.clientId(clientId?.applyValue({ args0 -> args0 }))
.clientLibrary(clientLibrary?.applyValue({ args0 -> args0 }))
.clientSecret(clientSecret?.applyValue({ args0 -> args0 }))
.identityProviderName(identityProviderName?.applyValue({ args0 -> args0 }))
.passwordResetPolicyName(passwordResetPolicyName?.applyValue({ args0 -> args0 }))
.profileEditingPolicyName(profileEditingPolicyName?.applyValue({ args0 -> args0 }))
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
.serviceName(serviceName?.applyValue({ args0 -> args0 }))
.signinPolicyName(signinPolicyName?.applyValue({ args0 -> args0 }))
.signinTenant(signinTenant?.applyValue({ args0 -> args0 }))
.signupPolicyName(signupPolicyName?.applyValue({ args0 -> args0 }))
.type(
type?.applyValue({ args0 ->
args0.transform({ args0 -> args0 }, { args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [IdentityProviderArgs].
*/
@PulumiTagMarker
public class IdentityProviderArgsBuilder internal constructor() {
private var allowedTenants: Output>? = null
private var authority: Output? = null
private var clientId: Output? = null
private var clientLibrary: Output? = null
private var clientSecret: Output? = null
private var identityProviderName: Output? = null
private var passwordResetPolicyName: Output? = null
private var profileEditingPolicyName: Output? = null
private var resourceGroupName: Output? = null
private var serviceName: Output? = null
private var signinPolicyName: Output? = null
private var signinTenant: Output? = null
private var signupPolicyName: Output? = null
private var type: Output>? = null
/**
* @param value List of Allowed Tenants when configuring Azure Active Directory login.
*/
@JvmName("coxbcwhtgnsnuvre")
public suspend fun allowedTenants(`value`: Output>) {
this.allowedTenants = value
}
@JvmName("kafdteckkjkyhjno")
public suspend fun allowedTenants(vararg values: Output) {
this.allowedTenants = Output.all(values.asList())
}
/**
* @param values List of Allowed Tenants when configuring Azure Active Directory login.
*/
@JvmName("ovghtttcavyfavnl")
public suspend fun allowedTenants(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy