aws-sdk-applicationautoscaling 1.0.0.rc5 → 1.0.0.rc6

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: 4a96176d53f5a0bbe41213f73241b6424b6fd842
4
- data.tar.gz: f3b1f848879caccbd5451fc0c3aa6ddf6a938087
3
+ metadata.gz: e9ed8612537632a0134077479f72ab7d88caca65
4
+ data.tar.gz: 78bbbacb25e4594e7c842360352f04eed727d491
5
5
  SHA512:
6
- metadata.gz: 5e1a714fbbe900a16f9ccad2f15e112cbf7b8b0f66a9c2ee14bc4b751c95c012d14df7b5e7381c83877f9a0019eb445b5e3244483e0de6db39e6488c432c62f7
7
- data.tar.gz: 6a6d1afe254624fd0a47b260f5e71bef963af5ab1cf567765a2416695036d786ce3e2c91758f6103f7e9e14af31aee93754545f8679292022d20b04e66e9faad
6
+ metadata.gz: d7008a2395ec5712ea6fe6aec097e01a74e7c8d79737ef97b792b8e208e478cbde10b2be2b39feef090275bcbe19128a676b3d52869bf14bd84aa156ae37cf38
7
+ data.tar.gz: e588ec5858e3289b89ec4417913dad0f69ad1ed34384354415a49afe8e00bf8d33e3c1cfa388c5177dbcdd0cae6da59c0d7e19646cd6f4d51dd6bfe8b4e7748f
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-applicationautoscaling/customizations'
42
42
  # @service
43
43
  module Aws::ApplicationAutoScaling
44
44
 
45
- GEM_VERSION = '1.0.0.rc5'
45
+ GEM_VERSION = '1.0.0.rc6'
46
46
 
47
47
  end
@@ -194,6 +194,13 @@ module Aws::ApplicationAutoScaling
194
194
  # * AppStream 2.0 fleet - The resource type is `fleet` and the unique
195
195
  # identifier is the fleet name. Example: `fleet/sample-fleet`.
196
196
  #
197
+ # * DynamoDB table - The resource type is `table` and the unique
198
+ # identifier is the resource ID. Example: `table/my-table`.
199
+ #
200
+ # * DynamoDB global secondary index - The resource type is `index` and
201
+ # the unique identifier is the resource ID. Example:
202
+ # `table/my-table/index/my-table-index`.
203
+ #
197
204
  # @option params [required, String] :scalable_dimension
198
205
  # The scalable dimension. This string consists of the service namespace,
199
206
  # resource type, and scaling property.
@@ -210,15 +217,27 @@ module Aws::ApplicationAutoScaling
210
217
  # * `appstream:fleet:DesiredCapacity` - The desired capacity of an
211
218
  # AppStream 2.0 fleet.
212
219
  #
220
+ # * `dynamodb:table:ReadCapacityUnits` - The provisioned read capacity
221
+ # for a DynamoDB table.
222
+ #
223
+ # * `dynamodb:table:WriteCapacityUnits` - The provisioned write capacity
224
+ # for a DynamoDB table.
225
+ #
226
+ # * `dynamodb:index:ReadCapacityUnits` - The provisioned read capacity
227
+ # for a DynamoDB global secondary index.
228
+ #
229
+ # * `dynamodb:index:WriteCapacityUnits` - The provisioned write capacity
230
+ # for a DynamoDB global secondary index.
231
+ #
213
232
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
214
233
  #
215
234
  # @example Request syntax with placeholder values
216
235
  #
217
236
  # resp = client.delete_scaling_policy({
218
237
  # policy_name: "ResourceIdMaxLen1600", # required
219
- # service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream
238
+ # service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb
220
239
  # resource_id: "ResourceIdMaxLen1600", # required
221
- # scalable_dimension: "ecs:service:DesiredCount", # required, accepts ecs:service:DesiredCount, ec2:spot-fleet-request:TargetCapacity, elasticmapreduce:instancegroup:InstanceCount, appstream:fleet:DesiredCapacity
240
+ # scalable_dimension: "ecs:service:DesiredCount", # required, accepts ecs:service:DesiredCount, ec2:spot-fleet-request:TargetCapacity, elasticmapreduce:instancegroup:InstanceCount, appstream:fleet:DesiredCapacity, dynamodb:table:ReadCapacityUnits, dynamodb:table:WriteCapacityUnits, dynamodb:index:ReadCapacityUnits, dynamodb:index:WriteCapacityUnits
222
241
  # })
223
242
  #
224
243
  # @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeleteScalingPolicy AWS API Documentation
@@ -265,6 +284,13 @@ module Aws::ApplicationAutoScaling
265
284
  # * AppStream 2.0 fleet - The resource type is `fleet` and the unique
266
285
  # identifier is the fleet name. Example: `fleet/sample-fleet`.
267
286
  #
287
+ # * DynamoDB table - The resource type is `table` and the unique
288
+ # identifier is the resource ID. Example: `table/my-table`.
289
+ #
290
+ # * DynamoDB global secondary index - The resource type is `index` and
291
+ # the unique identifier is the resource ID. Example:
292
+ # `table/my-table/index/my-table-index`.
293
+ #
268
294
  # @option params [required, String] :scalable_dimension
269
295
  # The scalable dimension associated with the scalable target. This
270
296
  # string consists of the service namespace, resource type, and scaling
@@ -282,14 +308,26 @@ module Aws::ApplicationAutoScaling
282
308
  # * `appstream:fleet:DesiredCapacity` - The desired capacity of an
283
309
  # AppStream 2.0 fleet.
284
310
  #
311
+ # * `dynamodb:table:ReadCapacityUnits` - The provisioned read capacity
312
+ # for a DynamoDB table.
313
+ #
314
+ # * `dynamodb:table:WriteCapacityUnits` - The provisioned write capacity
315
+ # for a DynamoDB table.
316
+ #
317
+ # * `dynamodb:index:ReadCapacityUnits` - The provisioned read capacity
318
+ # for a DynamoDB global secondary index.
319
+ #
320
+ # * `dynamodb:index:WriteCapacityUnits` - The provisioned write capacity
321
+ # for a DynamoDB global secondary index.
322
+ #
285
323
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
286
324
  #
287
325
  # @example Request syntax with placeholder values
288
326
  #
289
327
  # resp = client.deregister_scalable_target({
290
- # service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream
328
+ # service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb
291
329
  # resource_id: "ResourceIdMaxLen1600", # required
292
- # scalable_dimension: "ecs:service:DesiredCount", # required, accepts ecs:service:DesiredCount, ec2:spot-fleet-request:TargetCapacity, elasticmapreduce:instancegroup:InstanceCount, appstream:fleet:DesiredCapacity
330
+ # scalable_dimension: "ecs:service:DesiredCount", # required, accepts ecs:service:DesiredCount, ec2:spot-fleet-request:TargetCapacity, elasticmapreduce:instancegroup:InstanceCount, appstream:fleet:DesiredCapacity, dynamodb:table:ReadCapacityUnits, dynamodb:table:WriteCapacityUnits, dynamodb:index:ReadCapacityUnits, dynamodb:index:WriteCapacityUnits
293
331
  # })
294
332
  #
295
333
  # @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeregisterScalableTarget AWS API Documentation
@@ -339,6 +377,13 @@ module Aws::ApplicationAutoScaling
339
377
  # * AppStream 2.0 fleet - The resource type is `fleet` and the unique
340
378
  # identifier is the fleet name. Example: `fleet/sample-fleet`.
341
379
  #
380
+ # * DynamoDB table - The resource type is `table` and the unique
381
+ # identifier is the resource ID. Example: `table/my-table`.
382
+ #
383
+ # * DynamoDB global secondary index - The resource type is `index` and
384
+ # the unique identifier is the resource ID. Example:
385
+ # `table/my-table/index/my-table-index`.
386
+ #
342
387
  # @option params [String] :scalable_dimension
343
388
  # The scalable dimension associated with the scalable target. This
344
389
  # string consists of the service namespace, resource type, and scaling
@@ -357,6 +402,18 @@ module Aws::ApplicationAutoScaling
357
402
  # * `appstream:fleet:DesiredCapacity` - The desired capacity of an
358
403
  # AppStream 2.0 fleet.
359
404
  #
405
+ # * `dynamodb:table:ReadCapacityUnits` - The provisioned read capacity
406
+ # for a DynamoDB table.
407
+ #
408
+ # * `dynamodb:table:WriteCapacityUnits` - The provisioned write capacity
409
+ # for a DynamoDB table.
410
+ #
411
+ # * `dynamodb:index:ReadCapacityUnits` - The provisioned read capacity
412
+ # for a DynamoDB global secondary index.
413
+ #
414
+ # * `dynamodb:index:WriteCapacityUnits` - The provisioned write capacity
415
+ # for a DynamoDB global secondary index.
416
+ #
360
417
  # @option params [Integer] :max_results
361
418
  # The maximum number of scalable target results. This value can be
362
419
  # between 1 and 50. The default value is 50.
@@ -378,9 +435,9 @@ module Aws::ApplicationAutoScaling
378
435
  # @example Request syntax with placeholder values
379
436
  #
380
437
  # resp = client.describe_scalable_targets({
381
- # service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream
438
+ # service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb
382
439
  # resource_ids: ["ResourceIdMaxLen1600"],
383
- # scalable_dimension: "ecs:service:DesiredCount", # accepts ecs:service:DesiredCount, ec2:spot-fleet-request:TargetCapacity, elasticmapreduce:instancegroup:InstanceCount, appstream:fleet:DesiredCapacity
440
+ # scalable_dimension: "ecs:service:DesiredCount", # accepts ecs:service:DesiredCount, ec2:spot-fleet-request:TargetCapacity, elasticmapreduce:instancegroup:InstanceCount, appstream:fleet:DesiredCapacity, dynamodb:table:ReadCapacityUnits, dynamodb:table:WriteCapacityUnits, dynamodb:index:ReadCapacityUnits, dynamodb:index:WriteCapacityUnits
384
441
  # max_results: 1,
385
442
  # next_token: "XmlString",
386
443
  # })
@@ -388,9 +445,9 @@ module Aws::ApplicationAutoScaling
388
445
  # @example Response structure
389
446
  #
390
447
  # resp.scalable_targets #=> Array
391
- # resp.scalable_targets[0].service_namespace #=> String, one of "ecs", "elasticmapreduce", "ec2", "appstream"
448
+ # resp.scalable_targets[0].service_namespace #=> String, one of "ecs", "elasticmapreduce", "ec2", "appstream", "dynamodb"
392
449
  # resp.scalable_targets[0].resource_id #=> String
393
- # resp.scalable_targets[0].scalable_dimension #=> String, one of "ecs:service:DesiredCount", "ec2:spot-fleet-request:TargetCapacity", "elasticmapreduce:instancegroup:InstanceCount", "appstream:fleet:DesiredCapacity"
450
+ # resp.scalable_targets[0].scalable_dimension #=> String, one of "ecs:service:DesiredCount", "ec2:spot-fleet-request:TargetCapacity", "elasticmapreduce:instancegroup:InstanceCount", "appstream:fleet:DesiredCapacity", "dynamodb:table:ReadCapacityUnits", "dynamodb:table:WriteCapacityUnits", "dynamodb:index:ReadCapacityUnits", "dynamodb:index:WriteCapacityUnits"
394
451
  # resp.scalable_targets[0].min_capacity #=> Integer
395
452
  # resp.scalable_targets[0].max_capacity #=> Integer
396
453
  # resp.scalable_targets[0].role_arn #=> String
@@ -445,6 +502,13 @@ module Aws::ApplicationAutoScaling
445
502
  # * AppStream 2.0 fleet - The resource type is `fleet` and the unique
446
503
  # identifier is the fleet name. Example: `fleet/sample-fleet`.
447
504
  #
505
+ # * DynamoDB table - The resource type is `table` and the unique
506
+ # identifier is the resource ID. Example: `table/my-table`.
507
+ #
508
+ # * DynamoDB global secondary index - The resource type is `index` and
509
+ # the unique identifier is the resource ID. Example:
510
+ # `table/my-table/index/my-table-index`.
511
+ #
448
512
  # @option params [String] :scalable_dimension
449
513
  # The scalable dimension. This string consists of the service namespace,
450
514
  # resource type, and scaling property. If you specify a scalable
@@ -462,6 +526,18 @@ module Aws::ApplicationAutoScaling
462
526
  # * `appstream:fleet:DesiredCapacity` - The desired capacity of an
463
527
  # AppStream 2.0 fleet.
464
528
  #
529
+ # * `dynamodb:table:ReadCapacityUnits` - The provisioned read capacity
530
+ # for a DynamoDB table.
531
+ #
532
+ # * `dynamodb:table:WriteCapacityUnits` - The provisioned write capacity
533
+ # for a DynamoDB table.
534
+ #
535
+ # * `dynamodb:index:ReadCapacityUnits` - The provisioned read capacity
536
+ # for a DynamoDB global secondary index.
537
+ #
538
+ # * `dynamodb:index:WriteCapacityUnits` - The provisioned write capacity
539
+ # for a DynamoDB global secondary index.
540
+ #
465
541
  # @option params [Integer] :max_results
466
542
  # The maximum number of scalable target results. This value can be
467
543
  # between 1 and 50. The default value is 50.
@@ -483,9 +559,9 @@ module Aws::ApplicationAutoScaling
483
559
  # @example Request syntax with placeholder values
484
560
  #
485
561
  # resp = client.describe_scaling_activities({
486
- # service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream
562
+ # service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb
487
563
  # resource_id: "ResourceIdMaxLen1600",
488
- # scalable_dimension: "ecs:service:DesiredCount", # accepts ecs:service:DesiredCount, ec2:spot-fleet-request:TargetCapacity, elasticmapreduce:instancegroup:InstanceCount, appstream:fleet:DesiredCapacity
564
+ # scalable_dimension: "ecs:service:DesiredCount", # accepts ecs:service:DesiredCount, ec2:spot-fleet-request:TargetCapacity, elasticmapreduce:instancegroup:InstanceCount, appstream:fleet:DesiredCapacity, dynamodb:table:ReadCapacityUnits, dynamodb:table:WriteCapacityUnits, dynamodb:index:ReadCapacityUnits, dynamodb:index:WriteCapacityUnits
489
565
  # max_results: 1,
490
566
  # next_token: "XmlString",
491
567
  # })
@@ -494,9 +570,9 @@ module Aws::ApplicationAutoScaling
494
570
  #
495
571
  # resp.scaling_activities #=> Array
496
572
  # resp.scaling_activities[0].activity_id #=> String
497
- # resp.scaling_activities[0].service_namespace #=> String, one of "ecs", "elasticmapreduce", "ec2", "appstream"
573
+ # resp.scaling_activities[0].service_namespace #=> String, one of "ecs", "elasticmapreduce", "ec2", "appstream", "dynamodb"
498
574
  # resp.scaling_activities[0].resource_id #=> String
499
- # resp.scaling_activities[0].scalable_dimension #=> String, one of "ecs:service:DesiredCount", "ec2:spot-fleet-request:TargetCapacity", "elasticmapreduce:instancegroup:InstanceCount", "appstream:fleet:DesiredCapacity"
575
+ # resp.scaling_activities[0].scalable_dimension #=> String, one of "ecs:service:DesiredCount", "ec2:spot-fleet-request:TargetCapacity", "elasticmapreduce:instancegroup:InstanceCount", "appstream:fleet:DesiredCapacity", "dynamodb:table:ReadCapacityUnits", "dynamodb:table:WriteCapacityUnits", "dynamodb:index:ReadCapacityUnits", "dynamodb:index:WriteCapacityUnits"
500
576
  # resp.scaling_activities[0].description #=> String
501
577
  # resp.scaling_activities[0].cause #=> String
502
578
  # resp.scaling_activities[0].start_time #=> Time
@@ -556,6 +632,13 @@ module Aws::ApplicationAutoScaling
556
632
  # * AppStream 2.0 fleet - The resource type is `fleet` and the unique
557
633
  # identifier is the fleet name. Example: `fleet/sample-fleet`.
558
634
  #
635
+ # * DynamoDB table - The resource type is `table` and the unique
636
+ # identifier is the resource ID. Example: `table/my-table`.
637
+ #
638
+ # * DynamoDB global secondary index - The resource type is `index` and
639
+ # the unique identifier is the resource ID. Example:
640
+ # `table/my-table/index/my-table-index`.
641
+ #
559
642
  # @option params [String] :scalable_dimension
560
643
  # The scalable dimension. This string consists of the service namespace,
561
644
  # resource type, and scaling property. If you specify a scalable
@@ -573,6 +656,18 @@ module Aws::ApplicationAutoScaling
573
656
  # * `appstream:fleet:DesiredCapacity` - The desired capacity of an
574
657
  # AppStream 2.0 fleet.
575
658
  #
659
+ # * `dynamodb:table:ReadCapacityUnits` - The provisioned read capacity
660
+ # for a DynamoDB table.
661
+ #
662
+ # * `dynamodb:table:WriteCapacityUnits` - The provisioned write capacity
663
+ # for a DynamoDB table.
664
+ #
665
+ # * `dynamodb:index:ReadCapacityUnits` - The provisioned read capacity
666
+ # for a DynamoDB global secondary index.
667
+ #
668
+ # * `dynamodb:index:WriteCapacityUnits` - The provisioned write capacity
669
+ # for a DynamoDB global secondary index.
670
+ #
576
671
  # @option params [Integer] :max_results
577
672
  # The maximum number of scalable target results. This value can be
578
673
  # between 1 and 50. The default value is 50.
@@ -595,9 +690,9 @@ module Aws::ApplicationAutoScaling
595
690
  #
596
691
  # resp = client.describe_scaling_policies({
597
692
  # policy_names: ["ResourceIdMaxLen1600"],
598
- # service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream
693
+ # service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb
599
694
  # resource_id: "ResourceIdMaxLen1600",
600
- # scalable_dimension: "ecs:service:DesiredCount", # accepts ecs:service:DesiredCount, ec2:spot-fleet-request:TargetCapacity, elasticmapreduce:instancegroup:InstanceCount, appstream:fleet:DesiredCapacity
695
+ # scalable_dimension: "ecs:service:DesiredCount", # accepts ecs:service:DesiredCount, ec2:spot-fleet-request:TargetCapacity, elasticmapreduce:instancegroup:InstanceCount, appstream:fleet:DesiredCapacity, dynamodb:table:ReadCapacityUnits, dynamodb:table:WriteCapacityUnits, dynamodb:index:ReadCapacityUnits, dynamodb:index:WriteCapacityUnits
601
696
  # max_results: 1,
602
697
  # next_token: "XmlString",
603
698
  # })
@@ -607,10 +702,10 @@ module Aws::ApplicationAutoScaling
607
702
  # resp.scaling_policies #=> Array
608
703
  # resp.scaling_policies[0].policy_arn #=> String
609
704
  # resp.scaling_policies[0].policy_name #=> String
610
- # resp.scaling_policies[0].service_namespace #=> String, one of "ecs", "elasticmapreduce", "ec2", "appstream"
705
+ # resp.scaling_policies[0].service_namespace #=> String, one of "ecs", "elasticmapreduce", "ec2", "appstream", "dynamodb"
611
706
  # resp.scaling_policies[0].resource_id #=> String
612
- # resp.scaling_policies[0].scalable_dimension #=> String, one of "ecs:service:DesiredCount", "ec2:spot-fleet-request:TargetCapacity", "elasticmapreduce:instancegroup:InstanceCount", "appstream:fleet:DesiredCapacity"
613
- # resp.scaling_policies[0].policy_type #=> String, one of "StepScaling"
707
+ # resp.scaling_policies[0].scalable_dimension #=> String, one of "ecs:service:DesiredCount", "ec2:spot-fleet-request:TargetCapacity", "elasticmapreduce:instancegroup:InstanceCount", "appstream:fleet:DesiredCapacity", "dynamodb:table:ReadCapacityUnits", "dynamodb:table:WriteCapacityUnits", "dynamodb:index:ReadCapacityUnits", "dynamodb:index:WriteCapacityUnits"
708
+ # resp.scaling_policies[0].policy_type #=> String, one of "StepScaling", "TargetTrackingScaling"
614
709
  # resp.scaling_policies[0].step_scaling_policy_configuration.adjustment_type #=> String, one of "ChangeInCapacity", "PercentChangeInCapacity", "ExactCapacity"
615
710
  # resp.scaling_policies[0].step_scaling_policy_configuration.step_adjustments #=> Array
616
711
  # resp.scaling_policies[0].step_scaling_policy_configuration.step_adjustments[0].metric_interval_lower_bound #=> Float
@@ -619,6 +714,18 @@ module Aws::ApplicationAutoScaling
619
714
  # resp.scaling_policies[0].step_scaling_policy_configuration.min_adjustment_magnitude #=> Integer
620
715
  # resp.scaling_policies[0].step_scaling_policy_configuration.cooldown #=> Integer
621
716
  # resp.scaling_policies[0].step_scaling_policy_configuration.metric_aggregation_type #=> String, one of "Average", "Minimum", "Maximum"
717
+ # resp.scaling_policies[0].target_tracking_scaling_policy_configuration.target_value #=> Float
718
+ # resp.scaling_policies[0].target_tracking_scaling_policy_configuration.predefined_metric_specification.predefined_metric_type #=> String, one of "DynamoDBReadCapacityUtilization", "DynamoDBWriteCapacityUtilization"
719
+ # resp.scaling_policies[0].target_tracking_scaling_policy_configuration.predefined_metric_specification.resource_label #=> String
720
+ # resp.scaling_policies[0].target_tracking_scaling_policy_configuration.customized_metric_specification.metric_name #=> String
721
+ # resp.scaling_policies[0].target_tracking_scaling_policy_configuration.customized_metric_specification.namespace #=> String
722
+ # resp.scaling_policies[0].target_tracking_scaling_policy_configuration.customized_metric_specification.dimensions #=> Array
723
+ # resp.scaling_policies[0].target_tracking_scaling_policy_configuration.customized_metric_specification.dimensions[0].name #=> String
724
+ # resp.scaling_policies[0].target_tracking_scaling_policy_configuration.customized_metric_specification.dimensions[0].value #=> String
725
+ # resp.scaling_policies[0].target_tracking_scaling_policy_configuration.customized_metric_specification.statistic #=> String, one of "Average", "Minimum", "Maximum", "SampleCount", "Sum"
726
+ # resp.scaling_policies[0].target_tracking_scaling_policy_configuration.customized_metric_specification.unit #=> String
727
+ # resp.scaling_policies[0].target_tracking_scaling_policy_configuration.scale_out_cooldown #=> Integer
728
+ # resp.scaling_policies[0].target_tracking_scaling_policy_configuration.scale_in_cooldown #=> Integer
622
729
  # resp.scaling_policies[0].alarms #=> Array
623
730
  # resp.scaling_policies[0].alarms[0].alarm_name #=> String
624
731
  # resp.scaling_policies[0].alarms[0].alarm_arn #=> String
@@ -681,6 +788,13 @@ module Aws::ApplicationAutoScaling
681
788
  # * AppStream 2.0 fleet - The resource type is `fleet` and the unique
682
789
  # identifier is the fleet name. Example: `fleet/sample-fleet`.
683
790
  #
791
+ # * DynamoDB table - The resource type is `table` and the unique
792
+ # identifier is the resource ID. Example: `table/my-table`.
793
+ #
794
+ # * DynamoDB global secondary index - The resource type is `index` and
795
+ # the unique identifier is the resource ID. Example:
796
+ # `table/my-table/index/my-table-index`.
797
+ #
684
798
  # @option params [required, String] :scalable_dimension
685
799
  # The scalable dimension. This string consists of the service namespace,
686
800
  # resource type, and scaling property.
@@ -697,29 +811,51 @@ module Aws::ApplicationAutoScaling
697
811
  # * `appstream:fleet:DesiredCapacity` - The desired capacity of an
698
812
  # AppStream 2.0 fleet.
699
813
  #
814
+ # * `dynamodb:table:ReadCapacityUnits` - The provisioned read capacity
815
+ # for a DynamoDB table.
816
+ #
817
+ # * `dynamodb:table:WriteCapacityUnits` - The provisioned write capacity
818
+ # for a DynamoDB table.
819
+ #
820
+ # * `dynamodb:index:ReadCapacityUnits` - The provisioned read capacity
821
+ # for a DynamoDB global secondary index.
822
+ #
823
+ # * `dynamodb:index:WriteCapacityUnits` - The provisioned write capacity
824
+ # for a DynamoDB global secondary index.
825
+ #
700
826
  # @option params [String] :policy_type
701
827
  # The policy type. If you are creating a new policy, this parameter is
702
828
  # required. If you are updating a policy, this parameter is not
703
829
  # required.
704
830
  #
831
+ # For DynamoDB, only `TargetTrackingScaling` is supported. For any other
832
+ # service, only `StepScaling` is supported.
833
+ #
705
834
  # @option params [Types::StepScalingPolicyConfiguration] :step_scaling_policy_configuration
706
- # The configuration for the step scaling policy. If you are creating a
707
- # new policy, this parameter is required. If you are updating a policy,
708
- # this parameter is not required. For more information, see
709
- # StepScalingPolicyConfiguration and StepAdjustment.
835
+ # A step scaling policy.
836
+ #
837
+ # This parameter is required if you are creating a policy and the policy
838
+ # type is `StepScaling`.
839
+ #
840
+ # @option params [Types::TargetTrackingScalingPolicyConfiguration] :target_tracking_scaling_policy_configuration
841
+ # A target tracking policy.
842
+ #
843
+ # This parameter is required if you are creating a new policy and the
844
+ # policy type is `TargetTrackingScaling`.
710
845
  #
711
846
  # @return [Types::PutScalingPolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
712
847
  #
713
848
  # * {Types::PutScalingPolicyResponse#policy_arn #policy_arn} => String
849
+ # * {Types::PutScalingPolicyResponse#alarms #alarms} => Array<Types::Alarm>
714
850
  #
715
851
  # @example Request syntax with placeholder values
716
852
  #
717
853
  # resp = client.put_scaling_policy({
718
854
  # policy_name: "PolicyName", # required
719
- # service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream
855
+ # service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb
720
856
  # resource_id: "ResourceIdMaxLen1600", # required
721
- # scalable_dimension: "ecs:service:DesiredCount", # required, accepts ecs:service:DesiredCount, ec2:spot-fleet-request:TargetCapacity, elasticmapreduce:instancegroup:InstanceCount, appstream:fleet:DesiredCapacity
722
- # policy_type: "StepScaling", # accepts StepScaling
857
+ # scalable_dimension: "ecs:service:DesiredCount", # required, accepts ecs:service:DesiredCount, ec2:spot-fleet-request:TargetCapacity, elasticmapreduce:instancegroup:InstanceCount, appstream:fleet:DesiredCapacity, dynamodb:table:ReadCapacityUnits, dynamodb:table:WriteCapacityUnits, dynamodb:index:ReadCapacityUnits, dynamodb:index:WriteCapacityUnits
858
+ # policy_type: "StepScaling", # accepts StepScaling, TargetTrackingScaling
723
859
  # step_scaling_policy_configuration: {
724
860
  # adjustment_type: "ChangeInCapacity", # accepts ChangeInCapacity, PercentChangeInCapacity, ExactCapacity
725
861
  # step_adjustments: [
@@ -733,11 +869,35 @@ module Aws::ApplicationAutoScaling
733
869
  # cooldown: 1,
734
870
  # metric_aggregation_type: "Average", # accepts Average, Minimum, Maximum
735
871
  # },
872
+ # target_tracking_scaling_policy_configuration: {
873
+ # target_value: 1.0, # required
874
+ # predefined_metric_specification: {
875
+ # predefined_metric_type: "DynamoDBReadCapacityUtilization", # required, accepts DynamoDBReadCapacityUtilization, DynamoDBWriteCapacityUtilization
876
+ # resource_label: "ResourceLabel",
877
+ # },
878
+ # customized_metric_specification: {
879
+ # metric_name: "MetricName", # required
880
+ # namespace: "MetricNamespace", # required
881
+ # dimensions: [
882
+ # {
883
+ # name: "MetricDimensionName", # required
884
+ # value: "MetricDimensionValue", # required
885
+ # },
886
+ # ],
887
+ # statistic: "Average", # required, accepts Average, Minimum, Maximum, SampleCount, Sum
888
+ # unit: "MetricUnit",
889
+ # },
890
+ # scale_out_cooldown: 1,
891
+ # scale_in_cooldown: 1,
892
+ # },
736
893
  # })
737
894
  #
738
895
  # @example Response structure
739
896
  #
740
897
  # resp.policy_arn #=> String
898
+ # resp.alarms #=> Array
899
+ # resp.alarms[0].alarm_name #=> String
900
+ # resp.alarms[0].alarm_arn #=> String
741
901
  #
742
902
  # @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/PutScalingPolicy AWS API Documentation
743
903
  #
@@ -787,6 +947,13 @@ module Aws::ApplicationAutoScaling
787
947
  # * AppStream 2.0 fleet - The resource type is `fleet` and the unique
788
948
  # identifier is the fleet name. Example: `fleet/sample-fleet`.
789
949
  #
950
+ # * DynamoDB table - The resource type is `table` and the unique
951
+ # identifier is the resource ID. Example: `table/my-table`.
952
+ #
953
+ # * DynamoDB global secondary index - The resource type is `index` and
954
+ # the unique identifier is the resource ID. Example:
955
+ # `table/my-table/index/my-table-index`.
956
+ #
790
957
  # @option params [required, String] :scalable_dimension
791
958
  # The scalable dimension associated with the scalable target. This
792
959
  # string consists of the service namespace, resource type, and scaling
@@ -804,6 +971,18 @@ module Aws::ApplicationAutoScaling
804
971
  # * `appstream:fleet:DesiredCapacity` - The desired capacity of an
805
972
  # AppStream 2.0 fleet.
806
973
  #
974
+ # * `dynamodb:table:ReadCapacityUnits` - The provisioned read capacity
975
+ # for a DynamoDB table.
976
+ #
977
+ # * `dynamodb:table:WriteCapacityUnits` - The provisioned write capacity
978
+ # for a DynamoDB table.
979
+ #
980
+ # * `dynamodb:index:ReadCapacityUnits` - The provisioned read capacity
981
+ # for a DynamoDB global secondary index.
982
+ #
983
+ # * `dynamodb:index:WriteCapacityUnits` - The provisioned write capacity
984
+ # for a DynamoDB global secondary index.
985
+ #
807
986
  # @option params [Integer] :min_capacity
808
987
  # The minimum value to scale to in response to a scale in event. This
809
988
  # parameter is required if you are registering a scalable target and
@@ -824,9 +1003,9 @@ module Aws::ApplicationAutoScaling
824
1003
  # @example Request syntax with placeholder values
825
1004
  #
826
1005
  # resp = client.register_scalable_target({
827
- # service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream
1006
+ # service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb
828
1007
  # resource_id: "ResourceIdMaxLen1600", # required
829
- # scalable_dimension: "ecs:service:DesiredCount", # required, accepts ecs:service:DesiredCount, ec2:spot-fleet-request:TargetCapacity, elasticmapreduce:instancegroup:InstanceCount, appstream:fleet:DesiredCapacity
1008
+ # scalable_dimension: "ecs:service:DesiredCount", # required, accepts ecs:service:DesiredCount, ec2:spot-fleet-request:TargetCapacity, elasticmapreduce:instancegroup:InstanceCount, appstream:fleet:DesiredCapacity, dynamodb:table:ReadCapacityUnits, dynamodb:table:WriteCapacityUnits, dynamodb:index:ReadCapacityUnits, dynamodb:index:WriteCapacityUnits
830
1009
  # min_capacity: 1,
831
1010
  # max_capacity: 1,
832
1011
  # role_arn: "ResourceIdMaxLen1600",
@@ -854,7 +1033,7 @@ module Aws::ApplicationAutoScaling
854
1033
  params: params,
855
1034
  config: config)
856
1035
  context[:gem_name] = 'aws-sdk-applicationautoscaling'
857
- context[:gem_version] = '1.0.0.rc5'
1036
+ context[:gem_version] = '1.0.0.rc6'
858
1037
  Seahorse::Client::Request.new(handlers, context)
859
1038
  end
860
1039