Table of Contents

Class UserPoolIdentityProviderGoogle

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

Represents a identity provider that integrates with 'Google'.

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

Examples

// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.Cognito;

             ProviderAttribute providerAttribute;
             UserPool userPool;

             var userPoolIdentityProviderGoogle = new UserPoolIdentityProviderGoogle(this, "MyUserPoolIdentityProviderGoogle", new UserPoolIdentityProviderGoogleProps {
                 ClientId = "clientId",
                 ClientSecret = "clientSecret",
                 UserPool = userPool,

                 // the properties below are optional
                 AttributeMapping = new AttributeMapping {
                     Address = providerAttribute,
                     Birthdate = providerAttribute,
                     Custom = new Dictionary<string, ProviderAttribute> {
                         { "customKey", providerAttribute }
                     },
                     Email = providerAttribute,
                     FamilyName = providerAttribute,
                     Fullname = providerAttribute,
                     Gender = providerAttribute,
                     GivenName = providerAttribute,
                     LastUpdateTime = providerAttribute,
                     Locale = providerAttribute,
                     MiddleName = providerAttribute,
                     Nickname = providerAttribute,
                     PhoneNumber = providerAttribute,
                     PreferredUsername = providerAttribute,
                     ProfilePage = providerAttribute,
                     ProfilePicture = providerAttribute,
                     Timezone = providerAttribute,
                     Website = providerAttribute
                 },
                 Scopes = new [] { "scopes" }
             });

Remarks

Resource: AWS::Cognito::UserPoolIdentityProvider

ExampleMetadata: fixture=_generated

Constructors

UserPoolIdentityProviderGoogle(Construct, string, IUserPoolIdentityProviderGoogleProps)

public UserPoolIdentityProviderGoogle(Construct scope, string id, IUserPoolIdentityProviderGoogleProps props)

Parameters

scope Construct
id string
props IUserPoolIdentityProviderGoogleProps

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