aws-sdk-core 2.5.8 → 2.5.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,215 @@
1
1
  {
2
2
  "version": "1.0",
3
3
  "examples": {
4
+ "BatchDeleteImage": [
5
+ {
6
+ "input": {
7
+ "imageIds": [
8
+ {
9
+ "imageTag": "precise"
10
+ }
11
+ ],
12
+ "repositoryName": "ubuntu"
13
+ },
14
+ "output": {
15
+ "failures": [
16
+
17
+ ],
18
+ "imageIds": [
19
+ {
20
+ "imageDigest": "sha256:examplee6d1e504117a17000003d3753086354a38375961f2e665416ef4b1b2f",
21
+ "imageTag": "precise"
22
+ }
23
+ ]
24
+ },
25
+ "comments": {
26
+ },
27
+ "description": "This example deletes images with the tags precise and trusty in a repository called ubuntu in the default registry for an account.",
28
+ "id": "batchdeleteimages-example-1470860541707",
29
+ "title": "To delete multiple images"
30
+ }
31
+ ],
32
+ "BatchGetImage": [
33
+ {
34
+ "input": {
35
+ "imageIds": [
36
+ {
37
+ "imageTag": "precise"
38
+ }
39
+ ],
40
+ "repositoryName": "ubuntu"
41
+ },
42
+ "output": {
43
+ "failures": [
44
+
45
+ ],
46
+ "images": [
47
+ {
48
+ "imageId": {
49
+ "imageDigest": "sha256:example76bdff6d83a09ba2a818f0d00000063724a9ac3ba5019c56f74ebf42a",
50
+ "imageTag": "precise"
51
+ },
52
+ "imageManifest": "{\n \"schemaVersion\": 1,\n \"name\": \"ubuntu\",\n \"tag\": \"precise\",\n...",
53
+ "registryId": "244698725403",
54
+ "repositoryName": "ubuntu"
55
+ }
56
+ ]
57
+ },
58
+ "comments": {
59
+ "output": {
60
+ "imageManifest": "In this example, the imageManifest in the output JSON has been truncated."
61
+ }
62
+ },
63
+ "description": "This example obtains information for an image with a specified image digest ID from the repository named ubuntu in the current account.",
64
+ "id": "batchgetimage-example-1470862771437",
65
+ "title": "To obtain multiple images in a single request"
66
+ }
67
+ ],
68
+ "CreateRepository": [
69
+ {
70
+ "input": {
71
+ "repositoryName": "project-a/nginx-web-app"
72
+ },
73
+ "output": {
74
+ "repository": {
75
+ "registryId": "012345678901",
76
+ "repositoryArn": "arn:aws:ecr:us-west-2:012345678901:repository/project-a/nginx-web-app",
77
+ "repositoryName": "project-a/nginx-web-app"
78
+ }
79
+ },
80
+ "comments": {
81
+ "output": {
82
+ "imageManifest": "In this example, the imageManifest in the output JSON has been truncated."
83
+ }
84
+ },
85
+ "description": "This example creates a repository called nginx-web-app inside the project-a namespace in the default registry for an account.",
86
+ "id": "createrepository-example-1470863688724",
87
+ "title": "To create a new repository"
88
+ }
89
+ ],
90
+ "DeleteRepository": [
91
+ {
92
+ "input": {
93
+ "force": true,
94
+ "repositoryName": "ubuntu"
95
+ },
96
+ "output": {
97
+ "repository": {
98
+ "registryId": "012345678901",
99
+ "repositoryArn": "arn:aws:ecr:us-west-2:012345678901:repository/ubuntu",
100
+ "repositoryName": "ubuntu"
101
+ }
102
+ },
103
+ "comments": {
104
+ "output": {
105
+ "imageManifest": "In this example, the imageManifest in the output JSON has been truncated."
106
+ }
107
+ },
108
+ "description": "This example force deletes a repository named ubuntu in the default registry for an account. The force parameter is required if the repository contains images.",
109
+ "id": "deleterepository-example-1470863805703",
110
+ "title": "To force delete a repository"
111
+ }
112
+ ],
113
+ "DeleteRepositoryPolicy": [
114
+ {
115
+ "input": {
116
+ "repositoryName": "ubuntu"
117
+ },
118
+ "output": {
119
+ "policyText": "{ ... }",
120
+ "registryId": "012345678901",
121
+ "repositoryName": "ubuntu"
122
+ },
123
+ "comments": {
124
+ },
125
+ "description": "This example deletes the policy associated with the repository named ubuntu in the current account.",
126
+ "id": "deleterepositorypolicy-example-1470866943748",
127
+ "title": "To delete the policy associated with a repository"
128
+ }
129
+ ],
130
+ "DescribeRepositories": [
131
+ {
132
+ "input": {
133
+ },
134
+ "output": {
135
+ "repositories": [
136
+ {
137
+ "registryId": "012345678910",
138
+ "repositoryArn": "arn:aws:ecr:us-west-2:012345678910:repository/ubuntu",
139
+ "repositoryName": "ubuntu"
140
+ },
141
+ {
142
+ "registryId": "012345678910",
143
+ "repositoryArn": "arn:aws:ecr:us-west-2:012345678910:repository/test",
144
+ "repositoryName": "test"
145
+ }
146
+ ]
147
+ },
148
+ "comments": {
149
+ "output": {
150
+ }
151
+ },
152
+ "description": "The following example obtains a list and description of all repositories in the default registry to which the current user has access.",
153
+ "id": "describe-repositories-1470856017467",
154
+ "title": "To describe all repositories in the current account"
155
+ }
156
+ ],
157
+ "GetAuthorizationToken": [
158
+ {
159
+ "input": {
160
+ },
161
+ "output": {
162
+ "authorizationData": [
163
+ {
164
+ "authorizationToken": "QVdTOkN...",
165
+ "expiresAt": "1470951892432",
166
+ "proxyEndpoint": "https://012345678901.dkr.ecr.us-west-2.amazonaws.com"
167
+ }
168
+ ]
169
+ },
170
+ "comments": {
171
+ },
172
+ "description": "This example gets an authorization token for your default registry.",
173
+ "id": "getauthorizationtoken-example-1470867047084",
174
+ "title": "To obtain an authorization token"
175
+ }
176
+ ],
177
+ "GetRepositoryPolicy": [
178
+ {
179
+ "input": {
180
+ "repositoryName": "ubuntu"
181
+ },
182
+ "output": {
183
+ "policyText": "{\n \"Version\" : \"2008-10-17\",\n \"Statement\" : [ {\n \"Sid\" : \"new statement\",\n \"Effect\" : \"Allow\",\n \"Principal\" : {\n \"AWS\" : \"arn:aws:iam::012345678901:role/CodeDeployDemo\"\n },\n\"Action\" : [ \"ecr:GetDownloadUrlForLayer\", \"ecr:BatchGetImage\", \"ecr:BatchCheckLayerAvailability\" ]\n } ]\n}",
184
+ "registryId": "012345678901",
185
+ "repositoryName": "ubuntu"
186
+ },
187
+ "comments": {
188
+ },
189
+ "description": "This example obtains the repository policy for the repository named ubuntu.",
190
+ "id": "getrepositorypolicy-example-1470867669211",
191
+ "title": "To get the current policy for a repository"
192
+ }
193
+ ],
194
+ "ListImages": [
195
+ {
196
+ "input": {
197
+ "repositoryName": "ubuntu"
198
+ },
199
+ "output": {
200
+ "imageIds": [
201
+ {
202
+ "imageDigest": "sha256:764f63476bdff6d83a09ba2a818f0d35757063724a9ac3ba5019c56f74ebf42a",
203
+ "imageTag": "precise"
204
+ }
205
+ ]
206
+ },
207
+ "comments": {
208
+ },
209
+ "description": "This example lists all of the images in the repository named ubuntu in the default registry in the current account. ",
210
+ "id": "listimages-example-1470868161594",
211
+ "title": "To list all images in a repository"
212
+ }
213
+ ]
4
214
  }
5
215
  }
@@ -1,5 +1,883 @@
1
1
  {
2
2
  "version": "1.0",
3
3
  "examples": {
4
+ "CreateCluster": [
5
+ {
6
+ "input": {
7
+ "clusterName": "my_cluster"
8
+ },
9
+ "output": {
10
+ "cluster": {
11
+ "activeServicesCount": 0,
12
+ "clusterArn": "arn:aws:ecs:us-east-1:012345678910:cluster/my_cluster",
13
+ "clusterName": "my_cluster",
14
+ "pendingTasksCount": 0,
15
+ "registeredContainerInstancesCount": 0,
16
+ "runningTasksCount": 0,
17
+ "status": "ACTIVE"
18
+ }
19
+ },
20
+ "comments": {
21
+ "input": {
22
+ },
23
+ "output": {
24
+ }
25
+ },
26
+ "description": "This example creates a cluster in your default region.",
27
+ "id": "to-create-a-new-cluster-1472514079365",
28
+ "title": "To create a new cluster"
29
+ }
30
+ ],
31
+ "CreateService": [
32
+ {
33
+ "input": {
34
+ "desiredCount": 10,
35
+ "serviceName": "ecs-simple-service",
36
+ "taskDefinition": "hello_world"
37
+ },
38
+ "output": {
39
+ "service": {
40
+ "clusterArn": "arn:aws:ecs:us-east-1:012345678910:cluster/default",
41
+ "createdAt": "2016-08-29T16:13:47.298Z",
42
+ "deploymentConfiguration": {
43
+ "maximumPercent": 200,
44
+ "minimumHealthyPercent": 100
45
+ },
46
+ "deployments": [
47
+ {
48
+ "createdAt": "2016-08-29T16:13:47.298Z",
49
+ "desiredCount": 10,
50
+ "id": "ecs-svc/9223370564342348388",
51
+ "pendingCount": 0,
52
+ "runningCount": 0,
53
+ "status": "PRIMARY",
54
+ "taskDefinition": "arn:aws:ecs:us-east-1:012345678910:task-definition/hello_world:6",
55
+ "updatedAt": "2016-08-29T16:13:47.298Z"
56
+ },
57
+ {
58
+ "createdAt": "2016-08-29T15:52:44.481Z",
59
+ "desiredCount": 0,
60
+ "id": "ecs-svc/9223370564343611322",
61
+ "pendingCount": 0,
62
+ "runningCount": 0,
63
+ "status": "ACTIVE",
64
+ "taskDefinition": "arn:aws:ecs:us-east-1:012345678910:task-definition/hello_world:6",
65
+ "updatedAt": "2016-08-29T16:11:38.941Z"
66
+ }
67
+ ],
68
+ "desiredCount": 10,
69
+ "events": [
70
+
71
+ ],
72
+ "loadBalancers": [
73
+
74
+ ],
75
+ "pendingCount": 0,
76
+ "runningCount": 0,
77
+ "serviceArn": "arn:aws:ecs:us-east-1:012345678910:service/ecs-simple-service",
78
+ "serviceName": "ecs-simple-service",
79
+ "status": "ACTIVE",
80
+ "taskDefinition": "arn:aws:ecs:us-east-1:012345678910:task-definition/hello_world:6"
81
+ }
82
+ },
83
+ "comments": {
84
+ "input": {
85
+ },
86
+ "output": {
87
+ }
88
+ },
89
+ "description": "This example creates a service in your default region called ``ecs-simple-service``. The service uses the ``hello_world`` task definition and it maintains 10 copies of that task.",
90
+ "id": "to-create-a-new-service-1472512584282",
91
+ "title": "To create a new service"
92
+ },
93
+ {
94
+ "input": {
95
+ "desiredCount": 10,
96
+ "loadBalancers": [
97
+ {
98
+ "containerName": "simple-app",
99
+ "containerPort": 80,
100
+ "loadBalancerName": "EC2Contai-EcsElast-15DCDAURT3ZO2"
101
+ }
102
+ ],
103
+ "role": "ecsServiceRole",
104
+ "serviceName": "ecs-simple-service-elb",
105
+ "taskDefinition": "console-sample-app-static"
106
+ },
107
+ "output": {
108
+ "service": {
109
+ "clusterArn": "arn:aws:ecs:us-east-1:012345678910:cluster/default",
110
+ "createdAt": "2016-08-29T16:02:54.884Z",
111
+ "deploymentConfiguration": {
112
+ "maximumPercent": 200,
113
+ "minimumHealthyPercent": 100
114
+ },
115
+ "deployments": [
116
+ {
117
+ "createdAt": "2016-08-29T16:02:54.884Z",
118
+ "desiredCount": 10,
119
+ "id": "ecs-svc/9223370564343000923",
120
+ "pendingCount": 0,
121
+ "runningCount": 0,
122
+ "status": "PRIMARY",
123
+ "taskDefinition": "arn:aws:ecs:us-east-1:012345678910:task-definition/console-sample-app-static:6",
124
+ "updatedAt": "2016-08-29T16:02:54.884Z"
125
+ }
126
+ ],
127
+ "desiredCount": 10,
128
+ "events": [
129
+
130
+ ],
131
+ "loadBalancers": [
132
+ {
133
+ "containerName": "simple-app",
134
+ "containerPort": 80,
135
+ "loadBalancerName": "EC2Contai-EcsElast-15DCDAURT3ZO2"
136
+ }
137
+ ],
138
+ "pendingCount": 0,
139
+ "roleArn": "arn:aws:iam::012345678910:role/ecsServiceRole",
140
+ "runningCount": 0,
141
+ "serviceArn": "arn:aws:ecs:us-east-1:012345678910:service/ecs-simple-service-elb",
142
+ "serviceName": "ecs-simple-service-elb",
143
+ "status": "ACTIVE",
144
+ "taskDefinition": "arn:aws:ecs:us-east-1:012345678910:task-definition/console-sample-app-static:6"
145
+ }
146
+ },
147
+ "comments": {
148
+ "input": {
149
+ },
150
+ "output": {
151
+ }
152
+ },
153
+ "description": "This example creates a service in your default region called ``ecs-simple-service-elb``. The service uses the ``ecs-demo`` task definition and it maintains 10 copies of that task. You must reference an existing load balancer in the same region by its name.",
154
+ "id": "to-create-a-new-service-behind-a-load-balancer-1472512484823",
155
+ "title": "To create a new service behind a load balancer"
156
+ }
157
+ ],
158
+ "DeleteCluster": [
159
+ {
160
+ "input": {
161
+ "cluster": "my_cluster"
162
+ },
163
+ "output": {
164
+ "cluster": {
165
+ "activeServicesCount": 0,
166
+ "clusterArn": "arn:aws:ecs:us-east-1:012345678910:cluster/my_cluster",
167
+ "clusterName": "my_cluster",
168
+ "pendingTasksCount": 0,
169
+ "registeredContainerInstancesCount": 0,
170
+ "runningTasksCount": 0,
171
+ "status": "INACTIVE"
172
+ }
173
+ },
174
+ "comments": {
175
+ "input": {
176
+ },
177
+ "output": {
178
+ }
179
+ },
180
+ "description": "This example deletes an empty cluster in your default region.",
181
+ "id": "to-delete-an-empty-cluster-1472512705352",
182
+ "title": "To delete an empty cluster"
183
+ }
184
+ ],
185
+ "DeleteService": [
186
+ {
187
+ "input": {
188
+ "service": "my-http-service"
189
+ },
190
+ "output": {
191
+ },
192
+ "comments": {
193
+ "input": {
194
+ },
195
+ "output": {
196
+ }
197
+ },
198
+ "description": "This example deletes the my-http-service service. The service must have a desired count and running count of 0 before you can delete it.",
199
+ "id": "e8183e38-f86e-4390-b811-f74f30a6007d",
200
+ "title": "To delete a service"
201
+ }
202
+ ],
203
+ "DeregisterContainerInstance": [
204
+ {
205
+ "input": {
206
+ "cluster": "default",
207
+ "containerInstance": "container_instance_UUID",
208
+ "force": true
209
+ },
210
+ "output": {
211
+ },
212
+ "comments": {
213
+ "input": {
214
+ },
215
+ "output": {
216
+ }
217
+ },
218
+ "description": "This example deregisters a container instance from the specified cluster in your default region. If there are still tasks running on the container instance, you must either stop those tasks before deregistering, or use the force option.",
219
+ "id": "bf624927-cf64-4f4b-8b7e-c024a4e682f6",
220
+ "title": "To deregister a container instance from a cluster"
221
+ }
222
+ ],
223
+ "DescribeClusters": [
224
+ {
225
+ "input": {
226
+ "clusters": [
227
+ "default"
228
+ ]
229
+ },
230
+ "output": {
231
+ "clusters": [
232
+ {
233
+ "clusterArn": "arn:aws:ecs:us-east-1:aws_account_id:cluster/default",
234
+ "clusterName": "default",
235
+ "status": "ACTIVE"
236
+ }
237
+ ],
238
+ "failures": [
239
+
240
+ ]
241
+ },
242
+ "comments": {
243
+ "input": {
244
+ },
245
+ "output": {
246
+ }
247
+ },
248
+ "description": "This example provides a description of the specified cluster in your default region.",
249
+ "id": "ba88d100-9672-4231-80da-a4bd210bf728",
250
+ "title": "To describe a cluster"
251
+ }
252
+ ],
253
+ "DescribeContainerInstances": [
254
+ {
255
+ "input": {
256
+ "cluster": "default",
257
+ "containerInstances": [
258
+ "f2756532-8f13-4d53-87c9-aed50dc94cd7"
259
+ ]
260
+ },
261
+ "output": {
262
+ "containerInstances": [
263
+ {
264
+ "agentConnected": true,
265
+ "containerInstanceArn": "arn:aws:ecs:us-east-1:012345678910:container-instance/f2756532-8f13-4d53-87c9-aed50dc94cd7",
266
+ "ec2InstanceId": "i-807f3249",
267
+ "pendingTasksCount": 0,
268
+ "registeredResources": [
269
+ {
270
+ "name": "CPU",
271
+ "type": "INTEGER",
272
+ "doubleValue": 0.0,
273
+ "integerValue": 2048,
274
+ "longValue": 0
275
+ },
276
+ {
277
+ "name": "MEMORY",
278
+ "type": "INTEGER",
279
+ "doubleValue": 0.0,
280
+ "integerValue": 3768,
281
+ "longValue": 0
282
+ },
283
+ {
284
+ "name": "PORTS",
285
+ "type": "STRINGSET",
286
+ "doubleValue": 0.0,
287
+ "integerValue": 0,
288
+ "longValue": 0,
289
+ "stringSetValue": [
290
+ "2376",
291
+ "22",
292
+ "51678",
293
+ "2375"
294
+ ]
295
+ }
296
+ ],
297
+ "remainingResources": [
298
+ {
299
+ "name": "CPU",
300
+ "type": "INTEGER",
301
+ "doubleValue": 0.0,
302
+ "integerValue": 1948,
303
+ "longValue": 0
304
+ },
305
+ {
306
+ "name": "MEMORY",
307
+ "type": "INTEGER",
308
+ "doubleValue": 0.0,
309
+ "integerValue": 3668,
310
+ "longValue": 0
311
+ },
312
+ {
313
+ "name": "PORTS",
314
+ "type": "STRINGSET",
315
+ "doubleValue": 0.0,
316
+ "integerValue": 0,
317
+ "longValue": 0,
318
+ "stringSetValue": [
319
+ "2376",
320
+ "22",
321
+ "80",
322
+ "51678",
323
+ "2375"
324
+ ]
325
+ }
326
+ ],
327
+ "runningTasksCount": 1,
328
+ "status": "ACTIVE"
329
+ }
330
+ ],
331
+ "failures": [
332
+
333
+ ]
334
+ },
335
+ "comments": {
336
+ "input": {
337
+ },
338
+ "output": {
339
+ }
340
+ },
341
+ "description": "This example provides a description of the specified container instance in your default region, using the container instance UUID as an identifier.",
342
+ "id": "c8f439de-eb27-4269-8ca7-2c0a7ba75ab0",
343
+ "title": "To describe container instance"
344
+ }
345
+ ],
346
+ "DescribeServices": [
347
+ {
348
+ "input": {
349
+ "services": [
350
+ "ecs-simple-service"
351
+ ]
352
+ },
353
+ "output": {
354
+ "failures": [
355
+
356
+ ],
357
+ "services": [
358
+ {
359
+ "clusterArn": "arn:aws:ecs:us-east-1:012345678910:cluster/default",
360
+ "createdAt": "2016-08-29T16:25:52.130Z",
361
+ "deploymentConfiguration": {
362
+ "maximumPercent": 200,
363
+ "minimumHealthyPercent": 100
364
+ },
365
+ "deployments": [
366
+ {
367
+ "createdAt": "2016-08-29T16:25:52.130Z",
368
+ "desiredCount": 1,
369
+ "id": "ecs-svc/9223370564341623665",
370
+ "pendingCount": 0,
371
+ "runningCount": 0,
372
+ "status": "PRIMARY",
373
+ "taskDefinition": "arn:aws:ecs:us-east-1:012345678910:task-definition/hello_world:6",
374
+ "updatedAt": "2016-08-29T16:25:52.130Z"
375
+ }
376
+ ],
377
+ "desiredCount": 1,
378
+ "events": [
379
+ {
380
+ "createdAt": "2016-08-29T16:25:58.520Z",
381
+ "id": "38c285e5-d335-4b68-8b15-e46dedc8e88d",
382
+ "message": "(service ecs-simple-service) was unable to place a task because no container instance met all of its requirements. The closest matching (container-instance 3f4de1c5-ffdd-4954-af7e-75b4be0c8841) is already using a port required by your task. For more information, see the Troubleshooting section of the Amazon ECS Developer Guide."
383
+ }
384
+ ],
385
+ "loadBalancers": [
386
+
387
+ ],
388
+ "pendingCount": 0,
389
+ "runningCount": 0,
390
+ "serviceArn": "arn:aws:ecs:us-east-1:012345678910:service/ecs-simple-service",
391
+ "serviceName": "ecs-simple-service",
392
+ "status": "ACTIVE",
393
+ "taskDefinition": "arn:aws:ecs:us-east-1:012345678910:task-definition/hello_world:6"
394
+ }
395
+ ]
396
+ },
397
+ "comments": {
398
+ "input": {
399
+ },
400
+ "output": {
401
+ "services[0].events[0].message": "In this example, there is a service event that shows unavailable cluster resources."
402
+ }
403
+ },
404
+ "description": "This example provides descriptive information about the service named ``ecs-simple-service``.",
405
+ "id": "to-describe-a-service-1472513256350",
406
+ "title": "To describe a service"
407
+ }
408
+ ],
409
+ "DescribeTaskDefinition": [
410
+ {
411
+ "input": {
412
+ "taskDefinition": "hello_world:8"
413
+ },
414
+ "output": {
415
+ "taskDefinition": {
416
+ "containerDefinitions": [
417
+ {
418
+ "name": "wordpress",
419
+ "cpu": 10,
420
+ "environment": [
421
+
422
+ ],
423
+ "essential": true,
424
+ "image": "wordpress",
425
+ "links": [
426
+ "mysql"
427
+ ],
428
+ "memory": 500,
429
+ "mountPoints": [
430
+
431
+ ],
432
+ "portMappings": [
433
+ {
434
+ "containerPort": 80,
435
+ "hostPort": 80
436
+ }
437
+ ],
438
+ "volumesFrom": [
439
+
440
+ ]
441
+ },
442
+ {
443
+ "name": "mysql",
444
+ "cpu": 10,
445
+ "environment": [
446
+ {
447
+ "name": "MYSQL_ROOT_PASSWORD",
448
+ "value": "password"
449
+ }
450
+ ],
451
+ "essential": true,
452
+ "image": "mysql",
453
+ "memory": 500,
454
+ "mountPoints": [
455
+
456
+ ],
457
+ "portMappings": [
458
+
459
+ ],
460
+ "volumesFrom": [
461
+
462
+ ]
463
+ }
464
+ ],
465
+ "family": "hello_world",
466
+ "revision": 8,
467
+ "taskDefinitionArn": "arn:aws:ecs:us-east-1:<aws_account_id>:task-definition/hello_world:8",
468
+ "volumes": [
469
+
470
+ ]
471
+ }
472
+ },
473
+ "comments": {
474
+ "input": {
475
+ },
476
+ "output": {
477
+ }
478
+ },
479
+ "description": "This example provides a description of the specified task definition.",
480
+ "id": "4c21eeb1-f1da-4a08-8c44-297fc8d0ea88",
481
+ "title": "To describe a task definition"
482
+ }
483
+ ],
484
+ "DescribeTasks": [
485
+ {
486
+ "input": {
487
+ "tasks": [
488
+ "c5cba4eb-5dad-405e-96db-71ef8eefe6a8"
489
+ ]
490
+ },
491
+ "output": {
492
+ "failures": [
493
+
494
+ ],
495
+ "tasks": [
496
+ {
497
+ "clusterArn": "arn:aws:ecs:<region>:<aws_account_id>:cluster/default",
498
+ "containerInstanceArn": "arn:aws:ecs:<region>:<aws_account_id>:container-instance/18f9eda5-27d7-4c19-b133-45adc516e8fb",
499
+ "containers": [
500
+ {
501
+ "name": "ecs-demo",
502
+ "containerArn": "arn:aws:ecs:<region>:<aws_account_id>:container/7c01765b-c588-45b3-8290-4ba38bd6c5a6",
503
+ "lastStatus": "RUNNING",
504
+ "networkBindings": [
505
+ {
506
+ "bindIP": "0.0.0.0",
507
+ "containerPort": 80,
508
+ "hostPort": 80
509
+ }
510
+ ],
511
+ "taskArn": "arn:aws:ecs:<region>:<aws_account_id>:task/c5cba4eb-5dad-405e-96db-71ef8eefe6a8"
512
+ }
513
+ ],
514
+ "desiredStatus": "RUNNING",
515
+ "lastStatus": "RUNNING",
516
+ "overrides": {
517
+ "containerOverrides": [
518
+ {
519
+ "name": "ecs-demo"
520
+ }
521
+ ]
522
+ },
523
+ "startedBy": "ecs-svc/9223370608528463088",
524
+ "taskArn": "arn:aws:ecs:<region>:<aws_account_id>:task/c5cba4eb-5dad-405e-96db-71ef8eefe6a8",
525
+ "taskDefinitionArn": "arn:aws:ecs:<region>:<aws_account_id>:task-definition/amazon-ecs-sample:1"
526
+ }
527
+ ]
528
+ },
529
+ "comments": {
530
+ "input": {
531
+ },
532
+ "output": {
533
+ }
534
+ },
535
+ "description": "This example provides a description of the specified task, using the task UUID as an identifier.",
536
+ "id": "a90b0cde-f965-4946-b55e-cfd8cc54e827",
537
+ "title": "To describe a task"
538
+ }
539
+ ],
540
+ "ListClusters": [
541
+ {
542
+ "input": {
543
+ },
544
+ "output": {
545
+ "clusterArns": [
546
+ "arn:aws:ecs:us-east-1:<aws_account_id>:cluster/test",
547
+ "arn:aws:ecs:us-east-1:<aws_account_id>:cluster/default"
548
+ ]
549
+ },
550
+ "comments": {
551
+ "input": {
552
+ },
553
+ "output": {
554
+ }
555
+ },
556
+ "description": "This example lists all of your available clusters in your default region.",
557
+ "id": "e337d059-134f-4125-ba8e-4f499139facf",
558
+ "title": "To list your available clusters"
559
+ }
560
+ ],
561
+ "ListContainerInstances": [
562
+ {
563
+ "input": {
564
+ "cluster": "default"
565
+ },
566
+ "output": {
567
+ "containerInstanceArns": [
568
+ "arn:aws:ecs:us-east-1:<aws_account_id>:container-instance/f6bbb147-5370-4ace-8c73-c7181ded911f",
569
+ "arn:aws:ecs:us-east-1:<aws_account_id>:container-instance/ffe3d344-77e2-476c-a4d0-bf560ad50acb"
570
+ ]
571
+ },
572
+ "comments": {
573
+ "input": {
574
+ },
575
+ "output": {
576
+ }
577
+ },
578
+ "description": "This example lists all of your available container instances in the specified cluster in your default region.",
579
+ "id": "62a82a94-713c-4e18-8420-1d2b2ba9d484",
580
+ "title": "To list your available container instances in a cluster"
581
+ }
582
+ ],
583
+ "ListServices": [
584
+ {
585
+ "input": {
586
+ },
587
+ "output": {
588
+ "serviceArns": [
589
+ "arn:aws:ecs:us-east-1:012345678910:service/my-http-service"
590
+ ]
591
+ },
592
+ "comments": {
593
+ "input": {
594
+ },
595
+ "output": {
596
+ }
597
+ },
598
+ "description": "This example lists the services running in the default cluster for an account.",
599
+ "id": "1d9a8037-4e0e-4234-a528-609656809a3a",
600
+ "title": "To list the services in a cluster"
601
+ }
602
+ ],
603
+ "ListTaskDefinitionFamilies": [
604
+ {
605
+ "input": {
606
+ },
607
+ "output": {
608
+ "families": [
609
+ "node-js-app",
610
+ "web-timer",
611
+ "hpcc",
612
+ "hpcc-c4-8xlarge"
613
+ ]
614
+ },
615
+ "comments": {
616
+ "input": {
617
+ },
618
+ "output": {
619
+ }
620
+ },
621
+ "description": "This example lists all of your registered task definition families.",
622
+ "id": "b5c89769-1d94-4ca2-a79e-8069103c7f75",
623
+ "title": "To list your registered task definition families"
624
+ },
625
+ {
626
+ "input": {
627
+ "familyPrefix": "hpcc"
628
+ },
629
+ "output": {
630
+ "families": [
631
+ "hpcc",
632
+ "hpcc-c4-8xlarge"
633
+ ]
634
+ },
635
+ "comments": {
636
+ "input": {
637
+ },
638
+ "output": {
639
+ }
640
+ },
641
+ "description": "This example lists the task definition revisions that start with \"hpcc\".",
642
+ "id": "8a4cf9a6-42c1-4fe3-852d-99ac8968e11b",
643
+ "title": "To filter your registered task definition families"
644
+ }
645
+ ],
646
+ "ListTaskDefinitions": [
647
+ {
648
+ "input": {
649
+ },
650
+ "output": {
651
+ "taskDefinitionArns": [
652
+ "arn:aws:ecs:us-east-1:<aws_account_id>:task-definition/sleep300:2",
653
+ "arn:aws:ecs:us-east-1:<aws_account_id>:task-definition/sleep360:1",
654
+ "arn:aws:ecs:us-east-1:<aws_account_id>:task-definition/wordpress:3",
655
+ "arn:aws:ecs:us-east-1:<aws_account_id>:task-definition/wordpress:4",
656
+ "arn:aws:ecs:us-east-1:<aws_account_id>:task-definition/wordpress:5",
657
+ "arn:aws:ecs:us-east-1:<aws_account_id>:task-definition/wordpress:6"
658
+ ]
659
+ },
660
+ "comments": {
661
+ "input": {
662
+ },
663
+ "output": {
664
+ }
665
+ },
666
+ "description": "This example lists all of your registered task definitions.",
667
+ "id": "b381ebaf-7eba-4d60-b99b-7f6ae49d3d60",
668
+ "title": "To list your registered task definitions"
669
+ },
670
+ {
671
+ "input": {
672
+ "familyPrefix": "wordpress"
673
+ },
674
+ "output": {
675
+ "taskDefinitionArns": [
676
+ "arn:aws:ecs:us-east-1:<aws_account_id>:task-definition/wordpress:3",
677
+ "arn:aws:ecs:us-east-1:<aws_account_id>:task-definition/wordpress:4",
678
+ "arn:aws:ecs:us-east-1:<aws_account_id>:task-definition/wordpress:5",
679
+ "arn:aws:ecs:us-east-1:<aws_account_id>:task-definition/wordpress:6"
680
+ ]
681
+ },
682
+ "comments": {
683
+ "input": {
684
+ },
685
+ "output": {
686
+ }
687
+ },
688
+ "description": "This example lists the task definition revisions of a specified family.",
689
+ "id": "734e7afd-753a-4bc2-85d0-badddce10910",
690
+ "title": "To list the registered task definitions in a family"
691
+ }
692
+ ],
693
+ "ListTasks": [
694
+ {
695
+ "input": {
696
+ "cluster": "default"
697
+ },
698
+ "output": {
699
+ "taskArns": [
700
+ "arn:aws:ecs:us-east-1:012345678910:task/0cc43cdb-3bee-4407-9c26-c0e6ea5bee84",
701
+ "arn:aws:ecs:us-east-1:012345678910:task/6b809ef6-c67e-4467-921f-ee261c15a0a1"
702
+ ]
703
+ },
704
+ "comments": {
705
+ "input": {
706
+ },
707
+ "output": {
708
+ }
709
+ },
710
+ "description": "This example lists all of the tasks in a cluster.",
711
+ "id": "9a6ec707-1a77-45d0-b2eb-516b5dd9e924",
712
+ "title": "To list the tasks in a cluster"
713
+ },
714
+ {
715
+ "input": {
716
+ "cluster": "default",
717
+ "containerInstance": "f6bbb147-5370-4ace-8c73-c7181ded911f"
718
+ },
719
+ "output": {
720
+ "taskArns": [
721
+ "arn:aws:ecs:us-east-1:012345678910:task/0cc43cdb-3bee-4407-9c26-c0e6ea5bee84"
722
+ ]
723
+ },
724
+ "comments": {
725
+ "input": {
726
+ },
727
+ "output": {
728
+ }
729
+ },
730
+ "description": "This example lists the tasks of a specified container instance. Specifying a ``containerInstance`` value limits the results to tasks that belong to that container instance.",
731
+ "id": "024bf3b7-9cbb-44e3-848f-9d074e1fecce",
732
+ "title": "To list the tasks on a particular container instance"
733
+ }
734
+ ],
735
+ "RegisterTaskDefinition": [
736
+ {
737
+ "input": {
738
+ "containerDefinitions": [
739
+ {
740
+ "name": "sleep",
741
+ "command": [
742
+ "sleep",
743
+ "360"
744
+ ],
745
+ "cpu": 10,
746
+ "essential": true,
747
+ "image": "busybox",
748
+ "memory": 10
749
+ }
750
+ ],
751
+ "family": "sleep360",
752
+ "taskRoleArn": "",
753
+ "volumes": [
754
+
755
+ ]
756
+ },
757
+ "output": {
758
+ "taskDefinition": {
759
+ "containerDefinitions": [
760
+ {
761
+ "name": "sleep",
762
+ "command": [
763
+ "sleep",
764
+ "360"
765
+ ],
766
+ "cpu": 10,
767
+ "environment": [
768
+
769
+ ],
770
+ "essential": true,
771
+ "image": "busybox",
772
+ "memory": 10,
773
+ "mountPoints": [
774
+
775
+ ],
776
+ "portMappings": [
777
+
778
+ ],
779
+ "volumesFrom": [
780
+
781
+ ]
782
+ }
783
+ ],
784
+ "family": "sleep360",
785
+ "revision": 1,
786
+ "taskDefinitionArn": "arn:aws:ecs:us-east-1:<aws_account_id>:task-definition/sleep360:19",
787
+ "volumes": [
788
+
789
+ ]
790
+ }
791
+ },
792
+ "comments": {
793
+ "input": {
794
+ },
795
+ "output": {
796
+ }
797
+ },
798
+ "description": "This example registers a task definition to the specified family.",
799
+ "id": "to-register-a-task-definition-1470764550877",
800
+ "title": "To register a task definition"
801
+ }
802
+ ],
803
+ "RunTask": [
804
+ {
805
+ "input": {
806
+ "cluster": "default",
807
+ "taskDefinition": "sleep360:1"
808
+ },
809
+ "output": {
810
+ "tasks": [
811
+ {
812
+ "containerInstanceArn": "arn:aws:ecs:us-east-1:<aws_account_id>:container-instance/ffe3d344-77e2-476c-a4d0-bf560ad50acb",
813
+ "containers": [
814
+ {
815
+ "name": "sleep",
816
+ "containerArn": "arn:aws:ecs:us-east-1:<aws_account_id>:container/58591c8e-be29-4ddf-95aa-ee459d4c59fd",
817
+ "lastStatus": "PENDING",
818
+ "taskArn": "arn:aws:ecs:us-east-1:<aws_account_id>:task/a9f21ea7-c9f5-44b1-b8e6-b31f50ed33c0"
819
+ }
820
+ ],
821
+ "desiredStatus": "RUNNING",
822
+ "lastStatus": "PENDING",
823
+ "overrides": {
824
+ "containerOverrides": [
825
+ {
826
+ "name": "sleep"
827
+ }
828
+ ]
829
+ },
830
+ "taskArn": "arn:aws:ecs:us-east-1:<aws_account_id>:task/a9f21ea7-c9f5-44b1-b8e6-b31f50ed33c0",
831
+ "taskDefinitionArn": "arn:aws:ecs:us-east-1:<aws_account_id>:task-definition/sleep360:1"
832
+ }
833
+ ]
834
+ },
835
+ "comments": {
836
+ "input": {
837
+ },
838
+ "output": {
839
+ }
840
+ },
841
+ "description": "This example runs the specified task definition on your default cluster.",
842
+ "id": "6f238c83-a133-42cd-ab3d-abeca0560445",
843
+ "title": "To run a task on your default cluster"
844
+ }
845
+ ],
846
+ "UpdateService": [
847
+ {
848
+ "input": {
849
+ "service": "my-http-service",
850
+ "taskDefinition": "amazon-ecs-sample"
851
+ },
852
+ "output": {
853
+ },
854
+ "comments": {
855
+ "input": {
856
+ },
857
+ "output": {
858
+ }
859
+ },
860
+ "description": "This example updates the my-http-service service to use the amazon-ecs-sample task definition.",
861
+ "id": "cc9e8900-0cc2-44d2-8491-64d1d3d37887",
862
+ "title": "To change the task definition used in a service"
863
+ },
864
+ {
865
+ "input": {
866
+ "desiredCount": 10,
867
+ "service": "my-http-service"
868
+ },
869
+ "output": {
870
+ },
871
+ "comments": {
872
+ "input": {
873
+ },
874
+ "output": {
875
+ }
876
+ },
877
+ "description": "This example updates the desired count of the my-http-service service to 10.",
878
+ "id": "9581d6c5-02e3-4140-8cc1-5a4301586633",
879
+ "title": "To change the number of tasks in a service"
880
+ }
881
+ ]
4
882
  }
5
883
  }