Skip to content

Commit 1860a15

Browse files
This release extends functionality for Amazon EBS volumes attached to Amazon ECS tasks by adding support for the new EBS volumeInitializationRate parameter in ECS RunTask/StartTask/CreateService/UpdateService APIs.
1 parent da16c23 commit 1860a15

29 files changed

+5887
-344
lines changed

docgenerator/AWSSDKDocSamples/ECS.GeneratedSamples.extra.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@
276276
<value>
277277
<example>
278278
<para>
279-
This example deregisters the first revision of the curler task definition
279+
This example deregisters the first revision of the fargate-task task definition
280280
</para>
281281
<code
282282
title="To deregister a revision of a task definition"

docgenerator/AWSSDKDocSamples/ECS/ECS.GeneratedSamples.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ public void ECSDeregisterTaskDefinition()
270270
var client = new AmazonECSClient();
271271
var response = client.DeregisterTaskDefinition(new DeregisterTaskDefinitionRequest
272272
{
273-
TaskDefinition = "curler:1"
273+
TaskDefinition = "fargate-task:1"
274274
});
275275

276276
TaskDefinition taskDefinition = response.TaskDefinition;
@@ -876,7 +876,7 @@ public void ECSRegisterTaskDefinition()
876876
},
877877
Cpu = 10,
878878
Essential = true,
879-
Image = "busybox",
879+
Image = "public.ecr.aws/docker/library/busybox:latest",
880880
Memory = 10
881881
}
882882
},

generator/ServiceModels/ecs/ecs-2014-11-13.api.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3454,6 +3454,7 @@
34543454
"volumeType":{"shape":"EBSVolumeType"},
34553455
"sizeInGiB":{"shape":"BoxedInteger"},
34563456
"snapshotId":{"shape":"EBSSnapshotId"},
3457+
"volumeInitializationRate":{"shape":"BoxedInteger"},
34573458
"iops":{"shape":"BoxedInteger"},
34583459
"throughput":{"shape":"BoxedInteger"},
34593460
"tagSpecifications":{"shape":"EBSTagSpecifications"},
@@ -3947,6 +3948,7 @@
39473948
"volumeType":{"shape":"EBSVolumeType"},
39483949
"sizeInGiB":{"shape":"BoxedInteger"},
39493950
"snapshotId":{"shape":"EBSSnapshotId"},
3951+
"volumeInitializationRate":{"shape":"BoxedInteger"},
39503952
"iops":{"shape":"BoxedInteger"},
39513953
"throughput":{"shape":"BoxedInteger"},
39523954
"tagSpecifications":{"shape":"EBSTagSpecifications"},

generator/ServiceModels/ecs/ecs-2014-11-13.docs.json

Lines changed: 22 additions & 20 deletions
Large diffs are not rendered by default.

generator/ServiceModels/ecs/ecs-2014-11-13.examples.json

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@
409409
],
410410
"environment": [],
411411
"essential": true,
412-
"image": "ubuntu",
412+
"image": "public.ecr.aws/docker/library/ubuntu:latest",
413413
"memory": 100,
414414
"mountPoints": [],
415415
"portMappings": [],
@@ -503,39 +503,37 @@
503503
"DeregisterTaskDefinition": [
504504
{
505505
"input": {
506-
"taskDefinition": "curler:1"
506+
"taskDefinition": "fargate-task:1"
507507
},
508508
"output": {
509509
"taskDefinition": {
510510
"containerDefinitions": [
511511
{
512-
"name": "curler",
513-
"command": [
514-
"curl -v http://example.com/"
515-
],
516-
"cpu": 100,
517-
"entryPoint": [],
518-
"environment": [],
512+
"name": "nginx",
513+
"cpu": 256,
519514
"essential": true,
520-
"image": "curl:latest",
521-
"memory": 256,
522-
"mountPoints": [],
523-
"portMappings": [],
524-
"volumesFrom": []
515+
"image": "public.ecr.aws/docker/library/nginx:latest",
516+
"memory": 128,
517+
"portMappings": [
518+
{
519+
"containerPort": 80,
520+
"hostPort": 80,
521+
"protocol": "tcp"
522+
}
523+
]
525524
}
526525
],
527-
"family": "curler",
528-
"revision": 1,
526+
"family": "fargate-task",
529527
"status": "INACTIVE",
530-
"taskDefinitionArn": "arn:aws:ecs:us-west-2:123456789012:task-definition/curler:1",
528+
"taskDefinitionArn": "arn:aws:ecs:us-west-2:123456789012:task-definition/fargate-task:1",
531529
"volumes": []
532530
}
533531
},
534532
"comments": {
535533
"input": {},
536534
"output": {}
537535
},
538-
"description": "This example deregisters the first revision of the curler task definition",
536+
"description": "This example deregisters the first revision of the fargate-task task definition",
539537
"id": "to-deregister-a-revision-of-a-task-definition-1733950214421",
540538
"title": "To deregister a revision of a task definition"
541539
}
@@ -1775,7 +1773,7 @@
17751773
],
17761774
"cpu": 10,
17771775
"essential": true,
1778-
"image": "busybox",
1776+
"image": "public.ecr.aws/docker/library/busybox:latest",
17791777
"memory": 10
17801778
}
17811779
],
@@ -1795,7 +1793,7 @@
17951793
"cpu": 10,
17961794
"environment": [],
17971795
"essential": true,
1798-
"image": "busybox",
1796+
"image": "public.ecr.aws/docker/library/busybox:latest",
17991797
"memory": 10,
18001798
"mountPoints": [],
18011799
"portMappings": [],

generator/ServiceModels/ecs/ecs-2014-11-13.normal.json

Lines changed: 28 additions & 20 deletions
Large diffs are not rendered by default.

sdk/src/Services/ECS/Generated/Model/ClientException.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,19 @@ namespace Amazon.ECS.Model
3333
/// These errors are usually caused by a client action. This client action might be using
3434
/// an action or resource on behalf of a user that doesn't have permissions to use the
3535
/// action or resource. Or, it might be specifying an identifier that isn't valid.
36+
///
37+
///
38+
/// <para>
39+
/// The following list includes additional causes for the error:
40+
/// </para>
41+
/// <ul> <li>
42+
/// <para>
43+
/// The <c>RunTask</c> could not be processed because you use managed scaling and there
44+
/// is a capacity error because the quota of tasks in the <c>PROVISIONING</c> per cluster
45+
/// has been reached. For information about the service quotas, see <a href="https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-quotas.html">Amazon
46+
/// ECS service quotas</a>.
47+
/// </para>
48+
/// </li> </ul>
3649
/// </summary>
3750
#if !NETSTANDARD
3851
[Serializable]

sdk/src/Services/ECS/Generated/Model/Cluster.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ internal bool IsSetClusterName()
183183
/// <summary>
184184
/// Gets and sets the property Configuration.
185185
/// <para>
186-
/// The execute command configuration for the cluster.
186+
/// The execute command and managed storage configuration for the cluster.
187187
/// </para>
188188
/// </summary>
189189
public ClusterConfiguration Configuration

sdk/src/Services/ECS/Generated/Model/DeleteAccountSettingRequest.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,16 +65,12 @@ internal bool IsSetName()
6565
/// <summary>
6666
/// Gets and sets the property PrincipalArn.
6767
/// <para>
68-
/// The Amazon Resource Name (ARN) of the principal. It can be a user, role, or the root
68+
/// The Amazon Resource Name (ARN) of the principal. It can be an user, role, or the root
6969
/// user. If you specify the root user, it disables the account setting for all users,
7070
/// roles, and the root user of the account unless a user or role explicitly overrides
7171
/// these settings. If this field is omitted, the setting is changed only for the authenticated
7272
/// user.
7373
/// </para>
74-
///
75-
/// <para>
76-
/// In order to use this parameter, you must be the root user, or the principal.
77-
/// </para>
7874
/// </summary>
7975
public string PrincipalArn
8076
{

sdk/src/Services/ECS/Generated/Model/Internal/MarshallTransformations/ServiceManagedEBSVolumeConfigurationMarshaller.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,12 @@ public void Marshall(ServiceManagedEBSVolumeConfiguration requestObject, JsonMar
112112
context.Writer.Write(requestObject.Throughput);
113113
}
114114

115+
if(requestObject.IsSetVolumeInitializationRate())
116+
{
117+
context.Writer.WritePropertyName("volumeInitializationRate");
118+
context.Writer.Write(requestObject.VolumeInitializationRate);
119+
}
120+
115121
if(requestObject.IsSetVolumeType())
116122
{
117123
context.Writer.WritePropertyName("volumeType");

0 commit comments

Comments
 (0)