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

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: e9ed8612537632a0134077479f72ab7d88caca65
4
- data.tar.gz: 78bbbacb25e4594e7c842360352f04eed727d491
3
+ metadata.gz: c67629f6c1453b64b0553bc4fde0e5eb753be02b
4
+ data.tar.gz: e74634d7f04c0bf81748a00b0e69bc1718bfb06a
5
5
  SHA512:
6
- metadata.gz: d7008a2395ec5712ea6fe6aec097e01a74e7c8d79737ef97b792b8e208e478cbde10b2be2b39feef090275bcbe19128a676b3d52869bf14bd84aa156ae37cf38
7
- data.tar.gz: e588ec5858e3289b89ec4417913dad0f69ad1ed34384354415a49afe8e00bf8d33e3c1cfa388c5177dbcdd0cae6da59c0d7e19646cd6f4d51dd6bfe8b4e7748f
6
+ metadata.gz: f0c53ef8b0a7f743575c47d9a8c672c4bbc0a21eb6b5e3346846ff9376097170a2dc0c6168886ca6cdf9dc6bde62886fceea77b0277d53c62a883f71ec52fe02
7
+ data.tar.gz: 1f33882313880453aa73e503420d8f9b3cc1ea97adcedc3ab3aedf388af52821fe39da0f70e76d38ec5a62c526c67d35b5d6454213d134d41b2c099228215957
@@ -231,6 +231,22 @@ module Aws::ApplicationAutoScaling
231
231
  #
232
232
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
233
233
  #
234
+ #
235
+ # @example Example: To delete a scaling policy
236
+ #
237
+ # # This example deletes a scaling policy for the Amazon ECS service called web-app, which is running in the default cluster.
238
+ #
239
+ # resp = client.delete_scaling_policy({
240
+ # policy_name: "web-app-cpu-lt-25",
241
+ # resource_id: "service/default/web-app",
242
+ # scalable_dimension: "ecs:service:DesiredCount",
243
+ # service_namespace: "ecs",
244
+ # })
245
+ #
246
+ # resp.to_h outputs the following:
247
+ # {
248
+ # }
249
+ #
234
250
  # @example Request syntax with placeholder values
235
251
  #
236
252
  # resp = client.delete_scaling_policy({
@@ -322,6 +338,21 @@ module Aws::ApplicationAutoScaling
322
338
  #
323
339
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
324
340
  #
341
+ #
342
+ # @example Example: To deregister a scalable target
343
+ #
344
+ # # This example deregisters a scalable target for an Amazon ECS service called web-app that is running in the default cluster.
345
+ #
346
+ # resp = client.deregister_scalable_target({
347
+ # resource_id: "service/default/web-app",
348
+ # scalable_dimension: "ecs:service:DesiredCount",
349
+ # service_namespace: "ecs",
350
+ # })
351
+ #
352
+ # resp.to_h outputs the following:
353
+ # {
354
+ # }
355
+ #
325
356
  # @example Request syntax with placeholder values
326
357
  #
327
358
  # resp = client.deregister_scalable_target({
@@ -432,6 +463,30 @@ module Aws::ApplicationAutoScaling
432
463
  # * {Types::DescribeScalableTargetsResponse#scalable_targets #scalable_targets} => Array<Types::ScalableTarget>
433
464
  # * {Types::DescribeScalableTargetsResponse#next_token #next_token} => String
434
465
  #
466
+ #
467
+ # @example Example: To describe scalable targets
468
+ #
469
+ # # This example describes the scalable targets for the ecs service namespace.
470
+ #
471
+ # resp = client.describe_scalable_targets({
472
+ # service_namespace: "ecs",
473
+ # })
474
+ #
475
+ # resp.to_h outputs the following:
476
+ # {
477
+ # scalable_targets: [
478
+ # {
479
+ # creation_time: Time.parse("2016-05-06T11:21:46.199Z"),
480
+ # max_capacity: 10,
481
+ # min_capacity: 1,
482
+ # resource_id: "service/default/web-app",
483
+ # role_arn: "arn:aws:iam::012345678910:role/ApplicationAutoscalingECSRole",
484
+ # scalable_dimension: "ecs:service:DesiredCount",
485
+ # service_namespace: "ecs",
486
+ # },
487
+ # ],
488
+ # }
489
+ #
435
490
  # @example Request syntax with placeholder values
436
491
  #
437
492
  # resp = client.describe_scalable_targets({
@@ -556,6 +611,35 @@ module Aws::ApplicationAutoScaling
556
611
  # * {Types::DescribeScalingActivitiesResponse#scaling_activities #scaling_activities} => Array<Types::ScalingActivity>
557
612
  # * {Types::DescribeScalingActivitiesResponse#next_token #next_token} => String
558
613
  #
614
+ #
615
+ # @example Example: To describe scaling activities for a scalable target
616
+ #
617
+ # # This example describes the scaling activities for an Amazon ECS service called web-app that is running in the default cluster.
618
+ #
619
+ # resp = client.describe_scaling_activities({
620
+ # resource_id: "service/default/web-app",
621
+ # scalable_dimension: "ecs:service:DesiredCount",
622
+ # service_namespace: "ecs",
623
+ # })
624
+ #
625
+ # resp.to_h outputs the following:
626
+ # {
627
+ # scaling_activities: [
628
+ # {
629
+ # activity_id: "e6c5f7d1-dbbb-4a3f-89b2-51f33e766399",
630
+ # cause: "monitor alarm web-app-cpu-lt-25 in state ALARM triggered policy web-app-cpu-lt-25",
631
+ # description: "Setting desired count to 1.",
632
+ # end_time: Time.parse("2016-05-06T16:04:32.111Z"),
633
+ # resource_id: "service/default/web-app",
634
+ # scalable_dimension: "ecs:service:DesiredCount",
635
+ # service_namespace: "ecs",
636
+ # start_time: Time.parse("2016-05-06T16:03:58.171Z"),
637
+ # status_code: "Successful",
638
+ # status_message: "Successfully set desired count to 1. Change successfully fulfilled by ecs.",
639
+ # },
640
+ # ],
641
+ # }
642
+ #
559
643
  # @example Request syntax with placeholder values
560
644
  #
561
645
  # resp = client.describe_scaling_activities({
@@ -686,6 +770,47 @@ module Aws::ApplicationAutoScaling
686
770
  # * {Types::DescribeScalingPoliciesResponse#scaling_policies #scaling_policies} => Array<Types::ScalingPolicy>
687
771
  # * {Types::DescribeScalingPoliciesResponse#next_token #next_token} => String
688
772
  #
773
+ #
774
+ # @example Example: To describe scaling policies
775
+ #
776
+ # # This example describes the scaling policies for the ecs service namespace.
777
+ #
778
+ # resp = client.describe_scaling_policies({
779
+ # service_namespace: "ecs",
780
+ # })
781
+ #
782
+ # resp.to_h outputs the following:
783
+ # {
784
+ # next_token: "",
785
+ # scaling_policies: [
786
+ # {
787
+ # alarms: [
788
+ # {
789
+ # alarm_arn: "arn:aws:cloudwatch:us-west-2:012345678910:alarm:web-app-cpu-gt-75",
790
+ # alarm_name: "web-app-cpu-gt-75",
791
+ # },
792
+ # ],
793
+ # creation_time: Time.parse("2016-05-06T12:11:39.230Z"),
794
+ # policy_arn: "arn:aws:autoscaling:us-west-2:012345678910:scalingPolicy:6d8972f3-efc8-437c-92d1-6270f29a66e7:resource/ecs/service/default/web-app:policyName/web-app-cpu-gt-75",
795
+ # policy_name: "web-app-cpu-gt-75",
796
+ # policy_type: "StepScaling",
797
+ # resource_id: "service/default/web-app",
798
+ # scalable_dimension: "ecs:service:DesiredCount",
799
+ # service_namespace: "ecs",
800
+ # step_scaling_policy_configuration: {
801
+ # adjustment_type: "PercentChangeInCapacity",
802
+ # cooldown: 60,
803
+ # step_adjustments: [
804
+ # {
805
+ # metric_interval_lower_bound: 0,
806
+ # scaling_adjustment: 200,
807
+ # },
808
+ # ],
809
+ # },
810
+ # },
811
+ # ],
812
+ # }
813
+ #
689
814
  # @example Request syntax with placeholder values
690
815
  #
691
816
  # resp = client.describe_scaling_policies({
@@ -848,6 +973,62 @@ module Aws::ApplicationAutoScaling
848
973
  # * {Types::PutScalingPolicyResponse#policy_arn #policy_arn} => String
849
974
  # * {Types::PutScalingPolicyResponse#alarms #alarms} => Array<Types::Alarm>
850
975
  #
976
+ #
977
+ # @example Example: To apply a scaling policy to an Amazon ECS service
978
+ #
979
+ # # This example applies a scaling policy to an Amazon ECS service called web-app in the default cluster. The policy increases the desired count of the service by 200%, with a cool down period of 60 seconds.
980
+ #
981
+ # resp = client.put_scaling_policy({
982
+ # policy_name: "web-app-cpu-gt-75",
983
+ # policy_type: "StepScaling",
984
+ # resource_id: "service/default/web-app",
985
+ # scalable_dimension: "ecs:service:DesiredCount",
986
+ # service_namespace: "ecs",
987
+ # step_scaling_policy_configuration: {
988
+ # adjustment_type: "PercentChangeInCapacity",
989
+ # cooldown: 60,
990
+ # step_adjustments: [
991
+ # {
992
+ # metric_interval_lower_bound: 0,
993
+ # scaling_adjustment: 200,
994
+ # },
995
+ # ],
996
+ # },
997
+ # })
998
+ #
999
+ # resp.to_h outputs the following:
1000
+ # {
1001
+ # policy_arn: "arn:aws:autoscaling:us-west-2:012345678910:scalingPolicy:6d8972f3-efc8-437c-92d1-6270f29a66e7:resource/ecs/service/default/web-app:policyName/web-app-cpu-gt-75",
1002
+ # }
1003
+ #
1004
+ # @example Example: To apply a scaling policy to an Amazon EC2 Spot fleet
1005
+ #
1006
+ # # This example applies a scaling policy to an Amazon EC2 Spot fleet. The policy increases the target capacity of the spot fleet by 200%, with a cool down period of 180 seconds.",
1007
+
1008
+ #
1009
+ # resp = client.put_scaling_policy({
1010
+ # policy_name: "fleet-cpu-gt-75",
1011
+ # policy_type: "StepScaling",
1012
+ # resource_id: "spot-fleet-request/sfr-45e69d8a-be48-4539-bbf3-3464e99c50c3",
1013
+ # scalable_dimension: "ec2:spot-fleet-request:TargetCapacity",
1014
+ # service_namespace: "ec2",
1015
+ # step_scaling_policy_configuration: {
1016
+ # adjustment_type: "PercentChangeInCapacity",
1017
+ # cooldown: 180,
1018
+ # step_adjustments: [
1019
+ # {
1020
+ # metric_interval_lower_bound: 0,
1021
+ # scaling_adjustment: 200,
1022
+ # },
1023
+ # ],
1024
+ # },
1025
+ # })
1026
+ #
1027
+ # resp.to_h outputs the following:
1028
+ # {
1029
+ # policy_arn: "arn:aws:autoscaling:us-east-1:012345678910:scalingPolicy:89406401-0cb7-4130-b770-d97cca0e446b:resource/ec2/spot-fleet-request/sfr-45e69d8a-be48-4539-bbf3-3464e99c50c3:policyName/fleet-cpu-gt-75",
1030
+ # }
1031
+ #
851
1032
  # @example Request syntax with placeholder values
852
1033
  #
853
1034
  # resp = client.put_scaling_policy({
@@ -1000,6 +1181,37 @@ module Aws::ApplicationAutoScaling
1000
1181
  #
1001
1182
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1002
1183
  #
1184
+ #
1185
+ # @example Example: To register an ECS service as a scalable target
1186
+ #
1187
+ # # This example registers a scalable target from an Amazon ECS service called web-app that is running on the default cluster, with a minimum desired count of 1 task and a maximum desired count of 10 tasks.
1188
+ #
1189
+ # resp = client.register_scalable_target({
1190
+ # max_capacity: 10,
1191
+ # min_capacity: 1,
1192
+ # resource_id: "service/default/web-app",
1193
+ # role_arn: "arn:aws:iam::012345678910:role/ApplicationAutoscalingECSRole",
1194
+ # scalable_dimension: "ecs:service:DesiredCount",
1195
+ # service_namespace: "ecs",
1196
+ # })
1197
+ #
1198
+ # @example Example: To register an EC2 Spot fleet as a scalable target
1199
+ #
1200
+ # # This example registers a scalable target from an Amazon EC2 Spot fleet with a minimum target capacity of 1 and a maximum of 10.
1201
+ #
1202
+ # resp = client.register_scalable_target({
1203
+ # max_capacity: 10,
1204
+ # min_capacity: 1,
1205
+ # resource_id: "spot-fleet-request/sfr-45e69d8a-be48-4539-bbf3-3464e99c50c3",
1206
+ # role_arn: "arn:aws:iam::012345678910:role/ApplicationAutoscalingSpotRole",
1207
+ # scalable_dimension: "ec2:spot-fleet-request:TargetCapacity",
1208
+ # service_namespace: "ec2",
1209
+ # })
1210
+ #
1211
+ # resp.to_h outputs the following:
1212
+ # {
1213
+ # }
1214
+ #
1003
1215
  # @example Request syntax with placeholder values
1004
1216
  #
1005
1217
  # resp = client.register_scalable_target({
@@ -1033,7 +1245,7 @@ module Aws::ApplicationAutoScaling
1033
1245
  params: params,
1034
1246
  config: config)
1035
1247
  context[:gem_name] = 'aws-sdk-applicationautoscaling'
1036
- context[:gem_version] = '1.0.0.rc6'
1248
+ context[:gem_version] = '1.0.0.rc7'
1037
1249
  Seahorse::Client::Request.new(handlers, context)
1038
1250
  end
1039
1251
 
@@ -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.rc6'
45
+ GEM_VERSION = '1.0.0.rc7'
46
46
 
47
47
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-applicationautoscaling
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.rc6
4
+ version: 1.0.0.rc7
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: 2017-06-26 00:00:00.000000000 Z
11
+ date: 2017-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 3.0.0.rc13
19
+ version: 3.0.0.rc14
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 3.0.0.rc13
26
+ version: 3.0.0.rc14
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: aws-sigv4
29
29
  requirement: !ruby/object:Gem::Requirement