@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-14T16:25:33.814Z") public class IdentityPool extends Resource implements IIdentityPool
Example:
OpenIdConnectProvider openIdConnectProvider; IdentityPool.Builder.create(this, "myidentitypool") .identityPoolName("myidentitypool") .authenticationProviders(IdentityPoolAuthenticationProviders.builder() .google(IdentityPoolGoogleLoginProvider.builder() .clientId("12345678012.apps.googleusercontent.com") .build()) .openIdConnectProviders(List.of(openIdConnectProvider)) .customProvider("my-custom-provider.example.com") .build()) .build();
Modifier and Type | Class and Description |
---|---|
static class |
IdentityPool.Builder
(experimental) A fluent builder for
IdentityPool . |
IIdentityPool.Jsii$Default, IIdentityPool.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
IdentityPool(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
IdentityPool(software.amazon.jsii.JsiiObjectRef objRef) |
|
IdentityPool(software.constructs.Construct scope,
java.lang.String id) |
|
IdentityPool(software.constructs.Construct scope,
java.lang.String id,
IdentityPoolProps props) |
Modifier and Type | Method and Description |
---|---|
void |
addRoleMappings(IdentityPoolRoleMapping... roleMappings)
(experimental) Adds Role Mappings to Identity Pool.
|
void |
addUserPoolAuthentication(IUserPoolAuthenticationProvider userPool)
(experimental) Add a User Pool to the IdentityPool and configure User Pool Client to handle identities.
|
static IIdentityPool |
fromIdentityPoolArn(software.constructs.Construct scope,
java.lang.String id,
java.lang.String identityPoolArn)
(experimental) Import an existing Identity Pool from its Arn.
|
static IIdentityPool |
fromIdentityPoolId(software.constructs.Construct scope,
java.lang.String id,
java.lang.String identityPoolId)
(experimental) Import an existing Identity Pool from its id.
|
IRole |
getAuthenticatedRole()
(experimental) Default role for authenticated users.
|
java.lang.String |
getIdentityPoolArn()
(experimental) The ARN of the Identity Pool.
|
java.lang.String |
getIdentityPoolId()
(experimental) The id of the Identity Pool in the format REGION:GUID.
|
java.lang.String |
getIdentityPoolName()
(experimental) The name of the Identity Pool.
|
IRole |
getUnauthenticatedRole()
(experimental) Default role for unauthenticated users.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResource
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyRemovalPolicy, getEnv, getStack
getNode
protected IdentityPool(software.amazon.jsii.JsiiObjectRef objRef)
protected IdentityPool(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public IdentityPool(software.constructs.Construct scope, java.lang.String id, IdentityPoolProps props)
scope
- This parameter is required.id
- This parameter is required.props
- public IdentityPool(software.constructs.Construct scope, java.lang.String id)
scope
- This parameter is required.id
- This parameter is required.public static IIdentityPool fromIdentityPoolArn(software.constructs.Construct scope, java.lang.String id, java.lang.String identityPoolArn)
scope
- This parameter is required.id
- This parameter is required.identityPoolArn
- This parameter is required.public static IIdentityPool fromIdentityPoolId(software.constructs.Construct scope, java.lang.String id, java.lang.String identityPoolId)
scope
- This parameter is required.id
- This parameter is required.identityPoolId
- This parameter is required.public void addRoleMappings(IdentityPoolRoleMapping... roleMappings)
roleMappings
- This parameter is required.public void addUserPoolAuthentication(IUserPoolAuthenticationProvider userPool)
userPool
- This parameter is required.public IRole getAuthenticatedRole()
public java.lang.String getIdentityPoolArn()
getIdentityPoolArn
in interface IIdentityPool
public java.lang.String getIdentityPoolId()
getIdentityPoolId
in interface IIdentityPool
public java.lang.String getIdentityPoolName()
getIdentityPoolName
in interface IIdentityPool
public IRole getUnauthenticatedRole()