IdentityProviderArgs

data class IdentityProviderArgs(val attributeMapping: Output<Map<String, String>>? = null, val idpIdentifiers: Output<List<String>>? = null, val providerDetails: Output<Map<String, String>>? = null, val providerName: Output<String>? = null, val providerType: Output<String>? = null, val userPoolId: Output<String>? = null) : ConvertibleToJava<IdentityProviderArgs>

Provides a Cognito User Identity Provider resource.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.cognito.UserPool;
import com.pulumi.aws.cognito.UserPoolArgs;
import com.pulumi.aws.cognito.IdentityProvider;
import com.pulumi.aws.cognito.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 example = new UserPool("example", UserPoolArgs.builder()
.autoVerifiedAttributes("email")
.build());
var exampleProvider = new IdentityProvider("exampleProvider", IdentityProviderArgs.builder()
.userPoolId(example.id())
.providerName("Google")
.providerType("Google")
.providerDetails(Map.ofEntries(
Map.entry("authorize_scopes", "email"),
Map.entry("client_id", "your client_id"),
Map.entry("client_secret", "your client_secret")
))
.attributeMapping(Map.ofEntries(
Map.entry("email", "email"),
Map.entry("username", "sub")
))
.build());
}
}

Import

aws_cognito_identity_provider resources can be imported using their User Pool ID and Provider Name, e.g.,

$ pulumi import aws:cognito/identityProvider:IdentityProvider example us-west-2_abc123:CorpAD

Constructors

Link copied to clipboard
constructor(attributeMapping: Output<Map<String, String>>? = null, idpIdentifiers: Output<List<String>>? = null, providerDetails: Output<Map<String, String>>? = null, providerName: Output<String>? = null, providerType: Output<String>? = null, userPoolId: Output<String>? = null)

Properties

Link copied to clipboard
val attributeMapping: Output<Map<String, String>>? = null

The map of attribute mapping of user pool attributes. AttributeMapping in AWS API documentation

Link copied to clipboard
val idpIdentifiers: Output<List<String>>? = null

The list of identity providers.

Link copied to clipboard
val providerDetails: Output<Map<String, String>>? = null

The map of identity details, such as access token

Link copied to clipboard
val providerName: Output<String>? = null

The provider name

Link copied to clipboard
val providerType: Output<String>? = null

The provider type. See AWS API for valid values

Link copied to clipboard
val userPoolId: Output<String>? = null

The user pool id

Functions

Link copied to clipboard
open override fun toJava(): IdentityProviderArgs