aws-sdk-autoscaling 1.56.0 → 1.57.0

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
  SHA256:
3
- metadata.gz: 46c85548580e329abe62b496bdeb6cb1bb54194c5581eb4a36cdf3a652c4bdbd
4
- data.tar.gz: 745daf44fa1822d80483fa6d512ee2e40ac4df70c9a2b20d44bb3fc467802825
3
+ metadata.gz: b41c8535a7c783fb158b6442fdac4a017720547065c96decfe2e592abcca146b
4
+ data.tar.gz: 9ce868cd22cabaaeb5d16b1ac447b76cd9cf6b1ce536d65f9c1730da1d32cc1a
5
5
  SHA512:
6
- metadata.gz: bced754e8b8a66c74d63fe3bb8edd9f4aadb7993ae218599b21b0b3d1eda31c9449d378c113b5faf4a6db55313138eb1c65484d4a55e6de04aea63fcbad119df
7
- data.tar.gz: ded6431f5f3d5cb22a42600ef6ee778be89bb2c16a54550983d36fd01e4f5384419cf76c94d0da9abae77ba67060bf741da3f902dae97f93f9ab980c9a69c067
6
+ metadata.gz: 6982c3d40b09bdeafa1bfc733b14711e18b458cd5ae90389b45ffb63e976475a97e1d5c236d7f2d1fcf2984ae0fa02320a46c781734e3a4ad05fbd962da9da1c
7
+ data.tar.gz: e49786eb12001df8a26523ecf9c6de2bef7557cf3ea3646bacba4c6c5b886a6f6abeee22c607a67e7a5b49eee0880c5d3c941a7426c6813856449f421f885731
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.57.0 (2021-03-09)
5
+ ------------------
6
+
7
+ * Feature - EC2 Auto Scaling now supports setting a local time zone for cron expressions in scheduled actions, removing the need to adjust for Daylight Saving Time (DST)
8
+
4
9
  1.56.0 (2021-03-08)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.56.0
1
+ 1.57.0
@@ -59,6 +59,6 @@ require_relative 'aws-sdk-autoscaling/customizations'
59
59
  # @!group service
60
60
  module Aws::AutoScaling
61
61
 
62
- GEM_VERSION = '1.56.0'
62
+ GEM_VERSION = '1.57.0'
63
63
 
64
64
  end
@@ -730,6 +730,7 @@ module Aws::AutoScaling
730
730
  # min_size: 1,
731
731
  # max_size: 1,
732
732
  # desired_capacity: 1,
733
+ # time_zone: "XmlStringMaxLen255",
733
734
  # })
734
735
  # @param [Hash] options ({})
735
736
  # @option options [required, String] :scheduled_action_name
@@ -748,18 +749,19 @@ module Aws::AutoScaling
748
749
  # If you try to schedule your action in the past, Amazon EC2 Auto
749
750
  # Scaling returns an error message.
750
751
  # @option options [Time,DateTime,Date,Integer,String] :end_time
751
- # The date and time for the recurring schedule to end. Amazon EC2 Auto
752
- # Scaling does not perform the action after this time.
752
+ # The date and time for the recurring schedule to end, in UTC.
753
753
  # @option options [String] :recurrence
754
- # The recurring schedule for this action, in Unix cron syntax format.
755
- # This format consists of five fields separated by white spaces:
756
- # \[Minute\] \[Hour\] \[Day\_of\_Month\] \[Month\_of\_Year\]
757
- # \[Day\_of\_Week\]. The value must be in quotes (for example, `"30 0 1
758
- # 1,6,12 *"`). For more information about this format, see [Crontab][1].
754
+ # The recurring schedule for this action. This format consists of five
755
+ # fields separated by white spaces: \[Minute\] \[Hour\]
756
+ # \[Day\_of\_Month\] \[Month\_of\_Year\] \[Day\_of\_Week\]. The value
757
+ # must be in quotes (for example, `"30 0 1 1,6,12 *"`). For more
758
+ # information about this format, see [Crontab][1].
759
759
  #
760
760
  # When `StartTime` and `EndTime` are specified with `Recurrence`, they
761
761
  # form the boundaries of when the recurring action starts and stops.
762
762
  #
763
+ # Cron expressions use Universal Coordinated Time (UTC) by default.
764
+ #
763
765
  #
764
766
  #
765
767
  # [1]: http://crontab.org
@@ -772,6 +774,18 @@ module Aws::AutoScaling
772
774
  # after the scheduled action runs and the capacity it attempts to
773
775
  # maintain. It can scale beyond this capacity if you add more scaling
774
776
  # conditions.
777
+ # @option options [String] :time_zone
778
+ # Specifies the time zone for a cron expression. If a time zone is not
779
+ # provided, UTC is used by default.
780
+ #
781
+ # Valid values are the canonical names of the IANA time zones, derived
782
+ # from the IANA Time Zone Database (such as `Etc/GMT+9` or
783
+ # `Pacific/Tahiti`). For more information, see
784
+ # [https://en.wikipedia.org/wiki/List\_of\_tz\_database\_time\_zones][1].
785
+ #
786
+ #
787
+ #
788
+ # [1]: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
775
789
  # @return [ScheduledAction]
776
790
  def put_scheduled_update_group_action(options = {})
777
791
  options = options.merge(auto_scaling_group_name: @name)
@@ -546,8 +546,7 @@ module Aws::AutoScaling
546
546
  end
547
547
 
548
548
  # Creates or updates one or more scheduled scaling actions for an Auto
549
- # Scaling group. If you leave a parameter unspecified when updating a
550
- # scheduled scaling action, the corresponding value remains unchanged.
549
+ # Scaling group.
551
550
  #
552
551
  # @option params [required, String] :auto_scaling_group_name
553
552
  # The name of the Auto Scaling group.
@@ -572,6 +571,7 @@ module Aws::AutoScaling
572
571
  # min_size: 1,
573
572
  # max_size: 1,
574
573
  # desired_capacity: 1,
574
+ # time_zone: "XmlStringMaxLen255",
575
575
  # },
576
576
  # ],
577
577
  # })
@@ -3216,6 +3216,7 @@ module Aws::AutoScaling
3216
3216
  # resp.scheduled_update_group_actions[0].min_size #=> Integer
3217
3217
  # resp.scheduled_update_group_actions[0].max_size #=> Integer
3218
3218
  # resp.scheduled_update_group_actions[0].desired_capacity #=> Integer
3219
+ # resp.scheduled_update_group_actions[0].time_zone #=> String
3219
3220
  # resp.next_token #=> String
3220
3221
  #
3221
3222
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScheduledActions AWS API Documentation
@@ -4411,8 +4412,7 @@ module Aws::AutoScaling
4411
4412
  end
4412
4413
 
4413
4414
  # Creates or updates a scheduled scaling action for an Auto Scaling
4414
- # group. If you leave a parameter unspecified when updating a scheduled
4415
- # scaling action, the corresponding value remains unchanged.
4415
+ # group.
4416
4416
  #
4417
4417
  # For more information, see [Scheduled scaling][1] in the *Amazon EC2
4418
4418
  # Auto Scaling User Guide*.
@@ -4443,19 +4443,20 @@ module Aws::AutoScaling
4443
4443
  # Scaling returns an error message.
4444
4444
  #
4445
4445
  # @option params [Time,DateTime,Date,Integer,String] :end_time
4446
- # The date and time for the recurring schedule to end. Amazon EC2 Auto
4447
- # Scaling does not perform the action after this time.
4446
+ # The date and time for the recurring schedule to end, in UTC.
4448
4447
  #
4449
4448
  # @option params [String] :recurrence
4450
- # The recurring schedule for this action, in Unix cron syntax format.
4451
- # This format consists of five fields separated by white spaces:
4452
- # \[Minute\] \[Hour\] \[Day\_of\_Month\] \[Month\_of\_Year\]
4453
- # \[Day\_of\_Week\]. The value must be in quotes (for example, `"30 0 1
4454
- # 1,6,12 *"`). For more information about this format, see [Crontab][1].
4449
+ # The recurring schedule for this action. This format consists of five
4450
+ # fields separated by white spaces: \[Minute\] \[Hour\]
4451
+ # \[Day\_of\_Month\] \[Month\_of\_Year\] \[Day\_of\_Week\]. The value
4452
+ # must be in quotes (for example, `"30 0 1 1,6,12 *"`). For more
4453
+ # information about this format, see [Crontab][1].
4455
4454
  #
4456
4455
  # When `StartTime` and `EndTime` are specified with `Recurrence`, they
4457
4456
  # form the boundaries of when the recurring action starts and stops.
4458
4457
  #
4458
+ # Cron expressions use Universal Coordinated Time (UTC) by default.
4459
+ #
4459
4460
  #
4460
4461
  #
4461
4462
  # [1]: http://crontab.org
@@ -4472,6 +4473,19 @@ module Aws::AutoScaling
4472
4473
  # maintain. It can scale beyond this capacity if you add more scaling
4473
4474
  # conditions.
4474
4475
  #
4476
+ # @option params [String] :time_zone
4477
+ # Specifies the time zone for a cron expression. If a time zone is not
4478
+ # provided, UTC is used by default.
4479
+ #
4480
+ # Valid values are the canonical names of the IANA time zones, derived
4481
+ # from the IANA Time Zone Database (such as `Etc/GMT+9` or
4482
+ # `Pacific/Tahiti`). For more information, see
4483
+ # [https://en.wikipedia.org/wiki/List\_of\_tz\_database\_time\_zones][1].
4484
+ #
4485
+ #
4486
+ #
4487
+ # [1]: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
4488
+ #
4475
4489
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
4476
4490
  #
4477
4491
  #
@@ -4501,6 +4515,7 @@ module Aws::AutoScaling
4501
4515
  # min_size: 1,
4502
4516
  # max_size: 1,
4503
4517
  # desired_capacity: 1,
4518
+ # time_zone: "XmlStringMaxLen255",
4504
4519
  # })
4505
4520
  #
4506
4521
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutScheduledUpdateGroupAction AWS API Documentation
@@ -5391,7 +5406,7 @@ module Aws::AutoScaling
5391
5406
  params: params,
5392
5407
  config: config)
5393
5408
  context[:gem_name] = 'aws-sdk-autoscaling'
5394
- context[:gem_version] = '1.56.0'
5409
+ context[:gem_version] = '1.57.0'
5395
5410
  Seahorse::Client::Request.new(handlers, context)
5396
5411
  end
5397
5412
 
@@ -941,6 +941,7 @@ module Aws::AutoScaling
941
941
  PutScheduledUpdateGroupActionType.add_member(:min_size, Shapes::ShapeRef.new(shape: AutoScalingGroupMinSize, location_name: "MinSize"))
942
942
  PutScheduledUpdateGroupActionType.add_member(:max_size, Shapes::ShapeRef.new(shape: AutoScalingGroupMaxSize, location_name: "MaxSize"))
943
943
  PutScheduledUpdateGroupActionType.add_member(:desired_capacity, Shapes::ShapeRef.new(shape: AutoScalingGroupDesiredCapacity, location_name: "DesiredCapacity"))
944
+ PutScheduledUpdateGroupActionType.add_member(:time_zone, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "TimeZone"))
944
945
  PutScheduledUpdateGroupActionType.struct_class = Types::PutScheduledUpdateGroupActionType
945
946
 
946
947
  RecordLifecycleActionHeartbeatAnswer.struct_class = Types::RecordLifecycleActionHeartbeatAnswer
@@ -1003,6 +1004,7 @@ module Aws::AutoScaling
1003
1004
  ScheduledUpdateGroupAction.add_member(:min_size, Shapes::ShapeRef.new(shape: AutoScalingGroupMinSize, location_name: "MinSize"))
1004
1005
  ScheduledUpdateGroupAction.add_member(:max_size, Shapes::ShapeRef.new(shape: AutoScalingGroupMaxSize, location_name: "MaxSize"))
1005
1006
  ScheduledUpdateGroupAction.add_member(:desired_capacity, Shapes::ShapeRef.new(shape: AutoScalingGroupDesiredCapacity, location_name: "DesiredCapacity"))
1007
+ ScheduledUpdateGroupAction.add_member(:time_zone, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "TimeZone"))
1006
1008
  ScheduledUpdateGroupAction.struct_class = Types::ScheduledUpdateGroupAction
1007
1009
 
1008
1010
  ScheduledUpdateGroupActionRequest.add_member(:scheduled_action_name, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, required: true, location_name: "ScheduledActionName"))
@@ -1012,6 +1014,7 @@ module Aws::AutoScaling
1012
1014
  ScheduledUpdateGroupActionRequest.add_member(:min_size, Shapes::ShapeRef.new(shape: AutoScalingGroupMinSize, location_name: "MinSize"))
1013
1015
  ScheduledUpdateGroupActionRequest.add_member(:max_size, Shapes::ShapeRef.new(shape: AutoScalingGroupMaxSize, location_name: "MaxSize"))
1014
1016
  ScheduledUpdateGroupActionRequest.add_member(:desired_capacity, Shapes::ShapeRef.new(shape: AutoScalingGroupDesiredCapacity, location_name: "DesiredCapacity"))
1017
+ ScheduledUpdateGroupActionRequest.add_member(:time_zone, Shapes::ShapeRef.new(shape: XmlStringMaxLen255, location_name: "TimeZone"))
1015
1018
  ScheduledUpdateGroupActionRequest.struct_class = Types::ScheduledUpdateGroupActionRequest
1016
1019
 
1017
1020
  ScheduledUpdateGroupActionRequests.member = Shapes::ShapeRef.new(shape: ScheduledUpdateGroupActionRequest)
@@ -96,6 +96,12 @@ module Aws::AutoScaling
96
96
  data[:desired_capacity]
97
97
  end
98
98
 
99
+ # The time zone for the cron expression.
100
+ # @return [String]
101
+ def time_zone
102
+ data[:time_zone]
103
+ end
104
+
99
105
  # @!endgroup
100
106
 
101
107
  # @return [Client]
@@ -651,6 +651,7 @@ module Aws::AutoScaling
651
651
  # min_size: 1,
652
652
  # max_size: 1,
653
653
  # desired_capacity: 1,
654
+ # time_zone: "XmlStringMaxLen255",
654
655
  # },
655
656
  # ],
656
657
  # }
@@ -4855,6 +4856,7 @@ module Aws::AutoScaling
4855
4856
  # min_size: 1,
4856
4857
  # max_size: 1,
4857
4858
  # desired_capacity: 1,
4859
+ # time_zone: "XmlStringMaxLen255",
4858
4860
  # }
4859
4861
  #
4860
4862
  # @!attribute [rw] auto_scaling_group_name
@@ -4883,21 +4885,21 @@ module Aws::AutoScaling
4883
4885
  # @return [Time]
4884
4886
  #
4885
4887
  # @!attribute [rw] end_time
4886
- # The date and time for the recurring schedule to end. Amazon EC2 Auto
4887
- # Scaling does not perform the action after this time.
4888
+ # The date and time for the recurring schedule to end, in UTC.
4888
4889
  # @return [Time]
4889
4890
  #
4890
4891
  # @!attribute [rw] recurrence
4891
- # The recurring schedule for this action, in Unix cron syntax format.
4892
- # This format consists of five fields separated by white spaces:
4893
- # \[Minute\] \[Hour\] \[Day\_of\_Month\] \[Month\_of\_Year\]
4894
- # \[Day\_of\_Week\]. The value must be in quotes (for example, `"30 0
4895
- # 1 1,6,12 *"`). For more information about this format, see
4896
- # [Crontab][1].
4892
+ # The recurring schedule for this action. This format consists of five
4893
+ # fields separated by white spaces: \[Minute\] \[Hour\]
4894
+ # \[Day\_of\_Month\] \[Month\_of\_Year\] \[Day\_of\_Week\]. The value
4895
+ # must be in quotes (for example, `"30 0 1 1,6,12 *"`). For more
4896
+ # information about this format, see [Crontab][1].
4897
4897
  #
4898
4898
  # When `StartTime` and `EndTime` are specified with `Recurrence`, they
4899
4899
  # form the boundaries of when the recurring action starts and stops.
4900
4900
  #
4901
+ # Cron expressions use Universal Coordinated Time (UTC) by default.
4902
+ #
4901
4903
  #
4902
4904
  #
4903
4905
  # [1]: http://crontab.org
@@ -4918,6 +4920,20 @@ module Aws::AutoScaling
4918
4920
  # scaling conditions.
4919
4921
  # @return [Integer]
4920
4922
  #
4923
+ # @!attribute [rw] time_zone
4924
+ # Specifies the time zone for a cron expression. If a time zone is not
4925
+ # provided, UTC is used by default.
4926
+ #
4927
+ # Valid values are the canonical names of the IANA time zones, derived
4928
+ # from the IANA Time Zone Database (such as `Etc/GMT+9` or
4929
+ # `Pacific/Tahiti`). For more information, see
4930
+ # [https://en.wikipedia.org/wiki/List\_of\_tz\_database\_time\_zones][1].
4931
+ #
4932
+ #
4933
+ #
4934
+ # [1]: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
4935
+ # @return [String]
4936
+ #
4921
4937
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutScheduledUpdateGroupActionType AWS API Documentation
4922
4938
  #
4923
4939
  class PutScheduledUpdateGroupActionType < Struct.new(
@@ -4929,7 +4945,8 @@ module Aws::AutoScaling
4929
4945
  :recurrence,
4930
4946
  :min_size,
4931
4947
  :max_size,
4932
- :desired_capacity)
4948
+ :desired_capacity,
4949
+ :time_zone)
4933
4950
  SENSITIVE = []
4934
4951
  include Aws::Structure
4935
4952
  end
@@ -5278,6 +5295,10 @@ module Aws::AutoScaling
5278
5295
  # to maintain.
5279
5296
  # @return [Integer]
5280
5297
  #
5298
+ # @!attribute [rw] time_zone
5299
+ # The time zone for the cron expression.
5300
+ # @return [String]
5301
+ #
5281
5302
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ScheduledUpdateGroupAction AWS API Documentation
5282
5303
  #
5283
5304
  class ScheduledUpdateGroupAction < Struct.new(
@@ -5290,7 +5311,8 @@ module Aws::AutoScaling
5290
5311
  :recurrence,
5291
5312
  :min_size,
5292
5313
  :max_size,
5293
- :desired_capacity)
5314
+ :desired_capacity,
5315
+ :time_zone)
5294
5316
  SENSITIVE = []
5295
5317
  include Aws::Structure
5296
5318
  end
@@ -5298,9 +5320,6 @@ module Aws::AutoScaling
5298
5320
  # Describes information used for one or more scheduled scaling action
5299
5321
  # updates in a BatchPutScheduledUpdateGroupAction operation.
5300
5322
  #
5301
- # When updating a scheduled scaling action, all optional parameters are
5302
- # left unchanged if not specified.
5303
- #
5304
5323
  # @note When making an API call, you may pass ScheduledUpdateGroupActionRequest
5305
5324
  # data as a hash:
5306
5325
  #
@@ -5312,6 +5331,7 @@ module Aws::AutoScaling
5312
5331
  # min_size: 1,
5313
5332
  # max_size: 1,
5314
5333
  # desired_capacity: 1,
5334
+ # time_zone: "XmlStringMaxLen255",
5315
5335
  # }
5316
5336
  #
5317
5337
  # @!attribute [rw] scheduled_action_name
@@ -5332,8 +5352,7 @@ module Aws::AutoScaling
5332
5352
  # @return [Time]
5333
5353
  #
5334
5354
  # @!attribute [rw] end_time
5335
- # The date and time for the recurring schedule to end. Amazon EC2 Auto
5336
- # Scaling does not perform the action after this time.
5355
+ # The date and time for the recurring schedule to end, in UTC.
5337
5356
  # @return [Time]
5338
5357
  #
5339
5358
  # @!attribute [rw] recurrence
@@ -5347,6 +5366,8 @@ module Aws::AutoScaling
5347
5366
  # When `StartTime` and `EndTime` are specified with `Recurrence`, they
5348
5367
  # form the boundaries of when the recurring action starts and stops.
5349
5368
  #
5369
+ # Cron expressions use Universal Coordinated Time (UTC) by default.
5370
+ #
5350
5371
  #
5351
5372
  #
5352
5373
  # [1]: http://crontab.org
@@ -5366,6 +5387,20 @@ module Aws::AutoScaling
5366
5387
  # to maintain.
5367
5388
  # @return [Integer]
5368
5389
  #
5390
+ # @!attribute [rw] time_zone
5391
+ # Specifies the time zone for a cron expression. If a time zone is not
5392
+ # provided, UTC is used by default.
5393
+ #
5394
+ # Valid values are the canonical names of the IANA time zones, derived
5395
+ # from the IANA Time Zone Database (such as `Etc/GMT+9` or
5396
+ # `Pacific/Tahiti`). For more information, see
5397
+ # [https://en.wikipedia.org/wiki/List\_of\_tz\_database\_time\_zones][1].
5398
+ #
5399
+ #
5400
+ #
5401
+ # [1]: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
5402
+ # @return [String]
5403
+ #
5369
5404
  # @see http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ScheduledUpdateGroupActionRequest AWS API Documentation
5370
5405
  #
5371
5406
  class ScheduledUpdateGroupActionRequest < Struct.new(
@@ -5375,7 +5410,8 @@ module Aws::AutoScaling
5375
5410
  :recurrence,
5376
5411
  :min_size,
5377
5412
  :max_size,
5378
- :desired_capacity)
5413
+ :desired_capacity,
5414
+ :time_zone)
5379
5415
  SENSITIVE = []
5380
5416
  include Aws::Structure
5381
5417
  end
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.56.0
4
+ version: 1.57.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: 2021-03-08 00:00:00.000000000 Z
11
+ date: 2021-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core