aws-sdk-ecs 1.72.0 → 1.77.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 +470 -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 +403 -114
- data/lib/aws-sdk-ecs/client_api.rb +125 -1
- data/lib/aws-sdk-ecs/customizations.rb +1 -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 +833 -243
- data/lib/aws-sdk-ecs/waiters.rb +1 -1
- metadata +11 -9
@@ -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
|
|
@@ -43,6 +43,7 @@ module Aws::ECS
|
|
43
43
|
CapacityProviders = Shapes::ListShape.new(name: 'CapacityProviders')
|
44
44
|
ClientException = Shapes::StructureShape.new(name: 'ClientException')
|
45
45
|
Cluster = Shapes::StructureShape.new(name: 'Cluster')
|
46
|
+
ClusterConfiguration = Shapes::StructureShape.new(name: 'ClusterConfiguration')
|
46
47
|
ClusterContainsContainerInstancesException = Shapes::StructureShape.new(name: 'ClusterContainsContainerInstancesException')
|
47
48
|
ClusterContainsServicesException = Shapes::StructureShape.new(name: 'ClusterContainsServicesException')
|
48
49
|
ClusterContainsTasksException = Shapes::StructureShape.new(name: 'ClusterContainsTasksException')
|
@@ -135,6 +136,12 @@ module Aws::ECS
|
|
135
136
|
EnvironmentFileType = Shapes::StringShape.new(name: 'EnvironmentFileType')
|
136
137
|
EnvironmentFiles = Shapes::ListShape.new(name: 'EnvironmentFiles')
|
137
138
|
EnvironmentVariables = Shapes::ListShape.new(name: 'EnvironmentVariables')
|
139
|
+
EphemeralStorage = Shapes::StructureShape.new(name: 'EphemeralStorage')
|
140
|
+
ExecuteCommandConfiguration = Shapes::StructureShape.new(name: 'ExecuteCommandConfiguration')
|
141
|
+
ExecuteCommandLogConfiguration = Shapes::StructureShape.new(name: 'ExecuteCommandLogConfiguration')
|
142
|
+
ExecuteCommandLogging = Shapes::StringShape.new(name: 'ExecuteCommandLogging')
|
143
|
+
ExecuteCommandRequest = Shapes::StructureShape.new(name: 'ExecuteCommandRequest')
|
144
|
+
ExecuteCommandResponse = Shapes::StructureShape.new(name: 'ExecuteCommandResponse')
|
138
145
|
FSxWindowsFileServerAuthorizationConfig = Shapes::StructureShape.new(name: 'FSxWindowsFileServerAuthorizationConfig')
|
139
146
|
FSxWindowsFileServerVolumeConfiguration = Shapes::StructureShape.new(name: 'FSxWindowsFileServerVolumeConfiguration')
|
140
147
|
Failure = Shapes::StructureShape.new(name: 'Failure')
|
@@ -184,6 +191,11 @@ module Aws::ECS
|
|
184
191
|
LogConfigurationOptionsMap = Shapes::MapShape.new(name: 'LogConfigurationOptionsMap')
|
185
192
|
LogDriver = Shapes::StringShape.new(name: 'LogDriver')
|
186
193
|
Long = Shapes::IntegerShape.new(name: 'Long')
|
194
|
+
ManagedAgent = Shapes::StructureShape.new(name: 'ManagedAgent')
|
195
|
+
ManagedAgentName = Shapes::StringShape.new(name: 'ManagedAgentName')
|
196
|
+
ManagedAgentStateChange = Shapes::StructureShape.new(name: 'ManagedAgentStateChange')
|
197
|
+
ManagedAgentStateChanges = Shapes::ListShape.new(name: 'ManagedAgentStateChanges')
|
198
|
+
ManagedAgents = Shapes::ListShape.new(name: 'ManagedAgents')
|
187
199
|
ManagedScaling = Shapes::StructureShape.new(name: 'ManagedScaling')
|
188
200
|
ManagedScalingInstanceWarmupPeriod = Shapes::IntegerShape.new(name: 'ManagedScalingInstanceWarmupPeriod')
|
189
201
|
ManagedScalingStatus = Shapes::StringShape.new(name: 'ManagedScalingStatus')
|
@@ -247,6 +259,7 @@ module Aws::ECS
|
|
247
259
|
Scope = Shapes::StringShape.new(name: 'Scope')
|
248
260
|
Secret = Shapes::StructureShape.new(name: 'Secret')
|
249
261
|
SecretList = Shapes::ListShape.new(name: 'SecretList')
|
262
|
+
SensitiveString = Shapes::StringShape.new(name: 'SensitiveString')
|
250
263
|
ServerException = Shapes::StructureShape.new(name: 'ServerException')
|
251
264
|
Service = Shapes::StructureShape.new(name: 'Service')
|
252
265
|
ServiceEvent = Shapes::StructureShape.new(name: 'ServiceEvent')
|
@@ -258,6 +271,7 @@ module Aws::ECS
|
|
258
271
|
ServiceRegistries = Shapes::ListShape.new(name: 'ServiceRegistries')
|
259
272
|
ServiceRegistry = Shapes::StructureShape.new(name: 'ServiceRegistry')
|
260
273
|
Services = Shapes::ListShape.new(name: 'Services')
|
274
|
+
Session = Shapes::StructureShape.new(name: 'Session')
|
261
275
|
Setting = Shapes::StructureShape.new(name: 'Setting')
|
262
276
|
SettingName = Shapes::StringShape.new(name: 'SettingName')
|
263
277
|
Settings = Shapes::ListShape.new(name: 'Settings')
|
@@ -286,6 +300,7 @@ module Aws::ECS
|
|
286
300
|
TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
|
287
301
|
TagValue = Shapes::StringShape.new(name: 'TagValue')
|
288
302
|
Tags = Shapes::ListShape.new(name: 'Tags')
|
303
|
+
TargetNotConnectedException = Shapes::StructureShape.new(name: 'TargetNotConnectedException')
|
289
304
|
TargetNotFoundException = Shapes::StructureShape.new(name: 'TargetNotFoundException')
|
290
305
|
TargetType = Shapes::StringShape.new(name: 'TargetType')
|
291
306
|
Task = Shapes::StructureShape.new(name: 'Task')
|
@@ -319,6 +334,8 @@ module Aws::ECS
|
|
319
334
|
UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
|
320
335
|
UpdateCapacityProviderRequest = Shapes::StructureShape.new(name: 'UpdateCapacityProviderRequest')
|
321
336
|
UpdateCapacityProviderResponse = Shapes::StructureShape.new(name: 'UpdateCapacityProviderResponse')
|
337
|
+
UpdateClusterRequest = Shapes::StructureShape.new(name: 'UpdateClusterRequest')
|
338
|
+
UpdateClusterResponse = Shapes::StructureShape.new(name: 'UpdateClusterResponse')
|
322
339
|
UpdateClusterSettingsRequest = Shapes::StructureShape.new(name: 'UpdateClusterSettingsRequest')
|
323
340
|
UpdateClusterSettingsResponse = Shapes::StructureShape.new(name: 'UpdateClusterSettingsResponse')
|
324
341
|
UpdateContainerAgentRequest = Shapes::StructureShape.new(name: 'UpdateContainerAgentRequest')
|
@@ -407,6 +424,7 @@ module Aws::ECS
|
|
407
424
|
|
408
425
|
Cluster.add_member(:cluster_arn, Shapes::ShapeRef.new(shape: String, location_name: "clusterArn"))
|
409
426
|
Cluster.add_member(:cluster_name, Shapes::ShapeRef.new(shape: String, location_name: "clusterName"))
|
427
|
+
Cluster.add_member(:configuration, Shapes::ShapeRef.new(shape: ClusterConfiguration, location_name: "configuration"))
|
410
428
|
Cluster.add_member(:status, Shapes::ShapeRef.new(shape: String, location_name: "status"))
|
411
429
|
Cluster.add_member(:registered_container_instances_count, Shapes::ShapeRef.new(shape: Integer, location_name: "registeredContainerInstancesCount"))
|
412
430
|
Cluster.add_member(:running_tasks_count, Shapes::ShapeRef.new(shape: Integer, location_name: "runningTasksCount"))
|
@@ -421,6 +439,9 @@ module Aws::ECS
|
|
421
439
|
Cluster.add_member(:attachments_status, Shapes::ShapeRef.new(shape: String, location_name: "attachmentsStatus"))
|
422
440
|
Cluster.struct_class = Types::Cluster
|
423
441
|
|
442
|
+
ClusterConfiguration.add_member(:execute_command_configuration, Shapes::ShapeRef.new(shape: ExecuteCommandConfiguration, location_name: "executeCommandConfiguration"))
|
443
|
+
ClusterConfiguration.struct_class = Types::ClusterConfiguration
|
444
|
+
|
424
445
|
ClusterContainsContainerInstancesException.struct_class = Types::ClusterContainsContainerInstancesException
|
425
446
|
|
426
447
|
ClusterContainsServicesException.struct_class = Types::ClusterContainsServicesException
|
@@ -453,6 +474,7 @@ module Aws::ECS
|
|
453
474
|
Container.add_member(:network_bindings, Shapes::ShapeRef.new(shape: NetworkBindings, location_name: "networkBindings"))
|
454
475
|
Container.add_member(:network_interfaces, Shapes::ShapeRef.new(shape: NetworkInterfaces, location_name: "networkInterfaces"))
|
455
476
|
Container.add_member(:health_status, Shapes::ShapeRef.new(shape: HealthStatus, location_name: "healthStatus"))
|
477
|
+
Container.add_member(:managed_agents, Shapes::ShapeRef.new(shape: ManagedAgents, location_name: "managedAgents"))
|
456
478
|
Container.add_member(:cpu, Shapes::ShapeRef.new(shape: String, location_name: "cpu"))
|
457
479
|
Container.add_member(:memory, Shapes::ShapeRef.new(shape: String, location_name: "memory"))
|
458
480
|
Container.add_member(:memory_reservation, Shapes::ShapeRef.new(shape: String, location_name: "memoryReservation"))
|
@@ -567,6 +589,7 @@ module Aws::ECS
|
|
567
589
|
CreateClusterRequest.add_member(:cluster_name, Shapes::ShapeRef.new(shape: String, location_name: "clusterName"))
|
568
590
|
CreateClusterRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
|
569
591
|
CreateClusterRequest.add_member(:settings, Shapes::ShapeRef.new(shape: ClusterSettings, location_name: "settings"))
|
592
|
+
CreateClusterRequest.add_member(:configuration, Shapes::ShapeRef.new(shape: ClusterConfiguration, location_name: "configuration"))
|
570
593
|
CreateClusterRequest.add_member(:capacity_providers, Shapes::ShapeRef.new(shape: StringList, location_name: "capacityProviders"))
|
571
594
|
CreateClusterRequest.add_member(:default_capacity_provider_strategy, Shapes::ShapeRef.new(shape: CapacityProviderStrategy, location_name: "defaultCapacityProviderStrategy"))
|
572
595
|
CreateClusterRequest.struct_class = Types::CreateClusterRequest
|
@@ -595,6 +618,7 @@ module Aws::ECS
|
|
595
618
|
CreateServiceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
|
596
619
|
CreateServiceRequest.add_member(:enable_ecs_managed_tags, Shapes::ShapeRef.new(shape: Boolean, location_name: "enableECSManagedTags"))
|
597
620
|
CreateServiceRequest.add_member(:propagate_tags, Shapes::ShapeRef.new(shape: PropagateTags, location_name: "propagateTags"))
|
621
|
+
CreateServiceRequest.add_member(:enable_execute_command, Shapes::ShapeRef.new(shape: Boolean, location_name: "enableExecuteCommand"))
|
598
622
|
CreateServiceRequest.struct_class = Types::CreateServiceRequest
|
599
623
|
|
600
624
|
CreateServiceResponse.add_member(:service, Shapes::ShapeRef.new(shape: Service, location_name: "service"))
|
@@ -816,6 +840,36 @@ module Aws::ECS
|
|
816
840
|
|
817
841
|
EnvironmentVariables.member = Shapes::ShapeRef.new(shape: KeyValuePair)
|
818
842
|
|
843
|
+
EphemeralStorage.add_member(:size_in_gi_b, Shapes::ShapeRef.new(shape: Integer, required: true, location_name: "sizeInGiB"))
|
844
|
+
EphemeralStorage.struct_class = Types::EphemeralStorage
|
845
|
+
|
846
|
+
ExecuteCommandConfiguration.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: String, location_name: "kmsKeyId"))
|
847
|
+
ExecuteCommandConfiguration.add_member(:logging, Shapes::ShapeRef.new(shape: ExecuteCommandLogging, location_name: "logging"))
|
848
|
+
ExecuteCommandConfiguration.add_member(:log_configuration, Shapes::ShapeRef.new(shape: ExecuteCommandLogConfiguration, location_name: "logConfiguration"))
|
849
|
+
ExecuteCommandConfiguration.struct_class = Types::ExecuteCommandConfiguration
|
850
|
+
|
851
|
+
ExecuteCommandLogConfiguration.add_member(:cloud_watch_log_group_name, Shapes::ShapeRef.new(shape: String, location_name: "cloudWatchLogGroupName"))
|
852
|
+
ExecuteCommandLogConfiguration.add_member(:cloud_watch_encryption_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "cloudWatchEncryptionEnabled"))
|
853
|
+
ExecuteCommandLogConfiguration.add_member(:s3_bucket_name, Shapes::ShapeRef.new(shape: String, location_name: "s3BucketName"))
|
854
|
+
ExecuteCommandLogConfiguration.add_member(:s3_encryption_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "s3EncryptionEnabled"))
|
855
|
+
ExecuteCommandLogConfiguration.add_member(:s3_key_prefix, Shapes::ShapeRef.new(shape: String, location_name: "s3KeyPrefix"))
|
856
|
+
ExecuteCommandLogConfiguration.struct_class = Types::ExecuteCommandLogConfiguration
|
857
|
+
|
858
|
+
ExecuteCommandRequest.add_member(:cluster, Shapes::ShapeRef.new(shape: String, location_name: "cluster"))
|
859
|
+
ExecuteCommandRequest.add_member(:container, Shapes::ShapeRef.new(shape: String, location_name: "container"))
|
860
|
+
ExecuteCommandRequest.add_member(:command, Shapes::ShapeRef.new(shape: String, required: true, location_name: "command"))
|
861
|
+
ExecuteCommandRequest.add_member(:interactive, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "interactive"))
|
862
|
+
ExecuteCommandRequest.add_member(:task, Shapes::ShapeRef.new(shape: String, required: true, location_name: "task"))
|
863
|
+
ExecuteCommandRequest.struct_class = Types::ExecuteCommandRequest
|
864
|
+
|
865
|
+
ExecuteCommandResponse.add_member(:cluster_arn, Shapes::ShapeRef.new(shape: String, location_name: "clusterArn"))
|
866
|
+
ExecuteCommandResponse.add_member(:container_arn, Shapes::ShapeRef.new(shape: String, location_name: "containerArn"))
|
867
|
+
ExecuteCommandResponse.add_member(:container_name, Shapes::ShapeRef.new(shape: String, location_name: "containerName"))
|
868
|
+
ExecuteCommandResponse.add_member(:interactive, Shapes::ShapeRef.new(shape: Boolean, location_name: "interactive"))
|
869
|
+
ExecuteCommandResponse.add_member(:session, Shapes::ShapeRef.new(shape: Session, location_name: "session"))
|
870
|
+
ExecuteCommandResponse.add_member(:task_arn, Shapes::ShapeRef.new(shape: String, location_name: "taskArn"))
|
871
|
+
ExecuteCommandResponse.struct_class = Types::ExecuteCommandResponse
|
872
|
+
|
819
873
|
FSxWindowsFileServerAuthorizationConfig.add_member(:credentials_parameter, Shapes::ShapeRef.new(shape: String, required: true, location_name: "credentialsParameter"))
|
820
874
|
FSxWindowsFileServerAuthorizationConfig.add_member(:domain, Shapes::ShapeRef.new(shape: String, required: true, location_name: "domain"))
|
821
875
|
FSxWindowsFileServerAuthorizationConfig.struct_class = Types::FSxWindowsFileServerAuthorizationConfig
|
@@ -1002,6 +1056,22 @@ module Aws::ECS
|
|
1002
1056
|
LogConfigurationOptionsMap.key = Shapes::ShapeRef.new(shape: String)
|
1003
1057
|
LogConfigurationOptionsMap.value = Shapes::ShapeRef.new(shape: String)
|
1004
1058
|
|
1059
|
+
ManagedAgent.add_member(:last_started_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "lastStartedAt"))
|
1060
|
+
ManagedAgent.add_member(:name, Shapes::ShapeRef.new(shape: ManagedAgentName, location_name: "name"))
|
1061
|
+
ManagedAgent.add_member(:reason, Shapes::ShapeRef.new(shape: String, location_name: "reason"))
|
1062
|
+
ManagedAgent.add_member(:last_status, Shapes::ShapeRef.new(shape: String, location_name: "lastStatus"))
|
1063
|
+
ManagedAgent.struct_class = Types::ManagedAgent
|
1064
|
+
|
1065
|
+
ManagedAgentStateChange.add_member(:container_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "containerName"))
|
1066
|
+
ManagedAgentStateChange.add_member(:managed_agent_name, Shapes::ShapeRef.new(shape: ManagedAgentName, required: true, location_name: "managedAgentName"))
|
1067
|
+
ManagedAgentStateChange.add_member(:status, Shapes::ShapeRef.new(shape: String, required: true, location_name: "status"))
|
1068
|
+
ManagedAgentStateChange.add_member(:reason, Shapes::ShapeRef.new(shape: String, location_name: "reason"))
|
1069
|
+
ManagedAgentStateChange.struct_class = Types::ManagedAgentStateChange
|
1070
|
+
|
1071
|
+
ManagedAgentStateChanges.member = Shapes::ShapeRef.new(shape: ManagedAgentStateChange)
|
1072
|
+
|
1073
|
+
ManagedAgents.member = Shapes::ShapeRef.new(shape: ManagedAgent)
|
1074
|
+
|
1005
1075
|
ManagedScaling.add_member(:status, Shapes::ShapeRef.new(shape: ManagedScalingStatus, location_name: "status"))
|
1006
1076
|
ManagedScaling.add_member(:target_capacity, Shapes::ShapeRef.new(shape: ManagedScalingTargetCapacity, location_name: "targetCapacity"))
|
1007
1077
|
ManagedScaling.add_member(:minimum_scaling_step_size, Shapes::ShapeRef.new(shape: ManagedScalingStepSize, location_name: "minimumScalingStepSize"))
|
@@ -1133,6 +1203,7 @@ module Aws::ECS
|
|
1133
1203
|
RegisterTaskDefinitionRequest.add_member(:ipc_mode, Shapes::ShapeRef.new(shape: IpcMode, location_name: "ipcMode"))
|
1134
1204
|
RegisterTaskDefinitionRequest.add_member(:proxy_configuration, Shapes::ShapeRef.new(shape: ProxyConfiguration, location_name: "proxyConfiguration"))
|
1135
1205
|
RegisterTaskDefinitionRequest.add_member(:inference_accelerators, Shapes::ShapeRef.new(shape: InferenceAccelerators, location_name: "inferenceAccelerators"))
|
1206
|
+
RegisterTaskDefinitionRequest.add_member(:ephemeral_storage, Shapes::ShapeRef.new(shape: EphemeralStorage, location_name: "ephemeralStorage"))
|
1136
1207
|
RegisterTaskDefinitionRequest.struct_class = Types::RegisterTaskDefinitionRequest
|
1137
1208
|
|
1138
1209
|
RegisterTaskDefinitionResponse.add_member(:task_definition, Shapes::ShapeRef.new(shape: TaskDefinition, location_name: "taskDefinition"))
|
@@ -1168,6 +1239,7 @@ module Aws::ECS
|
|
1168
1239
|
RunTaskRequest.add_member(:cluster, Shapes::ShapeRef.new(shape: String, location_name: "cluster"))
|
1169
1240
|
RunTaskRequest.add_member(:count, Shapes::ShapeRef.new(shape: BoxedInteger, location_name: "count"))
|
1170
1241
|
RunTaskRequest.add_member(:enable_ecs_managed_tags, Shapes::ShapeRef.new(shape: Boolean, location_name: "enableECSManagedTags"))
|
1242
|
+
RunTaskRequest.add_member(:enable_execute_command, Shapes::ShapeRef.new(shape: Boolean, location_name: "enableExecuteCommand"))
|
1171
1243
|
RunTaskRequest.add_member(:group, Shapes::ShapeRef.new(shape: String, location_name: "group"))
|
1172
1244
|
RunTaskRequest.add_member(:launch_type, Shapes::ShapeRef.new(shape: LaunchType, location_name: "launchType"))
|
1173
1245
|
RunTaskRequest.add_member(:network_configuration, Shapes::ShapeRef.new(shape: NetworkConfiguration, location_name: "networkConfiguration"))
|
@@ -1228,6 +1300,7 @@ module Aws::ECS
|
|
1228
1300
|
Service.add_member(:created_by, Shapes::ShapeRef.new(shape: String, location_name: "createdBy"))
|
1229
1301
|
Service.add_member(:enable_ecs_managed_tags, Shapes::ShapeRef.new(shape: Boolean, location_name: "enableECSManagedTags"))
|
1230
1302
|
Service.add_member(:propagate_tags, Shapes::ShapeRef.new(shape: PropagateTags, location_name: "propagateTags"))
|
1303
|
+
Service.add_member(:enable_execute_command, Shapes::ShapeRef.new(shape: Boolean, location_name: "enableExecuteCommand"))
|
1231
1304
|
Service.struct_class = Types::Service
|
1232
1305
|
|
1233
1306
|
ServiceEvent.add_member(:id, Shapes::ShapeRef.new(shape: String, location_name: "id"))
|
@@ -1253,6 +1326,11 @@ module Aws::ECS
|
|
1253
1326
|
|
1254
1327
|
Services.member = Shapes::ShapeRef.new(shape: Service)
|
1255
1328
|
|
1329
|
+
Session.add_member(:session_id, Shapes::ShapeRef.new(shape: String, location_name: "sessionId"))
|
1330
|
+
Session.add_member(:stream_url, Shapes::ShapeRef.new(shape: String, location_name: "streamUrl"))
|
1331
|
+
Session.add_member(:token_value, Shapes::ShapeRef.new(shape: SensitiveString, location_name: "tokenValue"))
|
1332
|
+
Session.struct_class = Types::Session
|
1333
|
+
|
1256
1334
|
Setting.add_member(:name, Shapes::ShapeRef.new(shape: SettingName, location_name: "name"))
|
1257
1335
|
Setting.add_member(:value, Shapes::ShapeRef.new(shape: String, location_name: "value"))
|
1258
1336
|
Setting.add_member(:principal_arn, Shapes::ShapeRef.new(shape: String, location_name: "principalArn"))
|
@@ -1263,6 +1341,7 @@ module Aws::ECS
|
|
1263
1341
|
StartTaskRequest.add_member(:cluster, Shapes::ShapeRef.new(shape: String, location_name: "cluster"))
|
1264
1342
|
StartTaskRequest.add_member(:container_instances, Shapes::ShapeRef.new(shape: StringList, required: true, location_name: "containerInstances"))
|
1265
1343
|
StartTaskRequest.add_member(:enable_ecs_managed_tags, Shapes::ShapeRef.new(shape: Boolean, location_name: "enableECSManagedTags"))
|
1344
|
+
StartTaskRequest.add_member(:enable_execute_command, Shapes::ShapeRef.new(shape: Boolean, location_name: "enableExecuteCommand"))
|
1266
1345
|
StartTaskRequest.add_member(:group, Shapes::ShapeRef.new(shape: String, location_name: "group"))
|
1267
1346
|
StartTaskRequest.add_member(:network_configuration, Shapes::ShapeRef.new(shape: NetworkConfiguration, location_name: "networkConfiguration"))
|
1268
1347
|
StartTaskRequest.add_member(:overrides, Shapes::ShapeRef.new(shape: TaskOverride, location_name: "overrides"))
|
@@ -1318,6 +1397,7 @@ module Aws::ECS
|
|
1318
1397
|
SubmitTaskStateChangeRequest.add_member(:reason, Shapes::ShapeRef.new(shape: String, location_name: "reason"))
|
1319
1398
|
SubmitTaskStateChangeRequest.add_member(:containers, Shapes::ShapeRef.new(shape: ContainerStateChanges, location_name: "containers"))
|
1320
1399
|
SubmitTaskStateChangeRequest.add_member(:attachments, Shapes::ShapeRef.new(shape: AttachmentStateChanges, location_name: "attachments"))
|
1400
|
+
SubmitTaskStateChangeRequest.add_member(:managed_agents, Shapes::ShapeRef.new(shape: ManagedAgentStateChanges, location_name: "managedAgents"))
|
1321
1401
|
SubmitTaskStateChangeRequest.add_member(:pull_started_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "pullStartedAt"))
|
1322
1402
|
SubmitTaskStateChangeRequest.add_member(:pull_stopped_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "pullStoppedAt"))
|
1323
1403
|
SubmitTaskStateChangeRequest.add_member(:execution_stopped_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "executionStoppedAt"))
|
@@ -1346,6 +1426,8 @@ module Aws::ECS
|
|
1346
1426
|
|
1347
1427
|
Tags.member = Shapes::ShapeRef.new(shape: Tag)
|
1348
1428
|
|
1429
|
+
TargetNotConnectedException.struct_class = Types::TargetNotConnectedException
|
1430
|
+
|
1349
1431
|
TargetNotFoundException.struct_class = Types::TargetNotFoundException
|
1350
1432
|
|
1351
1433
|
Task.add_member(:attachments, Shapes::ShapeRef.new(shape: Attachments, location_name: "attachments"))
|
@@ -1360,6 +1442,7 @@ module Aws::ECS
|
|
1360
1442
|
Task.add_member(:cpu, Shapes::ShapeRef.new(shape: String, location_name: "cpu"))
|
1361
1443
|
Task.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "createdAt"))
|
1362
1444
|
Task.add_member(:desired_status, Shapes::ShapeRef.new(shape: String, location_name: "desiredStatus"))
|
1445
|
+
Task.add_member(:enable_execute_command, Shapes::ShapeRef.new(shape: Boolean, location_name: "enableExecuteCommand"))
|
1363
1446
|
Task.add_member(:execution_stopped_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "executionStoppedAt"))
|
1364
1447
|
Task.add_member(:group, Shapes::ShapeRef.new(shape: String, location_name: "group"))
|
1365
1448
|
Task.add_member(:health_status, Shapes::ShapeRef.new(shape: HealthStatus, location_name: "healthStatus"))
|
@@ -1381,6 +1464,7 @@ module Aws::ECS
|
|
1381
1464
|
Task.add_member(:task_arn, Shapes::ShapeRef.new(shape: String, location_name: "taskArn"))
|
1382
1465
|
Task.add_member(:task_definition_arn, Shapes::ShapeRef.new(shape: String, location_name: "taskDefinitionArn"))
|
1383
1466
|
Task.add_member(:version, Shapes::ShapeRef.new(shape: Long, location_name: "version"))
|
1467
|
+
Task.add_member(:ephemeral_storage, Shapes::ShapeRef.new(shape: EphemeralStorage, location_name: "ephemeralStorage"))
|
1384
1468
|
Task.struct_class = Types::Task
|
1385
1469
|
|
1386
1470
|
TaskDefinition.add_member(:task_definition_arn, Shapes::ShapeRef.new(shape: String, location_name: "taskDefinitionArn"))
|
@@ -1402,6 +1486,10 @@ module Aws::ECS
|
|
1402
1486
|
TaskDefinition.add_member(:pid_mode, Shapes::ShapeRef.new(shape: PidMode, location_name: "pidMode"))
|
1403
1487
|
TaskDefinition.add_member(:ipc_mode, Shapes::ShapeRef.new(shape: IpcMode, location_name: "ipcMode"))
|
1404
1488
|
TaskDefinition.add_member(:proxy_configuration, Shapes::ShapeRef.new(shape: ProxyConfiguration, location_name: "proxyConfiguration"))
|
1489
|
+
TaskDefinition.add_member(:registered_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "registeredAt"))
|
1490
|
+
TaskDefinition.add_member(:deregistered_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "deregisteredAt"))
|
1491
|
+
TaskDefinition.add_member(:registered_by, Shapes::ShapeRef.new(shape: String, location_name: "registeredBy"))
|
1492
|
+
TaskDefinition.add_member(:ephemeral_storage, Shapes::ShapeRef.new(shape: EphemeralStorage, location_name: "ephemeralStorage"))
|
1405
1493
|
TaskDefinition.struct_class = Types::TaskDefinition
|
1406
1494
|
|
1407
1495
|
TaskDefinitionFieldList.member = Shapes::ShapeRef.new(shape: TaskDefinitionField)
|
@@ -1420,6 +1508,7 @@ module Aws::ECS
|
|
1420
1508
|
TaskOverride.add_member(:execution_role_arn, Shapes::ShapeRef.new(shape: String, location_name: "executionRoleArn"))
|
1421
1509
|
TaskOverride.add_member(:memory, Shapes::ShapeRef.new(shape: String, location_name: "memory"))
|
1422
1510
|
TaskOverride.add_member(:task_role_arn, Shapes::ShapeRef.new(shape: String, location_name: "taskRoleArn"))
|
1511
|
+
TaskOverride.add_member(:ephemeral_storage, Shapes::ShapeRef.new(shape: EphemeralStorage, location_name: "ephemeralStorage"))
|
1423
1512
|
TaskOverride.struct_class = Types::TaskOverride
|
1424
1513
|
|
1425
1514
|
TaskSet.add_member(:id, Shapes::ShapeRef.new(shape: String, location_name: "id"))
|
@@ -1484,6 +1573,14 @@ module Aws::ECS
|
|
1484
1573
|
UpdateCapacityProviderResponse.add_member(:capacity_provider, Shapes::ShapeRef.new(shape: CapacityProvider, location_name: "capacityProvider"))
|
1485
1574
|
UpdateCapacityProviderResponse.struct_class = Types::UpdateCapacityProviderResponse
|
1486
1575
|
|
1576
|
+
UpdateClusterRequest.add_member(:cluster, Shapes::ShapeRef.new(shape: String, required: true, location_name: "cluster"))
|
1577
|
+
UpdateClusterRequest.add_member(:settings, Shapes::ShapeRef.new(shape: ClusterSettings, location_name: "settings"))
|
1578
|
+
UpdateClusterRequest.add_member(:configuration, Shapes::ShapeRef.new(shape: ClusterConfiguration, location_name: "configuration"))
|
1579
|
+
UpdateClusterRequest.struct_class = Types::UpdateClusterRequest
|
1580
|
+
|
1581
|
+
UpdateClusterResponse.add_member(:cluster, Shapes::ShapeRef.new(shape: Cluster, location_name: "cluster"))
|
1582
|
+
UpdateClusterResponse.struct_class = Types::UpdateClusterResponse
|
1583
|
+
|
1487
1584
|
UpdateClusterSettingsRequest.add_member(:cluster, Shapes::ShapeRef.new(shape: String, required: true, location_name: "cluster"))
|
1488
1585
|
UpdateClusterSettingsRequest.add_member(:settings, Shapes::ShapeRef.new(shape: ClusterSettings, required: true, location_name: "settings"))
|
1489
1586
|
UpdateClusterSettingsRequest.struct_class = Types::UpdateClusterSettingsRequest
|
@@ -1529,6 +1626,7 @@ module Aws::ECS
|
|
1529
1626
|
UpdateServiceRequest.add_member(:platform_version, Shapes::ShapeRef.new(shape: String, location_name: "platformVersion"))
|
1530
1627
|
UpdateServiceRequest.add_member(:force_new_deployment, Shapes::ShapeRef.new(shape: Boolean, location_name: "forceNewDeployment"))
|
1531
1628
|
UpdateServiceRequest.add_member(:health_check_grace_period_seconds, Shapes::ShapeRef.new(shape: BoxedInteger, location_name: "healthCheckGracePeriodSeconds"))
|
1629
|
+
UpdateServiceRequest.add_member(:enable_execute_command, Shapes::ShapeRef.new(shape: BoxedBoolean, location_name: "enableExecuteCommand"))
|
1532
1630
|
UpdateServiceRequest.struct_class = Types::UpdateServiceRequest
|
1533
1631
|
|
1534
1632
|
UpdateServiceResponse.add_member(:service, Shapes::ShapeRef.new(shape: Service, location_name: "service"))
|
@@ -1837,6 +1935,20 @@ module Aws::ECS
|
|
1837
1935
|
o.errors << Shapes::ShapeRef.new(shape: ClientException)
|
1838
1936
|
end)
|
1839
1937
|
|
1938
|
+
api.add_operation(:execute_command, Seahorse::Model::Operation.new.tap do |o|
|
1939
|
+
o.name = "ExecuteCommand"
|
1940
|
+
o.http_method = "POST"
|
1941
|
+
o.http_request_uri = "/"
|
1942
|
+
o.input = Shapes::ShapeRef.new(shape: ExecuteCommandRequest)
|
1943
|
+
o.output = Shapes::ShapeRef.new(shape: ExecuteCommandResponse)
|
1944
|
+
o.errors << Shapes::ShapeRef.new(shape: ServerException)
|
1945
|
+
o.errors << Shapes::ShapeRef.new(shape: ClientException)
|
1946
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
1947
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
1948
|
+
o.errors << Shapes::ShapeRef.new(shape: ClusterNotFoundException)
|
1949
|
+
o.errors << Shapes::ShapeRef.new(shape: TargetNotConnectedException)
|
1950
|
+
end)
|
1951
|
+
|
1840
1952
|
api.add_operation(:list_account_settings, Seahorse::Model::Operation.new.tap do |o|
|
1841
1953
|
o.name = "ListAccountSettings"
|
1842
1954
|
o.http_method = "POST"
|
@@ -2171,6 +2283,18 @@ module Aws::ECS
|
|
2171
2283
|
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
2172
2284
|
end)
|
2173
2285
|
|
2286
|
+
api.add_operation(:update_cluster, Seahorse::Model::Operation.new.tap do |o|
|
2287
|
+
o.name = "UpdateCluster"
|
2288
|
+
o.http_method = "POST"
|
2289
|
+
o.http_request_uri = "/"
|
2290
|
+
o.input = Shapes::ShapeRef.new(shape: UpdateClusterRequest)
|
2291
|
+
o.output = Shapes::ShapeRef.new(shape: UpdateClusterResponse)
|
2292
|
+
o.errors << Shapes::ShapeRef.new(shape: ServerException)
|
2293
|
+
o.errors << Shapes::ShapeRef.new(shape: ClientException)
|
2294
|
+
o.errors << Shapes::ShapeRef.new(shape: ClusterNotFoundException)
|
2295
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
2296
|
+
end)
|
2297
|
+
|
2174
2298
|
api.add_operation(:update_cluster_settings, Seahorse::Model::Operation.new.tap do |o|
|
2175
2299
|
o.name = "UpdateClusterSettings"
|
2176
2300
|
o.http_method = "POST"
|
@@ -2,7 +2,7 @@
|
|
2
2
|
# WARNING ABOUT GENERATED CODE
|
3
3
|
#
|
4
4
|
# This file is generated. See the contributing for info on making contributions:
|
5
|
-
# https://github.com/aws/aws-sdk-ruby/blob/
|
5
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
6
6
|
#
|
7
7
|
# WARNING ABOUT GENERATED CODE
|
8
8
|
|
data/lib/aws-sdk-ecs/errors.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
|
|
@@ -46,6 +46,7 @@ module Aws::ECS
|
|
46
46
|
# * {ServerException}
|
47
47
|
# * {ServiceNotActiveException}
|
48
48
|
# * {ServiceNotFoundException}
|
49
|
+
# * {TargetNotConnectedException}
|
49
50
|
# * {TargetNotFoundException}
|
50
51
|
# * {TaskSetNotFoundException}
|
51
52
|
# * {UnsupportedFeatureException}
|
@@ -257,6 +258,16 @@ module Aws::ECS
|
|
257
258
|
end
|
258
259
|
end
|
259
260
|
|
261
|
+
class TargetNotConnectedException < ServiceError
|
262
|
+
|
263
|
+
# @param [Seahorse::Client::RequestContext] context
|
264
|
+
# @param [String] message
|
265
|
+
# @param [Aws::ECS::Types::TargetNotConnectedException] data
|
266
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
267
|
+
super(context, message, data)
|
268
|
+
end
|
269
|
+
end
|
270
|
+
|
260
271
|
class TargetNotFoundException < ServiceError
|
261
272
|
|
262
273
|
# @param [Seahorse::Client::RequestContext] context
|
data/lib/aws-sdk-ecs/resource.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
|
|
data/lib/aws-sdk-ecs/types.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
|
|
@@ -222,21 +222,6 @@ module Aws::ECS
|
|
222
222
|
# @!attribute [rw] managed_scaling
|
223
223
|
# The managed scaling settings for the Auto Scaling group capacity
|
224
224
|
# provider.
|
225
|
-
#
|
226
|
-
# When managed scaling is enabled, Amazon ECS manages the scale-in and
|
227
|
-
# scale-out actions of the Auto Scaling group. Amazon ECS manages a
|
228
|
-
# target tracking scaling policy using an Amazon ECS-managed
|
229
|
-
# CloudWatch metric with the specified `targetCapacity` value as the
|
230
|
-
# target value for the metric. For more information, see [Using
|
231
|
-
# Managed Scaling][1] in the *Amazon Elastic Container Service
|
232
|
-
# Developer Guide*.
|
233
|
-
#
|
234
|
-
# If managed scaling is disabled, the user must manage the scaling of
|
235
|
-
# the Auto Scaling group.
|
236
|
-
#
|
237
|
-
#
|
238
|
-
#
|
239
|
-
# [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/asg-capacity-providers.html#asg-capacity-providers-managed-scaling
|
240
225
|
# @return [Types::ManagedScaling]
|
241
226
|
#
|
242
227
|
# @!attribute [rw] managed_termination_protection
|
@@ -421,7 +406,25 @@ module Aws::ECS
|
|
421
406
|
include Aws::Structure
|
422
407
|
end
|
423
408
|
|
424
|
-
# The details of a capacity provider strategy.
|
409
|
+
# The details of a capacity provider strategy. A capacity provider
|
410
|
+
# strategy can be set when using the RunTask or CreateCluster APIs or as
|
411
|
+
# the default capacity provider strategy for a cluster with the
|
412
|
+
# CreateCluster API.
|
413
|
+
#
|
414
|
+
# Only capacity providers that are already associated with a cluster and
|
415
|
+
# have an `ACTIVE` or `UPDATING` status can be used in a capacity
|
416
|
+
# provider strategy. The PutClusterCapacityProviders API is used to
|
417
|
+
# associate a capacity provider with a cluster.
|
418
|
+
#
|
419
|
+
# If specifying a capacity provider that uses an Auto Scaling group, the
|
420
|
+
# capacity provider must already be created. New Auto Scaling group
|
421
|
+
# capacity providers can be created with the CreateCapacityProvider API
|
422
|
+
# operation.
|
423
|
+
#
|
424
|
+
# To use a AWS Fargate capacity provider, specify either the `FARGATE`
|
425
|
+
# or `FARGATE_SPOT` capacity providers. The AWS Fargate capacity
|
426
|
+
# providers are available to all accounts and only need to be associated
|
427
|
+
# with a cluster to be used in a capacity provider strategy.
|
425
428
|
#
|
426
429
|
# @note When making an API call, you may pass CapacityProviderStrategyItem
|
427
430
|
# data as a hash:
|
@@ -439,21 +442,32 @@ module Aws::ECS
|
|
439
442
|
# @!attribute [rw] weight
|
440
443
|
# The *weight* value designates the relative percentage of the total
|
441
444
|
# number of tasks launched that should use the specified capacity
|
442
|
-
# provider.
|
443
|
-
#
|
444
|
-
#
|
445
|
-
#
|
446
|
-
#
|
447
|
-
#
|
448
|
-
#
|
449
|
-
#
|
450
|
-
#
|
445
|
+
# provider. The `weight` value is taken into consideration after the
|
446
|
+
# `base` value, if defined, is satisfied.
|
447
|
+
#
|
448
|
+
# If no `weight` value is specified, the default value of `0` is used.
|
449
|
+
# When multiple capacity providers are specified within a capacity
|
450
|
+
# provider strategy, at least one of the capacity providers must have
|
451
|
+
# a weight value greater than zero and any capacity providers with a
|
452
|
+
# weight of `0` will not be used to place tasks. If you specify
|
453
|
+
# multiple capacity providers in a strategy that all have a weight of
|
454
|
+
# `0`, any `RunTask` or `CreateService` actions using the capacity
|
455
|
+
# provider strategy will fail.
|
456
|
+
#
|
457
|
+
# An example scenario for using weights is defining a strategy that
|
458
|
+
# contains two capacity providers and both have a weight of `1`, then
|
459
|
+
# when the `base` is satisfied, the tasks will be split evenly across
|
460
|
+
# the two capacity providers. Using that same logic, if you specify a
|
461
|
+
# weight of `1` for *capacityProviderA* and a weight of `4` for
|
462
|
+
# *capacityProviderB*, then for every one task that is run using
|
463
|
+
# *capacityProviderA*, four tasks would use *capacityProviderB*.
|
451
464
|
# @return [Integer]
|
452
465
|
#
|
453
466
|
# @!attribute [rw] base
|
454
467
|
# The *base* value designates how many tasks, at a minimum, to run on
|
455
468
|
# the specified capacity provider. Only one capacity provider in a
|
456
|
-
# capacity provider strategy can have a *base* defined.
|
469
|
+
# capacity provider strategy can have a *base* defined. If no value is
|
470
|
+
# specified, the default value of `0` is used.
|
457
471
|
# @return [Integer]
|
458
472
|
#
|
459
473
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/CapacityProviderStrategyItem AWS API Documentation
|
@@ -500,6 +514,10 @@ module Aws::ECS
|
|
500
514
|
# A user-generated string that you use to identify your cluster.
|
501
515
|
# @return [String]
|
502
516
|
#
|
517
|
+
# @!attribute [rw] configuration
|
518
|
+
# The execute command configuration for the cluster.
|
519
|
+
# @return [Types::ClusterConfiguration]
|
520
|
+
#
|
503
521
|
# @!attribute [rw] status
|
504
522
|
# The status of the cluster. The following are the possible states
|
505
523
|
# that will be returned.
|
@@ -648,6 +666,7 @@ module Aws::ECS
|
|
648
666
|
class Cluster < Struct.new(
|
649
667
|
:cluster_arn,
|
650
668
|
:cluster_name,
|
669
|
+
:configuration,
|
651
670
|
:status,
|
652
671
|
:registered_container_instances_count,
|
653
672
|
:running_tasks_count,
|
@@ -664,6 +683,37 @@ module Aws::ECS
|
|
664
683
|
include Aws::Structure
|
665
684
|
end
|
666
685
|
|
686
|
+
# The execute command configuration for the cluster.
|
687
|
+
#
|
688
|
+
# @note When making an API call, you may pass ClusterConfiguration
|
689
|
+
# data as a hash:
|
690
|
+
#
|
691
|
+
# {
|
692
|
+
# execute_command_configuration: {
|
693
|
+
# kms_key_id: "String",
|
694
|
+
# logging: "NONE", # accepts NONE, DEFAULT, OVERRIDE
|
695
|
+
# log_configuration: {
|
696
|
+
# cloud_watch_log_group_name: "String",
|
697
|
+
# cloud_watch_encryption_enabled: false,
|
698
|
+
# s3_bucket_name: "String",
|
699
|
+
# s3_encryption_enabled: false,
|
700
|
+
# s3_key_prefix: "String",
|
701
|
+
# },
|
702
|
+
# },
|
703
|
+
# }
|
704
|
+
#
|
705
|
+
# @!attribute [rw] execute_command_configuration
|
706
|
+
# The details of the execute command configuration.
|
707
|
+
# @return [Types::ExecuteCommandConfiguration]
|
708
|
+
#
|
709
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ClusterConfiguration AWS API Documentation
|
710
|
+
#
|
711
|
+
class ClusterConfiguration < Struct.new(
|
712
|
+
:execute_command_configuration)
|
713
|
+
SENSITIVE = []
|
714
|
+
include Aws::Structure
|
715
|
+
end
|
716
|
+
|
667
717
|
# You cannot delete a cluster that has registered container instances.
|
668
718
|
# First, deregister the container instances before you can delete the
|
669
719
|
# cluster. For more information, see DeregisterContainerInstance.
|
@@ -786,6 +836,11 @@ module Aws::ECS
|
|
786
836
|
# reports the health status as `UNKNOWN`.
|
787
837
|
# @return [String]
|
788
838
|
#
|
839
|
+
# @!attribute [rw] managed_agents
|
840
|
+
# The details of any Amazon ECS managed agents associated with the
|
841
|
+
# container.
|
842
|
+
# @return [Array<Types::ManagedAgent>]
|
843
|
+
#
|
789
844
|
# @!attribute [rw] cpu
|
790
845
|
# The number of CPU units set for the container. The value will be `0`
|
791
846
|
# if no value was specified in the container definition when the task
|
@@ -819,6 +874,7 @@ module Aws::ECS
|
|
819
874
|
:network_bindings,
|
820
875
|
:network_interfaces,
|
821
876
|
:health_status,
|
877
|
+
:managed_agents,
|
822
878
|
:cpu,
|
823
879
|
:memory,
|
824
880
|
:memory_reservation,
|
@@ -1184,8 +1240,7 @@ module Aws::ECS
|
|
1184
1240
|
# container][2] section of the [Docker Remote API][3] and the `--link`
|
1185
1241
|
# option to [docker run][4].
|
1186
1242
|
#
|
1187
|
-
# <note markdown="1"> This parameter is not supported for Windows containers
|
1188
|
-
# use the awsvpc network mode.
|
1243
|
+
# <note markdown="1"> This parameter is not supported for Windows containers.
|
1189
1244
|
#
|
1190
1245
|
# </note>
|
1191
1246
|
#
|
@@ -1332,9 +1387,6 @@ module Aws::ECS
|
|
1332
1387
|
# Variables][3] in the *Amazon Elastic Container Service Developer
|
1333
1388
|
# Guide*.
|
1334
1389
|
#
|
1335
|
-
# This field is not valid for containers in tasks using the Fargate
|
1336
|
-
# launch type.
|
1337
|
-
#
|
1338
1390
|
#
|
1339
1391
|
#
|
1340
1392
|
# [1]: https://docs.docker.com/engine/reference/run/#security-configuration
|
@@ -1536,8 +1588,7 @@ module Aws::ECS
|
|
1536
1588
|
#
|
1537
1589
|
# * `uid:group`
|
1538
1590
|
#
|
1539
|
-
# <note markdown="1"> This parameter is not supported for Windows containers
|
1540
|
-
# use the awsvpc network mode.
|
1591
|
+
# <note markdown="1"> This parameter is not supported for Windows containers.
|
1541
1592
|
#
|
1542
1593
|
# </note>
|
1543
1594
|
#
|
@@ -1566,8 +1617,7 @@ module Aws::ECS
|
|
1566
1617
|
# container. This parameter maps to `NetworkDisabled` in the [Create a
|
1567
1618
|
# container][1] section of the [Docker Remote API][2].
|
1568
1619
|
#
|
1569
|
-
# <note markdown="1"> This parameter is not supported for Windows containers
|
1570
|
-
# use the awsvpc network mode.
|
1620
|
+
# <note markdown="1"> This parameter is not supported for Windows containers.
|
1571
1621
|
#
|
1572
1622
|
# </note>
|
1573
1623
|
#
|
@@ -1584,8 +1634,8 @@ module Aws::ECS
|
|
1584
1634
|
# container][1] section of the [Docker Remote API][2] and the
|
1585
1635
|
# `--privileged` option to [docker run][3].
|
1586
1636
|
#
|
1587
|
-
# <note markdown="1"> This parameter is not supported for Windows containers or tasks
|
1588
|
-
#
|
1637
|
+
# <note markdown="1"> This parameter is not supported for Windows containers or tasks run
|
1638
|
+
# on AWS Fargate.
|
1589
1639
|
#
|
1590
1640
|
# </note>
|
1591
1641
|
#
|
@@ -1602,8 +1652,7 @@ module Aws::ECS
|
|
1602
1652
|
# the [Create a container][1] section of the [Docker Remote API][2]
|
1603
1653
|
# and the `--read-only` option to [docker run][3].
|
1604
1654
|
#
|
1605
|
-
# <note markdown="1"> This parameter is not supported for Windows containers
|
1606
|
-
# use the awsvpc network mode.
|
1655
|
+
# <note markdown="1"> This parameter is not supported for Windows containers.
|
1607
1656
|
#
|
1608
1657
|
# </note>
|
1609
1658
|
#
|
@@ -1620,8 +1669,7 @@ module Aws::ECS
|
|
1620
1669
|
# the [Docker Remote API][2] and the `--dns` option to [docker
|
1621
1670
|
# run][3].
|
1622
1671
|
#
|
1623
|
-
# <note markdown="1"> This parameter is not supported for Windows containers
|
1624
|
-
# use the awsvpc network mode.
|
1672
|
+
# <note markdown="1"> This parameter is not supported for Windows containers.
|
1625
1673
|
#
|
1626
1674
|
# </note>
|
1627
1675
|
#
|
@@ -1638,8 +1686,7 @@ module Aws::ECS
|
|
1638
1686
|
# section of the [Docker Remote API][2] and the `--dns-search` option
|
1639
1687
|
# to [docker run][3].
|
1640
1688
|
#
|
1641
|
-
# <note markdown="1"> This parameter is not supported for Windows containers
|
1642
|
-
# use the awsvpc network mode.
|
1689
|
+
# <note markdown="1"> This parameter is not supported for Windows containers.
|
1643
1690
|
#
|
1644
1691
|
# </note>
|
1645
1692
|
#
|
@@ -1756,14 +1803,22 @@ module Aws::ECS
|
|
1756
1803
|
# set by Docker. This parameter maps to `Ulimits` in the [Create a
|
1757
1804
|
# container][1] section of the [Docker Remote API][2] and the
|
1758
1805
|
# `--ulimit` option to [docker run][3]. Valid naming values are
|
1759
|
-
# displayed in the Ulimit data type.
|
1760
|
-
# 1.18 of the Docker Remote API or greater on your container instance.
|
1761
|
-
# To check the Docker Remote API version on your container instance,
|
1762
|
-
# log in to your container instance and run the following command:
|
1763
|
-
# `sudo docker version --format '\{\{.Server.APIVersion\}\}'`
|
1806
|
+
# displayed in the Ulimit data type.
|
1764
1807
|
#
|
1765
|
-
#
|
1766
|
-
#
|
1808
|
+
# Amazon ECS tasks hosted on Fargate use the default resource limit
|
1809
|
+
# values set by the operating system with the exception of the
|
1810
|
+
# `nofile` resource limit parameter which Fargate overrides. The
|
1811
|
+
# `nofile` resource limit sets a restriction on the number of open
|
1812
|
+
# files that a container can use. The default `nofile` soft limit is
|
1813
|
+
# `1024` and hard limit is `4096`.
|
1814
|
+
#
|
1815
|
+
# This parameter requires version 1.18 of the Docker Remote API or
|
1816
|
+
# greater on your container instance. To check the Docker Remote API
|
1817
|
+
# version on your container instance, log in to your container
|
1818
|
+
# instance and run the following command: `sudo docker version
|
1819
|
+
# --format '\{\{.Server.APIVersion\}\}'`
|
1820
|
+
#
|
1821
|
+
# <note markdown="1"> This parameter is not supported for Windows containers.
|
1767
1822
|
#
|
1768
1823
|
# </note>
|
1769
1824
|
#
|
@@ -2444,6 +2499,19 @@ module Aws::ECS
|
|
2444
2499
|
# value: "String",
|
2445
2500
|
# },
|
2446
2501
|
# ],
|
2502
|
+
# configuration: {
|
2503
|
+
# execute_command_configuration: {
|
2504
|
+
# kms_key_id: "String",
|
2505
|
+
# logging: "NONE", # accepts NONE, DEFAULT, OVERRIDE
|
2506
|
+
# log_configuration: {
|
2507
|
+
# cloud_watch_log_group_name: "String",
|
2508
|
+
# cloud_watch_encryption_enabled: false,
|
2509
|
+
# s3_bucket_name: "String",
|
2510
|
+
# s3_encryption_enabled: false,
|
2511
|
+
# s3_key_prefix: "String",
|
2512
|
+
# },
|
2513
|
+
# },
|
2514
|
+
# },
|
2447
2515
|
# capacity_providers: ["String"],
|
2448
2516
|
# default_capacity_provider_strategy: [
|
2449
2517
|
# {
|
@@ -2498,14 +2566,22 @@ module Aws::ECS
|
|
2498
2566
|
# with PutAccountSetting or PutAccountSettingDefault.
|
2499
2567
|
# @return [Array<Types::ClusterSetting>]
|
2500
2568
|
#
|
2569
|
+
# @!attribute [rw] configuration
|
2570
|
+
# The execute command configuration for the cluster.
|
2571
|
+
# @return [Types::ClusterConfiguration]
|
2572
|
+
#
|
2501
2573
|
# @!attribute [rw] capacity_providers
|
2502
2574
|
# The short name of one or more capacity providers to associate with
|
2503
|
-
# the cluster.
|
2575
|
+
# the cluster. A capacity provider must be associated with a cluster
|
2576
|
+
# before it can be included as part of the default capacity provider
|
2577
|
+
# strategy of the cluster or used in a capacity provider strategy when
|
2578
|
+
# calling the CreateService or RunTask actions.
|
2504
2579
|
#
|
2505
2580
|
# If specifying a capacity provider that uses an Auto Scaling group,
|
2506
2581
|
# the capacity provider must already be created and not already
|
2507
|
-
# associated with another cluster. New
|
2508
|
-
# created with the CreateCapacityProvider API
|
2582
|
+
# associated with another cluster. New Auto Scaling group capacity
|
2583
|
+
# providers can be created with the CreateCapacityProvider API
|
2584
|
+
# operation.
|
2509
2585
|
#
|
2510
2586
|
# To use a AWS Fargate capacity provider, specify either the `FARGATE`
|
2511
2587
|
# or `FARGATE_SPOT` capacity providers. The AWS Fargate capacity
|
@@ -2518,29 +2594,12 @@ module Aws::ECS
|
|
2518
2594
|
# @return [Array<String>]
|
2519
2595
|
#
|
2520
2596
|
# @!attribute [rw] default_capacity_provider_strategy
|
2521
|
-
# The capacity provider strategy to
|
2522
|
-
#
|
2523
|
-
#
|
2524
|
-
# capacity provider or launch type
|
2597
|
+
# The capacity provider strategy to set as the default for the
|
2598
|
+
# cluster. When a default capacity provider strategy is set for a
|
2599
|
+
# cluster, when calling the RunTask or CreateService APIs wtih no
|
2600
|
+
# capacity provider strategy or launch type specified, the default
|
2525
2601
|
# capacity provider strategy for the cluster is used.
|
2526
2602
|
#
|
2527
|
-
# A capacity provider strategy consists of one or more capacity
|
2528
|
-
# providers along with the `base` and `weight` to assign to them. A
|
2529
|
-
# capacity provider must be associated with the cluster to be used in
|
2530
|
-
# a capacity provider strategy. The PutClusterCapacityProviders API is
|
2531
|
-
# used to associate a capacity provider with a cluster. Only capacity
|
2532
|
-
# providers with an `ACTIVE` or `UPDATING` status can be used.
|
2533
|
-
#
|
2534
|
-
# If specifying a capacity provider that uses an Auto Scaling group,
|
2535
|
-
# the capacity provider must already be created. New capacity
|
2536
|
-
# providers can be created with the CreateCapacityProvider API
|
2537
|
-
# operation.
|
2538
|
-
#
|
2539
|
-
# To use a AWS Fargate capacity provider, specify either the `FARGATE`
|
2540
|
-
# or `FARGATE_SPOT` capacity providers. The AWS Fargate capacity
|
2541
|
-
# providers are available to all accounts and only need to be
|
2542
|
-
# associated with a cluster to be used.
|
2543
|
-
#
|
2544
2603
|
# If a default capacity provider strategy is not defined for a cluster
|
2545
2604
|
# during creation, it can be defined later with the
|
2546
2605
|
# PutClusterCapacityProviders API operation.
|
@@ -2552,6 +2611,7 @@ module Aws::ECS
|
|
2552
2611
|
:cluster_name,
|
2553
2612
|
:tags,
|
2554
2613
|
:settings,
|
2614
|
+
:configuration,
|
2555
2615
|
:capacity_providers,
|
2556
2616
|
:default_capacity_provider_strategy)
|
2557
2617
|
SENSITIVE = []
|
@@ -2645,6 +2705,7 @@ module Aws::ECS
|
|
2645
2705
|
# ],
|
2646
2706
|
# enable_ecs_managed_tags: false,
|
2647
2707
|
# propagate_tags: "TASK_DEFINITION", # accepts TASK_DEFINITION, SERVICE
|
2708
|
+
# enable_execute_command: false,
|
2648
2709
|
# }
|
2649
2710
|
#
|
2650
2711
|
# @!attribute [rw] cluster
|
@@ -2679,7 +2740,7 @@ module Aws::ECS
|
|
2679
2740
|
# Load Balancer, you must specify one or more target group ARNs to
|
2680
2741
|
# attach to the service. The service-linked role is required for
|
2681
2742
|
# services that make use of multiple target groups. For more
|
2682
|
-
# information, see [Using
|
2743
|
+
# information, see [Using service-linked roles for Amazon ECS][2] in
|
2683
2744
|
# the *Amazon Elastic Container Service Developer Guide*.
|
2684
2745
|
#
|
2685
2746
|
# If the service is using the `CODE_DEPLOY` deployment controller, the
|
@@ -2732,19 +2793,17 @@ module Aws::ECS
|
|
2732
2793
|
# @return [Array<Types::LoadBalancer>]
|
2733
2794
|
#
|
2734
2795
|
# @!attribute [rw] service_registries
|
2735
|
-
# The details of the service discovery
|
2736
|
-
# service. For more information, see [Service
|
2796
|
+
# The details of the service discovery registry to associate with this
|
2797
|
+
# service. For more information, see [Service discovery][1].
|
2737
2798
|
#
|
2738
|
-
# <note markdown="1">
|
2739
|
-
#
|
2740
|
-
# Fargate Platform Versions][2].
|
2799
|
+
# <note markdown="1"> Each service may be associated with one service registry. Multiple
|
2800
|
+
# service registries per service isn't supported.
|
2741
2801
|
#
|
2742
2802
|
# </note>
|
2743
2803
|
#
|
2744
2804
|
#
|
2745
2805
|
#
|
2746
2806
|
# [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-discovery.html
|
2747
|
-
# [2]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/platform_versions.html
|
2748
2807
|
# @return [Array<Types::ServiceRegistry>]
|
2749
2808
|
#
|
2750
2809
|
# @!attribute [rw] desired_count
|
@@ -2762,9 +2821,18 @@ module Aws::ECS
|
|
2762
2821
|
# @return [String]
|
2763
2822
|
#
|
2764
2823
|
# @!attribute [rw] launch_type
|
2765
|
-
# The launch type on which to run your service.
|
2766
|
-
#
|
2767
|
-
# Service Developer
|
2824
|
+
# The launch type on which to run your service. The accepted values
|
2825
|
+
# are `FARGATE` and `EC2`. For more information, see [Amazon ECS
|
2826
|
+
# launch types][1] in the *Amazon Elastic Container Service Developer
|
2827
|
+
# Guide*.
|
2828
|
+
#
|
2829
|
+
# When a value of `FARGATE` is specified, your tasks are launched on
|
2830
|
+
# AWS Fargate On-Demand infrastructure. To use Fargate Spot, you must
|
2831
|
+
# use a capacity provider strategy with the `FARGATE_SPOT` capacity
|
2832
|
+
# provider.
|
2833
|
+
#
|
2834
|
+
# When a value of `EC2` is specified, your tasks are launched on
|
2835
|
+
# Amazon EC2 instances registered to your cluster.
|
2768
2836
|
#
|
2769
2837
|
# If a `launchType` is specified, the `capacityProviderStrategy`
|
2770
2838
|
# parameter must be omitted.
|
@@ -2777,39 +2845,18 @@ module Aws::ECS
|
|
2777
2845
|
# @!attribute [rw] capacity_provider_strategy
|
2778
2846
|
# The capacity provider strategy to use for the service.
|
2779
2847
|
#
|
2780
|
-
# A capacity provider strategy consists of one or more capacity
|
2781
|
-
# providers along with the `base` and `weight` to assign to them. A
|
2782
|
-
# capacity provider must be associated with the cluster to be used in
|
2783
|
-
# a capacity provider strategy. The PutClusterCapacityProviders API is
|
2784
|
-
# used to associate a capacity provider with a cluster. Only capacity
|
2785
|
-
# providers with an `ACTIVE` or `UPDATING` status can be used.
|
2786
|
-
#
|
2787
2848
|
# If a `capacityProviderStrategy` is specified, the `launchType`
|
2788
2849
|
# parameter must be omitted. If no `capacityProviderStrategy` or
|
2789
2850
|
# `launchType` is specified, the `defaultCapacityProviderStrategy` for
|
2790
2851
|
# the cluster is used.
|
2791
|
-
#
|
2792
|
-
# If specifying a capacity provider that uses an Auto Scaling group,
|
2793
|
-
# the capacity provider must already be created. New capacity
|
2794
|
-
# providers can be created with the CreateCapacityProvider API
|
2795
|
-
# operation.
|
2796
|
-
#
|
2797
|
-
# To use a AWS Fargate capacity provider, specify either the `FARGATE`
|
2798
|
-
# or `FARGATE_SPOT` capacity providers. The AWS Fargate capacity
|
2799
|
-
# providers are available to all accounts and only need to be
|
2800
|
-
# associated with a cluster to be used.
|
2801
|
-
#
|
2802
|
-
# The PutClusterCapacityProviders API operation is used to update the
|
2803
|
-
# list of available capacity providers for a cluster after the cluster
|
2804
|
-
# is created.
|
2805
2852
|
# @return [Array<Types::CapacityProviderStrategyItem>]
|
2806
2853
|
#
|
2807
2854
|
# @!attribute [rw] platform_version
|
2808
2855
|
# The platform version that your tasks in the service are running on.
|
2809
2856
|
# A platform version is specified only for tasks using the Fargate
|
2810
2857
|
# launch type. If one isn't specified, the `LATEST` platform version
|
2811
|
-
# is used by default. For more information, see [AWS Fargate
|
2812
|
-
#
|
2858
|
+
# is used by default. For more information, see [AWS Fargate platform
|
2859
|
+
# versions][1] in the *Amazon Elastic Container Service Developer
|
2813
2860
|
# Guide*.
|
2814
2861
|
#
|
2815
2862
|
#
|
@@ -2833,14 +2880,14 @@ module Aws::ECS
|
|
2833
2880
|
# configured to use service discovery, an external deployment
|
2834
2881
|
# controller, multiple target groups, or Elastic Inference
|
2835
2882
|
# accelerators in which case you should not specify a role here. For
|
2836
|
-
# more information, see [Using
|
2883
|
+
# more information, see [Using service-linked roles for Amazon ECS][1]
|
2837
2884
|
# in the *Amazon Elastic Container Service Developer Guide*.
|
2838
2885
|
#
|
2839
2886
|
# If your specified role has a path other than `/`, then you must
|
2840
2887
|
# either specify the full role ARN (this is recommended) or prefix the
|
2841
2888
|
# role name with the path. For example, if a role with the name `bar`
|
2842
2889
|
# has a path of `/foo/` then you would specify `/foo/bar` as the role
|
2843
|
-
# name. For more information, see [Friendly
|
2890
|
+
# name. For more information, see [Friendly names and paths][2] in the
|
2844
2891
|
# *IAM User Guide*.
|
2845
2892
|
#
|
2846
2893
|
#
|
@@ -2872,7 +2919,7 @@ module Aws::ECS
|
|
2872
2919
|
# required for task definitions that use the `awsvpc` network mode to
|
2873
2920
|
# receive their own elastic network interface, and it is not supported
|
2874
2921
|
# for other network modes. For more information, see [Task
|
2875
|
-
#
|
2922
|
+
# networking][1] in the *Amazon Elastic Container Service Developer
|
2876
2923
|
# Guide*.
|
2877
2924
|
#
|
2878
2925
|
#
|
@@ -2931,7 +2978,8 @@ module Aws::ECS
|
|
2931
2978
|
# @return [String]
|
2932
2979
|
#
|
2933
2980
|
# @!attribute [rw] deployment_controller
|
2934
|
-
# The deployment controller to use for the service.
|
2981
|
+
# The deployment controller to use for the service. If no deployment
|
2982
|
+
# controller is specified, the default value of `ECS` is used.
|
2935
2983
|
# @return [Types::DeploymentController]
|
2936
2984
|
#
|
2937
2985
|
# @!attribute [rw] tags
|
@@ -2985,6 +3033,12 @@ module Aws::ECS
|
|
2985
3033
|
# task after service creation, use the TagResource API action.
|
2986
3034
|
# @return [String]
|
2987
3035
|
#
|
3036
|
+
# @!attribute [rw] enable_execute_command
|
3037
|
+
# Whether or not the execute command functionality is enabled for the
|
3038
|
+
# service. If `true`, this enables execute command functionality on
|
3039
|
+
# all containers in the service tasks.
|
3040
|
+
# @return [Boolean]
|
3041
|
+
#
|
2988
3042
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/CreateServiceRequest AWS API Documentation
|
2989
3043
|
#
|
2990
3044
|
class CreateServiceRequest < Struct.new(
|
@@ -3008,7 +3062,8 @@ module Aws::ECS
|
|
3008
3062
|
:deployment_controller,
|
3009
3063
|
:tags,
|
3010
3064
|
:enable_ecs_managed_tags,
|
3011
|
-
:propagate_tags
|
3065
|
+
:propagate_tags,
|
3066
|
+
:enable_execute_command)
|
3012
3067
|
SENSITIVE = []
|
3013
3068
|
include Aws::Structure
|
3014
3069
|
end
|
@@ -3110,8 +3165,7 @@ module Aws::ECS
|
|
3110
3165
|
# @return [String]
|
3111
3166
|
#
|
3112
3167
|
# @!attribute [rw] network_configuration
|
3113
|
-
# An object representing the network configuration for a task
|
3114
|
-
# service.
|
3168
|
+
# An object representing the network configuration for a task set.
|
3115
3169
|
# @return [Types::NetworkConfiguration]
|
3116
3170
|
#
|
3117
3171
|
# @!attribute [rw] load_balancers
|
@@ -3243,9 +3297,9 @@ module Aws::ECS
|
|
3243
3297
|
|
3244
3298
|
# @!attribute [rw] task_set
|
3245
3299
|
# Information about a set of Amazon ECS tasks in either an AWS
|
3246
|
-
# CodeDeploy or an `EXTERNAL` deployment.
|
3247
|
-
#
|
3248
|
-
#
|
3300
|
+
# CodeDeploy or an `EXTERNAL` deployment. A task set includes details
|
3301
|
+
# such as the desired number of tasks, how many tasks are running, and
|
3302
|
+
# whether the task set serves production traffic.
|
3249
3303
|
# @return [Types::TaskSet]
|
3250
3304
|
#
|
3251
3305
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/CreateTaskSetResponse AWS API Documentation
|
@@ -3377,7 +3431,7 @@ module Aws::ECS
|
|
3377
3431
|
end
|
3378
3432
|
|
3379
3433
|
# @!attribute [rw] capacity_provider
|
3380
|
-
# The details of
|
3434
|
+
# The details of the capacity provider.
|
3381
3435
|
# @return [Types::CapacityProvider]
|
3382
3436
|
#
|
3383
3437
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DeleteCapacityProviderResponse AWS API Documentation
|
@@ -3509,10 +3563,7 @@ module Aws::ECS
|
|
3509
3563
|
end
|
3510
3564
|
|
3511
3565
|
# @!attribute [rw] task_set
|
3512
|
-
#
|
3513
|
-
# CodeDeploy or an `EXTERNAL` deployment. An Amazon ECS task set
|
3514
|
-
# includes details such as the desired number of tasks, how many tasks
|
3515
|
-
# are running, and whether the task set serves production traffic.
|
3566
|
+
# Details about the task set.
|
3516
3567
|
# @return [Types::TaskSet]
|
3517
3568
|
#
|
3518
3569
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/DeleteTaskSetResponse AWS API Documentation
|
@@ -4038,7 +4089,7 @@ module Aws::ECS
|
|
4038
4089
|
#
|
4039
4090
|
# {
|
4040
4091
|
# clusters: ["String"],
|
4041
|
-
# include: ["ATTACHMENTS"], # accepts ATTACHMENTS, SETTINGS, STATISTICS, TAGS
|
4092
|
+
# include: ["ATTACHMENTS"], # accepts ATTACHMENTS, CONFIGURATIONS, SETTINGS, STATISTICS, TAGS
|
4042
4093
|
# }
|
4043
4094
|
#
|
4044
4095
|
# @!attribute [rw] clusters
|
@@ -4723,12 +4774,12 @@ module Aws::ECS
|
|
4723
4774
|
# variables contained within an environment file. If multiple
|
4724
4775
|
# environment files are specified that contain the same variable, they
|
4725
4776
|
# are processed from the top down. It is recommended to use unique
|
4726
|
-
# variable names. For more information, see [Specifying
|
4727
|
-
#
|
4777
|
+
# variable names. For more information, see [Specifying environment
|
4778
|
+
# variables][2] in the *Amazon Elastic Container Service Developer
|
4728
4779
|
# Guide*.
|
4729
4780
|
#
|
4730
|
-
# This field is
|
4731
|
-
#
|
4781
|
+
# This field is only valid for containers in Fargate tasks that use
|
4782
|
+
# platform version `1.4.0` or later.
|
4732
4783
|
#
|
4733
4784
|
#
|
4734
4785
|
#
|
@@ -4761,6 +4812,240 @@ module Aws::ECS
|
|
4761
4812
|
include Aws::Structure
|
4762
4813
|
end
|
4763
4814
|
|
4815
|
+
# The amount of ephemeral storage to allocate for the task. This
|
4816
|
+
# parameter is used to expand the total amount of ephemeral storage
|
4817
|
+
# available, beyond the default amount, for tasks hosted on AWS Fargate.
|
4818
|
+
# For more information, see [Fargate task storage][1] in the *Amazon ECS
|
4819
|
+
# User Guide for AWS Fargate*.
|
4820
|
+
#
|
4821
|
+
# <note markdown="1"> This parameter is only supported for tasks hosted on AWS Fargate using
|
4822
|
+
# platform version `1.4.0` or later.
|
4823
|
+
#
|
4824
|
+
# </note>
|
4825
|
+
#
|
4826
|
+
#
|
4827
|
+
#
|
4828
|
+
# [1]: https://docs.aws.amazon.com/AmazonECS/latest/userguide/using_data_volumes.html
|
4829
|
+
#
|
4830
|
+
# @note When making an API call, you may pass EphemeralStorage
|
4831
|
+
# data as a hash:
|
4832
|
+
#
|
4833
|
+
# {
|
4834
|
+
# size_in_gi_b: 1, # required
|
4835
|
+
# }
|
4836
|
+
#
|
4837
|
+
# @!attribute [rw] size_in_gi_b
|
4838
|
+
# The total amount, in GiB, of ephemeral storage to set for the task.
|
4839
|
+
# The minimum supported value is `21` GiB and the maximum supported
|
4840
|
+
# value is `200` GiB.
|
4841
|
+
# @return [Integer]
|
4842
|
+
#
|
4843
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/EphemeralStorage AWS API Documentation
|
4844
|
+
#
|
4845
|
+
class EphemeralStorage < Struct.new(
|
4846
|
+
:size_in_gi_b)
|
4847
|
+
SENSITIVE = []
|
4848
|
+
include Aws::Structure
|
4849
|
+
end
|
4850
|
+
|
4851
|
+
# The details of the execute command configuration.
|
4852
|
+
#
|
4853
|
+
# @note When making an API call, you may pass ExecuteCommandConfiguration
|
4854
|
+
# data as a hash:
|
4855
|
+
#
|
4856
|
+
# {
|
4857
|
+
# kms_key_id: "String",
|
4858
|
+
# logging: "NONE", # accepts NONE, DEFAULT, OVERRIDE
|
4859
|
+
# log_configuration: {
|
4860
|
+
# cloud_watch_log_group_name: "String",
|
4861
|
+
# cloud_watch_encryption_enabled: false,
|
4862
|
+
# s3_bucket_name: "String",
|
4863
|
+
# s3_encryption_enabled: false,
|
4864
|
+
# s3_key_prefix: "String",
|
4865
|
+
# },
|
4866
|
+
# }
|
4867
|
+
#
|
4868
|
+
# @!attribute [rw] kms_key_id
|
4869
|
+
# Specify an AWS Key Management Service key ID to encrypt the data
|
4870
|
+
# between the local client and the container.
|
4871
|
+
# @return [String]
|
4872
|
+
#
|
4873
|
+
# @!attribute [rw] logging
|
4874
|
+
# The log setting to use for redirecting logs for your execute command
|
4875
|
+
# results. The following log settings are available.
|
4876
|
+
#
|
4877
|
+
# * `NONE`\: The execute command session is not logged.
|
4878
|
+
#
|
4879
|
+
# * `DEFAULT`\: The `awslogs` configuration in the task definition is
|
4880
|
+
# used. If no logging parameter is specified, it defaults to this
|
4881
|
+
# value. If no `awslogs` log driver is configured in the task
|
4882
|
+
# definition, the output won't be logged.
|
4883
|
+
#
|
4884
|
+
# * `OVERRIDE`\: Specify the logging details as a part of
|
4885
|
+
# `logConfiguration`. If the `OVERRIDE` logging option is specified,
|
4886
|
+
# the `logConfiguration` is required.
|
4887
|
+
# @return [String]
|
4888
|
+
#
|
4889
|
+
# @!attribute [rw] log_configuration
|
4890
|
+
# The log configuration for the results of the execute command
|
4891
|
+
# actions. The logs can be sent to CloudWatch Logs or an Amazon S3
|
4892
|
+
# bucket. When `logging=OVERRIDE` is specified, a `logConfiguration`
|
4893
|
+
# must be provided.
|
4894
|
+
# @return [Types::ExecuteCommandLogConfiguration]
|
4895
|
+
#
|
4896
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ExecuteCommandConfiguration AWS API Documentation
|
4897
|
+
#
|
4898
|
+
class ExecuteCommandConfiguration < Struct.new(
|
4899
|
+
:kms_key_id,
|
4900
|
+
:logging,
|
4901
|
+
:log_configuration)
|
4902
|
+
SENSITIVE = []
|
4903
|
+
include Aws::Structure
|
4904
|
+
end
|
4905
|
+
|
4906
|
+
# The log configuration for the results of the execute command actions.
|
4907
|
+
# The logs can be sent to CloudWatch Logs or an Amazon S3 bucket.
|
4908
|
+
#
|
4909
|
+
# @note When making an API call, you may pass ExecuteCommandLogConfiguration
|
4910
|
+
# data as a hash:
|
4911
|
+
#
|
4912
|
+
# {
|
4913
|
+
# cloud_watch_log_group_name: "String",
|
4914
|
+
# cloud_watch_encryption_enabled: false,
|
4915
|
+
# s3_bucket_name: "String",
|
4916
|
+
# s3_encryption_enabled: false,
|
4917
|
+
# s3_key_prefix: "String",
|
4918
|
+
# }
|
4919
|
+
#
|
4920
|
+
# @!attribute [rw] cloud_watch_log_group_name
|
4921
|
+
# The name of the CloudWatch log group to send logs to.
|
4922
|
+
#
|
4923
|
+
# <note markdown="1"> The CloudWatch log group must already be created.
|
4924
|
+
#
|
4925
|
+
# </note>
|
4926
|
+
# @return [String]
|
4927
|
+
#
|
4928
|
+
# @!attribute [rw] cloud_watch_encryption_enabled
|
4929
|
+
# Whether or not to enable encryption on the CloudWatch logs. If not
|
4930
|
+
# specified, encryption will be disabled.
|
4931
|
+
# @return [Boolean]
|
4932
|
+
#
|
4933
|
+
# @!attribute [rw] s3_bucket_name
|
4934
|
+
# The name of the S3 bucket to send logs to.
|
4935
|
+
#
|
4936
|
+
# <note markdown="1"> The S3 bucket must already be created.
|
4937
|
+
#
|
4938
|
+
# </note>
|
4939
|
+
# @return [String]
|
4940
|
+
#
|
4941
|
+
# @!attribute [rw] s3_encryption_enabled
|
4942
|
+
# Whether or not to enable encryption on the CloudWatch logs. If not
|
4943
|
+
# specified, encryption will be disabled.
|
4944
|
+
# @return [Boolean]
|
4945
|
+
#
|
4946
|
+
# @!attribute [rw] s3_key_prefix
|
4947
|
+
# An optional folder in the S3 bucket to place logs in.
|
4948
|
+
# @return [String]
|
4949
|
+
#
|
4950
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ExecuteCommandLogConfiguration AWS API Documentation
|
4951
|
+
#
|
4952
|
+
class ExecuteCommandLogConfiguration < Struct.new(
|
4953
|
+
:cloud_watch_log_group_name,
|
4954
|
+
:cloud_watch_encryption_enabled,
|
4955
|
+
:s3_bucket_name,
|
4956
|
+
:s3_encryption_enabled,
|
4957
|
+
:s3_key_prefix)
|
4958
|
+
SENSITIVE = []
|
4959
|
+
include Aws::Structure
|
4960
|
+
end
|
4961
|
+
|
4962
|
+
# @note When making an API call, you may pass ExecuteCommandRequest
|
4963
|
+
# data as a hash:
|
4964
|
+
#
|
4965
|
+
# {
|
4966
|
+
# cluster: "String",
|
4967
|
+
# container: "String",
|
4968
|
+
# command: "String", # required
|
4969
|
+
# interactive: false, # required
|
4970
|
+
# task: "String", # required
|
4971
|
+
# }
|
4972
|
+
#
|
4973
|
+
# @!attribute [rw] cluster
|
4974
|
+
# The Amazon Resource Name (ARN) or short name of the cluster the task
|
4975
|
+
# is running in. If you do not specify a cluster, the default cluster
|
4976
|
+
# is assumed.
|
4977
|
+
# @return [String]
|
4978
|
+
#
|
4979
|
+
# @!attribute [rw] container
|
4980
|
+
# The name of the container to execute the command on. A container
|
4981
|
+
# name only needs to be specified for tasks containing multiple
|
4982
|
+
# containers.
|
4983
|
+
# @return [String]
|
4984
|
+
#
|
4985
|
+
# @!attribute [rw] command
|
4986
|
+
# The command to run on the container.
|
4987
|
+
# @return [String]
|
4988
|
+
#
|
4989
|
+
# @!attribute [rw] interactive
|
4990
|
+
# Use this flag to run your command in interactive mode.
|
4991
|
+
# @return [Boolean]
|
4992
|
+
#
|
4993
|
+
# @!attribute [rw] task
|
4994
|
+
# The Amazon Resource Name (ARN) or ID of the task the container is
|
4995
|
+
# part of.
|
4996
|
+
# @return [String]
|
4997
|
+
#
|
4998
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ExecuteCommandRequest AWS API Documentation
|
4999
|
+
#
|
5000
|
+
class ExecuteCommandRequest < Struct.new(
|
5001
|
+
:cluster,
|
5002
|
+
:container,
|
5003
|
+
:command,
|
5004
|
+
:interactive,
|
5005
|
+
:task)
|
5006
|
+
SENSITIVE = []
|
5007
|
+
include Aws::Structure
|
5008
|
+
end
|
5009
|
+
|
5010
|
+
# @!attribute [rw] cluster_arn
|
5011
|
+
# The Amazon Resource Name (ARN) of the cluster.
|
5012
|
+
# @return [String]
|
5013
|
+
#
|
5014
|
+
# @!attribute [rw] container_arn
|
5015
|
+
# The Amazon Resource Name (ARN) of the container.
|
5016
|
+
# @return [String]
|
5017
|
+
#
|
5018
|
+
# @!attribute [rw] container_name
|
5019
|
+
# The name of the container.
|
5020
|
+
# @return [String]
|
5021
|
+
#
|
5022
|
+
# @!attribute [rw] interactive
|
5023
|
+
# Whether or not the execute command session is running in interactive
|
5024
|
+
# mode.
|
5025
|
+
# @return [Boolean]
|
5026
|
+
#
|
5027
|
+
# @!attribute [rw] session
|
5028
|
+
# The details of the SSM session that was created for this instance of
|
5029
|
+
# execute-command.
|
5030
|
+
# @return [Types::Session]
|
5031
|
+
#
|
5032
|
+
# @!attribute [rw] task_arn
|
5033
|
+
# The Amazon Resource Name (ARN) of the task.
|
5034
|
+
# @return [String]
|
5035
|
+
#
|
5036
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ExecuteCommandResponse AWS API Documentation
|
5037
|
+
#
|
5038
|
+
class ExecuteCommandResponse < Struct.new(
|
5039
|
+
:cluster_arn,
|
5040
|
+
:container_arn,
|
5041
|
+
:container_name,
|
5042
|
+
:interactive,
|
5043
|
+
:session,
|
5044
|
+
:task_arn)
|
5045
|
+
SENSITIVE = []
|
5046
|
+
include Aws::Structure
|
5047
|
+
end
|
5048
|
+
|
4764
5049
|
# The authorization configuration details for Amazon FSx for Windows
|
4765
5050
|
# File Server file system. See
|
4766
5051
|
# [FSxWindowsFileServerVolumeConfiguration][1] in the *Amazon Elastic
|
@@ -4921,6 +5206,11 @@ module Aws::ECS
|
|
4921
5206
|
# FireLens Configuration][1] in the *Amazon Elastic Container Service
|
4922
5207
|
# Developer Guide*.
|
4923
5208
|
#
|
5209
|
+
# <note markdown="1"> Tasks hosted on AWS Fargate only support the `file` configuration
|
5210
|
+
# file type.
|
5211
|
+
#
|
5212
|
+
# </note>
|
5213
|
+
#
|
4924
5214
|
#
|
4925
5215
|
#
|
4926
5216
|
# [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_firelens.html#firelens-taskdef
|
@@ -5503,6 +5793,11 @@ module Aws::ECS
|
|
5503
5793
|
# The ARN of the principal, which can be an IAM user, IAM role, or the
|
5504
5794
|
# root user. If this field is omitted, the account settings are listed
|
5505
5795
|
# only for the authenticated user.
|
5796
|
+
#
|
5797
|
+
# <note markdown="1"> Federated users assume the account setting of the root user and
|
5798
|
+
# can't have explicit account settings set for them.
|
5799
|
+
#
|
5800
|
+
# </note>
|
5506
5801
|
# @return [String]
|
5507
5802
|
#
|
5508
5803
|
# @!attribute [rw] effective_settings
|
@@ -6450,6 +6745,75 @@ module Aws::ECS
|
|
6450
6745
|
include Aws::Structure
|
6451
6746
|
end
|
6452
6747
|
|
6748
|
+
# Details about the managed agent status for the container.
|
6749
|
+
#
|
6750
|
+
# @!attribute [rw] last_started_at
|
6751
|
+
# The Unix timestamp for when the managed agent was last started.
|
6752
|
+
# @return [Time]
|
6753
|
+
#
|
6754
|
+
# @!attribute [rw] name
|
6755
|
+
# The name of the managed agent. When the execute command feature is
|
6756
|
+
# enabled, the managed agent name is `ExecuteCommandAgent`.
|
6757
|
+
# @return [String]
|
6758
|
+
#
|
6759
|
+
# @!attribute [rw] reason
|
6760
|
+
# The reason for why the managed agent is in the state it is in.
|
6761
|
+
# @return [String]
|
6762
|
+
#
|
6763
|
+
# @!attribute [rw] last_status
|
6764
|
+
# The last known status of the managed agent.
|
6765
|
+
# @return [String]
|
6766
|
+
#
|
6767
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ManagedAgent AWS API Documentation
|
6768
|
+
#
|
6769
|
+
class ManagedAgent < Struct.new(
|
6770
|
+
:last_started_at,
|
6771
|
+
:name,
|
6772
|
+
:reason,
|
6773
|
+
:last_status)
|
6774
|
+
SENSITIVE = []
|
6775
|
+
include Aws::Structure
|
6776
|
+
end
|
6777
|
+
|
6778
|
+
# An object representing a change in state for a managed agent.
|
6779
|
+
#
|
6780
|
+
# @note When making an API call, you may pass ManagedAgentStateChange
|
6781
|
+
# data as a hash:
|
6782
|
+
#
|
6783
|
+
# {
|
6784
|
+
# container_name: "String", # required
|
6785
|
+
# managed_agent_name: "ExecuteCommandAgent", # required, accepts ExecuteCommandAgent
|
6786
|
+
# status: "String", # required
|
6787
|
+
# reason: "String",
|
6788
|
+
# }
|
6789
|
+
#
|
6790
|
+
# @!attribute [rw] container_name
|
6791
|
+
# The name of the container associated with the managed agent.
|
6792
|
+
# @return [String]
|
6793
|
+
#
|
6794
|
+
# @!attribute [rw] managed_agent_name
|
6795
|
+
# The name of the managed agent.
|
6796
|
+
# @return [String]
|
6797
|
+
#
|
6798
|
+
# @!attribute [rw] status
|
6799
|
+
# The status of the managed agent.
|
6800
|
+
# @return [String]
|
6801
|
+
#
|
6802
|
+
# @!attribute [rw] reason
|
6803
|
+
# The reason for the status of the managed agent.
|
6804
|
+
# @return [String]
|
6805
|
+
#
|
6806
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/ManagedAgentStateChange AWS API Documentation
|
6807
|
+
#
|
6808
|
+
class ManagedAgentStateChange < Struct.new(
|
6809
|
+
:container_name,
|
6810
|
+
:managed_agent_name,
|
6811
|
+
:status,
|
6812
|
+
:reason)
|
6813
|
+
SENSITIVE = []
|
6814
|
+
include Aws::Structure
|
6815
|
+
end
|
6816
|
+
|
6453
6817
|
# The managed scaling settings for the Auto Scaling group capacity
|
6454
6818
|
# provider.
|
6455
6819
|
#
|
@@ -6823,6 +7187,11 @@ module Aws::ECS
|
|
6823
7187
|
# The `hostPort` can be left blank or it must be the same value as the
|
6824
7188
|
# `containerPort`.
|
6825
7189
|
#
|
7190
|
+
# <note markdown="1"> You cannot expose the same container port for multiple protocols. An
|
7191
|
+
# error will be returned if this is attempted
|
7192
|
+
#
|
7193
|
+
# </note>
|
7194
|
+
#
|
6826
7195
|
# After a task reaches the `RUNNING` status, manual and automatic host
|
6827
7196
|
# and container port assignments are visible in the `networkBindings`
|
6828
7197
|
# section of DescribeTasks API responses.
|
@@ -7022,7 +7391,7 @@ module Aws::ECS
|
|
7022
7391
|
end
|
7023
7392
|
|
7024
7393
|
# @!attribute [rw] setting
|
7025
|
-
# The current
|
7394
|
+
# The current setting for a resource.
|
7026
7395
|
# @return [Types::Setting]
|
7027
7396
|
#
|
7028
7397
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/PutAccountSettingDefaultResponse AWS API Documentation
|
@@ -7067,6 +7436,11 @@ module Aws::ECS
|
|
7067
7436
|
# account unless an IAM user or role explicitly overrides these
|
7068
7437
|
# settings. If this field is omitted, the setting is changed only for
|
7069
7438
|
# the authenticated user.
|
7439
|
+
#
|
7440
|
+
# <note markdown="1"> Federated users assume the account setting of the root user and
|
7441
|
+
# can't have explicit account settings set for them.
|
7442
|
+
#
|
7443
|
+
# </note>
|
7070
7444
|
# @return [String]
|
7071
7445
|
#
|
7072
7446
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/PutAccountSettingRequest AWS API Documentation
|
@@ -7211,11 +7585,7 @@ module Aws::ECS
|
|
7211
7585
|
end
|
7212
7586
|
|
7213
7587
|
# @!attribute [rw] cluster
|
7214
|
-
#
|
7215
|
-
# can run task requests. Each account receives a default cluster the
|
7216
|
-
# first time you use the Amazon ECS service, but you may also create
|
7217
|
-
# other clusters. Clusters may contain more than one instance type
|
7218
|
-
# simultaneously.
|
7588
|
+
# Details about the cluster.
|
7219
7589
|
# @return [Types::Cluster]
|
7220
7590
|
#
|
7221
7591
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/PutClusterCapacityProvidersResponse AWS API Documentation
|
@@ -7601,6 +7971,9 @@ module Aws::ECS
|
|
7601
7971
|
# device_type: "String", # required
|
7602
7972
|
# },
|
7603
7973
|
# ],
|
7974
|
+
# ephemeral_storage: {
|
7975
|
+
# size_in_gi_b: 1, # required
|
7976
|
+
# },
|
7604
7977
|
# }
|
7605
7978
|
#
|
7606
7979
|
# @!attribute [rw] family
|
@@ -7709,9 +8082,10 @@ module Aws::ECS
|
|
7709
8082
|
#
|
7710
8083
|
# @!attribute [rw] requires_compatibilities
|
7711
8084
|
# The task launch type that Amazon ECS should validate the task
|
7712
|
-
# definition against.
|
7713
|
-
#
|
7714
|
-
# specified,
|
8085
|
+
# definition against. A client exception is returned if the task
|
8086
|
+
# definition doesn't validate against the compatibilities specified.
|
8087
|
+
# If no value is specified, the parameter is omitted from the
|
8088
|
+
# response.
|
7715
8089
|
# @return [Array<String>]
|
7716
8090
|
#
|
7717
8091
|
# @!attribute [rw] cpu
|
@@ -7832,8 +8206,8 @@ module Aws::ECS
|
|
7832
8206
|
# risk of undesired process namespace expose. For more information,
|
7833
8207
|
# see [Docker security][2].
|
7834
8208
|
#
|
7835
|
-
# <note markdown="1"> This parameter is not supported for Windows containers or tasks
|
7836
|
-
#
|
8209
|
+
# <note markdown="1"> This parameter is not supported for Windows containers or tasks run
|
8210
|
+
# on AWS Fargate.
|
7837
8211
|
#
|
7838
8212
|
# </note>
|
7839
8213
|
#
|
@@ -7873,8 +8247,8 @@ module Aws::ECS
|
|
7873
8247
|
# * For tasks that use the `task` IPC mode, IPC namespace related
|
7874
8248
|
# `systemControls` will apply to all containers within a task.
|
7875
8249
|
#
|
7876
|
-
# <note markdown="1"> This parameter is not supported for Windows containers or tasks
|
7877
|
-
#
|
8250
|
+
# <note markdown="1"> This parameter is not supported for Windows containers or tasks run
|
8251
|
+
# on AWS Fargate.
|
7878
8252
|
#
|
7879
8253
|
# </note>
|
7880
8254
|
#
|
@@ -7888,17 +8262,18 @@ module Aws::ECS
|
|
7888
8262
|
# @!attribute [rw] proxy_configuration
|
7889
8263
|
# The configuration details for the App Mesh proxy.
|
7890
8264
|
#
|
7891
|
-
# For tasks
|
7892
|
-
# at least version 1.26.0 of the container agent and at
|
7893
|
-
# 1.26.0-1 of the `ecs-init` package to enable a proxy
|
7894
|
-
# If your container instances are launched from the
|
7895
|
-
# ECS-optimized AMI version `20190301` or later, then they
|
7896
|
-
# required versions of the container agent and `ecs-init`.
|
7897
|
-
# information, see [Amazon ECS-optimized
|
8265
|
+
# For tasks hosted on Amazon EC2 instances, the container instances
|
8266
|
+
# require at least version `1.26.0` of the container agent and at
|
8267
|
+
# least version `1.26.0-1` of the `ecs-init` package to enable a proxy
|
8268
|
+
# configuration. If your container instances are launched from the
|
8269
|
+
# Amazon ECS-optimized AMI version `20190301` or later, then they
|
8270
|
+
# contain the required versions of the container agent and `ecs-init`.
|
8271
|
+
# For more information, see [Amazon ECS-optimized AMI versions][1] in
|
8272
|
+
# the *Amazon Elastic Container Service Developer Guide*.
|
7898
8273
|
#
|
7899
8274
|
#
|
7900
8275
|
#
|
7901
|
-
# [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-
|
8276
|
+
# [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-ami-versions.html
|
7902
8277
|
# @return [Types::ProxyConfiguration]
|
7903
8278
|
#
|
7904
8279
|
# @!attribute [rw] inference_accelerators
|
@@ -7906,6 +8281,23 @@ module Aws::ECS
|
|
7906
8281
|
# task.
|
7907
8282
|
# @return [Array<Types::InferenceAccelerator>]
|
7908
8283
|
#
|
8284
|
+
# @!attribute [rw] ephemeral_storage
|
8285
|
+
# The amount of ephemeral storage to allocate for the task. This
|
8286
|
+
# parameter is used to expand the total amount of ephemeral storage
|
8287
|
+
# available, beyond the default amount, for tasks hosted on AWS
|
8288
|
+
# Fargate. For more information, see [Fargate task storage][1] in the
|
8289
|
+
# *Amazon ECS User Guide for AWS Fargate*.
|
8290
|
+
#
|
8291
|
+
# <note markdown="1"> This parameter is only supported for tasks hosted on AWS Fargate
|
8292
|
+
# using platform version `1.4.0` or later.
|
8293
|
+
#
|
8294
|
+
# </note>
|
8295
|
+
#
|
8296
|
+
#
|
8297
|
+
#
|
8298
|
+
# [1]: https://docs.aws.amazon.com/AmazonECS/latest/userguide/using_data_volumes.html
|
8299
|
+
# @return [Types::EphemeralStorage]
|
8300
|
+
#
|
7909
8301
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/RegisterTaskDefinitionRequest AWS API Documentation
|
7910
8302
|
#
|
7911
8303
|
class RegisterTaskDefinitionRequest < Struct.new(
|
@@ -7923,7 +8315,8 @@ module Aws::ECS
|
|
7923
8315
|
:pid_mode,
|
7924
8316
|
:ipc_mode,
|
7925
8317
|
:proxy_configuration,
|
7926
|
-
:inference_accelerators
|
8318
|
+
:inference_accelerators,
|
8319
|
+
:ephemeral_storage)
|
7927
8320
|
SENSITIVE = []
|
7928
8321
|
include Aws::Structure
|
7929
8322
|
end
|
@@ -8105,6 +8498,7 @@ module Aws::ECS
|
|
8105
8498
|
# cluster: "String",
|
8106
8499
|
# count: 1,
|
8107
8500
|
# enable_ecs_managed_tags: false,
|
8501
|
+
# enable_execute_command: false,
|
8108
8502
|
# group: "String",
|
8109
8503
|
# launch_type: "EC2", # accepts EC2, FARGATE
|
8110
8504
|
# network_configuration: {
|
@@ -8152,6 +8546,9 @@ module Aws::ECS
|
|
8152
8546
|
# execution_role_arn: "String",
|
8153
8547
|
# memory: "String",
|
8154
8548
|
# task_role_arn: "String",
|
8549
|
+
# ephemeral_storage: {
|
8550
|
+
# size_in_gi_b: 1, # required
|
8551
|
+
# },
|
8155
8552
|
# },
|
8156
8553
|
# placement_constraints: [
|
8157
8554
|
# {
|
@@ -8181,31 +8578,10 @@ module Aws::ECS
|
|
8181
8578
|
# @!attribute [rw] capacity_provider_strategy
|
8182
8579
|
# The capacity provider strategy to use for the task.
|
8183
8580
|
#
|
8184
|
-
# A capacity provider strategy consists of one or more capacity
|
8185
|
-
# providers along with the `base` and `weight` to assign to them. A
|
8186
|
-
# capacity provider must be associated with the cluster to be used in
|
8187
|
-
# a capacity provider strategy. The PutClusterCapacityProviders API is
|
8188
|
-
# used to associate a capacity provider with a cluster. Only capacity
|
8189
|
-
# providers with an `ACTIVE` or `UPDATING` status can be used.
|
8190
|
-
#
|
8191
8581
|
# If a `capacityProviderStrategy` is specified, the `launchType`
|
8192
8582
|
# parameter must be omitted. If no `capacityProviderStrategy` or
|
8193
8583
|
# `launchType` is specified, the `defaultCapacityProviderStrategy` for
|
8194
8584
|
# the cluster is used.
|
8195
|
-
#
|
8196
|
-
# If specifying a capacity provider that uses an Auto Scaling group,
|
8197
|
-
# the capacity provider must already be created. New capacity
|
8198
|
-
# providers can be created with the CreateCapacityProvider API
|
8199
|
-
# operation.
|
8200
|
-
#
|
8201
|
-
# To use a AWS Fargate capacity provider, specify either the `FARGATE`
|
8202
|
-
# or `FARGATE_SPOT` capacity providers. The AWS Fargate capacity
|
8203
|
-
# providers are available to all accounts and only need to be
|
8204
|
-
# associated with a cluster to be used.
|
8205
|
-
#
|
8206
|
-
# The PutClusterCapacityProviders API operation is used to update the
|
8207
|
-
# list of available capacity providers for a cluster after the cluster
|
8208
|
-
# is created.
|
8209
8585
|
# @return [Array<Types::CapacityProviderStrategyItem>]
|
8210
8586
|
#
|
8211
8587
|
# @!attribute [rw] cluster
|
@@ -8229,6 +8605,12 @@ module Aws::ECS
|
|
8229
8605
|
# [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-using-tags.html
|
8230
8606
|
# @return [Boolean]
|
8231
8607
|
#
|
8608
|
+
# @!attribute [rw] enable_execute_command
|
8609
|
+
# Whether or not to enable the execute command functionality for the
|
8610
|
+
# containers in this task. If `true`, this enables execute command
|
8611
|
+
# functionality on all containers in the task.
|
8612
|
+
# @return [Boolean]
|
8613
|
+
#
|
8232
8614
|
# @!attribute [rw] group
|
8233
8615
|
# The name of the task group to associate with the task. The default
|
8234
8616
|
# value is the family name of the task definition (for example,
|
@@ -8236,9 +8618,17 @@ module Aws::ECS
|
|
8236
8618
|
# @return [String]
|
8237
8619
|
#
|
8238
8620
|
# @!attribute [rw] launch_type
|
8239
|
-
# The launch type on which to run your task.
|
8240
|
-
#
|
8241
|
-
# Service Developer Guide*.
|
8621
|
+
# The launch type on which to run your task. The accepted values are
|
8622
|
+
# `FARGATE` and `EC2`. For more information, see [Amazon ECS Launch
|
8623
|
+
# Types][1] in the *Amazon Elastic Container Service Developer Guide*.
|
8624
|
+
#
|
8625
|
+
# When a value of `FARGATE` is specified, your tasks are launched on
|
8626
|
+
# AWS Fargate On-Demand infrastructure. To use Fargate Spot, you must
|
8627
|
+
# use a capacity provider strategy with the `FARGATE_SPOT` capacity
|
8628
|
+
# provider.
|
8629
|
+
#
|
8630
|
+
# When a value of `EC2` is specified, your tasks are launched on
|
8631
|
+
# Amazon EC2 instances registered to your cluster.
|
8242
8632
|
#
|
8243
8633
|
# If a `launchType` is specified, the `capacityProviderStrategy`
|
8244
8634
|
# parameter must be omitted.
|
@@ -8372,6 +8762,7 @@ module Aws::ECS
|
|
8372
8762
|
:cluster,
|
8373
8763
|
:count,
|
8374
8764
|
:enable_ecs_managed_tags,
|
8765
|
+
:enable_execute_command,
|
8375
8766
|
:group,
|
8376
8767
|
:launch_type,
|
8377
8768
|
:network_configuration,
|
@@ -8730,6 +9121,12 @@ module Aws::ECS
|
|
8730
9121
|
# propagated.
|
8731
9122
|
# @return [String]
|
8732
9123
|
#
|
9124
|
+
# @!attribute [rw] enable_execute_command
|
9125
|
+
# Whether or not the execute command functionality is enabled for the
|
9126
|
+
# service. If `true`, the execute command functionality is enabled for
|
9127
|
+
# all containers in tasks as part of the service.
|
9128
|
+
# @return [Boolean]
|
9129
|
+
#
|
8733
9130
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/Service AWS API Documentation
|
8734
9131
|
#
|
8735
9132
|
class Service < Struct.new(
|
@@ -8761,7 +9158,8 @@ module Aws::ECS
|
|
8761
9158
|
:tags,
|
8762
9159
|
:created_by,
|
8763
9160
|
:enable_ecs_managed_tags,
|
8764
|
-
:propagate_tags
|
9161
|
+
:propagate_tags,
|
9162
|
+
:enable_execute_command)
|
8765
9163
|
SENSITIVE = []
|
8766
9164
|
include Aws::Structure
|
8767
9165
|
end
|
@@ -8868,6 +9266,33 @@ module Aws::ECS
|
|
8868
9266
|
include Aws::Structure
|
8869
9267
|
end
|
8870
9268
|
|
9269
|
+
# The details of the execute command session.
|
9270
|
+
#
|
9271
|
+
# @!attribute [rw] session_id
|
9272
|
+
# The ID of the execute command session.
|
9273
|
+
# @return [String]
|
9274
|
+
#
|
9275
|
+
# @!attribute [rw] stream_url
|
9276
|
+
# A URL back to managed agent on the container that the SSM Session
|
9277
|
+
# Manager client uses to send commands and receive output from the
|
9278
|
+
# container.
|
9279
|
+
# @return [String]
|
9280
|
+
#
|
9281
|
+
# @!attribute [rw] token_value
|
9282
|
+
# An encrypted token value containing session and caller information.
|
9283
|
+
# Used to authenticate the connection to the container.
|
9284
|
+
# @return [String]
|
9285
|
+
#
|
9286
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/Session AWS API Documentation
|
9287
|
+
#
|
9288
|
+
class Session < Struct.new(
|
9289
|
+
:session_id,
|
9290
|
+
:stream_url,
|
9291
|
+
:token_value)
|
9292
|
+
SENSITIVE = [:token_value]
|
9293
|
+
include Aws::Structure
|
9294
|
+
end
|
9295
|
+
|
8871
9296
|
# The current account setting for a resource.
|
8872
9297
|
#
|
8873
9298
|
# @!attribute [rw] name
|
@@ -8902,6 +9327,7 @@ module Aws::ECS
|
|
8902
9327
|
# cluster: "String",
|
8903
9328
|
# container_instances: ["String"], # required
|
8904
9329
|
# enable_ecs_managed_tags: false,
|
9330
|
+
# enable_execute_command: false,
|
8905
9331
|
# group: "String",
|
8906
9332
|
# network_configuration: {
|
8907
9333
|
# awsvpc_configuration: {
|
@@ -8948,6 +9374,9 @@ module Aws::ECS
|
|
8948
9374
|
# execution_role_arn: "String",
|
8949
9375
|
# memory: "String",
|
8950
9376
|
# task_role_arn: "String",
|
9377
|
+
# ephemeral_storage: {
|
9378
|
+
# size_in_gi_b: 1, # required
|
9379
|
+
# },
|
8951
9380
|
# },
|
8952
9381
|
# propagate_tags: "TASK_DEFINITION", # accepts TASK_DEFINITION, SERVICE
|
8953
9382
|
# reference_id: "String",
|
@@ -8983,6 +9412,12 @@ module Aws::ECS
|
|
8983
9412
|
# [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-using-tags.html
|
8984
9413
|
# @return [Boolean]
|
8985
9414
|
#
|
9415
|
+
# @!attribute [rw] enable_execute_command
|
9416
|
+
# Whether or not the execute command functionality is enabled for the
|
9417
|
+
# task. If `true`, this enables execute command functionality on all
|
9418
|
+
# containers in the task.
|
9419
|
+
# @return [Boolean]
|
9420
|
+
#
|
8986
9421
|
# @!attribute [rw] group
|
8987
9422
|
# The name of the task group to associate with the task. The default
|
8988
9423
|
# value is the family name of the task definition (for example,
|
@@ -9077,6 +9512,7 @@ module Aws::ECS
|
|
9077
9512
|
:cluster,
|
9078
9513
|
:container_instances,
|
9079
9514
|
:enable_ecs_managed_tags,
|
9515
|
+
:enable_execute_command,
|
9080
9516
|
:group,
|
9081
9517
|
:network_configuration,
|
9082
9518
|
:overrides,
|
@@ -9312,6 +9748,14 @@ module Aws::ECS
|
|
9312
9748
|
# status: "String", # required
|
9313
9749
|
# },
|
9314
9750
|
# ],
|
9751
|
+
# managed_agents: [
|
9752
|
+
# {
|
9753
|
+
# container_name: "String", # required
|
9754
|
+
# managed_agent_name: "ExecuteCommandAgent", # required, accepts ExecuteCommandAgent
|
9755
|
+
# status: "String", # required
|
9756
|
+
# reason: "String",
|
9757
|
+
# },
|
9758
|
+
# ],
|
9315
9759
|
# pull_started_at: Time.now,
|
9316
9760
|
# pull_stopped_at: Time.now,
|
9317
9761
|
# execution_stopped_at: Time.now,
|
@@ -9342,6 +9786,10 @@ module Aws::ECS
|
|
9342
9786
|
# Any attachments associated with the state change request.
|
9343
9787
|
# @return [Array<Types::AttachmentStateChange>]
|
9344
9788
|
#
|
9789
|
+
# @!attribute [rw] managed_agents
|
9790
|
+
# The details for the managed agent associated with the task.
|
9791
|
+
# @return [Array<Types::ManagedAgentStateChange>]
|
9792
|
+
#
|
9345
9793
|
# @!attribute [rw] pull_started_at
|
9346
9794
|
# The Unix timestamp for when the container image pull began.
|
9347
9795
|
# @return [Time]
|
@@ -9363,6 +9811,7 @@ module Aws::ECS
|
|
9363
9811
|
:reason,
|
9364
9812
|
:containers,
|
9365
9813
|
:attachments,
|
9814
|
+
:managed_agents,
|
9366
9815
|
:pull_started_at,
|
9367
9816
|
:pull_stopped_at,
|
9368
9817
|
:execution_stopped_at)
|
@@ -9555,6 +10004,13 @@ module Aws::ECS
|
|
9555
10004
|
#
|
9556
10005
|
class TagResourceResponse < Aws::EmptyStructure; end
|
9557
10006
|
|
10007
|
+
# The target container is not properly configured with the execute
|
10008
|
+
# command agent or the container is no longer active or running.
|
10009
|
+
#
|
10010
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/TargetNotConnectedException AWS API Documentation
|
10011
|
+
#
|
10012
|
+
class TargetNotConnectedException < Aws::EmptyStructure; end
|
10013
|
+
|
9558
10014
|
# The specified target could not be found. You can view your available
|
9559
10015
|
# container instances with ListContainerInstances. Amazon ECS container
|
9560
10016
|
# instances are cluster-specific and Region-specific.
|
@@ -9650,6 +10106,12 @@ module Aws::ECS
|
|
9650
10106
|
# [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-lifecycle.html
|
9651
10107
|
# @return [String]
|
9652
10108
|
#
|
10109
|
+
# @!attribute [rw] enable_execute_command
|
10110
|
+
# Whether or not execute command functionality is enabled for this
|
10111
|
+
# task. If `true`, this enables execute command functionality on all
|
10112
|
+
# containers in the task.
|
10113
|
+
# @return [Boolean]
|
10114
|
+
#
|
9653
10115
|
# @!attribute [rw] execution_stopped_at
|
9654
10116
|
# The Unix timestamp for when the task execution stopped.
|
9655
10117
|
# @return [Time]
|
@@ -9832,6 +10294,10 @@ module Aws::ECS
|
|
9832
10294
|
# version in your event stream is current.
|
9833
10295
|
# @return [Integer]
|
9834
10296
|
#
|
10297
|
+
# @!attribute [rw] ephemeral_storage
|
10298
|
+
# The ephemeral storage settings for the task.
|
10299
|
+
# @return [Types::EphemeralStorage]
|
10300
|
+
#
|
9835
10301
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/Task AWS API Documentation
|
9836
10302
|
#
|
9837
10303
|
class Task < Struct.new(
|
@@ -9847,6 +10313,7 @@ module Aws::ECS
|
|
9847
10313
|
:cpu,
|
9848
10314
|
:created_at,
|
9849
10315
|
:desired_status,
|
10316
|
+
:enable_execute_command,
|
9850
10317
|
:execution_stopped_at,
|
9851
10318
|
:group,
|
9852
10319
|
:health_status,
|
@@ -9867,7 +10334,8 @@ module Aws::ECS
|
|
9867
10334
|
:tags,
|
9868
10335
|
:task_arn,
|
9869
10336
|
:task_definition_arn,
|
9870
|
-
:version
|
10337
|
+
:version,
|
10338
|
+
:ephemeral_storage)
|
9871
10339
|
SENSITIVE = []
|
9872
10340
|
include Aws::Structure
|
9873
10341
|
end
|
@@ -9916,7 +10384,7 @@ module Aws::ECS
|
|
9916
10384
|
# option is set when you launch the Amazon ECS-optimized Windows AMI.
|
9917
10385
|
# Your containers must also run some configuration code in order to
|
9918
10386
|
# take advantage of the feature. For more information, see [Windows
|
9919
|
-
# IAM
|
10387
|
+
# IAM roles for tasks][2] in the *Amazon Elastic Container Service
|
9920
10388
|
# Developer Guide*.
|
9921
10389
|
#
|
9922
10390
|
#
|
@@ -10003,18 +10471,18 @@ module Aws::ECS
|
|
10003
10471
|
# @return [Integer]
|
10004
10472
|
#
|
10005
10473
|
# @!attribute [rw] volumes
|
10006
|
-
# The list of volume definitions for the task.
|
10474
|
+
# The list of data volume definitions for the task. For more
|
10475
|
+
# information, see [Using data volumes in tasks][1] in the *Amazon
|
10476
|
+
# Elastic Container Service Developer Guide*.
|
10007
10477
|
#
|
10008
|
-
#
|
10009
|
-
#
|
10478
|
+
# <note markdown="1"> The `host` and `sourcePath` parameters are not supported for tasks
|
10479
|
+
# run on AWS Fargate.
|
10010
10480
|
#
|
10011
|
-
#
|
10012
|
-
# defaults, see [Amazon ECS Task Definitions][1] in the *Amazon
|
10013
|
-
# Elastic Container Service Developer Guide*.
|
10481
|
+
# </note>
|
10014
10482
|
#
|
10015
10483
|
#
|
10016
10484
|
#
|
10017
|
-
# [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/
|
10485
|
+
# [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_data_volumes.html
|
10018
10486
|
# @return [Array<Types::Volume>]
|
10019
10487
|
#
|
10020
10488
|
# @!attribute [rw] status
|
@@ -10022,20 +10490,37 @@ module Aws::ECS
|
|
10022
10490
|
# @return [String]
|
10023
10491
|
#
|
10024
10492
|
# @!attribute [rw] requires_attributes
|
10025
|
-
# The container instance attributes required by your task.
|
10026
|
-
#
|
10493
|
+
# The container instance attributes required by your task. When an
|
10494
|
+
# Amazon EC2 instance is registered to your cluster, the Amazon ECS
|
10495
|
+
# container agent assigns some standard attributes to the instance.
|
10496
|
+
# You can apply custom attributes, specified as key-value pairs using
|
10497
|
+
# the Amazon ECS console or the PutAttributes API. These attributes
|
10498
|
+
# are used when considering task placement for tasks hosted on Amazon
|
10499
|
+
# EC2 instances. For more information, see [Attributes][1] in the
|
10500
|
+
# *Amazon Elastic Container Service Developer Guide*.
|
10501
|
+
#
|
10502
|
+
# <note markdown="1"> This parameter is not supported for tasks run on AWS Fargate.
|
10503
|
+
#
|
10504
|
+
# </note>
|
10505
|
+
#
|
10506
|
+
#
|
10507
|
+
#
|
10508
|
+
# [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement-constraints.html#attributes
|
10027
10509
|
# @return [Array<Types::Attribute>]
|
10028
10510
|
#
|
10029
10511
|
# @!attribute [rw] placement_constraints
|
10030
|
-
# An array of placement constraint objects to use for tasks.
|
10031
|
-
#
|
10032
|
-
#
|
10512
|
+
# An array of placement constraint objects to use for tasks.
|
10513
|
+
#
|
10514
|
+
# <note markdown="1"> This parameter is not supported for tasks run on AWS Fargate.
|
10515
|
+
#
|
10516
|
+
# </note>
|
10033
10517
|
# @return [Array<Types::TaskDefinitionPlacementConstraint>]
|
10034
10518
|
#
|
10035
10519
|
# @!attribute [rw] compatibilities
|
10036
|
-
# The launch
|
10037
|
-
#
|
10038
|
-
# Service Developer
|
10520
|
+
# The task launch types the task definition validated against during
|
10521
|
+
# task definition registration. For more information, see [Amazon ECS
|
10522
|
+
# launch types][1] in the *Amazon Elastic Container Service Developer
|
10523
|
+
# Guide*.
|
10039
10524
|
#
|
10040
10525
|
#
|
10041
10526
|
#
|
@@ -10043,8 +10528,9 @@ module Aws::ECS
|
|
10043
10528
|
# @return [Array<String>]
|
10044
10529
|
#
|
10045
10530
|
# @!attribute [rw] requires_compatibilities
|
10046
|
-
# The launch
|
10047
|
-
#
|
10531
|
+
# The task launch types the task definition was validated against. To
|
10532
|
+
# determine which task launch types the task definition is validated
|
10533
|
+
# for, see the TaskDefinition$compatibilities parameter.
|
10048
10534
|
# @return [Array<String>]
|
10049
10535
|
#
|
10050
10536
|
# @!attribute [rw] cpu
|
@@ -10074,16 +10560,16 @@ module Aws::ECS
|
|
10074
10560
|
# @!attribute [rw] memory
|
10075
10561
|
# The amount (in MiB) of memory used by the task.
|
10076
10562
|
#
|
10077
|
-
# If
|
10078
|
-
# memory value or a container-level memory value.
|
10079
|
-
# optional and any value can be used. If a task-level
|
10080
|
-
# specified then the container-level memory value is
|
10081
|
-
# more information regarding container-level memory and
|
10082
|
-
# reservation, see [ContainerDefinition][1].
|
10563
|
+
# If your tasks will be run on Amazon EC2 instances, you must specify
|
10564
|
+
# either a task-level memory value or a container-level memory value.
|
10565
|
+
# This field is optional and any value can be used. If a task-level
|
10566
|
+
# memory value is specified then the container-level memory value is
|
10567
|
+
# optional. For more information regarding container-level memory and
|
10568
|
+
# memory reservation, see [ContainerDefinition][1].
|
10083
10569
|
#
|
10084
|
-
# If
|
10085
|
-
# must use one of the following values, which determines your
|
10086
|
-
# valid values for the `cpu` parameter:
|
10570
|
+
# If your tasks will be run on AWS Fargate, this field is required and
|
10571
|
+
# you must use one of the following values, which determines your
|
10572
|
+
# range of valid values for the `cpu` parameter:
|
10087
10573
|
#
|
10088
10574
|
# * 512 (0.5 GB), 1024 (1 GB), 2048 (2 GB) - Available `cpu` values:
|
10089
10575
|
# 256 (.25 vCPU)
|
@@ -10123,8 +10609,8 @@ module Aws::ECS
|
|
10123
10609
|
# risk of undesired process namespace expose. For more information,
|
10124
10610
|
# see [Docker security][2].
|
10125
10611
|
#
|
10126
|
-
# <note markdown="1"> This parameter is not supported for Windows containers or tasks
|
10127
|
-
#
|
10612
|
+
# <note markdown="1"> This parameter is not supported for Windows containers or tasks run
|
10613
|
+
# on AWS Fargate.
|
10128
10614
|
#
|
10129
10615
|
# </note>
|
10130
10616
|
#
|
@@ -10164,8 +10650,8 @@ module Aws::ECS
|
|
10164
10650
|
# * For tasks that use the `task` IPC mode, IPC namespace related
|
10165
10651
|
# `systemControls` will apply to all containers within a task.
|
10166
10652
|
#
|
10167
|
-
# <note markdown="1"> This parameter is not supported for Windows containers or tasks
|
10168
|
-
#
|
10653
|
+
# <note markdown="1"> This parameter is not supported for Windows containers or tasks run
|
10654
|
+
# on AWS Fargate.
|
10169
10655
|
#
|
10170
10656
|
# </note>
|
10171
10657
|
#
|
@@ -10193,6 +10679,23 @@ module Aws::ECS
|
|
10193
10679
|
# [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-optimized_AMI.html
|
10194
10680
|
# @return [Types::ProxyConfiguration]
|
10195
10681
|
#
|
10682
|
+
# @!attribute [rw] registered_at
|
10683
|
+
# The Unix timestamp for when the task definition was registered.
|
10684
|
+
# @return [Time]
|
10685
|
+
#
|
10686
|
+
# @!attribute [rw] deregistered_at
|
10687
|
+
# The Unix timestamp for when the task definition was deregistered.
|
10688
|
+
# @return [Time]
|
10689
|
+
#
|
10690
|
+
# @!attribute [rw] registered_by
|
10691
|
+
# The principal that registered the task definition.
|
10692
|
+
# @return [String]
|
10693
|
+
#
|
10694
|
+
# @!attribute [rw] ephemeral_storage
|
10695
|
+
# The ephemeral storage settings to use for tasks run with the task
|
10696
|
+
# definition.
|
10697
|
+
# @return [Types::EphemeralStorage]
|
10698
|
+
#
|
10196
10699
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/TaskDefinition AWS API Documentation
|
10197
10700
|
#
|
10198
10701
|
class TaskDefinition < Struct.new(
|
@@ -10214,17 +10717,21 @@ module Aws::ECS
|
|
10214
10717
|
:inference_accelerators,
|
10215
10718
|
:pid_mode,
|
10216
10719
|
:ipc_mode,
|
10217
|
-
:proxy_configuration
|
10720
|
+
:proxy_configuration,
|
10721
|
+
:registered_at,
|
10722
|
+
:deregistered_at,
|
10723
|
+
:registered_by,
|
10724
|
+
:ephemeral_storage)
|
10218
10725
|
SENSITIVE = []
|
10219
10726
|
include Aws::Structure
|
10220
10727
|
end
|
10221
10728
|
|
10222
10729
|
# An object representing a constraint on task placement in the task
|
10223
|
-
# definition. For more information, see [Task
|
10730
|
+
# definition. For more information, see [Task placement constraints][1]
|
10224
10731
|
# in the *Amazon Elastic Container Service Developer Guide*.
|
10225
10732
|
#
|
10226
|
-
# <note markdown="1">
|
10227
|
-
#
|
10733
|
+
# <note markdown="1"> Task placement constraints are not supported for tasks run on AWS
|
10734
|
+
# Fargate.
|
10228
10735
|
#
|
10229
10736
|
# </note>
|
10230
10737
|
#
|
@@ -10247,7 +10754,7 @@ module Aws::ECS
|
|
10247
10754
|
#
|
10248
10755
|
# @!attribute [rw] expression
|
10249
10756
|
# A cluster query language expression to apply to the constraint. For
|
10250
|
-
# more information, see [Cluster
|
10757
|
+
# more information, see [Cluster query language][1] in the *Amazon
|
10251
10758
|
# Elastic Container Service Developer Guide*.
|
10252
10759
|
#
|
10253
10760
|
#
|
@@ -10307,6 +10814,9 @@ module Aws::ECS
|
|
10307
10814
|
# execution_role_arn: "String",
|
10308
10815
|
# memory: "String",
|
10309
10816
|
# task_role_arn: "String",
|
10817
|
+
# ephemeral_storage: {
|
10818
|
+
# size_in_gi_b: 1, # required
|
10819
|
+
# },
|
10310
10820
|
# }
|
10311
10821
|
#
|
10312
10822
|
# @!attribute [rw] container_overrides
|
@@ -10336,6 +10846,15 @@ module Aws::ECS
|
|
10336
10846
|
# permissions that are specified in this role.
|
10337
10847
|
# @return [String]
|
10338
10848
|
#
|
10849
|
+
# @!attribute [rw] ephemeral_storage
|
10850
|
+
# The ephemeral storage setting override for the task.
|
10851
|
+
#
|
10852
|
+
# <note markdown="1"> This parameter is only supported for tasks hosted on AWS Fargate
|
10853
|
+
# using platform version `1.4.0` or later.
|
10854
|
+
#
|
10855
|
+
# </note>
|
10856
|
+
# @return [Types::EphemeralStorage]
|
10857
|
+
#
|
10339
10858
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/TaskOverride AWS API Documentation
|
10340
10859
|
#
|
10341
10860
|
class TaskOverride < Struct.new(
|
@@ -10344,7 +10863,8 @@ module Aws::ECS
|
|
10344
10863
|
:inference_accelerator_overrides,
|
10345
10864
|
:execution_role_arn,
|
10346
10865
|
:memory,
|
10347
|
-
:task_role_arn
|
10866
|
+
:task_role_arn,
|
10867
|
+
:ephemeral_storage)
|
10348
10868
|
SENSITIVE = []
|
10349
10869
|
include Aws::Structure
|
10350
10870
|
end
|
@@ -10444,7 +10964,7 @@ module Aws::ECS
|
|
10444
10964
|
#
|
10445
10965
|
# @!attribute [rw] launch_type
|
10446
10966
|
# The launch type the tasks in the task set are using. For more
|
10447
|
-
# information, see [Amazon ECS
|
10967
|
+
# information, see [Amazon ECS launch types][1] in the *Amazon Elastic
|
10448
10968
|
# Container Service Developer Guide*.
|
10449
10969
|
#
|
10450
10970
|
#
|
@@ -10457,11 +10977,10 @@ module Aws::ECS
|
|
10457
10977
|
# @return [Array<Types::CapacityProviderStrategyItem>]
|
10458
10978
|
#
|
10459
10979
|
# @!attribute [rw] platform_version
|
10460
|
-
# The platform version on which the tasks in the task set
|
10461
|
-
# A platform version is only specified for tasks
|
10462
|
-
#
|
10463
|
-
#
|
10464
|
-
# Versions][1] in the *Amazon Elastic Container Service Developer
|
10980
|
+
# The AWS Fargate platform version on which the tasks in the task set
|
10981
|
+
# are running. A platform version is only specified for tasks run on
|
10982
|
+
# AWS Fargate. For more information, see [AWS Fargate platform
|
10983
|
+
# versions][1] in the *Amazon Elastic Container Service Developer
|
10465
10984
|
# Guide*.
|
10466
10985
|
#
|
10467
10986
|
#
|
@@ -10479,7 +10998,7 @@ module Aws::ECS
|
|
10479
10998
|
#
|
10480
10999
|
# @!attribute [rw] service_registries
|
10481
11000
|
# The details of the service discovery registries to assign to this
|
10482
|
-
# task set. For more information, see [Service
|
11001
|
+
# task set. For more information, see [Service discovery][1].
|
10483
11002
|
#
|
10484
11003
|
#
|
10485
11004
|
#
|
@@ -10627,6 +11146,13 @@ module Aws::ECS
|
|
10627
11146
|
|
10628
11147
|
# The `ulimit` settings to pass to the container.
|
10629
11148
|
#
|
11149
|
+
# Amazon ECS tasks hosted on Fargate use the default resource limit
|
11150
|
+
# values set by the operating system with the exception of the `nofile`
|
11151
|
+
# resource limit parameter which Fargate overrides. The `nofile`
|
11152
|
+
# resource limit sets a restriction on the number of open files that a
|
11153
|
+
# container can use. The default `nofile` soft limit is `1024` and hard
|
11154
|
+
# limit is `4096`.
|
11155
|
+
#
|
10630
11156
|
# @note When making an API call, you may pass Ulimit
|
10631
11157
|
# data as a hash:
|
10632
11158
|
#
|
@@ -10714,12 +11240,12 @@ module Aws::ECS
|
|
10714
11240
|
# }
|
10715
11241
|
#
|
10716
11242
|
# @!attribute [rw] name
|
10717
|
-
#
|
10718
|
-
# group capacity provider.
|
11243
|
+
# The name of the capacity provider to update.
|
10719
11244
|
# @return [String]
|
10720
11245
|
#
|
10721
11246
|
# @!attribute [rw] auto_scaling_group_provider
|
10722
|
-
#
|
11247
|
+
# An object representing the parameters to update for the Auto Scaling
|
11248
|
+
# group capacity provider.
|
10723
11249
|
# @return [Types::AutoScalingGroupProviderUpdate]
|
10724
11250
|
#
|
10725
11251
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/UpdateCapacityProviderRequest AWS API Documentation
|
@@ -10732,7 +11258,7 @@ module Aws::ECS
|
|
10732
11258
|
end
|
10733
11259
|
|
10734
11260
|
# @!attribute [rw] capacity_provider
|
10735
|
-
#
|
11261
|
+
# Details about the capacity provider.
|
10736
11262
|
# @return [Types::CapacityProvider]
|
10737
11263
|
#
|
10738
11264
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/UpdateCapacityProviderResponse AWS API Documentation
|
@@ -10743,6 +11269,66 @@ module Aws::ECS
|
|
10743
11269
|
include Aws::Structure
|
10744
11270
|
end
|
10745
11271
|
|
11272
|
+
# @note When making an API call, you may pass UpdateClusterRequest
|
11273
|
+
# data as a hash:
|
11274
|
+
#
|
11275
|
+
# {
|
11276
|
+
# cluster: "String", # required
|
11277
|
+
# settings: [
|
11278
|
+
# {
|
11279
|
+
# name: "containerInsights", # accepts containerInsights
|
11280
|
+
# value: "String",
|
11281
|
+
# },
|
11282
|
+
# ],
|
11283
|
+
# configuration: {
|
11284
|
+
# execute_command_configuration: {
|
11285
|
+
# kms_key_id: "String",
|
11286
|
+
# logging: "NONE", # accepts NONE, DEFAULT, OVERRIDE
|
11287
|
+
# log_configuration: {
|
11288
|
+
# cloud_watch_log_group_name: "String",
|
11289
|
+
# cloud_watch_encryption_enabled: false,
|
11290
|
+
# s3_bucket_name: "String",
|
11291
|
+
# s3_encryption_enabled: false,
|
11292
|
+
# s3_key_prefix: "String",
|
11293
|
+
# },
|
11294
|
+
# },
|
11295
|
+
# },
|
11296
|
+
# }
|
11297
|
+
#
|
11298
|
+
# @!attribute [rw] cluster
|
11299
|
+
# The name of the cluster to modify the settings for.
|
11300
|
+
# @return [String]
|
11301
|
+
#
|
11302
|
+
# @!attribute [rw] settings
|
11303
|
+
# The cluster settings for your cluster.
|
11304
|
+
# @return [Array<Types::ClusterSetting>]
|
11305
|
+
#
|
11306
|
+
# @!attribute [rw] configuration
|
11307
|
+
# The execute command configuration for the cluster.
|
11308
|
+
# @return [Types::ClusterConfiguration]
|
11309
|
+
#
|
11310
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/UpdateClusterRequest AWS API Documentation
|
11311
|
+
#
|
11312
|
+
class UpdateClusterRequest < Struct.new(
|
11313
|
+
:cluster,
|
11314
|
+
:settings,
|
11315
|
+
:configuration)
|
11316
|
+
SENSITIVE = []
|
11317
|
+
include Aws::Structure
|
11318
|
+
end
|
11319
|
+
|
11320
|
+
# @!attribute [rw] cluster
|
11321
|
+
# Details about the cluster.
|
11322
|
+
# @return [Types::Cluster]
|
11323
|
+
#
|
11324
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/UpdateClusterResponse AWS API Documentation
|
11325
|
+
#
|
11326
|
+
class UpdateClusterResponse < Struct.new(
|
11327
|
+
:cluster)
|
11328
|
+
SENSITIVE = []
|
11329
|
+
include Aws::Structure
|
11330
|
+
end
|
11331
|
+
|
10746
11332
|
# @note When making an API call, you may pass UpdateClusterSettingsRequest
|
10747
11333
|
# data as a hash:
|
10748
11334
|
#
|
@@ -10777,11 +11363,7 @@ module Aws::ECS
|
|
10777
11363
|
end
|
10778
11364
|
|
10779
11365
|
# @!attribute [rw] cluster
|
10780
|
-
#
|
10781
|
-
# can run task requests. Each account receives a default cluster the
|
10782
|
-
# first time you use the Amazon ECS service, but you may also create
|
10783
|
-
# other clusters. Clusters may contain more than one instance type
|
10784
|
-
# simultaneously.
|
11366
|
+
# Details about the cluster
|
10785
11367
|
# @return [Types::Cluster]
|
10786
11368
|
#
|
10787
11369
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/UpdateClusterSettingsResponse AWS API Documentation
|
@@ -10935,10 +11517,7 @@ module Aws::ECS
|
|
10935
11517
|
end
|
10936
11518
|
|
10937
11519
|
# @!attribute [rw] task_set
|
10938
|
-
#
|
10939
|
-
# CodeDeploy or an `EXTERNAL` deployment. An Amazon ECS task set
|
10940
|
-
# includes details such as the desired number of tasks, how many tasks
|
10941
|
-
# are running, and whether the task set serves production traffic.
|
11520
|
+
# Details about the task set.
|
10942
11521
|
# @return [Types::TaskSet]
|
10943
11522
|
#
|
10944
11523
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/UpdateServicePrimaryTaskSetResponse AWS API Documentation
|
@@ -10994,6 +11573,7 @@ module Aws::ECS
|
|
10994
11573
|
# platform_version: "String",
|
10995
11574
|
# force_new_deployment: false,
|
10996
11575
|
# health_check_grace_period_seconds: 1,
|
11576
|
+
# enable_execute_command: false,
|
10997
11577
|
# }
|
10998
11578
|
#
|
10999
11579
|
# @!attribute [rw] cluster
|
@@ -11059,8 +11639,7 @@ module Aws::ECS
|
|
11059
11639
|
# @return [Types::DeploymentConfiguration]
|
11060
11640
|
#
|
11061
11641
|
# @!attribute [rw] network_configuration
|
11062
|
-
# An object representing the network configuration for
|
11063
|
-
# service.
|
11642
|
+
# An object representing the network configuration for the service.
|
11064
11643
|
# @return [Types::NetworkConfiguration]
|
11065
11644
|
#
|
11066
11645
|
# @!attribute [rw] placement_constraints
|
@@ -11122,6 +11701,15 @@ module Aws::ECS
|
|
11122
11701
|
# to come up.
|
11123
11702
|
# @return [Integer]
|
11124
11703
|
#
|
11704
|
+
# @!attribute [rw] enable_execute_command
|
11705
|
+
# If `true`, this enables execute command functionality on all task
|
11706
|
+
# containers.
|
11707
|
+
#
|
11708
|
+
# If you do not want to override the value that was set when the
|
11709
|
+
# service was created, you can set this to `null` when performing this
|
11710
|
+
# action.
|
11711
|
+
# @return [Boolean]
|
11712
|
+
#
|
11125
11713
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/UpdateServiceRequest AWS API Documentation
|
11126
11714
|
#
|
11127
11715
|
class UpdateServiceRequest < Struct.new(
|
@@ -11136,7 +11724,8 @@ module Aws::ECS
|
|
11136
11724
|
:placement_strategy,
|
11137
11725
|
:platform_version,
|
11138
11726
|
:force_new_deployment,
|
11139
|
-
:health_check_grace_period_seconds
|
11727
|
+
:health_check_grace_period_seconds,
|
11728
|
+
:enable_execute_command)
|
11140
11729
|
SENSITIVE = []
|
11141
11730
|
include Aws::Structure
|
11142
11731
|
end
|
@@ -11198,10 +11787,7 @@ module Aws::ECS
|
|
11198
11787
|
end
|
11199
11788
|
|
11200
11789
|
# @!attribute [rw] task_set
|
11201
|
-
#
|
11202
|
-
# CodeDeploy or an `EXTERNAL` deployment. An Amazon ECS task set
|
11203
|
-
# includes details such as the desired number of tasks, how many tasks
|
11204
|
-
# are running, and whether the task set serves production traffic.
|
11790
|
+
# Details about the task set.
|
11205
11791
|
# @return [Types::TaskSet]
|
11206
11792
|
#
|
11207
11793
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ecs-2014-11-13/UpdateTaskSetResponse AWS API Documentation
|
@@ -11327,9 +11913,13 @@ module Aws::ECS
|
|
11327
11913
|
#
|
11328
11914
|
# @!attribute [rw] docker_volume_configuration
|
11329
11915
|
# This parameter is specified when you are using Docker volumes.
|
11330
|
-
#
|
11331
|
-
#
|
11332
|
-
#
|
11916
|
+
#
|
11917
|
+
# Windows containers only support the use of the `local` driver. To
|
11918
|
+
# use bind mounts, specify the `host` parameter instead.
|
11919
|
+
#
|
11920
|
+
# <note markdown="1"> Docker volumes are not supported by tasks run on AWS Fargate.
|
11921
|
+
#
|
11922
|
+
# </note>
|
11333
11923
|
# @return [Types::DockerVolumeConfiguration]
|
11334
11924
|
#
|
11335
11925
|
# @!attribute [rw] efs_volume_configuration
|