Class: AWSCDK::Cognito::ResourceServerScopeProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
cognito/resource_server_scope_props.rb

Overview

Props to initialize ResourceServerScope.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(scope_description:, scope_name:) ⇒ ResourceServerScopeProps

Returns a new instance of ResourceServerScopeProps.

Parameters:

  • scope_description (String)

    A description of the scope.

  • scope_name (String)

    The name of the scope.



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_descriptionString (readonly)

A description of the scope.

Returns:

  • (String)


19
20
21
# File 'cognito/resource_server_scope_props.rb', line 19

def scope_description
  @scope_description
end

#scope_nameString (readonly)

The name of the scope.

Returns:

  • (String)


23
24
25
# File 'cognito/resource_server_scope_props.rb', line 23

def scope_name
  @scope_name
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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