Class: AWSCDK::Cognito::UserPoolDomainOptions
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Cognito::UserPoolDomainOptions
- Defined in:
- cognito/user_pool_domain_options.rb
Overview
Options to create a UserPoolDomain.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#cognito_domain ⇒ AWSCDK::Cognito::CognitoDomainOptions?
readonly
Associate a cognito prefix domain with your user pool Either
customDomainorcognitoDomainmust be specified. -
#custom_domain ⇒ AWSCDK::Cognito::CustomDomainOptions?
readonly
Associate a custom domain with your user pool Either
customDomainorcognitoDomainmust be specified. -
#managed_login_version ⇒ AWSCDK::Cognito::ManagedLoginVersion?
readonly
A version that indicates the state of managed login.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(cognito_domain: nil, custom_domain: nil, managed_login_version: nil) ⇒ UserPoolDomainOptions
constructor
A new instance of UserPoolDomainOptions.
- #to_jsii ⇒ Object
Constructor Details
#initialize(cognito_domain: nil, custom_domain: nil, managed_login_version: nil) ⇒ UserPoolDomainOptions
Returns a new instance of UserPoolDomainOptions.
10 11 12 13 14 15 16 17 |
# File 'cognito/user_pool_domain_options.rb', line 10 def initialize(cognito_domain: nil, custom_domain: nil, managed_login_version: nil) @cognito_domain = cognito_domain.is_a?(Hash) ? ::AWSCDK::Cognito::CognitoDomainOptions.new(**cognito_domain.transform_keys(&:to_sym)) : cognito_domain Jsii::Type.check_type(@cognito_domain, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY29nbml0by5Db2duaXRvRG9tYWluT3B0aW9ucyJ9")), "cognitoDomain") unless @cognito_domain.nil? @custom_domain = custom_domain.is_a?(Hash) ? ::AWSCDK::Cognito::CustomDomainOptions.new(**custom_domain.transform_keys(&:to_sym)) : custom_domain Jsii::Type.check_type(@custom_domain, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY29nbml0by5DdXN0b21Eb21haW5PcHRpb25zIn0=")), "customDomain") unless @custom_domain.nil? @managed_login_version = managed_login_version Jsii::Type.check_type(@managed_login_version, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY29nbml0by5NYW5hZ2VkTG9naW5WZXJzaW9uIn0=")), "managedLoginVersion") unless @managed_login_version.nil? end |
Instance Attribute Details
#cognito_domain ⇒ AWSCDK::Cognito::CognitoDomainOptions? (readonly)
Default: - not set if customDomain is specified, otherwise, throws an error.
Associate a cognito prefix domain with your user pool Either customDomain or cognitoDomain must be specified.
24 25 26 |
# File 'cognito/user_pool_domain_options.rb', line 24 def cognito_domain @cognito_domain end |
#custom_domain ⇒ AWSCDK::Cognito::CustomDomainOptions? (readonly)
Default: - not set if cognitoDomain is specified, otherwise, throws an error.
Associate a custom domain with your user pool Either customDomain or cognitoDomain must be specified.
30 31 32 |
# File 'cognito/user_pool_domain_options.rb', line 30 def custom_domain @custom_domain end |
#managed_login_version ⇒ AWSCDK::Cognito::ManagedLoginVersion? (readonly)
Default: undefined - Cognito default setting is ManagedLoginVersion.CLASSIC_HOSTED_UI
A version that indicates the state of managed login.
This choice applies to all app clients that host services at the domain.
38 39 40 |
# File 'cognito/user_pool_domain_options.rb', line 38 def managed_login_version @managed_login_version end |
Class Method Details
.jsii_properties ⇒ Object
40 41 42 43 44 45 46 |
# File 'cognito/user_pool_domain_options.rb', line 40 def self.jsii_properties { :cognito_domain => "cognitoDomain", :custom_domain => "customDomain", :managed_login_version => "managedLoginVersion", } end |
Instance Method Details
#to_jsii ⇒ Object
48 49 50 51 52 53 54 55 56 |
# File 'cognito/user_pool_domain_options.rb', line 48 def to_jsii result = {} result.merge!({ "cognitoDomain" => @cognito_domain, "customDomain" => @custom_domain, "managedLoginVersion" => @managed_login_version, }) result.compact end |