Class: AWSCDK::AppMesh::CfnVirtualGateway::VirtualGatewayListenerTLSFileCertificateProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
app_mesh/cfn_virtual_gateway.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:) ⇒ VirtualGatewayListenerTLSFileCertificateProperty

Returns a new instance of VirtualGatewayListenerTLSFileCertificateProperty.

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 mesh endpoint that the proxy is running on.



1451
1452
1453
1454
1455
1456
# File 'app_mesh/cfn_virtual_gateway.rb', line 1451

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.



1462
1463
1464
# File 'app_mesh/cfn_virtual_gateway.rb', line 1462

def certificate_chain
  @certificate_chain
end

#private_keyString (readonly)

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



1467
1468
1469
# File 'app_mesh/cfn_virtual_gateway.rb', line 1467

def private_key
  @private_key
end

Class Method Details

.jsii_propertiesObject



1469
1470
1471
1472
1473
1474
# File 'app_mesh/cfn_virtual_gateway.rb', line 1469

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

Instance Method Details

#to_jsiiObject



1476
1477
1478
1479
1480
1481
1482
1483
# File 'app_mesh/cfn_virtual_gateway.rb', line 1476

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