Class: AWSCDK::Cognito::CustomDomainOptions
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Cognito::CustomDomainOptions
- Defined in:
- cognito/custom_domain_options.rb
Overview
Options while specifying custom domain.
Instance Attribute Summary collapse
-
#certificate ⇒ AWSCDK::Interfaces::AWSCertificatemanager::ICertificateRef
readonly
The certificate to associate with this domain.
-
#domain_name ⇒ String
readonly
The custom domain name that you would like to associate with this User Pool.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(certificate:, domain_name:) ⇒ CustomDomainOptions
constructor
A new instance of CustomDomainOptions.
- #to_jsii ⇒ Object
Constructor Details
#initialize(certificate:, domain_name:) ⇒ CustomDomainOptions
Returns a new instance of CustomDomainOptions.
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
#certificate ⇒ AWSCDK::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_name ⇒ String (readonly)
The custom domain name that you would like to associate with this User Pool.
25 26 27 |
# File 'cognito/custom_domain_options.rb', line 25 def domain_name @domain_name end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |