Class: AWSCDK::Lightsail::CfnDomainProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
lightsail/cfn_domain_props.rb

Overview

Properties for defining a CfnDomain.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(domain_name:, domain_entries: nil, tags: nil) ⇒ CfnDomainProps

Returns a new instance of CfnDomainProps.

Parameters:



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 = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
end

Instance Attribute Details

#domain_entriesAWSCDK::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_nameString (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

#tagsArray<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
  @tags
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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