Class: AWSCDK::Cognito::CustomDomainOptions

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

Overview

Options while specifying custom domain.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(certificate:, domain_name:) ⇒ CustomDomainOptions

Returns a new instance of CustomDomainOptions.

Parameters:



11
12
13
14
15
16
# File 'cognito/custom_domain_options.rb', line 11

def initialize(certificate:, domain_name:)
  @certificate = certificate
  Jsii::Type.check_type(@certificate, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19jZXJ0aWZpY2F0ZW1hbmFnZXIuSUNlcnRpZmljYXRlUmVmIn0=")), "certificate")
  @domain_name = domain_name
  Jsii::Type.check_type(@domain_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "domainName")
end

Instance Attribute Details

#certificateAWSCDK::Interfaces::AWSCertificatemanager::ICertificateRef (readonly)

The certificate to associate with this domain.



21
22
23
# File 'cognito/custom_domain_options.rb', line 21

def certificate
  @certificate
end

#domain_nameString (readonly)

The custom domain name that you would like to associate with this User Pool.

Returns:

  • (String)


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

def domain_name
  @domain_name
end

Class Method Details

.jsii_propertiesObject



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

def self.jsii_properties
  {
    :certificate => "certificate",
    :domain_name => "domainName",
  }
end

Instance Method Details

#to_jsiiObject



34
35
36
37
38
39
40
41
# File 'cognito/custom_domain_options.rb', line 34

def to_jsii
  result = {}
  result.merge!({
    "certificate" => @certificate,
    "domainName" => @domain_name,
  })
  result.compact
end