Show / Hide Table of Contents

Class UserPoolClient

Define a UserPool App Client.

Inheritance
object
Resource
UserPoolClient
Implements
IUserPoolClient
IResource
IUserPoolClientRef
IConstruct
IDependable
IEnvironmentAware
Inherited Members
Resource.IsOwnedResource(IConstruct)
Resource.IsResource(IConstruct)
Resource.ApplyCrossStackReferenceStrength(ReferenceStrength)
Resource.ApplyRemovalPolicy(RemovalPolicy)
Resource.GeneratePhysicalName()
Resource.GetResourceArnAttribute(string, IArnComponents)
Resource.GetResourceNameAttribute(string)
Resource.With(params IMixin[])
Resource.Env
Resource.PhysicalName
Resource.Stack
Namespace: Amazon.CDK.AWS.Cognito
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class UserPoolClient : Resource, IUserPoolClient, IResource, IUserPoolClientRef, IConstruct, IDependable, IEnvironmentAware
Syntax (vb)
Public Class UserPoolClient Inherits Resource Implements IUserPoolClient, IResource, IUserPoolClientRef, IConstruct, IDependable, IEnvironmentAware
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.

UserPoolClientRef

A reference to a UserPoolClient resource.

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

UserPoolClientRef

A reference to a UserPoolClient resource.

public virtual IUserPoolClientReference UserPoolClientRef { get; }
Property Value

IUserPoolClientReference

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
IUserPoolClientRef
Constructs.IConstruct
Constructs.IDependable
IEnvironmentAware
Back to top Generated by DocFX