aws-sdk-cloudwatch 1.2.0 → 1.3.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
  SHA1:
3
- metadata.gz: 908663d3ebfefebfab82ffd7ad6adf6d0428c3d6
4
- data.tar.gz: fd8affb66effb122a2e0c07e8bd14d1c0dd91a5b
3
+ metadata.gz: d72cd5cb8f60758b7b45dc0461ef3a87eca47e6a
4
+ data.tar.gz: 434bd1d76088df3cd5331799c6aae460a9726ef4
5
5
  SHA512:
6
- metadata.gz: 8dafde20f958c1af6019f1a1065d4d69aa88002a5adc0f4427498d5efbf857a883b2f25d88974c0f371f3175cba6f8c5a80161bc2f56c476ff81f5089df9c509
7
- data.tar.gz: 4e00ad385dde879c99dd658bbb51b21e5eea00fb00455f1833302f2988b3868b79490c73aa546892b53e87b5116cc27426fecf55a3a8bbf727f7e682be042e92
6
+ metadata.gz: f01e6e174e9f903caca4f23f49593e52d34270ddd00c146564ee5fc0b4354106fb4b10c65caea8343396347ad763704afdb252cf1e3ab81f324e9010469eb70e
7
+ data.tar.gz: 55279b5e433403fe19a443debfaa22d76bf4768d816bf4f151efd01130e97df99748122c892f76f65f3ca310c14a9b36b09fc6a0dd1aed5dd9fa2f2fc0c23f93
@@ -45,6 +45,6 @@ require_relative 'aws-sdk-cloudwatch/customizations'
45
45
  # @service
46
46
  module Aws::CloudWatch
47
47
 
48
- GEM_VERSION = '1.2.0'
48
+ GEM_VERSION = '1.3.0'
49
49
 
50
50
  end
@@ -155,6 +155,12 @@ module Aws::CloudWatch
155
155
  data[:evaluation_periods]
156
156
  end
157
157
 
158
+ # The number of datapoints that must be breaching to trigger the alarm.
159
+ # @return [Integer]
160
+ def datapoints_to_alarm
161
+ data[:datapoints_to_alarm]
162
+ end
163
+
158
164
  # The value to compare with the specified statistic.
159
165
  # @return [Float]
160
166
  def threshold
@@ -172,15 +172,15 @@ module Aws::CloudWatch
172
172
  # dashboards to delete. If there is an error during this call, no
173
173
  # dashboards are deleted.
174
174
  #
175
- # @option params [Array<String>] :dashboard_names
176
- # The dashboards to be deleted.
175
+ # @option params [required, Array<String>] :dashboard_names
176
+ # The dashboards to be deleted. This parameter is required.
177
177
  #
178
178
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
179
179
  #
180
180
  # @example Request syntax with placeholder values
181
181
  #
182
182
  # resp = client.delete_dashboards({
183
- # dashboard_names: ["DashboardName"],
183
+ # dashboard_names: ["DashboardName"], # required
184
184
  # })
185
185
  #
186
186
  # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteDashboards AWS API Documentation
@@ -321,6 +321,7 @@ module Aws::CloudWatch
321
321
  # resp.metric_alarms[0].period #=> Integer
322
322
  # resp.metric_alarms[0].unit #=> String, one of "Seconds", "Microseconds", "Milliseconds", "Bytes", "Kilobytes", "Megabytes", "Gigabytes", "Terabytes", "Bits", "Kilobits", "Megabits", "Gigabits", "Terabits", "Percent", "Count", "Bytes/Second", "Kilobytes/Second", "Megabytes/Second", "Gigabytes/Second", "Terabytes/Second", "Bits/Second", "Kilobits/Second", "Megabits/Second", "Gigabits/Second", "Terabits/Second", "Count/Second", "None"
323
323
  # resp.metric_alarms[0].evaluation_periods #=> Integer
324
+ # resp.metric_alarms[0].datapoints_to_alarm #=> Integer
324
325
  # resp.metric_alarms[0].threshold #=> Float
325
326
  # resp.metric_alarms[0].comparison_operator #=> String, one of "GreaterThanOrEqualToThreshold", "GreaterThanThreshold", "LessThanThreshold", "LessThanOrEqualToThreshold"
326
327
  # resp.metric_alarms[0].treat_missing_data #=> String
@@ -413,6 +414,7 @@ module Aws::CloudWatch
413
414
  # resp.metric_alarms[0].period #=> Integer
414
415
  # resp.metric_alarms[0].unit #=> String, one of "Seconds", "Microseconds", "Milliseconds", "Bytes", "Kilobytes", "Megabytes", "Gigabytes", "Terabytes", "Bits", "Kilobits", "Megabits", "Gigabits", "Terabits", "Percent", "Count", "Bytes/Second", "Kilobytes/Second", "Megabytes/Second", "Gigabytes/Second", "Terabytes/Second", "Bits/Second", "Kilobits/Second", "Megabits/Second", "Gigabits/Second", "Terabits/Second", "Count/Second", "None"
415
416
  # resp.metric_alarms[0].evaluation_periods #=> Integer
417
+ # resp.metric_alarms[0].datapoints_to_alarm #=> Integer
416
418
  # resp.metric_alarms[0].threshold #=> Float
417
419
  # resp.metric_alarms[0].comparison_operator #=> String, one of "GreaterThanOrEqualToThreshold", "GreaterThanThreshold", "LessThanThreshold", "LessThanOrEqualToThreshold"
418
420
  # resp.metric_alarms[0].treat_missing_data #=> String
@@ -479,7 +481,7 @@ module Aws::CloudWatch
479
481
  # data returned within `DashboardBody` as the template for the new
480
482
  # dashboard when you call `PutDashboard` to create the copy.
481
483
  #
482
- # @option params [String] :dashboard_name
484
+ # @option params [required, String] :dashboard_name
483
485
  # The name of the dashboard to be described.
484
486
  #
485
487
  # @return [Types::GetDashboardOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
@@ -491,7 +493,7 @@ module Aws::CloudWatch
491
493
  # @example Request syntax with placeholder values
492
494
  #
493
495
  # resp = client.get_dashboard({
494
- # dashboard_name: "DashboardName",
496
+ # dashboard_name: "DashboardName", # required
495
497
  # })
496
498
  #
497
499
  # @example Response structure
@@ -842,15 +844,17 @@ module Aws::CloudWatch
842
844
  # of the `DashboardBody` script or the CloudFormation template used to
843
845
  # create the dashboard.
844
846
  #
845
- # @option params [String] :dashboard_name
847
+ # @option params [required, String] :dashboard_name
846
848
  # The name of the dashboard. If a dashboard with this name already
847
849
  # exists, this call modifies that dashboard, replacing its current
848
850
  # contents. Otherwise, a new dashboard is created. The maximum length is
849
- # 255, and valid characters are A-Z, a-z, 0-9, "-", and "\_".
851
+ # 255, and valid characters are A-Z, a-z, 0-9, "-", and "\_". This
852
+ # parameter is required.
850
853
  #
851
- # @option params [String] :dashboard_body
854
+ # @option params [required, String] :dashboard_body
852
855
  # The detailed information about the dashboard in JSON format, including
853
- # the widgets to include and their location on the dashboard.
856
+ # the widgets to include and their location on the dashboard. This
857
+ # parameter is required.
854
858
  #
855
859
  # For more information about the syntax, see
856
860
  # CloudWatch-Dashboard-Body-Structure.
@@ -862,8 +866,8 @@ module Aws::CloudWatch
862
866
  # @example Request syntax with placeholder values
863
867
  #
864
868
  # resp = client.put_dashboard({
865
- # dashboard_name: "DashboardName",
866
- # dashboard_body: "DashboardBody",
869
+ # dashboard_name: "DashboardName", # required
870
+ # dashboard_body: "DashboardBody", # required
867
871
  # })
868
872
  #
869
873
  # @example Response structure
@@ -945,14 +949,17 @@ module Aws::CloudWatch
945
949
  #
946
950
  # Valid Values: arn:aws:automate:*region*\:ec2:stop \|
947
951
  # arn:aws:automate:*region*\:ec2:terminate \|
948
- # arn:aws:automate:*region*\:ec2:recover
952
+ # arn:aws:automate:*region*\:ec2:recover \|
953
+ # arn:aws:sns:*region*\:*account-id*\:*sns-topic-name* \|
954
+ # arn:aws:autoscaling:*region*\:*account-id*\:scalingPolicy:*policy-id*
955
+ # autoScalingGroupName/*group-friendly-name*\:policyName/*policy-friendly-name*
949
956
  #
950
957
  # Valid Values (for use with IAM roles):
951
- # arn:aws:swf:us-east-1:\\\{*customer-account*\\}:action/actions/AWS\_EC2.InstanceId.Stop/1.0
958
+ # arn:aws:swf:*region*\:\\\{*account-id*\\}:action/actions/AWS\_EC2.InstanceId.Stop/1.0
952
959
  # \|
953
- # arn:aws:swf:us-east-1:\\\{*customer-account*\\}:action/actions/AWS\_EC2.InstanceId.Terminate/1.0
960
+ # arn:aws:swf:*region*\:\\\{*account-id*\\}:action/actions/AWS\_EC2.InstanceId.Terminate/1.0
954
961
  # \|
955
- # arn:aws:swf:us-east-1:\\\{*customer-account*\\}:action/actions/AWS\_EC2.InstanceId.Reboot/1.0
962
+ # arn:aws:swf:*region*\:\\\{*account-id*\\}:action/actions/AWS\_EC2.InstanceId.Reboot/1.0
956
963
  #
957
964
  # @option params [Array<String>] :alarm_actions
958
965
  # The actions to execute when this alarm transitions to the `ALARM`
@@ -961,14 +968,17 @@ module Aws::CloudWatch
961
968
  #
962
969
  # Valid Values: arn:aws:automate:*region*\:ec2:stop \|
963
970
  # arn:aws:automate:*region*\:ec2:terminate \|
964
- # arn:aws:automate:*region*\:ec2:recover
971
+ # arn:aws:automate:*region*\:ec2:recover \|
972
+ # arn:aws:sns:*region*\:*account-id*\:*sns-topic-name* \|
973
+ # arn:aws:autoscaling:*region*\:*account-id*\:scalingPolicy:*policy-id*
974
+ # autoScalingGroupName/*group-friendly-name*\:policyName/*policy-friendly-name*
965
975
  #
966
976
  # Valid Values (for use with IAM roles):
967
- # arn:aws:swf:us-east-1:\\\{*customer-account*\\}:action/actions/AWS\_EC2.InstanceId.Stop/1.0
977
+ # arn:aws:swf:*region*\:\\\{*account-id*\\}:action/actions/AWS\_EC2.InstanceId.Stop/1.0
968
978
  # \|
969
- # arn:aws:swf:us-east-1:\\\{*customer-account*\\}:action/actions/AWS\_EC2.InstanceId.Terminate/1.0
979
+ # arn:aws:swf:*region*\:\\\{*account-id*\\}:action/actions/AWS\_EC2.InstanceId.Terminate/1.0
970
980
  # \|
971
- # arn:aws:swf:us-east-1:\\\{*customer-account*\\}:action/actions/AWS\_EC2.InstanceId.Reboot/1.0
981
+ # arn:aws:swf:*region*\:\\\{*account-id*\\}:action/actions/AWS\_EC2.InstanceId.Reboot/1.0
972
982
  #
973
983
  # @option params [Array<String>] :insufficient_data_actions
974
984
  # The actions to execute when this alarm transitions to the
@@ -977,14 +987,17 @@ module Aws::CloudWatch
977
987
  #
978
988
  # Valid Values: arn:aws:automate:*region*\:ec2:stop \|
979
989
  # arn:aws:automate:*region*\:ec2:terminate \|
980
- # arn:aws:automate:*region*\:ec2:recover
990
+ # arn:aws:automate:*region*\:ec2:recover \|
991
+ # arn:aws:sns:*region*\:*account-id*\:*sns-topic-name* \|
992
+ # arn:aws:autoscaling:*region*\:*account-id*\:scalingPolicy:*policy-id*
993
+ # autoScalingGroupName/*group-friendly-name*\:policyName/*policy-friendly-name*
981
994
  #
982
995
  # Valid Values (for use with IAM roles):
983
- # arn:aws:swf:us-east-1:\\\{*customer-account*\\}:action/actions/AWS\_EC2.InstanceId.Stop/1.0
996
+ # arn:aws:swf:*region*\:\\\{*account-id*\\}:action/actions/AWS\_EC2.InstanceId.Stop/1.0
984
997
  # \|
985
- # arn:aws:swf:us-east-1:\\\{*customer-account*\\}:action/actions/AWS\_EC2.InstanceId.Terminate/1.0
998
+ # arn:aws:swf:*region*\:\\\{*account-id*\\}:action/actions/AWS\_EC2.InstanceId.Terminate/1.0
986
999
  # \|
987
- # arn:aws:swf:us-east-1:\\\{*customer-account*\\}:action/actions/AWS\_EC2.InstanceId.Reboot/1.0
1000
+ # arn:aws:swf:*region*\:\\\{*account-id*\\}:action/actions/AWS\_EC2.InstanceId.Reboot/1.0
988
1001
  #
989
1002
  # @option params [required, String] :metric_name
990
1003
  # The name for the metric associated with the alarm.
@@ -994,11 +1007,15 @@ module Aws::CloudWatch
994
1007
  #
995
1008
  # @option params [String] :statistic
996
1009
  # The statistic for the metric associated with the alarm, other than
997
- # percentile. For percentile statistics, use `ExtendedStatistic`.
1010
+ # percentile. For percentile statistics, use `ExtendedStatistic`. When
1011
+ # you call `PutMetricAlarm`, you must specify either `Statistic` or
1012
+ # `ExtendedStatistic,` but not both.
998
1013
  #
999
1014
  # @option params [String] :extended_statistic
1000
1015
  # The percentile statistic for the metric associated with the alarm.
1001
- # Specify a value between p0.0 and p100.
1016
+ # Specify a value between p0.0 and p100. When you call `PutMetricAlarm`,
1017
+ # you must specify either `Statistic` or `ExtendedStatistic,` but not
1018
+ # both.
1002
1019
  #
1003
1020
  # @option params [Array<Types::Dimension>] :dimensions
1004
1021
  # The dimensions for the metric associated with the alarm.
@@ -1044,6 +1061,9 @@ module Aws::CloudWatch
1044
1061
  # longer than one day, so this number multiplied by `Period` cannot be
1045
1062
  # more than 86,400 seconds.
1046
1063
  #
1064
+ # @option params [Integer] :datapoints_to_alarm
1065
+ # The number of datapoints that must be breaching to trigger the alarm.
1066
+ #
1047
1067
  # @option params [required, Float] :threshold
1048
1068
  # The value against which the specified statistic is compared.
1049
1069
  #
@@ -1103,6 +1123,7 @@ module Aws::CloudWatch
1103
1123
  # period: 1, # required
1104
1124
  # unit: "Seconds", # accepts Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, None
1105
1125
  # evaluation_periods: 1, # required
1126
+ # datapoints_to_alarm: 1,
1106
1127
  # threshold: 1.0, # required
1107
1128
  # comparison_operator: "GreaterThanOrEqualToThreshold", # required, accepts GreaterThanOrEqualToThreshold, GreaterThanThreshold, LessThanThreshold, LessThanOrEqualToThreshold
1108
1129
  # treat_missing_data: "TreatMissingData",
@@ -1261,7 +1282,7 @@ module Aws::CloudWatch
1261
1282
  params: params,
1262
1283
  config: config)
1263
1284
  context[:gem_name] = 'aws-sdk-cloudwatch'
1264
- context[:gem_version] = '1.2.0'
1285
+ context[:gem_version] = '1.3.0'
1265
1286
  Seahorse::Client::Request.new(handlers, context)
1266
1287
  end
1267
1288
 
@@ -39,6 +39,7 @@ module Aws::CloudWatch
39
39
  DatapointValue = Shapes::FloatShape.new(name: 'DatapointValue')
40
40
  DatapointValueMap = Shapes::MapShape.new(name: 'DatapointValueMap')
41
41
  Datapoints = Shapes::ListShape.new(name: 'Datapoints')
42
+ DatapointsToAlarm = Shapes::IntegerShape.new(name: 'DatapointsToAlarm')
42
43
  DeleteAlarmsInput = Shapes::StructureShape.new(name: 'DeleteAlarmsInput')
43
44
  DeleteDashboardsInput = Shapes::StructureShape.new(name: 'DeleteDashboardsInput')
44
45
  DeleteDashboardsOutput = Shapes::StructureShape.new(name: 'DeleteDashboardsOutput')
@@ -160,7 +161,7 @@ module Aws::CloudWatch
160
161
  DeleteAlarmsInput.add_member(:alarm_names, Shapes::ShapeRef.new(shape: AlarmNames, required: true, location_name: "AlarmNames"))
161
162
  DeleteAlarmsInput.struct_class = Types::DeleteAlarmsInput
162
163
 
163
- DeleteDashboardsInput.add_member(:dashboard_names, Shapes::ShapeRef.new(shape: DashboardNames, location_name: "DashboardNames"))
164
+ DeleteDashboardsInput.add_member(:dashboard_names, Shapes::ShapeRef.new(shape: DashboardNames, required: true, location_name: "DashboardNames"))
164
165
  DeleteDashboardsInput.struct_class = Types::DeleteDashboardsInput
165
166
 
166
167
  DeleteDashboardsOutput.struct_class = Types::DeleteDashboardsOutput
@@ -221,7 +222,7 @@ module Aws::CloudWatch
221
222
 
222
223
  ExtendedStatistics.member = Shapes::ShapeRef.new(shape: ExtendedStatistic)
223
224
 
224
- GetDashboardInput.add_member(:dashboard_name, Shapes::ShapeRef.new(shape: DashboardName, location_name: "DashboardName"))
225
+ GetDashboardInput.add_member(:dashboard_name, Shapes::ShapeRef.new(shape: DashboardName, required: true, location_name: "DashboardName"))
225
226
  GetDashboardInput.struct_class = Types::GetDashboardInput
226
227
 
227
228
  GetDashboardOutput.add_member(:dashboard_arn, Shapes::ShapeRef.new(shape: DashboardArn, location_name: "DashboardArn"))
@@ -287,6 +288,7 @@ module Aws::CloudWatch
287
288
  MetricAlarm.add_member(:period, Shapes::ShapeRef.new(shape: Period, location_name: "Period"))
288
289
  MetricAlarm.add_member(:unit, Shapes::ShapeRef.new(shape: StandardUnit, location_name: "Unit"))
289
290
  MetricAlarm.add_member(:evaluation_periods, Shapes::ShapeRef.new(shape: EvaluationPeriods, location_name: "EvaluationPeriods"))
291
+ MetricAlarm.add_member(:datapoints_to_alarm, Shapes::ShapeRef.new(shape: DatapointsToAlarm, location_name: "DatapointsToAlarm"))
290
292
  MetricAlarm.add_member(:threshold, Shapes::ShapeRef.new(shape: Threshold, location_name: "Threshold"))
291
293
  MetricAlarm.add_member(:comparison_operator, Shapes::ShapeRef.new(shape: ComparisonOperator, location_name: "ComparisonOperator"))
292
294
  MetricAlarm.add_member(:treat_missing_data, Shapes::ShapeRef.new(shape: TreatMissingData, location_name: "TreatMissingData"))
@@ -308,8 +310,8 @@ module Aws::CloudWatch
308
310
 
309
311
  Metrics.member = Shapes::ShapeRef.new(shape: Metric)
310
312
 
311
- PutDashboardInput.add_member(:dashboard_name, Shapes::ShapeRef.new(shape: DashboardName, location_name: "DashboardName"))
312
- PutDashboardInput.add_member(:dashboard_body, Shapes::ShapeRef.new(shape: DashboardBody, location_name: "DashboardBody"))
313
+ PutDashboardInput.add_member(:dashboard_name, Shapes::ShapeRef.new(shape: DashboardName, required: true, location_name: "DashboardName"))
314
+ PutDashboardInput.add_member(:dashboard_body, Shapes::ShapeRef.new(shape: DashboardBody, required: true, location_name: "DashboardBody"))
313
315
  PutDashboardInput.struct_class = Types::PutDashboardInput
314
316
 
315
317
  PutDashboardOutput.add_member(:dashboard_validation_messages, Shapes::ShapeRef.new(shape: DashboardValidationMessages, location_name: "DashboardValidationMessages"))
@@ -329,6 +331,7 @@ module Aws::CloudWatch
329
331
  PutMetricAlarmInput.add_member(:period, Shapes::ShapeRef.new(shape: Period, required: true, location_name: "Period"))
330
332
  PutMetricAlarmInput.add_member(:unit, Shapes::ShapeRef.new(shape: StandardUnit, location_name: "Unit"))
331
333
  PutMetricAlarmInput.add_member(:evaluation_periods, Shapes::ShapeRef.new(shape: EvaluationPeriods, required: true, location_name: "EvaluationPeriods"))
334
+ PutMetricAlarmInput.add_member(:datapoints_to_alarm, Shapes::ShapeRef.new(shape: DatapointsToAlarm, location_name: "DatapointsToAlarm"))
332
335
  PutMetricAlarmInput.add_member(:threshold, Shapes::ShapeRef.new(shape: Threshold, required: true, location_name: "Threshold"))
333
336
  PutMetricAlarmInput.add_member(:comparison_operator, Shapes::ShapeRef.new(shape: ComparisonOperator, required: true, location_name: "ComparisonOperator"))
334
337
  PutMetricAlarmInput.add_member(:treat_missing_data, Shapes::ShapeRef.new(shape: TreatMissingData, location_name: "TreatMissingData"))
@@ -313,6 +313,7 @@ module Aws::CloudWatch
313
313
  # period: 1, # required
314
314
  # unit: "Seconds", # accepts Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, None
315
315
  # evaluation_periods: 1, # required
316
+ # datapoints_to_alarm: 1,
316
317
  # threshold: 1.0, # required
317
318
  # comparison_operator: "GreaterThanOrEqualToThreshold", # required, accepts GreaterThanOrEqualToThreshold, GreaterThanThreshold, LessThanThreshold, LessThanOrEqualToThreshold
318
319
  # treat_missing_data: "TreatMissingData",
@@ -334,14 +335,17 @@ module Aws::CloudWatch
334
335
  #
335
336
  # Valid Values: arn:aws:automate:*region*\:ec2:stop \|
336
337
  # arn:aws:automate:*region*\:ec2:terminate \|
337
- # arn:aws:automate:*region*\:ec2:recover
338
+ # arn:aws:automate:*region*\:ec2:recover \|
339
+ # arn:aws:sns:*region*\:*account-id*\:*sns-topic-name* \|
340
+ # arn:aws:autoscaling:*region*\:*account-id*\:scalingPolicy:*policy-id*
341
+ # autoScalingGroupName/*group-friendly-name*\:policyName/*policy-friendly-name*
338
342
  #
339
343
  # Valid Values (for use with IAM roles):
340
- # arn:aws:swf:us-east-1:\\\{*customer-account*\\}:action/actions/AWS\_EC2.InstanceId.Stop/1.0
344
+ # arn:aws:swf:*region*\:\\\{*account-id*\\}:action/actions/AWS\_EC2.InstanceId.Stop/1.0
341
345
  # \|
342
- # arn:aws:swf:us-east-1:\\\{*customer-account*\\}:action/actions/AWS\_EC2.InstanceId.Terminate/1.0
346
+ # arn:aws:swf:*region*\:\\\{*account-id*\\}:action/actions/AWS\_EC2.InstanceId.Terminate/1.0
343
347
  # \|
344
- # arn:aws:swf:us-east-1:\\\{*customer-account*\\}:action/actions/AWS\_EC2.InstanceId.Reboot/1.0
348
+ # arn:aws:swf:*region*\:\\\{*account-id*\\}:action/actions/AWS\_EC2.InstanceId.Reboot/1.0
345
349
  # @option options [Array<String>] :alarm_actions
346
350
  # The actions to execute when this alarm transitions to the `ALARM`
347
351
  # state from any other state. Each action is specified as an Amazon
@@ -349,14 +353,17 @@ module Aws::CloudWatch
349
353
  #
350
354
  # Valid Values: arn:aws:automate:*region*\:ec2:stop \|
351
355
  # arn:aws:automate:*region*\:ec2:terminate \|
352
- # arn:aws:automate:*region*\:ec2:recover
356
+ # arn:aws:automate:*region*\:ec2:recover \|
357
+ # arn:aws:sns:*region*\:*account-id*\:*sns-topic-name* \|
358
+ # arn:aws:autoscaling:*region*\:*account-id*\:scalingPolicy:*policy-id*
359
+ # autoScalingGroupName/*group-friendly-name*\:policyName/*policy-friendly-name*
353
360
  #
354
361
  # Valid Values (for use with IAM roles):
355
- # arn:aws:swf:us-east-1:\\\{*customer-account*\\}:action/actions/AWS\_EC2.InstanceId.Stop/1.0
362
+ # arn:aws:swf:*region*\:\\\{*account-id*\\}:action/actions/AWS\_EC2.InstanceId.Stop/1.0
356
363
  # \|
357
- # arn:aws:swf:us-east-1:\\\{*customer-account*\\}:action/actions/AWS\_EC2.InstanceId.Terminate/1.0
364
+ # arn:aws:swf:*region*\:\\\{*account-id*\\}:action/actions/AWS\_EC2.InstanceId.Terminate/1.0
358
365
  # \|
359
- # arn:aws:swf:us-east-1:\\\{*customer-account*\\}:action/actions/AWS\_EC2.InstanceId.Reboot/1.0
366
+ # arn:aws:swf:*region*\:\\\{*account-id*\\}:action/actions/AWS\_EC2.InstanceId.Reboot/1.0
360
367
  # @option options [Array<String>] :insufficient_data_actions
361
368
  # The actions to execute when this alarm transitions to the
362
369
  # `INSUFFICIENT_DATA` state from any other state. Each action is
@@ -364,20 +371,27 @@ module Aws::CloudWatch
364
371
  #
365
372
  # Valid Values: arn:aws:automate:*region*\:ec2:stop \|
366
373
  # arn:aws:automate:*region*\:ec2:terminate \|
367
- # arn:aws:automate:*region*\:ec2:recover
374
+ # arn:aws:automate:*region*\:ec2:recover \|
375
+ # arn:aws:sns:*region*\:*account-id*\:*sns-topic-name* \|
376
+ # arn:aws:autoscaling:*region*\:*account-id*\:scalingPolicy:*policy-id*
377
+ # autoScalingGroupName/*group-friendly-name*\:policyName/*policy-friendly-name*
368
378
  #
369
379
  # Valid Values (for use with IAM roles):
370
- # arn:aws:swf:us-east-1:\\\{*customer-account*\\}:action/actions/AWS\_EC2.InstanceId.Stop/1.0
380
+ # arn:aws:swf:*region*\:\\\{*account-id*\\}:action/actions/AWS\_EC2.InstanceId.Stop/1.0
371
381
  # \|
372
- # arn:aws:swf:us-east-1:\\\{*customer-account*\\}:action/actions/AWS\_EC2.InstanceId.Terminate/1.0
382
+ # arn:aws:swf:*region*\:\\\{*account-id*\\}:action/actions/AWS\_EC2.InstanceId.Terminate/1.0
373
383
  # \|
374
- # arn:aws:swf:us-east-1:\\\{*customer-account*\\}:action/actions/AWS\_EC2.InstanceId.Reboot/1.0
384
+ # arn:aws:swf:*region*\:\\\{*account-id*\\}:action/actions/AWS\_EC2.InstanceId.Reboot/1.0
375
385
  # @option options [String] :statistic
376
386
  # The statistic for the metric associated with the alarm, other than
377
- # percentile. For percentile statistics, use `ExtendedStatistic`.
387
+ # percentile. For percentile statistics, use `ExtendedStatistic`. When
388
+ # you call `PutMetricAlarm`, you must specify either `Statistic` or
389
+ # `ExtendedStatistic,` but not both.
378
390
  # @option options [String] :extended_statistic
379
391
  # The percentile statistic for the metric associated with the alarm.
380
- # Specify a value between p0.0 and p100.
392
+ # Specify a value between p0.0 and p100. When you call `PutMetricAlarm`,
393
+ # you must specify either `Statistic` or `ExtendedStatistic,` but not
394
+ # both.
381
395
  # @option options [Array<Types::Dimension>] :dimensions
382
396
  # The dimensions for the metric associated with the alarm.
383
397
  # @option options [required, Integer] :period
@@ -418,6 +432,8 @@ module Aws::CloudWatch
418
432
  # threshold. An alarm's total current evaluation period can be no
419
433
  # longer than one day, so this number multiplied by `Period` cannot be
420
434
  # more than 86,400 seconds.
435
+ # @option options [Integer] :datapoints_to_alarm
436
+ # The number of datapoints that must be breaching to trigger the alarm.
421
437
  # @option options [required, Float] :threshold
422
438
  # The value against which the specified statistic is compared.
423
439
  # @option options [required, String] :comparison_operator
@@ -161,11 +161,11 @@ module Aws::CloudWatch
161
161
  # data as a hash:
162
162
  #
163
163
  # {
164
- # dashboard_names: ["DashboardName"],
164
+ # dashboard_names: ["DashboardName"], # required
165
165
  # }
166
166
  #
167
167
  # @!attribute [rw] dashboard_names
168
- # The dashboards to be deleted.
168
+ # The dashboards to be deleted. This parameter is required.
169
169
  # @return [Array<String>]
170
170
  #
171
171
  # @see http://docs.aws.amazon.com/goto/WebAPI/monitoring-2010-08-01/DeleteDashboardsInput AWS API Documentation
@@ -478,7 +478,7 @@ module Aws::CloudWatch
478
478
  # data as a hash:
479
479
  #
480
480
  # {
481
- # dashboard_name: "DashboardName",
481
+ # dashboard_name: "DashboardName", # required
482
482
  # }
483
483
  #
484
484
  # @!attribute [rw] dashboard_name
@@ -895,6 +895,11 @@ module Aws::CloudWatch
895
895
  # threshold.
896
896
  # @return [Integer]
897
897
  #
898
+ # @!attribute [rw] datapoints_to_alarm
899
+ # The number of datapoints that must be breaching to trigger the
900
+ # alarm.
901
+ # @return [Integer]
902
+ #
898
903
  # @!attribute [rw] threshold
899
904
  # The value to compare with the specified statistic.
900
905
  # @return [Float]
@@ -941,6 +946,7 @@ module Aws::CloudWatch
941
946
  :period,
942
947
  :unit,
943
948
  :evaluation_periods,
949
+ :datapoints_to_alarm,
944
950
  :threshold,
945
951
  :comparison_operator,
946
952
  :treat_missing_data,
@@ -1040,8 +1046,8 @@ module Aws::CloudWatch
1040
1046
  # data as a hash:
1041
1047
  #
1042
1048
  # {
1043
- # dashboard_name: "DashboardName",
1044
- # dashboard_body: "DashboardBody",
1049
+ # dashboard_name: "DashboardName", # required
1050
+ # dashboard_body: "DashboardBody", # required
1045
1051
  # }
1046
1052
  #
1047
1053
  # @!attribute [rw] dashboard_name
@@ -1049,12 +1055,13 @@ module Aws::CloudWatch
1049
1055
  # exists, this call modifies that dashboard, replacing its current
1050
1056
  # contents. Otherwise, a new dashboard is created. The maximum length
1051
1057
  # is 255, and valid characters are A-Z, a-z, 0-9, "-", and "\_".
1058
+ # This parameter is required.
1052
1059
  # @return [String]
1053
1060
  #
1054
1061
  # @!attribute [rw] dashboard_body
1055
1062
  # The detailed information about the dashboard in JSON format,
1056
1063
  # including the widgets to include and their location on the
1057
- # dashboard.
1064
+ # dashboard. This parameter is required.
1058
1065
  #
1059
1066
  # For more information about the syntax, see
1060
1067
  # CloudWatch-Dashboard-Body-Structure.
@@ -1110,6 +1117,7 @@ module Aws::CloudWatch
1110
1117
  # period: 1, # required
1111
1118
  # unit: "Seconds", # accepts Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, None
1112
1119
  # evaluation_periods: 1, # required
1120
+ # datapoints_to_alarm: 1,
1113
1121
  # threshold: 1.0, # required
1114
1122
  # comparison_operator: "GreaterThanOrEqualToThreshold", # required, accepts GreaterThanOrEqualToThreshold, GreaterThanThreshold, LessThanThreshold, LessThanOrEqualToThreshold
1115
1123
  # treat_missing_data: "TreatMissingData",
@@ -1137,14 +1145,17 @@ module Aws::CloudWatch
1137
1145
  #
1138
1146
  # Valid Values: arn:aws:automate:*region*\:ec2:stop \|
1139
1147
  # arn:aws:automate:*region*\:ec2:terminate \|
1140
- # arn:aws:automate:*region*\:ec2:recover
1148
+ # arn:aws:automate:*region*\:ec2:recover \|
1149
+ # arn:aws:sns:*region*\:*account-id*\:*sns-topic-name* \|
1150
+ # arn:aws:autoscaling:*region*\:*account-id*\:scalingPolicy:*policy-id*
1151
+ # autoScalingGroupName/*group-friendly-name*\:policyName/*policy-friendly-name*
1141
1152
  #
1142
1153
  # Valid Values (for use with IAM roles):
1143
- # arn:aws:swf:us-east-1:\\\{*customer-account*\\}:action/actions/AWS\_EC2.InstanceId.Stop/1.0
1154
+ # arn:aws:swf:*region*\:\\\{*account-id*\\}:action/actions/AWS\_EC2.InstanceId.Stop/1.0
1144
1155
  # \|
1145
- # arn:aws:swf:us-east-1:\\\{*customer-account*\\}:action/actions/AWS\_EC2.InstanceId.Terminate/1.0
1156
+ # arn:aws:swf:*region*\:\\\{*account-id*\\}:action/actions/AWS\_EC2.InstanceId.Terminate/1.0
1146
1157
  # \|
1147
- # arn:aws:swf:us-east-1:\\\{*customer-account*\\}:action/actions/AWS\_EC2.InstanceId.Reboot/1.0
1158
+ # arn:aws:swf:*region*\:\\\{*account-id*\\}:action/actions/AWS\_EC2.InstanceId.Reboot/1.0
1148
1159
  # @return [Array<String>]
1149
1160
  #
1150
1161
  # @!attribute [rw] alarm_actions
@@ -1154,14 +1165,17 @@ module Aws::CloudWatch
1154
1165
  #
1155
1166
  # Valid Values: arn:aws:automate:*region*\:ec2:stop \|
1156
1167
  # arn:aws:automate:*region*\:ec2:terminate \|
1157
- # arn:aws:automate:*region*\:ec2:recover
1168
+ # arn:aws:automate:*region*\:ec2:recover \|
1169
+ # arn:aws:sns:*region*\:*account-id*\:*sns-topic-name* \|
1170
+ # arn:aws:autoscaling:*region*\:*account-id*\:scalingPolicy:*policy-id*
1171
+ # autoScalingGroupName/*group-friendly-name*\:policyName/*policy-friendly-name*
1158
1172
  #
1159
1173
  # Valid Values (for use with IAM roles):
1160
- # arn:aws:swf:us-east-1:\\\{*customer-account*\\}:action/actions/AWS\_EC2.InstanceId.Stop/1.0
1174
+ # arn:aws:swf:*region*\:\\\{*account-id*\\}:action/actions/AWS\_EC2.InstanceId.Stop/1.0
1161
1175
  # \|
1162
- # arn:aws:swf:us-east-1:\\\{*customer-account*\\}:action/actions/AWS\_EC2.InstanceId.Terminate/1.0
1176
+ # arn:aws:swf:*region*\:\\\{*account-id*\\}:action/actions/AWS\_EC2.InstanceId.Terminate/1.0
1163
1177
  # \|
1164
- # arn:aws:swf:us-east-1:\\\{*customer-account*\\}:action/actions/AWS\_EC2.InstanceId.Reboot/1.0
1178
+ # arn:aws:swf:*region*\:\\\{*account-id*\\}:action/actions/AWS\_EC2.InstanceId.Reboot/1.0
1165
1179
  # @return [Array<String>]
1166
1180
  #
1167
1181
  # @!attribute [rw] insufficient_data_actions
@@ -1171,14 +1185,17 @@ module Aws::CloudWatch
1171
1185
  #
1172
1186
  # Valid Values: arn:aws:automate:*region*\:ec2:stop \|
1173
1187
  # arn:aws:automate:*region*\:ec2:terminate \|
1174
- # arn:aws:automate:*region*\:ec2:recover
1188
+ # arn:aws:automate:*region*\:ec2:recover \|
1189
+ # arn:aws:sns:*region*\:*account-id*\:*sns-topic-name* \|
1190
+ # arn:aws:autoscaling:*region*\:*account-id*\:scalingPolicy:*policy-id*
1191
+ # autoScalingGroupName/*group-friendly-name*\:policyName/*policy-friendly-name*
1175
1192
  #
1176
1193
  # Valid Values (for use with IAM roles):
1177
- # arn:aws:swf:us-east-1:\\\{*customer-account*\\}:action/actions/AWS\_EC2.InstanceId.Stop/1.0
1194
+ # arn:aws:swf:*region*\:\\\{*account-id*\\}:action/actions/AWS\_EC2.InstanceId.Stop/1.0
1178
1195
  # \|
1179
- # arn:aws:swf:us-east-1:\\\{*customer-account*\\}:action/actions/AWS\_EC2.InstanceId.Terminate/1.0
1196
+ # arn:aws:swf:*region*\:\\\{*account-id*\\}:action/actions/AWS\_EC2.InstanceId.Terminate/1.0
1180
1197
  # \|
1181
- # arn:aws:swf:us-east-1:\\\{*customer-account*\\}:action/actions/AWS\_EC2.InstanceId.Reboot/1.0
1198
+ # arn:aws:swf:*region*\:\\\{*account-id*\\}:action/actions/AWS\_EC2.InstanceId.Reboot/1.0
1182
1199
  # @return [Array<String>]
1183
1200
  #
1184
1201
  # @!attribute [rw] metric_name
@@ -1191,12 +1208,16 @@ module Aws::CloudWatch
1191
1208
  #
1192
1209
  # @!attribute [rw] statistic
1193
1210
  # The statistic for the metric associated with the alarm, other than
1194
- # percentile. For percentile statistics, use `ExtendedStatistic`.
1211
+ # percentile. For percentile statistics, use `ExtendedStatistic`. When
1212
+ # you call `PutMetricAlarm`, you must specify either `Statistic` or
1213
+ # `ExtendedStatistic,` but not both.
1195
1214
  # @return [String]
1196
1215
  #
1197
1216
  # @!attribute [rw] extended_statistic
1198
1217
  # The percentile statistic for the metric associated with the alarm.
1199
- # Specify a value between p0.0 and p100.
1218
+ # Specify a value between p0.0 and p100. When you call
1219
+ # `PutMetricAlarm`, you must specify either `Statistic` or
1220
+ # `ExtendedStatistic,` but not both.
1200
1221
  # @return [String]
1201
1222
  #
1202
1223
  # @!attribute [rw] dimensions
@@ -1248,6 +1269,11 @@ module Aws::CloudWatch
1248
1269
  # more than 86,400 seconds.
1249
1270
  # @return [Integer]
1250
1271
  #
1272
+ # @!attribute [rw] datapoints_to_alarm
1273
+ # The number of datapoints that must be breaching to trigger the
1274
+ # alarm.
1275
+ # @return [Integer]
1276
+ #
1251
1277
  # @!attribute [rw] threshold
1252
1278
  # The value against which the specified statistic is compared.
1253
1279
  # @return [Float]
@@ -1304,6 +1330,7 @@ module Aws::CloudWatch
1304
1330
  :period,
1305
1331
  :unit,
1306
1332
  :evaluation_periods,
1333
+ :datapoints_to_alarm,
1307
1334
  :threshold,
1308
1335
  :comparison_operator,
1309
1336
  :treat_missing_data,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-cloudwatch
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.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: 2017-09-14 00:00:00.000000000 Z
11
+ date: 2017-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core