CfnUserPoolResourceServerPropsMixin
- class aws_cdk.cfn_property_mixins.aws_cognito.CfnUserPoolResourceServerPropsMixin(props, *, strategy=None)
Bases:
MixinThe
AWS::Cognito::UserPoolResourceServerresource creates a new OAuth2.0 resource server and defines custom scopes in it.If you don’t specify a value for a parameter, Amazon Cognito sets it to a default value.
- See:
- CloudformationResource:
AWS::Cognito::UserPoolResourceServer
- Mixin:
true
- 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.cfn_property_mixins import aws_cognito as cognito import aws_cdk as cdk # merge_strategy: cdk.IMergeStrategy cfn_user_pool_resource_server_props_mixin = cognito.CfnUserPoolResourceServerPropsMixin(cognito.CfnUserPoolResourceServerMixinProps( identifier="identifier", name="name", scopes=[cognito.CfnUserPoolResourceServerPropsMixin.ResourceServerScopeTypeProperty( scope_description="scopeDescription", scope_name="scopeName" )], user_pool_id="userPoolId" ), strategy=merge_strategy )
Create a mixin to apply properties to
AWS::Cognito::UserPoolResourceServer.- Parameters:
props (
Union[CfnUserPoolResourceServerMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[IMergeStrategy]) – Strategy for merging nested properties. Default: - PropertyMergeStrategy.combine()
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
None
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['identifier', 'name', 'scopes', 'userPoolId']
Static Methods
- classmethod is_mixin(x)
Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.
ResourceServerScopeTypeProperty
- class CfnUserPoolResourceServerPropsMixin.ResourceServerScopeTypeProperty(*, scope_description=None, scope_name=None)
Bases:
objectOne custom scope associated with a user pool resource server.
This data type is a member of
ResourceServerScopeType. For more information, see Scopes, M2M, and API authorization with resource servers .- Parameters:
scope_description (
Optional[str]) – A friendly description of a custom scope.scope_name (
Optional[str]) – The name of the scope. Amazon Cognito renders custom scopes in the formatresourceServerIdentifier/ScopeName. For example, if this parameter isexampleScopein the resource server with the identifierexampleResourceServer, you request and receive the scopeexampleResourceServer/exampleScope.
- 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.cfn_property_mixins import aws_cognito as cognito resource_server_scope_type_property = cognito.CfnUserPoolResourceServerPropsMixin.ResourceServerScopeTypeProperty( scope_description="scopeDescription", scope_name="scopeName" )
Attributes
- scope_description
A friendly description of a custom scope.
- scope_name
The name of the scope.
Amazon Cognito renders custom scopes in the format
resourceServerIdentifier/ScopeName. For example, if this parameter isexampleScopein the resource server with the identifierexampleResourceServer, you request and receive the scopeexampleResourceServer/exampleScope.