aws-sdk-applicationautoscaling 1.96.0 → 1.98.0

Sign up to get free protection for your applications and to get access to all the features.
data/sig/client.rbs CHANGED
@@ -174,6 +174,23 @@ module Aws
174
174
  ) -> _DescribeScheduledActionsResponseSuccess
175
175
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DescribeScheduledActionsResponseSuccess
176
176
 
177
+ interface _GetPredictiveScalingForecastResponseSuccess
178
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetPredictiveScalingForecastResponse]
179
+ def load_forecast: () -> ::Array[Types::LoadForecast]
180
+ def capacity_forecast: () -> Types::CapacityForecast
181
+ def update_time: () -> ::Time
182
+ end
183
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ApplicationAutoScaling/Client.html#get_predictive_scaling_forecast-instance_method
184
+ def get_predictive_scaling_forecast: (
185
+ service_namespace: ("ecs" | "elasticmapreduce" | "ec2" | "appstream" | "dynamodb" | "rds" | "sagemaker" | "custom-resource" | "comprehend" | "lambda" | "cassandra" | "kafka" | "elasticache" | "neptune" | "workspaces"),
186
+ resource_id: ::String,
187
+ scalable_dimension: ("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" | "rds:cluster:ReadReplicaCount" | "sagemaker:variant:DesiredInstanceCount" | "custom-resource:ResourceType:Property" | "comprehend:document-classifier-endpoint:DesiredInferenceUnits" | "comprehend:entity-recognizer-endpoint:DesiredInferenceUnits" | "lambda:function:ProvisionedConcurrency" | "cassandra:table:ReadCapacityUnits" | "cassandra:table:WriteCapacityUnits" | "kafka:broker-storage:VolumeSize" | "elasticache:replication-group:NodeGroups" | "elasticache:replication-group:Replicas" | "neptune:cluster:ReadReplicaCount" | "sagemaker:variant:DesiredProvisionedConcurrency" | "sagemaker:inference-component:DesiredCopyCount" | "workspaces:workspacespool:DesiredUserSessions"),
188
+ policy_name: ::String,
189
+ start_time: ::Time,
190
+ end_time: ::Time
191
+ ) -> _GetPredictiveScalingForecastResponseSuccess
192
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetPredictiveScalingForecastResponseSuccess
193
+
177
194
  interface _ListTagsForResourceResponseSuccess
178
195
  include ::Seahorse::Client::_ResponseSuccess[Types::ListTagsForResourceResponse]
179
196
  def tags: () -> ::Hash[::String, ::String]
@@ -195,7 +212,7 @@ module Aws
195
212
  service_namespace: ("ecs" | "elasticmapreduce" | "ec2" | "appstream" | "dynamodb" | "rds" | "sagemaker" | "custom-resource" | "comprehend" | "lambda" | "cassandra" | "kafka" | "elasticache" | "neptune" | "workspaces"),
196
213
  resource_id: ::String,
197
214
  scalable_dimension: ("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" | "rds:cluster:ReadReplicaCount" | "sagemaker:variant:DesiredInstanceCount" | "custom-resource:ResourceType:Property" | "comprehend:document-classifier-endpoint:DesiredInferenceUnits" | "comprehend:entity-recognizer-endpoint:DesiredInferenceUnits" | "lambda:function:ProvisionedConcurrency" | "cassandra:table:ReadCapacityUnits" | "cassandra:table:WriteCapacityUnits" | "kafka:broker-storage:VolumeSize" | "elasticache:replication-group:NodeGroups" | "elasticache:replication-group:Replicas" | "neptune:cluster:ReadReplicaCount" | "sagemaker:variant:DesiredProvisionedConcurrency" | "sagemaker:inference-component:DesiredCopyCount" | "workspaces:workspacespool:DesiredUserSessions"),
198
- ?policy_type: ("StepScaling" | "TargetTrackingScaling"),
215
+ ?policy_type: ("StepScaling" | "TargetTrackingScaling" | "PredictiveScaling"),
199
216
  ?step_scaling_policy_configuration: {
200
217
  adjustment_type: ("ChangeInCapacity" | "PercentChangeInCapacity" | "ExactCapacity")?,
201
218
  step_adjustments: Array[
@@ -252,6 +269,101 @@ module Aws
252
269
  scale_out_cooldown: ::Integer?,
253
270
  scale_in_cooldown: ::Integer?,
254
271
  disable_scale_in: bool?
272
+ },
273
+ ?predictive_scaling_policy_configuration: {
274
+ metric_specifications: Array[
275
+ {
276
+ target_value: ::Float,
277
+ predefined_metric_pair_specification: {
278
+ predefined_metric_type: ::String,
279
+ resource_label: ::String?
280
+ }?,
281
+ predefined_scaling_metric_specification: {
282
+ predefined_metric_type: ::String,
283
+ resource_label: ::String?
284
+ }?,
285
+ predefined_load_metric_specification: {
286
+ predefined_metric_type: ::String,
287
+ resource_label: ::String?
288
+ }?,
289
+ customized_scaling_metric_specification: {
290
+ metric_data_queries: Array[
291
+ {
292
+ id: ::String,
293
+ expression: ::String?,
294
+ metric_stat: {
295
+ metric: {
296
+ dimensions: Array[
297
+ {
298
+ name: ::String,
299
+ value: ::String
300
+ },
301
+ ]?,
302
+ metric_name: ::String?,
303
+ namespace: ::String?
304
+ },
305
+ stat: ::String,
306
+ unit: ::String?
307
+ }?,
308
+ label: ::String?,
309
+ return_data: bool?
310
+ },
311
+ ]
312
+ }?,
313
+ customized_load_metric_specification: {
314
+ metric_data_queries: Array[
315
+ {
316
+ id: ::String,
317
+ expression: ::String?,
318
+ metric_stat: {
319
+ metric: {
320
+ dimensions: Array[
321
+ {
322
+ name: ::String,
323
+ value: ::String
324
+ },
325
+ ]?,
326
+ metric_name: ::String?,
327
+ namespace: ::String?
328
+ },
329
+ stat: ::String,
330
+ unit: ::String?
331
+ }?,
332
+ label: ::String?,
333
+ return_data: bool?
334
+ },
335
+ ]
336
+ }?,
337
+ customized_capacity_metric_specification: {
338
+ metric_data_queries: Array[
339
+ {
340
+ id: ::String,
341
+ expression: ::String?,
342
+ metric_stat: {
343
+ metric: {
344
+ dimensions: Array[
345
+ {
346
+ name: ::String,
347
+ value: ::String
348
+ },
349
+ ]?,
350
+ metric_name: ::String?,
351
+ namespace: ::String?
352
+ },
353
+ stat: ::String,
354
+ unit: ::String?
355
+ }?,
356
+ label: ::String?,
357
+ return_data: bool?
358
+ },
359
+ ]
360
+ }?
361
+ },
362
+ ],
363
+ mode: ("ForecastOnly" | "ForecastAndScale")?,
364
+ scheduling_buffer_time: ::Integer?,
365
+ max_capacity_breach_behavior: ("HonorMaxCapacity" | "IncreaseMaxCapacity")?,
366
+ max_capacity_buffer: ::Integer?
255
367
  }
256
368
  ) -> _PutScalingPolicyResponseSuccess
257
369
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _PutScalingPolicyResponseSuccess
data/sig/types.rbs CHANGED
@@ -14,6 +14,12 @@ module Aws::ApplicationAutoScaling
14
14
  SENSITIVE: []
15
15
  end
16
16
 
17
+ class CapacityForecast
18
+ attr_accessor timestamps: ::Array[::Time]
19
+ attr_accessor values: ::Array[::Float]
20
+ SENSITIVE: []
21
+ end
22
+
17
23
  class ConcurrentUpdateException
18
24
  attr_accessor message: ::String
19
25
  SENSITIVE: []
@@ -129,6 +135,23 @@ module Aws::ApplicationAutoScaling
129
135
  SENSITIVE: []
130
136
  end
131
137
 
138
+ class GetPredictiveScalingForecastRequest
139
+ attr_accessor service_namespace: ("ecs" | "elasticmapreduce" | "ec2" | "appstream" | "dynamodb" | "rds" | "sagemaker" | "custom-resource" | "comprehend" | "lambda" | "cassandra" | "kafka" | "elasticache" | "neptune" | "workspaces")
140
+ attr_accessor resource_id: ::String
141
+ attr_accessor scalable_dimension: ("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" | "rds:cluster:ReadReplicaCount" | "sagemaker:variant:DesiredInstanceCount" | "custom-resource:ResourceType:Property" | "comprehend:document-classifier-endpoint:DesiredInferenceUnits" | "comprehend:entity-recognizer-endpoint:DesiredInferenceUnits" | "lambda:function:ProvisionedConcurrency" | "cassandra:table:ReadCapacityUnits" | "cassandra:table:WriteCapacityUnits" | "kafka:broker-storage:VolumeSize" | "elasticache:replication-group:NodeGroups" | "elasticache:replication-group:Replicas" | "neptune:cluster:ReadReplicaCount" | "sagemaker:variant:DesiredProvisionedConcurrency" | "sagemaker:inference-component:DesiredCopyCount" | "workspaces:workspacespool:DesiredUserSessions")
142
+ attr_accessor policy_name: ::String
143
+ attr_accessor start_time: ::Time
144
+ attr_accessor end_time: ::Time
145
+ SENSITIVE: []
146
+ end
147
+
148
+ class GetPredictiveScalingForecastResponse
149
+ attr_accessor load_forecast: ::Array[Types::LoadForecast]
150
+ attr_accessor capacity_forecast: Types::CapacityForecast
151
+ attr_accessor update_time: ::Time
152
+ SENSITIVE: []
153
+ end
154
+
132
155
  class InternalServiceException
133
156
  attr_accessor message: ::String
134
157
  SENSITIVE: []
@@ -154,6 +177,13 @@ module Aws::ApplicationAutoScaling
154
177
  SENSITIVE: []
155
178
  end
156
179
 
180
+ class LoadForecast
181
+ attr_accessor timestamps: ::Array[::Time]
182
+ attr_accessor values: ::Array[::Float]
183
+ attr_accessor metric_specification: Types::PredictiveScalingMetricSpecification
184
+ SENSITIVE: []
185
+ end
186
+
157
187
  class MetricDimension
158
188
  attr_accessor name: ::String
159
189
  attr_accessor value: ::String
@@ -179,14 +209,87 @@ module Aws::ApplicationAutoScaling
179
209
  SENSITIVE: []
180
210
  end
181
211
 
212
+ class PredictiveScalingCustomizedMetricSpecification
213
+ attr_accessor metric_data_queries: ::Array[Types::PredictiveScalingMetricDataQuery]
214
+ SENSITIVE: []
215
+ end
216
+
217
+ class PredictiveScalingMetric
218
+ attr_accessor dimensions: ::Array[Types::PredictiveScalingMetricDimension]
219
+ attr_accessor metric_name: ::String
220
+ attr_accessor namespace: ::String
221
+ SENSITIVE: []
222
+ end
223
+
224
+ class PredictiveScalingMetricDataQuery
225
+ attr_accessor id: ::String
226
+ attr_accessor expression: ::String
227
+ attr_accessor metric_stat: Types::PredictiveScalingMetricStat
228
+ attr_accessor label: ::String
229
+ attr_accessor return_data: bool
230
+ SENSITIVE: []
231
+ end
232
+
233
+ class PredictiveScalingMetricDimension
234
+ attr_accessor name: ::String
235
+ attr_accessor value: ::String
236
+ SENSITIVE: []
237
+ end
238
+
239
+ class PredictiveScalingMetricSpecification
240
+ attr_accessor target_value: ::Float
241
+ attr_accessor predefined_metric_pair_specification: Types::PredictiveScalingPredefinedMetricPairSpecification
242
+ attr_accessor predefined_scaling_metric_specification: Types::PredictiveScalingPredefinedScalingMetricSpecification
243
+ attr_accessor predefined_load_metric_specification: Types::PredictiveScalingPredefinedLoadMetricSpecification
244
+ attr_accessor customized_scaling_metric_specification: Types::PredictiveScalingCustomizedMetricSpecification
245
+ attr_accessor customized_load_metric_specification: Types::PredictiveScalingCustomizedMetricSpecification
246
+ attr_accessor customized_capacity_metric_specification: Types::PredictiveScalingCustomizedMetricSpecification
247
+ SENSITIVE: []
248
+ end
249
+
250
+ class PredictiveScalingMetricStat
251
+ attr_accessor metric: Types::PredictiveScalingMetric
252
+ attr_accessor stat: ::String
253
+ attr_accessor unit: ::String
254
+ SENSITIVE: []
255
+ end
256
+
257
+ class PredictiveScalingPolicyConfiguration
258
+ attr_accessor metric_specifications: ::Array[Types::PredictiveScalingMetricSpecification]
259
+ attr_accessor mode: ("ForecastOnly" | "ForecastAndScale")
260
+ attr_accessor scheduling_buffer_time: ::Integer
261
+ attr_accessor max_capacity_breach_behavior: ("HonorMaxCapacity" | "IncreaseMaxCapacity")
262
+ attr_accessor max_capacity_buffer: ::Integer
263
+ SENSITIVE: []
264
+ end
265
+
266
+ class PredictiveScalingPredefinedLoadMetricSpecification
267
+ attr_accessor predefined_metric_type: ::String
268
+ attr_accessor resource_label: ::String
269
+ SENSITIVE: []
270
+ end
271
+
272
+ class PredictiveScalingPredefinedMetricPairSpecification
273
+ attr_accessor predefined_metric_type: ::String
274
+ attr_accessor resource_label: ::String
275
+ SENSITIVE: []
276
+ end
277
+
278
+ class PredictiveScalingPredefinedScalingMetricSpecification
279
+ attr_accessor predefined_metric_type: ::String
280
+ attr_accessor resource_label: ::String
281
+ SENSITIVE: []
282
+ end
283
+
182
284
  class PutScalingPolicyRequest
183
285
  attr_accessor policy_name: ::String
184
286
  attr_accessor service_namespace: ("ecs" | "elasticmapreduce" | "ec2" | "appstream" | "dynamodb" | "rds" | "sagemaker" | "custom-resource" | "comprehend" | "lambda" | "cassandra" | "kafka" | "elasticache" | "neptune" | "workspaces")
185
287
  attr_accessor resource_id: ::String
186
288
  attr_accessor scalable_dimension: ("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" | "rds:cluster:ReadReplicaCount" | "sagemaker:variant:DesiredInstanceCount" | "custom-resource:ResourceType:Property" | "comprehend:document-classifier-endpoint:DesiredInferenceUnits" | "comprehend:entity-recognizer-endpoint:DesiredInferenceUnits" | "lambda:function:ProvisionedConcurrency" | "cassandra:table:ReadCapacityUnits" | "cassandra:table:WriteCapacityUnits" | "kafka:broker-storage:VolumeSize" | "elasticache:replication-group:NodeGroups" | "elasticache:replication-group:Replicas" | "neptune:cluster:ReadReplicaCount" | "sagemaker:variant:DesiredProvisionedConcurrency" | "sagemaker:inference-component:DesiredCopyCount" | "workspaces:workspacespool:DesiredUserSessions")
187
- attr_accessor policy_type: ("StepScaling" | "TargetTrackingScaling")
289
+ attr_accessor policy_type: ("StepScaling" | "TargetTrackingScaling" | "PredictiveScaling")
188
290
  attr_accessor step_scaling_policy_configuration: Types::StepScalingPolicyConfiguration
189
291
  attr_accessor target_tracking_scaling_policy_configuration: Types::TargetTrackingScalingPolicyConfiguration
292
+ attr_accessor predictive_scaling_policy_configuration: Types::PredictiveScalingPolicyConfiguration
190
293
  SENSITIVE: []
191
294
  end
192
295
 
@@ -241,6 +344,7 @@ module Aws::ApplicationAutoScaling
241
344
  attr_accessor scalable_dimension: ("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" | "rds:cluster:ReadReplicaCount" | "sagemaker:variant:DesiredInstanceCount" | "custom-resource:ResourceType:Property" | "comprehend:document-classifier-endpoint:DesiredInferenceUnits" | "comprehend:entity-recognizer-endpoint:DesiredInferenceUnits" | "lambda:function:ProvisionedConcurrency" | "cassandra:table:ReadCapacityUnits" | "cassandra:table:WriteCapacityUnits" | "kafka:broker-storage:VolumeSize" | "elasticache:replication-group:NodeGroups" | "elasticache:replication-group:Replicas" | "neptune:cluster:ReadReplicaCount" | "sagemaker:variant:DesiredProvisionedConcurrency" | "sagemaker:inference-component:DesiredCopyCount" | "workspaces:workspacespool:DesiredUserSessions")
242
345
  attr_accessor min_capacity: ::Integer
243
346
  attr_accessor max_capacity: ::Integer
347
+ attr_accessor predicted_capacity: ::Integer
244
348
  attr_accessor role_arn: ::String
245
349
  attr_accessor creation_time: ::Time
246
350
  attr_accessor suspended_state: Types::SuspendedState
@@ -276,9 +380,10 @@ module Aws::ApplicationAutoScaling
276
380
  attr_accessor service_namespace: ("ecs" | "elasticmapreduce" | "ec2" | "appstream" | "dynamodb" | "rds" | "sagemaker" | "custom-resource" | "comprehend" | "lambda" | "cassandra" | "kafka" | "elasticache" | "neptune" | "workspaces")
277
381
  attr_accessor resource_id: ::String
278
382
  attr_accessor scalable_dimension: ("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" | "rds:cluster:ReadReplicaCount" | "sagemaker:variant:DesiredInstanceCount" | "custom-resource:ResourceType:Property" | "comprehend:document-classifier-endpoint:DesiredInferenceUnits" | "comprehend:entity-recognizer-endpoint:DesiredInferenceUnits" | "lambda:function:ProvisionedConcurrency" | "cassandra:table:ReadCapacityUnits" | "cassandra:table:WriteCapacityUnits" | "kafka:broker-storage:VolumeSize" | "elasticache:replication-group:NodeGroups" | "elasticache:replication-group:Replicas" | "neptune:cluster:ReadReplicaCount" | "sagemaker:variant:DesiredProvisionedConcurrency" | "sagemaker:inference-component:DesiredCopyCount" | "workspaces:workspacespool:DesiredUserSessions")
279
- attr_accessor policy_type: ("StepScaling" | "TargetTrackingScaling")
383
+ attr_accessor policy_type: ("StepScaling" | "TargetTrackingScaling" | "PredictiveScaling")
280
384
  attr_accessor step_scaling_policy_configuration: Types::StepScalingPolicyConfiguration
281
385
  attr_accessor target_tracking_scaling_policy_configuration: Types::TargetTrackingScalingPolicyConfiguration
386
+ attr_accessor predictive_scaling_policy_configuration: Types::PredictiveScalingPolicyConfiguration
282
387
  attr_accessor alarms: ::Array[Types::Alarm]
283
388
  attr_accessor creation_time: ::Time
284
389
  SENSITIVE: []
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.96.0
4
+ version: 1.98.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: 2024-09-24 00:00:00.000000000 Z
11
+ date: 2024-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.207.0
22
+ version: 3.210.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.207.0
32
+ version: 3.210.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement