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

com.pulumi.azurenative.apimanagement.IdentityProvider Maven / Gradle / Ivy

There is a newer version: 2.82.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.apimanagement;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.apimanagement.IdentityProviderArgs;
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;

/**
 * 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
 * 
 * 
 * {@code
 * 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} * ``` * */ @ResourceType(type="azure-native:apimanagement:IdentityProvider") public class IdentityProvider extends com.pulumi.resources.CustomResource { /** * List of Allowed Tenants when configuring Azure Active Directory login. * */ @Export(name="allowedTenants", refs={List.class,String.class}, tree="[0,1]") private Output> allowedTenants; /** * @return List of Allowed Tenants when configuring Azure Active Directory login. * */ public Output>> allowedTenants() { return Codegen.optional(this.allowedTenants); } /** * OpenID Connect discovery endpoint hostname for AAD or AAD B2C. * */ @Export(name="authority", refs={String.class}, tree="[0]") private Output authority; /** * @return OpenID Connect discovery endpoint hostname for AAD or AAD B2C. * */ public Output> authority() { return Codegen.optional(this.authority); } /** * 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. * */ @Export(name="clientId", refs={String.class}, tree="[0]") private Output clientId; /** * @return 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. * */ public Output clientId() { return this.clientId; } /** * The client library to be used in the developer portal. Only applies to AAD and AAD B2C Identity Provider. * */ @Export(name="clientLibrary", refs={String.class}, tree="[0]") private Output clientLibrary; /** * @return The client library to be used in the developer portal. Only applies to AAD and AAD B2C Identity Provider. * */ public Output> clientLibrary() { return Codegen.optional(this.clientLibrary); } /** * 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. * */ @Export(name="clientSecret", refs={String.class}, tree="[0]") private Output clientSecret; /** * @return 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. * */ public Output> clientSecret() { return Codegen.optional(this.clientSecret); } /** * The name of the resource * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return The name of the resource * */ public Output name() { return this.name; } /** * Password Reset Policy Name. Only applies to AAD B2C Identity Provider. * */ @Export(name="passwordResetPolicyName", refs={String.class}, tree="[0]") private Output passwordResetPolicyName; /** * @return Password Reset Policy Name. Only applies to AAD B2C Identity Provider. * */ public Output> passwordResetPolicyName() { return Codegen.optional(this.passwordResetPolicyName); } /** * Profile Editing Policy Name. Only applies to AAD B2C Identity Provider. * */ @Export(name="profileEditingPolicyName", refs={String.class}, tree="[0]") private Output profileEditingPolicyName; /** * @return Profile Editing Policy Name. Only applies to AAD B2C Identity Provider. * */ public Output> profileEditingPolicyName() { return Codegen.optional(this.profileEditingPolicyName); } /** * Signin Policy Name. Only applies to AAD B2C Identity Provider. * */ @Export(name="signinPolicyName", refs={String.class}, tree="[0]") private Output signinPolicyName; /** * @return Signin Policy Name. Only applies to AAD B2C Identity Provider. * */ public Output> signinPolicyName() { return Codegen.optional(this.signinPolicyName); } /** * The TenantId to use instead of Common when logging into Active Directory * */ @Export(name="signinTenant", refs={String.class}, tree="[0]") private Output signinTenant; /** * @return The TenantId to use instead of Common when logging into Active Directory * */ public Output> signinTenant() { return Codegen.optional(this.signinTenant); } /** * Signup Policy Name. Only applies to AAD B2C Identity Provider. * */ @Export(name="signupPolicyName", refs={String.class}, tree="[0]") private Output signupPolicyName; /** * @return Signup Policy Name. Only applies to AAD B2C Identity Provider. * */ public Output> signupPolicyName() { return Codegen.optional(this.signupPolicyName); } /** * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" * */ public Output type() { return this.type; } /** * * @param name The _unique_ name of the resulting resource. */ public IdentityProvider(java.lang.String name) { this(name, IdentityProviderArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public IdentityProvider(java.lang.String name, IdentityProviderArgs 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 IdentityProvider(java.lang.String name, IdentityProviderArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:apimanagement:IdentityProvider", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private IdentityProvider(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:apimanagement:IdentityProvider", name, null, makeResourceOptions(options, id), false); } private static IdentityProviderArgs makeArgs(IdentityProviderArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? IdentityProviderArgs.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:apimanagement/v20160707:IdentityProvider").build()), Output.of(Alias.builder().type("azure-native:apimanagement/v20161010:IdentityProvider").build()), Output.of(Alias.builder().type("azure-native:apimanagement/v20170301:IdentityProvider").build()), Output.of(Alias.builder().type("azure-native:apimanagement/v20180101:IdentityProvider").build()), Output.of(Alias.builder().type("azure-native:apimanagement/v20180601preview:IdentityProvider").build()), Output.of(Alias.builder().type("azure-native:apimanagement/v20190101:IdentityProvider").build()), Output.of(Alias.builder().type("azure-native:apimanagement/v20191201:IdentityProvider").build()), Output.of(Alias.builder().type("azure-native:apimanagement/v20191201preview:IdentityProvider").build()), Output.of(Alias.builder().type("azure-native:apimanagement/v20200601preview:IdentityProvider").build()), Output.of(Alias.builder().type("azure-native:apimanagement/v20201201:IdentityProvider").build()), Output.of(Alias.builder().type("azure-native:apimanagement/v20210101preview:IdentityProvider").build()), Output.of(Alias.builder().type("azure-native:apimanagement/v20210401preview:IdentityProvider").build()), Output.of(Alias.builder().type("azure-native:apimanagement/v20210801:IdentityProvider").build()), Output.of(Alias.builder().type("azure-native:apimanagement/v20211201preview:IdentityProvider").build()), Output.of(Alias.builder().type("azure-native:apimanagement/v20220401preview:IdentityProvider").build()), Output.of(Alias.builder().type("azure-native:apimanagement/v20220801:IdentityProvider").build()), Output.of(Alias.builder().type("azure-native:apimanagement/v20220901preview:IdentityProvider").build()), Output.of(Alias.builder().type("azure-native:apimanagement/v20230301preview:IdentityProvider").build()), Output.of(Alias.builder().type("azure-native:apimanagement/v20230501preview:IdentityProvider").build()), Output.of(Alias.builder().type("azure-native:apimanagement/v20230901preview:IdentityProvider").build()), Output.of(Alias.builder().type("azure-native:apimanagement/v20240501:IdentityProvider").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 IdentityProvider get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new IdentityProvider(name, id, options); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy