Class: AWSCDK::AppMesh::CfnRoute::GrpcRouteActionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppMesh::CfnRoute::GrpcRouteActionProperty
- 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
-
#weighted_targets ⇒ AWSCDK::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.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(weighted_targets:) ⇒ GrpcRouteActionProperty
constructor
A new instance of GrpcRouteActionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(weighted_targets:) ⇒ GrpcRouteActionProperty
Returns a new instance of GrpcRouteActionProperty.
770 771 772 773 |
# File 'app_mesh/cfn_route.rb', line 770 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_targets ⇒ AWSCDK::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.
779 780 781 |
# File 'app_mesh/cfn_route.rb', line 779 def weighted_targets @weighted_targets end |
Class Method Details
.jsii_properties ⇒ Object
781 782 783 784 785 |
# File 'app_mesh/cfn_route.rb', line 781 def self.jsii_properties { :weighted_targets => "weightedTargets", } end |
Instance Method Details
#to_jsii ⇒ Object
787 788 789 790 791 792 793 |
# File 'app_mesh/cfn_route.rb', line 787 def to_jsii result = {} result.merge!({ "weightedTargets" => @weighted_targets, }) result.compact end |