CfnUserPoolResourceServerMixinProps
- class aws_cdk.mixins_preview.aws_cognito.mixins.CfnUserPoolResourceServerMixinProps(*, identifier=None, name=None, scopes=None, user_pool_id=None)
Bases:
objectProperties for CfnUserPoolResourceServerPropsMixin.
- Parameters:
identifier (
Optional[str]) – A unique resource server identifier for the resource server. The identifier can be an API friendly name likesolar-system-data. You can also set an API URL likehttps://solar-system-data-api.example.comas your identifier. Amazon Cognito represents scopes in the access token in the format$resource-server-identifier/$scope. Longer scope-identifier strings increase the size of your access tokens.name (
Optional[str]) – A friendly name for the resource server.scopes (
Union[IResolvable,Sequence[Union[IResolvable,ResourceServerScopeTypeProperty,Dict[str,Any]]],None]) – A list of scopes. Each scope is a map with keysScopeNameandScopeDescription.user_pool_id (
Optional[str]) – The ID of the user pool where you want to create a resource server.
- See:
- 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.mixins_preview.aws_cognito import mixins as cognito_mixins cfn_user_pool_resource_server_mixin_props = cognito_mixins.CfnUserPoolResourceServerMixinProps( identifier="identifier", name="name", scopes=[cognito_mixins.CfnUserPoolResourceServerPropsMixin.ResourceServerScopeTypeProperty( scope_description="scopeDescription", scope_name="scopeName" )], user_pool_id="userPoolId" )
Attributes
- identifier
A unique resource server identifier for the resource server.
The identifier can be an API friendly name like
solar-system-data. You can also set an API URL likehttps://solar-system-data-api.example.comas your identifier.Amazon Cognito represents scopes in the access token in the format
$resource-server-identifier/$scope. Longer scope-identifier strings increase the size of your access tokens.
- name
A friendly name for the resource server.
- scopes
A list of scopes.
Each scope is a map with keys
ScopeNameandScopeDescription.
- user_pool_id
The ID of the user pool where you want to create a resource server.