lib/aws-sdk-ecs/client.rb in aws-sdk-ecs-1.58.0 vs lib/aws-sdk-ecs/client.rb in aws-sdk-ecs-1.59.0
- old
+ new
@@ -30,15 +30,15 @@
Aws::Plugins::GlobalConfiguration.add_identifier(:ecs)
module Aws::ECS
# An API client for ECS. To construct a client, you need to configure a `:region` and `:credentials`.
#
- # client = Aws::ECS::Client.new(
- # region: region_name,
- # credentials: credentials,
- # # ...
- # )
+ # client = Aws::ECS::Client.new(
+ # region: region_name,
+ # credentials: credentials,
+ # # ...
+ # )
#
# For details on configuring region and credentials see
# the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
#
# See {#initialize} for a full list of supported configuration options.
@@ -227,20 +227,24 @@
# used by the default backoff function. This option is only used in the
# `legacy` retry mode.
#
# @option options [String] :retry_mode ("legacy")
# Specifies which retry algorithm to use. Values are:
- # * `legacy` - The pre-existing retry behavior. This is default value if
- # no retry mode is provided.
- # * `standard` - A standardized set of retry rules across the AWS SDKs.
- # This includes support for retry quotas, which limit the number of
- # unsuccessful retries a client can make.
- # * `adaptive` - An experimental retry mode that includes all the
- # functionality of `standard` mode along with automatic client side
- # throttling. This is a provisional mode that may change behavior
- # in the future.
#
+ # * `legacy` - The pre-existing retry behavior. This is default value if
+ # no retry mode is provided.
+ #
+ # * `standard` - A standardized set of retry rules across the AWS SDKs.
+ # This includes support for retry quotas, which limit the number of
+ # unsuccessful retries a client can make.
+ #
+ # * `adaptive` - An experimental retry mode that includes all the
+ # functionality of `standard` mode along with automatic client side
+ # throttling. This is a provisional mode that may change behavior
+ # in the future.
+ #
+ #
# @option options [String] :secret_access_key
#
# @option options [String] :session_token
#
# @option options [Boolean] :simple_json (false)
@@ -613,11 +617,12 @@
end
# Runs and maintains a desired number of tasks from a specified task
# definition. If the number of tasks running in a service drops below
# the `desiredCount`, Amazon ECS runs another copy of the task in the
- # specified cluster. To update an existing service, see UpdateService.
+ # specified cluster. To update an existing service, see the
+ # UpdateService action.
#
# In addition to maintaining the desired count of tasks in your service,
# you can optionally run your service behind one or more load balancers.
# The load balancers distribute traffic across the tasks that are
# associated with the service. For more information, see [Service Load
@@ -942,19 +947,22 @@
# [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-networking.html
#
# @option params [Integer] :health_check_grace_period_seconds
# The period of time, in seconds, that the Amazon ECS service scheduler
# should ignore unhealthy Elastic Load Balancing target health checks
- # after a task has first started. This is only valid if your service is
- # configured to use a load balancer. If your service's tasks take a
- # while to start and respond to Elastic Load Balancing health checks,
- # you can specify a health check grace period of up to 2,147,483,647
- # seconds. During that time, the ECS service scheduler ignores health
- # check status. This grace period can prevent the ECS service scheduler
- # from marking tasks as unhealthy and stopping them before they have
- # time to come up.
+ # after a task has first started. This is only used when your service is
+ # configured to use a load balancer. If your service has a load balancer
+ # defined and you don't specify a health check grace period value, the
+ # default value of `0` is used.
#
+ # If your service's tasks take a while to start and respond to Elastic
+ # Load Balancing health checks, you can specify a health check grace
+ # period of up to 2,147,483,647 seconds. During that time, the Amazon
+ # ECS service scheduler ignores health check status. This grace period
+ # can prevent the service scheduler from marking tasks as unhealthy and
+ # stopping them before they have time to come up.
+ #
# @option params [String] :scheduling_strategy
# The scheduling strategy to use for the service. For more information,
# see [Services][1].
#
# There are two service scheduler strategies available:
@@ -7422,10 +7430,30 @@
#
# @option params [Types::NetworkConfiguration] :network_configuration
# An object representing the network configuration for a task or
# service.
#
+ # @option params [Array<Types::PlacementConstraint>] :placement_constraints
+ # An array of task placement constraint objects to update the service to
+ # use. If no value is specified, the existing placement constraints for
+ # the service will remain unchanged. If this value is specified, it will
+ # override any existing placement constraints defined for the service.
+ # To remove all existing placement constraints, specify an empty array.
+ #
+ # You can specify a maximum of 10 constraints per task (this limit
+ # includes constraints in the task definition and those specified at
+ # runtime).
+ #
+ # @option params [Array<Types::PlacementStrategy>] :placement_strategy
+ # The task placement strategy objects to update the service to use. If
+ # no value is specified, the existing placement strategy for the service
+ # will remain unchanged. If this value is specified, it will override
+ # the existing placement strategy defined for the service. To remove an
+ # existing placement strategy, specify an empty object.
+ #
+ # You can specify a maximum of five strategy rules per service.
+ #
# @option params [String] :platform_version
# The platform version on which your tasks in the service are running. A
# platform version is only specified for tasks using the Fargate launch
# type. If a platform version is not specified, the `LATEST` platform
# version is used by default. For more information, see [AWS Fargate
@@ -7510,10 +7538,22 @@
# subnets: ["String"], # required
# security_groups: ["String"],
# assign_public_ip: "ENABLED", # accepts ENABLED, DISABLED
# },
# },
+ # placement_constraints: [
+ # {
+ # type: "distinctInstance", # accepts distinctInstance, memberOf
+ # expression: "String",
+ # },
+ # ],
+ # placement_strategy: [
+ # {
+ # type: "random", # accepts random, spread, binpack
+ # field: "String",
+ # },
+ # ],
# platform_version: "String",
# force_new_deployment: false,
# health_check_grace_period_seconds: 1,
# })
#
@@ -7836,10 +7876,10 @@
operation: config.api.operation(operation_name),
client: self,
params: params,
config: config)
context[:gem_name] = 'aws-sdk-ecs'
- context[:gem_version] = '1.58.0'
+ context[:gem_version] = '1.59.0'
Seahorse::Client::Request.new(handlers, context)
end
# Polls an API operation until a resource enters a desired state.
#