Class: AWSCDK::Cognito::CfnUserPoolResourceServer::ResourceServerScopeTypeProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Cognito::CfnUserPoolResourceServer::ResourceServerScopeTypeProperty
- Defined in:
- cognito/cfn_user_pool_resource_server.rb
Overview
One 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 .
Instance Attribute Summary collapse
-
#scope_description ⇒ String
readonly
A friendly description of a custom scope.
-
#scope_name ⇒ String
readonly
The name of the scope.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(scope_description:, scope_name:) ⇒ ResourceServerScopeTypeProperty
constructor
A new instance of ResourceServerScopeTypeProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(scope_description:, scope_name:) ⇒ ResourceServerScopeTypeProperty
Returns a new instance of ResourceServerScopeTypeProperty.
536 537 538 539 540 541 |
# File 'cognito/cfn_user_pool_resource_server.rb', line 536 def initialize(scope_description:, scope_name:) @scope_description = scope_description Jsii::Type.check_type(@scope_description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "scopeDescription") @scope_name = scope_name Jsii::Type.check_type(@scope_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "scopeName") end |
Instance Attribute Details
#scope_description ⇒ String (readonly)
A friendly description of a custom scope.
547 548 549 |
# File 'cognito/cfn_user_pool_resource_server.rb', line 547 def scope_description @scope_description end |
#scope_name ⇒ String (readonly)
The name of the scope.
Amazon Cognito renders custom scopes in the format resourceServerIdentifier/ScopeName . For example, if this parameter is example_scope in the resource server with the identifier example_resource_server , you request and receive the scope exampleResourceServer/exampleScope .
554 555 556 |
# File 'cognito/cfn_user_pool_resource_server.rb', line 554 def scope_name @scope_name end |
Class Method Details
.jsii_properties ⇒ Object
556 557 558 559 560 561 |
# File 'cognito/cfn_user_pool_resource_server.rb', line 556 def self.jsii_properties { :scope_description => "scopeDescription", :scope_name => "scopeName", } end |
Instance Method Details
#to_jsii ⇒ Object
563 564 565 566 567 568 569 570 |
# File 'cognito/cfn_user_pool_resource_server.rb', line 563 def to_jsii result = {} result.merge!({ "scopeDescription" => @scope_description, "scopeName" => @scope_name, }) result.compact end |