aws-sdk-ecs 1.13.0 → 1.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/aws-sdk-ecs.rb +1 -1
- data/lib/aws-sdk-ecs/client.rb +56 -10
- data/lib/aws-sdk-ecs/client_api.rb +6 -1
- data/lib/aws-sdk-ecs/types.rb +76 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 181052c25640a9ce037c3e8e1a2fd0727610ceb4
|
4
|
+
data.tar.gz: 595cc6529515ed4dd6d9f88ea90de252ef460ffd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e48a1091149c65fa84f40a5fc693e9db399feba82a5db73ab862f906a52cdd0df5bc4eaafdb9f60647ed99afcb547b080b95d0d764cad93691725a1c2d5f446
|
7
|
+
data.tar.gz: 69e3f6809089a116971754619d73251390885c1a72d93d40e5b0713666bbfc67d476d93fedfa62708df766a135e3376f8fdecfd00a921c5bbdf145d67a761899
|
data/lib/aws-sdk-ecs.rb
CHANGED
data/lib/aws-sdk-ecs/client.rb
CHANGED
@@ -264,19 +264,24 @@ module Aws::ECS
|
|
264
264
|
# state. Tasks for services that *do* use a load balancer are considered
|
265
265
|
# healthy if they are in the `RUNNING` state and the container instance
|
266
266
|
# they are hosted on is reported as healthy by the load balancer. The
|
267
|
-
# default value for `minimumHealthyPercent` is 50%
|
268
|
-
# 100% for the AWS CLI, the AWS SDKs, and the APIs.
|
267
|
+
# default value for a replica service for `minimumHealthyPercent` is 50%
|
268
|
+
# in the console and 100% for the AWS CLI, the AWS SDKs, and the APIs.
|
269
|
+
# The default value for a daemon service for `minimumHealthyPercent` is
|
270
|
+
# 0% for the AWS CLI, the AWS SDKs, and the APIs and 50% for the
|
271
|
+
# console.
|
269
272
|
#
|
270
273
|
# The `maximumPercent` parameter represents an upper limit on the number
|
271
274
|
# of your service's tasks that are allowed in the `RUNNING` or
|
272
275
|
# `PENDING` state during a deployment, as a percentage of the
|
273
276
|
# `desiredCount` (rounded down to the nearest integer). This parameter
|
274
277
|
# enables you to define the deployment batch size. For example, if your
|
275
|
-
# service has a `desiredCount` of four tasks and a
|
276
|
-
# value of 200%, the scheduler can start four new tasks
|
277
|
-
# the four older tasks (provided that the cluster
|
278
|
-
# do this are available). The default value for
|
279
|
-
# 200%.
|
278
|
+
# replica service has a `desiredCount` of four tasks and a
|
279
|
+
# `maximumPercent` value of 200%, the scheduler can start four new tasks
|
280
|
+
# before stopping the four older tasks (provided that the cluster
|
281
|
+
# resources required to do this are available). The default value for a
|
282
|
+
# replica service for `maximumPercent` is 200%. If you are using a
|
283
|
+
# daemon service type, the `maximumPercent` should remain at 100%, which
|
284
|
+
# is the default value.
|
280
285
|
#
|
281
286
|
# When the service scheduler launches new tasks, it determines task
|
282
287
|
# placement in your cluster using the following logic:
|
@@ -365,7 +370,7 @@ module Aws::ECS
|
|
365
370
|
# [1]: http://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-discovery.html
|
366
371
|
# [2]: http://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html
|
367
372
|
#
|
368
|
-
# @option params [
|
373
|
+
# @option params [Integer] :desired_count
|
369
374
|
# The number of instantiations of the specified task definition to place
|
370
375
|
# and keep running on your cluster.
|
371
376
|
#
|
@@ -444,6 +449,32 @@ module Aws::ECS
|
|
444
449
|
# This grace period can prevent the ECS service scheduler from marking
|
445
450
|
# tasks as unhealthy and stopping them before they have time to come up.
|
446
451
|
#
|
452
|
+
# @option params [String] :scheduling_strategy
|
453
|
+
# The scheduling strategy to use for the service. For more information,
|
454
|
+
# see [Services][1].
|
455
|
+
#
|
456
|
+
# There are two service scheduler strategies available:
|
457
|
+
#
|
458
|
+
# * `REPLICA`-The replica scheduling strategy places and maintains the
|
459
|
+
# desired number of tasks across your cluster. By default, the service
|
460
|
+
# scheduler spreads tasks across Availability Zones. You can use task
|
461
|
+
# placement strategies and constraints to customize task placement
|
462
|
+
# decisions.
|
463
|
+
#
|
464
|
+
# * `DAEMON`-The daemon scheduling strategy deploys exactly one task on
|
465
|
+
# each active container instance that meets all of the task placement
|
466
|
+
# constraints that you specify in your cluster. When using this
|
467
|
+
# strategy, there is no need to specify a desired number of tasks, a
|
468
|
+
# task placement strategy, or use Service Auto Scaling policies.
|
469
|
+
#
|
470
|
+
# <note markdown="1"> Fargate tasks do not support the `DAEMON` scheduling strategy.
|
471
|
+
#
|
472
|
+
# </note>
|
473
|
+
#
|
474
|
+
#
|
475
|
+
#
|
476
|
+
# [1]: http://docs.aws.amazon.com/AmazonECS/latest/developerguideecs_services.html
|
477
|
+
#
|
447
478
|
# @return [Types::CreateServiceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
448
479
|
#
|
449
480
|
# * {Types::CreateServiceResponse#service #service} => Types::Service
|
@@ -588,7 +619,7 @@ module Aws::ECS
|
|
588
619
|
# container_port: 1,
|
589
620
|
# },
|
590
621
|
# ],
|
591
|
-
# desired_count: 1,
|
622
|
+
# desired_count: 1,
|
592
623
|
# client_token: "String",
|
593
624
|
# launch_type: "EC2", # accepts EC2, FARGATE
|
594
625
|
# platform_version: "String",
|
@@ -617,6 +648,7 @@ module Aws::ECS
|
|
617
648
|
# },
|
618
649
|
# },
|
619
650
|
# health_check_grace_period_seconds: 1,
|
651
|
+
# scheduling_strategy: "REPLICA", # accepts REPLICA, DAEMON
|
620
652
|
# })
|
621
653
|
#
|
622
654
|
# @example Response structure
|
@@ -677,6 +709,7 @@ module Aws::ECS
|
|
677
709
|
# resp.service.network_configuration.awsvpc_configuration.security_groups[0] #=> String
|
678
710
|
# resp.service.network_configuration.awsvpc_configuration.assign_public_ip #=> String, one of "ENABLED", "DISABLED"
|
679
711
|
# resp.service.health_check_grace_period_seconds #=> Integer
|
712
|
+
# resp.service.scheduling_strategy #=> String, one of "REPLICA", "DAEMON"
|
680
713
|
#
|
681
714
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/CreateService AWS API Documentation
|
682
715
|
#
|
@@ -825,6 +858,11 @@ module Aws::ECS
|
|
825
858
|
# @option params [required, String] :service
|
826
859
|
# The name of the service to delete.
|
827
860
|
#
|
861
|
+
# @option params [Boolean] :force
|
862
|
+
# If `true`, allows you to delete a service even if it has not been
|
863
|
+
# scaled down to zero tasks. It is only necessary to use this if the
|
864
|
+
# service is using the `REPLICA` scheduling strategy.
|
865
|
+
#
|
828
866
|
# @return [Types::DeleteServiceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
829
867
|
#
|
830
868
|
# * {Types::DeleteServiceResponse#service #service} => Types::Service
|
@@ -848,6 +886,7 @@ module Aws::ECS
|
|
848
886
|
# resp = client.delete_service({
|
849
887
|
# cluster: "String",
|
850
888
|
# service: "String", # required
|
889
|
+
# force: false,
|
851
890
|
# })
|
852
891
|
#
|
853
892
|
# @example Response structure
|
@@ -908,6 +947,7 @@ module Aws::ECS
|
|
908
947
|
# resp.service.network_configuration.awsvpc_configuration.security_groups[0] #=> String
|
909
948
|
# resp.service.network_configuration.awsvpc_configuration.assign_public_ip #=> String, one of "ENABLED", "DISABLED"
|
910
949
|
# resp.service.health_check_grace_period_seconds #=> Integer
|
950
|
+
# resp.service.scheduling_strategy #=> String, one of "REPLICA", "DAEMON"
|
911
951
|
#
|
912
952
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DeleteService AWS API Documentation
|
913
953
|
#
|
@@ -1586,6 +1626,7 @@ module Aws::ECS
|
|
1586
1626
|
# resp.services[0].network_configuration.awsvpc_configuration.security_groups[0] #=> String
|
1587
1627
|
# resp.services[0].network_configuration.awsvpc_configuration.assign_public_ip #=> String, one of "ENABLED", "DISABLED"
|
1588
1628
|
# resp.services[0].health_check_grace_period_seconds #=> Integer
|
1629
|
+
# resp.services[0].scheduling_strategy #=> String, one of "REPLICA", "DAEMON"
|
1589
1630
|
# resp.failures #=> Array
|
1590
1631
|
# resp.failures[0].arn #=> String
|
1591
1632
|
# resp.failures[0].reason #=> String
|
@@ -2272,6 +2313,9 @@ module Aws::ECS
|
|
2272
2313
|
# @option params [String] :launch_type
|
2273
2314
|
# The launch type for services you want to list.
|
2274
2315
|
#
|
2316
|
+
# @option params [String] :scheduling_strategy
|
2317
|
+
# The scheduling strategy for services to list.
|
2318
|
+
#
|
2275
2319
|
# @return [Types::ListServicesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2276
2320
|
#
|
2277
2321
|
# * {Types::ListServicesResponse#service_arns #service_arns} => Array<String>
|
@@ -2299,6 +2343,7 @@ module Aws::ECS
|
|
2299
2343
|
# next_token: "String",
|
2300
2344
|
# max_results: 1,
|
2301
2345
|
# launch_type: "EC2", # accepts EC2, FARGATE
|
2346
|
+
# scheduling_strategy: "REPLICA", # accepts REPLICA, DAEMON
|
2302
2347
|
# })
|
2303
2348
|
#
|
2304
2349
|
# @example Response structure
|
@@ -4562,6 +4607,7 @@ module Aws::ECS
|
|
4562
4607
|
# resp.service.network_configuration.awsvpc_configuration.security_groups[0] #=> String
|
4563
4608
|
# resp.service.network_configuration.awsvpc_configuration.assign_public_ip #=> String, one of "ENABLED", "DISABLED"
|
4564
4609
|
# resp.service.health_check_grace_period_seconds #=> Integer
|
4610
|
+
# resp.service.scheduling_strategy #=> String, one of "REPLICA", "DAEMON"
|
4565
4611
|
#
|
4566
4612
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/UpdateService AWS API Documentation
|
4567
4613
|
#
|
@@ -4585,7 +4631,7 @@ module Aws::ECS
|
|
4585
4631
|
params: params,
|
4586
4632
|
config: config)
|
4587
4633
|
context[:gem_name] = 'aws-sdk-ecs'
|
4588
|
-
context[:gem_version] = '1.
|
4634
|
+
context[:gem_version] = '1.14.0'
|
4589
4635
|
Seahorse::Client::Request.new(handlers, context)
|
4590
4636
|
end
|
4591
4637
|
|
@@ -151,6 +151,7 @@ module Aws::ECS
|
|
151
151
|
Resources = Shapes::ListShape.new(name: 'Resources')
|
152
152
|
RunTaskRequest = Shapes::StructureShape.new(name: 'RunTaskRequest')
|
153
153
|
RunTaskResponse = Shapes::StructureShape.new(name: 'RunTaskResponse')
|
154
|
+
SchedulingStrategy = Shapes::StringShape.new(name: 'SchedulingStrategy')
|
154
155
|
ServerException = Shapes::StructureShape.new(name: 'ServerException')
|
155
156
|
Service = Shapes::StructureShape.new(name: 'Service')
|
156
157
|
ServiceEvent = Shapes::StructureShape.new(name: 'ServiceEvent')
|
@@ -342,7 +343,7 @@ module Aws::ECS
|
|
342
343
|
CreateServiceRequest.add_member(:task_definition, Shapes::ShapeRef.new(shape: String, required: true, location_name: "taskDefinition"))
|
343
344
|
CreateServiceRequest.add_member(:load_balancers, Shapes::ShapeRef.new(shape: LoadBalancers, location_name: "loadBalancers"))
|
344
345
|
CreateServiceRequest.add_member(:service_registries, Shapes::ShapeRef.new(shape: ServiceRegistries, location_name: "serviceRegistries"))
|
345
|
-
CreateServiceRequest.add_member(:desired_count, Shapes::ShapeRef.new(shape: BoxedInteger,
|
346
|
+
CreateServiceRequest.add_member(:desired_count, Shapes::ShapeRef.new(shape: BoxedInteger, location_name: "desiredCount"))
|
346
347
|
CreateServiceRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "clientToken"))
|
347
348
|
CreateServiceRequest.add_member(:launch_type, Shapes::ShapeRef.new(shape: LaunchType, location_name: "launchType"))
|
348
349
|
CreateServiceRequest.add_member(:platform_version, Shapes::ShapeRef.new(shape: String, location_name: "platformVersion"))
|
@@ -352,6 +353,7 @@ module Aws::ECS
|
|
352
353
|
CreateServiceRequest.add_member(:placement_strategy, Shapes::ShapeRef.new(shape: PlacementStrategies, location_name: "placementStrategy"))
|
353
354
|
CreateServiceRequest.add_member(:network_configuration, Shapes::ShapeRef.new(shape: NetworkConfiguration, location_name: "networkConfiguration"))
|
354
355
|
CreateServiceRequest.add_member(:health_check_grace_period_seconds, Shapes::ShapeRef.new(shape: BoxedInteger, location_name: "healthCheckGracePeriodSeconds"))
|
356
|
+
CreateServiceRequest.add_member(:scheduling_strategy, Shapes::ShapeRef.new(shape: SchedulingStrategy, location_name: "schedulingStrategy"))
|
355
357
|
CreateServiceRequest.struct_class = Types::CreateServiceRequest
|
356
358
|
|
357
359
|
CreateServiceResponse.add_member(:service, Shapes::ShapeRef.new(shape: Service, location_name: "service"))
|
@@ -372,6 +374,7 @@ module Aws::ECS
|
|
372
374
|
|
373
375
|
DeleteServiceRequest.add_member(:cluster, Shapes::ShapeRef.new(shape: String, location_name: "cluster"))
|
374
376
|
DeleteServiceRequest.add_member(:service, Shapes::ShapeRef.new(shape: String, required: true, location_name: "service"))
|
377
|
+
DeleteServiceRequest.add_member(:force, Shapes::ShapeRef.new(shape: BoxedBoolean, location_name: "force"))
|
375
378
|
DeleteServiceRequest.struct_class = Types::DeleteServiceRequest
|
376
379
|
|
377
380
|
DeleteServiceResponse.add_member(:service, Shapes::ShapeRef.new(shape: Service, location_name: "service"))
|
@@ -542,6 +545,7 @@ module Aws::ECS
|
|
542
545
|
ListServicesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
|
543
546
|
ListServicesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: BoxedInteger, location_name: "maxResults"))
|
544
547
|
ListServicesRequest.add_member(:launch_type, Shapes::ShapeRef.new(shape: LaunchType, location_name: "launchType"))
|
548
|
+
ListServicesRequest.add_member(:scheduling_strategy, Shapes::ShapeRef.new(shape: SchedulingStrategy, location_name: "schedulingStrategy"))
|
545
549
|
ListServicesRequest.struct_class = Types::ListServicesRequest
|
546
550
|
|
547
551
|
ListServicesResponse.add_member(:service_arns, Shapes::ShapeRef.new(shape: StringList, location_name: "serviceArns"))
|
@@ -727,6 +731,7 @@ module Aws::ECS
|
|
727
731
|
Service.add_member(:placement_strategy, Shapes::ShapeRef.new(shape: PlacementStrategies, location_name: "placementStrategy"))
|
728
732
|
Service.add_member(:network_configuration, Shapes::ShapeRef.new(shape: NetworkConfiguration, location_name: "networkConfiguration"))
|
729
733
|
Service.add_member(:health_check_grace_period_seconds, Shapes::ShapeRef.new(shape: BoxedInteger, location_name: "healthCheckGracePeriodSeconds"))
|
734
|
+
Service.add_member(:scheduling_strategy, Shapes::ShapeRef.new(shape: SchedulingStrategy, location_name: "schedulingStrategy"))
|
730
735
|
Service.struct_class = Types::Service
|
731
736
|
|
732
737
|
ServiceEvent.add_member(:id, Shapes::ShapeRef.new(shape: String, location_name: "id"))
|
data/lib/aws-sdk-ecs/types.rb
CHANGED
@@ -1378,7 +1378,7 @@ module Aws::ECS
|
|
1378
1378
|
# container_port: 1,
|
1379
1379
|
# },
|
1380
1380
|
# ],
|
1381
|
-
# desired_count: 1,
|
1381
|
+
# desired_count: 1,
|
1382
1382
|
# client_token: "String",
|
1383
1383
|
# launch_type: "EC2", # accepts EC2, FARGATE
|
1384
1384
|
# platform_version: "String",
|
@@ -1407,6 +1407,7 @@ module Aws::ECS
|
|
1407
1407
|
# },
|
1408
1408
|
# },
|
1409
1409
|
# health_check_grace_period_seconds: 1,
|
1410
|
+
# scheduling_strategy: "REPLICA", # accepts REPLICA, DAEMON
|
1410
1411
|
# }
|
1411
1412
|
#
|
1412
1413
|
# @!attribute [rw] cluster
|
@@ -1569,6 +1570,34 @@ module Aws::ECS
|
|
1569
1570
|
# before they have time to come up.
|
1570
1571
|
# @return [Integer]
|
1571
1572
|
#
|
1573
|
+
# @!attribute [rw] scheduling_strategy
|
1574
|
+
# The scheduling strategy to use for the service. For more
|
1575
|
+
# information, see [Services][1].
|
1576
|
+
#
|
1577
|
+
# There are two service scheduler strategies available:
|
1578
|
+
#
|
1579
|
+
# * `REPLICA`-The replica scheduling strategy places and maintains the
|
1580
|
+
# desired number of tasks across your cluster. By default, the
|
1581
|
+
# service scheduler spreads tasks across Availability Zones. You can
|
1582
|
+
# use task placement strategies and constraints to customize task
|
1583
|
+
# placement decisions.
|
1584
|
+
#
|
1585
|
+
# * `DAEMON`-The daemon scheduling strategy deploys exactly one task
|
1586
|
+
# on each active container instance that meets all of the task
|
1587
|
+
# placement constraints that you specify in your cluster. When using
|
1588
|
+
# this strategy, there is no need to specify a desired number of
|
1589
|
+
# tasks, a task placement strategy, or use Service Auto Scaling
|
1590
|
+
# policies.
|
1591
|
+
#
|
1592
|
+
# <note markdown="1"> Fargate tasks do not support the `DAEMON` scheduling strategy.
|
1593
|
+
#
|
1594
|
+
# </note>
|
1595
|
+
#
|
1596
|
+
#
|
1597
|
+
#
|
1598
|
+
# [1]: http://docs.aws.amazon.com/AmazonECS/latest/developerguideecs_services.html
|
1599
|
+
# @return [String]
|
1600
|
+
#
|
1572
1601
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/CreateServiceRequest AWS API Documentation
|
1573
1602
|
#
|
1574
1603
|
class CreateServiceRequest < Struct.new(
|
@@ -1586,7 +1615,8 @@ module Aws::ECS
|
|
1586
1615
|
:placement_constraints,
|
1587
1616
|
:placement_strategy,
|
1588
1617
|
:network_configuration,
|
1589
|
-
:health_check_grace_period_seconds
|
1618
|
+
:health_check_grace_period_seconds,
|
1619
|
+
:scheduling_strategy)
|
1590
1620
|
include Aws::Structure
|
1591
1621
|
end
|
1592
1622
|
|
@@ -1686,6 +1716,7 @@ module Aws::ECS
|
|
1686
1716
|
# {
|
1687
1717
|
# cluster: "String",
|
1688
1718
|
# service: "String", # required
|
1719
|
+
# force: false,
|
1689
1720
|
# }
|
1690
1721
|
#
|
1691
1722
|
# @!attribute [rw] cluster
|
@@ -1698,11 +1729,18 @@ module Aws::ECS
|
|
1698
1729
|
# The name of the service to delete.
|
1699
1730
|
# @return [String]
|
1700
1731
|
#
|
1732
|
+
# @!attribute [rw] force
|
1733
|
+
# If `true`, allows you to delete a service even if it has not been
|
1734
|
+
# scaled down to zero tasks. It is only necessary to use this if the
|
1735
|
+
# service is using the `REPLICA` scheduling strategy.
|
1736
|
+
# @return [Boolean]
|
1737
|
+
#
|
1701
1738
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DeleteServiceRequest AWS API Documentation
|
1702
1739
|
#
|
1703
1740
|
class DeleteServiceRequest < Struct.new(
|
1704
1741
|
:cluster,
|
1705
|
-
:service
|
1742
|
+
:service,
|
1743
|
+
:force)
|
1706
1744
|
include Aws::Structure
|
1707
1745
|
end
|
1708
1746
|
|
@@ -2838,6 +2876,7 @@ module Aws::ECS
|
|
2838
2876
|
# next_token: "String",
|
2839
2877
|
# max_results: 1,
|
2840
2878
|
# launch_type: "EC2", # accepts EC2, FARGATE
|
2879
|
+
# scheduling_strategy: "REPLICA", # accepts REPLICA, DAEMON
|
2841
2880
|
# }
|
2842
2881
|
#
|
2843
2882
|
# @!attribute [rw] cluster
|
@@ -2874,13 +2913,18 @@ module Aws::ECS
|
|
2874
2913
|
# The launch type for services you want to list.
|
2875
2914
|
# @return [String]
|
2876
2915
|
#
|
2916
|
+
# @!attribute [rw] scheduling_strategy
|
2917
|
+
# The scheduling strategy for services to list.
|
2918
|
+
# @return [String]
|
2919
|
+
#
|
2877
2920
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ListServicesRequest AWS API Documentation
|
2878
2921
|
#
|
2879
2922
|
class ListServicesRequest < Struct.new(
|
2880
2923
|
:cluster,
|
2881
2924
|
:next_token,
|
2882
2925
|
:max_results,
|
2883
|
-
:launch_type
|
2926
|
+
:launch_type,
|
2927
|
+
:scheduling_strategy)
|
2884
2928
|
include Aws::Structure
|
2885
2929
|
end
|
2886
2930
|
|
@@ -4442,6 +4486,32 @@ module Aws::ECS
|
|
4442
4486
|
# checks after a task has first started.
|
4443
4487
|
# @return [Integer]
|
4444
4488
|
#
|
4489
|
+
# @!attribute [rw] scheduling_strategy
|
4490
|
+
# The scheduling strategy to use for the service. For more
|
4491
|
+
# information, see [Services][1].
|
4492
|
+
#
|
4493
|
+
# There are two service scheduler strategies available:
|
4494
|
+
#
|
4495
|
+
# * `REPLICA`-The replica scheduling strategy places and maintains the
|
4496
|
+
# desired number of tasks across your cluster. By default, the
|
4497
|
+
# service scheduler spreads tasks across Availability Zones. You can
|
4498
|
+
# use task placement strategies and constraints to customize task
|
4499
|
+
# placement decisions.
|
4500
|
+
#
|
4501
|
+
# * `DAEMON`-The daemon scheduling strategy deploys exactly one task
|
4502
|
+
# on each container instance in your cluster. When using this
|
4503
|
+
# strategy, do not specify a desired number of tasks or any task
|
4504
|
+
# placement strategies.
|
4505
|
+
#
|
4506
|
+
# <note markdown="1"> Fargate tasks do not support the `DAEMON` scheduling strategy.
|
4507
|
+
#
|
4508
|
+
# </note>
|
4509
|
+
#
|
4510
|
+
#
|
4511
|
+
#
|
4512
|
+
# [1]: http://docs.aws.amazon.com/AmazonECS/latest/developerguideecs_services.html
|
4513
|
+
# @return [String]
|
4514
|
+
#
|
4445
4515
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/Service AWS API Documentation
|
4446
4516
|
#
|
4447
4517
|
class Service < Struct.new(
|
@@ -4465,7 +4535,8 @@ module Aws::ECS
|
|
4465
4535
|
:placement_constraints,
|
4466
4536
|
:placement_strategy,
|
4467
4537
|
:network_configuration,
|
4468
|
-
:health_check_grace_period_seconds
|
4538
|
+
:health_check_grace_period_seconds,
|
4539
|
+
:scheduling_strategy)
|
4469
4540
|
include Aws::Structure
|
4470
4541
|
end
|
4471
4542
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-ecs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.14.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: 2018-
|
11
|
+
date: 2018-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|