Class: AWSCDK::AppMesh::CfnVirtualNode::BackendDefaultsProperty

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

Overview

An object that represents the default properties for a backend.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client_policy: nil) ⇒ BackendDefaultsProperty

Returns a new instance of BackendDefaultsProperty.

Parameters:



781
782
783
784
# File 'app_mesh/cfn_virtual_node.rb', line 781

def initialize(client_policy: nil)
  @client_policy = client_policy.is_a?(Hash) ? ::AWSCDK::AppMesh::CfnVirtualNode::ClientPolicyProperty.new(**client_policy.transform_keys(&:to_sym)) : client_policy
  Jsii::Type.check_type(@client_policy, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBtZXNoLkNmblZpcnR1YWxOb2RlLkNsaWVudFBvbGljeVByb3BlcnR5In1dfX0=")), "clientPolicy") unless @client_policy.nil?
end

Instance Attribute Details

#client_policyAWSCDK::IResolvable, ... (readonly)

A reference to an object that represents a client policy.



790
791
792
# File 'app_mesh/cfn_virtual_node.rb', line 790

def client_policy
  @client_policy
end

Class Method Details

.jsii_propertiesObject



792
793
794
795
796
# File 'app_mesh/cfn_virtual_node.rb', line 792

def self.jsii_properties
  {
    :client_policy => "clientPolicy",
  }
end

Instance Method Details

#to_jsiiObject



798
799
800
801
802
803
804
# File 'app_mesh/cfn_virtual_node.rb', line 798

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