Class: AWSCDK::AppMesh::CfnVirtualNode::ListenerTLSFileCertificateProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
app_mesh/cfn_virtual_node.rb

Overview

An object that represents a local file certificate.

The certificate must meet specific requirements and you must have proxy authorization enabled. For more information, see Transport Layer Security (TLS) .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(certificate_chain:, private_key:) ⇒ ListenerTLSFileCertificateProperty

Returns a new instance of ListenerTLSFileCertificateProperty.

Parameters:

  • certificate_chain (String)

    The certificate chain for the certificate.

  • private_key (String)

    The private key for a certificate stored on the file system of the virtual node that the proxy is running on.



1610
1611
1612
1613
1614
1615
# File 'app_mesh/cfn_virtual_node.rb', line 1610

def initialize(certificate_chain:, private_key:)
  @certificate_chain = certificate_chain
  Jsii::Type.check_type(@certificate_chain, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "certificateChain")
  @private_key = private_key
  Jsii::Type.check_type(@private_key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "privateKey")
end

Instance Attribute Details

#certificate_chainString (readonly)

The certificate chain for the certificate.



1621
1622
1623
# File 'app_mesh/cfn_virtual_node.rb', line 1621

def certificate_chain
  @certificate_chain
end

#private_keyString (readonly)

The private key for a certificate stored on the file system of the virtual node that the proxy is running on.



1626
1627
1628
# File 'app_mesh/cfn_virtual_node.rb', line 1626

def private_key
  @private_key
end

Class Method Details

.jsii_propertiesObject



1628
1629
1630
1631
1632
1633
# File 'app_mesh/cfn_virtual_node.rb', line 1628

def self.jsii_properties
  {
    :certificate_chain => "certificateChain",
    :private_key => "privateKey",
  }
end

Instance Method Details

#to_jsiiObject



1635
1636
1637
1638
1639
1640
1641
1642
# File 'app_mesh/cfn_virtual_node.rb', line 1635

def to_jsii
  result = {}
  result.merge!({
    "certificateChain" => @certificate_chain,
    "privateKey" => @private_key,
  })
  result.compact
end