Class: AWSCDK::AppMesh::BackendDefaults

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

Overview

Represents the properties needed to define backend defaults.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tls_client_policy: nil) ⇒ BackendDefaults

Returns a new instance of BackendDefaults.

Parameters:



8
9
10
11
# File 'app_mesh/backend_defaults.rb', line 8

def initialize(tls_client_policy: nil)
  @tls_client_policy = tls_client_policy.is_a?(Hash) ? ::AWSCDK::AppMesh::TLSClientPolicy.new(**tls_client_policy.transform_keys(&:to_sym)) : tls_client_policy
  Jsii::Type.check_type(@tls_client_policy, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwbWVzaC5UbHNDbGllbnRQb2xpY3kifQ==")), "tlsClientPolicy") unless @tls_client_policy.nil?
end

Instance Attribute Details

#tls_client_policyAWSCDK::AppMesh::TLSClientPolicy? (readonly)

Note:

Default: - none

TLS properties for Client policy for backend defaults.



17
18
19
# File 'app_mesh/backend_defaults.rb', line 17

def tls_client_policy
  @tls_client_policy
end

Class Method Details

.jsii_propertiesObject



19
20
21
22
23
# File 'app_mesh/backend_defaults.rb', line 19

def self.jsii_properties
  {
    :tls_client_policy => "tlsClientPolicy",
  }
end

Instance Method Details

#to_jsiiObject



25
26
27
28
29
30
31
# File 'app_mesh/backend_defaults.rb', line 25

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