aws-sdk-ecs 1.135.0 → 1.137.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -137,6 +137,13 @@ module Aws::ECS
137
137
  DockerLabelsMap = Shapes::MapShape.new(name: 'DockerLabelsMap')
138
138
  DockerVolumeConfiguration = Shapes::StructureShape.new(name: 'DockerVolumeConfiguration')
139
139
  Double = Shapes::FloatShape.new(name: 'Double')
140
+ EBSKMSKeyId = Shapes::StringShape.new(name: 'EBSKMSKeyId')
141
+ EBSResourceType = Shapes::StringShape.new(name: 'EBSResourceType')
142
+ EBSSnapshotId = Shapes::StringShape.new(name: 'EBSSnapshotId')
143
+ EBSTagSpecification = Shapes::StructureShape.new(name: 'EBSTagSpecification')
144
+ EBSTagSpecifications = Shapes::ListShape.new(name: 'EBSTagSpecifications')
145
+ EBSVolumeType = Shapes::StringShape.new(name: 'EBSVolumeType')
146
+ ECSVolumeName = Shapes::StringShape.new(name: 'ECSVolumeName')
140
147
  EFSAuthorizationConfig = Shapes::StructureShape.new(name: 'EFSAuthorizationConfig')
141
148
  EFSAuthorizationConfigIAM = Shapes::StringShape.new(name: 'EFSAuthorizationConfigIAM')
142
149
  EFSTransitEncryption = Shapes::StringShape.new(name: 'EFSTransitEncryption')
@@ -166,6 +173,7 @@ module Aws::ECS
166
173
  HostEntry = Shapes::StructureShape.new(name: 'HostEntry')
167
174
  HostEntryList = Shapes::ListShape.new(name: 'HostEntryList')
168
175
  HostVolumeProperties = Shapes::StructureShape.new(name: 'HostVolumeProperties')
176
+ IAMRoleArn = Shapes::StringShape.new(name: 'IAMRoleArn')
169
177
  InferenceAccelerator = Shapes::StructureShape.new(name: 'InferenceAccelerator')
170
178
  InferenceAcceleratorOverride = Shapes::StructureShape.new(name: 'InferenceAcceleratorOverride')
171
179
  InferenceAcceleratorOverrides = Shapes::ListShape.new(name: 'InferenceAcceleratorOverrides')
@@ -213,6 +221,7 @@ module Aws::ECS
213
221
  ManagedAgentStateChange = Shapes::StructureShape.new(name: 'ManagedAgentStateChange')
214
222
  ManagedAgentStateChanges = Shapes::ListShape.new(name: 'ManagedAgentStateChanges')
215
223
  ManagedAgents = Shapes::ListShape.new(name: 'ManagedAgents')
224
+ ManagedDraining = Shapes::StringShape.new(name: 'ManagedDraining')
216
225
  ManagedScaling = Shapes::StructureShape.new(name: 'ManagedScaling')
217
226
  ManagedScalingInstanceWarmupPeriod = Shapes::IntegerShape.new(name: 'ManagedScalingInstanceWarmupPeriod')
218
227
  ManagedScalingStatus = Shapes::StringShape.new(name: 'ManagedScalingStatus')
@@ -297,10 +306,13 @@ module Aws::ECS
297
306
  ServiceEvents = Shapes::ListShape.new(name: 'ServiceEvents')
298
307
  ServiceField = Shapes::StringShape.new(name: 'ServiceField')
299
308
  ServiceFieldList = Shapes::ListShape.new(name: 'ServiceFieldList')
309
+ ServiceManagedEBSVolumeConfiguration = Shapes::StructureShape.new(name: 'ServiceManagedEBSVolumeConfiguration')
300
310
  ServiceNotActiveException = Shapes::StructureShape.new(name: 'ServiceNotActiveException')
301
311
  ServiceNotFoundException = Shapes::StructureShape.new(name: 'ServiceNotFoundException')
302
312
  ServiceRegistries = Shapes::ListShape.new(name: 'ServiceRegistries')
303
313
  ServiceRegistry = Shapes::StructureShape.new(name: 'ServiceRegistry')
314
+ ServiceVolumeConfiguration = Shapes::StructureShape.new(name: 'ServiceVolumeConfiguration')
315
+ ServiceVolumeConfigurations = Shapes::ListShape.new(name: 'ServiceVolumeConfigurations')
304
316
  Services = Shapes::ListShape.new(name: 'Services')
305
317
  Session = Shapes::StructureShape.new(name: 'Session')
306
318
  Setting = Shapes::StructureShape.new(name: 'Setting')
@@ -347,6 +359,9 @@ module Aws::ECS
347
359
  TaskDefinitionStatus = Shapes::StringShape.new(name: 'TaskDefinitionStatus')
348
360
  TaskField = Shapes::StringShape.new(name: 'TaskField')
349
361
  TaskFieldList = Shapes::ListShape.new(name: 'TaskFieldList')
362
+ TaskFilesystemType = Shapes::StringShape.new(name: 'TaskFilesystemType')
363
+ TaskManagedEBSVolumeConfiguration = Shapes::StructureShape.new(name: 'TaskManagedEBSVolumeConfiguration')
364
+ TaskManagedEBSVolumeTerminationPolicy = Shapes::StructureShape.new(name: 'TaskManagedEBSVolumeTerminationPolicy')
350
365
  TaskOverride = Shapes::StructureShape.new(name: 'TaskOverride')
351
366
  TaskSet = Shapes::StructureShape.new(name: 'TaskSet')
352
367
  TaskSetField = Shapes::StringShape.new(name: 'TaskSetField')
@@ -354,6 +369,8 @@ module Aws::ECS
354
369
  TaskSetNotFoundException = Shapes::StructureShape.new(name: 'TaskSetNotFoundException')
355
370
  TaskSets = Shapes::ListShape.new(name: 'TaskSets')
356
371
  TaskStopCode = Shapes::StringShape.new(name: 'TaskStopCode')
372
+ TaskVolumeConfiguration = Shapes::StructureShape.new(name: 'TaskVolumeConfiguration')
373
+ TaskVolumeConfigurations = Shapes::ListShape.new(name: 'TaskVolumeConfigurations')
357
374
  Tasks = Shapes::ListShape.new(name: 'Tasks')
358
375
  Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
359
376
  Tmpfs = Shapes::StructureShape.new(name: 'Tmpfs')
@@ -421,10 +438,12 @@ module Aws::ECS
421
438
  AutoScalingGroupProvider.add_member(:auto_scaling_group_arn, Shapes::ShapeRef.new(shape: String, required: true, location_name: "autoScalingGroupArn"))
422
439
  AutoScalingGroupProvider.add_member(:managed_scaling, Shapes::ShapeRef.new(shape: ManagedScaling, location_name: "managedScaling"))
423
440
  AutoScalingGroupProvider.add_member(:managed_termination_protection, Shapes::ShapeRef.new(shape: ManagedTerminationProtection, location_name: "managedTerminationProtection"))
441
+ AutoScalingGroupProvider.add_member(:managed_draining, Shapes::ShapeRef.new(shape: ManagedDraining, location_name: "managedDraining"))
424
442
  AutoScalingGroupProvider.struct_class = Types::AutoScalingGroupProvider
425
443
 
426
444
  AutoScalingGroupProviderUpdate.add_member(:managed_scaling, Shapes::ShapeRef.new(shape: ManagedScaling, location_name: "managedScaling"))
427
445
  AutoScalingGroupProviderUpdate.add_member(:managed_termination_protection, Shapes::ShapeRef.new(shape: ManagedTerminationProtection, location_name: "managedTerminationProtection"))
446
+ AutoScalingGroupProviderUpdate.add_member(:managed_draining, Shapes::ShapeRef.new(shape: ManagedDraining, location_name: "managedDraining"))
428
447
  AutoScalingGroupProviderUpdate.struct_class = Types::AutoScalingGroupProviderUpdate
429
448
 
430
449
  AwsVpcConfiguration.add_member(:subnets, Shapes::ShapeRef.new(shape: StringList, required: true, location_name: "subnets"))
@@ -672,6 +691,7 @@ module Aws::ECS
672
691
  CreateServiceRequest.add_member(:propagate_tags, Shapes::ShapeRef.new(shape: PropagateTags, location_name: "propagateTags"))
673
692
  CreateServiceRequest.add_member(:enable_execute_command, Shapes::ShapeRef.new(shape: Boolean, location_name: "enableExecuteCommand"))
674
693
  CreateServiceRequest.add_member(:service_connect_configuration, Shapes::ShapeRef.new(shape: ServiceConnectConfiguration, location_name: "serviceConnectConfiguration"))
694
+ CreateServiceRequest.add_member(:volume_configurations, Shapes::ShapeRef.new(shape: ServiceVolumeConfigurations, location_name: "volumeConfigurations"))
675
695
  CreateServiceRequest.struct_class = Types::CreateServiceRequest
676
696
 
677
697
  CreateServiceResponse.add_member(:service, Shapes::ShapeRef.new(shape: Service, location_name: "service"))
@@ -763,6 +783,7 @@ module Aws::ECS
763
783
  Deployment.add_member(:rollout_state_reason, Shapes::ShapeRef.new(shape: String, location_name: "rolloutStateReason"))
764
784
  Deployment.add_member(:service_connect_configuration, Shapes::ShapeRef.new(shape: ServiceConnectConfiguration, location_name: "serviceConnectConfiguration"))
765
785
  Deployment.add_member(:service_connect_resources, Shapes::ShapeRef.new(shape: ServiceConnectServiceResourceList, location_name: "serviceConnectResources"))
786
+ Deployment.add_member(:volume_configurations, Shapes::ShapeRef.new(shape: ServiceVolumeConfigurations, location_name: "volumeConfigurations"))
766
787
  Deployment.struct_class = Types::Deployment
767
788
 
768
789
  DeploymentAlarms.add_member(:alarm_names, Shapes::ShapeRef.new(shape: StringList, required: true, location_name: "alarmNames"))
@@ -891,6 +912,13 @@ module Aws::ECS
891
912
  DockerVolumeConfiguration.add_member(:labels, Shapes::ShapeRef.new(shape: StringMap, location_name: "labels"))
892
913
  DockerVolumeConfiguration.struct_class = Types::DockerVolumeConfiguration
893
914
 
915
+ EBSTagSpecification.add_member(:resource_type, Shapes::ShapeRef.new(shape: EBSResourceType, required: true, location_name: "resourceType"))
916
+ EBSTagSpecification.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
917
+ EBSTagSpecification.add_member(:propagate_tags, Shapes::ShapeRef.new(shape: PropagateTags, location_name: "propagateTags"))
918
+ EBSTagSpecification.struct_class = Types::EBSTagSpecification
919
+
920
+ EBSTagSpecifications.member = Shapes::ShapeRef.new(shape: EBSTagSpecification)
921
+
894
922
  EFSAuthorizationConfig.add_member(:access_point_id, Shapes::ShapeRef.new(shape: String, location_name: "accessPointId"))
895
923
  EFSAuthorizationConfig.add_member(:iam, Shapes::ShapeRef.new(shape: EFSAuthorizationConfigIAM, location_name: "iam"))
896
924
  EFSAuthorizationConfig.struct_class = Types::EFSAuthorizationConfig
@@ -1365,6 +1393,7 @@ module Aws::ECS
1365
1393
  RunTaskRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
1366
1394
  RunTaskRequest.add_member(:task_definition, Shapes::ShapeRef.new(shape: String, required: true, location_name: "taskDefinition"))
1367
1395
  RunTaskRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
1396
+ RunTaskRequest.add_member(:volume_configurations, Shapes::ShapeRef.new(shape: TaskVolumeConfigurations, location_name: "volumeConfigurations"))
1368
1397
  RunTaskRequest.struct_class = Types::RunTaskRequest
1369
1398
 
1370
1399
  RunTaskResponse.add_member(:tasks, Shapes::ShapeRef.new(shape: Tasks, location_name: "tasks"))
@@ -1456,6 +1485,18 @@ module Aws::ECS
1456
1485
 
1457
1486
  ServiceFieldList.member = Shapes::ShapeRef.new(shape: ServiceField)
1458
1487
 
1488
+ ServiceManagedEBSVolumeConfiguration.add_member(:encrypted, Shapes::ShapeRef.new(shape: BoxedBoolean, location_name: "encrypted"))
1489
+ ServiceManagedEBSVolumeConfiguration.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: EBSKMSKeyId, location_name: "kmsKeyId"))
1490
+ ServiceManagedEBSVolumeConfiguration.add_member(:volume_type, Shapes::ShapeRef.new(shape: EBSVolumeType, location_name: "volumeType"))
1491
+ ServiceManagedEBSVolumeConfiguration.add_member(:size_in_gi_b, Shapes::ShapeRef.new(shape: BoxedInteger, location_name: "sizeInGiB"))
1492
+ ServiceManagedEBSVolumeConfiguration.add_member(:snapshot_id, Shapes::ShapeRef.new(shape: EBSSnapshotId, location_name: "snapshotId"))
1493
+ ServiceManagedEBSVolumeConfiguration.add_member(:iops, Shapes::ShapeRef.new(shape: BoxedInteger, location_name: "iops"))
1494
+ ServiceManagedEBSVolumeConfiguration.add_member(:throughput, Shapes::ShapeRef.new(shape: BoxedInteger, location_name: "throughput"))
1495
+ ServiceManagedEBSVolumeConfiguration.add_member(:tag_specifications, Shapes::ShapeRef.new(shape: EBSTagSpecifications, location_name: "tagSpecifications"))
1496
+ ServiceManagedEBSVolumeConfiguration.add_member(:role_arn, Shapes::ShapeRef.new(shape: IAMRoleArn, required: true, location_name: "roleArn"))
1497
+ ServiceManagedEBSVolumeConfiguration.add_member(:filesystem_type, Shapes::ShapeRef.new(shape: TaskFilesystemType, location_name: "filesystemType"))
1498
+ ServiceManagedEBSVolumeConfiguration.struct_class = Types::ServiceManagedEBSVolumeConfiguration
1499
+
1459
1500
  ServiceNotActiveException.struct_class = Types::ServiceNotActiveException
1460
1501
 
1461
1502
  ServiceNotFoundException.struct_class = Types::ServiceNotFoundException
@@ -1468,6 +1509,12 @@ module Aws::ECS
1468
1509
  ServiceRegistry.add_member(:container_port, Shapes::ShapeRef.new(shape: BoxedInteger, location_name: "containerPort"))
1469
1510
  ServiceRegistry.struct_class = Types::ServiceRegistry
1470
1511
 
1512
+ ServiceVolumeConfiguration.add_member(:name, Shapes::ShapeRef.new(shape: ECSVolumeName, required: true, location_name: "name"))
1513
+ ServiceVolumeConfiguration.add_member(:managed_ebs_volume, Shapes::ShapeRef.new(shape: ServiceManagedEBSVolumeConfiguration, location_name: "managedEBSVolume"))
1514
+ ServiceVolumeConfiguration.struct_class = Types::ServiceVolumeConfiguration
1515
+
1516
+ ServiceVolumeConfigurations.member = Shapes::ShapeRef.new(shape: ServiceVolumeConfiguration)
1517
+
1471
1518
  Services.member = Shapes::ShapeRef.new(shape: Service)
1472
1519
 
1473
1520
  Session.add_member(:session_id, Shapes::ShapeRef.new(shape: String, location_name: "sessionId"))
@@ -1495,6 +1542,7 @@ module Aws::ECS
1495
1542
  StartTaskRequest.add_member(:started_by, Shapes::ShapeRef.new(shape: String, location_name: "startedBy"))
1496
1543
  StartTaskRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
1497
1544
  StartTaskRequest.add_member(:task_definition, Shapes::ShapeRef.new(shape: String, required: true, location_name: "taskDefinition"))
1545
+ StartTaskRequest.add_member(:volume_configurations, Shapes::ShapeRef.new(shape: TaskVolumeConfigurations, location_name: "volumeConfigurations"))
1498
1546
  StartTaskRequest.struct_class = Types::StartTaskRequest
1499
1547
 
1500
1548
  StartTaskResponse.add_member(:tasks, Shapes::ShapeRef.new(shape: Tasks, location_name: "tasks"))
@@ -1651,6 +1699,22 @@ module Aws::ECS
1651
1699
 
1652
1700
  TaskFieldList.member = Shapes::ShapeRef.new(shape: TaskField)
1653
1701
 
1702
+ TaskManagedEBSVolumeConfiguration.add_member(:encrypted, Shapes::ShapeRef.new(shape: BoxedBoolean, location_name: "encrypted"))
1703
+ TaskManagedEBSVolumeConfiguration.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: EBSKMSKeyId, location_name: "kmsKeyId"))
1704
+ TaskManagedEBSVolumeConfiguration.add_member(:volume_type, Shapes::ShapeRef.new(shape: EBSVolumeType, location_name: "volumeType"))
1705
+ TaskManagedEBSVolumeConfiguration.add_member(:size_in_gi_b, Shapes::ShapeRef.new(shape: BoxedInteger, location_name: "sizeInGiB"))
1706
+ TaskManagedEBSVolumeConfiguration.add_member(:snapshot_id, Shapes::ShapeRef.new(shape: EBSSnapshotId, location_name: "snapshotId"))
1707
+ TaskManagedEBSVolumeConfiguration.add_member(:iops, Shapes::ShapeRef.new(shape: BoxedInteger, location_name: "iops"))
1708
+ TaskManagedEBSVolumeConfiguration.add_member(:throughput, Shapes::ShapeRef.new(shape: BoxedInteger, location_name: "throughput"))
1709
+ TaskManagedEBSVolumeConfiguration.add_member(:tag_specifications, Shapes::ShapeRef.new(shape: EBSTagSpecifications, location_name: "tagSpecifications"))
1710
+ TaskManagedEBSVolumeConfiguration.add_member(:role_arn, Shapes::ShapeRef.new(shape: IAMRoleArn, required: true, location_name: "roleArn"))
1711
+ TaskManagedEBSVolumeConfiguration.add_member(:termination_policy, Shapes::ShapeRef.new(shape: TaskManagedEBSVolumeTerminationPolicy, location_name: "terminationPolicy"))
1712
+ TaskManagedEBSVolumeConfiguration.add_member(:filesystem_type, Shapes::ShapeRef.new(shape: TaskFilesystemType, location_name: "filesystemType"))
1713
+ TaskManagedEBSVolumeConfiguration.struct_class = Types::TaskManagedEBSVolumeConfiguration
1714
+
1715
+ TaskManagedEBSVolumeTerminationPolicy.add_member(:delete_on_termination, Shapes::ShapeRef.new(shape: BoxedBoolean, required: true, location_name: "deleteOnTermination"))
1716
+ TaskManagedEBSVolumeTerminationPolicy.struct_class = Types::TaskManagedEBSVolumeTerminationPolicy
1717
+
1654
1718
  TaskOverride.add_member(:container_overrides, Shapes::ShapeRef.new(shape: ContainerOverrides, location_name: "containerOverrides"))
1655
1719
  TaskOverride.add_member(:cpu, Shapes::ShapeRef.new(shape: String, location_name: "cpu"))
1656
1720
  TaskOverride.add_member(:inference_accelerator_overrides, Shapes::ShapeRef.new(shape: InferenceAcceleratorOverrides, location_name: "inferenceAcceleratorOverrides"))
@@ -1692,6 +1756,12 @@ module Aws::ECS
1692
1756
 
1693
1757
  TaskSets.member = Shapes::ShapeRef.new(shape: TaskSet)
1694
1758
 
1759
+ TaskVolumeConfiguration.add_member(:name, Shapes::ShapeRef.new(shape: ECSVolumeName, required: true, location_name: "name"))
1760
+ TaskVolumeConfiguration.add_member(:managed_ebs_volume, Shapes::ShapeRef.new(shape: TaskManagedEBSVolumeConfiguration, location_name: "managedEBSVolume"))
1761
+ TaskVolumeConfiguration.struct_class = Types::TaskVolumeConfiguration
1762
+
1763
+ TaskVolumeConfigurations.member = Shapes::ShapeRef.new(shape: TaskVolumeConfiguration)
1764
+
1695
1765
  Tasks.member = Shapes::ShapeRef.new(shape: Task)
1696
1766
 
1697
1767
  Tmpfs.add_member(:container_path, Shapes::ShapeRef.new(shape: String, required: true, location_name: "containerPath"))
@@ -1783,6 +1853,7 @@ module Aws::ECS
1783
1853
  UpdateServiceRequest.add_member(:propagate_tags, Shapes::ShapeRef.new(shape: PropagateTags, location_name: "propagateTags"))
1784
1854
  UpdateServiceRequest.add_member(:service_registries, Shapes::ShapeRef.new(shape: ServiceRegistries, location_name: "serviceRegistries"))
1785
1855
  UpdateServiceRequest.add_member(:service_connect_configuration, Shapes::ShapeRef.new(shape: ServiceConnectConfiguration, location_name: "serviceConnectConfiguration"))
1856
+ UpdateServiceRequest.add_member(:volume_configurations, Shapes::ShapeRef.new(shape: ServiceVolumeConfigurations, location_name: "volumeConfigurations"))
1786
1857
  UpdateServiceRequest.struct_class = Types::UpdateServiceRequest
1787
1858
 
1788
1859
  UpdateServiceResponse.add_member(:service, Shapes::ShapeRef.new(shape: Service, location_name: "service"))
@@ -1817,6 +1888,7 @@ module Aws::ECS
1817
1888
  Volume.add_member(:docker_volume_configuration, Shapes::ShapeRef.new(shape: DockerVolumeConfiguration, location_name: "dockerVolumeConfiguration"))
1818
1889
  Volume.add_member(:efs_volume_configuration, Shapes::ShapeRef.new(shape: EFSVolumeConfiguration, location_name: "efsVolumeConfiguration"))
1819
1890
  Volume.add_member(:fsx_windows_file_server_volume_configuration, Shapes::ShapeRef.new(shape: FSxWindowsFileServerVolumeConfiguration, location_name: "fsxWindowsFileServerVolumeConfiguration"))
1891
+ Volume.add_member(:configured_at_launch, Shapes::ShapeRef.new(shape: BoxedBoolean, location_name: "configuredAtLaunch"))
1820
1892
  Volume.struct_class = Types::Volume
1821
1893
 
1822
1894
  VolumeFrom.add_member(:source_container, Shapes::ShapeRef.new(shape: String, location_name: "sourceContainer"))
@@ -2412,6 +2484,7 @@ module Aws::ECS
2412
2484
  o.errors << Shapes::ShapeRef.new(shape: ClientException)
2413
2485
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
2414
2486
  o.errors << Shapes::ShapeRef.new(shape: ClusterNotFoundException)
2487
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedFeatureException)
2415
2488
  end)
2416
2489
 
2417
2490
  api.add_operation(:stop_task, Seahorse::Model::Operation.new.tap do |o|
@@ -2566,6 +2639,7 @@ module Aws::ECS
2566
2639
  o.errors << Shapes::ShapeRef.new(shape: PlatformTaskDefinitionIncompatibilityException)
2567
2640
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
2568
2641
  o.errors << Shapes::ShapeRef.new(shape: NamespaceNotFoundException)
2642
+ o.errors << Shapes::ShapeRef.new(shape: UnsupportedFeatureException)
2569
2643
  end)
2570
2644
 
2571
2645
  api.add_operation(:update_service_primary_task_set, Seahorse::Model::Operation.new.tap do |o|