IdentityProvider

class IdentityProvider : KotlinCustomResource

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

Properties

Link copied to clipboard

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

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

The list of identity providers.

Link copied to clipboard

The map of identity details, such as access token

Link copied to clipboard
val providerName: Output<String>

The provider name

Link copied to clipboard
val providerType: Output<String>

The provider type. See AWS API for valid values

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val userPoolId: Output<String>

The user pool id