AWS Fundamentals Logo
AWS Fundamentals
L2 Construct

UserPoolResourceServer

Defines a User Pool OAuth2.0 Resource Server.

Import

import { UserPoolResourceServer } from 'aws-cdk-lib/aws-cognito';

Or use the module namespace:

import * as cognito from 'aws-cdk-lib/aws-cognito';
// cognito.UserPoolResourceServer

Properties

Configuration passed to the constructor as UserPoolResourceServerProps.

userPoolRequired
IUserPoolRef

The user pool to add this resource server to.

3 properties inherited from UserPoolResourceServerOptions
identifierRequiredinherited from UserPoolResourceServerOptions
string

A unique resource server identifier for the resource server.

scopesOptionalinherited from UserPoolResourceServerOptions
ResourceServerScope[]

Oauth scopes.

Default: - No scopes will be added

userPoolResourceServerNameOptionalinherited from UserPoolResourceServerOptions
string

A friendly name for the resource server.

Default: - same as `identifier`

Get the Amazon Cognito Cheat Sheet

Everything you need to know about Amazon Cognito on one page. HD quality, print-friendly.

Download Free Infographic