class IdentityPoolProviderUrl
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Cognito.Identitypool.IdentityPoolProviderUrl |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awscognitoidentitypool#IdentityPoolProviderUrl |
![]() | software.amazon.awscdk.services.cognito.identitypool.IdentityPoolProviderUrl |
![]() | aws_cdk.aws_cognito_identitypool.IdentityPoolProviderUrl |
![]() | aws-cdk-lib » aws_cognito_identitypool » IdentityPoolProviderUrl |
Keys for Login Providers - each correspond to the client IDs of their respective federation Identity Providers.
Example
import { IdentityPoolProviderUrl } from 'aws-cdk-lib/aws-cognito-identitypool';
new IdentityPool(this, 'myidentitypool', {
identityPoolName: 'myidentitypool',
roleMappings: [
{
providerUrl: IdentityPoolProviderUrl.custom('my-custom-provider.com'),
useToken: true,
},
],
});
Initializer
new IdentityPoolProviderUrl(type: IdentityPoolProviderType, value: string)
Parameters
- type
Identity
— The type of Identity Pool Provider.Pool Provider Type - value
string
— The value of the Identity Pool Provider.
Properties
Name | Type | Description |
---|---|---|
type | Identity | The type of Identity Pool Provider. |
value | string | The value of the Identity Pool Provider. |
static AMAZON | Identity | Amazon Provider url. |
static APPLE | Identity | Apple Provider url. |
static FACEBOOK | Identity | Facebook Provider url. |
static GOOGLE | Identity | Google Provider url. |
static TWITTER | Identity | Twitter Provider url. |
type
Type:
Identity
The type of Identity Pool Provider.
value
Type:
string
The value of the Identity Pool Provider.
static AMAZON
Type:
Identity
Amazon Provider url.
static APPLE
Type:
Identity
Apple Provider url.
static FACEBOOK
Type:
Identity
Facebook Provider url.
static GOOGLE
Type:
Identity
Google Provider url.
static TWITTER
Type:
Identity
Twitter Provider url.
Methods
Name | Description |
---|---|
static custom(url) | Custom Provider url. |
static open | OpenId Provider url. |
static saml(url) | Saml Provider url. |
static user | User Pool Provider Url. |
static custom(url)
public static custom(url: string): IdentityPoolProviderUrl
Parameters
- url
string
Returns
Custom Provider url.
static openId(url)
public static openId(url: string): IdentityPoolProviderUrl
Parameters
- url
string
Returns
OpenId Provider url.
static saml(url)
public static saml(url: string): IdentityPoolProviderUrl
Parameters
- url
string
Returns
Saml Provider url.
static userPool(userPool, userPoolClient)
public static userPool(userPool: IUserPool, userPoolClient: IUserPoolClient): IdentityPoolProviderUrl
Parameters
- userPool
IUser
Pool - userPoolClient
IUser
Pool Client
Returns
User Pool Provider Url.