class IdentityPoolProviderUrl
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Cognito.IdentityPool.IdentityPoolProviderUrl |
Java | software.amazon.awscdk.services.cognito.identitypool.IdentityPoolProviderUrl |
Python | aws_cdk.aws_cognito_identitypool.IdentityPoolProviderUrl |
TypeScript (source) | @aws-cdk/aws-cognito-identitypool » IdentityPoolProviderUrl |
Keys for Login Providers - correspond to client id's of respective federation identity providers.
Example
import { IdentityPoolProviderUrl } from '@aws-cdk/aws-cognito-identitypool';
new IdentityPool(this, 'myidentitypool', {
identityPoolName: 'myidentitypool',
roleMappings: [
{
providerUrl: IdentityPoolProviderUrl.userPool('cognito-idp.my-idp-region.amazonaws.com/my-idp-region_abcdefghi:app_client_id'),
useToken: true,
},
{
providerUrl: IdentityPoolProviderUrl.custom('my-custom-provider.com'),
useToken: true,
},
],
});
Initializer
new IdentityPoolProviderUrl(type: IdentityPoolProviderType, value: string)
Parameters
- type
Identity
— type of Provider Url.Pool Provider Type - value
string
— value of Provider Url.
Properties
Name | Type | Description |
---|---|---|
type | Identity | type of Provider Url. |
value | string | value of Provider Url. |
static AMAZON | Identity | Amazon Provider Url. |
static APPLE | Identity | Apple Provider Url. |
static DIGITS | Identity | Digits Provider Url. |
static FACEBOOK | Identity | Facebook Provider Url. |
static GOOGLE | Identity | Google Provider Url. |
static TWITTER | Identity | Twitter Provider Url. |
type
Type:
Identity
type of Provider Url.
value
Type:
string
value of Provider Url.
static AMAZON
Type:
Identity
Amazon Provider Url.
static APPLE
Type:
Identity
Apple Provider Url.
static DIGITS
Type:
Identity
Digits 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.
Id(url)
static openpublic 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.
Pool(url)
static userpublic static userPool(url: string): IdentityPoolProviderUrl
Parameters
- url
string
Returns
User Pool Provider Url.