Identity Pool Args
data class IdentityPoolArgs(val allowClassicFlow: Output<Boolean>? = null, val allowUnauthenticatedIdentities: Output<Boolean>? = null, val cognitoIdentityProviders: Output<List<IdentityPoolCognitoIdentityProviderArgs>>? = null, val developerProviderName: Output<String>? = null, val identityPoolName: Output<String>? = null, val openidConnectProviderArns: Output<List<String>>? = null, val samlProviderArns: Output<List<String>>? = null, val supportedLoginProviders: Output<Map<String, String>>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<IdentityPoolArgs>
Provides an AWS Cognito Identity Pool.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.iam.SamlProvider;
import com.pulumi.aws.iam.SamlProviderArgs;
import com.pulumi.aws.cognito.IdentityPool;
import com.pulumi.aws.cognito.IdentityPoolArgs;
import com.pulumi.aws.cognito.inputs.IdentityPoolCognitoIdentityProviderArgs;
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 default_ = new SamlProvider("default", SamlProviderArgs.builder()
.samlMetadataDocument(Files.readString(Paths.get("saml-metadata.xml")))
.build());
var main = new IdentityPool("main", IdentityPoolArgs.builder()
.identityPoolName("identity pool")
.allowUnauthenticatedIdentities(false)
.allowClassicFlow(false)
.cognitoIdentityProviders(
IdentityPoolCognitoIdentityProviderArgs.builder()
.clientId("6lhlkkfbfb4q5kpp90urffae")
.providerName("cognito-idp.us-east-1.amazonaws.com/us-east-1_Tv0493apJ")
.serverSideTokenCheck(false)
.build(),
IdentityPoolCognitoIdentityProviderArgs.builder()
.clientId("7kodkvfqfb4qfkp39eurffae")
.providerName("cognito-idp.us-east-1.amazonaws.com/eu-west-1_Zr231apJu")
.serverSideTokenCheck(false)
.build())
.supportedLoginProviders(Map.ofEntries(
Map.entry("graph.facebook.com", "7346241598935552"),
Map.entry("accounts.google.com", "123456789012.apps.googleusercontent.com")
))
.samlProviderArns(default_.arn())
.openidConnectProviderArns("arn:aws:iam::123456789012:oidc-provider/id.example.com")
.build());
}
}
Content copied to clipboard
Import
Cognito Identity Pool can be imported using its ID, e.g.,
$ pulumi import aws:cognito/identityPool:IdentityPool mypool us-west-2_abc123
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(allowClassicFlow: Output<Boolean>? = null, allowUnauthenticatedIdentities: Output<Boolean>? = null, cognitoIdentityProviders: Output<List<IdentityPoolCognitoIdentityProviderArgs>>? = null, developerProviderName: Output<String>? = null, identityPoolName: Output<String>? = null, openidConnectProviderArns: Output<List<String>>? = null, samlProviderArns: Output<List<String>>? = null, supportedLoginProviders: Output<Map<String, String>>? = null, tags: Output<Map<String, String>>? = null)
Properties
Link copied to clipboard
Enables or disables the classic / basic authentication flow. Default is false
.
Link copied to clipboard
Whether the identity pool supports unauthenticated logins or not.
Link copied to clipboard
An array of Amazon Cognito Identity user pools and their client IDs.
Link copied to clipboard
The "domain" by which Cognito will refer to your users. This name acts as a placeholder that allows your backend and the Cognito service to communicate about the developer provider.
Link copied to clipboard
The Cognito Identity Pool name.
Link copied to clipboard
Set of OpendID Connect provider ARNs.
Link copied to clipboard
An array of Amazon Resource Names (ARNs) of the SAML provider for your identity.
Link copied to clipboard
Key-Value pairs mapping provider names to provider app IDs.