lib/aws-sdk-applicationautoscaling/client.rb in aws-sdk-applicationautoscaling-1.4.0 vs lib/aws-sdk-applicationautoscaling/client.rb in aws-sdk-applicationautoscaling-1.5.0
- old
+ new
@@ -199,10 +199,13 @@
#
# * DynamoDB global secondary index - The resource type is `index` and
# the unique identifier is the resource ID. Example:
# `table/my-table/index/my-table-index`.
#
+ # * Aurora DB cluster - The resource type is `cluster` and the unique
+ # identifier is the cluster name. Example: `cluster:my-db-cluster`.
+ #
# @option params [required, String] :scalable_dimension
# The scalable dimension. This string consists of the service namespace,
# resource type, and scaling property.
#
# * `ecs:service:DesiredCount` - The desired task count of an ECS
@@ -227,10 +230,13 @@
# for a DynamoDB global secondary index.
#
# * `dynamodb:index:WriteCapacityUnits` - The provisioned write capacity
# for a DynamoDB global secondary index.
#
+ # * `rds:cluster:ReadReplicaCount` - The count of Aurora Replicas in an
+ # Aurora DB cluster. Available for Aurora MySQL-compatible edition.
+ #
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
#
#
# @example Example: To delete a scaling policy
#
@@ -250,13 +256,13 @@
#
# @example Request syntax with placeholder values
#
# resp = client.delete_scaling_policy({
# policy_name: "ResourceIdMaxLen1600", # required
- # service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb
+ # service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb, rds
# resource_id: "ResourceIdMaxLen1600", # required
- # 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
+ # 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, rds:cluster:ReadReplicaCount
# })
#
# @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeleteScalingPolicy AWS API Documentation
#
# @overload delete_scaling_policy(params = {})
@@ -303,10 +309,13 @@
#
# * DynamoDB global secondary index - The resource type is `index` and
# the unique identifier is the resource ID. Example:
# `table/my-table/index/my-table-index`.
#
+ # * Aurora DB cluster - The resource type is `cluster` and the unique
+ # identifier is the cluster name. Example: `cluster:my-db-cluster`.
+ #
# @option params [String] :scalable_dimension
# The scalable dimension. This string consists of the service namespace,
# resource type, and scaling property.
#
# * `ecs:service:DesiredCount` - The desired task count of an ECS
@@ -331,19 +340,22 @@
# for a DynamoDB global secondary index.
#
# * `dynamodb:index:WriteCapacityUnits` - The provisioned write capacity
# for a DynamoDB global secondary index.
#
+ # * `rds:cluster:ReadReplicaCount` - The count of Aurora Replicas in an
+ # Aurora DB cluster. Available for Aurora MySQL-compatible edition.
+ #
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
#
# @example Request syntax with placeholder values
#
# resp = client.delete_scheduled_action({
- # service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb
+ # service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb, rds
# scheduled_action_name: "ResourceIdMaxLen1600", # required
# resource_id: "ResourceIdMaxLen1600", # required
- # 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
+ # 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, rds:cluster:ReadReplicaCount
# })
#
# @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeleteScheduledAction AWS API Documentation
#
# @overload delete_scheduled_action(params = {})
@@ -393,10 +405,13 @@
#
# * DynamoDB global secondary index - The resource type is `index` and
# the unique identifier is the resource ID. Example:
# `table/my-table/index/my-table-index`.
#
+ # * Aurora DB cluster - The resource type is `cluster` and the unique
+ # identifier is the cluster name. Example: `cluster:my-db-cluster`.
+ #
# @option params [required, String] :scalable_dimension
# The scalable dimension associated with the scalable target. This
# string consists of the service namespace, resource type, and scaling
# property.
#
@@ -422,10 +437,13 @@
# for a DynamoDB global secondary index.
#
# * `dynamodb:index:WriteCapacityUnits` - The provisioned write capacity
# for a DynamoDB global secondary index.
#
+ # * `rds:cluster:ReadReplicaCount` - The count of Aurora Replicas in an
+ # Aurora DB cluster. Available for Aurora MySQL-compatible edition.
+ #
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
#
#
# @example Example: To deregister a scalable target
#
@@ -443,13 +461,13 @@
# }
#
# @example Request syntax with placeholder values
#
# resp = client.deregister_scalable_target({
- # service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb
+ # service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb, rds
# resource_id: "ResourceIdMaxLen1600", # required
- # 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
+ # 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, rds:cluster:ReadReplicaCount
# })
#
# @see http://docs.aws.amazon.com/goto/WebAPI/application-autoscaling-2016-02-06/DeregisterScalableTarget AWS API Documentation
#
# @overload deregister_scalable_target(params = {})
@@ -502,10 +520,13 @@
#
# * DynamoDB global secondary index - The resource type is `index` and
# the unique identifier is the resource ID. Example:
# `table/my-table/index/my-table-index`.
#
+ # * Aurora DB cluster - The resource type is `cluster` and the unique
+ # identifier is the cluster name. Example: `cluster:my-db-cluster`.
+ #
# @option params [String] :scalable_dimension
# The scalable dimension associated with the scalable target. This
# string consists of the service namespace, resource type, and scaling
# property. If you specify a scalable dimension, you must also specify a
# resource ID.
@@ -532,10 +553,13 @@
# for a DynamoDB global secondary index.
#
# * `dynamodb:index:WriteCapacityUnits` - The provisioned write capacity
# for a DynamoDB global secondary index.
#
+ # * `rds:cluster:ReadReplicaCount` - The count of Aurora Replicas in an
+ # Aurora DB cluster. Available for Aurora MySQL-compatible edition.
+ #
# @option params [Integer] :max_results
# The maximum number of scalable target results. This value can be
# between 1 and 50. The default value is 50.
#
# If this parameter is used, the operation returns up to `MaxResults`
@@ -577,23 +601,23 @@
# }
#
# @example Request syntax with placeholder values
#
# resp = client.describe_scalable_targets({
- # service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb
+ # service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb, rds
# resource_ids: ["ResourceIdMaxLen1600"],
- # 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
+ # 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, rds:cluster:ReadReplicaCount
# max_results: 1,
# next_token: "XmlString",
# })
#
# @example Response structure
#
# resp.scalable_targets #=> Array
- # resp.scalable_targets[0].service_namespace #=> String, one of "ecs", "elasticmapreduce", "ec2", "appstream", "dynamodb"
+ # resp.scalable_targets[0].service_namespace #=> String, one of "ecs", "elasticmapreduce", "ec2", "appstream", "dynamodb", "rds"
# resp.scalable_targets[0].resource_id #=> String
- # 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"
+ # 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", "rds:cluster:ReadReplicaCount"
# resp.scalable_targets[0].min_capacity #=> Integer
# resp.scalable_targets[0].max_capacity #=> Integer
# resp.scalable_targets[0].role_arn #=> String
# resp.scalable_targets[0].creation_time #=> Time
# resp.next_token #=> String
@@ -651,10 +675,13 @@
#
# * DynamoDB global secondary index - The resource type is `index` and
# the unique identifier is the resource ID. Example:
# `table/my-table/index/my-table-index`.
#
+ # * Aurora DB cluster - The resource type is `cluster` and the unique
+ # identifier is the cluster name. Example: `cluster:my-db-cluster`.
+ #
# @option params [String] :scalable_dimension
# The scalable dimension. This string consists of the service namespace,
# resource type, and scaling property. If you specify a scalable
# dimension, you must also specify a resource ID.
#
@@ -680,10 +707,13 @@
# for a DynamoDB global secondary index.
#
# * `dynamodb:index:WriteCapacityUnits` - The provisioned write capacity
# for a DynamoDB global secondary index.
#
+ # * `rds:cluster:ReadReplicaCount` - The count of Aurora Replicas in an
+ # Aurora DB cluster. Available for Aurora MySQL-compatible edition.
+ #
# @option params [Integer] :max_results
# The maximum number of scalable target results. This value can be
# between 1 and 50. The default value is 50.
#
# If this parameter is used, the operation returns up to `MaxResults`
@@ -731,24 +761,24 @@
# }
#
# @example Request syntax with placeholder values
#
# resp = client.describe_scaling_activities({
- # service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb
+ # service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb, rds
# resource_id: "ResourceIdMaxLen1600",
- # 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
+ # 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, rds:cluster:ReadReplicaCount
# max_results: 1,
# next_token: "XmlString",
# })
#
# @example Response structure
#
# resp.scaling_activities #=> Array
# resp.scaling_activities[0].activity_id #=> String
- # resp.scaling_activities[0].service_namespace #=> String, one of "ecs", "elasticmapreduce", "ec2", "appstream", "dynamodb"
+ # resp.scaling_activities[0].service_namespace #=> String, one of "ecs", "elasticmapreduce", "ec2", "appstream", "dynamodb", "rds"
# resp.scaling_activities[0].resource_id #=> String
- # 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"
+ # 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", "rds:cluster:ReadReplicaCount"
# resp.scaling_activities[0].description #=> String
# resp.scaling_activities[0].cause #=> String
# resp.scaling_activities[0].start_time #=> Time
# resp.scaling_activities[0].end_time #=> Time
# resp.scaling_activities[0].status_code #=> String, one of "Pending", "InProgress", "Successful", "Overridden", "Unfulfilled", "Failed"
@@ -810,10 +840,13 @@
#
# * DynamoDB global secondary index - The resource type is `index` and
# the unique identifier is the resource ID. Example:
# `table/my-table/index/my-table-index`.
#
+ # * Aurora DB cluster - The resource type is `cluster` and the unique
+ # identifier is the cluster name. Example: `cluster:my-db-cluster`.
+ #
# @option params [String] :scalable_dimension
# The scalable dimension. This string consists of the service namespace,
# resource type, and scaling property. If you specify a scalable
# dimension, you must also specify a resource ID.
#
@@ -839,10 +872,13 @@
# for a DynamoDB global secondary index.
#
# * `dynamodb:index:WriteCapacityUnits` - The provisioned write capacity
# for a DynamoDB global secondary index.
#
+ # * `rds:cluster:ReadReplicaCount` - The count of Aurora Replicas in an
+ # Aurora DB cluster. Available for Aurora MySQL-compatible edition.
+ #
# @option params [Integer] :max_results
# The maximum number of scalable target results. This value can be
# between 1 and 50. The default value is 50.
#
# If this parameter is used, the operation returns up to `MaxResults`
@@ -902,36 +938,36 @@
#
# @example Request syntax with placeholder values
#
# resp = client.describe_scaling_policies({
# policy_names: ["ResourceIdMaxLen1600"],
- # service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb
+ # service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb, rds
# resource_id: "ResourceIdMaxLen1600",
- # 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
+ # 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, rds:cluster:ReadReplicaCount
# max_results: 1,
# next_token: "XmlString",
# })
#
# @example Response structure
#
# resp.scaling_policies #=> Array
# resp.scaling_policies[0].policy_arn #=> String
# resp.scaling_policies[0].policy_name #=> String
- # resp.scaling_policies[0].service_namespace #=> String, one of "ecs", "elasticmapreduce", "ec2", "appstream", "dynamodb"
+ # resp.scaling_policies[0].service_namespace #=> String, one of "ecs", "elasticmapreduce", "ec2", "appstream", "dynamodb", "rds"
# resp.scaling_policies[0].resource_id #=> String
- # 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"
+ # 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", "rds:cluster:ReadReplicaCount"
# resp.scaling_policies[0].policy_type #=> String, one of "StepScaling", "TargetTrackingScaling"
# resp.scaling_policies[0].step_scaling_policy_configuration.adjustment_type #=> String, one of "ChangeInCapacity", "PercentChangeInCapacity", "ExactCapacity"
# resp.scaling_policies[0].step_scaling_policy_configuration.step_adjustments #=> Array
# resp.scaling_policies[0].step_scaling_policy_configuration.step_adjustments[0].metric_interval_lower_bound #=> Float
# resp.scaling_policies[0].step_scaling_policy_configuration.step_adjustments[0].metric_interval_upper_bound #=> Float
# resp.scaling_policies[0].step_scaling_policy_configuration.step_adjustments[0].scaling_adjustment #=> Integer
# resp.scaling_policies[0].step_scaling_policy_configuration.min_adjustment_magnitude #=> Integer
# resp.scaling_policies[0].step_scaling_policy_configuration.cooldown #=> Integer
# resp.scaling_policies[0].step_scaling_policy_configuration.metric_aggregation_type #=> String, one of "Average", "Minimum", "Maximum"
# resp.scaling_policies[0].target_tracking_scaling_policy_configuration.target_value #=> Float
- # resp.scaling_policies[0].target_tracking_scaling_policy_configuration.predefined_metric_specification.predefined_metric_type #=> String, one of "DynamoDBReadCapacityUtilization", "DynamoDBWriteCapacityUtilization"
+ # resp.scaling_policies[0].target_tracking_scaling_policy_configuration.predefined_metric_specification.predefined_metric_type #=> String, one of "DynamoDBReadCapacityUtilization", "DynamoDBWriteCapacityUtilization", "RDSReaderAverageCPUUtilization", "RDSReaderAverageDatabaseConnections"
# resp.scaling_policies[0].target_tracking_scaling_policy_configuration.predefined_metric_specification.resource_label #=> String
# resp.scaling_policies[0].target_tracking_scaling_policy_configuration.customized_metric_specification.metric_name #=> String
# resp.scaling_policies[0].target_tracking_scaling_policy_configuration.customized_metric_specification.namespace #=> String
# resp.scaling_policies[0].target_tracking_scaling_policy_configuration.customized_metric_specification.dimensions #=> Array
# resp.scaling_policies[0].target_tracking_scaling_policy_configuration.customized_metric_specification.dimensions[0].name #=> String
@@ -1001,10 +1037,13 @@
#
# * DynamoDB global secondary index - The resource type is `index` and
# the unique identifier is the resource ID. Example:
# `table/my-table/index/my-table-index`.
#
+ # * Aurora DB cluster - The resource type is `cluster` and the unique
+ # identifier is the cluster name. Example: `cluster:my-db-cluster`.
+ #
# @option params [String] :scalable_dimension
# The scalable dimension. This string consists of the service namespace,
# resource type, and scaling property. If you specify a scalable
# dimension, you must also specify a resource ID.
#
@@ -1030,12 +1069,15 @@
# for a DynamoDB global secondary index.
#
# * `dynamodb:index:WriteCapacityUnits` - The provisioned write capacity
# for a DynamoDB global secondary index.
#
+ # * `rds:cluster:ReadReplicaCount` - The count of Aurora Replicas in an
+ # Aurora DB cluster. Available for Aurora MySQL-compatible edition.
+ #
# @option params [Integer] :max_results
- # The maximum number of scalable target results. This value can be
+ # The maximum number of scheduled action results. This value can be
# between 1 and 50. The default value is 50.
#
# If this parameter is used, the operation returns up to `MaxResults`
# results at a time, along with a `NextToken` value. To get the next set
# of results, include the `NextToken` value in a subsequent call. If
@@ -1052,26 +1094,26 @@
#
# @example Request syntax with placeholder values
#
# resp = client.describe_scheduled_actions({
# scheduled_action_names: ["ResourceIdMaxLen1600"],
- # service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb
+ # service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb, rds
# resource_id: "ResourceIdMaxLen1600",
- # 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
+ # 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, rds:cluster:ReadReplicaCount
# max_results: 1,
# next_token: "XmlString",
# })
#
# @example Response structure
#
# resp.scheduled_actions #=> Array
# resp.scheduled_actions[0].scheduled_action_name #=> String
# resp.scheduled_actions[0].scheduled_action_arn #=> String
- # resp.scheduled_actions[0].service_namespace #=> String, one of "ecs", "elasticmapreduce", "ec2", "appstream", "dynamodb"
+ # resp.scheduled_actions[0].service_namespace #=> String, one of "ecs", "elasticmapreduce", "ec2", "appstream", "dynamodb", "rds"
# resp.scheduled_actions[0].schedule #=> String
# resp.scheduled_actions[0].resource_id #=> String
- # resp.scheduled_actions[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"
+ # resp.scheduled_actions[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", "rds:cluster:ReadReplicaCount"
# resp.scheduled_actions[0].start_time #=> Time
# resp.scheduled_actions[0].end_time #=> Time
# resp.scheduled_actions[0].scalable_target_action.min_capacity #=> Integer
# resp.scheduled_actions[0].scalable_target_action.max_capacity #=> Integer
# resp.scheduled_actions[0].creation_time #=> Time
@@ -1138,10 +1180,13 @@
#
# * DynamoDB global secondary index - The resource type is `index` and
# the unique identifier is the resource ID. Example:
# `table/my-table/index/my-table-index`.
#
+ # * Aurora DB cluster - The resource type is `cluster` and the unique
+ # identifier is the cluster name. Example: `cluster:my-db-cluster`.
+ #
# @option params [required, String] :scalable_dimension
# The scalable dimension. This string consists of the service namespace,
# resource type, and scaling property.
#
# * `ecs:service:DesiredCount` - The desired task count of an ECS
@@ -1166,10 +1211,13 @@
# for a DynamoDB global secondary index.
#
# * `dynamodb:index:WriteCapacityUnits` - The provisioned write capacity
# for a DynamoDB global secondary index.
#
+ # * `rds:cluster:ReadReplicaCount` - The count of Aurora Replicas in an
+ # Aurora DB cluster. Available for Aurora MySQL-compatible edition.
+ #
# @option params [String] :policy_type
# The policy type. If you are creating a new policy, this parameter is
# required. If you are updating a policy, this parameter is not
# required.
#
@@ -1252,13 +1300,13 @@
#
# @example Request syntax with placeholder values
#
# resp = client.put_scaling_policy({
# policy_name: "PolicyName", # required
- # service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb
+ # service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb, rds
# resource_id: "ResourceIdMaxLen1600", # required
- # 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
+ # 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, rds:cluster:ReadReplicaCount
# policy_type: "StepScaling", # accepts StepScaling, TargetTrackingScaling
# step_scaling_policy_configuration: {
# adjustment_type: "ChangeInCapacity", # accepts ChangeInCapacity, PercentChangeInCapacity, ExactCapacity
# step_adjustments: [
# {
@@ -1272,11 +1320,11 @@
# metric_aggregation_type: "Average", # accepts Average, Minimum, Maximum
# },
# target_tracking_scaling_policy_configuration: {
# target_value: 1.0, # required
# predefined_metric_specification: {
- # predefined_metric_type: "DynamoDBReadCapacityUtilization", # required, accepts DynamoDBReadCapacityUtilization, DynamoDBWriteCapacityUtilization
+ # predefined_metric_type: "DynamoDBReadCapacityUtilization", # required, accepts DynamoDBReadCapacityUtilization, DynamoDBWriteCapacityUtilization, RDSReaderAverageCPUUtilization, RDSReaderAverageDatabaseConnections
# resource_label: "ResourceLabel",
# },
# customized_metric_specification: {
# metric_name: "MetricName", # required
# namespace: "MetricNamespace", # required
@@ -1385,10 +1433,13 @@
#
# * DynamoDB global secondary index - The resource type is `index` and
# the unique identifier is the resource ID. Example:
# `table/my-table/index/my-table-index`.
#
+ # * Aurora DB cluster - The resource type is `cluster` and the unique
+ # identifier is the cluster name. Example: `cluster:my-db-cluster`.
+ #
# @option params [String] :scalable_dimension
# The scalable dimension. This string consists of the service namespace,
# resource type, and scaling property.
#
# * `ecs:service:DesiredCount` - The desired task count of an ECS
@@ -1413,10 +1464,13 @@
# for a DynamoDB global secondary index.
#
# * `dynamodb:index:WriteCapacityUnits` - The provisioned write capacity
# for a DynamoDB global secondary index.
#
+ # * `rds:cluster:ReadReplicaCount` - The count of Aurora Replicas in an
+ # Aurora DB cluster. Available for Aurora MySQL-compatible edition.
+ #
# @option params [Time,DateTime,Date,Integer,String] :start_time
# The date and time for the scheduled action to start.
#
# @option params [Time,DateTime,Date,Integer,String] :end_time
# The date and time for the scheduled action to end.
@@ -1431,15 +1485,15 @@
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
#
# @example Request syntax with placeholder values
#
# resp = client.put_scheduled_action({
- # service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb
+ # service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb, rds
# schedule: "ResourceIdMaxLen1600",
# scheduled_action_name: "ScheduledActionName", # required
# resource_id: "ResourceIdMaxLen1600", # required
- # 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
+ # 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, rds:cluster:ReadReplicaCount
# start_time: Time.now,
# end_time: Time.now,
# scalable_target_action: {
# min_capacity: 1,
# max_capacity: 1,
@@ -1499,10 +1553,13 @@
#
# * DynamoDB global secondary index - The resource type is `index` and
# the unique identifier is the resource ID. Example:
# `table/my-table/index/my-table-index`.
#
+ # * Aurora DB cluster - The resource type is `cluster` and the unique
+ # identifier is the cluster name. Example: `cluster:my-db-cluster`.
+ #
# @option params [required, String] :scalable_dimension
# The scalable dimension associated with the scalable target. This
# string consists of the service namespace, resource type, and scaling
# property.
#
@@ -1528,10 +1585,13 @@
# for a DynamoDB global secondary index.
#
# * `dynamodb:index:WriteCapacityUnits` - The provisioned write capacity
# for a DynamoDB global secondary index.
#
+ # * `rds:cluster:ReadReplicaCount` - The count of Aurora Replicas in an
+ # Aurora DB cluster. Available for Aurora MySQL-compatible edition.
+ #
# @option params [Integer] :min_capacity
# The minimum value to scale to in response to a scale in event. This
# parameter is required if you are registering a scalable target and
# optional if you are updating one.
#
@@ -1540,13 +1600,24 @@
# parameter is required if you are registering a scalable target and
# optional if you are updating one.
#
# @option params [String] :role_arn
# The ARN of an IAM role that allows Application Auto Scaling to modify
- # the scalable target on your behalf. This parameter is required when
- # you register a scalable target and optional when you update one.
+ # the scalable target on your behalf.
#
+ # With Amazon RDS resources, permissions are granted using a
+ # service-linked role. For more information, see [Service-Linked Roles
+ # for Application Auto Scaling][1].
+ #
+ # For resources that are not supported using a service-linked role, this
+ # parameter is required when you register a scalable target and optional
+ # when you update one.
+ #
+ #
+ #
+ # [1]: http://docs.aws.amazon.com/ApplicationAutoScaling/latest/APIReference/application-autoscaling-service-linked-roles.html
+ #
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
#
#
# @example Example: To register an ECS service as a scalable target
#
@@ -1581,13 +1652,13 @@
# }
#
# @example Request syntax with placeholder values
#
# resp = client.register_scalable_target({
- # service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb
+ # service_namespace: "ecs", # required, accepts ecs, elasticmapreduce, ec2, appstream, dynamodb, rds
# resource_id: "ResourceIdMaxLen1600", # required
- # 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
+ # 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, rds:cluster:ReadReplicaCount
# min_capacity: 1,
# max_capacity: 1,
# role_arn: "ResourceIdMaxLen1600",
# })
#
@@ -1611,10 +1682,10 @@
operation: config.api.operation(operation_name),
client: self,
params: params,
config: config)
context[:gem_name] = 'aws-sdk-applicationautoscaling'
- context[:gem_version] = '1.4.0'
+ context[:gem_version] = '1.5.0'
Seahorse::Client::Request.new(handlers, context)
end
# @api private
# @deprecated