Skip to content
v2.275.0

UserPoolResourceServerProps Struct ​

Properties for the UserPoolResourceServer construct.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cognito as cognito } from 'aws-cdk-lib';
import { aws_cognito as interfaces_cognito } from 'aws-cdk-lib/interfaces';

declare const resourceServerScope: cognito.ResourceServerScope;
declare const userPoolRef: interfaces_cognito.IUserPoolRef;
const userPoolResourceServerProps: cognito.UserPoolResourceServerProps = {
  identifier: 'identifier',
  userPool: userPoolRef,

  // the properties below are optional
  scopes: [resourceServerScope],
  userPoolResourceServerName: 'userPoolResourceServerName',
};

Properties ​

identifierstringidentifierstridentifierStringIdentifierstringIdentifier*stringrequired#
A unique resource server identifier for the resource server.
scopesoptionalResourceServerScope[]scopesoptionaltyping.List[ResourceServerScope]scopesoptionalList<ResourceServerScope>ScopesoptionalResourceServerScope[]Scopesoptional*[]ResourceServerScope#
Oauth scopes.

Default: No scopes will be added

userPoolIUserPoolRefuser_poolIUserPoolRefuserPoolIUserPoolRefUserPoolIUserPoolRefUserPoolIUserPoolRefrequired#
The user pool to add this resource server to.
userPoolResourceServerNameoptionalstringuser_pool_resource_server_nameoptionalstruserPoolResourceServerNameoptionalStringUserPoolResourceServerNameoptionalstringUserPoolResourceServerNameoptional*string#
A friendly name for the resource server.

Default: same as identifier