Class UserPoolIdentityProviderAmazon
Represents a identity provider that integrates with 'Login with Amazon'.
public class UserPoolIdentityProviderAmazon : Resource, IUserPoolIdentityProvider, IResource, IConstruct, IConstruct, IDependable
- Inheritance
-
UserPoolIdentityProviderAmazon
- Implements
-
IResourceIConstructIConstructIDependable
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
Constructid
stringprops
IUserPoolIdentityProviderAmazonProps
Properties
ProviderName
The primary identifier of this identity provider.
public virtual string ProviderName { get; }
Property Value
Methods
ConfigureAttributeMapping()
protected virtual object ConfigureAttributeMapping()