aws-sdk-ecs 1.16.0 → 1.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-ecs.rb +1 -1
- data/lib/aws-sdk-ecs/client.rb +37 -1
- data/lib/aws-sdk-ecs/client_api.rb +14 -0
- data/lib/aws-sdk-ecs/types.rb +218 -76
- 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: 4b6e1c767517aa6033c8ebce7d08a8af676c17a0
|
4
|
+
data.tar.gz: d9c6115e3df9c4fa7461d8b26a1abcb8830527ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84c0e1df0d52b5f6ccc6a06912f673263cdd5286a6b47ca2eb423f2caf8da9ba06d5598449d1dc0b4f212da3a740875404e5fa305637b2038051d9644d6465aa
|
7
|
+
data.tar.gz: 14e6a8e199ce9c3f1794d8eea40d34462a98b90dbd61348fb97f5c7ea8e247b93e175929d7b5899e0c1e0990584404fad4e442eaf4134c9a20893f0ce7e8fdd8
|
data/lib/aws-sdk-ecs.rb
CHANGED
data/lib/aws-sdk-ecs/client.rb
CHANGED
@@ -861,6 +861,10 @@ module Aws::ECS
|
|
861
861
|
#
|
862
862
|
# </note>
|
863
863
|
#
|
864
|
+
# If you attempt to create a new service with the same name as an
|
865
|
+
# existing service in either `ACTIVE` or `DRAINING` status, you will
|
866
|
+
# receive an error.
|
867
|
+
#
|
864
868
|
# @option params [String] :cluster
|
865
869
|
# The short name or full Amazon Resource Name (ARN) of the cluster that
|
866
870
|
# hosts the service to delete. If you do not specify a cluster, the
|
@@ -1218,6 +1222,13 @@ module Aws::ECS
|
|
1218
1222
|
# resp.task_definition.volumes #=> Array
|
1219
1223
|
# resp.task_definition.volumes[0].name #=> String
|
1220
1224
|
# resp.task_definition.volumes[0].host.source_path #=> String
|
1225
|
+
# resp.task_definition.volumes[0].docker_volume_configuration.scope #=> String, one of "task", "shared"
|
1226
|
+
# resp.task_definition.volumes[0].docker_volume_configuration.autoprovision #=> Boolean
|
1227
|
+
# resp.task_definition.volumes[0].docker_volume_configuration.driver #=> String
|
1228
|
+
# resp.task_definition.volumes[0].docker_volume_configuration.driver_opts #=> Hash
|
1229
|
+
# resp.task_definition.volumes[0].docker_volume_configuration.driver_opts["String"] #=> String
|
1230
|
+
# resp.task_definition.volumes[0].docker_volume_configuration.labels #=> Hash
|
1231
|
+
# resp.task_definition.volumes[0].docker_volume_configuration.labels["String"] #=> String
|
1221
1232
|
# resp.task_definition.status #=> String, one of "ACTIVE", "INACTIVE"
|
1222
1233
|
# resp.task_definition.requires_attributes #=> Array
|
1223
1234
|
# resp.task_definition.requires_attributes[0].name #=> String
|
@@ -1825,6 +1836,13 @@ module Aws::ECS
|
|
1825
1836
|
# resp.task_definition.volumes #=> Array
|
1826
1837
|
# resp.task_definition.volumes[0].name #=> String
|
1827
1838
|
# resp.task_definition.volumes[0].host.source_path #=> String
|
1839
|
+
# resp.task_definition.volumes[0].docker_volume_configuration.scope #=> String, one of "task", "shared"
|
1840
|
+
# resp.task_definition.volumes[0].docker_volume_configuration.autoprovision #=> Boolean
|
1841
|
+
# resp.task_definition.volumes[0].docker_volume_configuration.driver #=> String
|
1842
|
+
# resp.task_definition.volumes[0].docker_volume_configuration.driver_opts #=> Hash
|
1843
|
+
# resp.task_definition.volumes[0].docker_volume_configuration.driver_opts["String"] #=> String
|
1844
|
+
# resp.task_definition.volumes[0].docker_volume_configuration.labels #=> Hash
|
1845
|
+
# resp.task_definition.volumes[0].docker_volume_configuration.labels["String"] #=> String
|
1828
1846
|
# resp.task_definition.status #=> String, one of "ACTIVE", "INACTIVE"
|
1829
1847
|
# resp.task_definition.requires_attributes #=> Array
|
1830
1848
|
# resp.task_definition.requires_attributes[0].name #=> String
|
@@ -3286,6 +3304,17 @@ module Aws::ECS
|
|
3286
3304
|
# host: {
|
3287
3305
|
# source_path: "String",
|
3288
3306
|
# },
|
3307
|
+
# docker_volume_configuration: {
|
3308
|
+
# scope: "task", # accepts task, shared
|
3309
|
+
# autoprovision: false,
|
3310
|
+
# driver: "String",
|
3311
|
+
# driver_opts: {
|
3312
|
+
# "String" => "String",
|
3313
|
+
# },
|
3314
|
+
# labels: {
|
3315
|
+
# "String" => "String",
|
3316
|
+
# },
|
3317
|
+
# },
|
3289
3318
|
# },
|
3290
3319
|
# ],
|
3291
3320
|
# placement_constraints: [
|
@@ -3384,6 +3413,13 @@ module Aws::ECS
|
|
3384
3413
|
# resp.task_definition.volumes #=> Array
|
3385
3414
|
# resp.task_definition.volumes[0].name #=> String
|
3386
3415
|
# resp.task_definition.volumes[0].host.source_path #=> String
|
3416
|
+
# resp.task_definition.volumes[0].docker_volume_configuration.scope #=> String, one of "task", "shared"
|
3417
|
+
# resp.task_definition.volumes[0].docker_volume_configuration.autoprovision #=> Boolean
|
3418
|
+
# resp.task_definition.volumes[0].docker_volume_configuration.driver #=> String
|
3419
|
+
# resp.task_definition.volumes[0].docker_volume_configuration.driver_opts #=> Hash
|
3420
|
+
# resp.task_definition.volumes[0].docker_volume_configuration.driver_opts["String"] #=> String
|
3421
|
+
# resp.task_definition.volumes[0].docker_volume_configuration.labels #=> Hash
|
3422
|
+
# resp.task_definition.volumes[0].docker_volume_configuration.labels["String"] #=> String
|
3387
3423
|
# resp.task_definition.status #=> String, one of "ACTIVE", "INACTIVE"
|
3388
3424
|
# resp.task_definition.requires_attributes #=> Array
|
3389
3425
|
# resp.task_definition.requires_attributes[0].name #=> String
|
@@ -4649,7 +4685,7 @@ module Aws::ECS
|
|
4649
4685
|
params: params,
|
4650
4686
|
config: config)
|
4651
4687
|
context[:gem_name] = 'aws-sdk-ecs'
|
4652
|
-
context[:gem_version] = '1.
|
4688
|
+
context[:gem_version] = '1.17.0'
|
4653
4689
|
Seahorse::Client::Request.new(handlers, context)
|
4654
4690
|
end
|
4655
4691
|
|
@@ -85,6 +85,7 @@ module Aws::ECS
|
|
85
85
|
DiscoverPollEndpointRequest = Shapes::StructureShape.new(name: 'DiscoverPollEndpointRequest')
|
86
86
|
DiscoverPollEndpointResponse = Shapes::StructureShape.new(name: 'DiscoverPollEndpointResponse')
|
87
87
|
DockerLabelsMap = Shapes::MapShape.new(name: 'DockerLabelsMap')
|
88
|
+
DockerVolumeConfiguration = Shapes::StructureShape.new(name: 'DockerVolumeConfiguration')
|
88
89
|
Double = Shapes::FloatShape.new(name: 'Double')
|
89
90
|
EnvironmentVariables = Shapes::ListShape.new(name: 'EnvironmentVariables')
|
90
91
|
Failure = Shapes::StructureShape.new(name: 'Failure')
|
@@ -153,6 +154,7 @@ module Aws::ECS
|
|
153
154
|
RunTaskRequest = Shapes::StructureShape.new(name: 'RunTaskRequest')
|
154
155
|
RunTaskResponse = Shapes::StructureShape.new(name: 'RunTaskResponse')
|
155
156
|
SchedulingStrategy = Shapes::StringShape.new(name: 'SchedulingStrategy')
|
157
|
+
Scope = Shapes::StringShape.new(name: 'Scope')
|
156
158
|
ServerException = Shapes::StructureShape.new(name: 'ServerException')
|
157
159
|
Service = Shapes::StructureShape.new(name: 'Service')
|
158
160
|
ServiceEvent = Shapes::StructureShape.new(name: 'ServiceEvent')
|
@@ -170,6 +172,7 @@ module Aws::ECS
|
|
170
172
|
StopTaskResponse = Shapes::StructureShape.new(name: 'StopTaskResponse')
|
171
173
|
String = Shapes::StringShape.new(name: 'String')
|
172
174
|
StringList = Shapes::ListShape.new(name: 'StringList')
|
175
|
+
StringMap = Shapes::MapShape.new(name: 'StringMap')
|
173
176
|
SubmitContainerStateChangeRequest = Shapes::StructureShape.new(name: 'SubmitContainerStateChangeRequest')
|
174
177
|
SubmitContainerStateChangeResponse = Shapes::StructureShape.new(name: 'SubmitContainerStateChangeResponse')
|
175
178
|
SubmitTaskStateChangeRequest = Shapes::StructureShape.new(name: 'SubmitTaskStateChangeRequest')
|
@@ -473,6 +476,13 @@ module Aws::ECS
|
|
473
476
|
DockerLabelsMap.key = Shapes::ShapeRef.new(shape: String)
|
474
477
|
DockerLabelsMap.value = Shapes::ShapeRef.new(shape: String)
|
475
478
|
|
479
|
+
DockerVolumeConfiguration.add_member(:scope, Shapes::ShapeRef.new(shape: Scope, location_name: "scope"))
|
480
|
+
DockerVolumeConfiguration.add_member(:autoprovision, Shapes::ShapeRef.new(shape: BoxedBoolean, location_name: "autoprovision"))
|
481
|
+
DockerVolumeConfiguration.add_member(:driver, Shapes::ShapeRef.new(shape: String, location_name: "driver"))
|
482
|
+
DockerVolumeConfiguration.add_member(:driver_opts, Shapes::ShapeRef.new(shape: StringMap, location_name: "driverOpts"))
|
483
|
+
DockerVolumeConfiguration.add_member(:labels, Shapes::ShapeRef.new(shape: StringMap, location_name: "labels"))
|
484
|
+
DockerVolumeConfiguration.struct_class = Types::DockerVolumeConfiguration
|
485
|
+
|
476
486
|
EnvironmentVariables.member = Shapes::ShapeRef.new(shape: KeyValuePair)
|
477
487
|
|
478
488
|
Failure.add_member(:arn, Shapes::ShapeRef.new(shape: String, location_name: "arn"))
|
@@ -781,6 +791,9 @@ module Aws::ECS
|
|
781
791
|
|
782
792
|
StringList.member = Shapes::ShapeRef.new(shape: String)
|
783
793
|
|
794
|
+
StringMap.key = Shapes::ShapeRef.new(shape: String)
|
795
|
+
StringMap.value = Shapes::ShapeRef.new(shape: String)
|
796
|
+
|
784
797
|
SubmitContainerStateChangeRequest.add_member(:cluster, Shapes::ShapeRef.new(shape: String, location_name: "cluster"))
|
785
798
|
SubmitContainerStateChangeRequest.add_member(:task, Shapes::ShapeRef.new(shape: String, location_name: "task"))
|
786
799
|
SubmitContainerStateChangeRequest.add_member(:container_name, Shapes::ShapeRef.new(shape: String, location_name: "containerName"))
|
@@ -917,6 +930,7 @@ module Aws::ECS
|
|
917
930
|
|
918
931
|
Volume.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "name"))
|
919
932
|
Volume.add_member(:host, Shapes::ShapeRef.new(shape: HostVolumeProperties, location_name: "host"))
|
933
|
+
Volume.add_member(:docker_volume_configuration, Shapes::ShapeRef.new(shape: DockerVolumeConfiguration, location_name: "dockerVolumeConfiguration"))
|
920
934
|
Volume.struct_class = Types::Volume
|
921
935
|
|
922
936
|
VolumeFrom.add_member(:source_container, Shapes::ShapeRef.new(shape: String, location_name: "sourceContainer"))
|
data/lib/aws-sdk-ecs/types.rb
CHANGED
@@ -151,7 +151,7 @@ module Aws::ECS
|
|
151
151
|
#
|
152
152
|
# @!attribute [rw] assign_public_ip
|
153
153
|
# Whether the task's elastic network interface receives a public IP
|
154
|
-
# address.
|
154
|
+
# address. The default value is `DISABLED`.
|
155
155
|
# @return [String]
|
156
156
|
#
|
157
157
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/AwsVpcConfiguration AWS API Documentation
|
@@ -189,7 +189,8 @@ module Aws::ECS
|
|
189
189
|
# @return [String]
|
190
190
|
#
|
191
191
|
# @!attribute [rw] registered_container_instances_count
|
192
|
-
# The number of container instances registered into the cluster.
|
192
|
+
# The number of container instances registered into the cluster. This
|
193
|
+
# includes container instances in both `ACTIVE` and `DRAINING` status.
|
193
194
|
# @return [Integer]
|
194
195
|
#
|
195
196
|
# @!attribute [rw] running_tasks_count
|
@@ -414,8 +415,8 @@ module Aws::ECS
|
|
414
415
|
#
|
415
416
|
#
|
416
417
|
#
|
417
|
-
# [1]: https://docs.docker.com/engine/
|
418
|
-
# [2]: https://docs.docker.com/engine/
|
418
|
+
# [1]: https://docs.docker.com/engine/api/v1.35/#create-a-container
|
419
|
+
# [2]: https://docs.docker.com/engine/api/v1.35/
|
419
420
|
# [3]: https://docs.docker.com/engine/reference/run/
|
420
421
|
# @return [String]
|
421
422
|
#
|
@@ -453,8 +454,8 @@ module Aws::ECS
|
|
453
454
|
#
|
454
455
|
#
|
455
456
|
#
|
456
|
-
# [1]: https://docs.docker.com/engine/
|
457
|
-
# [2]: https://docs.docker.com/engine/
|
457
|
+
# [1]: https://docs.docker.com/engine/api/v1.35/#create-a-container
|
458
|
+
# [2]: https://docs.docker.com/engine/api/v1.35/
|
458
459
|
# [3]: https://docs.docker.com/engine/reference/run/
|
459
460
|
# @return [String]
|
460
461
|
#
|
@@ -528,8 +529,8 @@ module Aws::ECS
|
|
528
529
|
#
|
529
530
|
#
|
530
531
|
#
|
531
|
-
# [1]: https://docs.docker.com/engine/
|
532
|
-
# [2]: https://docs.docker.com/engine/
|
532
|
+
# [1]: https://docs.docker.com/engine/api/v1.35/#create-a-container
|
533
|
+
# [2]: https://docs.docker.com/engine/api/v1.35/
|
533
534
|
# [3]: https://docs.docker.com/engine/reference/run/
|
534
535
|
# [4]: http://aws.amazon.com/ec2/instance-types/
|
535
536
|
# [5]: https://docs.docker.com/engine/reference/run/#cpu-share-constraint
|
@@ -561,8 +562,8 @@ module Aws::ECS
|
|
561
562
|
#
|
562
563
|
#
|
563
564
|
#
|
564
|
-
# [1]: https://docs.docker.com/engine/
|
565
|
-
# [2]: https://docs.docker.com/engine/
|
565
|
+
# [1]: https://docs.docker.com/engine/api/v1.35/#create-a-container
|
566
|
+
# [2]: https://docs.docker.com/engine/api/v1.35/
|
566
567
|
# [3]: https://docs.docker.com/engine/reference/run/
|
567
568
|
# @return [Integer]
|
568
569
|
#
|
@@ -598,8 +599,8 @@ module Aws::ECS
|
|
598
599
|
#
|
599
600
|
#
|
600
601
|
#
|
601
|
-
# [1]: https://docs.docker.com/engine/
|
602
|
-
# [2]: https://docs.docker.com/engine/
|
602
|
+
# [1]: https://docs.docker.com/engine/api/v1.35/#create-a-container
|
603
|
+
# [2]: https://docs.docker.com/engine/api/v1.35/
|
603
604
|
# [3]: https://docs.docker.com/engine/reference/run/
|
604
605
|
# @return [Integer]
|
605
606
|
#
|
@@ -628,8 +629,8 @@ module Aws::ECS
|
|
628
629
|
#
|
629
630
|
#
|
630
631
|
# [1]: https://docs.docker.com/engine/userguide/networking/default_network/dockerlinks/
|
631
|
-
# [2]: https://docs.docker.com/engine/
|
632
|
-
# [3]: https://docs.docker.com/engine/
|
632
|
+
# [2]: https://docs.docker.com/engine/api/v1.35/#create-a-container
|
633
|
+
# [3]: https://docs.docker.com/engine/api/v1.35/
|
633
634
|
# [4]: https://docs.docker.com/engine/reference/commandline/run/
|
634
635
|
# @return [Array<String>]
|
635
636
|
#
|
@@ -665,8 +666,8 @@ module Aws::ECS
|
|
665
666
|
#
|
666
667
|
#
|
667
668
|
#
|
668
|
-
# [1]: https://docs.docker.com/engine/
|
669
|
-
# [2]: https://docs.docker.com/engine/
|
669
|
+
# [1]: https://docs.docker.com/engine/api/v1.35/#create-a-container
|
670
|
+
# [2]: https://docs.docker.com/engine/api/v1.35/
|
670
671
|
# [3]: https://docs.docker.com/engine/reference/run/
|
671
672
|
# @return [Array<Types::PortMapping>]
|
672
673
|
#
|
@@ -704,8 +705,8 @@ module Aws::ECS
|
|
704
705
|
#
|
705
706
|
#
|
706
707
|
#
|
707
|
-
# [1]: https://docs.docker.com/engine/
|
708
|
-
# [2]: https://docs.docker.com/engine/
|
708
|
+
# [1]: https://docs.docker.com/engine/api/v1.35/#create-a-container
|
709
|
+
# [2]: https://docs.docker.com/engine/api/v1.35/
|
709
710
|
# [3]: https://docs.docker.com/engine/reference/run/
|
710
711
|
# [4]: https://docs.docker.com/engine/reference/builder/#entrypoint
|
711
712
|
# @return [Array<String>]
|
@@ -719,8 +720,8 @@ module Aws::ECS
|
|
719
720
|
#
|
720
721
|
#
|
721
722
|
#
|
722
|
-
# [1]: https://docs.docker.com/engine/
|
723
|
-
# [2]: https://docs.docker.com/engine/
|
723
|
+
# [1]: https://docs.docker.com/engine/api/v1.35/#create-a-container
|
724
|
+
# [2]: https://docs.docker.com/engine/api/v1.35/
|
724
725
|
# [3]: https://docs.docker.com/engine/reference/run/
|
725
726
|
# [4]: https://docs.docker.com/engine/reference/builder/#cmd
|
726
727
|
# @return [Array<String>]
|
@@ -735,8 +736,8 @@ module Aws::ECS
|
|
735
736
|
#
|
736
737
|
#
|
737
738
|
#
|
738
|
-
# [1]: https://docs.docker.com/engine/
|
739
|
-
# [2]: https://docs.docker.com/engine/
|
739
|
+
# [1]: https://docs.docker.com/engine/api/v1.35/#create-a-container
|
740
|
+
# [2]: https://docs.docker.com/engine/api/v1.35/
|
740
741
|
# [3]: https://docs.docker.com/engine/reference/run/
|
741
742
|
# @return [Array<Types::KeyValuePair>]
|
742
743
|
#
|
@@ -753,8 +754,8 @@ module Aws::ECS
|
|
753
754
|
#
|
754
755
|
#
|
755
756
|
#
|
756
|
-
# [1]: https://docs.docker.com/engine/
|
757
|
-
# [2]: https://docs.docker.com/engine/
|
757
|
+
# [1]: https://docs.docker.com/engine/api/v1.35/#create-a-container
|
758
|
+
# [2]: https://docs.docker.com/engine/api/v1.35/
|
758
759
|
# [3]: https://docs.docker.com/engine/reference/run/
|
759
760
|
# @return [Array<Types::MountPoint>]
|
760
761
|
#
|
@@ -765,8 +766,8 @@ module Aws::ECS
|
|
765
766
|
#
|
766
767
|
#
|
767
768
|
#
|
768
|
-
# [1]: https://docs.docker.com/engine/
|
769
|
-
# [2]: https://docs.docker.com/engine/
|
769
|
+
# [1]: https://docs.docker.com/engine/api/v1.35/#create-a-container
|
770
|
+
# [2]: https://docs.docker.com/engine/api/v1.35/
|
770
771
|
# [3]: https://docs.docker.com/engine/reference/run/
|
771
772
|
# @return [Array<Types::VolumeFrom>]
|
772
773
|
#
|
@@ -791,8 +792,8 @@ module Aws::ECS
|
|
791
792
|
#
|
792
793
|
#
|
793
794
|
#
|
794
|
-
# [1]: https://docs.docker.com/engine/
|
795
|
-
# [2]: https://docs.docker.com/engine/
|
795
|
+
# [1]: https://docs.docker.com/engine/api/v1.35/#create-a-container
|
796
|
+
# [2]: https://docs.docker.com/engine/api/v1.35/
|
796
797
|
# [3]: https://docs.docker.com/engine/reference/run/
|
797
798
|
# @return [String]
|
798
799
|
#
|
@@ -807,8 +808,8 @@ module Aws::ECS
|
|
807
808
|
#
|
808
809
|
#
|
809
810
|
#
|
810
|
-
# [1]: https://docs.docker.com/engine/
|
811
|
-
# [2]: https://docs.docker.com/engine/
|
811
|
+
# [1]: https://docs.docker.com/engine/api/v1.35/#create-a-container
|
812
|
+
# [2]: https://docs.docker.com/engine/api/v1.35/
|
812
813
|
# [3]: https://docs.docker.com/engine/reference/run/
|
813
814
|
# @return [String]
|
814
815
|
#
|
@@ -820,8 +821,8 @@ module Aws::ECS
|
|
820
821
|
#
|
821
822
|
#
|
822
823
|
#
|
823
|
-
# [1]: https://docs.docker.com/engine/
|
824
|
-
# [2]: https://docs.docker.com/engine/
|
824
|
+
# [1]: https://docs.docker.com/engine/api/v1.35/#create-a-container
|
825
|
+
# [2]: https://docs.docker.com/engine/api/v1.35/
|
825
826
|
# [3]: https://docs.docker.com/engine/reference/run/
|
826
827
|
# @return [String]
|
827
828
|
#
|
@@ -836,8 +837,8 @@ module Aws::ECS
|
|
836
837
|
#
|
837
838
|
#
|
838
839
|
#
|
839
|
-
# [1]: https://docs.docker.com/engine/
|
840
|
-
# [2]: https://docs.docker.com/engine/
|
840
|
+
# [1]: https://docs.docker.com/engine/api/v1.35/#create-a-container
|
841
|
+
# [2]: https://docs.docker.com/engine/api/v1.35/
|
841
842
|
# @return [Boolean]
|
842
843
|
#
|
843
844
|
# @!attribute [rw] privileged
|
@@ -854,8 +855,8 @@ module Aws::ECS
|
|
854
855
|
#
|
855
856
|
#
|
856
857
|
#
|
857
|
-
# [1]: https://docs.docker.com/engine/
|
858
|
-
# [2]: https://docs.docker.com/engine/
|
858
|
+
# [1]: https://docs.docker.com/engine/api/v1.35/#create-a-container
|
859
|
+
# [2]: https://docs.docker.com/engine/api/v1.35/
|
859
860
|
# [3]: https://docs.docker.com/engine/reference/run/
|
860
861
|
# @return [Boolean]
|
861
862
|
#
|
@@ -871,8 +872,8 @@ module Aws::ECS
|
|
871
872
|
#
|
872
873
|
#
|
873
874
|
#
|
874
|
-
# [1]: https://docs.docker.com/engine/
|
875
|
-
# [2]: https://docs.docker.com/engine/
|
875
|
+
# [1]: https://docs.docker.com/engine/api/v1.35/#create-a-container
|
876
|
+
# [2]: https://docs.docker.com/engine/api/v1.35/
|
876
877
|
# @return [Boolean]
|
877
878
|
#
|
878
879
|
# @!attribute [rw] dns_servers
|
@@ -887,8 +888,8 @@ module Aws::ECS
|
|
887
888
|
#
|
888
889
|
#
|
889
890
|
#
|
890
|
-
# [1]: https://docs.docker.com/engine/
|
891
|
-
# [2]: https://docs.docker.com/engine/
|
891
|
+
# [1]: https://docs.docker.com/engine/api/v1.35/#create-a-container
|
892
|
+
# [2]: https://docs.docker.com/engine/api/v1.35/
|
892
893
|
# [3]: https://docs.docker.com/engine/reference/run/
|
893
894
|
# @return [Array<String>]
|
894
895
|
#
|
@@ -904,8 +905,8 @@ module Aws::ECS
|
|
904
905
|
#
|
905
906
|
#
|
906
907
|
#
|
907
|
-
# [1]: https://docs.docker.com/engine/
|
908
|
-
# [2]: https://docs.docker.com/engine/
|
908
|
+
# [1]: https://docs.docker.com/engine/api/v1.35/#create-a-container
|
909
|
+
# [2]: https://docs.docker.com/engine/api/v1.35/
|
909
910
|
# [3]: https://docs.docker.com/engine/reference/run/
|
910
911
|
# @return [Array<String>]
|
911
912
|
#
|
@@ -923,8 +924,8 @@ module Aws::ECS
|
|
923
924
|
#
|
924
925
|
#
|
925
926
|
#
|
926
|
-
# [1]: https://docs.docker.com/engine/
|
927
|
-
# [2]: https://docs.docker.com/engine/
|
927
|
+
# [1]: https://docs.docker.com/engine/api/v1.35/#create-a-container
|
928
|
+
# [2]: https://docs.docker.com/engine/api/v1.35/
|
928
929
|
# [3]: https://docs.docker.com/engine/reference/run/
|
929
930
|
# @return [Array<Types::HostEntry>]
|
930
931
|
#
|
@@ -950,8 +951,8 @@ module Aws::ECS
|
|
950
951
|
#
|
951
952
|
#
|
952
953
|
#
|
953
|
-
# [1]: https://docs.docker.com/engine/
|
954
|
-
# [2]: https://docs.docker.com/engine/
|
954
|
+
# [1]: https://docs.docker.com/engine/api/v1.35/#create-a-container
|
955
|
+
# [2]: https://docs.docker.com/engine/api/v1.35/
|
955
956
|
# [3]: https://docs.docker.com/engine/reference/run/
|
956
957
|
# [4]: http://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-config.html
|
957
958
|
# @return [Array<String>]
|
@@ -968,8 +969,8 @@ module Aws::ECS
|
|
968
969
|
#
|
969
970
|
#
|
970
971
|
#
|
971
|
-
# [1]: https://docs.docker.com/engine/
|
972
|
-
# [2]: https://docs.docker.com/engine/
|
972
|
+
# [1]: https://docs.docker.com/engine/api/v1.35/#create-a-container
|
973
|
+
# [2]: https://docs.docker.com/engine/api/v1.35/
|
973
974
|
# [3]: https://docs.docker.com/engine/reference/run/
|
974
975
|
# @return [Hash<String,String>]
|
975
976
|
#
|
@@ -989,8 +990,8 @@ module Aws::ECS
|
|
989
990
|
#
|
990
991
|
#
|
991
992
|
#
|
992
|
-
# [1]: https://docs.docker.com/engine/
|
993
|
-
# [2]: https://docs.docker.com/engine/
|
993
|
+
# [1]: https://docs.docker.com/engine/api/v1.35/#create-a-container
|
994
|
+
# [2]: https://docs.docker.com/engine/api/v1.35/
|
994
995
|
# [3]: https://docs.docker.com/engine/reference/run/
|
995
996
|
# @return [Array<Types::Ulimit>]
|
996
997
|
#
|
@@ -1037,8 +1038,8 @@ module Aws::ECS
|
|
1037
1038
|
#
|
1038
1039
|
#
|
1039
1040
|
#
|
1040
|
-
# [1]: https://docs.docker.com/engine/
|
1041
|
-
# [2]: https://docs.docker.com/engine/
|
1041
|
+
# [1]: https://docs.docker.com/engine/api/v1.35/#create-a-container
|
1042
|
+
# [2]: https://docs.docker.com/engine/api/v1.35/
|
1042
1043
|
# [3]: https://docs.docker.com/engine/reference/run/
|
1043
1044
|
# [4]: https://docs.docker.com/engine/admin/logging/overview/
|
1044
1045
|
# [5]: http://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-config.html
|
@@ -1052,8 +1053,8 @@ module Aws::ECS
|
|
1052
1053
|
#
|
1053
1054
|
#
|
1054
1055
|
#
|
1055
|
-
# [1]: https://docs.docker.com/engine/
|
1056
|
-
# [2]: https://docs.docker.com/engine/
|
1056
|
+
# [1]: https://docs.docker.com/engine/api/v1.35/#create-a-container
|
1057
|
+
# [2]: https://docs.docker.com/engine/api/v1.35/
|
1057
1058
|
# [3]: https://docs.docker.com/engine/reference/run/
|
1058
1059
|
# @return [Types::HealthCheck]
|
1059
1060
|
#
|
@@ -2272,6 +2273,97 @@ module Aws::ECS
|
|
2272
2273
|
include Aws::Structure
|
2273
2274
|
end
|
2274
2275
|
|
2276
|
+
# The configuration for the Docker volume. This parameter is specified
|
2277
|
+
# when using Docker volumes.
|
2278
|
+
#
|
2279
|
+
# @note When making an API call, you may pass DockerVolumeConfiguration
|
2280
|
+
# data as a hash:
|
2281
|
+
#
|
2282
|
+
# {
|
2283
|
+
# scope: "task", # accepts task, shared
|
2284
|
+
# autoprovision: false,
|
2285
|
+
# driver: "String",
|
2286
|
+
# driver_opts: {
|
2287
|
+
# "String" => "String",
|
2288
|
+
# },
|
2289
|
+
# labels: {
|
2290
|
+
# "String" => "String",
|
2291
|
+
# },
|
2292
|
+
# }
|
2293
|
+
#
|
2294
|
+
# @!attribute [rw] scope
|
2295
|
+
# The scope for the Docker volume which determines it's lifecycle.
|
2296
|
+
# Docker volumes that are scoped to a `task` are automatically
|
2297
|
+
# provisioned when the task starts and destroyed when the task stops.
|
2298
|
+
# Docker volumes that are scoped as `shared` persist after the task
|
2299
|
+
# stops.
|
2300
|
+
# @return [String]
|
2301
|
+
#
|
2302
|
+
# @!attribute [rw] autoprovision
|
2303
|
+
# If this value is `true`, the Docker volume is created if it does not
|
2304
|
+
# already exist.
|
2305
|
+
#
|
2306
|
+
# <note markdown="1"> This field is only used if the `scope` is `shared`.
|
2307
|
+
#
|
2308
|
+
# </note>
|
2309
|
+
# @return [Boolean]
|
2310
|
+
#
|
2311
|
+
# @!attribute [rw] driver
|
2312
|
+
# The Docker volume driver to use. The driver value must match the
|
2313
|
+
# driver name provided by Docker because it is used for task
|
2314
|
+
# placement. If the driver was installed using the Docker plugin CLI,
|
2315
|
+
# use `docker plugin ls` to retrieve the driver name from your
|
2316
|
+
# container instance. If the driver was installed using another
|
2317
|
+
# method, use Docker plugin discovery to retrieve the driver name. For
|
2318
|
+
# more information, see [Docker plugin discovery][1]. This parameter
|
2319
|
+
# maps to `Driver` in the [Create a volume][2] section of the [Docker
|
2320
|
+
# Remote API][3] and the `xxdriver` option to [ `docker volume create`
|
2321
|
+
# ][4].
|
2322
|
+
#
|
2323
|
+
#
|
2324
|
+
#
|
2325
|
+
# [1]: https://docs.docker.com/engine/extend/plugin_api/#plugin-discovery
|
2326
|
+
# [2]: https://docs.docker.com/engine/api/v1.35/#operation/VolumeCreate
|
2327
|
+
# [3]: https://docs.docker.com/engine/api/v1.35/
|
2328
|
+
# [4]: https://docs.docker.com/engine/reference/commandline/volume_create/
|
2329
|
+
# @return [String]
|
2330
|
+
#
|
2331
|
+
# @!attribute [rw] driver_opts
|
2332
|
+
# A map of Docker driver specific options passed through. This
|
2333
|
+
# parameter maps to `DriverOpts` in the [Create a volume][1] section
|
2334
|
+
# of the [Docker Remote API][2] and the `xxopt` option to [ `docker
|
2335
|
+
# volume create` ][3].
|
2336
|
+
#
|
2337
|
+
#
|
2338
|
+
#
|
2339
|
+
# [1]: https://docs.docker.com/engine/api/v1.35/#operation/VolumeCreate
|
2340
|
+
# [2]: https://docs.docker.com/engine/api/v1.35/
|
2341
|
+
# [3]: https://docs.docker.com/engine/reference/commandline/volume_create/
|
2342
|
+
# @return [Hash<String,String>]
|
2343
|
+
#
|
2344
|
+
# @!attribute [rw] labels
|
2345
|
+
# Custom metadata to add to your Docker volume. This parameter maps to
|
2346
|
+
# `Labels` in the [Create a volume][1] section of the [Docker Remote
|
2347
|
+
# API][2] and the `xxlabel` option to [ `docker volume create` ][3].
|
2348
|
+
#
|
2349
|
+
#
|
2350
|
+
#
|
2351
|
+
# [1]: https://docs.docker.com/engine/api/v1.35/#operation/VolumeCreate
|
2352
|
+
# [2]: https://docs.docker.com/engine/api/v1.35/
|
2353
|
+
# [3]: https://docs.docker.com/engine/reference/commandline/volume_create/
|
2354
|
+
# @return [Hash<String,String>]
|
2355
|
+
#
|
2356
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DockerVolumeConfiguration AWS API Documentation
|
2357
|
+
#
|
2358
|
+
class DockerVolumeConfiguration < Struct.new(
|
2359
|
+
:scope,
|
2360
|
+
:autoprovision,
|
2361
|
+
:driver,
|
2362
|
+
:driver_opts,
|
2363
|
+
:labels)
|
2364
|
+
include Aws::Structure
|
2365
|
+
end
|
2366
|
+
|
2275
2367
|
# A failed resource.
|
2276
2368
|
#
|
2277
2369
|
# @!attribute [rw] arn
|
@@ -2320,8 +2412,8 @@ module Aws::ECS
|
|
2320
2412
|
#
|
2321
2413
|
#
|
2322
2414
|
#
|
2323
|
-
# [1]: https://docs.docker.com/engine/
|
2324
|
-
# [2]: https://docs.docker.com/engine/
|
2415
|
+
# [1]: https://docs.docker.com/engine/api/v1.35/#create-a-container
|
2416
|
+
# [2]: https://docs.docker.com/engine/api/v1.35/
|
2325
2417
|
# @return [Array<String>]
|
2326
2418
|
#
|
2327
2419
|
# @!attribute [rw] interval
|
@@ -2394,7 +2486,7 @@ module Aws::ECS
|
|
2394
2486
|
include Aws::Structure
|
2395
2487
|
end
|
2396
2488
|
|
2397
|
-
# Details on a container instance host volume.
|
2489
|
+
# Details on a container instance bind mount host volume.
|
2398
2490
|
#
|
2399
2491
|
# @note When making an API call, you may pass HostVolumeProperties
|
2400
2492
|
# data as a hash:
|
@@ -2404,7 +2496,8 @@ module Aws::ECS
|
|
2404
2496
|
# }
|
2405
2497
|
#
|
2406
2498
|
# @!attribute [rw] source_path
|
2407
|
-
#
|
2499
|
+
# When the `host` parameter is used, specify a `sourcePath` to declare
|
2500
|
+
# the path on the host container instance that is presented to the
|
2408
2501
|
# container. If this parameter is empty, then the Docker daemon has
|
2409
2502
|
# assigned a host path for you. If the `host` parameter contains a
|
2410
2503
|
# `sourcePath` file location, then the data volume persists at the
|
@@ -2467,8 +2560,8 @@ module Aws::ECS
|
|
2467
2560
|
#
|
2468
2561
|
#
|
2469
2562
|
#
|
2470
|
-
# [1]: https://docs.docker.com/engine/
|
2471
|
-
# [2]: https://docs.docker.com/engine/
|
2563
|
+
# [1]: https://docs.docker.com/engine/api/v1.35/#create-a-container
|
2564
|
+
# [2]: https://docs.docker.com/engine/api/v1.35/
|
2472
2565
|
# [3]: https://docs.docker.com/engine/reference/run/
|
2473
2566
|
# @return [Array<String>]
|
2474
2567
|
#
|
@@ -2490,8 +2583,8 @@ module Aws::ECS
|
|
2490
2583
|
#
|
2491
2584
|
#
|
2492
2585
|
#
|
2493
|
-
# [1]: https://docs.docker.com/engine/
|
2494
|
-
# [2]: https://docs.docker.com/engine/
|
2586
|
+
# [1]: https://docs.docker.com/engine/api/v1.35/#create-a-container
|
2587
|
+
# [2]: https://docs.docker.com/engine/api/v1.35/
|
2495
2588
|
# [3]: https://docs.docker.com/engine/reference/run/
|
2496
2589
|
# @return [Array<String>]
|
2497
2590
|
#
|
@@ -2583,8 +2676,8 @@ module Aws::ECS
|
|
2583
2676
|
#
|
2584
2677
|
#
|
2585
2678
|
#
|
2586
|
-
# [1]: https://docs.docker.com/engine/
|
2587
|
-
# [2]: https://docs.docker.com/engine/
|
2679
|
+
# [1]: https://docs.docker.com/engine/api/v1.35/#create-a-container
|
2680
|
+
# [2]: https://docs.docker.com/engine/api/v1.35/
|
2588
2681
|
# [3]: https://docs.docker.com/engine/reference/run/
|
2589
2682
|
# @return [Array<Types::Device>]
|
2590
2683
|
#
|
@@ -3399,7 +3492,8 @@ module Aws::ECS
|
|
3399
3492
|
# }
|
3400
3493
|
#
|
3401
3494
|
# @!attribute [rw] source_volume
|
3402
|
-
# The name of the volume to mount.
|
3495
|
+
# The name of the volume to mount. Must be a volume name referenced in
|
3496
|
+
# the `name` parameter of task definition `volume`.
|
3403
3497
|
# @return [String]
|
3404
3498
|
#
|
3405
3499
|
# @!attribute [rw] container_path
|
@@ -3955,6 +4049,17 @@ module Aws::ECS
|
|
3955
4049
|
# host: {
|
3956
4050
|
# source_path: "String",
|
3957
4051
|
# },
|
4052
|
+
# docker_volume_configuration: {
|
4053
|
+
# scope: "task", # accepts task, shared
|
4054
|
+
# autoprovision: false,
|
4055
|
+
# driver: "String",
|
4056
|
+
# driver_opts: {
|
4057
|
+
# "String" => "String",
|
4058
|
+
# },
|
4059
|
+
# labels: {
|
4060
|
+
# "String" => "String",
|
4061
|
+
# },
|
4062
|
+
# },
|
3958
4063
|
# },
|
3959
4064
|
# ],
|
3960
4065
|
# placement_constraints: [
|
@@ -5035,11 +5140,21 @@ module Aws::ECS
|
|
5035
5140
|
# @return [Types::TaskOverride]
|
5036
5141
|
#
|
5037
5142
|
# @!attribute [rw] last_status
|
5038
|
-
# The last known status of the task.
|
5143
|
+
# The last known status of the task. For more information, see [Task
|
5144
|
+
# Lifecycle][1].
|
5145
|
+
#
|
5146
|
+
#
|
5147
|
+
#
|
5148
|
+
# [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_life_cycle.html
|
5039
5149
|
# @return [String]
|
5040
5150
|
#
|
5041
5151
|
# @!attribute [rw] desired_status
|
5042
|
-
# The desired status of the task.
|
5152
|
+
# The desired status of the task. For more information, see [Task
|
5153
|
+
# Lifecycle][1].
|
5154
|
+
#
|
5155
|
+
#
|
5156
|
+
#
|
5157
|
+
# [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_life_cycle.html
|
5043
5158
|
# @return [String]
|
5044
5159
|
#
|
5045
5160
|
# @!attribute [rw] cpu
|
@@ -5578,7 +5693,8 @@ module Aws::ECS
|
|
5578
5693
|
# "remount" | "mand" | "nomand" | "atime" | "noatime" | "diratime" |
|
5579
5694
|
# "nodiratime" | "bind" | "rbind" | "unbindable" | "runbindable" |
|
5580
5695
|
# "private" | "rprivate" | "shared" | "rshared" | "slave" | "rslave" |
|
5581
|
-
# "relatime" | "norelatime" | "strictatime" | "nostrictatime"
|
5696
|
+
# "relatime" | "norelatime" | "strictatime" | "nostrictatime" | "mode"
|
5697
|
+
# | "uid" | "gid" | "nr_inodes" | "nr_blocks" | "mpol"`
|
5582
5698
|
# @return [Array<String>]
|
5583
5699
|
#
|
5584
5700
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/Tmpfs AWS API Documentation
|
@@ -5875,7 +5991,14 @@ module Aws::ECS
|
|
5875
5991
|
include Aws::Structure
|
5876
5992
|
end
|
5877
5993
|
|
5878
|
-
# A data volume used in a task definition.
|
5994
|
+
# A data volume used in a task definition. For tasks that use a Docker
|
5995
|
+
# volume, specify a `DockerVolumeConfiguration`. For tasks that use a
|
5996
|
+
# bind mount host volume, specify a `host` and optional `sourcePath`.
|
5997
|
+
# For more information, see [Using Data Volumes in Tasks][1].
|
5998
|
+
#
|
5999
|
+
#
|
6000
|
+
#
|
6001
|
+
# [1]: http://docs.aws.amazon.com/AmazonECS/latest/developerguideusing_data_volumes.html
|
5879
6002
|
#
|
5880
6003
|
# @note When making an API call, you may pass Volume
|
5881
6004
|
# data as a hash:
|
@@ -5885,6 +6008,17 @@ module Aws::ECS
|
|
5885
6008
|
# host: {
|
5886
6009
|
# source_path: "String",
|
5887
6010
|
# },
|
6011
|
+
# docker_volume_configuration: {
|
6012
|
+
# scope: "task", # accepts task, shared
|
6013
|
+
# autoprovision: false,
|
6014
|
+
# driver: "String",
|
6015
|
+
# driver_opts: {
|
6016
|
+
# "String" => "String",
|
6017
|
+
# },
|
6018
|
+
# labels: {
|
6019
|
+
# "String" => "String",
|
6020
|
+
# },
|
6021
|
+
# },
|
5888
6022
|
# }
|
5889
6023
|
#
|
5890
6024
|
# @!attribute [rw] name
|
@@ -5895,12 +6029,14 @@ module Aws::ECS
|
|
5895
6029
|
# @return [String]
|
5896
6030
|
#
|
5897
6031
|
# @!attribute [rw] host
|
5898
|
-
#
|
5899
|
-
#
|
5900
|
-
#
|
5901
|
-
#
|
5902
|
-
#
|
5903
|
-
#
|
6032
|
+
# This parameter is specified when using bind mount host volumes. Bind
|
6033
|
+
# mount host volumes are supported when using either the EC2 or
|
6034
|
+
# Fargate launch types. The contents of the `host` parameter determine
|
6035
|
+
# whether your bind mount host volume persists on the host container
|
6036
|
+
# instance and where it is stored. If the `host` parameter is empty,
|
6037
|
+
# then the Docker daemon assigns a host path for your data volume, but
|
6038
|
+
# the data is not guaranteed to persist after the containers
|
6039
|
+
# associated with it stop running.
|
5904
6040
|
#
|
5905
6041
|
# Windows containers can mount whole directories on the same drive as
|
5906
6042
|
# `$env:ProgramData`. Windows containers cannot mount directories on a
|
@@ -5909,11 +6045,17 @@ module Aws::ECS
|
|
5909
6045
|
# not `D:\my\path:C:\my\path` or `D:\:C:\my\path`.
|
5910
6046
|
# @return [Types::HostVolumeProperties]
|
5911
6047
|
#
|
6048
|
+
# @!attribute [rw] docker_volume_configuration
|
6049
|
+
# The configuration for the Docker volume. This parameter is specified
|
6050
|
+
# when using Docker volumes.
|
6051
|
+
# @return [Types::DockerVolumeConfiguration]
|
6052
|
+
#
|
5912
6053
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/Volume AWS API Documentation
|
5913
6054
|
#
|
5914
6055
|
class Volume < Struct.new(
|
5915
6056
|
:name,
|
5916
|
-
:host
|
6057
|
+
:host,
|
6058
|
+
:docker_volume_configuration)
|
5917
6059
|
include Aws::Structure
|
5918
6060
|
end
|
5919
6061
|
|
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.17.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-08-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|