Class: AWSCDK::AppMesh::CfnRoute::TCPRouteActionProperty

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

Overview

An object that represents the action to take if a match is determined.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(weighted_targets:) ⇒ TCPRouteActionProperty

Returns a new instance of TCPRouteActionProperty.

Parameters:



1793
1794
1795
1796
# File 'app_mesh/cfn_route.rb', line 1793

def initialize(weighted_targets:)
  @weighted_targets = weighted_targets
  Jsii::Type.check_type(@weighted_targets, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwbWVzaC5DZm5Sb3V0ZS5XZWlnaHRlZFRhcmdldFByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "weightedTargets")
end

Instance Attribute Details

#weighted_targetsAWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::AppMesh::CfnRoute::WeightedTargetProperty> (readonly)

An object that represents the targets that traffic is routed to when a request matches the route.



1802
1803
1804
# File 'app_mesh/cfn_route.rb', line 1802

def weighted_targets
  @weighted_targets
end

Class Method Details

.jsii_propertiesObject



1804
1805
1806
1807
1808
# File 'app_mesh/cfn_route.rb', line 1804

def self.jsii_properties
  {
    :weighted_targets => "weightedTargets",
  }
end

Instance Method Details

#to_jsiiObject



1810
1811
1812
1813
1814
1815
1816
# File 'app_mesh/cfn_route.rb', line 1810

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