Identity Provider Args
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());
}
}
Content copied to clipboard
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
Content copied to clipboard
Properties
Link copied to clipboard
The map of attribute mapping of user pool attributes. AttributeMapping in AWS API documentation
Link copied to clipboard
The list of identity providers.
Link copied to clipboard
The map of identity details, such as access token
Link copied to clipboard
The provider name
Link copied to clipboard
The provider type. See AWS API for valid values
Link copied to clipboard
The user pool id