UserPoolResourceServerProps
- class aws_cdk.aws_cognito.UserPoolResourceServerProps(*, identifier, scopes=None, user_pool_resource_server_name=None, user_pool)
 Bases:
UserPoolResourceServerOptionsProperties for the UserPoolResourceServer construct.
- Parameters:
 identifier (
str) – A unique resource server identifier for the resource server.scopes (
Optional[Sequence[ResourceServerScope]]) – Oauth scopes. Default: - No scopes will be addeduser_pool_resource_server_name (
Optional[str]) – A friendly name for the resource server. Default: - same asidentifieruser_pool (
IUserPool) – The user pool to add this resource server to.
- ExampleMetadata:
 fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_cognito as cognito # resource_server_scope: cognito.ResourceServerScope # user_pool: cognito.UserPool user_pool_resource_server_props = cognito.UserPoolResourceServerProps( identifier="identifier", user_pool=user_pool, # the properties below are optional scopes=[resource_server_scope], user_pool_resource_server_name="userPoolResourceServerName" )
Attributes
- identifier
 A unique resource server identifier for the resource server.
- scopes
 Oauth scopes.
- Default:
 No scopes will be added
- user_pool
 The user pool to add this resource server to.
- user_pool_resource_server_name
 A friendly name for the resource server.
- Default:
 same as
identifier