aws-sdk-ecs 1.0.0.rc8 → 1.0.0.rc9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 721d04bed3e22380f34b08ba28631a03780db53a
4
- data.tar.gz: 5ec77476bfeea6b18eafd72def33e17a20cbbf79
3
+ metadata.gz: 469c6fea8de60f72c8b642f28d88327ddd5019c8
4
+ data.tar.gz: 8162ace1255ac1617f690397c9682052050bdd6e
5
5
  SHA512:
6
- metadata.gz: 857a84f66f3a2f7dd66ecf5fc30c67d138d36d74a7e67feaa67b552bdf31d6cf26610241e1f1068165a3874dbd838efc93e36a6362f7e27f107bcc92154c9a2e
7
- data.tar.gz: b3977389e9fe1e6d930c5c0718649486b8d1e98aec567640b86622a6022733a5fcc1126d8370c248efe898e332a07bb2d1cb92b024fbe46acb57fb21a4cca954
6
+ metadata.gz: 2114478c2d4bb62efc8882193c6b30d38b9ad65780dd4775a43dc2a240b5ace973450ff5feb719aebc1131dbc6c86596d56c1893c5b7645850acc772552292e0
7
+ data.tar.gz: ee4790449110e11f1738370f0d27469f1d393269f0ba28a2396b94350fc50b40dd467d135437f4cfc14f4e3cc5285651732adde232e60851f1db26ec5bfc7b46
data/lib/aws-sdk-ecs.rb CHANGED
@@ -43,6 +43,6 @@ require_relative 'aws-sdk-ecs/customizations'
43
43
  # @service
44
44
  module Aws::ECS
45
45
 
46
- GEM_VERSION = '1.0.0.rc8'
46
+ GEM_VERSION = '1.0.0.rc9'
47
47
 
48
48
  end
@@ -170,6 +170,28 @@ module Aws::ECS
170
170
  #
171
171
  # * {Types::CreateClusterResponse#cluster #cluster} => Types::Cluster
172
172
  #
173
+ #
174
+ # @example Example: To create a new cluster
175
+ #
176
+ # # This example creates a cluster in your default region.
177
+ #
178
+ # resp = client.create_cluster({
179
+ # cluster_name: "my_cluster",
180
+ # })
181
+ #
182
+ # resp.to_h outputs the following:
183
+ # {
184
+ # cluster: {
185
+ # active_services_count: 0,
186
+ # cluster_arn: "arn:aws:ecs:us-east-1:012345678910:cluster/my_cluster",
187
+ # cluster_name: "my_cluster",
188
+ # pending_tasks_count: 0,
189
+ # registered_container_instances_count: 0,
190
+ # running_tasks_count: 0,
191
+ # status: "ACTIVE",
192
+ # },
193
+ # }
194
+ #
173
195
  # @example Request syntax with placeholder values
174
196
  #
175
197
  # resp = client.create_cluster({
@@ -346,6 +368,121 @@ module Aws::ECS
346
368
  #
347
369
  # * {Types::CreateServiceResponse#service #service} => Types::Service
348
370
  #
371
+ #
372
+ # @example Example: To create a new service
373
+ #
374
+ # # 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.
375
+ #
376
+ # resp = client.create_service({
377
+ # desired_count: 10,
378
+ # service_name: "ecs-simple-service",
379
+ # task_definition: "hello_world",
380
+ # })
381
+ #
382
+ # resp.to_h outputs the following:
383
+ # {
384
+ # service: {
385
+ # cluster_arn: "arn:aws:ecs:us-east-1:012345678910:cluster/default",
386
+ # created_at: Time.parse("2016-08-29T16:13:47.298Z"),
387
+ # deployment_configuration: {
388
+ # maximum_percent: 200,
389
+ # minimum_healthy_percent: 100,
390
+ # },
391
+ # deployments: [
392
+ # {
393
+ # created_at: Time.parse("2016-08-29T16:13:47.298Z"),
394
+ # desired_count: 10,
395
+ # id: "ecs-svc/9223370564342348388",
396
+ # pending_count: 0,
397
+ # running_count: 0,
398
+ # status: "PRIMARY",
399
+ # task_definition: "arn:aws:ecs:us-east-1:012345678910:task-definition/hello_world:6",
400
+ # updated_at: Time.parse("2016-08-29T16:13:47.298Z"),
401
+ # },
402
+ # {
403
+ # created_at: Time.parse("2016-08-29T15:52:44.481Z"),
404
+ # desired_count: 0,
405
+ # id: "ecs-svc/9223370564343611322",
406
+ # pending_count: 0,
407
+ # running_count: 0,
408
+ # status: "ACTIVE",
409
+ # task_definition: "arn:aws:ecs:us-east-1:012345678910:task-definition/hello_world:6",
410
+ # updated_at: Time.parse("2016-08-29T16:11:38.941Z"),
411
+ # },
412
+ # ],
413
+ # desired_count: 10,
414
+ # events: [
415
+ # ],
416
+ # load_balancers: [
417
+ # ],
418
+ # pending_count: 0,
419
+ # running_count: 0,
420
+ # service_arn: "arn:aws:ecs:us-east-1:012345678910:service/ecs-simple-service",
421
+ # service_name: "ecs-simple-service",
422
+ # status: "ACTIVE",
423
+ # task_definition: "arn:aws:ecs:us-east-1:012345678910:task-definition/hello_world:6",
424
+ # },
425
+ # }
426
+ #
427
+ # @example Example: To create a new service behind a load balancer
428
+ #
429
+ # # 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.
430
+ #
431
+ # resp = client.create_service({
432
+ # desired_count: 10,
433
+ # load_balancers: [
434
+ # {
435
+ # container_name: "simple-app",
436
+ # container_port: 80,
437
+ # load_balancer_name: "EC2Contai-EcsElast-15DCDAURT3ZO2",
438
+ # },
439
+ # ],
440
+ # role: "ecsServiceRole",
441
+ # service_name: "ecs-simple-service-elb",
442
+ # task_definition: "console-sample-app-static",
443
+ # })
444
+ #
445
+ # resp.to_h outputs the following:
446
+ # {
447
+ # service: {
448
+ # cluster_arn: "arn:aws:ecs:us-east-1:012345678910:cluster/default",
449
+ # created_at: Time.parse("2016-08-29T16:02:54.884Z"),
450
+ # deployment_configuration: {
451
+ # maximum_percent: 200,
452
+ # minimum_healthy_percent: 100,
453
+ # },
454
+ # deployments: [
455
+ # {
456
+ # created_at: Time.parse("2016-08-29T16:02:54.884Z"),
457
+ # desired_count: 10,
458
+ # id: "ecs-svc/9223370564343000923",
459
+ # pending_count: 0,
460
+ # running_count: 0,
461
+ # status: "PRIMARY",
462
+ # task_definition: "arn:aws:ecs:us-east-1:012345678910:task-definition/console-sample-app-static:6",
463
+ # updated_at: Time.parse("2016-08-29T16:02:54.884Z"),
464
+ # },
465
+ # ],
466
+ # desired_count: 10,
467
+ # events: [
468
+ # ],
469
+ # load_balancers: [
470
+ # {
471
+ # container_name: "simple-app",
472
+ # container_port: 80,
473
+ # load_balancer_name: "EC2Contai-EcsElast-15DCDAURT3ZO2",
474
+ # },
475
+ # ],
476
+ # pending_count: 0,
477
+ # role_arn: "arn:aws:iam::012345678910:role/ecsServiceRole",
478
+ # running_count: 0,
479
+ # service_arn: "arn:aws:ecs:us-east-1:012345678910:service/ecs-simple-service-elb",
480
+ # service_name: "ecs-simple-service-elb",
481
+ # status: "ACTIVE",
482
+ # task_definition: "arn:aws:ecs:us-east-1:012345678910:task-definition/console-sample-app-static:6",
483
+ # },
484
+ # }
485
+ #
349
486
  # @example Request syntax with placeholder values
350
487
  #
351
488
  # resp = client.create_service({
@@ -490,6 +627,28 @@ module Aws::ECS
490
627
  #
491
628
  # * {Types::DeleteClusterResponse#cluster #cluster} => Types::Cluster
492
629
  #
630
+ #
631
+ # @example Example: To delete an empty cluster
632
+ #
633
+ # # This example deletes an empty cluster in your default region.
634
+ #
635
+ # resp = client.delete_cluster({
636
+ # cluster: "my_cluster",
637
+ # })
638
+ #
639
+ # resp.to_h outputs the following:
640
+ # {
641
+ # cluster: {
642
+ # active_services_count: 0,
643
+ # cluster_arn: "arn:aws:ecs:us-east-1:012345678910:cluster/my_cluster",
644
+ # cluster_name: "my_cluster",
645
+ # pending_tasks_count: 0,
646
+ # registered_container_instances_count: 0,
647
+ # running_tasks_count: 0,
648
+ # status: "INACTIVE",
649
+ # },
650
+ # }
651
+ #
493
652
  # @example Request syntax with placeholder values
494
653
  #
495
654
  # resp = client.delete_cluster({
@@ -546,6 +705,19 @@ module Aws::ECS
546
705
  #
547
706
  # * {Types::DeleteServiceResponse#service #service} => Types::Service
548
707
  #
708
+ #
709
+ # @example Example: To delete a service
710
+ #
711
+ # # 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.
712
+ #
713
+ # resp = client.delete_service({
714
+ # service: "my-http-service",
715
+ # })
716
+ #
717
+ # resp.to_h outputs the following:
718
+ # {
719
+ # }
720
+ #
549
721
  # @example Request syntax with placeholder values
550
722
  #
551
723
  # resp = client.delete_service({
@@ -654,6 +826,21 @@ module Aws::ECS
654
826
  #
655
827
  # * {Types::DeregisterContainerInstanceResponse#container_instance #container_instance} => Types::ContainerInstance
656
828
  #
829
+ #
830
+ # @example Example: To deregister a container instance from a cluster
831
+ #
832
+ # # 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.
833
+ #
834
+ # resp = client.deregister_container_instance({
835
+ # cluster: "default",
836
+ # container_instance: "container_instance_UUID",
837
+ # force: true,
838
+ # })
839
+ #
840
+ # resp.to_h outputs the following:
841
+ # {
842
+ # }
843
+ #
657
844
  # @example Request syntax with placeholder values
658
845
  #
659
846
  # resp = client.deregister_container_instance({
@@ -834,6 +1021,30 @@ module Aws::ECS
834
1021
  # * {Types::DescribeClustersResponse#clusters #clusters} => Array<Types::Cluster>
835
1022
  # * {Types::DescribeClustersResponse#failures #failures} => Array<Types::Failure>
836
1023
  #
1024
+ #
1025
+ # @example Example: To describe a cluster
1026
+ #
1027
+ # # This example provides a description of the specified cluster in your default region.
1028
+ #
1029
+ # resp = client.describe_clusters({
1030
+ # clusters: [
1031
+ # "default",
1032
+ # ],
1033
+ # })
1034
+ #
1035
+ # resp.to_h outputs the following:
1036
+ # {
1037
+ # clusters: [
1038
+ # {
1039
+ # cluster_arn: "arn:aws:ecs:us-east-1:aws_account_id:cluster/default",
1040
+ # cluster_name: "default",
1041
+ # status: "ACTIVE",
1042
+ # },
1043
+ # ],
1044
+ # failures: [
1045
+ # ],
1046
+ # }
1047
+ #
837
1048
  # @example Request syntax with placeholder values
838
1049
  #
839
1050
  # resp = client.describe_clusters({
@@ -881,6 +1092,93 @@ module Aws::ECS
881
1092
  # * {Types::DescribeContainerInstancesResponse#container_instances #container_instances} => Array<Types::ContainerInstance>
882
1093
  # * {Types::DescribeContainerInstancesResponse#failures #failures} => Array<Types::Failure>
883
1094
  #
1095
+ #
1096
+ # @example Example: To describe container instance
1097
+ #
1098
+ # # This example provides a description of the specified container instance in your default region, using the container instance UUID as an identifier.
1099
+ #
1100
+ # resp = client.describe_container_instances({
1101
+ # cluster: "default",
1102
+ # container_instances: [
1103
+ # "f2756532-8f13-4d53-87c9-aed50dc94cd7",
1104
+ # ],
1105
+ # })
1106
+ #
1107
+ # resp.to_h outputs the following:
1108
+ # {
1109
+ # container_instances: [
1110
+ # {
1111
+ # agent_connected: true,
1112
+ # container_instance_arn: "arn:aws:ecs:us-east-1:012345678910:container-instance/f2756532-8f13-4d53-87c9-aed50dc94cd7",
1113
+ # ec2_instance_id: "i-807f3249",
1114
+ # pending_tasks_count: 0,
1115
+ # registered_resources: [
1116
+ # {
1117
+ # name: "CPU",
1118
+ # type: "INTEGER",
1119
+ # double_value: 0.0,
1120
+ # integer_value: 2048,
1121
+ # long_value: 0,
1122
+ # },
1123
+ # {
1124
+ # name: "MEMORY",
1125
+ # type: "INTEGER",
1126
+ # double_value: 0.0,
1127
+ # integer_value: 3768,
1128
+ # long_value: 0,
1129
+ # },
1130
+ # {
1131
+ # name: "PORTS",
1132
+ # type: "STRINGSET",
1133
+ # double_value: 0.0,
1134
+ # integer_value: 0,
1135
+ # long_value: 0,
1136
+ # string_set_value: [
1137
+ # "2376",
1138
+ # "22",
1139
+ # "51678",
1140
+ # "2375",
1141
+ # ],
1142
+ # },
1143
+ # ],
1144
+ # remaining_resources: [
1145
+ # {
1146
+ # name: "CPU",
1147
+ # type: "INTEGER",
1148
+ # double_value: 0.0,
1149
+ # integer_value: 1948,
1150
+ # long_value: 0,
1151
+ # },
1152
+ # {
1153
+ # name: "MEMORY",
1154
+ # type: "INTEGER",
1155
+ # double_value: 0.0,
1156
+ # integer_value: 3668,
1157
+ # long_value: 0,
1158
+ # },
1159
+ # {
1160
+ # name: "PORTS",
1161
+ # type: "STRINGSET",
1162
+ # double_value: 0.0,
1163
+ # integer_value: 0,
1164
+ # long_value: 0,
1165
+ # string_set_value: [
1166
+ # "2376",
1167
+ # "22",
1168
+ # "80",
1169
+ # "51678",
1170
+ # "2375",
1171
+ # ],
1172
+ # },
1173
+ # ],
1174
+ # running_tasks_count: 1,
1175
+ # status: "ACTIVE",
1176
+ # },
1177
+ # ],
1178
+ # failures: [
1179
+ # ],
1180
+ # }
1181
+ #
884
1182
  # @example Request syntax with placeholder values
885
1183
  #
886
1184
  # resp = client.describe_container_instances({
@@ -953,6 +1251,61 @@ module Aws::ECS
953
1251
  # * {Types::DescribeServicesResponse#services #services} => Array<Types::Service>
954
1252
  # * {Types::DescribeServicesResponse#failures #failures} => Array<Types::Failure>
955
1253
  #
1254
+ #
1255
+ # @example Example: To describe a service
1256
+ #
1257
+ # # This example provides descriptive information about the service named ``ecs-simple-service``.
1258
+ #
1259
+ # resp = client.describe_services({
1260
+ # services: [
1261
+ # "ecs-simple-service",
1262
+ # ],
1263
+ # })
1264
+ #
1265
+ # resp.to_h outputs the following:
1266
+ # {
1267
+ # failures: [
1268
+ # ],
1269
+ # services: [
1270
+ # {
1271
+ # cluster_arn: "arn:aws:ecs:us-east-1:012345678910:cluster/default",
1272
+ # created_at: Time.parse("2016-08-29T16:25:52.130Z"),
1273
+ # deployment_configuration: {
1274
+ # maximum_percent: 200,
1275
+ # minimum_healthy_percent: 100,
1276
+ # },
1277
+ # deployments: [
1278
+ # {
1279
+ # created_at: Time.parse("2016-08-29T16:25:52.130Z"),
1280
+ # desired_count: 1,
1281
+ # id: "ecs-svc/9223370564341623665",
1282
+ # pending_count: 0,
1283
+ # running_count: 0,
1284
+ # status: "PRIMARY",
1285
+ # task_definition: "arn:aws:ecs:us-east-1:012345678910:task-definition/hello_world:6",
1286
+ # updated_at: Time.parse("2016-08-29T16:25:52.130Z"),
1287
+ # },
1288
+ # ],
1289
+ # desired_count: 1,
1290
+ # events: [
1291
+ # {
1292
+ # created_at: Time.parse("2016-08-29T16:25:58.520Z"),
1293
+ # id: "38c285e5-d335-4b68-8b15-e46dedc8e88d",
1294
+ # 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.", # In this example, there is a service event that shows unavailable cluster resources.
1295
+ # },
1296
+ # ],
1297
+ # load_balancers: [
1298
+ # ],
1299
+ # pending_count: 0,
1300
+ # running_count: 0,
1301
+ # service_arn: "arn:aws:ecs:us-east-1:012345678910:service/ecs-simple-service",
1302
+ # service_name: "ecs-simple-service",
1303
+ # status: "ACTIVE",
1304
+ # task_definition: "arn:aws:ecs:us-east-1:012345678910:task-definition/hello_world:6",
1305
+ # },
1306
+ # ],
1307
+ # }
1308
+ #
956
1309
  # @example Request syntax with placeholder values
957
1310
  #
958
1311
  # resp = client.describe_services({
@@ -1031,6 +1384,69 @@ module Aws::ECS
1031
1384
  #
1032
1385
  # * {Types::DescribeTaskDefinitionResponse#task_definition #task_definition} => Types::TaskDefinition
1033
1386
  #
1387
+ #
1388
+ # @example Example: To describe a task definition
1389
+ #
1390
+ # # This example provides a description of the specified task definition.
1391
+ #
1392
+ # resp = client.describe_task_definition({
1393
+ # task_definition: "hello_world:8",
1394
+ # })
1395
+ #
1396
+ # resp.to_h outputs the following:
1397
+ # {
1398
+ # task_definition: {
1399
+ # container_definitions: [
1400
+ # {
1401
+ # name: "wordpress",
1402
+ # cpu: 10,
1403
+ # environment: [
1404
+ # ],
1405
+ # essential: true,
1406
+ # image: "wordpress",
1407
+ # links: [
1408
+ # "mysql",
1409
+ # ],
1410
+ # memory: 500,
1411
+ # mount_points: [
1412
+ # ],
1413
+ # port_mappings: [
1414
+ # {
1415
+ # container_port: 80,
1416
+ # host_port: 80,
1417
+ # },
1418
+ # ],
1419
+ # volumes_from: [
1420
+ # ],
1421
+ # },
1422
+ # {
1423
+ # name: "mysql",
1424
+ # cpu: 10,
1425
+ # environment: [
1426
+ # {
1427
+ # name: "MYSQL_ROOT_PASSWORD",
1428
+ # value: "password",
1429
+ # },
1430
+ # ],
1431
+ # essential: true,
1432
+ # image: "mysql",
1433
+ # memory: 500,
1434
+ # mount_points: [
1435
+ # ],
1436
+ # port_mappings: [
1437
+ # ],
1438
+ # volumes_from: [
1439
+ # ],
1440
+ # },
1441
+ # ],
1442
+ # family: "hello_world",
1443
+ # revision: 8,
1444
+ # task_definition_arn: "arn:aws:ecs:us-east-1:<aws_account_id>:task-definition/hello_world:8",
1445
+ # volumes: [
1446
+ # ],
1447
+ # },
1448
+ # }
1449
+ #
1034
1450
  # @example Request syntax with placeholder values
1035
1451
  #
1036
1452
  # resp = client.describe_task_definition({
@@ -1133,6 +1549,56 @@ module Aws::ECS
1133
1549
  # * {Types::DescribeTasksResponse#tasks #tasks} => Array&lt;Types::Task&gt;
1134
1550
  # * {Types::DescribeTasksResponse#failures #failures} => Array&lt;Types::Failure&gt;
1135
1551
  #
1552
+ #
1553
+ # @example Example: To describe a task
1554
+ #
1555
+ # # This example provides a description of the specified task, using the task UUID as an identifier.
1556
+ #
1557
+ # resp = client.describe_tasks({
1558
+ # tasks: [
1559
+ # "c5cba4eb-5dad-405e-96db-71ef8eefe6a8",
1560
+ # ],
1561
+ # })
1562
+ #
1563
+ # resp.to_h outputs the following:
1564
+ # {
1565
+ # failures: [
1566
+ # ],
1567
+ # tasks: [
1568
+ # {
1569
+ # cluster_arn: "arn:aws:ecs:<region>:<aws_account_id>:cluster/default",
1570
+ # container_instance_arn: "arn:aws:ecs:<region>:<aws_account_id>:container-instance/18f9eda5-27d7-4c19-b133-45adc516e8fb",
1571
+ # containers: [
1572
+ # {
1573
+ # name: "ecs-demo",
1574
+ # container_arn: "arn:aws:ecs:<region>:<aws_account_id>:container/7c01765b-c588-45b3-8290-4ba38bd6c5a6",
1575
+ # last_status: "RUNNING",
1576
+ # network_bindings: [
1577
+ # {
1578
+ # bind_ip: "0.0.0.0",
1579
+ # container_port: 80,
1580
+ # host_port: 80,
1581
+ # },
1582
+ # ],
1583
+ # task_arn: "arn:aws:ecs:<region>:<aws_account_id>:task/c5cba4eb-5dad-405e-96db-71ef8eefe6a8",
1584
+ # },
1585
+ # ],
1586
+ # desired_status: "RUNNING",
1587
+ # last_status: "RUNNING",
1588
+ # overrides: {
1589
+ # container_overrides: [
1590
+ # {
1591
+ # name: "ecs-demo",
1592
+ # },
1593
+ # ],
1594
+ # },
1595
+ # started_by: "ecs-svc/9223370608528463088",
1596
+ # task_arn: "arn:aws:ecs:<region>:<aws_account_id>:task/c5cba4eb-5dad-405e-96db-71ef8eefe6a8",
1597
+ # task_definition_arn: "arn:aws:ecs:<region>:<aws_account_id>:task-definition/amazon-ecs-sample:1",
1598
+ # },
1599
+ # ],
1600
+ # }
1601
+ #
1136
1602
  # @example Request syntax with placeholder values
1137
1603
  #
1138
1604
  # resp = client.describe_tasks({
@@ -1350,6 +1816,22 @@ module Aws::ECS
1350
1816
  # * {Types::ListClustersResponse#cluster_arns #cluster_arns} => Array&lt;String&gt;
1351
1817
  # * {Types::ListClustersResponse#next_token #next_token} => String
1352
1818
  #
1819
+ #
1820
+ # @example Example: To list your available clusters
1821
+ #
1822
+ # # This example lists all of your available clusters in your default region.
1823
+ #
1824
+ # resp = client.list_clusters({
1825
+ # })
1826
+ #
1827
+ # resp.to_h outputs the following:
1828
+ # {
1829
+ # cluster_arns: [
1830
+ # "arn:aws:ecs:us-east-1:<aws_account_id>:cluster/test",
1831
+ # "arn:aws:ecs:us-east-1:<aws_account_id>:cluster/default",
1832
+ # ],
1833
+ # }
1834
+ #
1353
1835
  # @example Request syntax with placeholder values
1354
1836
  #
1355
1837
  # resp = client.list_clusters({
@@ -1433,6 +1915,23 @@ module Aws::ECS
1433
1915
  # * {Types::ListContainerInstancesResponse#container_instance_arns #container_instance_arns} => Array&lt;String&gt;
1434
1916
  # * {Types::ListContainerInstancesResponse#next_token #next_token} => String
1435
1917
  #
1918
+ #
1919
+ # @example Example: To list your available container instances in a cluster
1920
+ #
1921
+ # # This example lists all of your available container instances in the specified cluster in your default region.
1922
+ #
1923
+ # resp = client.list_container_instances({
1924
+ # cluster: "default",
1925
+ # })
1926
+ #
1927
+ # resp.to_h outputs the following:
1928
+ # {
1929
+ # container_instance_arns: [
1930
+ # "arn:aws:ecs:us-east-1:<aws_account_id>:container-instance/f6bbb147-5370-4ace-8c73-c7181ded911f",
1931
+ # "arn:aws:ecs:us-east-1:<aws_account_id>:container-instance/ffe3d344-77e2-476c-a4d0-bf560ad50acb",
1932
+ # ],
1933
+ # }
1934
+ #
1436
1935
  # @example Request syntax with placeholder values
1437
1936
  #
1438
1937
  # resp = client.list_container_instances({
@@ -1493,6 +1992,21 @@ module Aws::ECS
1493
1992
  # * {Types::ListServicesResponse#service_arns #service_arns} => Array&lt;String&gt;
1494
1993
  # * {Types::ListServicesResponse#next_token #next_token} => String
1495
1994
  #
1995
+ #
1996
+ # @example Example: To list the services in a cluster
1997
+ #
1998
+ # # This example lists the services running in the default cluster for an account.
1999
+ #
2000
+ # resp = client.list_services({
2001
+ # })
2002
+ #
2003
+ # resp.to_h outputs the following:
2004
+ # {
2005
+ # service_arns: [
2006
+ # "arn:aws:ecs:us-east-1:012345678910:service/my-http-service",
2007
+ # ],
2008
+ # }
2009
+ #
1496
2010
  # @example Request syntax with placeholder values
1497
2011
  #
1498
2012
  # resp = client.list_services({
@@ -1571,6 +2085,40 @@ module Aws::ECS
1571
2085
  # * {Types::ListTaskDefinitionFamiliesResponse#families #families} => Array&lt;String&gt;
1572
2086
  # * {Types::ListTaskDefinitionFamiliesResponse#next_token #next_token} => String
1573
2087
  #
2088
+ #
2089
+ # @example Example: To list your registered task definition families
2090
+ #
2091
+ # # This example lists all of your registered task definition families.
2092
+ #
2093
+ # resp = client.list_task_definition_families({
2094
+ # })
2095
+ #
2096
+ # resp.to_h outputs the following:
2097
+ # {
2098
+ # families: [
2099
+ # "node-js-app",
2100
+ # "web-timer",
2101
+ # "hpcc",
2102
+ # "hpcc-c4-8xlarge",
2103
+ # ],
2104
+ # }
2105
+ #
2106
+ # @example Example: To filter your registered task definition families
2107
+ #
2108
+ # # This example lists the task definition revisions that start with "hpcc".
2109
+ #
2110
+ # resp = client.list_task_definition_families({
2111
+ # family_prefix: "hpcc",
2112
+ # })
2113
+ #
2114
+ # resp.to_h outputs the following:
2115
+ # {
2116
+ # families: [
2117
+ # "hpcc",
2118
+ # "hpcc-c4-8xlarge",
2119
+ # ],
2120
+ # }
2121
+ #
1574
2122
  # @example Request syntax with placeholder values
1575
2123
  #
1576
2124
  # resp = client.list_task_definition_families({
@@ -1651,6 +2199,44 @@ module Aws::ECS
1651
2199
  # * {Types::ListTaskDefinitionsResponse#task_definition_arns #task_definition_arns} => Array&lt;String&gt;
1652
2200
  # * {Types::ListTaskDefinitionsResponse#next_token #next_token} => String
1653
2201
  #
2202
+ #
2203
+ # @example Example: To list your registered task definitions
2204
+ #
2205
+ # # This example lists all of your registered task definitions.
2206
+ #
2207
+ # resp = client.list_task_definitions({
2208
+ # })
2209
+ #
2210
+ # resp.to_h outputs the following:
2211
+ # {
2212
+ # task_definition_arns: [
2213
+ # "arn:aws:ecs:us-east-1:<aws_account_id>:task-definition/sleep300:2",
2214
+ # "arn:aws:ecs:us-east-1:<aws_account_id>:task-definition/sleep360:1",
2215
+ # "arn:aws:ecs:us-east-1:<aws_account_id>:task-definition/wordpress:3",
2216
+ # "arn:aws:ecs:us-east-1:<aws_account_id>:task-definition/wordpress:4",
2217
+ # "arn:aws:ecs:us-east-1:<aws_account_id>:task-definition/wordpress:5",
2218
+ # "arn:aws:ecs:us-east-1:<aws_account_id>:task-definition/wordpress:6",
2219
+ # ],
2220
+ # }
2221
+ #
2222
+ # @example Example: To list the registered task definitions in a family
2223
+ #
2224
+ # # This example lists the task definition revisions of a specified family.
2225
+ #
2226
+ # resp = client.list_task_definitions({
2227
+ # family_prefix: "wordpress",
2228
+ # })
2229
+ #
2230
+ # resp.to_h outputs the following:
2231
+ # {
2232
+ # task_definition_arns: [
2233
+ # "arn:aws:ecs:us-east-1:<aws_account_id>:task-definition/wordpress:3",
2234
+ # "arn:aws:ecs:us-east-1:<aws_account_id>:task-definition/wordpress:4",
2235
+ # "arn:aws:ecs:us-east-1:<aws_account_id>:task-definition/wordpress:5",
2236
+ # "arn:aws:ecs:us-east-1:<aws_account_id>:task-definition/wordpress:6",
2237
+ # ],
2238
+ # }
2239
+ #
1654
2240
  # @example Request syntax with placeholder values
1655
2241
  #
1656
2242
  # resp = client.list_task_definitions({
@@ -1754,6 +2340,39 @@ module Aws::ECS
1754
2340
  # * {Types::ListTasksResponse#task_arns #task_arns} => Array&lt;String&gt;
1755
2341
  # * {Types::ListTasksResponse#next_token #next_token} => String
1756
2342
  #
2343
+ #
2344
+ # @example Example: To list the tasks in a cluster
2345
+ #
2346
+ # # This example lists all of the tasks in a cluster.
2347
+ #
2348
+ # resp = client.list_tasks({
2349
+ # cluster: "default",
2350
+ # })
2351
+ #
2352
+ # resp.to_h outputs the following:
2353
+ # {
2354
+ # task_arns: [
2355
+ # "arn:aws:ecs:us-east-1:012345678910:task/0cc43cdb-3bee-4407-9c26-c0e6ea5bee84",
2356
+ # "arn:aws:ecs:us-east-1:012345678910:task/6b809ef6-c67e-4467-921f-ee261c15a0a1",
2357
+ # ],
2358
+ # }
2359
+ #
2360
+ # @example Example: To list the tasks on a particular container instance
2361
+ #
2362
+ # # 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.
2363
+ #
2364
+ # resp = client.list_tasks({
2365
+ # cluster: "default",
2366
+ # container_instance: "f6bbb147-5370-4ace-8c73-c7181ded911f",
2367
+ # })
2368
+ #
2369
+ # resp.to_h outputs the following:
2370
+ # {
2371
+ # task_arns: [
2372
+ # "arn:aws:ecs:us-east-1:012345678910:task/0cc43cdb-3bee-4407-9c26-c0e6ea5bee84",
2373
+ # ],
2374
+ # }
2375
+ #
1757
2376
  # @example Request syntax with placeholder values
1758
2377
  #
1759
2378
  # resp = client.list_tasks({
@@ -2038,6 +2657,63 @@ module Aws::ECS
2038
2657
  #
2039
2658
  # * {Types::RegisterTaskDefinitionResponse#task_definition #task_definition} => Types::TaskDefinition
2040
2659
  #
2660
+ #
2661
+ # @example Example: To register a task definition
2662
+ #
2663
+ # # This example registers a task definition to the specified family.
2664
+ #
2665
+ # resp = client.register_task_definition({
2666
+ # container_definitions: [
2667
+ # {
2668
+ # name: "sleep",
2669
+ # command: [
2670
+ # "sleep",
2671
+ # "360",
2672
+ # ],
2673
+ # cpu: 10,
2674
+ # essential: true,
2675
+ # image: "busybox",
2676
+ # memory: 10,
2677
+ # },
2678
+ # ],
2679
+ # family: "sleep360",
2680
+ # task_role_arn: "",
2681
+ # volumes: [
2682
+ # ],
2683
+ # })
2684
+ #
2685
+ # resp.to_h outputs the following:
2686
+ # {
2687
+ # task_definition: {
2688
+ # container_definitions: [
2689
+ # {
2690
+ # name: "sleep",
2691
+ # command: [
2692
+ # "sleep",
2693
+ # "360",
2694
+ # ],
2695
+ # cpu: 10,
2696
+ # environment: [
2697
+ # ],
2698
+ # essential: true,
2699
+ # image: "busybox",
2700
+ # memory: 10,
2701
+ # mount_points: [
2702
+ # ],
2703
+ # port_mappings: [
2704
+ # ],
2705
+ # volumes_from: [
2706
+ # ],
2707
+ # },
2708
+ # ],
2709
+ # family: "sleep360",
2710
+ # revision: 1,
2711
+ # task_definition_arn: "arn:aws:ecs:us-east-1:<aws_account_id>:task-definition/sleep360:19",
2712
+ # volumes: [
2713
+ # ],
2714
+ # },
2715
+ # }
2716
+ #
2041
2717
  # @example Request syntax with placeholder values
2042
2718
  #
2043
2719
  # resp = client.register_task_definition({
@@ -2284,6 +2960,44 @@ module Aws::ECS
2284
2960
  # * {Types::RunTaskResponse#tasks #tasks} => Array&lt;Types::Task&gt;
2285
2961
  # * {Types::RunTaskResponse#failures #failures} => Array&lt;Types::Failure&gt;
2286
2962
  #
2963
+ #
2964
+ # @example Example: To run a task on your default cluster
2965
+ #
2966
+ # # This example runs the specified task definition on your default cluster.
2967
+ #
2968
+ # resp = client.run_task({
2969
+ # cluster: "default",
2970
+ # task_definition: "sleep360:1",
2971
+ # })
2972
+ #
2973
+ # resp.to_h outputs the following:
2974
+ # {
2975
+ # tasks: [
2976
+ # {
2977
+ # container_instance_arn: "arn:aws:ecs:us-east-1:<aws_account_id>:container-instance/ffe3d344-77e2-476c-a4d0-bf560ad50acb",
2978
+ # containers: [
2979
+ # {
2980
+ # name: "sleep",
2981
+ # container_arn: "arn:aws:ecs:us-east-1:<aws_account_id>:container/58591c8e-be29-4ddf-95aa-ee459d4c59fd",
2982
+ # last_status: "PENDING",
2983
+ # task_arn: "arn:aws:ecs:us-east-1:<aws_account_id>:task/a9f21ea7-c9f5-44b1-b8e6-b31f50ed33c0",
2984
+ # },
2985
+ # ],
2986
+ # desired_status: "RUNNING",
2987
+ # last_status: "PENDING",
2988
+ # overrides: {
2989
+ # container_overrides: [
2990
+ # {
2991
+ # name: "sleep",
2992
+ # },
2993
+ # ],
2994
+ # },
2995
+ # task_arn: "arn:aws:ecs:us-east-1:<aws_account_id>:task/a9f21ea7-c9f5-44b1-b8e6-b31f50ed33c0",
2996
+ # task_definition_arn: "arn:aws:ecs:us-east-1:<aws_account_id>:task-definition/sleep360:1",
2997
+ # },
2998
+ # ],
2999
+ # }
3000
+ #
2287
3001
  # @example Request syntax with placeholder values
2288
3002
  #
2289
3003
  # resp = client.run_task({
@@ -3040,6 +3754,33 @@ module Aws::ECS
3040
3754
  #
3041
3755
  # * {Types::UpdateServiceResponse#service #service} => Types::Service
3042
3756
  #
3757
+ #
3758
+ # @example Example: To change the task definition used in a service
3759
+ #
3760
+ # # This example updates the my-http-service service to use the amazon-ecs-sample task definition.
3761
+ #
3762
+ # resp = client.update_service({
3763
+ # service: "my-http-service",
3764
+ # task_definition: "amazon-ecs-sample",
3765
+ # })
3766
+ #
3767
+ # resp.to_h outputs the following:
3768
+ # {
3769
+ # }
3770
+ #
3771
+ # @example Example: To change the number of tasks in a service
3772
+ #
3773
+ # # This example updates the desired count of the my-http-service service to 10.
3774
+ #
3775
+ # resp = client.update_service({
3776
+ # desired_count: 10,
3777
+ # service: "my-http-service",
3778
+ # })
3779
+ #
3780
+ # resp.to_h outputs the following:
3781
+ # {
3782
+ # }
3783
+ #
3043
3784
  # @example Request syntax with placeholder values
3044
3785
  #
3045
3786
  # resp = client.update_service({
@@ -3114,7 +3855,7 @@ module Aws::ECS
3114
3855
  params: params,
3115
3856
  config: config)
3116
3857
  context[:gem_name] = 'aws-sdk-ecs'
3117
- context[:gem_version] = '1.0.0.rc8'
3858
+ context[:gem_version] = '1.0.0.rc9'
3118
3859
  Seahorse::Client::Request.new(handlers, context)
3119
3860
  end
3120
3861
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-ecs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.rc8
4
+ version: 1.0.0.rc9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-26 00:00:00.000000000 Z
11
+ date: 2017-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 3.0.0.rc13
19
+ version: 3.0.0.rc14
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 3.0.0.rc13
26
+ version: 3.0.0.rc14
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: aws-sigv4
29
29
  requirement: !ruby/object:Gem::Requirement