Identity Provider
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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard