Class: AWSCDK::AppMesh::CfnRoute::HttpRouteActionProperty

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:) ⇒ HttpRouteActionProperty

Returns a new instance of HttpRouteActionProperty.

Parameters:



1331
1332
1333
1334
# File 'app_mesh/cfn_route.rb', line 1331

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.



1340
1341
1342
# File 'app_mesh/cfn_route.rb', line 1340

def weighted_targets
  @weighted_targets
end

Class Method Details

.jsii_propertiesObject



1342
1343
1344
1345
1346
# File 'app_mesh/cfn_route.rb', line 1342

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

Instance Method Details

#to_jsiiObject



1348
1349
1350
1351
1352
1353
1354
# File 'app_mesh/cfn_route.rb', line 1348

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