Class: AWSCDK::Cognito::ResourceServerScope

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

Overview

A scope for ResourceServer.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(props) ⇒ ResourceServerScope

Returns a new instance of ResourceServerScope.



9
10
11
12
13
# File 'cognito/resource_server_scope.rb', line 9

def initialize(props)
  props = props.is_a?(Hash) ? ::AWSCDK::Cognito::ResourceServerScopeProps.new(**props.transform_keys(&:to_sym)) : props
  Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY29nbml0by5SZXNvdXJjZVNlcnZlclNjb3BlUHJvcHMifQ==")), "props")
  Jsii::Object.instance_method(:initialize).bind(self).call(props)
end

Class Method Details

.jsii_overridable_methodsObject



15
16
17
18
19
20
# File 'cognito/resource_server_scope.rb', line 15

def self.jsii_overridable_methods
  {
    :scope_description => { kind: :property, name: "scopeDescription", is_optional: false },
    :scope_name => { kind: :property, name: "scopeName", is_optional: false },
  }
end

Instance Method Details

#scope_descriptionString

A description of the scope.

Returns:

  • (String)


25
26
27
# File 'cognito/resource_server_scope.rb', line 25

def scope_description()
  jsii_get_property("scopeDescription")
end

#scope_nameString

The name of the scope.

Returns:

  • (String)


32
33
34
# File 'cognito/resource_server_scope.rb', line 32

def scope_name()
  jsii_get_property("scopeName")
end