Table of Contents

Class UserPoolIdentityProviderAmazon

Namespace
Amazon.CDK.AWS.Cognito
Assembly
Amazon.CDK.AWS.Cognito.dll

Represents a identity provider that integrates with 'Login with Amazon'.

public class UserPoolIdentityProviderAmazon : Resource, IUserPoolIdentityProvider, IResource, IConstruct, IConstruct, IDependable
Inheritance
UserPoolIdentityProviderAmazon
Implements
IResource
IConstruct
IConstruct
IDependable

Examples

var pool = new UserPool(this, "Pool");
             var provider = new UserPoolIdentityProviderAmazon(this, "Amazon", new UserPoolIdentityProviderAmazonProps {
                 UserPool = pool,
                 ClientId = "amzn-client-id",
                 ClientSecret = "amzn-client-secret"
             });

             var client = pool.AddClient("app-client", new UserPoolClientOptions {
                 // ...
                 SupportedIdentityProviders = new [] { UserPoolClientIdentityProvider.AMAZON }
             });

             client.Node.AddDependency(provider);

Remarks

Resource: AWS::Cognito::UserPoolIdentityProvider

ExampleMetadata: infused

Constructors

UserPoolIdentityProviderAmazon(Construct, string, IUserPoolIdentityProviderAmazonProps)

public UserPoolIdentityProviderAmazon(Construct scope, string id, IUserPoolIdentityProviderAmazonProps props)

Parameters

scope Construct
id string
props IUserPoolIdentityProviderAmazonProps

Properties

ProviderName

The primary identifier of this identity provider.

public virtual string ProviderName { get; }

Property Value

string

Methods

ConfigureAttributeMapping()

protected virtual object ConfigureAttributeMapping()

Returns

object