Class: AWSCDK::Cognito::CognitoDomainOptions

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

Overview

Options while specifying a cognito prefix domain.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(domain_prefix:) ⇒ CognitoDomainOptions

Returns a new instance of CognitoDomainOptions.

Parameters:

  • domain_prefix (String)

    The prefix to the Cognito hosted domain name that will be associated with the user pool.



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

def initialize(domain_prefix:)
  @domain_prefix = domain_prefix
  Jsii::Type.check_type(@domain_prefix, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "domainPrefix")
end

Instance Attribute Details

#domain_prefixString (readonly)

The prefix to the Cognito hosted domain name that will be associated with the user pool.

Returns:

  • (String)


18
19
20
# File 'cognito/cognito_domain_options.rb', line 18

def domain_prefix
  @domain_prefix
end

Class Method Details

.jsii_propertiesObject



20
21
22
23
24
# File 'cognito/cognito_domain_options.rb', line 20

def self.jsii_properties
  {
    :domain_prefix => "domainPrefix",
  }
end

Instance Method Details

#to_jsiiObject



26
27
28
29
30
31
32
# File 'cognito/cognito_domain_options.rb', line 26

def to_jsii
  result = {}
  result.merge!({
    "domainPrefix" => @domain_prefix,
  })
  result.compact
end