Skip to content
v2.278.0

IdentityPoolProviderUrl ​

Class Stable

Keys for Login Providers - each correspond to the client IDs of their respective federation Identity Providers.

Example ​

ts
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,
    },
  ],
});
python
from aws_cdk.aws_cognito_identitypool import IdentityPoolRoleMapping
from aws_cdk.aws_cognito_identitypool import IdentityPoolProviderUrl


IdentityPool(self, "myidentitypool",
    identity_pool_name="myidentitypool",
    role_mappings=[IdentityPoolRoleMapping(
        provider_url=IdentityPoolProviderUrl.custom("my-custom-provider.com"),
        use_token=True
    )
    ]
)
java
import software.amazon.awscdk.services.cognito.identitypool.IdentityPoolProviderUrl;


IdentityPool.Builder.create(this, "myidentitypool")
        .identityPoolName("myidentitypool")
        .roleMappings(List.of(IdentityPoolRoleMapping.builder()
                .providerUrl(IdentityPoolProviderUrl.custom("my-custom-provider.com"))
                .useToken(true)
                .build()))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
using Amazon.CDK.AWS.Cognito.Identitypool;


new IdentityPool(this, "myidentitypool", new IdentityPoolProps {
    IdentityPoolName = "myidentitypool",
    RoleMappings = new [] { new IdentityPoolRoleMapping {
        ProviderUrl = IdentityPoolProviderUrl.Custom("my-custom-provider.com"),
        UseToken = true
    } }
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
import "github.com/aws/aws-cdk-go/awscdk"


awscdk.NewIdentityPool(this, jsii.String("myidentitypool"), &IdentityPoolProps{
	IdentityPoolName: jsii.String("myidentitypool"),
	RoleMappings: []IdentityPoolRoleMapping{
		&IdentityPoolRoleMapping{
			ProviderUrl: awscdk.IdentityPoolProviderUrl_Custom(jsii.String("my-custom-provider.com")),
			UseToken: jsii.Boolean(true),
		},
	},
})

Initializer ​

ts
new IdentityPoolProviderUrl(type: IdentityPoolProviderType, value: string)
python
IdentityPoolProviderUrl(type: IdentityPoolProviderType, value: str)
java
new IdentityPoolProviderUrl(IdentityPoolProviderType type, String value)
csharp
new IdentityPoolProviderUrl(IdentityPoolProviderType type, string value)
go
NewIdentityPoolProviderUrl(Type IdentityPoolProviderType, Value *string)

Properties ​

Methods ​

custom(url: string): IdentityPoolProviderUrl // chainable@staticmethod def custom(url: str) -> IdentityPoolProviderUrlpublic static IdentityPoolProviderUrl custom(String url)public static IdentityPoolProviderUrl Custom(string url)func Custom(Url *string) IdentityPoolProviderUrl static #
Custom Provider url.
openId(url: string): IdentityPoolProviderUrl // chainable@staticmethod def open_id(url: str) -> IdentityPoolProviderUrlpublic static IdentityPoolProviderUrl openId(String url)public static IdentityPoolProviderUrl OpenId(string url)func OpenId(Url *string) IdentityPoolProviderUrl static #
OpenId Provider url.
saml(url: string): IdentityPoolProviderUrl // chainable@staticmethod def saml(url: str) -> IdentityPoolProviderUrlpublic static IdentityPoolProviderUrl saml(String url)public static IdentityPoolProviderUrl Saml(string url)func Saml(Url *string) IdentityPoolProviderUrl static #
Saml Provider url.
userPool(userPool: IUserPool, userPoolClient: IUserPoolClient): IdentityPoolProviderUrl // chainable@staticmethod def user_pool(user_pool: IUserPool, user_pool_client: IUserPoolClient) -> IdentityPoolProviderUrlpublic static IdentityPoolProviderUrl userPool(IUserPool userPool, IUserPoolClient userPoolClient)public static IdentityPoolProviderUrl UserPool(IUserPool userPool, IUserPoolClient userPoolClient)func UserPool(UserPool IUserPool, UserPoolClient IUserPoolClient) IdentityPoolProviderUrl static #
User Pool Provider Url.