Class: AWSCDK::Lightsail::CfnDomainProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lightsail::CfnDomainProps
- Defined in:
- lightsail/cfn_domain_props.rb
Overview
Properties for defining a CfnDomain.
Instance Attribute Summary collapse
-
#domain_entries ⇒ AWSCDK::IResolvable, ...
readonly
An array of key-value pairs containing information about the domain entries.
-
#domain_name ⇒ String
readonly
The fully qualified domain name in the certificate request.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
The tag keys and optional values for the resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(domain_name:, domain_entries: nil, tags: nil) ⇒ CfnDomainProps
constructor
A new instance of CfnDomainProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(domain_name:, domain_entries: nil, tags: nil) ⇒ CfnDomainProps
Returns a new instance of CfnDomainProps.
12 13 14 15 16 17 18 19 |
# File 'lightsail/cfn_domain_props.rb', line 12 def initialize(domain_name:, domain_entries: nil, tags: nil) @domain_name = domain_name Jsii::Type.check_type(@domain_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "domainName") @domain_entries = domain_entries Jsii::Type.check_type(@domain_entries, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbGlnaHRzYWlsLkNmbkRvbWFpbi5Eb21haW5FbnRyeVByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "domainEntries") unless @domain_entries.nil? @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#domain_entries ⇒ AWSCDK::IResolvable, ... (readonly)
An array of key-value pairs containing information about the domain entries.
30 31 32 |
# File 'lightsail/cfn_domain_props.rb', line 30 def domain_entries @domain_entries end |
#domain_name ⇒ String (readonly)
The fully qualified domain name in the certificate request.
25 26 27 |
# File 'lightsail/cfn_domain_props.rb', line 25 def domain_name @domain_name end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
The tag keys and optional values for the resource.
For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide .
37 38 39 |
# File 'lightsail/cfn_domain_props.rb', line 37 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
39 40 41 42 43 44 45 |
# File 'lightsail/cfn_domain_props.rb', line 39 def self.jsii_properties { :domain_name => "domainName", :domain_entries => "domainEntries", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
47 48 49 50 51 52 53 54 55 |
# File 'lightsail/cfn_domain_props.rb', line 47 def to_jsii result = {} result.merge!({ "domainName" => @domain_name, "domainEntries" => @domain_entries, "tags" => @tags, }) result.compact end |