class ResourceServerScope
| Language | Type name | 
|---|---|
|  .NET | Amazon.CDK.AWS.Cognito.ResourceServerScope | 
|  Java | software.amazon.awscdk.services.cognito.ResourceServerScope | 
|  Python | aws_cdk.aws_cognito.ResourceServerScope | 
|  TypeScript (source) | @aws-cdk/aws-cognito»ResourceServerScope | 
A scope for ResourceServer.
Example
const pool = new cognito.UserPool(this, 'Pool');
const readOnlyScope = new cognito.ResourceServerScope({ scopeName: 'read', scopeDescription: 'Read-only access' });
const fullAccessScope = new cognito.ResourceServerScope({ scopeName: '*', scopeDescription: 'Full access' });
const userServer = pool.addResourceServer('ResourceServer', {
  identifier: 'users',
  scopes: [ readOnlyScope, fullAccessScope ],
});
const readOnlyClient = pool.addClient('read-only-client', {
  // ...
  oAuth: {
    // ...
    scopes: [ cognito.OAuthScope.resourceServer(userServer, readOnlyScope) ],
  },
});
const fullAccessClient = pool.addClient('full-access-client', {
  // ...
  oAuth: {
    // ...
    scopes: [ cognito.OAuthScope.resourceServer(userServer, fullAccessScope) ],
  },
});
Initializer
new ResourceServerScope(props: ResourceServerScopeProps)
Parameters
- props ResourceServer Scope Props 
Properties
| Name | Type | Description | 
|---|---|---|
| scope | string | A description of the scope. | 
| scope | string | The name of the scope. | 
scopeDescription
Type:
string
A description of the scope.
scopeName
Type:
string
The name of the scope.
