Class: AWSCDK::Cognito::ResourceServerScopeProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Cognito::ResourceServerScopeProps
- Defined in:
- cognito/resource_server_scope_props.rb
Overview
Props to initialize ResourceServerScope.
Instance Attribute Summary collapse
-
#scope_description ⇒ String
readonly
A description of the scope.
-
#scope_name ⇒ String
readonly
The name of the scope.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(scope_description:, scope_name:) ⇒ ResourceServerScopeProps
constructor
A new instance of ResourceServerScopeProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(scope_description:, scope_name:) ⇒ ResourceServerScopeProps
Returns a new instance of ResourceServerScopeProps.
9 10 11 12 13 14 |
# File 'cognito/resource_server_scope_props.rb', line 9 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 description of the scope.
19 20 21 |
# File 'cognito/resource_server_scope_props.rb', line 19 def scope_description @scope_description end |
#scope_name ⇒ String (readonly)
The name of the scope.
23 24 25 |
# File 'cognito/resource_server_scope_props.rb', line 23 def scope_name @scope_name end |
Class Method Details
.jsii_properties ⇒ Object
25 26 27 28 29 30 |
# File 'cognito/resource_server_scope_props.rb', line 25 def self.jsii_properties { :scope_description => "scopeDescription", :scope_name => "scopeName", } end |
Instance Method Details
#to_jsii ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'cognito/resource_server_scope_props.rb', line 32 def to_jsii result = {} result.merge!({ "scopeDescription" => @scope_description, "scopeName" => @scope_name, }) result.compact end |