Show / Hide Table of Contents

Class UserPoolClient

Define a UserPool App Client.

Inheritance
object
Resource
UserPoolClient
Implements
IUserPoolClient
IResource
IConstruct
IDependable
Inherited Members
Resource.IsOwnedResource(IConstruct)
Resource.IsResource(IConstruct)
Resource.ApplyRemovalPolicy(RemovalPolicy)
Resource.GeneratePhysicalName()
Resource.GetResourceArnAttribute(string, IArnComponents)
Resource.GetResourceNameAttribute(string)
Resource.Env
Resource.PhysicalName
Resource.Stack
Namespace: Amazon.CDK.AWS.Cognito
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class UserPoolClient : Resource, IUserPoolClient, IResource, IConstruct, IDependable
Syntax (vb)
Public Class UserPoolClient Inherits Resource Implements IUserPoolClient, IResource, IConstruct, IDependable
Remarks

ExampleMetadata: infused

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);

Synopsis

Constructors

UserPoolClient(Construct, string, IUserPoolClientProps)

Define a UserPool App Client.

Properties

OAuthFlows

The OAuth flows enabled for this client.

PROPERTY_INJECTION_ID

Uniquely identifies this class.

UserPoolClientId

Name of the application client.

UserPoolClientName

The client name that was specified via the userPoolClientName property during initialization, throws an error otherwise.

UserPoolClientSecret

The generated client secret.

Methods

FromUserPoolClientId(Construct, string, string)

Import a user pool client given its id.

Constructors

UserPoolClient(Construct, string, IUserPoolClientProps)

Define a UserPool App Client.

public UserPoolClient(Construct scope, string id, IUserPoolClientProps props)
Parameters
scope Construct
id string
props IUserPoolClientProps
Remarks

ExampleMetadata: infused

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);

Properties

OAuthFlows

The OAuth flows enabled for this client.

public virtual IOAuthFlows OAuthFlows { get; }
Property Value

IOAuthFlows

Remarks

ExampleMetadata: infused

PROPERTY_INJECTION_ID

Uniquely identifies this class.

public static string PROPERTY_INJECTION_ID { get; }
Property Value

string

Remarks

ExampleMetadata: infused

UserPoolClientId

Name of the application client.

public virtual string UserPoolClientId { get; }
Property Value

string

Remarks

ExampleMetadata: infused

UserPoolClientName

The client name that was specified via the userPoolClientName property during initialization, throws an error otherwise.

public virtual string UserPoolClientName { get; }
Property Value

string

Remarks

ExampleMetadata: infused

UserPoolClientSecret

The generated client secret.

public virtual SecretValue UserPoolClientSecret { get; }
Property Value

SecretValue

Remarks

Only available if the "generateSecret" props is set to true

Methods

FromUserPoolClientId(Construct, string, string)

Import a user pool client given its id.

public static IUserPoolClient FromUserPoolClientId(Construct scope, string id, string userPoolClientId)
Parameters
scope Construct
id string
userPoolClientId string
Returns

IUserPoolClient

Remarks

ExampleMetadata: infused

Implements

IUserPoolClient
IResource
Constructs.IConstruct
Constructs.IDependable
Back to top Generated by DocFX