aws-sdk-ecs 1.71.0 → 1.76.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 +465 -0
- data/LICENSE.txt +202 -0
- data/VERSION +1 -0
- data/lib/aws-sdk-ecs.rb +2 -2
- data/lib/aws-sdk-ecs/client.rb +430 -106
- data/lib/aws-sdk-ecs/client_api.rb +154 -1
- data/lib/aws-sdk-ecs/errors.rb +12 -1
- data/lib/aws-sdk-ecs/resource.rb +1 -1
- data/lib/aws-sdk-ecs/types.rb +967 -231
- data/lib/aws-sdk-ecs/waiters.rb +1 -1
- metadata +8 -5
data/LICENSE.txt
ADDED
@@ -0,0 +1,202 @@
|
|
1
|
+
|
2
|
+
Apache License
|
3
|
+
Version 2.0, January 2004
|
4
|
+
http://www.apache.org/licenses/
|
5
|
+
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
7
|
+
|
8
|
+
1. Definitions.
|
9
|
+
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
12
|
+
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
14
|
+
the copyright owner that is granting the License.
|
15
|
+
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
17
|
+
other entities that control, are controlled by, or are under common
|
18
|
+
control with that entity. For the purposes of this definition,
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
20
|
+
direction or management of such entity, whether by contract or
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
23
|
+
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
25
|
+
exercising permissions granted by this License.
|
26
|
+
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
28
|
+
including but not limited to software source code, documentation
|
29
|
+
source, and configuration files.
|
30
|
+
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
32
|
+
transformation or translation of a Source form, including but
|
33
|
+
not limited to compiled object code, generated documentation,
|
34
|
+
and conversions to other media types.
|
35
|
+
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
37
|
+
Object form, made available under the License, as indicated by a
|
38
|
+
copyright notice that is included in or attached to the work
|
39
|
+
(an example is provided in the Appendix below).
|
40
|
+
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
47
|
+
the Work and Derivative Works thereof.
|
48
|
+
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
50
|
+
the original version of the Work and any modifications or additions
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
62
|
+
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
65
|
+
subsequently incorporated within the Work.
|
66
|
+
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
73
|
+
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
79
|
+
where such license applies only to those patent claims licensable
|
80
|
+
by such Contributor that are necessarily infringed by their
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
83
|
+
institute patent litigation against any entity (including a
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
86
|
+
or contributory patent infringement, then any patent licenses
|
87
|
+
granted to You under this License for that Work shall terminate
|
88
|
+
as of the date such litigation is filed.
|
89
|
+
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
92
|
+
modifications, and in Source or Object form, provided that You
|
93
|
+
meet the following conditions:
|
94
|
+
|
95
|
+
(a) You must give any other recipients of the Work or
|
96
|
+
Derivative Works a copy of this License; and
|
97
|
+
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
99
|
+
stating that You changed the files; and
|
100
|
+
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
103
|
+
attribution notices from the Source form of the Work,
|
104
|
+
excluding those notices that do not pertain to any part of
|
105
|
+
the Derivative Works; and
|
106
|
+
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
109
|
+
include a readable copy of the attribution notices contained
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
112
|
+
of the following places: within a NOTICE text file distributed
|
113
|
+
as part of the Derivative Works; within the Source form or
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
115
|
+
within a display generated by the Derivative Works, if and
|
116
|
+
wherever such third-party notices normally appear. The contents
|
117
|
+
of the NOTICE file are for informational purposes only and
|
118
|
+
do not modify the License. You may add Your own attribution
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
121
|
+
that such additional attribution notices cannot be construed
|
122
|
+
as modifying the License.
|
123
|
+
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
125
|
+
may provide additional or different license terms and conditions
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
129
|
+
the conditions stated in this License.
|
130
|
+
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
134
|
+
this License, without any additional terms or conditions.
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
136
|
+
the terms of any separate license agreement you may have executed
|
137
|
+
with Licensor regarding such Contributions.
|
138
|
+
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
141
|
+
except as required for reasonable and customary use in describing the
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
143
|
+
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
153
|
+
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
159
|
+
incidental, or consequential damages of any character arising as a
|
160
|
+
result of this License or out of the use or inability to use the
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
163
|
+
other commercial damages or losses), even if such Contributor
|
164
|
+
has been advised of the possibility of such damages.
|
165
|
+
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
169
|
+
or other liability obligations and/or rights consistent with this
|
170
|
+
License. However, in accepting such obligations, You may act only
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
175
|
+
of your accepting any such warranty or additional liability.
|
176
|
+
|
177
|
+
END OF TERMS AND CONDITIONS
|
178
|
+
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
180
|
+
|
181
|
+
To apply the Apache License to your work, attach the following
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
183
|
+
replaced with your own identifying information. (Don't include
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
185
|
+
comment syntax for the file format. We also recommend that a
|
186
|
+
file or class name and description of purpose be included on the
|
187
|
+
same "printed page" as the copyright notice for easier
|
188
|
+
identification within third-party archives.
|
189
|
+
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
191
|
+
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
193
|
+
you may not use this file except in compliance with the License.
|
194
|
+
You may obtain a copy of the License at
|
195
|
+
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
197
|
+
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
201
|
+
See the License for the specific language governing permissions and
|
202
|
+
limitations under the License.
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.76.0
|
data/lib/aws-sdk-ecs.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
# WARNING ABOUT GENERATED CODE
|
4
4
|
#
|
5
5
|
# This file is generated. See the contributing guide for more information:
|
6
|
-
# https://github.com/aws/aws-sdk-ruby/blob/
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
@@ -49,6 +49,6 @@ require_relative 'aws-sdk-ecs/customizations'
|
|
49
49
|
# @!group service
|
50
50
|
module Aws::ECS
|
51
51
|
|
52
|
-
GEM_VERSION = '1.
|
52
|
+
GEM_VERSION = '1.76.0'
|
53
53
|
|
54
54
|
end
|
data/lib/aws-sdk-ecs/client.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
# WARNING ABOUT GENERATED CODE
|
4
4
|
#
|
5
5
|
# This file is generated. See the contributing guide for more information:
|
6
|
-
# https://github.com/aws/aws-sdk-ruby/blob/
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
@@ -400,6 +400,7 @@ module Aws::ECS
|
|
400
400
|
# target_capacity: 1,
|
401
401
|
# minimum_scaling_step_size: 1,
|
402
402
|
# maximum_scaling_step_size: 1,
|
403
|
+
# instance_warmup_period: 1,
|
403
404
|
# },
|
404
405
|
# managed_termination_protection: "ENABLED", # accepts ENABLED, DISABLED
|
405
406
|
# },
|
@@ -421,8 +422,9 @@ module Aws::ECS
|
|
421
422
|
# resp.capacity_provider.auto_scaling_group_provider.managed_scaling.target_capacity #=> Integer
|
422
423
|
# resp.capacity_provider.auto_scaling_group_provider.managed_scaling.minimum_scaling_step_size #=> Integer
|
423
424
|
# resp.capacity_provider.auto_scaling_group_provider.managed_scaling.maximum_scaling_step_size #=> Integer
|
425
|
+
# resp.capacity_provider.auto_scaling_group_provider.managed_scaling.instance_warmup_period #=> Integer
|
424
426
|
# resp.capacity_provider.auto_scaling_group_provider.managed_termination_protection #=> String, one of "ENABLED", "DISABLED"
|
425
|
-
# resp.capacity_provider.update_status #=> String, one of "DELETE_IN_PROGRESS", "DELETE_COMPLETE", "DELETE_FAILED"
|
427
|
+
# resp.capacity_provider.update_status #=> String, one of "DELETE_IN_PROGRESS", "DELETE_COMPLETE", "DELETE_FAILED", "UPDATE_IN_PROGRESS", "UPDATE_COMPLETE", "UPDATE_FAILED"
|
426
428
|
# resp.capacity_provider.update_status_reason #=> String
|
427
429
|
# resp.capacity_provider.tags #=> Array
|
428
430
|
# resp.capacity_provider.tags[0].key #=> String
|
@@ -497,14 +499,20 @@ module Aws::ECS
|
|
497
499
|
# specified, it will override the `containerInsights` value set with
|
498
500
|
# PutAccountSetting or PutAccountSettingDefault.
|
499
501
|
#
|
502
|
+
# @option params [Types::ClusterConfiguration] :configuration
|
503
|
+
# The execute command configuration for the cluster.
|
504
|
+
#
|
500
505
|
# @option params [Array<String>] :capacity_providers
|
501
506
|
# The short name of one or more capacity providers to associate with the
|
502
|
-
# cluster.
|
507
|
+
# cluster. A capacity provider must be associated with a cluster before
|
508
|
+
# it can be included as part of the default capacity provider strategy
|
509
|
+
# of the cluster or used in a capacity provider strategy when calling
|
510
|
+
# the CreateService or RunTask actions.
|
503
511
|
#
|
504
512
|
# If specifying a capacity provider that uses an Auto Scaling group, the
|
505
513
|
# capacity provider must already be created and not already associated
|
506
|
-
# with another cluster. New capacity providers can be
|
507
|
-
# CreateCapacityProvider API operation.
|
514
|
+
# with another cluster. New Auto Scaling group capacity providers can be
|
515
|
+
# created with the CreateCapacityProvider API operation.
|
508
516
|
#
|
509
517
|
# To use a AWS Fargate capacity provider, specify either the `FARGATE`
|
510
518
|
# or `FARGATE_SPOT` capacity providers. The AWS Fargate capacity
|
@@ -516,27 +524,11 @@ module Aws::ECS
|
|
516
524
|
# is created.
|
517
525
|
#
|
518
526
|
# @option params [Array<Types::CapacityProviderStrategyItem>] :default_capacity_provider_strategy
|
519
|
-
# The capacity provider strategy to
|
520
|
-
#
|
521
|
-
#
|
522
|
-
#
|
523
|
-
#
|
524
|
-
#
|
525
|
-
# A capacity provider strategy consists of one or more capacity
|
526
|
-
# providers along with the `base` and `weight` to assign to them. A
|
527
|
-
# capacity provider must be associated with the cluster to be used in a
|
528
|
-
# capacity provider strategy. The PutClusterCapacityProviders API is
|
529
|
-
# used to associate a capacity provider with a cluster. Only capacity
|
530
|
-
# providers with an `ACTIVE` or `UPDATING` status can be used.
|
531
|
-
#
|
532
|
-
# If specifying a capacity provider that uses an Auto Scaling group, the
|
533
|
-
# capacity provider must already be created. New capacity providers can
|
534
|
-
# be created with the CreateCapacityProvider API operation.
|
535
|
-
#
|
536
|
-
# To use a AWS Fargate capacity provider, specify either the `FARGATE`
|
537
|
-
# or `FARGATE_SPOT` capacity providers. The AWS Fargate capacity
|
538
|
-
# providers are available to all accounts and only need to be associated
|
539
|
-
# with a cluster to be used.
|
527
|
+
# The capacity provider strategy to set as the default for the cluster.
|
528
|
+
# When a default capacity provider strategy is set for a cluster, when
|
529
|
+
# calling the RunTask or CreateService APIs wtih no capacity provider
|
530
|
+
# strategy or launch type specified, the default capacity provider
|
531
|
+
# strategy for the cluster is used.
|
540
532
|
#
|
541
533
|
# If a default capacity provider strategy is not defined for a cluster
|
542
534
|
# during creation, it can be defined later with the
|
@@ -584,6 +576,19 @@ module Aws::ECS
|
|
584
576
|
# value: "String",
|
585
577
|
# },
|
586
578
|
# ],
|
579
|
+
# configuration: {
|
580
|
+
# execute_command_configuration: {
|
581
|
+
# kms_key_id: "String",
|
582
|
+
# logging: "NONE", # accepts NONE, DEFAULT, OVERRIDE
|
583
|
+
# log_configuration: {
|
584
|
+
# cloud_watch_log_group_name: "String",
|
585
|
+
# cloud_watch_encryption_enabled: false,
|
586
|
+
# s3_bucket_name: "String",
|
587
|
+
# s3_encryption_enabled: false,
|
588
|
+
# s3_key_prefix: "String",
|
589
|
+
# },
|
590
|
+
# },
|
591
|
+
# },
|
587
592
|
# capacity_providers: ["String"],
|
588
593
|
# default_capacity_provider_strategy: [
|
589
594
|
# {
|
@@ -598,6 +603,13 @@ module Aws::ECS
|
|
598
603
|
#
|
599
604
|
# resp.cluster.cluster_arn #=> String
|
600
605
|
# resp.cluster.cluster_name #=> String
|
606
|
+
# resp.cluster.configuration.execute_command_configuration.kms_key_id #=> String
|
607
|
+
# resp.cluster.configuration.execute_command_configuration.logging #=> String, one of "NONE", "DEFAULT", "OVERRIDE"
|
608
|
+
# resp.cluster.configuration.execute_command_configuration.log_configuration.cloud_watch_log_group_name #=> String
|
609
|
+
# resp.cluster.configuration.execute_command_configuration.log_configuration.cloud_watch_encryption_enabled #=> Boolean
|
610
|
+
# resp.cluster.configuration.execute_command_configuration.log_configuration.s3_bucket_name #=> String
|
611
|
+
# resp.cluster.configuration.execute_command_configuration.log_configuration.s3_encryption_enabled #=> Boolean
|
612
|
+
# resp.cluster.configuration.execute_command_configuration.log_configuration.s3_key_prefix #=> String
|
601
613
|
# resp.cluster.status #=> String
|
602
614
|
# resp.cluster.registered_container_instances_count #=> Integer
|
603
615
|
# resp.cluster.running_tasks_count #=> Integer
|
@@ -788,7 +800,7 @@ module Aws::ECS
|
|
788
800
|
# Load Balancer, you must specify one or more target group ARNs to
|
789
801
|
# attach to the service. The service-linked role is required for
|
790
802
|
# services that make use of multiple target groups. For more
|
791
|
-
# information, see [Using
|
803
|
+
# information, see [Using service-linked roles for Amazon ECS][2] in the
|
792
804
|
# *Amazon Elastic Container Service Developer Guide*.
|
793
805
|
#
|
794
806
|
# If the service is using the `CODE_DEPLOY` deployment controller, the
|
@@ -839,11 +851,11 @@ module Aws::ECS
|
|
839
851
|
#
|
840
852
|
# @option params [Array<Types::ServiceRegistry>] :service_registries
|
841
853
|
# The details of the service discovery registries to assign to this
|
842
|
-
# service. For more information, see [Service
|
854
|
+
# service. For more information, see [Service discovery][1].
|
843
855
|
#
|
844
856
|
# <note markdown="1"> Service discovery is supported for Fargate tasks if you are using
|
845
857
|
# platform version v1.1.0 or later. For more information, see [AWS
|
846
|
-
# Fargate
|
858
|
+
# Fargate platform versions][2].
|
847
859
|
#
|
848
860
|
# </note>
|
849
861
|
#
|
@@ -865,9 +877,16 @@ module Aws::ECS
|
|
865
877
|
# idempotency of the request. Up to 32 ASCII characters are allowed.
|
866
878
|
#
|
867
879
|
# @option params [String] :launch_type
|
868
|
-
# The launch type on which to run your service.
|
869
|
-
#
|
870
|
-
# Service Developer Guide*.
|
880
|
+
# The launch type on which to run your service. The accepted values are
|
881
|
+
# `FARGATE` and `EC2`. For more information, see [Amazon ECS launch
|
882
|
+
# types][1] in the *Amazon Elastic Container Service Developer Guide*.
|
883
|
+
#
|
884
|
+
# When a value of `FARGATE` is specified, your tasks are launched on AWS
|
885
|
+
# Fargate On-Demand infrastructure. To use Fargate Spot, you must use a
|
886
|
+
# capacity provider strategy with the `FARGATE_SPOT` capacity provider.
|
887
|
+
#
|
888
|
+
# When a value of `EC2` is specified, your tasks are launched on Amazon
|
889
|
+
# EC2 instances registered to your cluster.
|
871
890
|
#
|
872
891
|
# If a `launchType` is specified, the `capacityProviderStrategy`
|
873
892
|
# parameter must be omitted.
|
@@ -879,37 +898,17 @@ module Aws::ECS
|
|
879
898
|
# @option params [Array<Types::CapacityProviderStrategyItem>] :capacity_provider_strategy
|
880
899
|
# The capacity provider strategy to use for the service.
|
881
900
|
#
|
882
|
-
# A capacity provider strategy consists of one or more capacity
|
883
|
-
# providers along with the `base` and `weight` to assign to them. A
|
884
|
-
# capacity provider must be associated with the cluster to be used in a
|
885
|
-
# capacity provider strategy. The PutClusterCapacityProviders API is
|
886
|
-
# used to associate a capacity provider with a cluster. Only capacity
|
887
|
-
# providers with an `ACTIVE` or `UPDATING` status can be used.
|
888
|
-
#
|
889
901
|
# If a `capacityProviderStrategy` is specified, the `launchType`
|
890
902
|
# parameter must be omitted. If no `capacityProviderStrategy` or
|
891
903
|
# `launchType` is specified, the `defaultCapacityProviderStrategy` for
|
892
904
|
# the cluster is used.
|
893
905
|
#
|
894
|
-
# If specifying a capacity provider that uses an Auto Scaling group, the
|
895
|
-
# capacity provider must already be created. New capacity providers can
|
896
|
-
# be created with the CreateCapacityProvider API operation.
|
897
|
-
#
|
898
|
-
# To use a AWS Fargate capacity provider, specify either the `FARGATE`
|
899
|
-
# or `FARGATE_SPOT` capacity providers. The AWS Fargate capacity
|
900
|
-
# providers are available to all accounts and only need to be associated
|
901
|
-
# with a cluster to be used.
|
902
|
-
#
|
903
|
-
# The PutClusterCapacityProviders API operation is used to update the
|
904
|
-
# list of available capacity providers for a cluster after the cluster
|
905
|
-
# is created.
|
906
|
-
#
|
907
906
|
# @option params [String] :platform_version
|
908
907
|
# The platform version that your tasks in the service are running on. A
|
909
908
|
# platform version is specified only for tasks using the Fargate launch
|
910
909
|
# type. If one isn't specified, the `LATEST` platform version is used
|
911
|
-
# by default. For more information, see [AWS Fargate
|
912
|
-
#
|
910
|
+
# by default. For more information, see [AWS Fargate platform
|
911
|
+
# versions][1] in the *Amazon Elastic Container Service Developer
|
913
912
|
# Guide*.
|
914
913
|
#
|
915
914
|
#
|
@@ -931,14 +930,14 @@ module Aws::ECS
|
|
931
930
|
# configured to use service discovery, an external deployment
|
932
931
|
# controller, multiple target groups, or Elastic Inference accelerators
|
933
932
|
# in which case you should not specify a role here. For more
|
934
|
-
# information, see [Using
|
933
|
+
# information, see [Using service-linked roles for Amazon ECS][1] in the
|
935
934
|
# *Amazon Elastic Container Service Developer Guide*.
|
936
935
|
#
|
937
936
|
# If your specified role has a path other than `/`, then you must either
|
938
937
|
# specify the full role ARN (this is recommended) or prefix the role
|
939
938
|
# name with the path. For example, if a role with the name `bar` has a
|
940
939
|
# path of `/foo/` then you would specify `/foo/bar` as the role name.
|
941
|
-
# For more information, see [Friendly
|
940
|
+
# For more information, see [Friendly names and paths][2] in the *IAM
|
942
941
|
# User Guide*.
|
943
942
|
#
|
944
943
|
#
|
@@ -964,7 +963,7 @@ module Aws::ECS
|
|
964
963
|
# The network configuration for the service. This parameter is required
|
965
964
|
# for task definitions that use the `awsvpc` network mode to receive
|
966
965
|
# their own elastic network interface, and it is not supported for other
|
967
|
-
# network modes. For more information, see [Task
|
966
|
+
# network modes. For more information, see [Task networking][1] in the
|
968
967
|
# *Amazon Elastic Container Service Developer Guide*.
|
969
968
|
#
|
970
969
|
#
|
@@ -1069,6 +1068,11 @@ module Aws::ECS
|
|
1069
1068
|
# within the service during service creation. To add tags to a task
|
1070
1069
|
# after service creation, use the TagResource API action.
|
1071
1070
|
#
|
1071
|
+
# @option params [Boolean] :enable_execute_command
|
1072
|
+
# Whether or not the execute command functionality is enabled for the
|
1073
|
+
# service. If `true`, this enables execute command functionality on all
|
1074
|
+
# containers in the service tasks.
|
1075
|
+
#
|
1072
1076
|
# @return [Types::CreateServiceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1073
1077
|
#
|
1074
1078
|
# * {Types::CreateServiceResponse#service #service} => Types::Service
|
@@ -1226,6 +1230,10 @@ module Aws::ECS
|
|
1226
1230
|
# platform_version: "String",
|
1227
1231
|
# role: "String",
|
1228
1232
|
# deployment_configuration: {
|
1233
|
+
# deployment_circuit_breaker: {
|
1234
|
+
# enable: false, # required
|
1235
|
+
# rollback: false, # required
|
1236
|
+
# },
|
1229
1237
|
# maximum_percent: 1,
|
1230
1238
|
# minimum_healthy_percent: 1,
|
1231
1239
|
# },
|
@@ -1261,6 +1269,7 @@ module Aws::ECS
|
|
1261
1269
|
# ],
|
1262
1270
|
# enable_ecs_managed_tags: false,
|
1263
1271
|
# propagate_tags: "TASK_DEFINITION", # accepts TASK_DEFINITION, SERVICE
|
1272
|
+
# enable_execute_command: false,
|
1264
1273
|
# })
|
1265
1274
|
#
|
1266
1275
|
# @example Response structure
|
@@ -1289,6 +1298,8 @@ module Aws::ECS
|
|
1289
1298
|
# resp.service.capacity_provider_strategy[0].base #=> Integer
|
1290
1299
|
# resp.service.platform_version #=> String
|
1291
1300
|
# resp.service.task_definition #=> String
|
1301
|
+
# resp.service.deployment_configuration.deployment_circuit_breaker.enable #=> Boolean
|
1302
|
+
# resp.service.deployment_configuration.deployment_circuit_breaker.rollback #=> Boolean
|
1292
1303
|
# resp.service.deployment_configuration.maximum_percent #=> Integer
|
1293
1304
|
# resp.service.deployment_configuration.minimum_healthy_percent #=> Integer
|
1294
1305
|
# resp.service.task_sets #=> Array
|
@@ -1340,6 +1351,7 @@ module Aws::ECS
|
|
1340
1351
|
# resp.service.deployments[0].desired_count #=> Integer
|
1341
1352
|
# resp.service.deployments[0].pending_count #=> Integer
|
1342
1353
|
# resp.service.deployments[0].running_count #=> Integer
|
1354
|
+
# resp.service.deployments[0].failed_tasks #=> Integer
|
1343
1355
|
# resp.service.deployments[0].created_at #=> Time
|
1344
1356
|
# resp.service.deployments[0].updated_at #=> Time
|
1345
1357
|
# resp.service.deployments[0].capacity_provider_strategy #=> Array
|
@@ -1353,6 +1365,8 @@ module Aws::ECS
|
|
1353
1365
|
# resp.service.deployments[0].network_configuration.awsvpc_configuration.security_groups #=> Array
|
1354
1366
|
# resp.service.deployments[0].network_configuration.awsvpc_configuration.security_groups[0] #=> String
|
1355
1367
|
# resp.service.deployments[0].network_configuration.awsvpc_configuration.assign_public_ip #=> String, one of "ENABLED", "DISABLED"
|
1368
|
+
# resp.service.deployments[0].rollout_state #=> String, one of "COMPLETED", "FAILED", "IN_PROGRESS"
|
1369
|
+
# resp.service.deployments[0].rollout_state_reason #=> String
|
1356
1370
|
# resp.service.role_arn #=> String
|
1357
1371
|
# resp.service.events #=> Array
|
1358
1372
|
# resp.service.events[0].id #=> String
|
@@ -1379,6 +1393,7 @@ module Aws::ECS
|
|
1379
1393
|
# resp.service.created_by #=> String
|
1380
1394
|
# resp.service.enable_ecs_managed_tags #=> Boolean
|
1381
1395
|
# resp.service.propagate_tags #=> String, one of "TASK_DEFINITION", "SERVICE"
|
1396
|
+
# resp.service.enable_execute_command #=> Boolean
|
1382
1397
|
#
|
1383
1398
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/CreateService AWS API Documentation
|
1384
1399
|
#
|
@@ -1802,8 +1817,9 @@ module Aws::ECS
|
|
1802
1817
|
# resp.capacity_provider.auto_scaling_group_provider.managed_scaling.target_capacity #=> Integer
|
1803
1818
|
# resp.capacity_provider.auto_scaling_group_provider.managed_scaling.minimum_scaling_step_size #=> Integer
|
1804
1819
|
# resp.capacity_provider.auto_scaling_group_provider.managed_scaling.maximum_scaling_step_size #=> Integer
|
1820
|
+
# resp.capacity_provider.auto_scaling_group_provider.managed_scaling.instance_warmup_period #=> Integer
|
1805
1821
|
# resp.capacity_provider.auto_scaling_group_provider.managed_termination_protection #=> String, one of "ENABLED", "DISABLED"
|
1806
|
-
# resp.capacity_provider.update_status #=> String, one of "DELETE_IN_PROGRESS", "DELETE_COMPLETE", "DELETE_FAILED"
|
1822
|
+
# resp.capacity_provider.update_status #=> String, one of "DELETE_IN_PROGRESS", "DELETE_COMPLETE", "DELETE_FAILED", "UPDATE_IN_PROGRESS", "UPDATE_COMPLETE", "UPDATE_FAILED"
|
1807
1823
|
# resp.capacity_provider.update_status_reason #=> String
|
1808
1824
|
# resp.capacity_provider.tags #=> Array
|
1809
1825
|
# resp.capacity_provider.tags[0].key #=> String
|
@@ -1869,6 +1885,13 @@ module Aws::ECS
|
|
1869
1885
|
#
|
1870
1886
|
# resp.cluster.cluster_arn #=> String
|
1871
1887
|
# resp.cluster.cluster_name #=> String
|
1888
|
+
# resp.cluster.configuration.execute_command_configuration.kms_key_id #=> String
|
1889
|
+
# resp.cluster.configuration.execute_command_configuration.logging #=> String, one of "NONE", "DEFAULT", "OVERRIDE"
|
1890
|
+
# resp.cluster.configuration.execute_command_configuration.log_configuration.cloud_watch_log_group_name #=> String
|
1891
|
+
# resp.cluster.configuration.execute_command_configuration.log_configuration.cloud_watch_encryption_enabled #=> Boolean
|
1892
|
+
# resp.cluster.configuration.execute_command_configuration.log_configuration.s3_bucket_name #=> String
|
1893
|
+
# resp.cluster.configuration.execute_command_configuration.log_configuration.s3_encryption_enabled #=> Boolean
|
1894
|
+
# resp.cluster.configuration.execute_command_configuration.log_configuration.s3_key_prefix #=> String
|
1872
1895
|
# resp.cluster.status #=> String
|
1873
1896
|
# resp.cluster.registered_container_instances_count #=> Integer
|
1874
1897
|
# resp.cluster.running_tasks_count #=> Integer
|
@@ -1995,6 +2018,8 @@ module Aws::ECS
|
|
1995
2018
|
# resp.service.capacity_provider_strategy[0].base #=> Integer
|
1996
2019
|
# resp.service.platform_version #=> String
|
1997
2020
|
# resp.service.task_definition #=> String
|
2021
|
+
# resp.service.deployment_configuration.deployment_circuit_breaker.enable #=> Boolean
|
2022
|
+
# resp.service.deployment_configuration.deployment_circuit_breaker.rollback #=> Boolean
|
1998
2023
|
# resp.service.deployment_configuration.maximum_percent #=> Integer
|
1999
2024
|
# resp.service.deployment_configuration.minimum_healthy_percent #=> Integer
|
2000
2025
|
# resp.service.task_sets #=> Array
|
@@ -2046,6 +2071,7 @@ module Aws::ECS
|
|
2046
2071
|
# resp.service.deployments[0].desired_count #=> Integer
|
2047
2072
|
# resp.service.deployments[0].pending_count #=> Integer
|
2048
2073
|
# resp.service.deployments[0].running_count #=> Integer
|
2074
|
+
# resp.service.deployments[0].failed_tasks #=> Integer
|
2049
2075
|
# resp.service.deployments[0].created_at #=> Time
|
2050
2076
|
# resp.service.deployments[0].updated_at #=> Time
|
2051
2077
|
# resp.service.deployments[0].capacity_provider_strategy #=> Array
|
@@ -2059,6 +2085,8 @@ module Aws::ECS
|
|
2059
2085
|
# resp.service.deployments[0].network_configuration.awsvpc_configuration.security_groups #=> Array
|
2060
2086
|
# resp.service.deployments[0].network_configuration.awsvpc_configuration.security_groups[0] #=> String
|
2061
2087
|
# resp.service.deployments[0].network_configuration.awsvpc_configuration.assign_public_ip #=> String, one of "ENABLED", "DISABLED"
|
2088
|
+
# resp.service.deployments[0].rollout_state #=> String, one of "COMPLETED", "FAILED", "IN_PROGRESS"
|
2089
|
+
# resp.service.deployments[0].rollout_state_reason #=> String
|
2062
2090
|
# resp.service.role_arn #=> String
|
2063
2091
|
# resp.service.events #=> Array
|
2064
2092
|
# resp.service.events[0].id #=> String
|
@@ -2085,6 +2113,7 @@ module Aws::ECS
|
|
2085
2113
|
# resp.service.created_by #=> String
|
2086
2114
|
# resp.service.enable_ecs_managed_tags #=> Boolean
|
2087
2115
|
# resp.service.propagate_tags #=> String, one of "TASK_DEFINITION", "SERVICE"
|
2116
|
+
# resp.service.enable_execute_command #=> Boolean
|
2088
2117
|
#
|
2089
2118
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DeleteService AWS API Documentation
|
2090
2119
|
#
|
@@ -2508,6 +2537,9 @@ module Aws::ECS
|
|
2508
2537
|
# resp.task_definition.proxy_configuration.properties #=> Array
|
2509
2538
|
# resp.task_definition.proxy_configuration.properties[0].name #=> String
|
2510
2539
|
# resp.task_definition.proxy_configuration.properties[0].value #=> String
|
2540
|
+
# resp.task_definition.registered_at #=> Time
|
2541
|
+
# resp.task_definition.deregistered_at #=> Time
|
2542
|
+
# resp.task_definition.registered_by #=> String
|
2511
2543
|
#
|
2512
2544
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DeregisterTaskDefinition AWS API Documentation
|
2513
2545
|
#
|
@@ -2581,8 +2613,9 @@ module Aws::ECS
|
|
2581
2613
|
# resp.capacity_providers[0].auto_scaling_group_provider.managed_scaling.target_capacity #=> Integer
|
2582
2614
|
# resp.capacity_providers[0].auto_scaling_group_provider.managed_scaling.minimum_scaling_step_size #=> Integer
|
2583
2615
|
# resp.capacity_providers[0].auto_scaling_group_provider.managed_scaling.maximum_scaling_step_size #=> Integer
|
2616
|
+
# resp.capacity_providers[0].auto_scaling_group_provider.managed_scaling.instance_warmup_period #=> Integer
|
2584
2617
|
# resp.capacity_providers[0].auto_scaling_group_provider.managed_termination_protection #=> String, one of "ENABLED", "DISABLED"
|
2585
|
-
# resp.capacity_providers[0].update_status #=> String, one of "DELETE_IN_PROGRESS", "DELETE_COMPLETE", "DELETE_FAILED"
|
2618
|
+
# resp.capacity_providers[0].update_status #=> String, one of "DELETE_IN_PROGRESS", "DELETE_COMPLETE", "DELETE_FAILED", "UPDATE_IN_PROGRESS", "UPDATE_COMPLETE", "UPDATE_FAILED"
|
2586
2619
|
# resp.capacity_providers[0].update_status_reason #=> String
|
2587
2620
|
# resp.capacity_providers[0].tags #=> Array
|
2588
2621
|
# resp.capacity_providers[0].tags[0].key #=> String
|
@@ -2674,7 +2707,7 @@ module Aws::ECS
|
|
2674
2707
|
#
|
2675
2708
|
# resp = client.describe_clusters({
|
2676
2709
|
# clusters: ["String"],
|
2677
|
-
# include: ["ATTACHMENTS"], # accepts ATTACHMENTS, SETTINGS, STATISTICS, TAGS
|
2710
|
+
# include: ["ATTACHMENTS"], # accepts ATTACHMENTS, CONFIGURATIONS, SETTINGS, STATISTICS, TAGS
|
2678
2711
|
# })
|
2679
2712
|
#
|
2680
2713
|
# @example Response structure
|
@@ -2682,6 +2715,13 @@ module Aws::ECS
|
|
2682
2715
|
# resp.clusters #=> Array
|
2683
2716
|
# resp.clusters[0].cluster_arn #=> String
|
2684
2717
|
# resp.clusters[0].cluster_name #=> String
|
2718
|
+
# resp.clusters[0].configuration.execute_command_configuration.kms_key_id #=> String
|
2719
|
+
# resp.clusters[0].configuration.execute_command_configuration.logging #=> String, one of "NONE", "DEFAULT", "OVERRIDE"
|
2720
|
+
# resp.clusters[0].configuration.execute_command_configuration.log_configuration.cloud_watch_log_group_name #=> String
|
2721
|
+
# resp.clusters[0].configuration.execute_command_configuration.log_configuration.cloud_watch_encryption_enabled #=> Boolean
|
2722
|
+
# resp.clusters[0].configuration.execute_command_configuration.log_configuration.s3_bucket_name #=> String
|
2723
|
+
# resp.clusters[0].configuration.execute_command_configuration.log_configuration.s3_encryption_enabled #=> Boolean
|
2724
|
+
# resp.clusters[0].configuration.execute_command_configuration.log_configuration.s3_key_prefix #=> String
|
2685
2725
|
# resp.clusters[0].status #=> String
|
2686
2726
|
# resp.clusters[0].registered_container_instances_count #=> Integer
|
2687
2727
|
# resp.clusters[0].running_tasks_count #=> Integer
|
@@ -3021,6 +3061,8 @@ module Aws::ECS
|
|
3021
3061
|
# resp.services[0].capacity_provider_strategy[0].base #=> Integer
|
3022
3062
|
# resp.services[0].platform_version #=> String
|
3023
3063
|
# resp.services[0].task_definition #=> String
|
3064
|
+
# resp.services[0].deployment_configuration.deployment_circuit_breaker.enable #=> Boolean
|
3065
|
+
# resp.services[0].deployment_configuration.deployment_circuit_breaker.rollback #=> Boolean
|
3024
3066
|
# resp.services[0].deployment_configuration.maximum_percent #=> Integer
|
3025
3067
|
# resp.services[0].deployment_configuration.minimum_healthy_percent #=> Integer
|
3026
3068
|
# resp.services[0].task_sets #=> Array
|
@@ -3072,6 +3114,7 @@ module Aws::ECS
|
|
3072
3114
|
# resp.services[0].deployments[0].desired_count #=> Integer
|
3073
3115
|
# resp.services[0].deployments[0].pending_count #=> Integer
|
3074
3116
|
# resp.services[0].deployments[0].running_count #=> Integer
|
3117
|
+
# resp.services[0].deployments[0].failed_tasks #=> Integer
|
3075
3118
|
# resp.services[0].deployments[0].created_at #=> Time
|
3076
3119
|
# resp.services[0].deployments[0].updated_at #=> Time
|
3077
3120
|
# resp.services[0].deployments[0].capacity_provider_strategy #=> Array
|
@@ -3085,6 +3128,8 @@ module Aws::ECS
|
|
3085
3128
|
# resp.services[0].deployments[0].network_configuration.awsvpc_configuration.security_groups #=> Array
|
3086
3129
|
# resp.services[0].deployments[0].network_configuration.awsvpc_configuration.security_groups[0] #=> String
|
3087
3130
|
# resp.services[0].deployments[0].network_configuration.awsvpc_configuration.assign_public_ip #=> String, one of "ENABLED", "DISABLED"
|
3131
|
+
# resp.services[0].deployments[0].rollout_state #=> String, one of "COMPLETED", "FAILED", "IN_PROGRESS"
|
3132
|
+
# resp.services[0].deployments[0].rollout_state_reason #=> String
|
3088
3133
|
# resp.services[0].role_arn #=> String
|
3089
3134
|
# resp.services[0].events #=> Array
|
3090
3135
|
# resp.services[0].events[0].id #=> String
|
@@ -3111,6 +3156,7 @@ module Aws::ECS
|
|
3111
3156
|
# resp.services[0].created_by #=> String
|
3112
3157
|
# resp.services[0].enable_ecs_managed_tags #=> Boolean
|
3113
3158
|
# resp.services[0].propagate_tags #=> String, one of "TASK_DEFINITION", "SERVICE"
|
3159
|
+
# resp.services[0].enable_execute_command #=> Boolean
|
3114
3160
|
# resp.failures #=> Array
|
3115
3161
|
# resp.failures[0].arn #=> String
|
3116
3162
|
# resp.failures[0].reason #=> String
|
@@ -3380,6 +3426,9 @@ module Aws::ECS
|
|
3380
3426
|
# resp.task_definition.proxy_configuration.properties #=> Array
|
3381
3427
|
# resp.task_definition.proxy_configuration.properties[0].name #=> String
|
3382
3428
|
# resp.task_definition.proxy_configuration.properties[0].value #=> String
|
3429
|
+
# resp.task_definition.registered_at #=> Time
|
3430
|
+
# resp.task_definition.deregistered_at #=> Time
|
3431
|
+
# resp.task_definition.registered_by #=> String
|
3383
3432
|
# resp.tags #=> Array
|
3384
3433
|
# resp.tags[0].key #=> String
|
3385
3434
|
# resp.tags[0].value #=> String
|
@@ -3611,6 +3660,11 @@ module Aws::ECS
|
|
3611
3660
|
# resp.tasks[0].containers[0].network_interfaces[0].private_ipv_4_address #=> String
|
3612
3661
|
# resp.tasks[0].containers[0].network_interfaces[0].ipv6_address #=> String
|
3613
3662
|
# resp.tasks[0].containers[0].health_status #=> String, one of "HEALTHY", "UNHEALTHY", "UNKNOWN"
|
3663
|
+
# resp.tasks[0].containers[0].managed_agents #=> Array
|
3664
|
+
# resp.tasks[0].containers[0].managed_agents[0].last_started_at #=> Time
|
3665
|
+
# resp.tasks[0].containers[0].managed_agents[0].name #=> String, one of "ExecuteCommandAgent"
|
3666
|
+
# resp.tasks[0].containers[0].managed_agents[0].reason #=> String
|
3667
|
+
# resp.tasks[0].containers[0].managed_agents[0].last_status #=> String
|
3614
3668
|
# resp.tasks[0].containers[0].cpu #=> String
|
3615
3669
|
# resp.tasks[0].containers[0].memory #=> String
|
3616
3670
|
# resp.tasks[0].containers[0].memory_reservation #=> String
|
@@ -3619,6 +3673,7 @@ module Aws::ECS
|
|
3619
3673
|
# resp.tasks[0].cpu #=> String
|
3620
3674
|
# resp.tasks[0].created_at #=> Time
|
3621
3675
|
# resp.tasks[0].desired_status #=> String
|
3676
|
+
# resp.tasks[0].enable_execute_command #=> Boolean
|
3622
3677
|
# resp.tasks[0].execution_stopped_at #=> Time
|
3623
3678
|
# resp.tasks[0].group #=> String
|
3624
3679
|
# resp.tasks[0].health_status #=> String, one of "HEALTHY", "UNHEALTHY", "UNKNOWN"
|
@@ -3731,6 +3786,66 @@ module Aws::ECS
|
|
3731
3786
|
req.send_request(options)
|
3732
3787
|
end
|
3733
3788
|
|
3789
|
+
# Runs a command remotely on a container within a task.
|
3790
|
+
#
|
3791
|
+
# @option params [String] :cluster
|
3792
|
+
# The Amazon Resource Name (ARN) or short name of the cluster the task
|
3793
|
+
# is running in. If you do not specify a cluster, the default cluster is
|
3794
|
+
# assumed.
|
3795
|
+
#
|
3796
|
+
# @option params [String] :container
|
3797
|
+
# The name of the container to execute the command on. A container name
|
3798
|
+
# only needs to be specified for tasks containing multiple containers.
|
3799
|
+
#
|
3800
|
+
# @option params [required, String] :command
|
3801
|
+
# The command to run on the container.
|
3802
|
+
#
|
3803
|
+
# @option params [required, Boolean] :interactive
|
3804
|
+
# Use this flag to run your command in interactive mode.
|
3805
|
+
#
|
3806
|
+
# @option params [required, String] :task
|
3807
|
+
# The Amazon Resource Name (ARN) or ID of the task the container is part
|
3808
|
+
# of.
|
3809
|
+
#
|
3810
|
+
# @return [Types::ExecuteCommandResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3811
|
+
#
|
3812
|
+
# * {Types::ExecuteCommandResponse#cluster_arn #cluster_arn} => String
|
3813
|
+
# * {Types::ExecuteCommandResponse#container_arn #container_arn} => String
|
3814
|
+
# * {Types::ExecuteCommandResponse#container_name #container_name} => String
|
3815
|
+
# * {Types::ExecuteCommandResponse#interactive #interactive} => Boolean
|
3816
|
+
# * {Types::ExecuteCommandResponse#session #session} => Types::Session
|
3817
|
+
# * {Types::ExecuteCommandResponse#task_arn #task_arn} => String
|
3818
|
+
#
|
3819
|
+
# @example Request syntax with placeholder values
|
3820
|
+
#
|
3821
|
+
# resp = client.execute_command({
|
3822
|
+
# cluster: "String",
|
3823
|
+
# container: "String",
|
3824
|
+
# command: "String", # required
|
3825
|
+
# interactive: false, # required
|
3826
|
+
# task: "String", # required
|
3827
|
+
# })
|
3828
|
+
#
|
3829
|
+
# @example Response structure
|
3830
|
+
#
|
3831
|
+
# resp.cluster_arn #=> String
|
3832
|
+
# resp.container_arn #=> String
|
3833
|
+
# resp.container_name #=> String
|
3834
|
+
# resp.interactive #=> Boolean
|
3835
|
+
# resp.session.session_id #=> String
|
3836
|
+
# resp.session.stream_url #=> String
|
3837
|
+
# resp.session.token_value #=> String
|
3838
|
+
# resp.task_arn #=> String
|
3839
|
+
#
|
3840
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ExecuteCommand AWS API Documentation
|
3841
|
+
#
|
3842
|
+
# @overload execute_command(params = {})
|
3843
|
+
# @param [Hash] params ({})
|
3844
|
+
def execute_command(params = {}, options = {})
|
3845
|
+
req = build_request(:execute_command, params)
|
3846
|
+
req.send_request(options)
|
3847
|
+
end
|
3848
|
+
|
3734
3849
|
# Lists the account settings for a specified principal.
|
3735
3850
|
#
|
3736
3851
|
# @option params [String] :name
|
@@ -4976,6 +5091,13 @@ module Aws::ECS
|
|
4976
5091
|
#
|
4977
5092
|
# resp.cluster.cluster_arn #=> String
|
4978
5093
|
# resp.cluster.cluster_name #=> String
|
5094
|
+
# resp.cluster.configuration.execute_command_configuration.kms_key_id #=> String
|
5095
|
+
# resp.cluster.configuration.execute_command_configuration.logging #=> String, one of "NONE", "DEFAULT", "OVERRIDE"
|
5096
|
+
# resp.cluster.configuration.execute_command_configuration.log_configuration.cloud_watch_log_group_name #=> String
|
5097
|
+
# resp.cluster.configuration.execute_command_configuration.log_configuration.cloud_watch_encryption_enabled #=> Boolean
|
5098
|
+
# resp.cluster.configuration.execute_command_configuration.log_configuration.s3_bucket_name #=> String
|
5099
|
+
# resp.cluster.configuration.execute_command_configuration.log_configuration.s3_encryption_enabled #=> Boolean
|
5100
|
+
# resp.cluster.configuration.execute_command_configuration.log_configuration.s3_key_prefix #=> String
|
4979
5101
|
# resp.cluster.status #=> String
|
4980
5102
|
# resp.cluster.registered_container_instances_count #=> Integer
|
4981
5103
|
# resp.cluster.running_tasks_count #=> Integer
|
@@ -5254,16 +5376,17 @@ module Aws::ECS
|
|
5254
5376
|
#
|
5255
5377
|
# @option params [String] :network_mode
|
5256
5378
|
# The Docker networking mode to use for the containers in the task. The
|
5257
|
-
# valid values are `none`, `bridge`, `awsvpc`, and `host`.
|
5258
|
-
#
|
5259
|
-
#
|
5260
|
-
#
|
5261
|
-
#
|
5262
|
-
#
|
5263
|
-
#
|
5264
|
-
#
|
5265
|
-
#
|
5266
|
-
#
|
5379
|
+
# valid values are `none`, `bridge`, `awsvpc`, and `host`. If no network
|
5380
|
+
# mode is specified, the default is `bridge`.
|
5381
|
+
#
|
5382
|
+
# For Amazon ECS tasks on Fargate, the `awsvpc` network mode is
|
5383
|
+
# required. For Amazon ECS tasks on Amazon EC2 instances, any network
|
5384
|
+
# mode can be used. If the network mode is set to `none`, you cannot
|
5385
|
+
# specify port mappings in your container definitions, and the tasks
|
5386
|
+
# containers do not have external connectivity. The `host` and `awsvpc`
|
5387
|
+
# network modes offer the highest networking performance for containers
|
5388
|
+
# because they use the EC2 network stack instead of the virtualized
|
5389
|
+
# network stack provided by the `bridge` mode.
|
5267
5390
|
#
|
5268
5391
|
# With the `host` and `awsvpc` network modes, exposed container ports
|
5269
5392
|
# are mapped directly to the corresponding host port (for the `host`
|
@@ -5271,6 +5394,10 @@ module Aws::ECS
|
|
5271
5394
|
# `awsvpc` network mode), so you cannot take advantage of dynamic host
|
5272
5395
|
# port mappings.
|
5273
5396
|
#
|
5397
|
+
# When using the `host` network mode, you should not run containers
|
5398
|
+
# using the root user (UID 0). It is considered best practice to use a
|
5399
|
+
# non-root user.
|
5400
|
+
#
|
5274
5401
|
# If the network mode is `awsvpc`, the task is allocated an elastic
|
5275
5402
|
# network interface, and you must specify a NetworkConfiguration value
|
5276
5403
|
# when you create a service or run a task with the task definition. For
|
@@ -5316,9 +5443,9 @@ module Aws::ECS
|
|
5316
5443
|
#
|
5317
5444
|
# @option params [Array<String>] :requires_compatibilities
|
5318
5445
|
# The task launch type that Amazon ECS should validate the task
|
5319
|
-
# definition against.
|
5320
|
-
#
|
5321
|
-
# specified,
|
5446
|
+
# definition against. A client exception is returned if the task
|
5447
|
+
# definition doesn't validate against the compatibilities specified. If
|
5448
|
+
# no value is specified, the parameter is omitted from the response.
|
5322
5449
|
#
|
5323
5450
|
# @option params [String] :cpu
|
5324
5451
|
# The number of CPU units used by the task. It can be expressed as an
|
@@ -5434,8 +5561,8 @@ module Aws::ECS
|
|
5434
5561
|
# risk of undesired process namespace expose. For more information, see
|
5435
5562
|
# [Docker security][2].
|
5436
5563
|
#
|
5437
|
-
# <note markdown="1"> This parameter is not supported for Windows containers or tasks
|
5438
|
-
#
|
5564
|
+
# <note markdown="1"> This parameter is not supported for Windows containers or tasks run on
|
5565
|
+
# AWS Fargate.
|
5439
5566
|
#
|
5440
5567
|
# </note>
|
5441
5568
|
#
|
@@ -5473,8 +5600,8 @@ module Aws::ECS
|
|
5473
5600
|
# * For tasks that use the `task` IPC mode, IPC namespace related
|
5474
5601
|
# `systemControls` will apply to all containers within a task.
|
5475
5602
|
#
|
5476
|
-
# <note markdown="1"> This parameter is not supported for Windows containers or tasks
|
5477
|
-
#
|
5603
|
+
# <note markdown="1"> This parameter is not supported for Windows containers or tasks run on
|
5604
|
+
# AWS Fargate.
|
5478
5605
|
#
|
5479
5606
|
# </note>
|
5480
5607
|
#
|
@@ -5493,11 +5620,7 @@ module Aws::ECS
|
|
5493
5620
|
# your container instances are launched from the Amazon ECS-optimized
|
5494
5621
|
# AMI version `20190301` or later, then they contain the required
|
5495
5622
|
# versions of the container agent and `ecs-init`. For more information,
|
5496
|
-
# see [Amazon ECS-optimized Linux AMI][1]
|
5497
|
-
# Container Service Developer Guide*.
|
5498
|
-
#
|
5499
|
-
# For tasks using the Fargate launch type, the task or service requires
|
5500
|
-
# platform version 1.3.0 or later.
|
5623
|
+
# see [Amazon ECS-optimized Linux AMI][1]
|
5501
5624
|
#
|
5502
5625
|
#
|
5503
5626
|
#
|
@@ -5952,6 +6075,9 @@ module Aws::ECS
|
|
5952
6075
|
# resp.task_definition.proxy_configuration.properties #=> Array
|
5953
6076
|
# resp.task_definition.proxy_configuration.properties[0].name #=> String
|
5954
6077
|
# resp.task_definition.proxy_configuration.properties[0].value #=> String
|
6078
|
+
# resp.task_definition.registered_at #=> Time
|
6079
|
+
# resp.task_definition.deregistered_at #=> Time
|
6080
|
+
# resp.task_definition.registered_by #=> String
|
5955
6081
|
# resp.tags #=> Array
|
5956
6082
|
# resp.tags[0].key #=> String
|
5957
6083
|
# resp.tags[0].value #=> String
|
@@ -6004,31 +6130,11 @@ module Aws::ECS
|
|
6004
6130
|
# @option params [Array<Types::CapacityProviderStrategyItem>] :capacity_provider_strategy
|
6005
6131
|
# The capacity provider strategy to use for the task.
|
6006
6132
|
#
|
6007
|
-
# A capacity provider strategy consists of one or more capacity
|
6008
|
-
# providers along with the `base` and `weight` to assign to them. A
|
6009
|
-
# capacity provider must be associated with the cluster to be used in a
|
6010
|
-
# capacity provider strategy. The PutClusterCapacityProviders API is
|
6011
|
-
# used to associate a capacity provider with a cluster. Only capacity
|
6012
|
-
# providers with an `ACTIVE` or `UPDATING` status can be used.
|
6013
|
-
#
|
6014
6133
|
# If a `capacityProviderStrategy` is specified, the `launchType`
|
6015
6134
|
# parameter must be omitted. If no `capacityProviderStrategy` or
|
6016
6135
|
# `launchType` is specified, the `defaultCapacityProviderStrategy` for
|
6017
6136
|
# the cluster is used.
|
6018
6137
|
#
|
6019
|
-
# If specifying a capacity provider that uses an Auto Scaling group, the
|
6020
|
-
# capacity provider must already be created. New capacity providers can
|
6021
|
-
# be created with the CreateCapacityProvider API operation.
|
6022
|
-
#
|
6023
|
-
# To use a AWS Fargate capacity provider, specify either the `FARGATE`
|
6024
|
-
# or `FARGATE_SPOT` capacity providers. The AWS Fargate capacity
|
6025
|
-
# providers are available to all accounts and only need to be associated
|
6026
|
-
# with a cluster to be used.
|
6027
|
-
#
|
6028
|
-
# The PutClusterCapacityProviders API operation is used to update the
|
6029
|
-
# list of available capacity providers for a cluster after the cluster
|
6030
|
-
# is created.
|
6031
|
-
#
|
6032
6138
|
# @option params [String] :cluster
|
6033
6139
|
# The short name or full Amazon Resource Name (ARN) of the cluster on
|
6034
6140
|
# which to run your task. If you do not specify a cluster, the default
|
@@ -6047,15 +6153,27 @@ module Aws::ECS
|
|
6047
6153
|
#
|
6048
6154
|
# [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-using-tags.html
|
6049
6155
|
#
|
6156
|
+
# @option params [Boolean] :enable_execute_command
|
6157
|
+
# Whether or not to enable the execute command functionality for the
|
6158
|
+
# containers in this task. If `true`, this enables execute command
|
6159
|
+
# functionality on all containers in the task.
|
6160
|
+
#
|
6050
6161
|
# @option params [String] :group
|
6051
6162
|
# The name of the task group to associate with the task. The default
|
6052
6163
|
# value is the family name of the task definition (for example,
|
6053
6164
|
# family:my-family-name).
|
6054
6165
|
#
|
6055
6166
|
# @option params [String] :launch_type
|
6056
|
-
# The launch type on which to run your task.
|
6057
|
-
#
|
6058
|
-
# Developer Guide*.
|
6167
|
+
# The launch type on which to run your task. The accepted values are
|
6168
|
+
# `FARGATE` and `EC2`. For more information, see [Amazon ECS Launch
|
6169
|
+
# Types][1] in the *Amazon Elastic Container Service Developer Guide*.
|
6170
|
+
#
|
6171
|
+
# When a value of `FARGATE` is specified, your tasks are launched on AWS
|
6172
|
+
# Fargate On-Demand infrastructure. To use Fargate Spot, you must use a
|
6173
|
+
# capacity provider strategy with the `FARGATE_SPOT` capacity provider.
|
6174
|
+
#
|
6175
|
+
# When a value of `EC2` is specified, your tasks are launched on Amazon
|
6176
|
+
# EC2 instances registered to your cluster.
|
6059
6177
|
#
|
6060
6178
|
# If a `launchType` is specified, the `capacityProviderStrategy`
|
6061
6179
|
# parameter must be omitted.
|
@@ -6227,6 +6345,7 @@ module Aws::ECS
|
|
6227
6345
|
# cluster: "String",
|
6228
6346
|
# count: 1,
|
6229
6347
|
# enable_ecs_managed_tags: false,
|
6348
|
+
# enable_execute_command: false,
|
6230
6349
|
# group: "String",
|
6231
6350
|
# launch_type: "EC2", # accepts EC2, FARGATE
|
6232
6351
|
# network_configuration: {
|
@@ -6341,6 +6460,11 @@ module Aws::ECS
|
|
6341
6460
|
# resp.tasks[0].containers[0].network_interfaces[0].private_ipv_4_address #=> String
|
6342
6461
|
# resp.tasks[0].containers[0].network_interfaces[0].ipv6_address #=> String
|
6343
6462
|
# resp.tasks[0].containers[0].health_status #=> String, one of "HEALTHY", "UNHEALTHY", "UNKNOWN"
|
6463
|
+
# resp.tasks[0].containers[0].managed_agents #=> Array
|
6464
|
+
# resp.tasks[0].containers[0].managed_agents[0].last_started_at #=> Time
|
6465
|
+
# resp.tasks[0].containers[0].managed_agents[0].name #=> String, one of "ExecuteCommandAgent"
|
6466
|
+
# resp.tasks[0].containers[0].managed_agents[0].reason #=> String
|
6467
|
+
# resp.tasks[0].containers[0].managed_agents[0].last_status #=> String
|
6344
6468
|
# resp.tasks[0].containers[0].cpu #=> String
|
6345
6469
|
# resp.tasks[0].containers[0].memory #=> String
|
6346
6470
|
# resp.tasks[0].containers[0].memory_reservation #=> String
|
@@ -6349,6 +6473,7 @@ module Aws::ECS
|
|
6349
6473
|
# resp.tasks[0].cpu #=> String
|
6350
6474
|
# resp.tasks[0].created_at #=> Time
|
6351
6475
|
# resp.tasks[0].desired_status #=> String
|
6476
|
+
# resp.tasks[0].enable_execute_command #=> Boolean
|
6352
6477
|
# resp.tasks[0].execution_stopped_at #=> Time
|
6353
6478
|
# resp.tasks[0].group #=> String
|
6354
6479
|
# resp.tasks[0].health_status #=> String, one of "HEALTHY", "UNHEALTHY", "UNKNOWN"
|
@@ -6440,6 +6565,11 @@ module Aws::ECS
|
|
6440
6565
|
#
|
6441
6566
|
# [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-using-tags.html
|
6442
6567
|
#
|
6568
|
+
# @option params [Boolean] :enable_execute_command
|
6569
|
+
# Whether or not the execute command functionality is enabled for the
|
6570
|
+
# task. If `true`, this enables execute command functionality on all
|
6571
|
+
# containers in the task.
|
6572
|
+
#
|
6443
6573
|
# @option params [String] :group
|
6444
6574
|
# The name of the task group to associate with the task. The default
|
6445
6575
|
# value is the family name of the task definition (for example,
|
@@ -6531,6 +6661,7 @@ module Aws::ECS
|
|
6531
6661
|
# cluster: "String",
|
6532
6662
|
# container_instances: ["String"], # required
|
6533
6663
|
# enable_ecs_managed_tags: false,
|
6664
|
+
# enable_execute_command: false,
|
6534
6665
|
# group: "String",
|
6535
6666
|
# network_configuration: {
|
6536
6667
|
# awsvpc_configuration: {
|
@@ -6631,6 +6762,11 @@ module Aws::ECS
|
|
6631
6762
|
# resp.tasks[0].containers[0].network_interfaces[0].private_ipv_4_address #=> String
|
6632
6763
|
# resp.tasks[0].containers[0].network_interfaces[0].ipv6_address #=> String
|
6633
6764
|
# resp.tasks[0].containers[0].health_status #=> String, one of "HEALTHY", "UNHEALTHY", "UNKNOWN"
|
6765
|
+
# resp.tasks[0].containers[0].managed_agents #=> Array
|
6766
|
+
# resp.tasks[0].containers[0].managed_agents[0].last_started_at #=> Time
|
6767
|
+
# resp.tasks[0].containers[0].managed_agents[0].name #=> String, one of "ExecuteCommandAgent"
|
6768
|
+
# resp.tasks[0].containers[0].managed_agents[0].reason #=> String
|
6769
|
+
# resp.tasks[0].containers[0].managed_agents[0].last_status #=> String
|
6634
6770
|
# resp.tasks[0].containers[0].cpu #=> String
|
6635
6771
|
# resp.tasks[0].containers[0].memory #=> String
|
6636
6772
|
# resp.tasks[0].containers[0].memory_reservation #=> String
|
@@ -6639,6 +6775,7 @@ module Aws::ECS
|
|
6639
6775
|
# resp.tasks[0].cpu #=> String
|
6640
6776
|
# resp.tasks[0].created_at #=> Time
|
6641
6777
|
# resp.tasks[0].desired_status #=> String
|
6778
|
+
# resp.tasks[0].enable_execute_command #=> Boolean
|
6642
6779
|
# resp.tasks[0].execution_stopped_at #=> Time
|
6643
6780
|
# resp.tasks[0].group #=> String
|
6644
6781
|
# resp.tasks[0].health_status #=> String, one of "HEALTHY", "UNHEALTHY", "UNKNOWN"
|
@@ -6788,6 +6925,11 @@ module Aws::ECS
|
|
6788
6925
|
# resp.task.containers[0].network_interfaces[0].private_ipv_4_address #=> String
|
6789
6926
|
# resp.task.containers[0].network_interfaces[0].ipv6_address #=> String
|
6790
6927
|
# resp.task.containers[0].health_status #=> String, one of "HEALTHY", "UNHEALTHY", "UNKNOWN"
|
6928
|
+
# resp.task.containers[0].managed_agents #=> Array
|
6929
|
+
# resp.task.containers[0].managed_agents[0].last_started_at #=> Time
|
6930
|
+
# resp.task.containers[0].managed_agents[0].name #=> String, one of "ExecuteCommandAgent"
|
6931
|
+
# resp.task.containers[0].managed_agents[0].reason #=> String
|
6932
|
+
# resp.task.containers[0].managed_agents[0].last_status #=> String
|
6791
6933
|
# resp.task.containers[0].cpu #=> String
|
6792
6934
|
# resp.task.containers[0].memory #=> String
|
6793
6935
|
# resp.task.containers[0].memory_reservation #=> String
|
@@ -6796,6 +6938,7 @@ module Aws::ECS
|
|
6796
6938
|
# resp.task.cpu #=> String
|
6797
6939
|
# resp.task.created_at #=> Time
|
6798
6940
|
# resp.task.desired_status #=> String
|
6941
|
+
# resp.task.enable_execute_command #=> Boolean
|
6799
6942
|
# resp.task.execution_stopped_at #=> Time
|
6800
6943
|
# resp.task.group #=> String
|
6801
6944
|
# resp.task.health_status #=> String, one of "HEALTHY", "UNHEALTHY", "UNKNOWN"
|
@@ -6991,6 +7134,9 @@ module Aws::ECS
|
|
6991
7134
|
# @option params [Array<Types::AttachmentStateChange>] :attachments
|
6992
7135
|
# Any attachments associated with the state change request.
|
6993
7136
|
#
|
7137
|
+
# @option params [Array<Types::ManagedAgentStateChange>] :managed_agents
|
7138
|
+
# The details for the managed agent associated with the task.
|
7139
|
+
#
|
6994
7140
|
# @option params [Time,DateTime,Date,Integer,String] :pull_started_at
|
6995
7141
|
# The Unix timestamp for when the container image pull began.
|
6996
7142
|
#
|
@@ -7035,6 +7181,14 @@ module Aws::ECS
|
|
7035
7181
|
# status: "String", # required
|
7036
7182
|
# },
|
7037
7183
|
# ],
|
7184
|
+
# managed_agents: [
|
7185
|
+
# {
|
7186
|
+
# container_name: "String", # required
|
7187
|
+
# managed_agent_name: "ExecuteCommandAgent", # required, accepts ExecuteCommandAgent
|
7188
|
+
# status: "String", # required
|
7189
|
+
# reason: "String",
|
7190
|
+
# },
|
7191
|
+
# ],
|
7038
7192
|
# pull_started_at: Time.now,
|
7039
7193
|
# pull_stopped_at: Time.now,
|
7040
7194
|
# execution_stopped_at: Time.now,
|
@@ -7178,6 +7332,151 @@ module Aws::ECS
|
|
7178
7332
|
req.send_request(options)
|
7179
7333
|
end
|
7180
7334
|
|
7335
|
+
# Modifies the parameters for a capacity provider.
|
7336
|
+
#
|
7337
|
+
# @option params [required, String] :name
|
7338
|
+
# The name of the capacity provider to update.
|
7339
|
+
#
|
7340
|
+
# @option params [required, Types::AutoScalingGroupProviderUpdate] :auto_scaling_group_provider
|
7341
|
+
# An object representing the parameters to update for the Auto Scaling
|
7342
|
+
# group capacity provider.
|
7343
|
+
#
|
7344
|
+
# @return [Types::UpdateCapacityProviderResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
7345
|
+
#
|
7346
|
+
# * {Types::UpdateCapacityProviderResponse#capacity_provider #capacity_provider} => Types::CapacityProvider
|
7347
|
+
#
|
7348
|
+
# @example Request syntax with placeholder values
|
7349
|
+
#
|
7350
|
+
# resp = client.update_capacity_provider({
|
7351
|
+
# name: "String", # required
|
7352
|
+
# auto_scaling_group_provider: { # required
|
7353
|
+
# managed_scaling: {
|
7354
|
+
# status: "ENABLED", # accepts ENABLED, DISABLED
|
7355
|
+
# target_capacity: 1,
|
7356
|
+
# minimum_scaling_step_size: 1,
|
7357
|
+
# maximum_scaling_step_size: 1,
|
7358
|
+
# instance_warmup_period: 1,
|
7359
|
+
# },
|
7360
|
+
# managed_termination_protection: "ENABLED", # accepts ENABLED, DISABLED
|
7361
|
+
# },
|
7362
|
+
# })
|
7363
|
+
#
|
7364
|
+
# @example Response structure
|
7365
|
+
#
|
7366
|
+
# resp.capacity_provider.capacity_provider_arn #=> String
|
7367
|
+
# resp.capacity_provider.name #=> String
|
7368
|
+
# resp.capacity_provider.status #=> String, one of "ACTIVE", "INACTIVE"
|
7369
|
+
# resp.capacity_provider.auto_scaling_group_provider.auto_scaling_group_arn #=> String
|
7370
|
+
# resp.capacity_provider.auto_scaling_group_provider.managed_scaling.status #=> String, one of "ENABLED", "DISABLED"
|
7371
|
+
# resp.capacity_provider.auto_scaling_group_provider.managed_scaling.target_capacity #=> Integer
|
7372
|
+
# resp.capacity_provider.auto_scaling_group_provider.managed_scaling.minimum_scaling_step_size #=> Integer
|
7373
|
+
# resp.capacity_provider.auto_scaling_group_provider.managed_scaling.maximum_scaling_step_size #=> Integer
|
7374
|
+
# resp.capacity_provider.auto_scaling_group_provider.managed_scaling.instance_warmup_period #=> Integer
|
7375
|
+
# resp.capacity_provider.auto_scaling_group_provider.managed_termination_protection #=> String, one of "ENABLED", "DISABLED"
|
7376
|
+
# resp.capacity_provider.update_status #=> String, one of "DELETE_IN_PROGRESS", "DELETE_COMPLETE", "DELETE_FAILED", "UPDATE_IN_PROGRESS", "UPDATE_COMPLETE", "UPDATE_FAILED"
|
7377
|
+
# resp.capacity_provider.update_status_reason #=> String
|
7378
|
+
# resp.capacity_provider.tags #=> Array
|
7379
|
+
# resp.capacity_provider.tags[0].key #=> String
|
7380
|
+
# resp.capacity_provider.tags[0].value #=> String
|
7381
|
+
#
|
7382
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/UpdateCapacityProvider AWS API Documentation
|
7383
|
+
#
|
7384
|
+
# @overload update_capacity_provider(params = {})
|
7385
|
+
# @param [Hash] params ({})
|
7386
|
+
def update_capacity_provider(params = {}, options = {})
|
7387
|
+
req = build_request(:update_capacity_provider, params)
|
7388
|
+
req.send_request(options)
|
7389
|
+
end
|
7390
|
+
|
7391
|
+
# Updates the cluster.
|
7392
|
+
#
|
7393
|
+
# @option params [required, String] :cluster
|
7394
|
+
# The name of the cluster to modify the settings for.
|
7395
|
+
#
|
7396
|
+
# @option params [Array<Types::ClusterSetting>] :settings
|
7397
|
+
# The cluster settings for your cluster.
|
7398
|
+
#
|
7399
|
+
# @option params [Types::ClusterConfiguration] :configuration
|
7400
|
+
# The execute command configuration for the cluster.
|
7401
|
+
#
|
7402
|
+
# @return [Types::UpdateClusterResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
7403
|
+
#
|
7404
|
+
# * {Types::UpdateClusterResponse#cluster #cluster} => Types::Cluster
|
7405
|
+
#
|
7406
|
+
# @example Request syntax with placeholder values
|
7407
|
+
#
|
7408
|
+
# resp = client.update_cluster({
|
7409
|
+
# cluster: "String", # required
|
7410
|
+
# settings: [
|
7411
|
+
# {
|
7412
|
+
# name: "containerInsights", # accepts containerInsights
|
7413
|
+
# value: "String",
|
7414
|
+
# },
|
7415
|
+
# ],
|
7416
|
+
# configuration: {
|
7417
|
+
# execute_command_configuration: {
|
7418
|
+
# kms_key_id: "String",
|
7419
|
+
# logging: "NONE", # accepts NONE, DEFAULT, OVERRIDE
|
7420
|
+
# log_configuration: {
|
7421
|
+
# cloud_watch_log_group_name: "String",
|
7422
|
+
# cloud_watch_encryption_enabled: false,
|
7423
|
+
# s3_bucket_name: "String",
|
7424
|
+
# s3_encryption_enabled: false,
|
7425
|
+
# s3_key_prefix: "String",
|
7426
|
+
# },
|
7427
|
+
# },
|
7428
|
+
# },
|
7429
|
+
# })
|
7430
|
+
#
|
7431
|
+
# @example Response structure
|
7432
|
+
#
|
7433
|
+
# resp.cluster.cluster_arn #=> String
|
7434
|
+
# resp.cluster.cluster_name #=> String
|
7435
|
+
# resp.cluster.configuration.execute_command_configuration.kms_key_id #=> String
|
7436
|
+
# resp.cluster.configuration.execute_command_configuration.logging #=> String, one of "NONE", "DEFAULT", "OVERRIDE"
|
7437
|
+
# resp.cluster.configuration.execute_command_configuration.log_configuration.cloud_watch_log_group_name #=> String
|
7438
|
+
# resp.cluster.configuration.execute_command_configuration.log_configuration.cloud_watch_encryption_enabled #=> Boolean
|
7439
|
+
# resp.cluster.configuration.execute_command_configuration.log_configuration.s3_bucket_name #=> String
|
7440
|
+
# resp.cluster.configuration.execute_command_configuration.log_configuration.s3_encryption_enabled #=> Boolean
|
7441
|
+
# resp.cluster.configuration.execute_command_configuration.log_configuration.s3_key_prefix #=> String
|
7442
|
+
# resp.cluster.status #=> String
|
7443
|
+
# resp.cluster.registered_container_instances_count #=> Integer
|
7444
|
+
# resp.cluster.running_tasks_count #=> Integer
|
7445
|
+
# resp.cluster.pending_tasks_count #=> Integer
|
7446
|
+
# resp.cluster.active_services_count #=> Integer
|
7447
|
+
# resp.cluster.statistics #=> Array
|
7448
|
+
# resp.cluster.statistics[0].name #=> String
|
7449
|
+
# resp.cluster.statistics[0].value #=> String
|
7450
|
+
# resp.cluster.tags #=> Array
|
7451
|
+
# resp.cluster.tags[0].key #=> String
|
7452
|
+
# resp.cluster.tags[0].value #=> String
|
7453
|
+
# resp.cluster.settings #=> Array
|
7454
|
+
# resp.cluster.settings[0].name #=> String, one of "containerInsights"
|
7455
|
+
# resp.cluster.settings[0].value #=> String
|
7456
|
+
# resp.cluster.capacity_providers #=> Array
|
7457
|
+
# resp.cluster.capacity_providers[0] #=> String
|
7458
|
+
# resp.cluster.default_capacity_provider_strategy #=> Array
|
7459
|
+
# resp.cluster.default_capacity_provider_strategy[0].capacity_provider #=> String
|
7460
|
+
# resp.cluster.default_capacity_provider_strategy[0].weight #=> Integer
|
7461
|
+
# resp.cluster.default_capacity_provider_strategy[0].base #=> Integer
|
7462
|
+
# resp.cluster.attachments #=> Array
|
7463
|
+
# resp.cluster.attachments[0].id #=> String
|
7464
|
+
# resp.cluster.attachments[0].type #=> String
|
7465
|
+
# resp.cluster.attachments[0].status #=> String
|
7466
|
+
# resp.cluster.attachments[0].details #=> Array
|
7467
|
+
# resp.cluster.attachments[0].details[0].name #=> String
|
7468
|
+
# resp.cluster.attachments[0].details[0].value #=> String
|
7469
|
+
# resp.cluster.attachments_status #=> String
|
7470
|
+
#
|
7471
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/UpdateCluster AWS API Documentation
|
7472
|
+
#
|
7473
|
+
# @overload update_cluster(params = {})
|
7474
|
+
# @param [Hash] params ({})
|
7475
|
+
def update_cluster(params = {}, options = {})
|
7476
|
+
req = build_request(:update_cluster, params)
|
7477
|
+
req.send_request(options)
|
7478
|
+
end
|
7479
|
+
|
7181
7480
|
# Modifies the settings to use for a cluster.
|
7182
7481
|
#
|
7183
7482
|
# @option params [required, String] :cluster
|
@@ -7209,6 +7508,13 @@ module Aws::ECS
|
|
7209
7508
|
#
|
7210
7509
|
# resp.cluster.cluster_arn #=> String
|
7211
7510
|
# resp.cluster.cluster_name #=> String
|
7511
|
+
# resp.cluster.configuration.execute_command_configuration.kms_key_id #=> String
|
7512
|
+
# resp.cluster.configuration.execute_command_configuration.logging #=> String, one of "NONE", "DEFAULT", "OVERRIDE"
|
7513
|
+
# resp.cluster.configuration.execute_command_configuration.log_configuration.cloud_watch_log_group_name #=> String
|
7514
|
+
# resp.cluster.configuration.execute_command_configuration.log_configuration.cloud_watch_encryption_enabled #=> Boolean
|
7515
|
+
# resp.cluster.configuration.execute_command_configuration.log_configuration.s3_bucket_name #=> String
|
7516
|
+
# resp.cluster.configuration.execute_command_configuration.log_configuration.s3_encryption_enabled #=> Boolean
|
7517
|
+
# resp.cluster.configuration.execute_command_configuration.log_configuration.s3_key_prefix #=> String
|
7212
7518
|
# resp.cluster.status #=> String
|
7213
7519
|
# resp.cluster.registered_container_instances_count #=> Integer
|
7214
7520
|
# resp.cluster.running_tasks_count #=> Integer
|
@@ -7718,6 +8024,13 @@ module Aws::ECS
|
|
7718
8024
|
# prevent the ECS service scheduler from marking tasks as unhealthy and
|
7719
8025
|
# stopping them before they have time to come up.
|
7720
8026
|
#
|
8027
|
+
# @option params [Boolean] :enable_execute_command
|
8028
|
+
# If `true`, this enables execute command functionality on all task
|
8029
|
+
# containers.
|
8030
|
+
#
|
8031
|
+
# If you do not want to override the value that was set when the service
|
8032
|
+
# was created, you can set this to `null` when performing this action.
|
8033
|
+
#
|
7721
8034
|
# @return [Types::UpdateServiceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
7722
8035
|
#
|
7723
8036
|
# * {Types::UpdateServiceResponse#service #service} => Types::Service
|
@@ -7764,6 +8077,10 @@ module Aws::ECS
|
|
7764
8077
|
# },
|
7765
8078
|
# ],
|
7766
8079
|
# deployment_configuration: {
|
8080
|
+
# deployment_circuit_breaker: {
|
8081
|
+
# enable: false, # required
|
8082
|
+
# rollback: false, # required
|
8083
|
+
# },
|
7767
8084
|
# maximum_percent: 1,
|
7768
8085
|
# minimum_healthy_percent: 1,
|
7769
8086
|
# },
|
@@ -7789,6 +8106,7 @@ module Aws::ECS
|
|
7789
8106
|
# platform_version: "String",
|
7790
8107
|
# force_new_deployment: false,
|
7791
8108
|
# health_check_grace_period_seconds: 1,
|
8109
|
+
# enable_execute_command: false,
|
7792
8110
|
# })
|
7793
8111
|
#
|
7794
8112
|
# @example Response structure
|
@@ -7817,6 +8135,8 @@ module Aws::ECS
|
|
7817
8135
|
# resp.service.capacity_provider_strategy[0].base #=> Integer
|
7818
8136
|
# resp.service.platform_version #=> String
|
7819
8137
|
# resp.service.task_definition #=> String
|
8138
|
+
# resp.service.deployment_configuration.deployment_circuit_breaker.enable #=> Boolean
|
8139
|
+
# resp.service.deployment_configuration.deployment_circuit_breaker.rollback #=> Boolean
|
7820
8140
|
# resp.service.deployment_configuration.maximum_percent #=> Integer
|
7821
8141
|
# resp.service.deployment_configuration.minimum_healthy_percent #=> Integer
|
7822
8142
|
# resp.service.task_sets #=> Array
|
@@ -7868,6 +8188,7 @@ module Aws::ECS
|
|
7868
8188
|
# resp.service.deployments[0].desired_count #=> Integer
|
7869
8189
|
# resp.service.deployments[0].pending_count #=> Integer
|
7870
8190
|
# resp.service.deployments[0].running_count #=> Integer
|
8191
|
+
# resp.service.deployments[0].failed_tasks #=> Integer
|
7871
8192
|
# resp.service.deployments[0].created_at #=> Time
|
7872
8193
|
# resp.service.deployments[0].updated_at #=> Time
|
7873
8194
|
# resp.service.deployments[0].capacity_provider_strategy #=> Array
|
@@ -7881,6 +8202,8 @@ module Aws::ECS
|
|
7881
8202
|
# resp.service.deployments[0].network_configuration.awsvpc_configuration.security_groups #=> Array
|
7882
8203
|
# resp.service.deployments[0].network_configuration.awsvpc_configuration.security_groups[0] #=> String
|
7883
8204
|
# resp.service.deployments[0].network_configuration.awsvpc_configuration.assign_public_ip #=> String, one of "ENABLED", "DISABLED"
|
8205
|
+
# resp.service.deployments[0].rollout_state #=> String, one of "COMPLETED", "FAILED", "IN_PROGRESS"
|
8206
|
+
# resp.service.deployments[0].rollout_state_reason #=> String
|
7884
8207
|
# resp.service.role_arn #=> String
|
7885
8208
|
# resp.service.events #=> Array
|
7886
8209
|
# resp.service.events[0].id #=> String
|
@@ -7907,6 +8230,7 @@ module Aws::ECS
|
|
7907
8230
|
# resp.service.created_by #=> String
|
7908
8231
|
# resp.service.enable_ecs_managed_tags #=> Boolean
|
7909
8232
|
# resp.service.propagate_tags #=> String, one of "TASK_DEFINITION", "SERVICE"
|
8233
|
+
# resp.service.enable_execute_command #=> Boolean
|
7910
8234
|
#
|
7911
8235
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/UpdateService AWS API Documentation
|
7912
8236
|
#
|
@@ -8112,7 +8436,7 @@ module Aws::ECS
|
|
8112
8436
|
params: params,
|
8113
8437
|
config: config)
|
8114
8438
|
context[:gem_name] = 'aws-sdk-ecs'
|
8115
|
-
context[:gem_version] = '1.
|
8439
|
+
context[:gem_version] = '1.76.0'
|
8116
8440
|
Seahorse::Client::Request.new(handlers, context)
|
8117
8441
|
end
|
8118
8442
|
|