# UserPoolResourceServerProps

Properties for the UserPoolResourceServer construct.

Extends: UserPoolResourceServerProps
Extends: UserPoolResourceServerOptions
Used as props by: UserPoolResourceServer

- Source: [`aws-cognito/lib/user-pool-resource-server.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-cognito/lib/user-pool-resource-server.ts#L82)
- Type last changed: v2.235.0 · 15 Jan 2026

## 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

- `identifier`: string (required) — A unique resource server identifier for the resource server.

- `scopes`: [ResourceServerScope](/cdk/api/v2/docs/aws-cdk-lib.aws_cognito.ResourceServerScope.html)[] — Oauth scopes.

  **Default:** No scopes will be added

- `userPool`: [IUserPoolRef](/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_cognito.IUserPoolRef.html) (required) — The user pool to add this resource server to.

- `userPoolResourceServerName`: string — A friendly name for the resource server.

  **Default:** same as `identifier`
