aws-sdk-ecs 1.1.0 → 1.2.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 +27 -10
- data/lib/aws-sdk-ecs/client_api.rb +10 -0
- data/lib/aws-sdk-ecs/types.rb +127 -26
- 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: 6ccb9750610fe2bfb59e3a44290af5e525f66df5
|
4
|
+
data.tar.gz: 891fce853ba2ef389877ea9f9338f6446cf601cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa8d3ffba25ac3a20cf3bc00995805dab98fb79b18963f13763831d6dfdc2fdad349c8634febc68e3a9b5711296e769e0358cf318ae96ff89f83bce8bdd93a65
|
7
|
+
data.tar.gz: 2b4f941375b5f3cbd1b24ab76d214317bb83c2526a0a5d19c4e89f5b20ed1dd155ad79fbc9ef13eb21283df183b4fd7e2166675d887f149585767b4b679667a0
|
data/lib/aws-sdk-ecs.rb
CHANGED
data/lib/aws-sdk-ecs/client.rb
CHANGED
@@ -310,14 +310,13 @@ module Aws::ECS
|
|
310
310
|
# or target group ARN, container name, and container port specified in
|
311
311
|
# the service definition are immutable.
|
312
312
|
#
|
313
|
-
# For
|
314
|
-
#
|
315
|
-
#
|
316
|
-
#
|
317
|
-
# instance
|
318
|
-
#
|
319
|
-
#
|
320
|
-
# For Elastic Load Balancing Application load balancers, this object
|
313
|
+
# For Classic Load Balancers, this object must contain the load balancer
|
314
|
+
# name, the container name (as it appears in a container definition),
|
315
|
+
# and the container port to access from the load balancer. When a task
|
316
|
+
# from this service is placed on a container instance, the container
|
317
|
+
# instance is registered with the load balancer specified here.
|
318
|
+
#
|
319
|
+
# For Application Load Balancers and Network Load Balancers, this object
|
321
320
|
# must contain the load balancer target group ARN, the container name
|
322
321
|
# (as it appears in a container definition), and the container port to
|
323
322
|
# access from the load balancer. When a task from this service is placed
|
@@ -822,7 +821,7 @@ module Aws::ECS
|
|
822
821
|
# on a different container instance if possible.
|
823
822
|
#
|
824
823
|
# Any containers in orphaned service tasks that are registered with a
|
825
|
-
# Classic
|
824
|
+
# Classic Load Balancer or an Application Load Balancer target group are
|
826
825
|
# deregistered, and they will begin connection draining according to the
|
827
826
|
# settings on the load balancer or target group.
|
828
827
|
#
|
@@ -964,6 +963,10 @@ module Aws::ECS
|
|
964
963
|
# resp.task_definition.container_definitions[0].volumes_from #=> Array
|
965
964
|
# resp.task_definition.container_definitions[0].volumes_from[0].source_container #=> String
|
966
965
|
# resp.task_definition.container_definitions[0].volumes_from[0].read_only #=> Boolean
|
966
|
+
# resp.task_definition.container_definitions[0].linux_parameters.capabilities.add #=> Array
|
967
|
+
# resp.task_definition.container_definitions[0].linux_parameters.capabilities.add[0] #=> String
|
968
|
+
# resp.task_definition.container_definitions[0].linux_parameters.capabilities.drop #=> Array
|
969
|
+
# resp.task_definition.container_definitions[0].linux_parameters.capabilities.drop[0] #=> String
|
967
970
|
# resp.task_definition.container_definitions[0].hostname #=> String
|
968
971
|
# resp.task_definition.container_definitions[0].user #=> String
|
969
972
|
# resp.task_definition.container_definitions[0].working_directory #=> String
|
@@ -1489,6 +1492,10 @@ module Aws::ECS
|
|
1489
1492
|
# resp.task_definition.container_definitions[0].volumes_from #=> Array
|
1490
1493
|
# resp.task_definition.container_definitions[0].volumes_from[0].source_container #=> String
|
1491
1494
|
# resp.task_definition.container_definitions[0].volumes_from[0].read_only #=> Boolean
|
1495
|
+
# resp.task_definition.container_definitions[0].linux_parameters.capabilities.add #=> Array
|
1496
|
+
# resp.task_definition.container_definitions[0].linux_parameters.capabilities.add[0] #=> String
|
1497
|
+
# resp.task_definition.container_definitions[0].linux_parameters.capabilities.drop #=> Array
|
1498
|
+
# resp.task_definition.container_definitions[0].linux_parameters.capabilities.drop[0] #=> String
|
1492
1499
|
# resp.task_definition.container_definitions[0].hostname #=> String
|
1493
1500
|
# resp.task_definition.container_definitions[0].user #=> String
|
1494
1501
|
# resp.task_definition.container_definitions[0].working_directory #=> String
|
@@ -2764,6 +2771,12 @@ module Aws::ECS
|
|
2764
2771
|
# read_only: false,
|
2765
2772
|
# },
|
2766
2773
|
# ],
|
2774
|
+
# linux_parameters: {
|
2775
|
+
# capabilities: {
|
2776
|
+
# add: ["String"],
|
2777
|
+
# drop: ["String"],
|
2778
|
+
# },
|
2779
|
+
# },
|
2767
2780
|
# hostname: "String",
|
2768
2781
|
# user: "String",
|
2769
2782
|
# working_directory: "String",
|
@@ -2843,6 +2856,10 @@ module Aws::ECS
|
|
2843
2856
|
# resp.task_definition.container_definitions[0].volumes_from #=> Array
|
2844
2857
|
# resp.task_definition.container_definitions[0].volumes_from[0].source_container #=> String
|
2845
2858
|
# resp.task_definition.container_definitions[0].volumes_from[0].read_only #=> Boolean
|
2859
|
+
# resp.task_definition.container_definitions[0].linux_parameters.capabilities.add #=> Array
|
2860
|
+
# resp.task_definition.container_definitions[0].linux_parameters.capabilities.add[0] #=> String
|
2861
|
+
# resp.task_definition.container_definitions[0].linux_parameters.capabilities.drop #=> Array
|
2862
|
+
# resp.task_definition.container_definitions[0].linux_parameters.capabilities.drop[0] #=> String
|
2846
2863
|
# resp.task_definition.container_definitions[0].hostname #=> String
|
2847
2864
|
# resp.task_definition.container_definitions[0].user #=> String
|
2848
2865
|
# resp.task_definition.container_definitions[0].working_directory #=> String
|
@@ -3862,7 +3879,7 @@ module Aws::ECS
|
|
3862
3879
|
params: params,
|
3863
3880
|
config: config)
|
3864
3881
|
context[:gem_name] = 'aws-sdk-ecs'
|
3865
|
-
context[:gem_version] = '1.
|
3882
|
+
context[:gem_version] = '1.2.0'
|
3866
3883
|
Seahorse::Client::Request.new(handlers, context)
|
3867
3884
|
end
|
3868
3885
|
|
@@ -73,7 +73,9 @@ module Aws::ECS
|
|
73
73
|
HostVolumeProperties = Shapes::StructureShape.new(name: 'HostVolumeProperties')
|
74
74
|
Integer = Shapes::IntegerShape.new(name: 'Integer')
|
75
75
|
InvalidParameterException = Shapes::StructureShape.new(name: 'InvalidParameterException')
|
76
|
+
KernelCapabilities = Shapes::StructureShape.new(name: 'KernelCapabilities')
|
76
77
|
KeyValuePair = Shapes::StructureShape.new(name: 'KeyValuePair')
|
78
|
+
LinuxParameters = Shapes::StructureShape.new(name: 'LinuxParameters')
|
77
79
|
ListAttributesRequest = Shapes::StructureShape.new(name: 'ListAttributesRequest')
|
78
80
|
ListAttributesResponse = Shapes::StructureShape.new(name: 'ListAttributesResponse')
|
79
81
|
ListClustersRequest = Shapes::StructureShape.new(name: 'ListClustersRequest')
|
@@ -208,6 +210,7 @@ module Aws::ECS
|
|
208
210
|
ContainerDefinition.add_member(:environment, Shapes::ShapeRef.new(shape: EnvironmentVariables, location_name: "environment"))
|
209
211
|
ContainerDefinition.add_member(:mount_points, Shapes::ShapeRef.new(shape: MountPointList, location_name: "mountPoints"))
|
210
212
|
ContainerDefinition.add_member(:volumes_from, Shapes::ShapeRef.new(shape: VolumeFromList, location_name: "volumesFrom"))
|
213
|
+
ContainerDefinition.add_member(:linux_parameters, Shapes::ShapeRef.new(shape: LinuxParameters, location_name: "linuxParameters"))
|
211
214
|
ContainerDefinition.add_member(:hostname, Shapes::ShapeRef.new(shape: String, location_name: "hostname"))
|
212
215
|
ContainerDefinition.add_member(:user, Shapes::ShapeRef.new(shape: String, location_name: "user"))
|
213
216
|
ContainerDefinition.add_member(:working_directory, Shapes::ShapeRef.new(shape: String, location_name: "workingDirectory"))
|
@@ -390,10 +393,17 @@ module Aws::ECS
|
|
390
393
|
HostVolumeProperties.add_member(:source_path, Shapes::ShapeRef.new(shape: String, location_name: "sourcePath"))
|
391
394
|
HostVolumeProperties.struct_class = Types::HostVolumeProperties
|
392
395
|
|
396
|
+
KernelCapabilities.add_member(:add, Shapes::ShapeRef.new(shape: StringList, location_name: "add"))
|
397
|
+
KernelCapabilities.add_member(:drop, Shapes::ShapeRef.new(shape: StringList, location_name: "drop"))
|
398
|
+
KernelCapabilities.struct_class = Types::KernelCapabilities
|
399
|
+
|
393
400
|
KeyValuePair.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "name"))
|
394
401
|
KeyValuePair.add_member(:value, Shapes::ShapeRef.new(shape: String, location_name: "value"))
|
395
402
|
KeyValuePair.struct_class = Types::KeyValuePair
|
396
403
|
|
404
|
+
LinuxParameters.add_member(:capabilities, Shapes::ShapeRef.new(shape: KernelCapabilities, location_name: "capabilities"))
|
405
|
+
LinuxParameters.struct_class = Types::LinuxParameters
|
406
|
+
|
397
407
|
ListAttributesRequest.add_member(:cluster, Shapes::ShapeRef.new(shape: String, location_name: "cluster"))
|
398
408
|
ListAttributesRequest.add_member(:target_type, Shapes::ShapeRef.new(shape: TargetType, required: true, location_name: "targetType"))
|
399
409
|
ListAttributesRequest.add_member(:attribute_name, Shapes::ShapeRef.new(shape: String, location_name: "attributeName"))
|
data/lib/aws-sdk-ecs/types.rb
CHANGED
@@ -200,6 +200,12 @@ module Aws::ECS
|
|
200
200
|
# read_only: false,
|
201
201
|
# },
|
202
202
|
# ],
|
203
|
+
# linux_parameters: {
|
204
|
+
# capabilities: {
|
205
|
+
# add: ["String"],
|
206
|
+
# drop: ["String"],
|
207
|
+
# },
|
208
|
+
# },
|
203
209
|
# hostname: "String",
|
204
210
|
# user: "String",
|
205
211
|
# working_directory: "String",
|
@@ -252,16 +258,20 @@ module Aws::ECS
|
|
252
258
|
# @!attribute [rw] image
|
253
259
|
# The image used to start a container. This string is passed directly
|
254
260
|
# to the Docker daemon. Images in the Docker Hub registry are
|
255
|
-
# available by default. Other repositories are specified with `
|
256
|
-
# repository-url/image:tag
|
257
|
-
# lowercase), numbers, hyphens,
|
258
|
-
# slashes, and number signs are
|
259
|
-
# `Image` in the [Create a
|
260
|
-
# API][2] and the `IMAGE`
|
261
|
-
#
|
262
|
-
#
|
263
|
-
#
|
264
|
-
# `
|
261
|
+
# available by default. Other repositories are specified with either `
|
262
|
+
# repository-url/image:tag ` or ` repository-url/image@digest `. Up to
|
263
|
+
# 255 letters (uppercase and lowercase), numbers, hyphens,
|
264
|
+
# underscores, colons, periods, forward slashes, and number signs are
|
265
|
+
# allowed. This parameter maps to `Image` in the [Create a
|
266
|
+
# container][1] section of the [Docker Remote API][2] and the `IMAGE`
|
267
|
+
# parameter of [docker run][3].
|
268
|
+
#
|
269
|
+
# * Images in Amazon ECR repositories can be specified by either using
|
270
|
+
# the full `registry/repository:tag` or
|
271
|
+
# `registry/repository@digest`. For example,
|
272
|
+
# `012345678910.dkr.ecr.<region-name>.amazonaws.com/<repository-name>:latest`
|
273
|
+
# or
|
274
|
+
# `012345678910.dkr.ecr.<region-name>.amazonaws.com/<repository-name>@sha256:94afd1f2e64d908bc90dbca0035a5b567EXAMPLE`.
|
265
275
|
#
|
266
276
|
# * Images in official repositories on Docker Hub use a single name
|
267
277
|
# (for example, `ubuntu` or `mongo`).
|
@@ -536,6 +546,11 @@ module Aws::ECS
|
|
536
546
|
# [3]: https://docs.docker.com/engine/reference/run/
|
537
547
|
# @return [Array<Types::VolumeFrom>]
|
538
548
|
#
|
549
|
+
# @!attribute [rw] linux_parameters
|
550
|
+
# Linux-specific modifications that are applied to the container, such
|
551
|
+
# as Linux KernelCapabilities.
|
552
|
+
# @return [Types::LinuxParameters]
|
553
|
+
#
|
539
554
|
# @!attribute [rw] hostname
|
540
555
|
# The hostname to use for your container. This parameter maps to
|
541
556
|
# `Hostname` in the [Create a container][1] section of the [Docker
|
@@ -768,6 +783,7 @@ module Aws::ECS
|
|
768
783
|
:environment,
|
769
784
|
:mount_points,
|
770
785
|
:volumes_from,
|
786
|
+
:linux_parameters,
|
771
787
|
:hostname,
|
772
788
|
:user,
|
773
789
|
:working_directory,
|
@@ -1064,20 +1080,20 @@ module Aws::ECS
|
|
1064
1080
|
# balancer name or target group ARN, container name, and container
|
1065
1081
|
# port specified in the service definition are immutable.
|
1066
1082
|
#
|
1067
|
-
# For
|
1068
|
-
#
|
1069
|
-
#
|
1070
|
-
#
|
1071
|
-
#
|
1072
|
-
#
|
1073
|
-
#
|
1074
|
-
# For
|
1075
|
-
# must contain the load balancer target group ARN, the
|
1076
|
-
# (as it appears in a container definition), and the
|
1077
|
-
# access from the load balancer. When a task from
|
1078
|
-
# placed on a container instance, the container
|
1079
|
-
# combination is registered as a target in the
|
1080
|
-
# here.
|
1083
|
+
# For Classic Load Balancers, this object must contain the load
|
1084
|
+
# balancer name, the container name (as it appears in a container
|
1085
|
+
# definition), and the container port to access from the load
|
1086
|
+
# balancer. When a task from this service is placed on a container
|
1087
|
+
# instance, the container instance is registered with the load
|
1088
|
+
# balancer specified here.
|
1089
|
+
#
|
1090
|
+
# For Application Load Balancers and Network Load Balancers, this
|
1091
|
+
# object must contain the load balancer target group ARN, the
|
1092
|
+
# container name (as it appears in a container definition), and the
|
1093
|
+
# container port to access from the load balancer. When a task from
|
1094
|
+
# this service is placed on a container instance, the container
|
1095
|
+
# instance and port combination is registered as a target in the
|
1096
|
+
# target group specified here.
|
1081
1097
|
# @return [Array<Types::LoadBalancer>]
|
1082
1098
|
#
|
1083
1099
|
# @!attribute [rw] desired_count
|
@@ -1399,7 +1415,7 @@ module Aws::ECS
|
|
1399
1415
|
# task, on a different container instance if possible.
|
1400
1416
|
#
|
1401
1417
|
# Any containers in orphaned service tasks that are registered with a
|
1402
|
-
# Classic
|
1418
|
+
# Classic Load Balancer or an Application Load Balancer target group
|
1403
1419
|
# are deregistered, and they will begin connection draining according
|
1404
1420
|
# to the settings on the load balancer or target group.
|
1405
1421
|
# @return [Boolean]
|
@@ -1772,6 +1788,60 @@ module Aws::ECS
|
|
1772
1788
|
include Aws::Structure
|
1773
1789
|
end
|
1774
1790
|
|
1791
|
+
# The Linux capabilities for the container that are added to or dropped
|
1792
|
+
# from the default configuration provided by Docker. For more
|
1793
|
+
# information on the default capabilities and the non-default available
|
1794
|
+
# capabilities, see [Runtime privilege and Linux capabilities][1] in the
|
1795
|
+
# *Docker run reference*. For more detailed information on these Linux
|
1796
|
+
# capabilities, see the [capabilities(7)][2] Linux manual page.
|
1797
|
+
#
|
1798
|
+
#
|
1799
|
+
#
|
1800
|
+
# [1]: https://docs.docker.com/engine/reference/run/#runtime-privilege-and-linux-capabilities
|
1801
|
+
# [2]: http://man7.org/linux/man-pages/man7/capabilities.7.html
|
1802
|
+
#
|
1803
|
+
# @note When making an API call, you may pass KernelCapabilities
|
1804
|
+
# data as a hash:
|
1805
|
+
#
|
1806
|
+
# {
|
1807
|
+
# add: ["String"],
|
1808
|
+
# drop: ["String"],
|
1809
|
+
# }
|
1810
|
+
#
|
1811
|
+
# @!attribute [rw] add
|
1812
|
+
# The Linux capabilities for the container that have been added to the
|
1813
|
+
# default configuration provided by Docker. This parameter maps to
|
1814
|
+
# `CapAdd` in the [Create a container][1] section of the [Docker
|
1815
|
+
# Remote API][2] and the `--cap-add` option to [docker run][3].
|
1816
|
+
#
|
1817
|
+
#
|
1818
|
+
#
|
1819
|
+
# [1]: https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container
|
1820
|
+
# [2]: https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/
|
1821
|
+
# [3]: https://docs.docker.com/engine/reference/run/
|
1822
|
+
# @return [Array<String>]
|
1823
|
+
#
|
1824
|
+
# @!attribute [rw] drop
|
1825
|
+
# The Linux capabilities for the container that have been removed from
|
1826
|
+
# the default configuration provided by Docker. This parameter maps to
|
1827
|
+
# `CapDrop` in the [Create a container][1] section of the [Docker
|
1828
|
+
# Remote API][2] and the `--cap-drop` option to [docker run][3].
|
1829
|
+
#
|
1830
|
+
#
|
1831
|
+
#
|
1832
|
+
# [1]: https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/#create-a-container
|
1833
|
+
# [2]: https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/
|
1834
|
+
# [3]: https://docs.docker.com/engine/reference/run/
|
1835
|
+
# @return [Array<String>]
|
1836
|
+
#
|
1837
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/KernelCapabilities AWS API Documentation
|
1838
|
+
#
|
1839
|
+
class KernelCapabilities < Struct.new(
|
1840
|
+
:add,
|
1841
|
+
:drop)
|
1842
|
+
include Aws::Structure
|
1843
|
+
end
|
1844
|
+
|
1775
1845
|
# A key and value pair object.
|
1776
1846
|
#
|
1777
1847
|
# @note When making an API call, you may pass KeyValuePair
|
@@ -1800,6 +1870,31 @@ module Aws::ECS
|
|
1800
1870
|
include Aws::Structure
|
1801
1871
|
end
|
1802
1872
|
|
1873
|
+
# Linux-specific options that are applied to the container, such as
|
1874
|
+
# Linux KernelCapabilities.
|
1875
|
+
#
|
1876
|
+
# @note When making an API call, you may pass LinuxParameters
|
1877
|
+
# data as a hash:
|
1878
|
+
#
|
1879
|
+
# {
|
1880
|
+
# capabilities: {
|
1881
|
+
# add: ["String"],
|
1882
|
+
# drop: ["String"],
|
1883
|
+
# },
|
1884
|
+
# }
|
1885
|
+
#
|
1886
|
+
# @!attribute [rw] capabilities
|
1887
|
+
# The Linux capabilities for the container that are added to or
|
1888
|
+
# dropped from the default configuration provided by Docker.
|
1889
|
+
# @return [Types::KernelCapabilities]
|
1890
|
+
#
|
1891
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/LinuxParameters AWS API Documentation
|
1892
|
+
#
|
1893
|
+
class LinuxParameters < Struct.new(
|
1894
|
+
:capabilities)
|
1895
|
+
include Aws::Structure
|
1896
|
+
end
|
1897
|
+
|
1803
1898
|
# @note When making an API call, you may pass ListAttributesRequest
|
1804
1899
|
# data as a hash:
|
1805
1900
|
#
|
@@ -2437,7 +2532,7 @@ module Aws::ECS
|
|
2437
2532
|
# @return [String]
|
2438
2533
|
#
|
2439
2534
|
# @!attribute [rw] load_balancer_name
|
2440
|
-
# The name of a
|
2535
|
+
# The name of a load balancer.
|
2441
2536
|
# @return [String]
|
2442
2537
|
#
|
2443
2538
|
# @!attribute [rw] container_name
|
@@ -2943,6 +3038,12 @@ module Aws::ECS
|
|
2943
3038
|
# read_only: false,
|
2944
3039
|
# },
|
2945
3040
|
# ],
|
3041
|
+
# linux_parameters: {
|
3042
|
+
# capabilities: {
|
3043
|
+
# add: ["String"],
|
3044
|
+
# drop: ["String"],
|
3045
|
+
# },
|
3046
|
+
# },
|
2946
3047
|
# hostname: "String",
|
2947
3048
|
# user: "String",
|
2948
3049
|
# working_directory: "String",
|
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.2.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: 2017-09-
|
11
|
+
date: 2017-09-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|