aws-sdk-applicationautoscaling 1.29.0 → 1.30.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8cbf54512bce3710c7d5a6d9ff4632325cbafcbc
4
- data.tar.gz: 0da2858481391dc540116d1963b8d4a89c8e287c
3
+ metadata.gz: 37fc10a205f63a739b7d6b1ae21d62d511ff7487
4
+ data.tar.gz: 8349c074e76bd4ddd697e25362f76d16cc16342b
5
5
  SHA512:
6
- metadata.gz: 4c5875bc78c7c6b78227b3c132a49c1e215412c6daf790b2667a24694307147c8674e4ad196bb6fe1625c87d8b64d044581b57f0cc2f3c9dabb54e36ea3c163c
7
- data.tar.gz: deb030b2aa0b7f6354c99b409fe0ca9cdf1d088a1ab747b2955418065ab81776a732e26c72fbbcfc1745022ec218d1dd734f1aa04168cf27fd805baf8f0b4be6
6
+ metadata.gz: 74b4d9187b1f973bf69cf48400968188a214a0736a6ad89be586f284f20123153671a711ad710353edd51cbf4a4b4d301e6bd78a7a56f4b436330f025511863e
7
+ data.tar.gz: 8ca11d5316bc661e919beae66af68de12dbc78678ebabee1d8f47376033996dfebc68dab6442444be2ff4d1103c7c0af2aa375df41c1db356dea39a80b7a873d
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-applicationautoscaling/customizations'
42
42
  # @service
43
43
  module Aws::ApplicationAutoScaling
44
44
 
45
- GEM_VERSION = '1.29.0'
45
+ GEM_VERSION = '1.30.0'
46
46
 
47
47
  end
@@ -839,6 +839,9 @@ module Aws::ApplicationAutoScaling
839
839
  # resp.scalable_targets[0].max_capacity #=> Integer
840
840
  # resp.scalable_targets[0].role_arn #=> String
841
841
  # resp.scalable_targets[0].creation_time #=> Time
842
+ # resp.scalable_targets[0].suspended_state.dynamic_scaling_in_suspended #=> Boolean
843
+ # resp.scalable_targets[0].suspended_state.dynamic_scaling_out_suspended #=> Boolean
844
+ # resp.scalable_targets[0].suspended_state.scheduled_scaling_suspended #=> Boolean
842
845
  # resp.next_token #=> String
843
846
  #
844
847
  # @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DescribeScalableTargets AWS API Documentation
@@ -2022,6 +2025,33 @@ module Aws::ApplicationAutoScaling
2022
2025
  #
2023
2026
  # [1]: https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-service-linked-roles.html
2024
2027
  #
2028
+ # @option params [Types::SuspendedState] :suspended_state
2029
+ # An embedded object that contains attributes and attribute values that
2030
+ # are used to suspend and resume automatic scaling. Setting the value of
2031
+ # an attribute to `true` suspends the specified scaling activities.
2032
+ # Setting it to `false` (default) resumes the specified scaling
2033
+ # activities.
2034
+ #
2035
+ # **Suspension Outcomes**
2036
+ #
2037
+ # * For `DynamicScalingInSuspended`, while a suspension is in effect,
2038
+ # all scale-in activities that are triggered by a scaling policy are
2039
+ # suspended.
2040
+ #
2041
+ # * For `DynamicScalingOutSuspended`, while a suspension is in effect,
2042
+ # all scale-out activities that are triggered by a scaling policy are
2043
+ # suspended.
2044
+ #
2045
+ # * For `ScheduledScalingSuspended`, while a suspension is in effect,
2046
+ # all scaling activities that involve scheduled actions are suspended.
2047
+ #
2048
+ # For more information, see [Suspend and Resume Application Auto
2049
+ # Scaling][1] in the *Application Auto Scaling User Guide*.
2050
+ #
2051
+ #
2052
+ #
2053
+ # [1]: https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-suspend-resume-scaling.html
2054
+ #
2025
2055
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2026
2056
  #
2027
2057
  #
@@ -2066,6 +2096,11 @@ module Aws::ApplicationAutoScaling
2066
2096
  # min_capacity: 1,
2067
2097
  # max_capacity: 1,
2068
2098
  # role_arn: "ResourceIdMaxLen1600",
2099
+ # suspended_state: {
2100
+ # dynamic_scaling_in_suspended: false,
2101
+ # dynamic_scaling_out_suspended: false,
2102
+ # scheduled_scaling_suspended: false,
2103
+ # },
2069
2104
  # })
2070
2105
  #
2071
2106
  # @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/RegisterScalableTarget AWS API Documentation
@@ -2090,7 +2125,7 @@ module Aws::ApplicationAutoScaling
2090
2125
  params: params,
2091
2126
  config: config)
2092
2127
  context[:gem_name] = 'aws-sdk-applicationautoscaling'
2093
- context[:gem_version] = '1.29.0'
2128
+ context[:gem_version] = '1.30.0'
2094
2129
  Seahorse::Client::Request.new(handlers, context)
2095
2130
  end
2096
2131
 
@@ -75,6 +75,7 @@ module Aws::ApplicationAutoScaling
75
75
  ScalingAdjustment = Shapes::IntegerShape.new(name: 'ScalingAdjustment')
76
76
  ScalingPolicies = Shapes::ListShape.new(name: 'ScalingPolicies')
77
77
  ScalingPolicy = Shapes::StructureShape.new(name: 'ScalingPolicy')
78
+ ScalingSuspended = Shapes::BooleanShape.new(name: 'ScalingSuspended')
78
79
  ScheduledAction = Shapes::StructureShape.new(name: 'ScheduledAction')
79
80
  ScheduledActionName = Shapes::StringShape.new(name: 'ScheduledActionName')
80
81
  ScheduledActions = Shapes::ListShape.new(name: 'ScheduledActions')
@@ -82,6 +83,7 @@ module Aws::ApplicationAutoScaling
82
83
  StepAdjustment = Shapes::StructureShape.new(name: 'StepAdjustment')
83
84
  StepAdjustments = Shapes::ListShape.new(name: 'StepAdjustments')
84
85
  StepScalingPolicyConfiguration = Shapes::StructureShape.new(name: 'StepScalingPolicyConfiguration')
86
+ SuspendedState = Shapes::StructureShape.new(name: 'SuspendedState')
85
87
  TargetTrackingScalingPolicyConfiguration = Shapes::StructureShape.new(name: 'TargetTrackingScalingPolicyConfiguration')
86
88
  TimestampType = Shapes::TimestampShape.new(name: 'TimestampType')
87
89
  ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
@@ -228,6 +230,7 @@ module Aws::ApplicationAutoScaling
228
230
  RegisterScalableTargetRequest.add_member(:min_capacity, Shapes::ShapeRef.new(shape: ResourceCapacity, location_name: "MinCapacity"))
229
231
  RegisterScalableTargetRequest.add_member(:max_capacity, Shapes::ShapeRef.new(shape: ResourceCapacity, location_name: "MaxCapacity"))
230
232
  RegisterScalableTargetRequest.add_member(:role_arn, Shapes::ShapeRef.new(shape: ResourceIdMaxLen1600, location_name: "RoleARN"))
233
+ RegisterScalableTargetRequest.add_member(:suspended_state, Shapes::ShapeRef.new(shape: SuspendedState, location_name: "SuspendedState"))
231
234
  RegisterScalableTargetRequest.struct_class = Types::RegisterScalableTargetRequest
232
235
 
233
236
  RegisterScalableTargetResponse.struct_class = Types::RegisterScalableTargetResponse
@@ -241,6 +244,7 @@ module Aws::ApplicationAutoScaling
241
244
  ScalableTarget.add_member(:max_capacity, Shapes::ShapeRef.new(shape: ResourceCapacity, required: true, location_name: "MaxCapacity"))
242
245
  ScalableTarget.add_member(:role_arn, Shapes::ShapeRef.new(shape: ResourceIdMaxLen1600, required: true, location_name: "RoleARN"))
243
246
  ScalableTarget.add_member(:creation_time, Shapes::ShapeRef.new(shape: TimestampType, required: true, location_name: "CreationTime"))
247
+ ScalableTarget.add_member(:suspended_state, Shapes::ShapeRef.new(shape: SuspendedState, location_name: "SuspendedState"))
244
248
  ScalableTarget.struct_class = Types::ScalableTarget
245
249
 
246
250
  ScalableTargetAction.add_member(:min_capacity, Shapes::ShapeRef.new(shape: ResourceCapacity, location_name: "MinCapacity"))
@@ -306,6 +310,11 @@ module Aws::ApplicationAutoScaling
306
310
  StepScalingPolicyConfiguration.add_member(:metric_aggregation_type, Shapes::ShapeRef.new(shape: MetricAggregationType, location_name: "MetricAggregationType"))
307
311
  StepScalingPolicyConfiguration.struct_class = Types::StepScalingPolicyConfiguration
308
312
 
313
+ SuspendedState.add_member(:dynamic_scaling_in_suspended, Shapes::ShapeRef.new(shape: ScalingSuspended, location_name: "DynamicScalingInSuspended"))
314
+ SuspendedState.add_member(:dynamic_scaling_out_suspended, Shapes::ShapeRef.new(shape: ScalingSuspended, location_name: "DynamicScalingOutSuspended"))
315
+ SuspendedState.add_member(:scheduled_scaling_suspended, Shapes::ShapeRef.new(shape: ScalingSuspended, location_name: "ScheduledScalingSuspended"))
316
+ SuspendedState.struct_class = Types::SuspendedState
317
+
309
318
  TargetTrackingScalingPolicyConfiguration.add_member(:target_value, Shapes::ShapeRef.new(shape: MetricScale, required: true, location_name: "TargetValue"))
310
319
  TargetTrackingScalingPolicyConfiguration.add_member(:predefined_metric_specification, Shapes::ShapeRef.new(shape: PredefinedMetricSpecification, location_name: "PredefinedMetricSpecification"))
311
320
  TargetTrackingScalingPolicyConfiguration.add_member(:customized_metric_specification, Shapes::ShapeRef.new(shape: CustomizedMetricSpecification, location_name: "CustomizedMetricSpecification"))
@@ -437,6 +446,12 @@ module Aws::ApplicationAutoScaling
437
446
  o.errors << Shapes::ShapeRef.new(shape: InvalidNextTokenException)
438
447
  o.errors << Shapes::ShapeRef.new(shape: ConcurrentUpdateException)
439
448
  o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
449
+ o[:pager] = Aws::Pager.new(
450
+ limit_key: "max_results",
451
+ tokens: {
452
+ "next_token" => "next_token"
453
+ }
454
+ )
440
455
  end)
441
456
 
442
457
  api.add_operation(:put_scaling_policy, Seahorse::Model::Operation.new.tap do |o|
@@ -1630,6 +1630,11 @@ module Aws::ApplicationAutoScaling
1630
1630
  # min_capacity: 1,
1631
1631
  # max_capacity: 1,
1632
1632
  # role_arn: "ResourceIdMaxLen1600",
1633
+ # suspended_state: {
1634
+ # dynamic_scaling_in_suspended: false,
1635
+ # dynamic_scaling_out_suspended: false,
1636
+ # scheduled_scaling_suspended: false,
1637
+ # },
1633
1638
  # }
1634
1639
  #
1635
1640
  # @!attribute [rw] service_namespace
@@ -1754,6 +1759,35 @@ module Aws::ApplicationAutoScaling
1754
1759
  # [1]: https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-service-linked-roles.html
1755
1760
  # @return [String]
1756
1761
  #
1762
+ # @!attribute [rw] suspended_state
1763
+ # An embedded object that contains attributes and attribute values
1764
+ # that are used to suspend and resume automatic scaling. Setting the
1765
+ # value of an attribute to `true` suspends the specified scaling
1766
+ # activities. Setting it to `false` (default) resumes the specified
1767
+ # scaling activities.
1768
+ #
1769
+ # **Suspension Outcomes**
1770
+ #
1771
+ # * For `DynamicScalingInSuspended`, while a suspension is in effect,
1772
+ # all scale-in activities that are triggered by a scaling policy are
1773
+ # suspended.
1774
+ #
1775
+ # * For `DynamicScalingOutSuspended`, while a suspension is in effect,
1776
+ # all scale-out activities that are triggered by a scaling policy
1777
+ # are suspended.
1778
+ #
1779
+ # * For `ScheduledScalingSuspended`, while a suspension is in effect,
1780
+ # all scaling activities that involve scheduled actions are
1781
+ # suspended.
1782
+ #
1783
+ # For more information, see [Suspend and Resume Application Auto
1784
+ # Scaling][1] in the *Application Auto Scaling User Guide*.
1785
+ #
1786
+ #
1787
+ #
1788
+ # [1]: https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-suspend-resume-scaling.html
1789
+ # @return [Types::SuspendedState]
1790
+ #
1757
1791
  # @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/RegisterScalableTargetRequest AWS API Documentation
1758
1792
  #
1759
1793
  class RegisterScalableTargetRequest < Struct.new(
@@ -1762,7 +1796,8 @@ module Aws::ApplicationAutoScaling
1762
1796
  :scalable_dimension,
1763
1797
  :min_capacity,
1764
1798
  :max_capacity,
1765
- :role_arn)
1799
+ :role_arn,
1800
+ :suspended_state)
1766
1801
  include Aws::Structure
1767
1802
  end
1768
1803
 
@@ -1884,6 +1919,11 @@ module Aws::ApplicationAutoScaling
1884
1919
  # The Unix timestamp for when the scalable target was created.
1885
1920
  # @return [Time]
1886
1921
  #
1922
+ # @!attribute [rw] suspended_state
1923
+ # Specifies whether the scaling activities for a scalable target are
1924
+ # in a suspended state.
1925
+ # @return [Types::SuspendedState]
1926
+ #
1887
1927
  # @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/ScalableTarget AWS API Documentation
1888
1928
  #
1889
1929
  class ScalableTarget < Struct.new(
@@ -1893,7 +1933,8 @@ module Aws::ApplicationAutoScaling
1893
1933
  :min_capacity,
1894
1934
  :max_capacity,
1895
1935
  :role_arn,
1896
- :creation_time)
1936
+ :creation_time,
1937
+ :suspended_state)
1897
1938
  include Aws::Structure
1898
1939
  end
1899
1940
 
@@ -2535,6 +2576,47 @@ module Aws::ApplicationAutoScaling
2535
2576
  include Aws::Structure
2536
2577
  end
2537
2578
 
2579
+ # Specifies whether the scaling activities for a scalable target are in
2580
+ # a suspended state.
2581
+ #
2582
+ # @note When making an API call, you may pass SuspendedState
2583
+ # data as a hash:
2584
+ #
2585
+ # {
2586
+ # dynamic_scaling_in_suspended: false,
2587
+ # dynamic_scaling_out_suspended: false,
2588
+ # scheduled_scaling_suspended: false,
2589
+ # }
2590
+ #
2591
+ # @!attribute [rw] dynamic_scaling_in_suspended
2592
+ # Whether scale in by a target tracking scaling policy or a step
2593
+ # scaling policy is suspended. Set the value to `true` if you don't
2594
+ # want Application Auto Scaling to remove capacity when a scaling
2595
+ # policy is triggered. The default is `false`.
2596
+ # @return [Boolean]
2597
+ #
2598
+ # @!attribute [rw] dynamic_scaling_out_suspended
2599
+ # Whether scale out by a target tracking scaling policy or a step
2600
+ # scaling policy is suspended. Set the value to `true` if you don't
2601
+ # want Application Auto Scaling to add capacity when a scaling policy
2602
+ # is triggered. The default is `false`.
2603
+ # @return [Boolean]
2604
+ #
2605
+ # @!attribute [rw] scheduled_scaling_suspended
2606
+ # Whether scheduled scaling is suspended. Set the value to `true` if
2607
+ # you don't want Application Auto Scaling to add or remove capacity
2608
+ # by initiating scheduled actions. The default is `false`.
2609
+ # @return [Boolean]
2610
+ #
2611
+ # @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/SuspendedState AWS API Documentation
2612
+ #
2613
+ class SuspendedState < Struct.new(
2614
+ :dynamic_scaling_in_suspended,
2615
+ :dynamic_scaling_out_suspended,
2616
+ :scheduled_scaling_suspended)
2617
+ include Aws::Structure
2618
+ end
2619
+
2538
2620
  # Represents a target tracking scaling policy configuration to use with
2539
2621
  # Application Auto Scaling.
2540
2622
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-applicationautoscaling
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.29.0
4
+ version: 1.30.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-12 00:00:00.000000000 Z
11
+ date: 2019-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core