Class: AWSCDK::Lightsail::CfnContainer::PublicDomainNameProperty

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

Overview

PublicDomainName is a property of the AWS::Lightsail::Container resource. It describes the public domain names to use with a container service, such as example.com and www.example.com . It also describes the certificates to use with a container service.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(certificate_name: nil, domain_names: nil) ⇒ PublicDomainNameProperty

Returns a new instance of PublicDomainNameProperty.

Parameters:

  • certificate_name (String, nil) (defaults to: nil)

    The name of the certificate for the public domains.

  • domain_names (Array<String>, nil) (defaults to: nil)

    The public domain names to use with the container service.



1026
1027
1028
1029
1030
1031
# File 'lightsail/cfn_container.rb', line 1026

def initialize(certificate_name: nil, domain_names: nil)
  @certificate_name = certificate_name
  Jsii::Type.check_type(@certificate_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "certificateName") unless @certificate_name.nil?
  @domain_names = domain_names
  Jsii::Type.check_type(@domain_names, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "domainNames") unless @domain_names.nil?
end

Instance Attribute Details

#certificate_nameString? (readonly)

The name of the certificate for the public domains.



1037
1038
1039
# File 'lightsail/cfn_container.rb', line 1037

def certificate_name
  @certificate_name
end

#domain_namesArray<String>? (readonly)

The public domain names to use with the container service.



1042
1043
1044
# File 'lightsail/cfn_container.rb', line 1042

def domain_names
  @domain_names
end

Class Method Details

.jsii_propertiesObject



1044
1045
1046
1047
1048
1049
# File 'lightsail/cfn_container.rb', line 1044

def self.jsii_properties
  {
    :certificate_name => "certificateName",
    :domain_names => "domainNames",
  }
end

Instance Method Details

#to_jsiiObject



1051
1052
1053
1054
1055
1056
1057
1058
# File 'lightsail/cfn_container.rb', line 1051

def to_jsii
  result = {}
  result.merge!({
    "certificateName" => @certificate_name,
    "domainNames" => @domain_names,
  })
  result.compact
end