aws-sdk-ecs 1.35.0 → 1.36.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: ba90a0ff5655745d32a75f4d4bfd453160b737a1
4
- data.tar.gz: 5381a764be0f7492e3a3effa800bc9c3d4df0f56
3
+ metadata.gz: 2019ee6ea14fa7ba8d023667d486def343e0e1a2
4
+ data.tar.gz: 104bb8f77fda44a2a3497b50b7d246aa066c5d2e
5
5
  SHA512:
6
- metadata.gz: '0481f485e658d2ebf9422738182c8d1bbeaa7b0e4fb0f0dc8e80b3ebef70fcb34bda129917f77dabf35318a1921d6c56db09bf72ce3fbf251cd5e354af623d4a'
7
- data.tar.gz: f9e713af2da59f2d39d897eab354c1624410027c157de46134d8b70e4c1f2ad0277722ac3db08796876dc35d8505f61a023c1bd4f85a8ee7889974262efb6dd0
6
+ metadata.gz: 163d0ca7decd652184a46462524ec47bae5fc7633a3b47b3b87c49f66c8822135b22989706580abc7d947d90c7ca72893aa70a69b7013f7b77b60db7e35287d1
7
+ data.tar.gz: ba4e880571a3445ad072b12dc317b2d06859159711792ebb9fb0540938d7428346c10aa77fe405d128629fb94067936571b2cedb6154e12608fa768524b9dd82
@@ -43,6 +43,6 @@ require_relative 'aws-sdk-ecs/customizations'
43
43
  # @service
44
44
  module Aws::ECS
45
45
 
46
- GEM_VERSION = '1.35.0'
46
+ GEM_VERSION = '1.36.0'
47
47
 
48
48
  end
@@ -209,6 +209,49 @@ module Aws::ECS
209
209
  # When `true`, request parameters are validated before
210
210
  # sending the request.
211
211
  #
212
+ # @option options [URI::HTTP,String] :http_proxy A proxy to send
213
+ # requests through. Formatted like 'http://proxy.com:123'.
214
+ #
215
+ # @option options [Float] :http_open_timeout (15) The number of
216
+ # seconds to wait when opening a HTTP session before rasing a
217
+ # `Timeout::Error`.
218
+ #
219
+ # @option options [Integer] :http_read_timeout (60) The default
220
+ # number of seconds to wait for response data. This value can
221
+ # safely be set
222
+ # per-request on the session yeidled by {#session_for}.
223
+ #
224
+ # @option options [Float] :http_idle_timeout (5) The number of
225
+ # seconds a connection is allowed to sit idble before it is
226
+ # considered stale. Stale connections are closed and removed
227
+ # from the pool before making a request.
228
+ #
229
+ # @option options [Float] :http_continue_timeout (1) The number of
230
+ # seconds to wait for a 100-continue response before sending the
231
+ # request body. This option has no effect unless the request has
232
+ # "Expect" header set to "100-continue". Defaults to `nil` which
233
+ # disables this behaviour. This value can safely be set per
234
+ # request on the session yeidled by {#session_for}.
235
+ #
236
+ # @option options [Boolean] :http_wire_trace (false) When `true`,
237
+ # HTTP debug output will be sent to the `:logger`.
238
+ #
239
+ # @option options [Boolean] :ssl_verify_peer (true) When `true`,
240
+ # SSL peer certificates are verified when establishing a
241
+ # connection.
242
+ #
243
+ # @option options [String] :ssl_ca_bundle Full path to the SSL
244
+ # certificate authority bundle file that should be used when
245
+ # verifying peer certificates. If you do not pass
246
+ # `:ssl_ca_bundle` or `:ssl_ca_directory` the the system default
247
+ # will be used if available.
248
+ #
249
+ # @option options [String] :ssl_ca_directory Full path of the
250
+ # directory that contains the unbundled SSL certificate
251
+ # authority files for verifying peer certificates. If you do
252
+ # not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the
253
+ # system default will be used if available.
254
+ #
212
255
  def initialize(*args)
213
256
  super
214
257
  end
@@ -312,7 +355,7 @@ module Aws::ECS
312
355
 
313
356
  # Runs and maintains a desired number of tasks from a specified task
314
357
  # definition. If the number of tasks running in a service drops below
315
- # `desiredCount`, Amazon ECS spawns another copy of the task in the
358
+ # the `desiredCount`, Amazon ECS spawns another copy of the task in the
316
359
  # specified cluster. To update an existing service, see UpdateService.
317
360
  #
318
361
  # In addition to maintaining the desired count of tasks in your service,
@@ -321,26 +364,52 @@ module Aws::ECS
321
364
  # the service. For more information, see [Service Load Balancing][1] in
322
365
  # the *Amazon Elastic Container Service Developer Guide*.
323
366
  #
367
+ # Tasks for services that *do not* use a load balancer are considered
368
+ # healthy if they're in the `RUNNING` state. Tasks for services that
369
+ # *do* use a load balancer are considered healthy if they're in the
370
+ # `RUNNING` state and the container instance that they're hosted on is
371
+ # reported as healthy by the load balancer.
372
+ #
373
+ # There are two service scheduler strategies available:
374
+ #
375
+ # * `REPLICA` - The replica scheduling strategy places and maintains the
376
+ # desired number of tasks across your cluster. By default, the service
377
+ # scheduler spreads tasks across Availability Zones. You can use task
378
+ # placement strategies and constraints to customize task placement
379
+ # decisions. For more information, see [Service Scheduler Concepts][2]
380
+ # in the *Amazon Elastic Container Service Developer Guide*.
381
+ #
382
+ # * `DAEMON` - The daemon scheduling strategy deploys exactly one task
383
+ # on each active container instance that meets all of the task
384
+ # placement constraints that you specify in your cluster. When using
385
+ # this strategy, you don't need to specify a desired number of tasks,
386
+ # a task placement strategy, or use Service Auto Scaling policies. For
387
+ # more information, see [Service Scheduler Concepts][2] in the *Amazon
388
+ # Elastic Container Service Developer Guide*.
389
+ #
324
390
  # You can optionally specify a deployment configuration for your
325
391
  # service. The deployment is triggered by changing properties, such as
326
392
  # the task definition or the desired count of a service, with an
327
- # UpdateService operation.
393
+ # UpdateService operation. The default value for a replica service for
394
+ # `minimumHealthyPercent` is 100%. The default value for a daemon
395
+ # service for `minimumHealthyPercent` is 0%.
328
396
  #
329
- # If a service is using the `ECS` deployment controller, the **minimum
330
- # healthy percent** represents a lower limit on the number of tasks in a
397
+ # If a service is using the `ECS` deployment controller, the minimum
398
+ # healthy percent represents a lower limit on the number of tasks in a
331
399
  # service that must remain in the `RUNNING` state during a deployment,
332
400
  # as a percentage of the desired number of tasks (rounded up to the
333
401
  # nearest integer), and while any container instances are in the
334
402
  # `DRAINING` state if the service contains tasks using the EC2 launch
335
403
  # type. This parameter enables you to deploy without using additional
336
404
  # cluster capacity. For example, if your service has a desired number of
337
- # four tasks and a minimum healthy percent of 50%, the scheduler may
405
+ # four tasks and a minimum healthy percent of 50%, the scheduler might
338
406
  # stop two existing tasks to free up cluster capacity before starting
339
407
  # two new tasks. Tasks for services that *do not* use a load balancer
340
- # are considered healthy if they are in the `RUNNING` state; tasks for
341
- # services that *do* use a load balancer are considered healthy if they
342
- # are in the `RUNNING` state and they are reported as healthy by the
343
- # load balancer. The default value for minimum healthy percent is 100%.
408
+ # are considered healthy if they're in the `RUNNING` state. Tasks for
409
+ # services that *do* use a load balancer are considered healthy if
410
+ # they're in the `RUNNING` state and they're reported as healthy by
411
+ # the load balancer. The default value for minimum healthy percent is
412
+ # 100%.
344
413
  #
345
414
  # If a service is using the `ECS` deployment controller, the **maximum
346
415
  # percent** parameter represents an upper limit on the number of tasks
@@ -355,23 +424,22 @@ module Aws::ECS
355
424
  # tasks (provided that the cluster resources required to do this are
356
425
  # available). The default value for maximum percent is 200%.
357
426
  #
358
- # If a service is using the `CODE_DEPLOY` deployment controller and
359
- # tasks that use the EC2 launch type, the **minimum healthy percent**
360
- # and **maximum percent** values are only used to define the lower and
361
- # upper limit on the number of the tasks in the service that remain in
362
- # the `RUNNING` state while the container instances are in the
363
- # `DRAINING` state. If the tasks in the service use the Fargate launch
364
- # type, the minimum healthy percent and maximum percent values are not
365
- # used, although they are currently visible when describing your
366
- # service.
367
- #
368
- # Tasks for services that *do not* use a load balancer are considered
369
- # healthy if they are in the `RUNNING` state. Tasks for services that
370
- # *do* use a load balancer are considered healthy if they are in the
371
- # `RUNNING` state and the container instance they are hosted on is
372
- # reported as healthy by the load balancer. The default value for a
373
- # replica service for `minimumHealthyPercent` is 100%. The default value
374
- # for a daemon service for `minimumHealthyPercent` is 0%.
427
+ # If a service is using either the `CODE_DEPLOY` or `EXTERNAL`
428
+ # deployment controller types and tasks that use the EC2 launch type,
429
+ # the **minimum healthy percent** and **maximum percent** values are
430
+ # used only to define the lower and upper limit on the number of the
431
+ # tasks in the service that remain in the `RUNNING` state while the
432
+ # container instances are in the `DRAINING` state. If the tasks in the
433
+ # service use the Fargate launch type, the minimum healthy percent and
434
+ # maximum percent values aren't used, although they're currently
435
+ # visible when describing your service.
436
+ #
437
+ # When creating a service that uses the `EXTERNAL` deployment
438
+ # controller, you can specify only parameters that aren't controlled at
439
+ # the task set level. The only required parameter is the service name.
440
+ # You control your services using the CreateTaskSet operation. For more
441
+ # information, see [Amazon ECS Deployment Types][3] in the *Amazon
442
+ # Elastic Container Service Developer Guide*.
375
443
  #
376
444
  # When the service scheduler launches new tasks, it determines task
377
445
  # placement in your cluster using the following logic:
@@ -400,6 +468,8 @@ module Aws::ECS
400
468
  #
401
469
  #
402
470
  # [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-load-balancing.html
471
+ # [2]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs_services.html
472
+ # [3]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-types.html
403
473
  #
404
474
  # @option params [String] :cluster
405
475
  # The short name or full Amazon Resource Name (ARN) of the cluster on
@@ -412,11 +482,14 @@ module Aws::ECS
412
482
  # unique within a cluster, but you can have similarly named services in
413
483
  # multiple clusters within a Region or across multiple Regions.
414
484
  #
415
- # @option params [required, String] :task_definition
485
+ # @option params [String] :task_definition
416
486
  # The `family` and `revision` (`family:revision`) or full ARN of the
417
487
  # task definition to run in your service. If a `revision` is not
418
488
  # specified, the latest `ACTIVE` revision is used.
419
489
  #
490
+ # A task definition must be specified if the service is using the `ECS`
491
+ # deployment controller.
492
+ #
420
493
  # @option params [Array<Types::LoadBalancer>] :load_balancers
421
494
  # A load balancer object representing the load balancer to use with your
422
495
  # service.
@@ -496,9 +569,9 @@ module Aws::ECS
496
569
  # [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html
497
570
  #
498
571
  # @option params [String] :platform_version
499
- # The platform version on which your tasks in the service are running. A
500
- # platform version is only specified for tasks using the Fargate launch
501
- # type. If one is not specified, the `LATEST` platform version is used
572
+ # The platform version that your tasks in the service are running on. A
573
+ # platform version is specified only for tasks using the Fargate launch
574
+ # type. If one isn't specified, the `LATEST` platform version is used
502
575
  # by default. For more information, see [AWS Fargate Platform
503
576
  # Versions][1] in the *Amazon Elastic Container Service Developer
504
577
  # Guide*.
@@ -582,18 +655,18 @@ module Aws::ECS
582
655
  # desired number of tasks across your cluster. By default, the service
583
656
  # scheduler spreads tasks across Availability Zones. You can use task
584
657
  # placement strategies and constraints to customize task placement
585
- # decisions. This scheduler strategy is required if using the
586
- # `CODE_DEPLOY` deployment controller.
658
+ # decisions. This scheduler strategy is required if the service is
659
+ # using the `CODE_DEPLOY` or `EXTERNAL` deployment controller types.
587
660
  #
588
661
  # * `DAEMON`-The daemon scheduling strategy deploys exactly one task on
589
662
  # each active container instance that meets all of the task placement
590
- # constraints that you specify in your cluster. When you are using
591
- # this strategy, there is no need to specify a desired number of
592
- # tasks, a task placement strategy, or use Service Auto Scaling
593
- # policies.
663
+ # constraints that you specify in your cluster. When you're using
664
+ # this strategy, you don't need to specify a desired number of tasks,
665
+ # a task placement strategy, or use Service Auto Scaling policies.
594
666
  #
595
- # <note markdown="1"> Tasks using the Fargate launch type or the `CODE_DEPLOY` deploymenet
596
- # controller do not support the `DAEMON` scheduling strategy.
667
+ # <note markdown="1"> Tasks using the Fargate launch type or the `CODE_DEPLOY` or
668
+ # `EXTERNAL` deployment controller types don't support the `DAEMON`
669
+ # scheduling strategy.
597
670
  #
598
671
  # </note>
599
672
  #
@@ -756,7 +829,7 @@ module Aws::ECS
756
829
  # resp = client.create_service({
757
830
  # cluster: "String",
758
831
  # service_name: "String", # required
759
- # task_definition: "String", # required
832
+ # task_definition: "String",
760
833
  # load_balancers: [
761
834
  # {
762
835
  # target_group_arn: "String",
@@ -804,7 +877,7 @@ module Aws::ECS
804
877
  # health_check_grace_period_seconds: 1,
805
878
  # scheduling_strategy: "REPLICA", # accepts REPLICA, DAEMON
806
879
  # deployment_controller: {
807
- # type: "ECS", # required, accepts ECS, CODE_DEPLOY
880
+ # type: "ECS", # required, accepts ECS, CODE_DEPLOY, EXTERNAL
808
881
  # },
809
882
  # tags: [
810
883
  # {
@@ -843,6 +916,8 @@ module Aws::ECS
843
916
  # resp.service.task_sets #=> Array
844
917
  # resp.service.task_sets[0].id #=> String
845
918
  # resp.service.task_sets[0].task_set_arn #=> String
919
+ # resp.service.task_sets[0].service_arn #=> String
920
+ # resp.service.task_sets[0].cluster_arn #=> String
846
921
  # resp.service.task_sets[0].started_by #=> String
847
922
  # resp.service.task_sets[0].external_id #=> String
848
923
  # resp.service.task_sets[0].status #=> String
@@ -864,6 +939,11 @@ module Aws::ECS
864
939
  # resp.service.task_sets[0].load_balancers[0].load_balancer_name #=> String
865
940
  # resp.service.task_sets[0].load_balancers[0].container_name #=> String
866
941
  # resp.service.task_sets[0].load_balancers[0].container_port #=> Integer
942
+ # resp.service.task_sets[0].service_registries #=> Array
943
+ # resp.service.task_sets[0].service_registries[0].registry_arn #=> String
944
+ # resp.service.task_sets[0].service_registries[0].port #=> Integer
945
+ # resp.service.task_sets[0].service_registries[0].container_name #=> String
946
+ # resp.service.task_sets[0].service_registries[0].container_port #=> Integer
867
947
  # resp.service.task_sets[0].scale.value #=> Float
868
948
  # resp.service.task_sets[0].scale.unit #=> String, one of "PERCENT"
869
949
  # resp.service.task_sets[0].stability_status #=> String, one of "STEADY_STATE", "STABILIZING"
@@ -903,7 +983,7 @@ module Aws::ECS
903
983
  # resp.service.network_configuration.awsvpc_configuration.assign_public_ip #=> String, one of "ENABLED", "DISABLED"
904
984
  # resp.service.health_check_grace_period_seconds #=> Integer
905
985
  # resp.service.scheduling_strategy #=> String, one of "REPLICA", "DAEMON"
906
- # resp.service.deployment_controller.type #=> String, one of "ECS", "CODE_DEPLOY"
986
+ # resp.service.deployment_controller.type #=> String, one of "ECS", "CODE_DEPLOY", "EXTERNAL"
907
987
  # resp.service.tags #=> Array
908
988
  # resp.service.tags[0].key #=> String
909
989
  # resp.service.tags[0].value #=> String
@@ -920,6 +1000,162 @@ module Aws::ECS
920
1000
  req.send_request(options)
921
1001
  end
922
1002
 
1003
+ # Create a task set in the specified cluster and service. This is used
1004
+ # when a service uses the `EXTERNAL` deployment controller type. For
1005
+ # more information, see [Amazon ECS Deployment Types][1] in the *Amazon
1006
+ # Elastic Container Service Developer Guide*.
1007
+ #
1008
+ #
1009
+ #
1010
+ # [1]: http://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-types.html
1011
+ #
1012
+ # @option params [required, String] :service
1013
+ # The short name or full Amazon Resource Name (ARN) of the service to
1014
+ # create the task set in.
1015
+ #
1016
+ # @option params [required, String] :cluster
1017
+ # The short name or full Amazon Resource Name (ARN) of the cluster that
1018
+ # hosts the service to create the task set in.
1019
+ #
1020
+ # @option params [String] :external_id
1021
+ # An optional non-unique tag that identifies this task set in external
1022
+ # systems. If the task set is associated with a service discovery
1023
+ # registry, the tasks in this task set will have the
1024
+ # `ECS_TASK_SET_EXTERNAL_ID` AWS Cloud Map attribute set to the provided
1025
+ # value.
1026
+ #
1027
+ # @option params [required, String] :task_definition
1028
+ # The task definition for the tasks in the task set to use.
1029
+ #
1030
+ # @option params [Types::NetworkConfiguration] :network_configuration
1031
+ # An object representing the network configuration for a task or
1032
+ # service.
1033
+ #
1034
+ # @option params [Array<Types::LoadBalancer>] :load_balancers
1035
+ # A load balancer object representing the load balancer to use with the
1036
+ # task set. The supported load balancer types are either an Application
1037
+ # Load Balancer or a Network Load Balancer.
1038
+ #
1039
+ # @option params [Array<Types::ServiceRegistry>] :service_registries
1040
+ # The details of the service discovery registries to assign to this task
1041
+ # set. For more information, see [Service Discovery][1].
1042
+ #
1043
+ #
1044
+ #
1045
+ # [1]: http://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-discovery.html
1046
+ #
1047
+ # @option params [String] :launch_type
1048
+ # The launch type that new tasks in the task set will use. For more
1049
+ # information, see [Amazon ECS Launch Types][1] in the *Amazon Elastic
1050
+ # Container Service Developer Guide*.
1051
+ #
1052
+ #
1053
+ #
1054
+ # [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html
1055
+ #
1056
+ # @option params [String] :platform_version
1057
+ # The platform version that the tasks in the task set should use. A
1058
+ # platform version is specified only for tasks using the Fargate launch
1059
+ # type. If one isn't specified, the `LATEST` platform version is used
1060
+ # by default.
1061
+ #
1062
+ # @option params [Types::Scale] :scale
1063
+ # A floating-point percentage of the desired number of tasks to place
1064
+ # and keep running in the task set.
1065
+ #
1066
+ # @option params [String] :client_token
1067
+ # Unique, case-sensitive identifier that you provide to ensure the
1068
+ # idempotency of the request. Up to 32 ASCII characters are allowed.
1069
+ #
1070
+ # @return [Types::CreateTaskSetResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1071
+ #
1072
+ # * {Types::CreateTaskSetResponse#task_set #task_set} => Types::TaskSet
1073
+ #
1074
+ # @example Request syntax with placeholder values
1075
+ #
1076
+ # resp = client.create_task_set({
1077
+ # service: "String", # required
1078
+ # cluster: "String", # required
1079
+ # external_id: "String",
1080
+ # task_definition: "String", # required
1081
+ # network_configuration: {
1082
+ # awsvpc_configuration: {
1083
+ # subnets: ["String"], # required
1084
+ # security_groups: ["String"],
1085
+ # assign_public_ip: "ENABLED", # accepts ENABLED, DISABLED
1086
+ # },
1087
+ # },
1088
+ # load_balancers: [
1089
+ # {
1090
+ # target_group_arn: "String",
1091
+ # load_balancer_name: "String",
1092
+ # container_name: "String",
1093
+ # container_port: 1,
1094
+ # },
1095
+ # ],
1096
+ # service_registries: [
1097
+ # {
1098
+ # registry_arn: "String",
1099
+ # port: 1,
1100
+ # container_name: "String",
1101
+ # container_port: 1,
1102
+ # },
1103
+ # ],
1104
+ # launch_type: "EC2", # accepts EC2, FARGATE
1105
+ # platform_version: "String",
1106
+ # scale: {
1107
+ # value: 1.0,
1108
+ # unit: "PERCENT", # accepts PERCENT
1109
+ # },
1110
+ # client_token: "String",
1111
+ # })
1112
+ #
1113
+ # @example Response structure
1114
+ #
1115
+ # resp.task_set.id #=> String
1116
+ # resp.task_set.task_set_arn #=> String
1117
+ # resp.task_set.service_arn #=> String
1118
+ # resp.task_set.cluster_arn #=> String
1119
+ # resp.task_set.started_by #=> String
1120
+ # resp.task_set.external_id #=> String
1121
+ # resp.task_set.status #=> String
1122
+ # resp.task_set.task_definition #=> String
1123
+ # resp.task_set.computed_desired_count #=> Integer
1124
+ # resp.task_set.pending_count #=> Integer
1125
+ # resp.task_set.running_count #=> Integer
1126
+ # resp.task_set.created_at #=> Time
1127
+ # resp.task_set.updated_at #=> Time
1128
+ # resp.task_set.launch_type #=> String, one of "EC2", "FARGATE"
1129
+ # resp.task_set.platform_version #=> String
1130
+ # resp.task_set.network_configuration.awsvpc_configuration.subnets #=> Array
1131
+ # resp.task_set.network_configuration.awsvpc_configuration.subnets[0] #=> String
1132
+ # resp.task_set.network_configuration.awsvpc_configuration.security_groups #=> Array
1133
+ # resp.task_set.network_configuration.awsvpc_configuration.security_groups[0] #=> String
1134
+ # resp.task_set.network_configuration.awsvpc_configuration.assign_public_ip #=> String, one of "ENABLED", "DISABLED"
1135
+ # resp.task_set.load_balancers #=> Array
1136
+ # resp.task_set.load_balancers[0].target_group_arn #=> String
1137
+ # resp.task_set.load_balancers[0].load_balancer_name #=> String
1138
+ # resp.task_set.load_balancers[0].container_name #=> String
1139
+ # resp.task_set.load_balancers[0].container_port #=> Integer
1140
+ # resp.task_set.service_registries #=> Array
1141
+ # resp.task_set.service_registries[0].registry_arn #=> String
1142
+ # resp.task_set.service_registries[0].port #=> Integer
1143
+ # resp.task_set.service_registries[0].container_name #=> String
1144
+ # resp.task_set.service_registries[0].container_port #=> Integer
1145
+ # resp.task_set.scale.value #=> Float
1146
+ # resp.task_set.scale.unit #=> String, one of "PERCENT"
1147
+ # resp.task_set.stability_status #=> String, one of "STEADY_STATE", "STABILIZING"
1148
+ # resp.task_set.stability_status_at #=> Time
1149
+ #
1150
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/CreateTaskSet AWS API Documentation
1151
+ #
1152
+ # @overload create_task_set(params = {})
1153
+ # @param [Hash] params ({})
1154
+ def create_task_set(params = {}, options = {})
1155
+ req = build_request(:create_task_set, params)
1156
+ req.send_request(options)
1157
+ end
1158
+
923
1159
  # Modifies the ARN and resource ID format of a resource for a specified
924
1160
  # IAM user, IAM role, or the root user for an account. You can specify
925
1161
  # whether the new ARN and resource ID format are disabled for new
@@ -1207,6 +1443,8 @@ module Aws::ECS
1207
1443
  # resp.service.task_sets #=> Array
1208
1444
  # resp.service.task_sets[0].id #=> String
1209
1445
  # resp.service.task_sets[0].task_set_arn #=> String
1446
+ # resp.service.task_sets[0].service_arn #=> String
1447
+ # resp.service.task_sets[0].cluster_arn #=> String
1210
1448
  # resp.service.task_sets[0].started_by #=> String
1211
1449
  # resp.service.task_sets[0].external_id #=> String
1212
1450
  # resp.service.task_sets[0].status #=> String
@@ -1228,6 +1466,11 @@ module Aws::ECS
1228
1466
  # resp.service.task_sets[0].load_balancers[0].load_balancer_name #=> String
1229
1467
  # resp.service.task_sets[0].load_balancers[0].container_name #=> String
1230
1468
  # resp.service.task_sets[0].load_balancers[0].container_port #=> Integer
1469
+ # resp.service.task_sets[0].service_registries #=> Array
1470
+ # resp.service.task_sets[0].service_registries[0].registry_arn #=> String
1471
+ # resp.service.task_sets[0].service_registries[0].port #=> Integer
1472
+ # resp.service.task_sets[0].service_registries[0].container_name #=> String
1473
+ # resp.service.task_sets[0].service_registries[0].container_port #=> Integer
1231
1474
  # resp.service.task_sets[0].scale.value #=> Float
1232
1475
  # resp.service.task_sets[0].scale.unit #=> String, one of "PERCENT"
1233
1476
  # resp.service.task_sets[0].stability_status #=> String, one of "STEADY_STATE", "STABILIZING"
@@ -1267,7 +1510,7 @@ module Aws::ECS
1267
1510
  # resp.service.network_configuration.awsvpc_configuration.assign_public_ip #=> String, one of "ENABLED", "DISABLED"
1268
1511
  # resp.service.health_check_grace_period_seconds #=> Integer
1269
1512
  # resp.service.scheduling_strategy #=> String, one of "REPLICA", "DAEMON"
1270
- # resp.service.deployment_controller.type #=> String, one of "ECS", "CODE_DEPLOY"
1513
+ # resp.service.deployment_controller.type #=> String, one of "ECS", "CODE_DEPLOY", "EXTERNAL"
1271
1514
  # resp.service.tags #=> Array
1272
1515
  # resp.service.tags[0].key #=> String
1273
1516
  # resp.service.tags[0].value #=> String
@@ -1284,6 +1527,90 @@ module Aws::ECS
1284
1527
  req.send_request(options)
1285
1528
  end
1286
1529
 
1530
+ # Deletes a specified task set within a service. This is used when a
1531
+ # service uses the `EXTERNAL` deployment controller type. For more
1532
+ # information, see [Amazon ECS Deployment Types][1] in the *Amazon
1533
+ # Elastic Container Service Developer Guide*.
1534
+ #
1535
+ #
1536
+ #
1537
+ # [1]: http://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-types.html
1538
+ #
1539
+ # @option params [required, String] :cluster
1540
+ # The short name or full Amazon Resource Name (ARN) of the cluster that
1541
+ # hosts the service that the task set exists in to delete.
1542
+ #
1543
+ # @option params [required, String] :service
1544
+ # The short name or full Amazon Resource Name (ARN) of the service that
1545
+ # hosts the task set to delete.
1546
+ #
1547
+ # @option params [required, String] :task_set
1548
+ # The task set ID or full Amazon Resource Name (ARN) of the task set to
1549
+ # delete.
1550
+ #
1551
+ # @option params [Boolean] :force
1552
+ # If `true`, this allows you to delete a task set even if it hasn't
1553
+ # been scaled down to zero.
1554
+ #
1555
+ # @return [Types::DeleteTaskSetResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1556
+ #
1557
+ # * {Types::DeleteTaskSetResponse#task_set #task_set} => Types::TaskSet
1558
+ #
1559
+ # @example Request syntax with placeholder values
1560
+ #
1561
+ # resp = client.delete_task_set({
1562
+ # cluster: "String", # required
1563
+ # service: "String", # required
1564
+ # task_set: "String", # required
1565
+ # force: false,
1566
+ # })
1567
+ #
1568
+ # @example Response structure
1569
+ #
1570
+ # resp.task_set.id #=> String
1571
+ # resp.task_set.task_set_arn #=> String
1572
+ # resp.task_set.service_arn #=> String
1573
+ # resp.task_set.cluster_arn #=> String
1574
+ # resp.task_set.started_by #=> String
1575
+ # resp.task_set.external_id #=> String
1576
+ # resp.task_set.status #=> String
1577
+ # resp.task_set.task_definition #=> String
1578
+ # resp.task_set.computed_desired_count #=> Integer
1579
+ # resp.task_set.pending_count #=> Integer
1580
+ # resp.task_set.running_count #=> Integer
1581
+ # resp.task_set.created_at #=> Time
1582
+ # resp.task_set.updated_at #=> Time
1583
+ # resp.task_set.launch_type #=> String, one of "EC2", "FARGATE"
1584
+ # resp.task_set.platform_version #=> String
1585
+ # resp.task_set.network_configuration.awsvpc_configuration.subnets #=> Array
1586
+ # resp.task_set.network_configuration.awsvpc_configuration.subnets[0] #=> String
1587
+ # resp.task_set.network_configuration.awsvpc_configuration.security_groups #=> Array
1588
+ # resp.task_set.network_configuration.awsvpc_configuration.security_groups[0] #=> String
1589
+ # resp.task_set.network_configuration.awsvpc_configuration.assign_public_ip #=> String, one of "ENABLED", "DISABLED"
1590
+ # resp.task_set.load_balancers #=> Array
1591
+ # resp.task_set.load_balancers[0].target_group_arn #=> String
1592
+ # resp.task_set.load_balancers[0].load_balancer_name #=> String
1593
+ # resp.task_set.load_balancers[0].container_name #=> String
1594
+ # resp.task_set.load_balancers[0].container_port #=> Integer
1595
+ # resp.task_set.service_registries #=> Array
1596
+ # resp.task_set.service_registries[0].registry_arn #=> String
1597
+ # resp.task_set.service_registries[0].port #=> Integer
1598
+ # resp.task_set.service_registries[0].container_name #=> String
1599
+ # resp.task_set.service_registries[0].container_port #=> Integer
1600
+ # resp.task_set.scale.value #=> Float
1601
+ # resp.task_set.scale.unit #=> String, one of "PERCENT"
1602
+ # resp.task_set.stability_status #=> String, one of "STEADY_STATE", "STABILIZING"
1603
+ # resp.task_set.stability_status_at #=> Time
1604
+ #
1605
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DeleteTaskSet AWS API Documentation
1606
+ #
1607
+ # @overload delete_task_set(params = {})
1608
+ # @param [Hash] params ({})
1609
+ def delete_task_set(params = {}, options = {})
1610
+ req = build_request(:delete_task_set, params)
1611
+ req.send_request(options)
1612
+ end
1613
+
1287
1614
  # Deregisters an Amazon ECS container instance from the specified
1288
1615
  # cluster. This instance is no longer available to run tasks.
1289
1616
  #
@@ -1974,6 +2301,8 @@ module Aws::ECS
1974
2301
  # resp.services[0].task_sets #=> Array
1975
2302
  # resp.services[0].task_sets[0].id #=> String
1976
2303
  # resp.services[0].task_sets[0].task_set_arn #=> String
2304
+ # resp.services[0].task_sets[0].service_arn #=> String
2305
+ # resp.services[0].task_sets[0].cluster_arn #=> String
1977
2306
  # resp.services[0].task_sets[0].started_by #=> String
1978
2307
  # resp.services[0].task_sets[0].external_id #=> String
1979
2308
  # resp.services[0].task_sets[0].status #=> String
@@ -1995,6 +2324,11 @@ module Aws::ECS
1995
2324
  # resp.services[0].task_sets[0].load_balancers[0].load_balancer_name #=> String
1996
2325
  # resp.services[0].task_sets[0].load_balancers[0].container_name #=> String
1997
2326
  # resp.services[0].task_sets[0].load_balancers[0].container_port #=> Integer
2327
+ # resp.services[0].task_sets[0].service_registries #=> Array
2328
+ # resp.services[0].task_sets[0].service_registries[0].registry_arn #=> String
2329
+ # resp.services[0].task_sets[0].service_registries[0].port #=> Integer
2330
+ # resp.services[0].task_sets[0].service_registries[0].container_name #=> String
2331
+ # resp.services[0].task_sets[0].service_registries[0].container_port #=> Integer
1998
2332
  # resp.services[0].task_sets[0].scale.value #=> Float
1999
2333
  # resp.services[0].task_sets[0].scale.unit #=> String, one of "PERCENT"
2000
2334
  # resp.services[0].task_sets[0].stability_status #=> String, one of "STEADY_STATE", "STABILIZING"
@@ -2034,7 +2368,7 @@ module Aws::ECS
2034
2368
  # resp.services[0].network_configuration.awsvpc_configuration.assign_public_ip #=> String, one of "ENABLED", "DISABLED"
2035
2369
  # resp.services[0].health_check_grace_period_seconds #=> Integer
2036
2370
  # resp.services[0].scheduling_strategy #=> String, one of "REPLICA", "DAEMON"
2037
- # resp.services[0].deployment_controller.type #=> String, one of "ECS", "CODE_DEPLOY"
2371
+ # resp.services[0].deployment_controller.type #=> String, one of "ECS", "CODE_DEPLOY", "EXTERNAL"
2038
2372
  # resp.services[0].tags #=> Array
2039
2373
  # resp.services[0].tags[0].key #=> String
2040
2374
  # resp.services[0].tags[0].value #=> String
@@ -2292,6 +2626,89 @@ module Aws::ECS
2292
2626
  req.send_request(options)
2293
2627
  end
2294
2628
 
2629
+ # Describes the task sets in the specified cluster and service. This is
2630
+ # used when a service uses the `EXTERNAL` deployment controller type.
2631
+ # For more information, see [Amazon ECS Deployment Types][1] in the
2632
+ # *Amazon Elastic Container Service Developer Guide*.
2633
+ #
2634
+ #
2635
+ #
2636
+ # [1]: http://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-types.html
2637
+ #
2638
+ # @option params [required, String] :cluster
2639
+ # The short name or full Amazon Resource Name (ARN) of the cluster that
2640
+ # hosts the service that the task sets exist in.
2641
+ #
2642
+ # @option params [required, String] :service
2643
+ # The short name or full Amazon Resource Name (ARN) of the service that
2644
+ # the task sets exist in.
2645
+ #
2646
+ # @option params [Array<String>] :task_sets
2647
+ # The ID or full Amazon Resource Name (ARN) of task sets to describe.
2648
+ #
2649
+ # @return [Types::DescribeTaskSetsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2650
+ #
2651
+ # * {Types::DescribeTaskSetsResponse#task_sets #task_sets} => Array&lt;Types::TaskSet&gt;
2652
+ # * {Types::DescribeTaskSetsResponse#failures #failures} => Array&lt;Types::Failure&gt;
2653
+ #
2654
+ # @example Request syntax with placeholder values
2655
+ #
2656
+ # resp = client.describe_task_sets({
2657
+ # cluster: "String", # required
2658
+ # service: "String", # required
2659
+ # task_sets: ["String"],
2660
+ # })
2661
+ #
2662
+ # @example Response structure
2663
+ #
2664
+ # resp.task_sets #=> Array
2665
+ # resp.task_sets[0].id #=> String
2666
+ # resp.task_sets[0].task_set_arn #=> String
2667
+ # resp.task_sets[0].service_arn #=> String
2668
+ # resp.task_sets[0].cluster_arn #=> String
2669
+ # resp.task_sets[0].started_by #=> String
2670
+ # resp.task_sets[0].external_id #=> String
2671
+ # resp.task_sets[0].status #=> String
2672
+ # resp.task_sets[0].task_definition #=> String
2673
+ # resp.task_sets[0].computed_desired_count #=> Integer
2674
+ # resp.task_sets[0].pending_count #=> Integer
2675
+ # resp.task_sets[0].running_count #=> Integer
2676
+ # resp.task_sets[0].created_at #=> Time
2677
+ # resp.task_sets[0].updated_at #=> Time
2678
+ # resp.task_sets[0].launch_type #=> String, one of "EC2", "FARGATE"
2679
+ # resp.task_sets[0].platform_version #=> String
2680
+ # resp.task_sets[0].network_configuration.awsvpc_configuration.subnets #=> Array
2681
+ # resp.task_sets[0].network_configuration.awsvpc_configuration.subnets[0] #=> String
2682
+ # resp.task_sets[0].network_configuration.awsvpc_configuration.security_groups #=> Array
2683
+ # resp.task_sets[0].network_configuration.awsvpc_configuration.security_groups[0] #=> String
2684
+ # resp.task_sets[0].network_configuration.awsvpc_configuration.assign_public_ip #=> String, one of "ENABLED", "DISABLED"
2685
+ # resp.task_sets[0].load_balancers #=> Array
2686
+ # resp.task_sets[0].load_balancers[0].target_group_arn #=> String
2687
+ # resp.task_sets[0].load_balancers[0].load_balancer_name #=> String
2688
+ # resp.task_sets[0].load_balancers[0].container_name #=> String
2689
+ # resp.task_sets[0].load_balancers[0].container_port #=> Integer
2690
+ # resp.task_sets[0].service_registries #=> Array
2691
+ # resp.task_sets[0].service_registries[0].registry_arn #=> String
2692
+ # resp.task_sets[0].service_registries[0].port #=> Integer
2693
+ # resp.task_sets[0].service_registries[0].container_name #=> String
2694
+ # resp.task_sets[0].service_registries[0].container_port #=> Integer
2695
+ # resp.task_sets[0].scale.value #=> Float
2696
+ # resp.task_sets[0].scale.unit #=> String, one of "PERCENT"
2697
+ # resp.task_sets[0].stability_status #=> String, one of "STEADY_STATE", "STABILIZING"
2698
+ # resp.task_sets[0].stability_status_at #=> Time
2699
+ # resp.failures #=> Array
2700
+ # resp.failures[0].arn #=> String
2701
+ # resp.failures[0].reason #=> String
2702
+ #
2703
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DescribeTaskSets AWS API Documentation
2704
+ #
2705
+ # @overload describe_task_sets(params = {})
2706
+ # @param [Hash] params ({})
2707
+ def describe_task_sets(params = {}, options = {})
2708
+ req = build_request(:describe_task_sets, params)
2709
+ req.send_request(options)
2710
+ end
2711
+
2295
2712
  # Describes a specified task or tasks.
2296
2713
  #
2297
2714
  # @option params [String] :cluster
@@ -4038,6 +4455,18 @@ module Aws::ECS
4038
4455
  # @option params [Types::ProxyConfiguration] :proxy_configuration
4039
4456
  # The configuration details for the App Mesh proxy.
4040
4457
  #
4458
+ # Your Amazon ECS container instances require at least version 1.26.0 of
4459
+ # the container agent and at least version 1.26.0-1 of the `ecs-init`
4460
+ # package to enable a proxy configuration. If your container instances
4461
+ # are launched from the Amazon ECS-optimized AMI version `20190301` or
4462
+ # later, then they contain the required versions of the container agent
4463
+ # and `ecs-init`. For more information, see [Amazon ECS-optimized Linux
4464
+ # AMI][1] in the *Amazon Elastic Container Service Developer Guide*.
4465
+ #
4466
+ #
4467
+ #
4468
+ # [1]: http://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html
4469
+ #
4041
4470
  # @return [Types::RegisterTaskDefinitionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4042
4471
  #
4043
4472
  # * {Types::RegisterTaskDefinitionResponse#task_definition #task_definition} => Types::TaskDefinition
@@ -5026,7 +5455,7 @@ module Aws::ECS
5026
5455
  # cluster is assumed.
5027
5456
  #
5028
5457
  # @option params [required, String] :task
5029
- # The task ID or full ARN entry of the task to stop.
5458
+ # The task ID or full Amazon Resource Name (ARN) of the task to stop.
5030
5459
  #
5031
5460
  # @option params [String] :reason
5032
5461
  # An optional message specified when a task is stopped. For example, if
@@ -5624,6 +6053,12 @@ module Aws::ECS
5624
6053
  # information, see [CreateDeployment][1] in the *AWS CodeDeploy API
5625
6054
  # Reference*.
5626
6055
  #
6056
+ # For services using an external deployment controller, you can update
6057
+ # only the desired count and health check grace period using this API.
6058
+ # If the launch type, load balancer, network configuration, platform
6059
+ # version, or task definition need to be updated, you should create a
6060
+ # new task set. For more information, see CreateTaskSet.
6061
+ #
5627
6062
  # You can add to or subtract from the number of instantiations of a task
5628
6063
  # definition in a service by specifying the cluster that the service is
5629
6064
  # running in and a new `desiredCount` parameter.
@@ -5870,6 +6305,8 @@ module Aws::ECS
5870
6305
  # resp.service.task_sets #=> Array
5871
6306
  # resp.service.task_sets[0].id #=> String
5872
6307
  # resp.service.task_sets[0].task_set_arn #=> String
6308
+ # resp.service.task_sets[0].service_arn #=> String
6309
+ # resp.service.task_sets[0].cluster_arn #=> String
5873
6310
  # resp.service.task_sets[0].started_by #=> String
5874
6311
  # resp.service.task_sets[0].external_id #=> String
5875
6312
  # resp.service.task_sets[0].status #=> String
@@ -5891,6 +6328,11 @@ module Aws::ECS
5891
6328
  # resp.service.task_sets[0].load_balancers[0].load_balancer_name #=> String
5892
6329
  # resp.service.task_sets[0].load_balancers[0].container_name #=> String
5893
6330
  # resp.service.task_sets[0].load_balancers[0].container_port #=> Integer
6331
+ # resp.service.task_sets[0].service_registries #=> Array
6332
+ # resp.service.task_sets[0].service_registries[0].registry_arn #=> String
6333
+ # resp.service.task_sets[0].service_registries[0].port #=> Integer
6334
+ # resp.service.task_sets[0].service_registries[0].container_name #=> String
6335
+ # resp.service.task_sets[0].service_registries[0].container_port #=> Integer
5894
6336
  # resp.service.task_sets[0].scale.value #=> Float
5895
6337
  # resp.service.task_sets[0].scale.unit #=> String, one of "PERCENT"
5896
6338
  # resp.service.task_sets[0].stability_status #=> String, one of "STEADY_STATE", "STABILIZING"
@@ -5930,7 +6372,7 @@ module Aws::ECS
5930
6372
  # resp.service.network_configuration.awsvpc_configuration.assign_public_ip #=> String, one of "ENABLED", "DISABLED"
5931
6373
  # resp.service.health_check_grace_period_seconds #=> Integer
5932
6374
  # resp.service.scheduling_strategy #=> String, one of "REPLICA", "DAEMON"
5933
- # resp.service.deployment_controller.type #=> String, one of "ECS", "CODE_DEPLOY"
6375
+ # resp.service.deployment_controller.type #=> String, one of "ECS", "CODE_DEPLOY", "EXTERNAL"
5934
6376
  # resp.service.tags #=> Array
5935
6377
  # resp.service.tags[0].key #=> String
5936
6378
  # resp.service.tags[0].value #=> String
@@ -5947,6 +6389,174 @@ module Aws::ECS
5947
6389
  req.send_request(options)
5948
6390
  end
5949
6391
 
6392
+ # Modifies which task set in a service is the primary task set. Any
6393
+ # parameters that are updated on the primary task set in a service will
6394
+ # transition to the service. This is used when a service uses the
6395
+ # `EXTERNAL` deployment controller type. For more information, see
6396
+ # [Amazon ECS Deployment Types][1] in the *Amazon Elastic Container
6397
+ # Service Developer Guide*.
6398
+ #
6399
+ #
6400
+ #
6401
+ # [1]: http://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-types.html
6402
+ #
6403
+ # @option params [required, String] :cluster
6404
+ # The short name or full Amazon Resource Name (ARN) of the cluster that
6405
+ # hosts the service that the task set exists in.
6406
+ #
6407
+ # @option params [required, String] :service
6408
+ # The short name or full Amazon Resource Name (ARN) of the service that
6409
+ # the task set exists in.
6410
+ #
6411
+ # @option params [required, String] :primary_task_set
6412
+ # The short name or full Amazon Resource Name (ARN) of the task set to
6413
+ # set as the primary task set in the deployment.
6414
+ #
6415
+ # @return [Types::UpdateServicePrimaryTaskSetResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
6416
+ #
6417
+ # * {Types::UpdateServicePrimaryTaskSetResponse#task_set #task_set} => Types::TaskSet
6418
+ #
6419
+ # @example Request syntax with placeholder values
6420
+ #
6421
+ # resp = client.update_service_primary_task_set({
6422
+ # cluster: "String", # required
6423
+ # service: "String", # required
6424
+ # primary_task_set: "String", # required
6425
+ # })
6426
+ #
6427
+ # @example Response structure
6428
+ #
6429
+ # resp.task_set.id #=> String
6430
+ # resp.task_set.task_set_arn #=> String
6431
+ # resp.task_set.service_arn #=> String
6432
+ # resp.task_set.cluster_arn #=> String
6433
+ # resp.task_set.started_by #=> String
6434
+ # resp.task_set.external_id #=> String
6435
+ # resp.task_set.status #=> String
6436
+ # resp.task_set.task_definition #=> String
6437
+ # resp.task_set.computed_desired_count #=> Integer
6438
+ # resp.task_set.pending_count #=> Integer
6439
+ # resp.task_set.running_count #=> Integer
6440
+ # resp.task_set.created_at #=> Time
6441
+ # resp.task_set.updated_at #=> Time
6442
+ # resp.task_set.launch_type #=> String, one of "EC2", "FARGATE"
6443
+ # resp.task_set.platform_version #=> String
6444
+ # resp.task_set.network_configuration.awsvpc_configuration.subnets #=> Array
6445
+ # resp.task_set.network_configuration.awsvpc_configuration.subnets[0] #=> String
6446
+ # resp.task_set.network_configuration.awsvpc_configuration.security_groups #=> Array
6447
+ # resp.task_set.network_configuration.awsvpc_configuration.security_groups[0] #=> String
6448
+ # resp.task_set.network_configuration.awsvpc_configuration.assign_public_ip #=> String, one of "ENABLED", "DISABLED"
6449
+ # resp.task_set.load_balancers #=> Array
6450
+ # resp.task_set.load_balancers[0].target_group_arn #=> String
6451
+ # resp.task_set.load_balancers[0].load_balancer_name #=> String
6452
+ # resp.task_set.load_balancers[0].container_name #=> String
6453
+ # resp.task_set.load_balancers[0].container_port #=> Integer
6454
+ # resp.task_set.service_registries #=> Array
6455
+ # resp.task_set.service_registries[0].registry_arn #=> String
6456
+ # resp.task_set.service_registries[0].port #=> Integer
6457
+ # resp.task_set.service_registries[0].container_name #=> String
6458
+ # resp.task_set.service_registries[0].container_port #=> Integer
6459
+ # resp.task_set.scale.value #=> Float
6460
+ # resp.task_set.scale.unit #=> String, one of "PERCENT"
6461
+ # resp.task_set.stability_status #=> String, one of "STEADY_STATE", "STABILIZING"
6462
+ # resp.task_set.stability_status_at #=> Time
6463
+ #
6464
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/UpdateServicePrimaryTaskSet AWS API Documentation
6465
+ #
6466
+ # @overload update_service_primary_task_set(params = {})
6467
+ # @param [Hash] params ({})
6468
+ def update_service_primary_task_set(params = {}, options = {})
6469
+ req = build_request(:update_service_primary_task_set, params)
6470
+ req.send_request(options)
6471
+ end
6472
+
6473
+ # Modifies a task set. This is used when a service uses the `EXTERNAL`
6474
+ # deployment controller type. For more information, see [Amazon ECS
6475
+ # Deployment Types][1] in the *Amazon Elastic Container Service
6476
+ # Developer Guide*.
6477
+ #
6478
+ #
6479
+ #
6480
+ # [1]: http://docs.aws.amazon.com/AmazonECS/latest/developerguide/deployment-types.html
6481
+ #
6482
+ # @option params [required, String] :cluster
6483
+ # The short name or full Amazon Resource Name (ARN) of the cluster that
6484
+ # hosts the service that the task set exists in.
6485
+ #
6486
+ # @option params [required, String] :service
6487
+ # The short name or full Amazon Resource Name (ARN) of the service that
6488
+ # the task set exists in.
6489
+ #
6490
+ # @option params [required, String] :task_set
6491
+ # The short name or full Amazon Resource Name (ARN) of the task set to
6492
+ # update.
6493
+ #
6494
+ # @option params [required, Types::Scale] :scale
6495
+ # A floating-point percentage of the desired number of tasks to place
6496
+ # and keep running in the task set.
6497
+ #
6498
+ # @return [Types::UpdateTaskSetResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
6499
+ #
6500
+ # * {Types::UpdateTaskSetResponse#task_set #task_set} => Types::TaskSet
6501
+ #
6502
+ # @example Request syntax with placeholder values
6503
+ #
6504
+ # resp = client.update_task_set({
6505
+ # cluster: "String", # required
6506
+ # service: "String", # required
6507
+ # task_set: "String", # required
6508
+ # scale: { # required
6509
+ # value: 1.0,
6510
+ # unit: "PERCENT", # accepts PERCENT
6511
+ # },
6512
+ # })
6513
+ #
6514
+ # @example Response structure
6515
+ #
6516
+ # resp.task_set.id #=> String
6517
+ # resp.task_set.task_set_arn #=> String
6518
+ # resp.task_set.service_arn #=> String
6519
+ # resp.task_set.cluster_arn #=> String
6520
+ # resp.task_set.started_by #=> String
6521
+ # resp.task_set.external_id #=> String
6522
+ # resp.task_set.status #=> String
6523
+ # resp.task_set.task_definition #=> String
6524
+ # resp.task_set.computed_desired_count #=> Integer
6525
+ # resp.task_set.pending_count #=> Integer
6526
+ # resp.task_set.running_count #=> Integer
6527
+ # resp.task_set.created_at #=> Time
6528
+ # resp.task_set.updated_at #=> Time
6529
+ # resp.task_set.launch_type #=> String, one of "EC2", "FARGATE"
6530
+ # resp.task_set.platform_version #=> String
6531
+ # resp.task_set.network_configuration.awsvpc_configuration.subnets #=> Array
6532
+ # resp.task_set.network_configuration.awsvpc_configuration.subnets[0] #=> String
6533
+ # resp.task_set.network_configuration.awsvpc_configuration.security_groups #=> Array
6534
+ # resp.task_set.network_configuration.awsvpc_configuration.security_groups[0] #=> String
6535
+ # resp.task_set.network_configuration.awsvpc_configuration.assign_public_ip #=> String, one of "ENABLED", "DISABLED"
6536
+ # resp.task_set.load_balancers #=> Array
6537
+ # resp.task_set.load_balancers[0].target_group_arn #=> String
6538
+ # resp.task_set.load_balancers[0].load_balancer_name #=> String
6539
+ # resp.task_set.load_balancers[0].container_name #=> String
6540
+ # resp.task_set.load_balancers[0].container_port #=> Integer
6541
+ # resp.task_set.service_registries #=> Array
6542
+ # resp.task_set.service_registries[0].registry_arn #=> String
6543
+ # resp.task_set.service_registries[0].port #=> Integer
6544
+ # resp.task_set.service_registries[0].container_name #=> String
6545
+ # resp.task_set.service_registries[0].container_port #=> Integer
6546
+ # resp.task_set.scale.value #=> Float
6547
+ # resp.task_set.scale.unit #=> String, one of "PERCENT"
6548
+ # resp.task_set.stability_status #=> String, one of "STEADY_STATE", "STABILIZING"
6549
+ # resp.task_set.stability_status_at #=> Time
6550
+ #
6551
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/UpdateTaskSet AWS API Documentation
6552
+ #
6553
+ # @overload update_task_set(params = {})
6554
+ # @param [Hash] params ({})
6555
+ def update_task_set(params = {}, options = {})
6556
+ req = build_request(:update_task_set, params)
6557
+ req.send_request(options)
6558
+ end
6559
+
5950
6560
  # @!endgroup
5951
6561
 
5952
6562
  # @param params ({})
@@ -5960,7 +6570,7 @@ module Aws::ECS
5960
6570
  params: params,
5961
6571
  config: config)
5962
6572
  context[:gem_name] = 'aws-sdk-ecs'
5963
- context[:gem_version] = '1.35.0'
6573
+ context[:gem_version] = '1.36.0'
5964
6574
  Seahorse::Client::Request.new(handlers, context)
5965
6575
  end
5966
6576