aws-sdk-autoscaling 1.41.0 → 1.42.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
  SHA256:
3
- metadata.gz: 0a0212772f92a489009f672d3f3368f1ffcaa8923f54453bf195c37b0058c60a
4
- data.tar.gz: 8025d59bd8e73f95923cbdad9a64c9dd9dadda9ba33e679683c3ac93f7152fbb
3
+ metadata.gz: e0786a9223123cef73c7b9c179e1aefe4c22900880442978300da566ab81af0f
4
+ data.tar.gz: 493f3aed7782bc6010212e04edf7df808e2fdea482b9a07584c4cfb148757669
5
5
  SHA512:
6
- metadata.gz: d7787741e13ea3e023d996ce2780dee1431bfb0ec0ab00b9cc8c254df1d1d00acf0b85e4de4e131af277b4ceda4638aaa13185fc237915857f2cb283b1c5e1da
7
- data.tar.gz: 8a102ee668e948b2aaa5bfb9412130d7520f09dffe2c50444b2b2d090472d413c1c36b47d675574c0f8be052411ae26d3da24a38dc309d3ec2ce3deb31225ac0
6
+ metadata.gz: bff7f98125203274c2b8a856732fa30cd93eae20ea58ca07b5a6df6bdea6600434c966c7418c2e21c91dee20ac0d57d692862e028c728b7ff710e616fa4e318e
7
+ data.tar.gz: e1a64dd69e5c839af9792f8142736e4200d2755908196d79c16bf0e329d00b1d42db206ea097882567895b53eb5083a9baec8f0c2c54f4d1192bdbc2d26cdfeb
@@ -58,6 +58,6 @@ require_relative 'aws-sdk-autoscaling/customizations'
58
58
  # @service
59
59
  module Aws::AutoScaling
60
60
 
61
- GEM_VERSION = '1.41.0'
61
+ GEM_VERSION = '1.42.0'
62
62
 
63
63
  end
@@ -582,6 +582,20 @@ module Aws::AutoScaling
582
582
  #
583
583
  # * {Types::CancelInstanceRefreshAnswer#instance_refresh_id #instance_refresh_id} => String
584
584
  #
585
+ #
586
+ # @example Example: To cancel an instance refresh
587
+ #
588
+ # # This example cancels an instance refresh operation in progress.
589
+ #
590
+ # resp = client.cancel_instance_refresh({
591
+ # auto_scaling_group_name: "my-auto-scaling-group",
592
+ # })
593
+ #
594
+ # resp.to_h outputs the following:
595
+ # {
596
+ # instance_refresh_id: "08b91cf7-8fa6-48af-b6a6-d227f40f1b9b",
597
+ # }
598
+ #
585
599
  # @example Request syntax with placeholder values
586
600
  #
587
601
  # resp = client.cancel_instance_refresh({
@@ -987,46 +1001,50 @@ module Aws::AutoScaling
987
1001
  #
988
1002
  # resp = client.create_auto_scaling_group({
989
1003
  # auto_scaling_group_name: "my-auto-scaling-group",
990
- # launch_configuration_name: "my-launch-config",
1004
+ # launch_template: {
1005
+ # launch_template_id: "lt-0a20c965061f64abc",
1006
+ # version: "$Latest",
1007
+ # },
1008
+ # max_instance_lifetime: 2592000,
991
1009
  # max_size: 3,
992
1010
  # min_size: 1,
993
- # vpc_zone_identifier: "subnet-4176792c",
1011
+ # vpc_zone_identifier: "subnet-057fa0918fEXAMPLE",
994
1012
  # })
995
1013
  #
996
- # @example Example: To create an Auto Scaling group with an attached load balancer
1014
+ # @example Example: To create an Auto Scaling group with an attached target group
997
1015
  #
998
- # # This example creates an Auto Scaling group and attaches the specified Classic Load Balancer.
1016
+ # # This example creates an Auto Scaling group and attaches the specified target group.
999
1017
  #
1000
1018
  # resp = client.create_auto_scaling_group({
1001
1019
  # auto_scaling_group_name: "my-auto-scaling-group",
1002
- # availability_zones: [
1003
- # "us-west-2c",
1004
- # ],
1005
1020
  # health_check_grace_period: 120,
1006
1021
  # health_check_type: "ELB",
1007
1022
  # launch_configuration_name: "my-launch-config",
1008
- # load_balancer_names: [
1009
- # "my-load-balancer",
1010
- # ],
1011
1023
  # max_size: 3,
1012
1024
  # min_size: 1,
1025
+ # target_group_arns: [
1026
+ # "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067",
1027
+ # ],
1028
+ # vpc_zone_identifier: "subnet-057fa0918fEXAMPLE, subnet-610acd08EXAMPLE",
1013
1029
  # })
1014
1030
  #
1015
- # @example Example: To create an Auto Scaling group with an attached target group
1031
+ # @example Example: To create an Auto Scaling group with an attached load balancer
1016
1032
  #
1017
- # # This example creates an Auto Scaling group and attaches the specified target group.
1033
+ # # This example creates an Auto Scaling group and attaches the specified Classic Load Balancer.
1018
1034
  #
1019
1035
  # resp = client.create_auto_scaling_group({
1020
1036
  # auto_scaling_group_name: "my-auto-scaling-group",
1037
+ # availability_zones: [
1038
+ # "us-west-2c",
1039
+ # ],
1021
1040
  # health_check_grace_period: 120,
1022
1041
  # health_check_type: "ELB",
1023
1042
  # launch_configuration_name: "my-launch-config",
1043
+ # load_balancer_names: [
1044
+ # "my-load-balancer",
1045
+ # ],
1024
1046
  # max_size: 3,
1025
1047
  # min_size: 1,
1026
- # target_group_arns: [
1027
- # "arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067",
1028
- # ],
1029
- # vpc_zone_identifier: "subnet-4176792c, subnet-65ea5f08",
1030
1048
  # })
1031
1049
  #
1032
1050
  # @example Request syntax with placeholder values
@@ -1689,7 +1707,7 @@ module Aws::AutoScaling
1689
1707
  #
1690
1708
  # resp = client.delete_policy({
1691
1709
  # auto_scaling_group_name: "my-auto-scaling-group",
1692
- # policy_name: "ScaleIn",
1710
+ # policy_name: "my-step-scale-out-policy",
1693
1711
  # })
1694
1712
  #
1695
1713
  # @example Request syntax with placeholder values
@@ -1858,7 +1876,7 @@ module Aws::AutoScaling
1858
1876
  # * {Types::DescribeAdjustmentTypesAnswer#adjustment_types #adjustment_types} => Array<Types::AdjustmentType>
1859
1877
  #
1860
1878
  #
1861
- # @example Example: To describe the Auto Scaling adjustment types
1879
+ # @example Example: To describe the Amazon EC2 Auto Scaling adjustment types
1862
1880
  #
1863
1881
  # # This example describes the available adjustment types.
1864
1882
  #
@@ -2234,6 +2252,38 @@ module Aws::AutoScaling
2234
2252
  # * {Types::DescribeInstanceRefreshesAnswer#instance_refreshes #instance_refreshes} => Array<Types::InstanceRefresh>
2235
2253
  # * {Types::DescribeInstanceRefreshesAnswer#next_token #next_token} => String
2236
2254
  #
2255
+ #
2256
+ # @example Example: To list instance refreshes
2257
+ #
2258
+ # # This example describes the instance refreshes for the specified Auto Scaling group.
2259
+ #
2260
+ # resp = client.describe_instance_refreshes({
2261
+ # auto_scaling_group_name: "my-auto-scaling-group",
2262
+ # })
2263
+ #
2264
+ # resp.to_h outputs the following:
2265
+ # {
2266
+ # instance_refreshes: [
2267
+ # {
2268
+ # auto_scaling_group_name: "my-auto-scaling-group",
2269
+ # instance_refresh_id: "08b91cf7-8fa6-48af-b6a6-d227f40f1b9b",
2270
+ # instances_to_update: 5,
2271
+ # percentage_complete: 0,
2272
+ # start_time: Time.parse("2020-06-02T18:11:27Z"),
2273
+ # status: "InProgress",
2274
+ # },
2275
+ # {
2276
+ # auto_scaling_group_name: "my-auto-scaling-group",
2277
+ # end_time: Time.parse("2020-06-02T16:53:37Z"),
2278
+ # instance_refresh_id: "dd7728d0-5bc4-4575-96a3-1b2c52bf8bb1",
2279
+ # instances_to_update: 0,
2280
+ # percentage_complete: 100,
2281
+ # start_time: Time.parse("2020-06-02T16:43:19Z"),
2282
+ # status: "Successful",
2283
+ # },
2284
+ # ],
2285
+ # }
2286
+ #
2237
2287
  # @example Request syntax with placeholder values
2238
2288
  #
2239
2289
  # resp = client.describe_instance_refreshes({
@@ -2782,7 +2832,7 @@ module Aws::AutoScaling
2782
2832
  # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2783
2833
  #
2784
2834
  #
2785
- # @example Example: To describe Auto Scaling policies
2835
+ # @example Example: To describe scaling policies
2786
2836
  #
2787
2837
  # # This example describes the policies for the specified Auto Scaling group.
2788
2838
  #
@@ -3687,7 +3737,8 @@ module Aws::AutoScaling
3687
3737
  req.send_request(options)
3688
3738
  end
3689
3739
 
3690
- # Executes the specified policy.
3740
+ # Executes the specified policy. This can be useful for testing the
3741
+ # design of your scaling policy.
3691
3742
  #
3692
3743
  # @option params [String] :auto_scaling_group_name
3693
3744
  # The name of the Auto Scaling group.
@@ -3699,11 +3750,9 @@ module Aws::AutoScaling
3699
3750
  # Indicates whether Amazon EC2 Auto Scaling waits for the cooldown
3700
3751
  # period to complete before executing the policy.
3701
3752
  #
3702
- # This parameter is not supported if the policy type is `StepScaling` or
3703
- # `TargetTrackingScaling`.
3704
- #
3705
- # For more information, see [Scaling Cooldowns for Amazon EC2 Auto
3706
- # Scaling][1] in the *Amazon EC2 Auto Scaling User Guide*.
3753
+ # Valid only if the policy type is `SimpleScaling`. For more
3754
+ # information, see [Scaling Cooldowns for Amazon EC2 Auto Scaling][1] in
3755
+ # the *Amazon EC2 Auto Scaling User Guide*.
3707
3756
  #
3708
3757
  #
3709
3758
  #
@@ -3731,14 +3780,15 @@ module Aws::AutoScaling
3731
3780
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
3732
3781
  #
3733
3782
  #
3734
- # @example Example: To execute an Auto Scaling policy
3783
+ # @example Example: To execute a scaling policy
3735
3784
  #
3736
- # # This example executes the specified Auto Scaling policy for the specified Auto Scaling group.
3785
+ # # This example executes the specified policy.
3737
3786
  #
3738
3787
  # resp = client.execute_policy({
3739
3788
  # auto_scaling_group_name: "my-auto-scaling-group",
3740
- # honor_cooldown: true,
3741
- # policy_name: "ScaleIn",
3789
+ # breach_threshold: 50.0,
3790
+ # metric_value: 59.0,
3791
+ # policy_name: "my-step-scale-out-policy",
3742
3792
  # })
3743
3793
  #
3744
3794
  # @example Request syntax with placeholder values
@@ -4201,15 +4251,31 @@ module Aws::AutoScaling
4201
4251
  # # This example adds the specified policy to the specified Auto Scaling group.
4202
4252
  #
4203
4253
  # resp = client.put_scaling_policy({
4204
- # adjustment_type: "ChangeInCapacity",
4205
4254
  # auto_scaling_group_name: "my-auto-scaling-group",
4206
- # policy_name: "ScaleIn",
4207
- # scaling_adjustment: -1,
4255
+ # policy_name: "alb1000-target-tracking-scaling-policy",
4256
+ # policy_type: "TargetTrackingScaling",
4257
+ # target_tracking_configuration: {
4258
+ # predefined_metric_specification: {
4259
+ # predefined_metric_type: "ALBRequestCountPerTarget",
4260
+ # resource_label: "app/EC2Co-EcsEl-1TKLTMITMM0EO/f37c06a68c1748aa/targetgroup/EC2Co-Defau-LDNM7Q3ZH1ZN/6d4ea56ca2d6a18d",
4261
+ # },
4262
+ # target_value: 1000.0,
4263
+ # },
4208
4264
  # })
4209
4265
  #
4210
4266
  # resp.to_h outputs the following:
4211
4267
  # {
4212
- # policy_arn: "arn:aws:autoscaling:us-west-2:123456789012:scalingPolicy:2233f3d7-6290-403b-b632-93c553560106:autoScalingGroupName/my-auto-scaling-group:policyName/ScaleIn",
4268
+ # alarms: [
4269
+ # {
4270
+ # alarm_arn: "arn:aws:cloudwatch:us-west-2:123456789012:alarm:TargetTracking-my-asg-AlarmHigh-fc0e4183-23ac-497e-9992-691c9980c38e",
4271
+ # alarm_name: "TargetTracking-my-asg-AlarmHigh-fc0e4183-23ac-497e-9992-691c9980c38e",
4272
+ # },
4273
+ # {
4274
+ # alarm_arn: "arn:aws:cloudwatch:us-west-2:123456789012:alarm:TargetTracking-my-asg-AlarmLow-61a39305-ed0c-47af-bd9e-471a352ee1a2",
4275
+ # alarm_name: "TargetTracking-my-asg-AlarmLow-61a39305-ed0c-47af-bd9e-471a352ee1a2",
4276
+ # },
4277
+ # ],
4278
+ # policy_arn: "arn:aws:autoscaling:us-west-2:123456789012:scalingPolicy:228f02c2-c665-4bfd-aaac-8b04080bea3c:autoScalingGroupName/my-auto-scaling-group:policyName/alb1000-target-tracking-scaling-policy",
4213
4279
  # }
4214
4280
  #
4215
4281
  # @example Request syntax with placeholder values
@@ -4752,6 +4818,24 @@ module Aws::AutoScaling
4752
4818
  #
4753
4819
  # * {Types::StartInstanceRefreshAnswer#instance_refresh_id #instance_refresh_id} => String
4754
4820
  #
4821
+ #
4822
+ # @example Example: To start an instance refresh
4823
+ #
4824
+ # # This example starts an instance refresh for the specified Auto Scaling group.
4825
+ #
4826
+ # resp = client.start_instance_refresh({
4827
+ # auto_scaling_group_name: "my-auto-scaling-group",
4828
+ # preferences: {
4829
+ # instance_warmup: 400,
4830
+ # min_healthy_percentage: 50,
4831
+ # },
4832
+ # })
4833
+ #
4834
+ # resp.to_h outputs the following:
4835
+ # {
4836
+ # instance_refresh_id: "08b91cf7-8fa6-48af-b6a6-d227f40f1b9b",
4837
+ # }
4838
+ #
4755
4839
  # @example Request syntax with placeholder values
4756
4840
  #
4757
4841
  # resp = client.start_instance_refresh({
@@ -5235,7 +5319,7 @@ module Aws::AutoScaling
5235
5319
  params: params,
5236
5320
  config: config)
5237
5321
  context[:gem_name] = 'aws-sdk-autoscaling'
5238
- context[:gem_version] = '1.41.0'
5322
+ context[:gem_version] = '1.42.0'
5239
5323
  Seahorse::Client::Request.new(handlers, context)
5240
5324
  end
5241
5325
 
@@ -308,11 +308,9 @@ module Aws::AutoScaling
308
308
  # Indicates whether Amazon EC2 Auto Scaling waits for the cooldown
309
309
  # period to complete before executing the policy.
310
310
  #
311
- # This parameter is not supported if the policy type is `StepScaling` or
312
- # `TargetTrackingScaling`.
313
- #
314
- # For more information, see [Scaling Cooldowns for Amazon EC2 Auto
315
- # Scaling][1] in the *Amazon EC2 Auto Scaling User Guide*.
311
+ # Valid only if the policy type is `SimpleScaling`. For more
312
+ # information, see [Scaling Cooldowns for Amazon EC2 Auto Scaling][1] in
313
+ # the *Amazon EC2 Auto Scaling User Guide*.
316
314
  #
317
315
  #
318
316
  #
@@ -2522,9 +2522,7 @@ module Aws::AutoScaling
2522
2522
  # @!attribute [rw] snapshot_id
2523
2523
  # The snapshot ID of the volume to use.
2524
2524
  #
2525
- # `SnapshotId` is optional if you specify a volume size. If you
2526
- # specify both `SnapshotId` and `VolumeSize`, the volume size must be
2527
- # equal or greater than the size of the snapshot.
2525
+ # You must specify either a `VolumeSize` or a `SnapshotId`.
2528
2526
  # @return [String]
2529
2527
  #
2530
2528
  # @!attribute [rw] volume_size
@@ -2538,9 +2536,9 @@ module Aws::AutoScaling
2538
2536
  # Default: If you create a volume from a snapshot and you don't
2539
2537
  # specify a volume size, the default is the snapshot size.
2540
2538
  #
2541
- # <note markdown="1"> At least one of `VolumeSize` or `SnapshotId` is required.
2542
- #
2543
- # </note>
2539
+ # You must specify either a `VolumeSize` or a `SnapshotId`. If you
2540
+ # specify both `SnapshotId` and `VolumeSize`, the volume size must be
2541
+ # equal or greater than the size of the snapshot.
2544
2542
  # @return [Integer]
2545
2543
  #
2546
2544
  # @!attribute [rw] volume_type
@@ -2802,11 +2800,9 @@ module Aws::AutoScaling
2802
2800
  # Indicates whether Amazon EC2 Auto Scaling waits for the cooldown
2803
2801
  # period to complete before executing the policy.
2804
2802
  #
2805
- # This parameter is not supported if the policy type is `StepScaling`
2806
- # or `TargetTrackingScaling`.
2807
- #
2808
- # For more information, see [Scaling Cooldowns for Amazon EC2 Auto
2809
- # Scaling][1] in the *Amazon EC2 Auto Scaling User Guide*.
2803
+ # Valid only if the policy type is `SimpleScaling`. For more
2804
+ # information, see [Scaling Cooldowns for Amazon EC2 Auto Scaling][1]
2805
+ # in the *Amazon EC2 Auto Scaling User Guide*.
2810
2806
  #
2811
2807
  #
2812
2808
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-autoscaling
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.41.0
4
+ version: 1.42.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: 2020-06-24 00:00:00.000000000 Z
11
+ date: 2020-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core