Class: AWSCDK::APIGatewayv2::CfnIntegration::TLSConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
api_gatewayv2/cfn_integration.rb

Overview

The TlsConfig property specifies the TLS configuration for a private integration.

If you specify a TLS configuration, private integration traffic uses the HTTPS protocol. Supported only for HTTP APIs.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(server_name_to_verify: nil) ⇒ TLSConfigProperty

Returns a new instance of TLSConfigProperty.

Parameters:

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

    If you specify a server name, API Gateway uses it to verify the hostname on the integration's certificate.



837
838
839
840
# File 'api_gatewayv2/cfn_integration.rb', line 837

def initialize(server_name_to_verify: nil)
  @server_name_to_verify = server_name_to_verify
  Jsii::Type.check_type(@server_name_to_verify, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "serverNameToVerify") unless @server_name_to_verify.nil?
end

Instance Attribute Details

#server_name_to_verifyString? (readonly)

If you specify a server name, API Gateway uses it to verify the hostname on the integration's certificate.

The server name is also included in the TLS handshake to support Server Name Indication (SNI) or virtual hosting.



848
849
850
# File 'api_gatewayv2/cfn_integration.rb', line 848

def server_name_to_verify
  @server_name_to_verify
end

Class Method Details

.jsii_propertiesObject



850
851
852
853
854
# File 'api_gatewayv2/cfn_integration.rb', line 850

def self.jsii_properties
  {
    :server_name_to_verify => "serverNameToVerify",
  }
end

Instance Method Details

#to_jsiiObject



856
857
858
859
860
861
862
# File 'api_gatewayv2/cfn_integration.rb', line 856

def to_jsii
  result = {}
  result.merge!({
    "serverNameToVerify" => @server_name_to_verify,
  })
  result.compact
end