aws-sdk-autoscaling 1.0.0.rc8 → 1.0.0.rc9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a1e976b3bd2952542b6d62b122c30a955e196519
4
- data.tar.gz: c3a70ca02fd47409f4f449b705fcaff37fc1af76
3
+ metadata.gz: e0bd0491a0f8416403fdfcb23cc62cac1d5be4e7
4
+ data.tar.gz: 716ace83a984c8af4b6cf22600afe6e682121b02
5
5
  SHA512:
6
- metadata.gz: 4826c4a3fff83d8fe8aa60cbb177960efb5d1635b254514fa36aa78fd468502e47a4f928fe2e9e1c6a861dee74d9d66ef05070d372ed756ba88e4f5a3e26a611
7
- data.tar.gz: 8f6796f03b93b7569dbb6eeba2a26ee96471954ab477b8c62042f67cd06c8209024923c4b9e6f3fc1f4c9a3b90ff77ac99e1469a2a8e31d55de39b31f2f3b0ae
6
+ metadata.gz: 3b13a1cf2cb5e35c6e6a4028f4a042a286bb843f537af24f7290ef74b4e9ef3bb3ddf52f7f4c6d26f70c9c64e1f9c4d7f729eca66283bfbf2717183239a3e3e1
7
+ data.tar.gz: 7f7ed585bc6973ab8dea9d75a25302c6d41e26b28b2eca1c200ab376359e329c1340a6ddea6846cc86f437d3e03ec120d7dc0d4bf71a8c07204e5b0c8bb8dd7a
@@ -53,6 +53,6 @@ require_relative 'aws-sdk-autoscaling/customizations'
53
53
  # @service
54
54
  module Aws::AutoScaling
55
55
 
56
- GEM_VERSION = '1.0.0.rc8'
56
+ GEM_VERSION = '1.0.0.rc9'
57
57
 
58
58
  end
@@ -397,7 +397,7 @@ module Aws::AutoScaling
397
397
  # scalingpolicy = auto_scaling_group.put_scaling_policy({
398
398
  # policy_name: "XmlStringMaxLen255", # required
399
399
  # policy_type: "XmlStringMaxLen64",
400
- # adjustment_type: "XmlStringMaxLen255", # required
400
+ # adjustment_type: "XmlStringMaxLen255",
401
401
  # min_adjustment_step: 1,
402
402
  # min_adjustment_magnitude: 1,
403
403
  # scaling_adjustment: 1,
@@ -411,17 +411,41 @@ module Aws::AutoScaling
411
411
  # },
412
412
  # ],
413
413
  # estimated_instance_warmup: 1,
414
+ # target_tracking_configuration: {
415
+ # predefined_metric_specification: {
416
+ # predefined_metric_type: "ASGAverageCPUUtilization", # required, accepts ASGAverageCPUUtilization, ASGAverageNetworkIn, ASGAverageNetworkOut, ALBRequestCountPerTarget
417
+ # resource_label: "XmlStringMaxLen1023",
418
+ # },
419
+ # customized_metric_specification: {
420
+ # metric_name: "MetricName", # required
421
+ # namespace: "MetricNamespace", # required
422
+ # dimensions: [
423
+ # {
424
+ # name: "MetricDimensionName", # required
425
+ # value: "MetricDimensionValue", # required
426
+ # },
427
+ # ],
428
+ # statistic: "Average", # required, accepts Average, Minimum, Maximum, SampleCount, Sum
429
+ # unit: "MetricUnit",
430
+ # },
431
+ # target_value: 1.0, # required
432
+ # disable_scale_in: false,
433
+ # },
414
434
  # })
415
435
  # @param [Hash] options ({})
416
436
  # @option options [required, String] :policy_name
417
437
  # The name of the policy.
418
438
  # @option options [String] :policy_type
419
- # The policy type. Valid values are `SimpleScaling` and `StepScaling`.
420
- # If the policy type is null, the value is treated as `SimpleScaling`.
421
- # @option options [required, String] :adjustment_type
422
- # The adjustment type. Valid values are `ChangeInCapacity`,
439
+ # The policy type. The valid values are `SimpleScaling`, `StepScaling`,
440
+ # and `TargetTrackingScaling`. If the policy type is null, the value is
441
+ # treated as `SimpleScaling`.
442
+ # @option options [String] :adjustment_type
443
+ # The adjustment type. The valid values are `ChangeInCapacity`,
423
444
  # `ExactCapacity`, and `PercentChangeInCapacity`.
424
445
  #
446
+ # This parameter is supported if the policy type is `SimpleScaling` or
447
+ # `StepScaling`.
448
+ #
425
449
  # For more information, see [Dynamic Scaling][1] in the *Auto Scaling
426
450
  # User Guide*.
427
451
  #
@@ -436,6 +460,9 @@ module Aws::AutoScaling
436
460
  # `AdjustmentType` is `PercentChangeInCapacity`, the scaling policy
437
461
  # changes the `DesiredCapacity` of the Auto Scaling group by at least
438
462
  # this many instances. Otherwise, the error is `ValidationError`.
463
+ #
464
+ # This parameter is supported if the policy type is `SimpleScaling` or
465
+ # `StepScaling`.
439
466
  # @option options [Integer] :scaling_adjustment
440
467
  # The amount by which to scale, based on the specified adjustment type.
441
468
  # A positive value adds to the current capacity while a negative number
@@ -448,8 +475,7 @@ module Aws::AutoScaling
448
475
  # before the next scaling activity can start. If this parameter is not
449
476
  # specified, the default cooldown period for the group applies.
450
477
  #
451
- # This parameter is not supported unless the policy type is
452
- # `SimpleScaling`.
478
+ # This parameter is supported if the policy type is `SimpleScaling`.
453
479
  #
454
480
  # For more information, see [Auto Scaling Cooldowns][1] in the *Auto
455
481
  # Scaling User Guide*.
@@ -458,11 +484,11 @@ module Aws::AutoScaling
458
484
  #
459
485
  # [1]: http://docs.aws.amazon.com/autoscaling/latest/userguide/Cooldown.html
460
486
  # @option options [String] :metric_aggregation_type
461
- # The aggregation type for the CloudWatch metrics. Valid values are
487
+ # The aggregation type for the CloudWatch metrics. The valid values are
462
488
  # `Minimum`, `Maximum`, and `Average`. If the aggregation type is null,
463
489
  # the value is treated as `Average`.
464
490
  #
465
- # This parameter is not supported if the policy type is `SimpleScaling`.
491
+ # This parameter is supported if the policy type is `StepScaling`.
466
492
  # @option options [Array<Types::StepAdjustment>] :step_adjustments
467
493
  # A set of adjustments that enable you to scale based on the size of the
468
494
  # alarm breach.
@@ -474,7 +500,13 @@ module Aws::AutoScaling
474
500
  # contribute to the CloudWatch metrics. The default is to use the value
475
501
  # specified for the default cooldown period for the group.
476
502
  #
477
- # This parameter is not supported if the policy type is `SimpleScaling`.
503
+ # This parameter is supported if the policy type is `StepScaling` or
504
+ # `TargetTrackingScaling`.
505
+ # @option options [Types::TargetTrackingConfiguration] :target_tracking_configuration
506
+ # The configuration of a target tracking policy.
507
+ #
508
+ # This parameter is required if the policy type is
509
+ # `TargetTrackingScaling` and not supported otherwise.
478
510
  # @return [ScalingPolicy]
479
511
  def put_scaling_policy(options = {})
480
512
  options = options.merge(auto_scaling_group_name: @name)
@@ -434,9 +434,7 @@ module Aws::AutoScaling
434
434
  # @option params [Integer] :desired_capacity
435
435
  # The number of EC2 instances that should be running in the group. This
436
436
  # number must be greater than or equal to the minimum size of the group
437
- # and less than or equal to the maximum size of the group. If you do not
438
- # specify a desired capacity, the default is the minimum size of the
439
- # group.
437
+ # and less than or equal to the maximum size of the group.
440
438
  #
441
439
  # @option params [Integer] :default_cooldown
442
440
  # The amount of time, in seconds, after a scaling activity completes
@@ -653,12 +651,8 @@ module Aws::AutoScaling
653
651
  #
654
652
  # @option params [String] :image_id
655
653
  # The ID of the Amazon Machine Image (AMI) to use to launch your EC2
656
- # instances.
657
- #
658
- # If you do not specify `InstanceId`, you must specify `ImageId`.
659
- #
660
- # For more information, see [Finding an AMI][1] in the *Amazon Elastic
661
- # Compute Cloud User Guide*.
654
+ # instances. For more information, see [Finding an AMI][1] in the
655
+ # *Amazon Elastic Compute Cloud User Guide*.
662
656
  #
663
657
  #
664
658
  #
@@ -720,12 +714,10 @@ module Aws::AutoScaling
720
714
  # [1]: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html
721
715
  #
722
716
  # @option params [String] :instance_id
723
- # The ID of the instance to use to create the launch configuration. The
724
- # new launch configuration derives attributes from the instance, with
725
- # the exception of the block device mapping.
717
+ # The ID of the instance to use to create the launch configuration.
726
718
  #
727
- # If you do not specify `InstanceId`, you must specify both `ImageId`
728
- # and `InstanceType`.
719
+ # The new launch configuration derives attributes from the instance,
720
+ # with the exception of the block device mapping.
729
721
  #
730
722
  # To create a launch configuration with a block device mapping or
731
723
  # override any other instance attributes, specify them as part of the
@@ -739,12 +731,9 @@ module Aws::AutoScaling
739
731
  # [1]: http://docs.aws.amazon.com/autoscaling/latest/userguide/create-lc-with-instanceID.html
740
732
  #
741
733
  # @option params [String] :instance_type
742
- # The instance type of the EC2 instance.
743
- #
744
- # If you do not specify `InstanceId`, you must specify `InstanceType`.
745
- #
746
- # For information about available instance types, see [Available
747
- # Instance Types][1] in the *Amazon Elastic Compute Cloud User Guide.*
734
+ # The instance type of the EC2 instance. For information about available
735
+ # instance types, see [ Available Instance Types][1] in the *Amazon
736
+ # Elastic Compute Cloud User Guide.*
748
737
  #
749
738
  #
750
739
  #
@@ -767,7 +756,7 @@ module Aws::AutoScaling
767
756
  #
768
757
  # @option params [Types::InstanceMonitoring] :instance_monitoring
769
758
  # Enables detailed monitoring (`true`) or basic monitoring (`false`) for
770
- # the Auto Scaling instances. The default is `true`.
759
+ # the Auto Scaling instances.
771
760
  #
772
761
  # @option params [String] :spot_price
773
762
  # The maximum hourly price to be paid for any Spot Instance launched to
@@ -2186,6 +2175,17 @@ module Aws::AutoScaling
2186
2175
  # resp.scaling_policies[0].alarms #=> Array
2187
2176
  # resp.scaling_policies[0].alarms[0].alarm_name #=> String
2188
2177
  # resp.scaling_policies[0].alarms[0].alarm_arn #=> String
2178
+ # resp.scaling_policies[0].target_tracking_configuration.predefined_metric_specification.predefined_metric_type #=> String, one of "ASGAverageCPUUtilization", "ASGAverageNetworkIn", "ASGAverageNetworkOut", "ALBRequestCountPerTarget"
2179
+ # resp.scaling_policies[0].target_tracking_configuration.predefined_metric_specification.resource_label #=> String
2180
+ # resp.scaling_policies[0].target_tracking_configuration.customized_metric_specification.metric_name #=> String
2181
+ # resp.scaling_policies[0].target_tracking_configuration.customized_metric_specification.namespace #=> String
2182
+ # resp.scaling_policies[0].target_tracking_configuration.customized_metric_specification.dimensions #=> Array
2183
+ # resp.scaling_policies[0].target_tracking_configuration.customized_metric_specification.dimensions[0].name #=> String
2184
+ # resp.scaling_policies[0].target_tracking_configuration.customized_metric_specification.dimensions[0].value #=> String
2185
+ # resp.scaling_policies[0].target_tracking_configuration.customized_metric_specification.statistic #=> String, one of "Average", "Minimum", "Maximum", "SampleCount", "Sum"
2186
+ # resp.scaling_policies[0].target_tracking_configuration.customized_metric_specification.unit #=> String
2187
+ # resp.scaling_policies[0].target_tracking_configuration.target_value #=> Float
2188
+ # resp.scaling_policies[0].target_tracking_configuration.disable_scale_in #=> Boolean
2189
2189
  # resp.next_token #=> String
2190
2190
  #
2191
2191
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribePolicies AWS API Documentation
@@ -2575,8 +2575,8 @@ module Aws::AutoScaling
2575
2575
 
2576
2576
  # Removes one or more instances from the specified Auto Scaling group.
2577
2577
  #
2578
- # After the instances are detached, you can manage them independent of
2579
- # the Auto Scaling group.
2578
+ # After the instances are detached, you can manage them independently
2579
+ # from the rest of the Auto Scaling group.
2580
2580
  #
2581
2581
  # If you do not specify the option to decrement the desired capacity,
2582
2582
  # Auto Scaling launches instances to replace the ones that are detached.
@@ -2873,14 +2873,14 @@ module Aws::AutoScaling
2873
2873
  req.send_request(options)
2874
2874
  end
2875
2875
 
2876
- # Moves the specified instances into the standby state.
2876
+ # Moves the specified instances into `Standby` mode.
2877
2877
  #
2878
- # For more information, see [Temporarily Removing Instances from Your
2879
- # Auto Scaling Group][1] in the *Auto Scaling User Guide*.
2878
+ # For more information, see [Auto Scaling Lifecycle][1] in the *Auto
2879
+ # Scaling User Guide*.
2880
2880
  #
2881
2881
  #
2882
2882
  #
2883
- # [1]: http://docs.aws.amazon.com/autoscaling/latest/userguide/as-enter-exit-standby.html
2883
+ # [1]: http://docs.aws.amazon.com/autoscaling/latest/userguide/AutoScalingGroupLifecycle.html
2884
2884
  #
2885
2885
  # @option params [Array<String>] :instance_ids
2886
2886
  # One or more instances to move into `Standby` mode. You must specify at
@@ -3033,14 +3033,14 @@ module Aws::AutoScaling
3033
3033
  req.send_request(options)
3034
3034
  end
3035
3035
 
3036
- # Moves the specified instances out of the standby state.
3036
+ # Moves the specified instances out of `Standby` mode.
3037
3037
  #
3038
- # For more information, see [Temporarily Removing Instances from Your
3039
- # Auto Scaling Group][1] in the *Auto Scaling User Guide*.
3038
+ # For more information, see [Auto Scaling Lifecycle][1] in the *Auto
3039
+ # Scaling User Guide*.
3040
3040
  #
3041
3041
  #
3042
3042
  #
3043
- # [1]: http://docs.aws.amazon.com/autoscaling/latest/userguide/as-enter-exit-standby.html
3043
+ # [1]: http://docs.aws.amazon.com/autoscaling/latest/userguide/AutoScalingGroupLifecycle.html
3044
3044
  #
3045
3045
  # @option params [Array<String>] :instance_ids
3046
3046
  # One or more instance IDs. You must specify at least one instance ID.
@@ -3319,13 +3319,17 @@ module Aws::AutoScaling
3319
3319
  # The name of the policy.
3320
3320
  #
3321
3321
  # @option params [String] :policy_type
3322
- # The policy type. Valid values are `SimpleScaling` and `StepScaling`.
3323
- # If the policy type is null, the value is treated as `SimpleScaling`.
3322
+ # The policy type. The valid values are `SimpleScaling`, `StepScaling`,
3323
+ # and `TargetTrackingScaling`. If the policy type is null, the value is
3324
+ # treated as `SimpleScaling`.
3324
3325
  #
3325
- # @option params [required, String] :adjustment_type
3326
- # The adjustment type. Valid values are `ChangeInCapacity`,
3326
+ # @option params [String] :adjustment_type
3327
+ # The adjustment type. The valid values are `ChangeInCapacity`,
3327
3328
  # `ExactCapacity`, and `PercentChangeInCapacity`.
3328
3329
  #
3330
+ # This parameter is supported if the policy type is `SimpleScaling` or
3331
+ # `StepScaling`.
3332
+ #
3329
3333
  # For more information, see [Dynamic Scaling][1] in the *Auto Scaling
3330
3334
  # User Guide*.
3331
3335
  #
@@ -3343,6 +3347,9 @@ module Aws::AutoScaling
3343
3347
  # changes the `DesiredCapacity` of the Auto Scaling group by at least
3344
3348
  # this many instances. Otherwise, the error is `ValidationError`.
3345
3349
  #
3350
+ # This parameter is supported if the policy type is `SimpleScaling` or
3351
+ # `StepScaling`.
3352
+ #
3346
3353
  # @option params [Integer] :scaling_adjustment
3347
3354
  # The amount by which to scale, based on the specified adjustment type.
3348
3355
  # A positive value adds to the current capacity while a negative number
@@ -3356,8 +3363,7 @@ module Aws::AutoScaling
3356
3363
  # before the next scaling activity can start. If this parameter is not
3357
3364
  # specified, the default cooldown period for the group applies.
3358
3365
  #
3359
- # This parameter is not supported unless the policy type is
3360
- # `SimpleScaling`.
3366
+ # This parameter is supported if the policy type is `SimpleScaling`.
3361
3367
  #
3362
3368
  # For more information, see [Auto Scaling Cooldowns][1] in the *Auto
3363
3369
  # Scaling User Guide*.
@@ -3367,11 +3373,11 @@ module Aws::AutoScaling
3367
3373
  # [1]: http://docs.aws.amazon.com/autoscaling/latest/userguide/Cooldown.html
3368
3374
  #
3369
3375
  # @option params [String] :metric_aggregation_type
3370
- # The aggregation type for the CloudWatch metrics. Valid values are
3376
+ # The aggregation type for the CloudWatch metrics. The valid values are
3371
3377
  # `Minimum`, `Maximum`, and `Average`. If the aggregation type is null,
3372
3378
  # the value is treated as `Average`.
3373
3379
  #
3374
- # This parameter is not supported if the policy type is `SimpleScaling`.
3380
+ # This parameter is supported if the policy type is `StepScaling`.
3375
3381
  #
3376
3382
  # @option params [Array<Types::StepAdjustment>] :step_adjustments
3377
3383
  # A set of adjustments that enable you to scale based on the size of the
@@ -3385,11 +3391,19 @@ module Aws::AutoScaling
3385
3391
  # contribute to the CloudWatch metrics. The default is to use the value
3386
3392
  # specified for the default cooldown period for the group.
3387
3393
  #
3388
- # This parameter is not supported if the policy type is `SimpleScaling`.
3394
+ # This parameter is supported if the policy type is `StepScaling` or
3395
+ # `TargetTrackingScaling`.
3396
+ #
3397
+ # @option params [Types::TargetTrackingConfiguration] :target_tracking_configuration
3398
+ # The configuration of a target tracking policy.
3399
+ #
3400
+ # This parameter is required if the policy type is
3401
+ # `TargetTrackingScaling` and not supported otherwise.
3389
3402
  #
3390
3403
  # @return [Types::PolicyARNType] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3391
3404
  #
3392
3405
  # * {Types::PolicyARNType#policy_arn #policy_arn} => String
3406
+ # * {Types::PolicyARNType#alarms #alarms} => Array&lt;Types::Alarm&gt;
3393
3407
  #
3394
3408
  #
3395
3409
  # @example Example: To add a scaling policy to an Auto Scaling group
@@ -3414,7 +3428,7 @@ module Aws::AutoScaling
3414
3428
  # auto_scaling_group_name: "ResourceName", # required
3415
3429
  # policy_name: "XmlStringMaxLen255", # required
3416
3430
  # policy_type: "XmlStringMaxLen64",
3417
- # adjustment_type: "XmlStringMaxLen255", # required
3431
+ # adjustment_type: "XmlStringMaxLen255",
3418
3432
  # min_adjustment_step: 1,
3419
3433
  # min_adjustment_magnitude: 1,
3420
3434
  # scaling_adjustment: 1,
@@ -3428,11 +3442,34 @@ module Aws::AutoScaling
3428
3442
  # },
3429
3443
  # ],
3430
3444
  # estimated_instance_warmup: 1,
3445
+ # target_tracking_configuration: {
3446
+ # predefined_metric_specification: {
3447
+ # predefined_metric_type: "ASGAverageCPUUtilization", # required, accepts ASGAverageCPUUtilization, ASGAverageNetworkIn, ASGAverageNetworkOut, ALBRequestCountPerTarget
3448
+ # resource_label: "XmlStringMaxLen1023",
3449
+ # },
3450
+ # customized_metric_specification: {
3451
+ # metric_name: "MetricName", # required
3452
+ # namespace: "MetricNamespace", # required
3453
+ # dimensions: [
3454
+ # {
3455
+ # name: "MetricDimensionName", # required
3456
+ # value: "MetricDimensionValue", # required
3457
+ # },
3458
+ # ],
3459
+ # statistic: "Average", # required, accepts Average, Minimum, Maximum, SampleCount, Sum
3460
+ # unit: "MetricUnit",
3461
+ # },
3462
+ # target_value: 1.0, # required
3463
+ # disable_scale_in: false,
3464
+ # },
3431
3465
  # })
3432
3466
  #
3433
3467
  # @example Response structure
3434
3468
  #
3435
3469
  # resp.policy_arn #=> String
3470
+ # resp.alarms #=> Array
3471
+ # resp.alarms[0].alarm_name #=> String
3472
+ # resp.alarms[0].alarm_arn #=> String
3436
3473
  #
3437
3474
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutScalingPolicy AWS API Documentation
3438
3475
  #
@@ -3973,16 +4010,17 @@ module Aws::AutoScaling
3973
4010
 
3974
4011
  # Updates the configuration for the specified Auto Scaling group.
3975
4012
  #
3976
- # The new settings take effect on any scaling activities after this call
3977
- # returns. Scaling activities that are currently in progress aren't
3978
- # affected.
3979
- #
3980
4013
  # To update an Auto Scaling group with a launch configuration with
3981
- # `InstanceMonitoring` set to `false`, you must first disable the
4014
+ # `InstanceMonitoring` set to `False`, you must first disable the
3982
4015
  # collection of group metrics. Otherwise, you will get an error. If you
3983
4016
  # have previously enabled the collection of group metrics, you can
3984
4017
  # disable it using DisableMetricsCollection.
3985
4018
  #
4019
+ # The new settings are registered upon the completion of this call. Any
4020
+ # launch configuration settings take effect on any triggers after this
4021
+ # call returns. Scaling activities that are currently in progress
4022
+ # aren't affected.
4023
+ #
3986
4024
  # Note the following:
3987
4025
  #
3988
4026
  # * If you specify a new value for `MinSize` without specifying a value
@@ -4155,7 +4193,7 @@ module Aws::AutoScaling
4155
4193
  params: params,
4156
4194
  config: config)
4157
4195
  context[:gem_name] = 'aws-sdk-autoscaling'
4158
- context[:gem_version] = '1.0.0.rc8'
4196
+ context[:gem_version] = '1.0.0.rc9'
4159
4197
  Seahorse::Client::Request.new(handlers, context)
4160
4198
  end
4161
4199
 
@@ -55,6 +55,7 @@ module Aws::AutoScaling
55
55
  CreateAutoScalingGroupType = Shapes::StructureShape.new(name: 'CreateAutoScalingGroupType')
56
56
  CreateLaunchConfigurationType = Shapes::StructureShape.new(name: 'CreateLaunchConfigurationType')
57
57
  CreateOrUpdateTagsType = Shapes::StructureShape.new(name: 'CreateOrUpdateTagsType')
58
+ CustomizedMetricSpecification = Shapes::StructureShape.new(name: 'CustomizedMetricSpecification')
58
59
  DeleteAutoScalingGroupType = Shapes::StructureShape.new(name: 'DeleteAutoScalingGroupType')
59
60
  DeleteLifecycleHookAnswer = Shapes::StructureShape.new(name: 'DeleteLifecycleHookAnswer')
60
61
  DeleteLifecycleHookType = Shapes::StructureShape.new(name: 'DeleteLifecycleHookType')
@@ -88,6 +89,7 @@ module Aws::AutoScaling
88
89
  DetachLoadBalancersResultType = Shapes::StructureShape.new(name: 'DetachLoadBalancersResultType')
89
90
  DetachLoadBalancersType = Shapes::StructureShape.new(name: 'DetachLoadBalancersType')
90
91
  DisableMetricsCollectionQuery = Shapes::StructureShape.new(name: 'DisableMetricsCollectionQuery')
92
+ DisableScaleIn = Shapes::BooleanShape.new(name: 'DisableScaleIn')
91
93
  Ebs = Shapes::StructureShape.new(name: 'Ebs')
92
94
  EbsOptimized = Shapes::BooleanShape.new(name: 'EbsOptimized')
93
95
  EnableMetricsCollectionQuery = Shapes::StructureShape.new(name: 'EnableMetricsCollectionQuery')
@@ -136,9 +138,18 @@ module Aws::AutoScaling
136
138
  MaxRecords = Shapes::IntegerShape.new(name: 'MaxRecords')
137
139
  MetricCollectionType = Shapes::StructureShape.new(name: 'MetricCollectionType')
138
140
  MetricCollectionTypes = Shapes::ListShape.new(name: 'MetricCollectionTypes')
141
+ MetricDimension = Shapes::StructureShape.new(name: 'MetricDimension')
142
+ MetricDimensionName = Shapes::StringShape.new(name: 'MetricDimensionName')
143
+ MetricDimensionValue = Shapes::StringShape.new(name: 'MetricDimensionValue')
144
+ MetricDimensions = Shapes::ListShape.new(name: 'MetricDimensions')
139
145
  MetricGranularityType = Shapes::StructureShape.new(name: 'MetricGranularityType')
140
146
  MetricGranularityTypes = Shapes::ListShape.new(name: 'MetricGranularityTypes')
147
+ MetricName = Shapes::StringShape.new(name: 'MetricName')
148
+ MetricNamespace = Shapes::StringShape.new(name: 'MetricNamespace')
141
149
  MetricScale = Shapes::FloatShape.new(name: 'MetricScale')
150
+ MetricStatistic = Shapes::StringShape.new(name: 'MetricStatistic')
151
+ MetricType = Shapes::StringShape.new(name: 'MetricType')
152
+ MetricUnit = Shapes::StringShape.new(name: 'MetricUnit')
142
153
  Metrics = Shapes::ListShape.new(name: 'Metrics')
143
154
  MinAdjustmentMagnitude = Shapes::IntegerShape.new(name: 'MinAdjustmentMagnitude')
144
155
  MinAdjustmentStep = Shapes::IntegerShape.new(name: 'MinAdjustmentStep')
@@ -154,6 +165,7 @@ module Aws::AutoScaling
154
165
  PolicyIncrement = Shapes::IntegerShape.new(name: 'PolicyIncrement')
155
166
  PolicyNames = Shapes::ListShape.new(name: 'PolicyNames')
156
167
  PolicyTypes = Shapes::ListShape.new(name: 'PolicyTypes')
168
+ PredefinedMetricSpecification = Shapes::StructureShape.new(name: 'PredefinedMetricSpecification')
157
169
  ProcessNames = Shapes::ListShape.new(name: 'ProcessNames')
158
170
  ProcessType = Shapes::StructureShape.new(name: 'ProcessType')
159
171
  Processes = Shapes::ListShape.new(name: 'Processes')
@@ -200,6 +212,7 @@ module Aws::AutoScaling
200
212
  Tags = Shapes::ListShape.new(name: 'Tags')
201
213
  TagsType = Shapes::StructureShape.new(name: 'TagsType')
202
214
  TargetGroupARNs = Shapes::ListShape.new(name: 'TargetGroupARNs')
215
+ TargetTrackingConfiguration = Shapes::StructureShape.new(name: 'TargetTrackingConfiguration')
203
216
  TerminateInstanceInAutoScalingGroupType = Shapes::StructureShape.new(name: 'TerminateInstanceInAutoScalingGroupType')
204
217
  TerminationPolicies = Shapes::ListShape.new(name: 'TerminationPolicies')
205
218
  TimestampType = Shapes::TimestampShape.new(name: 'TimestampType')
@@ -383,6 +396,13 @@ module Aws::AutoScaling
383
396
  CreateOrUpdateTagsType.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, required: true, location_name: "Tags"))
384
397
  CreateOrUpdateTagsType.struct_class = Types::CreateOrUpdateTagsType
385
398
 
399
+ CustomizedMetricSpecification.add_member(:metric_name, Shapes::ShapeRef.new(shape: MetricName, required: true, location_name: "MetricName"))
400
+ CustomizedMetricSpecification.add_member(:namespace, Shapes::ShapeRef.new(shape: MetricNamespace, required: true, location_name: "Namespace"))
401
+ CustomizedMetricSpecification.add_member(:dimensions, Shapes::ShapeRef.new(shape: MetricDimensions, location_name: "Dimensions"))
402
+ CustomizedMetricSpecification.add_member(:statistic, Shapes::ShapeRef.new(shape: MetricStatistic, required: true, location_name: "Statistic"))
403
+ CustomizedMetricSpecification.add_member(:unit, Shapes::ShapeRef.new(shape: MetricUnit, location_name: "Unit"))
404
+ CustomizedMetricSpecification.struct_class = Types::CustomizedMetricSpecification
405
+
386
406
  DeleteAutoScalingGroupType.add_member(:auto_scaling_group_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "AutoScalingGroupName"))
387
407
  DeleteAutoScalingGroupType.add_member(:force_delete, Shapes::ShapeRef.new(shape: ForceDelete, location_name: "ForceDelete"))
388
408
  DeleteAutoScalingGroupType.struct_class = Types::DeleteAutoScalingGroupType
@@ -652,6 +672,12 @@ module Aws::AutoScaling
652
672
 
653
673
  MetricCollectionTypes.member = Shapes::ShapeRef.new(shape: MetricCollectionType)
654
674
 
675
+ MetricDimension.add_member(:name, Shapes::ShapeRef.new(shape: MetricDimensionName, required: true, location_name: "Name"))
676
+ MetricDimension.add_member(:value, Shapes::ShapeRef.new(shape: MetricDimensionValue, required: true, location_name: "Value"))
677
+ MetricDimension.struct_class = Types::MetricDimension
678
+
679
+ MetricDimensions.member = Shapes::ShapeRef.new(shape: MetricDimension)
680
+
655
681
  MetricGranularityType.add_member(:granularity, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "Granularity"))
656
682
  MetricGranularityType.struct_class = Types::MetricGranularityType
657
683
 
@@ -671,12 +697,17 @@ module Aws::AutoScaling
671
697
  PoliciesType.struct_class = Types::PoliciesType
672
698
 
673
699
  PolicyARNType.add_member(:policy_arn, Shapes::ShapeRef.new(shape: ResourceName, location_name: "PolicyARN"))
700
+ PolicyARNType.add_member(:alarms, Shapes::ShapeRef.new(shape: Alarms, location_name: "Alarms"))
674
701
  PolicyARNType.struct_class = Types::PolicyARNType
675
702
 
676
703
  PolicyNames.member = Shapes::ShapeRef.new(shape: ResourceName)
677
704
 
678
705
  PolicyTypes.member = Shapes::ShapeRef.new(shape: XmlStringMaxLen64)
679
706
 
707
+ PredefinedMetricSpecification.add_member(:predefined_metric_type, Shapes::ShapeRef.new(shape: MetricType, required: true, location_name: "PredefinedMetricType"))
708
+ PredefinedMetricSpecification.add_member(:resource_label, Shapes::ShapeRef.new(shape: XmlStringMaxLen1023, location_name: "ResourceLabel"))
709
+ PredefinedMetricSpecification.struct_class = Types::PredefinedMetricSpecification
710
+
680
711
  ProcessNames.member = Shapes::ShapeRef.new(shape: XmlStringMaxLen255)
681
712
 
682
713
  ProcessType.add_member(:process_name, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, required: true, location_name: "ProcessName"))
@@ -707,7 +738,7 @@ module Aws::AutoScaling
707
738
  PutScalingPolicyType.add_member(:auto_scaling_group_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "AutoScalingGroupName"))
708
739
  PutScalingPolicyType.add_member(:policy_name, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, required: true, location_name: "PolicyName"))
709
740
  PutScalingPolicyType.add_member(:policy_type, Shapes::ShapeRef.new(shape: XmlStringMaxLen64, location_name: "PolicyType"))
710
- PutScalingPolicyType.add_member(:adjustment_type, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, required: true, location_name: "AdjustmentType"))
741
+ PutScalingPolicyType.add_member(:adjustment_type, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "AdjustmentType"))
711
742
  PutScalingPolicyType.add_member(:min_adjustment_step, Shapes::ShapeRef.new(shape: MinAdjustmentStep, deprecated: true, location_name: "MinAdjustmentStep"))
712
743
  PutScalingPolicyType.add_member(:min_adjustment_magnitude, Shapes::ShapeRef.new(shape: MinAdjustmentMagnitude, location_name: "MinAdjustmentMagnitude"))
713
744
  PutScalingPolicyType.add_member(:scaling_adjustment, Shapes::ShapeRef.new(shape: PolicyIncrement, location_name: "ScalingAdjustment"))
@@ -715,6 +746,7 @@ module Aws::AutoScaling
715
746
  PutScalingPolicyType.add_member(:metric_aggregation_type, Shapes::ShapeRef.new(shape: XmlStringMaxLen32, location_name: "MetricAggregationType"))
716
747
  PutScalingPolicyType.add_member(:step_adjustments, Shapes::ShapeRef.new(shape: StepAdjustments, location_name: "StepAdjustments"))
717
748
  PutScalingPolicyType.add_member(:estimated_instance_warmup, Shapes::ShapeRef.new(shape: EstimatedInstanceWarmup, location_name: "EstimatedInstanceWarmup"))
749
+ PutScalingPolicyType.add_member(:target_tracking_configuration, Shapes::ShapeRef.new(shape: TargetTrackingConfiguration, location_name: "TargetTrackingConfiguration"))
718
750
  PutScalingPolicyType.struct_class = Types::PutScalingPolicyType
719
751
 
720
752
  PutScheduledUpdateGroupActionType.add_member(:auto_scaling_group_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "AutoScalingGroupName"))
@@ -751,6 +783,7 @@ module Aws::AutoScaling
751
783
  ScalingPolicy.add_member(:metric_aggregation_type, Shapes::ShapeRef.new(shape: XmlStringMaxLen32, location_name: "MetricAggregationType"))
752
784
  ScalingPolicy.add_member(:estimated_instance_warmup, Shapes::ShapeRef.new(shape: EstimatedInstanceWarmup, location_name: "EstimatedInstanceWarmup"))
753
785
  ScalingPolicy.add_member(:alarms, Shapes::ShapeRef.new(shape: Alarms, location_name: "Alarms"))
786
+ ScalingPolicy.add_member(:target_tracking_configuration, Shapes::ShapeRef.new(shape: TargetTrackingConfiguration, location_name: "TargetTrackingConfiguration"))
754
787
  ScalingPolicy.struct_class = Types::ScalingPolicy
755
788
 
756
789
  ScalingProcessQuery.add_member(:auto_scaling_group_name, Shapes::ShapeRef.new(shape: ResourceName, required: true, location_name: "AutoScalingGroupName"))
@@ -833,6 +866,12 @@ module Aws::AutoScaling
833
866
 
834
867
  TargetGroupARNs.member = Shapes::ShapeRef.new(shape: XmlStringMaxLen511)
835
868
 
869
+ TargetTrackingConfiguration.add_member(:predefined_metric_specification, Shapes::ShapeRef.new(shape: PredefinedMetricSpecification, location_name: "PredefinedMetricSpecification"))
870
+ TargetTrackingConfiguration.add_member(:customized_metric_specification, Shapes::ShapeRef.new(shape: CustomizedMetricSpecification, location_name: "CustomizedMetricSpecification"))
871
+ TargetTrackingConfiguration.add_member(:target_value, Shapes::ShapeRef.new(shape: MetricScale, required: true, location_name: "TargetValue"))
872
+ TargetTrackingConfiguration.add_member(:disable_scale_in, Shapes::ShapeRef.new(shape: DisableScaleIn, location_name: "DisableScaleIn"))
873
+ TargetTrackingConfiguration.struct_class = Types::TargetTrackingConfiguration
874
+
836
875
  TerminateInstanceInAutoScalingGroupType.add_member(:instance_id, Shapes::ShapeRef.new(shape: XmlStringMaxLen19, required: true, location_name: "InstanceId"))
837
876
  TerminateInstanceInAutoScalingGroupType.add_member(:should_decrement_desired_capacity, Shapes::ShapeRef.new(shape: ShouldDecrementDesiredCapacity, required: true, location_name: "ShouldDecrementDesiredCapacity"))
838
877
  TerminateInstanceInAutoScalingGroupType.struct_class = Types::TerminateInstanceInAutoScalingGroupType
@@ -937,6 +976,7 @@ module Aws::AutoScaling
937
976
  o.errors << Shapes::ShapeRef.new(shape: LimitExceededFault)
938
977
  o.errors << Shapes::ShapeRef.new(shape: AlreadyExistsFault)
939
978
  o.errors << Shapes::ShapeRef.new(shape: ResourceContentionFault)
979
+ o.errors << Shapes::ShapeRef.new(shape: ResourceInUseFault)
940
980
  end)
941
981
 
942
982
  api.add_operation(:delete_auto_scaling_group, Seahorse::Model::Operation.new.tap do |o|
@@ -1003,6 +1043,7 @@ module Aws::AutoScaling
1003
1043
  o.input = Shapes::ShapeRef.new(shape: DeleteTagsType)
1004
1044
  o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
1005
1045
  o.errors << Shapes::ShapeRef.new(shape: ResourceContentionFault)
1046
+ o.errors << Shapes::ShapeRef.new(shape: ResourceInUseFault)
1006
1047
  end)
1007
1048
 
1008
1049
  api.add_operation(:describe_account_limits, Seahorse::Model::Operation.new.tap do |o|