Table of Contents

Class UserPoolResourceServerProps

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

Properties for the UserPoolResourceServer construct.

public class UserPoolResourceServerProps : IUserPoolResourceServerProps, IUserPoolResourceServerOptions
Inheritance
UserPoolResourceServerProps
Implements
Inherited Members

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;

            ResourceServerScope resourceServerScope;
            UserPool userPool;

            var userPoolResourceServerProps = new UserPoolResourceServerProps {
                Identifier = "identifier",
                UserPool = userPool,

                // the properties below are optional
                Scopes = new [] { resourceServerScope },
                UserPoolResourceServerName = "userPoolResourceServerName"
            };

Remarks

ExampleMetadata: fixture=_generated

Constructors

UserPoolResourceServerProps()

public UserPoolResourceServerProps()

Properties

Identifier

A unique resource server identifier for the resource server.

public string Identifier { get; set; }

Property Value

string

Scopes

Oauth scopes.

public ResourceServerScope[]? Scopes { get; set; }

Property Value

ResourceServerScope[]

Remarks

Default: - No scopes will be added

UserPool

The user pool to add this resource server to.

public IUserPool UserPool { get; set; }

Property Value

IUserPool

UserPoolResourceServerName

A friendly name for the resource server.

public string? UserPoolResourceServerName { get; set; }

Property Value

string

Remarks

Default: - same as identifier