aws-sdk-ecs 1.107.0 → 1.108.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ecs/client.rb +25 -1
- data/lib/aws-sdk-ecs/client_api.rb +3 -0
- data/lib/aws-sdk-ecs/endpoint_provider.rb +54 -55
- data/lib/aws-sdk-ecs/types.rb +147 -2
- data/lib/aws-sdk-ecs.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f7fb94232a4a8f40897a7f0ec9979932494461cd89b7c73f6b570e0877b30f83
|
4
|
+
data.tar.gz: d90493588b52727e51b343d4828231f07afc1ff086ea3526a045e6a1d3e9d725
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3b990f0d2967a46235d9367a9eb295514509fa2df0028dc1c715aee6096029e6e8d6ebfd1038ef87ac486cf0bf5cc55a60d2541aa384a6b8298b6301e980e15
|
7
|
+
data.tar.gz: 0bf612cb0bdafb0ceb23f39a49bb014226f1d5bad4036499246f4b907ce2ceb24f9ed55e27033a72233c1bc0bc4498c6daf7448fe00713eacb6d15bdfde222c9
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.108.0 (2022-12-15)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release adds support for container port ranges in ECS, a new capability that allows customers to provide container port ranges to simplify use cases where multiple ports are in use in a container. This release updates TaskDefinition mutation APIs and the Task description APIs.
|
8
|
+
|
4
9
|
1.107.0 (2022-12-02)
|
5
10
|
------------------
|
6
11
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.108.0
|
data/lib/aws-sdk-ecs/client.rb
CHANGED
@@ -2570,6 +2570,7 @@ module Aws::ECS
|
|
2570
2570
|
# resp.task_definition.container_definitions[0].port_mappings[0].protocol #=> String, one of "tcp", "udp"
|
2571
2571
|
# resp.task_definition.container_definitions[0].port_mappings[0].name #=> String
|
2572
2572
|
# resp.task_definition.container_definitions[0].port_mappings[0].app_protocol #=> String, one of "http", "http2", "grpc"
|
2573
|
+
# resp.task_definition.container_definitions[0].port_mappings[0].container_port_range #=> String
|
2573
2574
|
# resp.task_definition.container_definitions[0].essential #=> Boolean
|
2574
2575
|
# resp.task_definition.container_definitions[0].entry_point #=> Array
|
2575
2576
|
# resp.task_definition.container_definitions[0].entry_point[0] #=> String
|
@@ -3481,6 +3482,7 @@ module Aws::ECS
|
|
3481
3482
|
# resp.task_definition.container_definitions[0].port_mappings[0].protocol #=> String, one of "tcp", "udp"
|
3482
3483
|
# resp.task_definition.container_definitions[0].port_mappings[0].name #=> String
|
3483
3484
|
# resp.task_definition.container_definitions[0].port_mappings[0].app_protocol #=> String, one of "http", "http2", "grpc"
|
3485
|
+
# resp.task_definition.container_definitions[0].port_mappings[0].container_port_range #=> String
|
3484
3486
|
# resp.task_definition.container_definitions[0].essential #=> Boolean
|
3485
3487
|
# resp.task_definition.container_definitions[0].entry_point #=> Array
|
3486
3488
|
# resp.task_definition.container_definitions[0].entry_point[0] #=> String
|
@@ -3855,6 +3857,8 @@ module Aws::ECS
|
|
3855
3857
|
# resp.tasks[0].containers[0].network_bindings[0].container_port #=> Integer
|
3856
3858
|
# resp.tasks[0].containers[0].network_bindings[0].host_port #=> Integer
|
3857
3859
|
# resp.tasks[0].containers[0].network_bindings[0].protocol #=> String, one of "tcp", "udp"
|
3860
|
+
# resp.tasks[0].containers[0].network_bindings[0].container_port_range #=> String
|
3861
|
+
# resp.tasks[0].containers[0].network_bindings[0].host_port_range #=> String
|
3858
3862
|
# resp.tasks[0].containers[0].network_interfaces #=> Array
|
3859
3863
|
# resp.tasks[0].containers[0].network_interfaces[0].attachment_id #=> String
|
3860
3864
|
# resp.tasks[0].containers[0].network_interfaces[0].private_ipv_4_address #=> String
|
@@ -4000,6 +4004,14 @@ module Aws::ECS
|
|
4000
4004
|
# mismatch between the condition key value and the corresponding
|
4001
4005
|
# parameter value.
|
4002
4006
|
#
|
4007
|
+
# For information about required permissions and considerations, see
|
4008
|
+
# [Using Amazon ECS Exec for debugging][1] in the *Amazon ECS Developer
|
4009
|
+
# Guide*.
|
4010
|
+
#
|
4011
|
+
#
|
4012
|
+
#
|
4013
|
+
# [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-exec.htm
|
4014
|
+
#
|
4003
4015
|
# @option params [String] :cluster
|
4004
4016
|
# The Amazon Resource Name (ARN) or short name of the cluster the task
|
4005
4017
|
# is running in. If you do not specify a cluster, the default cluster is
|
@@ -6147,6 +6159,7 @@ module Aws::ECS
|
|
6147
6159
|
# protocol: "tcp", # accepts tcp, udp
|
6148
6160
|
# name: "String",
|
6149
6161
|
# app_protocol: "http", # accepts http, http2, grpc
|
6162
|
+
# container_port_range: "String",
|
6150
6163
|
# },
|
6151
6164
|
# ],
|
6152
6165
|
# essential: false,
|
@@ -6378,6 +6391,7 @@ module Aws::ECS
|
|
6378
6391
|
# resp.task_definition.container_definitions[0].port_mappings[0].protocol #=> String, one of "tcp", "udp"
|
6379
6392
|
# resp.task_definition.container_definitions[0].port_mappings[0].name #=> String
|
6380
6393
|
# resp.task_definition.container_definitions[0].port_mappings[0].app_protocol #=> String, one of "http", "http2", "grpc"
|
6394
|
+
# resp.task_definition.container_definitions[0].port_mappings[0].container_port_range #=> String
|
6381
6395
|
# resp.task_definition.container_definitions[0].essential #=> Boolean
|
6382
6396
|
# resp.task_definition.container_definitions[0].entry_point #=> Array
|
6383
6397
|
# resp.task_definition.container_definitions[0].entry_point[0] #=> String
|
@@ -6950,6 +6964,8 @@ module Aws::ECS
|
|
6950
6964
|
# resp.tasks[0].containers[0].network_bindings[0].container_port #=> Integer
|
6951
6965
|
# resp.tasks[0].containers[0].network_bindings[0].host_port #=> Integer
|
6952
6966
|
# resp.tasks[0].containers[0].network_bindings[0].protocol #=> String, one of "tcp", "udp"
|
6967
|
+
# resp.tasks[0].containers[0].network_bindings[0].container_port_range #=> String
|
6968
|
+
# resp.tasks[0].containers[0].network_bindings[0].host_port_range #=> String
|
6953
6969
|
# resp.tasks[0].containers[0].network_interfaces #=> Array
|
6954
6970
|
# resp.tasks[0].containers[0].network_interfaces[0].attachment_id #=> String
|
6955
6971
|
# resp.tasks[0].containers[0].network_interfaces[0].private_ipv_4_address #=> String
|
@@ -7258,6 +7274,8 @@ module Aws::ECS
|
|
7258
7274
|
# resp.tasks[0].containers[0].network_bindings[0].container_port #=> Integer
|
7259
7275
|
# resp.tasks[0].containers[0].network_bindings[0].host_port #=> Integer
|
7260
7276
|
# resp.tasks[0].containers[0].network_bindings[0].protocol #=> String, one of "tcp", "udp"
|
7277
|
+
# resp.tasks[0].containers[0].network_bindings[0].container_port_range #=> String
|
7278
|
+
# resp.tasks[0].containers[0].network_bindings[0].host_port_range #=> String
|
7261
7279
|
# resp.tasks[0].containers[0].network_interfaces #=> Array
|
7262
7280
|
# resp.tasks[0].containers[0].network_interfaces[0].attachment_id #=> String
|
7263
7281
|
# resp.tasks[0].containers[0].network_interfaces[0].private_ipv_4_address #=> String
|
@@ -7424,6 +7442,8 @@ module Aws::ECS
|
|
7424
7442
|
# resp.task.containers[0].network_bindings[0].container_port #=> Integer
|
7425
7443
|
# resp.task.containers[0].network_bindings[0].host_port #=> Integer
|
7426
7444
|
# resp.task.containers[0].network_bindings[0].protocol #=> String, one of "tcp", "udp"
|
7445
|
+
# resp.task.containers[0].network_bindings[0].container_port_range #=> String
|
7446
|
+
# resp.task.containers[0].network_bindings[0].host_port_range #=> String
|
7427
7447
|
# resp.task.containers[0].network_interfaces #=> Array
|
7428
7448
|
# resp.task.containers[0].network_interfaces[0].attachment_id #=> String
|
7429
7449
|
# resp.task.containers[0].network_interfaces[0].private_ipv_4_address #=> String
|
@@ -7598,6 +7618,8 @@ module Aws::ECS
|
|
7598
7618
|
# container_port: 1,
|
7599
7619
|
# host_port: 1,
|
7600
7620
|
# protocol: "tcp", # accepts tcp, udp
|
7621
|
+
# container_port_range: "String",
|
7622
|
+
# host_port_range: "String",
|
7601
7623
|
# },
|
7602
7624
|
# ],
|
7603
7625
|
# })
|
@@ -7677,6 +7699,8 @@ module Aws::ECS
|
|
7677
7699
|
# container_port: 1,
|
7678
7700
|
# host_port: 1,
|
7679
7701
|
# protocol: "tcp", # accepts tcp, udp
|
7702
|
+
# container_port_range: "String",
|
7703
|
+
# host_port_range: "String",
|
7680
7704
|
# },
|
7681
7705
|
# ],
|
7682
7706
|
# reason: "String",
|
@@ -9349,7 +9373,7 @@ module Aws::ECS
|
|
9349
9373
|
params: params,
|
9350
9374
|
config: config)
|
9351
9375
|
context[:gem_name] = 'aws-sdk-ecs'
|
9352
|
-
context[:gem_version] = '1.
|
9376
|
+
context[:gem_version] = '1.108.0'
|
9353
9377
|
Seahorse::Client::Request.new(handlers, context)
|
9354
9378
|
end
|
9355
9379
|
|
@@ -1165,6 +1165,8 @@ module Aws::ECS
|
|
1165
1165
|
NetworkBinding.add_member(:container_port, Shapes::ShapeRef.new(shape: BoxedInteger, location_name: "containerPort"))
|
1166
1166
|
NetworkBinding.add_member(:host_port, Shapes::ShapeRef.new(shape: BoxedInteger, location_name: "hostPort"))
|
1167
1167
|
NetworkBinding.add_member(:protocol, Shapes::ShapeRef.new(shape: TransportProtocol, location_name: "protocol"))
|
1168
|
+
NetworkBinding.add_member(:container_port_range, Shapes::ShapeRef.new(shape: String, location_name: "containerPortRange"))
|
1169
|
+
NetworkBinding.add_member(:host_port_range, Shapes::ShapeRef.new(shape: String, location_name: "hostPortRange"))
|
1168
1170
|
NetworkBinding.struct_class = Types::NetworkBinding
|
1169
1171
|
|
1170
1172
|
NetworkBindings.member = Shapes::ShapeRef.new(shape: NetworkBinding)
|
@@ -1208,6 +1210,7 @@ module Aws::ECS
|
|
1208
1210
|
PortMapping.add_member(:protocol, Shapes::ShapeRef.new(shape: TransportProtocol, location_name: "protocol"))
|
1209
1211
|
PortMapping.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "name"))
|
1210
1212
|
PortMapping.add_member(:app_protocol, Shapes::ShapeRef.new(shape: ApplicationProtocol, location_name: "appProtocol"))
|
1213
|
+
PortMapping.add_member(:container_port_range, Shapes::ShapeRef.new(shape: String, location_name: "containerPortRange"))
|
1211
1214
|
PortMapping.struct_class = Types::PortMapping
|
1212
1215
|
|
1213
1216
|
PortMappingList.member = Shapes::ShapeRef.new(shape: PortMapping)
|
@@ -50,61 +50,60 @@ IHRoaXMgcmVxdWVzdCIsInR5cGUiOiJTdHJpbmcifX0sInJ1bGVzIjpbeyJj
|
|
50
50
|
b25kaXRpb25zIjpbeyJmbiI6ImF3cy5wYXJ0aXRpb24iLCJhcmd2IjpbeyJy
|
51
51
|
ZWYiOiJSZWdpb24ifV0sImFzc2lnbiI6IlBhcnRpdGlvblJlc3VsdCJ9XSwi
|
52
52
|
dHlwZSI6InRyZWUiLCJydWxlcyI6W3siY29uZGl0aW9ucyI6W3siZm4iOiJp
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-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ufS57UGFydGl0aW9uUmVzdWx0I2R1
|
99
|
+
YWxTdGFja0Ruc1N1ZmZpeH0iLCJwcm9wZXJ0aWVzIjp7fSwiaGVhZGVycyI6
|
100
|
+
e319LCJ0eXBlIjoiZW5kcG9pbnQifV19LHsiY29uZGl0aW9ucyI6W10sImVy
|
101
|
+
cm9yIjoiRHVhbFN0YWNrIGlzIGVuYWJsZWQgYnV0IHRoaXMgcGFydGl0aW9u
|
102
|
+
IGRvZXMgbm90IHN1cHBvcnQgRHVhbFN0YWNrIiwidHlwZSI6ImVycm9yIn1d
|
103
|
+
fSx7ImNvbmRpdGlvbnMiOltdLCJlbmRwb2ludCI6eyJ1cmwiOiJodHRwczov
|
104
|
+
L2Vjcy57UmVnaW9ufS57UGFydGl0aW9uUmVzdWx0I2Ruc1N1ZmZpeH0iLCJw
|
105
|
+
cm9wZXJ0aWVzIjp7fSwiaGVhZGVycyI6e319LCJ0eXBlIjoiZW5kcG9pbnQi
|
106
|
+
fV19XX0=
|
108
107
|
|
109
108
|
JSON
|
110
109
|
end
|
data/lib/aws-sdk-ecs/types.rb
CHANGED
@@ -6462,13 +6462,83 @@ module Aws::ECS
|
|
6462
6462
|
# The protocol used for the network binding.
|
6463
6463
|
# @return [String]
|
6464
6464
|
#
|
6465
|
+
# @!attribute [rw] container_port_range
|
6466
|
+
# The port number range on the container that's bound to the
|
6467
|
+
# dynamically mapped host port range.
|
6468
|
+
#
|
6469
|
+
# The following rules apply when you specify a `containerPortRange`\:
|
6470
|
+
#
|
6471
|
+
# * You must use either the `bridge` network mode or the `awsvpc`
|
6472
|
+
# network mode.
|
6473
|
+
#
|
6474
|
+
# * This parameter is available for both the EC2 and Fargate launch
|
6475
|
+
# types.
|
6476
|
+
#
|
6477
|
+
# * This parameter is available for both the Linux and Windows
|
6478
|
+
# operating systems.
|
6479
|
+
#
|
6480
|
+
# * The container instance must have at least version 1.67.0 of the
|
6481
|
+
# container agent and at least version 1.67.0-1 of the `ecs-init`
|
6482
|
+
# package
|
6483
|
+
#
|
6484
|
+
# * You can specify a maximum of 100 port ranges per container.
|
6485
|
+
#
|
6486
|
+
# * You do not specify a `hostPortRange`. The value of the
|
6487
|
+
# `hostPortRange` is set as follows:
|
6488
|
+
#
|
6489
|
+
# * For containers in a task with the `awsvpc` network mode, the
|
6490
|
+
# `hostPort` is set to the same value as the `containerPort`. This
|
6491
|
+
# is a static mapping strategy.
|
6492
|
+
#
|
6493
|
+
# * For containers in a task with the `bridge` network mode, the
|
6494
|
+
# Amazon ECS agent finds open host ports from the default
|
6495
|
+
# ephemeral range and passes it to docker to bind them to the
|
6496
|
+
# container ports.
|
6497
|
+
#
|
6498
|
+
# * The `containerPortRange` valid values are between 1 and 65535.
|
6499
|
+
#
|
6500
|
+
# * A port can only be included in one port mapping per container.
|
6501
|
+
#
|
6502
|
+
# * You cannot specify overlapping port ranges.
|
6503
|
+
#
|
6504
|
+
# * The first port in the range must be less than last port in the
|
6505
|
+
# range.
|
6506
|
+
#
|
6507
|
+
# * Docker recommends that you turn off the docker-proxy in the Docker
|
6508
|
+
# daemon config file when you have a large number of ports.
|
6509
|
+
#
|
6510
|
+
# For more information, see [ Issue #11185][1] on the Github
|
6511
|
+
# website.
|
6512
|
+
#
|
6513
|
+
# For information about how to turn off the docker-proxy in the
|
6514
|
+
# Docker daemon config file, see [Docker daemon][2] in the *Amazon
|
6515
|
+
# ECS Developer Guide*.
|
6516
|
+
#
|
6517
|
+
# You can call [ `DescribeTasks` ][3] to view the `hostPortRange`
|
6518
|
+
# which are the host ports that are bound to the container ports.
|
6519
|
+
#
|
6520
|
+
#
|
6521
|
+
#
|
6522
|
+
# [1]: https://github.com/moby/moby/issues/11185
|
6523
|
+
# [2]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/bootstrap_container_instance.html#bootstrap_docker_daemon
|
6524
|
+
# [3]: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DescribeTasks.html
|
6525
|
+
# @return [String]
|
6526
|
+
#
|
6527
|
+
# @!attribute [rw] host_port_range
|
6528
|
+
# The port number range on the host that's used with the network
|
6529
|
+
# binding. This is assigned is assigned by Docker and delivered by the
|
6530
|
+
# Amazon ECS agent.
|
6531
|
+
# @return [String]
|
6532
|
+
#
|
6465
6533
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/NetworkBinding AWS API Documentation
|
6466
6534
|
#
|
6467
6535
|
class NetworkBinding < Struct.new(
|
6468
6536
|
:bind_ip,
|
6469
6537
|
:container_port,
|
6470
6538
|
:host_port,
|
6471
|
-
:protocol
|
6539
|
+
:protocol,
|
6540
|
+
:container_port_range,
|
6541
|
+
:host_port_range)
|
6472
6542
|
SENSITIVE = []
|
6473
6543
|
include Aws::Structure
|
6474
6544
|
end
|
@@ -6678,6 +6748,18 @@ module Aws::ECS
|
|
6678
6748
|
# The port number on the container instance to reserve for your
|
6679
6749
|
# container.
|
6680
6750
|
#
|
6751
|
+
# If you specify a `containerPortRange`, leave this field empty and
|
6752
|
+
# the value of the `hostPort` is set as follows:
|
6753
|
+
#
|
6754
|
+
# * For containers in a task with the `awsvpc` network mode, the
|
6755
|
+
# `hostPort` is set to the same value as the `containerPort`. This
|
6756
|
+
# is a static mapping strategy.
|
6757
|
+
#
|
6758
|
+
# * For containers in a task with the `bridge` network mode, the
|
6759
|
+
# Amazon ECS agent finds open ports on the host and automaticaly
|
6760
|
+
# binds them to the container ports. This is a dynamic mapping
|
6761
|
+
# strategy.
|
6762
|
+
#
|
6681
6763
|
# If you use containers in a task with the `awsvpc` or `host` network
|
6682
6764
|
# mode, the `hostPort` can either be left blank or set to the same
|
6683
6765
|
# value as the `containerPort`.
|
@@ -6757,6 +6839,68 @@ module Aws::ECS
|
|
6757
6839
|
# [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-connect.html
|
6758
6840
|
# @return [String]
|
6759
6841
|
#
|
6842
|
+
# @!attribute [rw] container_port_range
|
6843
|
+
# The port number range on the container that's bound to the
|
6844
|
+
# dynamically mapped host port range.
|
6845
|
+
#
|
6846
|
+
# The following rules apply when you specify a `containerPortRange`\:
|
6847
|
+
#
|
6848
|
+
# * You must use either the `bridge` network mode or the `awsvpc`
|
6849
|
+
# network mode.
|
6850
|
+
#
|
6851
|
+
# * This parameter is available for both the EC2 and Fargate launch
|
6852
|
+
# types.
|
6853
|
+
#
|
6854
|
+
# * This parameter is available for both the Linux and Windows
|
6855
|
+
# operating systems.
|
6856
|
+
#
|
6857
|
+
# * The container instance must have at least version 1.67.0 of the
|
6858
|
+
# container agent and at least version 1.67.0-1 of the `ecs-init`
|
6859
|
+
# package
|
6860
|
+
#
|
6861
|
+
# * You can specify a maximum of 100 port ranges per container.
|
6862
|
+
#
|
6863
|
+
# * You do not specify a `hostPortRange`. The value of the
|
6864
|
+
# `hostPortRange` is set as follows:
|
6865
|
+
#
|
6866
|
+
# * For containers in a task with the `awsvpc` network mode, the
|
6867
|
+
# `hostPort` is set to the same value as the `containerPort`. This
|
6868
|
+
# is a static mapping strategy.
|
6869
|
+
#
|
6870
|
+
# * For containers in a task with the `bridge` network mode, the
|
6871
|
+
# Amazon ECS agent finds open host ports from the default
|
6872
|
+
# ephemeral range and passes it to docker to bind them to the
|
6873
|
+
# container ports.
|
6874
|
+
#
|
6875
|
+
# * The `containerPortRange` valid values are between 1 and 65535.
|
6876
|
+
#
|
6877
|
+
# * A port can only be included in one port mapping per container.
|
6878
|
+
#
|
6879
|
+
# * You cannot specify overlapping port ranges.
|
6880
|
+
#
|
6881
|
+
# * The first port in the range must be less than last port in the
|
6882
|
+
# range.
|
6883
|
+
#
|
6884
|
+
# * Docker recommends that you turn off the docker-proxy in the Docker
|
6885
|
+
# daemon config file when you have a large number of ports.
|
6886
|
+
#
|
6887
|
+
# For more information, see [ Issue #11185][1] on the Github
|
6888
|
+
# website.
|
6889
|
+
#
|
6890
|
+
# For information about how to turn off the docker-proxy in the
|
6891
|
+
# Docker daemon config file, see [Docker daemon][2] in the *Amazon
|
6892
|
+
# ECS Developer Guide*.
|
6893
|
+
#
|
6894
|
+
# You can call [ `DescribeTasks` ][3] to view the `hostPortRange`
|
6895
|
+
# which are the host ports that are bound to the container ports.
|
6896
|
+
#
|
6897
|
+
#
|
6898
|
+
#
|
6899
|
+
# [1]: https://github.com/moby/moby/issues/11185
|
6900
|
+
# [2]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/bootstrap_container_instance.html#bootstrap_docker_daemon
|
6901
|
+
# [3]: https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_DescribeTasks.html
|
6902
|
+
# @return [String]
|
6903
|
+
#
|
6760
6904
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/PortMapping AWS API Documentation
|
6761
6905
|
#
|
6762
6906
|
class PortMapping < Struct.new(
|
@@ -6764,7 +6908,8 @@ module Aws::ECS
|
|
6764
6908
|
:host_port,
|
6765
6909
|
:protocol,
|
6766
6910
|
:name,
|
6767
|
-
:app_protocol
|
6911
|
+
:app_protocol,
|
6912
|
+
:container_port_range)
|
6768
6913
|
SENSITIVE = []
|
6769
6914
|
include Aws::Structure
|
6770
6915
|
end
|
data/lib/aws-sdk-ecs.rb
CHANGED
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.108.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: 2022-12-
|
11
|
+
date: 2022-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|