aws-sdk-batch 1.33.0 → 1.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/aws-sdk-batch.rb +3 -2
- data/lib/aws-sdk-batch/client.rb +166 -10
- data/lib/aws-sdk-batch/client_api.rb +39 -0
- data/lib/aws-sdk-batch/types.rb +588 -28
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b7df37b762ca1ed368a2e9a932eb1850fe3ec6b0db8e3842d95cf316d360024a
|
4
|
+
data.tar.gz: b498928a905b6495c02673df02ed84193243a840380ce9a98f2074507195962d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b6c5a92f1ad991cb9df86043a44b1e81e00a0619c72e7ec2beaf87739bd85f4b30c50e6dc44564759ca407c6fd0de249f06ed13f1714e4dae1562db85e0e869
|
7
|
+
data.tar.gz: ce5d6334f73ebb34449b955c1a6fb8d58b85efac6eb51561c8a58b429d4e5d2eec9590465e374a55a91975adc03b11d3270aeadc3425b26036a778765e76f633
|
data/lib/aws-sdk-batch.rb
CHANGED
@@ -7,6 +7,7 @@
|
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
10
|
+
|
10
11
|
require 'aws-sdk-core'
|
11
12
|
require 'aws-sigv4'
|
12
13
|
|
@@ -44,9 +45,9 @@ require_relative 'aws-sdk-batch/customizations'
|
|
44
45
|
#
|
45
46
|
# See {Errors} for more information.
|
46
47
|
#
|
47
|
-
#
|
48
|
+
# @!group service
|
48
49
|
module Aws::Batch
|
49
50
|
|
50
|
-
GEM_VERSION = '1.
|
51
|
+
GEM_VERSION = '1.38.0'
|
51
52
|
|
52
53
|
end
|
data/lib/aws-sdk-batch/client.rb
CHANGED
@@ -85,13 +85,28 @@ module Aws::Batch
|
|
85
85
|
# * `Aws::Credentials` - Used for configuring static, non-refreshing
|
86
86
|
# credentials.
|
87
87
|
#
|
88
|
+
# * `Aws::SharedCredentials` - Used for loading static credentials from a
|
89
|
+
# shared file, such as `~/.aws/config`.
|
90
|
+
#
|
91
|
+
# * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
|
92
|
+
#
|
93
|
+
# * `Aws::AssumeRoleWebIdentityCredentials` - Used when you need to
|
94
|
+
# assume a role after providing credentials via the web.
|
95
|
+
#
|
96
|
+
# * `Aws::SSOCredentials` - Used for loading credentials from AWS SSO using an
|
97
|
+
# access token generated from `aws login`.
|
98
|
+
#
|
99
|
+
# * `Aws::ProcessCredentials` - Used for loading credentials from a
|
100
|
+
# process that outputs to stdout.
|
101
|
+
#
|
88
102
|
# * `Aws::InstanceProfileCredentials` - Used for loading credentials
|
89
103
|
# from an EC2 IMDS on an EC2 instance.
|
90
104
|
#
|
91
|
-
# * `Aws::
|
92
|
-
#
|
105
|
+
# * `Aws::ECSCredentials` - Used for loading credentials from
|
106
|
+
# instances running in ECS.
|
93
107
|
#
|
94
|
-
# * `Aws::
|
108
|
+
# * `Aws::CognitoIdentityCredentials` - Used for loading credentials
|
109
|
+
# from the Cognito Identity service.
|
95
110
|
#
|
96
111
|
# When `:credentials` are not configured directly, the following
|
97
112
|
# locations will be searched for credentials:
|
@@ -101,10 +116,10 @@ module Aws::Batch
|
|
101
116
|
# * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
|
102
117
|
# * `~/.aws/credentials`
|
103
118
|
# * `~/.aws/config`
|
104
|
-
# * EC2 IMDS instance profile - When used by default, the timeouts
|
105
|
-
# very aggressive. Construct and pass an instance of
|
106
|
-
# `Aws::InstanceProfileCredentails`
|
107
|
-
# timeouts.
|
119
|
+
# * EC2/ECS IMDS instance profile - When used by default, the timeouts
|
120
|
+
# are very aggressive. Construct and pass an instance of
|
121
|
+
# `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
|
122
|
+
# enable retries and extended timeouts.
|
108
123
|
#
|
109
124
|
# @option options [required, String] :region
|
110
125
|
# The AWS region to connect to. The configured `:region` is
|
@@ -609,7 +624,9 @@ module Aws::Batch
|
|
609
624
|
#
|
610
625
|
# @option params [String] :state
|
611
626
|
# The state of the job queue. If the job queue state is `ENABLED`, it is
|
612
|
-
# able to accept jobs.
|
627
|
+
# able to accept jobs. If the job queue state is `DISABLED`, new jobs
|
628
|
+
# cannot be added to the queue, but jobs already in the queue can
|
629
|
+
# finish.
|
613
630
|
#
|
614
631
|
# @option params [required, Integer] :priority
|
615
632
|
# The priority of the job queue. Job queues with a higher priority (or a
|
@@ -1082,6 +1099,7 @@ module Aws::Batch
|
|
1082
1099
|
# resp.job_definitions[0].container_properties.command #=> Array
|
1083
1100
|
# resp.job_definitions[0].container_properties.command[0] #=> String
|
1084
1101
|
# resp.job_definitions[0].container_properties.job_role_arn #=> String
|
1102
|
+
# resp.job_definitions[0].container_properties.execution_role_arn #=> String
|
1085
1103
|
# resp.job_definitions[0].container_properties.volumes #=> Array
|
1086
1104
|
# resp.job_definitions[0].container_properties.volumes[0].host.source_path #=> String
|
1087
1105
|
# resp.job_definitions[0].container_properties.volumes[0].name #=> String
|
@@ -1108,6 +1126,24 @@ module Aws::Batch
|
|
1108
1126
|
# resp.job_definitions[0].container_properties.linux_parameters.devices[0].container_path #=> String
|
1109
1127
|
# resp.job_definitions[0].container_properties.linux_parameters.devices[0].permissions #=> Array
|
1110
1128
|
# resp.job_definitions[0].container_properties.linux_parameters.devices[0].permissions[0] #=> String, one of "READ", "WRITE", "MKNOD"
|
1129
|
+
# resp.job_definitions[0].container_properties.linux_parameters.init_process_enabled #=> Boolean
|
1130
|
+
# resp.job_definitions[0].container_properties.linux_parameters.shared_memory_size #=> Integer
|
1131
|
+
# resp.job_definitions[0].container_properties.linux_parameters.tmpfs #=> Array
|
1132
|
+
# resp.job_definitions[0].container_properties.linux_parameters.tmpfs[0].container_path #=> String
|
1133
|
+
# resp.job_definitions[0].container_properties.linux_parameters.tmpfs[0].size #=> Integer
|
1134
|
+
# resp.job_definitions[0].container_properties.linux_parameters.tmpfs[0].mount_options #=> Array
|
1135
|
+
# resp.job_definitions[0].container_properties.linux_parameters.tmpfs[0].mount_options[0] #=> String
|
1136
|
+
# resp.job_definitions[0].container_properties.linux_parameters.max_swap #=> Integer
|
1137
|
+
# resp.job_definitions[0].container_properties.linux_parameters.swappiness #=> Integer
|
1138
|
+
# resp.job_definitions[0].container_properties.log_configuration.log_driver #=> String, one of "json-file", "syslog", "journald", "gelf", "fluentd", "awslogs", "splunk"
|
1139
|
+
# resp.job_definitions[0].container_properties.log_configuration.options #=> Hash
|
1140
|
+
# resp.job_definitions[0].container_properties.log_configuration.options["String"] #=> String
|
1141
|
+
# resp.job_definitions[0].container_properties.log_configuration.secret_options #=> Array
|
1142
|
+
# resp.job_definitions[0].container_properties.log_configuration.secret_options[0].name #=> String
|
1143
|
+
# resp.job_definitions[0].container_properties.log_configuration.secret_options[0].value_from #=> String
|
1144
|
+
# resp.job_definitions[0].container_properties.secrets #=> Array
|
1145
|
+
# resp.job_definitions[0].container_properties.secrets[0].name #=> String
|
1146
|
+
# resp.job_definitions[0].container_properties.secrets[0].value_from #=> String
|
1111
1147
|
# resp.job_definitions[0].timeout.attempt_duration_seconds #=> Integer
|
1112
1148
|
# resp.job_definitions[0].node_properties.num_nodes #=> Integer
|
1113
1149
|
# resp.job_definitions[0].node_properties.main_node #=> Integer
|
@@ -1119,6 +1155,7 @@ module Aws::Batch
|
|
1119
1155
|
# resp.job_definitions[0].node_properties.node_range_properties[0].container.command #=> Array
|
1120
1156
|
# resp.job_definitions[0].node_properties.node_range_properties[0].container.command[0] #=> String
|
1121
1157
|
# resp.job_definitions[0].node_properties.node_range_properties[0].container.job_role_arn #=> String
|
1158
|
+
# resp.job_definitions[0].node_properties.node_range_properties[0].container.execution_role_arn #=> String
|
1122
1159
|
# resp.job_definitions[0].node_properties.node_range_properties[0].container.volumes #=> Array
|
1123
1160
|
# resp.job_definitions[0].node_properties.node_range_properties[0].container.volumes[0].host.source_path #=> String
|
1124
1161
|
# resp.job_definitions[0].node_properties.node_range_properties[0].container.volumes[0].name #=> String
|
@@ -1145,6 +1182,24 @@ module Aws::Batch
|
|
1145
1182
|
# resp.job_definitions[0].node_properties.node_range_properties[0].container.linux_parameters.devices[0].container_path #=> String
|
1146
1183
|
# resp.job_definitions[0].node_properties.node_range_properties[0].container.linux_parameters.devices[0].permissions #=> Array
|
1147
1184
|
# resp.job_definitions[0].node_properties.node_range_properties[0].container.linux_parameters.devices[0].permissions[0] #=> String, one of "READ", "WRITE", "MKNOD"
|
1185
|
+
# resp.job_definitions[0].node_properties.node_range_properties[0].container.linux_parameters.init_process_enabled #=> Boolean
|
1186
|
+
# resp.job_definitions[0].node_properties.node_range_properties[0].container.linux_parameters.shared_memory_size #=> Integer
|
1187
|
+
# resp.job_definitions[0].node_properties.node_range_properties[0].container.linux_parameters.tmpfs #=> Array
|
1188
|
+
# resp.job_definitions[0].node_properties.node_range_properties[0].container.linux_parameters.tmpfs[0].container_path #=> String
|
1189
|
+
# resp.job_definitions[0].node_properties.node_range_properties[0].container.linux_parameters.tmpfs[0].size #=> Integer
|
1190
|
+
# resp.job_definitions[0].node_properties.node_range_properties[0].container.linux_parameters.tmpfs[0].mount_options #=> Array
|
1191
|
+
# resp.job_definitions[0].node_properties.node_range_properties[0].container.linux_parameters.tmpfs[0].mount_options[0] #=> String
|
1192
|
+
# resp.job_definitions[0].node_properties.node_range_properties[0].container.linux_parameters.max_swap #=> Integer
|
1193
|
+
# resp.job_definitions[0].node_properties.node_range_properties[0].container.linux_parameters.swappiness #=> Integer
|
1194
|
+
# resp.job_definitions[0].node_properties.node_range_properties[0].container.log_configuration.log_driver #=> String, one of "json-file", "syslog", "journald", "gelf", "fluentd", "awslogs", "splunk"
|
1195
|
+
# resp.job_definitions[0].node_properties.node_range_properties[0].container.log_configuration.options #=> Hash
|
1196
|
+
# resp.job_definitions[0].node_properties.node_range_properties[0].container.log_configuration.options["String"] #=> String
|
1197
|
+
# resp.job_definitions[0].node_properties.node_range_properties[0].container.log_configuration.secret_options #=> Array
|
1198
|
+
# resp.job_definitions[0].node_properties.node_range_properties[0].container.log_configuration.secret_options[0].name #=> String
|
1199
|
+
# resp.job_definitions[0].node_properties.node_range_properties[0].container.log_configuration.secret_options[0].value_from #=> String
|
1200
|
+
# resp.job_definitions[0].node_properties.node_range_properties[0].container.secrets #=> Array
|
1201
|
+
# resp.job_definitions[0].node_properties.node_range_properties[0].container.secrets[0].name #=> String
|
1202
|
+
# resp.job_definitions[0].node_properties.node_range_properties[0].container.secrets[0].value_from #=> String
|
1148
1203
|
# resp.next_token #=> String
|
1149
1204
|
#
|
1150
1205
|
# @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobDefinitions AWS API Documentation
|
@@ -1356,6 +1411,7 @@ module Aws::Batch
|
|
1356
1411
|
# resp.jobs[0].container.command #=> Array
|
1357
1412
|
# resp.jobs[0].container.command[0] #=> String
|
1358
1413
|
# resp.jobs[0].container.job_role_arn #=> String
|
1414
|
+
# resp.jobs[0].container.execution_role_arn #=> String
|
1359
1415
|
# resp.jobs[0].container.volumes #=> Array
|
1360
1416
|
# resp.jobs[0].container.volumes[0].host.source_path #=> String
|
1361
1417
|
# resp.jobs[0].container.volumes[0].name #=> String
|
@@ -1391,6 +1447,24 @@ module Aws::Batch
|
|
1391
1447
|
# resp.jobs[0].container.linux_parameters.devices[0].container_path #=> String
|
1392
1448
|
# resp.jobs[0].container.linux_parameters.devices[0].permissions #=> Array
|
1393
1449
|
# resp.jobs[0].container.linux_parameters.devices[0].permissions[0] #=> String, one of "READ", "WRITE", "MKNOD"
|
1450
|
+
# resp.jobs[0].container.linux_parameters.init_process_enabled #=> Boolean
|
1451
|
+
# resp.jobs[0].container.linux_parameters.shared_memory_size #=> Integer
|
1452
|
+
# resp.jobs[0].container.linux_parameters.tmpfs #=> Array
|
1453
|
+
# resp.jobs[0].container.linux_parameters.tmpfs[0].container_path #=> String
|
1454
|
+
# resp.jobs[0].container.linux_parameters.tmpfs[0].size #=> Integer
|
1455
|
+
# resp.jobs[0].container.linux_parameters.tmpfs[0].mount_options #=> Array
|
1456
|
+
# resp.jobs[0].container.linux_parameters.tmpfs[0].mount_options[0] #=> String
|
1457
|
+
# resp.jobs[0].container.linux_parameters.max_swap #=> Integer
|
1458
|
+
# resp.jobs[0].container.linux_parameters.swappiness #=> Integer
|
1459
|
+
# resp.jobs[0].container.log_configuration.log_driver #=> String, one of "json-file", "syslog", "journald", "gelf", "fluentd", "awslogs", "splunk"
|
1460
|
+
# resp.jobs[0].container.log_configuration.options #=> Hash
|
1461
|
+
# resp.jobs[0].container.log_configuration.options["String"] #=> String
|
1462
|
+
# resp.jobs[0].container.log_configuration.secret_options #=> Array
|
1463
|
+
# resp.jobs[0].container.log_configuration.secret_options[0].name #=> String
|
1464
|
+
# resp.jobs[0].container.log_configuration.secret_options[0].value_from #=> String
|
1465
|
+
# resp.jobs[0].container.secrets #=> Array
|
1466
|
+
# resp.jobs[0].container.secrets[0].name #=> String
|
1467
|
+
# resp.jobs[0].container.secrets[0].value_from #=> String
|
1394
1468
|
# resp.jobs[0].node_details.node_index #=> Integer
|
1395
1469
|
# resp.jobs[0].node_details.is_main_node #=> Boolean
|
1396
1470
|
# resp.jobs[0].node_properties.num_nodes #=> Integer
|
@@ -1403,6 +1477,7 @@ module Aws::Batch
|
|
1403
1477
|
# resp.jobs[0].node_properties.node_range_properties[0].container.command #=> Array
|
1404
1478
|
# resp.jobs[0].node_properties.node_range_properties[0].container.command[0] #=> String
|
1405
1479
|
# resp.jobs[0].node_properties.node_range_properties[0].container.job_role_arn #=> String
|
1480
|
+
# resp.jobs[0].node_properties.node_range_properties[0].container.execution_role_arn #=> String
|
1406
1481
|
# resp.jobs[0].node_properties.node_range_properties[0].container.volumes #=> Array
|
1407
1482
|
# resp.jobs[0].node_properties.node_range_properties[0].container.volumes[0].host.source_path #=> String
|
1408
1483
|
# resp.jobs[0].node_properties.node_range_properties[0].container.volumes[0].name #=> String
|
@@ -1429,6 +1504,24 @@ module Aws::Batch
|
|
1429
1504
|
# resp.jobs[0].node_properties.node_range_properties[0].container.linux_parameters.devices[0].container_path #=> String
|
1430
1505
|
# resp.jobs[0].node_properties.node_range_properties[0].container.linux_parameters.devices[0].permissions #=> Array
|
1431
1506
|
# resp.jobs[0].node_properties.node_range_properties[0].container.linux_parameters.devices[0].permissions[0] #=> String, one of "READ", "WRITE", "MKNOD"
|
1507
|
+
# resp.jobs[0].node_properties.node_range_properties[0].container.linux_parameters.init_process_enabled #=> Boolean
|
1508
|
+
# resp.jobs[0].node_properties.node_range_properties[0].container.linux_parameters.shared_memory_size #=> Integer
|
1509
|
+
# resp.jobs[0].node_properties.node_range_properties[0].container.linux_parameters.tmpfs #=> Array
|
1510
|
+
# resp.jobs[0].node_properties.node_range_properties[0].container.linux_parameters.tmpfs[0].container_path #=> String
|
1511
|
+
# resp.jobs[0].node_properties.node_range_properties[0].container.linux_parameters.tmpfs[0].size #=> Integer
|
1512
|
+
# resp.jobs[0].node_properties.node_range_properties[0].container.linux_parameters.tmpfs[0].mount_options #=> Array
|
1513
|
+
# resp.jobs[0].node_properties.node_range_properties[0].container.linux_parameters.tmpfs[0].mount_options[0] #=> String
|
1514
|
+
# resp.jobs[0].node_properties.node_range_properties[0].container.linux_parameters.max_swap #=> Integer
|
1515
|
+
# resp.jobs[0].node_properties.node_range_properties[0].container.linux_parameters.swappiness #=> Integer
|
1516
|
+
# resp.jobs[0].node_properties.node_range_properties[0].container.log_configuration.log_driver #=> String, one of "json-file", "syslog", "journald", "gelf", "fluentd", "awslogs", "splunk"
|
1517
|
+
# resp.jobs[0].node_properties.node_range_properties[0].container.log_configuration.options #=> Hash
|
1518
|
+
# resp.jobs[0].node_properties.node_range_properties[0].container.log_configuration.options["String"] #=> String
|
1519
|
+
# resp.jobs[0].node_properties.node_range_properties[0].container.log_configuration.secret_options #=> Array
|
1520
|
+
# resp.jobs[0].node_properties.node_range_properties[0].container.log_configuration.secret_options[0].name #=> String
|
1521
|
+
# resp.jobs[0].node_properties.node_range_properties[0].container.log_configuration.secret_options[0].value_from #=> String
|
1522
|
+
# resp.jobs[0].node_properties.node_range_properties[0].container.secrets #=> Array
|
1523
|
+
# resp.jobs[0].node_properties.node_range_properties[0].container.secrets[0].name #=> String
|
1524
|
+
# resp.jobs[0].node_properties.node_range_properties[0].container.secrets[0].value_from #=> String
|
1432
1525
|
# resp.jobs[0].array_properties.status_summary #=> Hash
|
1433
1526
|
# resp.jobs[0].array_properties.status_summary["String"] #=> Integer
|
1434
1527
|
# resp.jobs[0].array_properties.size #=> Integer
|
@@ -1682,6 +1775,7 @@ module Aws::Batch
|
|
1682
1775
|
# memory: 1,
|
1683
1776
|
# command: ["String"],
|
1684
1777
|
# job_role_arn: "String",
|
1778
|
+
# execution_role_arn: "String",
|
1685
1779
|
# volumes: [
|
1686
1780
|
# {
|
1687
1781
|
# host: {
|
@@ -1728,7 +1822,36 @@ module Aws::Batch
|
|
1728
1822
|
# permissions: ["READ"], # accepts READ, WRITE, MKNOD
|
1729
1823
|
# },
|
1730
1824
|
# ],
|
1825
|
+
# init_process_enabled: false,
|
1826
|
+
# shared_memory_size: 1,
|
1827
|
+
# tmpfs: [
|
1828
|
+
# {
|
1829
|
+
# container_path: "String", # required
|
1830
|
+
# size: 1, # required
|
1831
|
+
# mount_options: ["String"],
|
1832
|
+
# },
|
1833
|
+
# ],
|
1834
|
+
# max_swap: 1,
|
1835
|
+
# swappiness: 1,
|
1836
|
+
# },
|
1837
|
+
# log_configuration: {
|
1838
|
+
# log_driver: "json-file", # required, accepts json-file, syslog, journald, gelf, fluentd, awslogs, splunk
|
1839
|
+
# options: {
|
1840
|
+
# "String" => "String",
|
1841
|
+
# },
|
1842
|
+
# secret_options: [
|
1843
|
+
# {
|
1844
|
+
# name: "String", # required
|
1845
|
+
# value_from: "String", # required
|
1846
|
+
# },
|
1847
|
+
# ],
|
1731
1848
|
# },
|
1849
|
+
# secrets: [
|
1850
|
+
# {
|
1851
|
+
# name: "String", # required
|
1852
|
+
# value_from: "String", # required
|
1853
|
+
# },
|
1854
|
+
# ],
|
1732
1855
|
# },
|
1733
1856
|
# node_properties: {
|
1734
1857
|
# num_nodes: 1, # required
|
@@ -1742,6 +1865,7 @@ module Aws::Batch
|
|
1742
1865
|
# memory: 1,
|
1743
1866
|
# command: ["String"],
|
1744
1867
|
# job_role_arn: "String",
|
1868
|
+
# execution_role_arn: "String",
|
1745
1869
|
# volumes: [
|
1746
1870
|
# {
|
1747
1871
|
# host: {
|
@@ -1788,7 +1912,36 @@ module Aws::Batch
|
|
1788
1912
|
# permissions: ["READ"], # accepts READ, WRITE, MKNOD
|
1789
1913
|
# },
|
1790
1914
|
# ],
|
1915
|
+
# init_process_enabled: false,
|
1916
|
+
# shared_memory_size: 1,
|
1917
|
+
# tmpfs: [
|
1918
|
+
# {
|
1919
|
+
# container_path: "String", # required
|
1920
|
+
# size: 1, # required
|
1921
|
+
# mount_options: ["String"],
|
1922
|
+
# },
|
1923
|
+
# ],
|
1924
|
+
# max_swap: 1,
|
1925
|
+
# swappiness: 1,
|
1926
|
+
# },
|
1927
|
+
# log_configuration: {
|
1928
|
+
# log_driver: "json-file", # required, accepts json-file, syslog, journald, gelf, fluentd, awslogs, splunk
|
1929
|
+
# options: {
|
1930
|
+
# "String" => "String",
|
1931
|
+
# },
|
1932
|
+
# secret_options: [
|
1933
|
+
# {
|
1934
|
+
# name: "String", # required
|
1935
|
+
# value_from: "String", # required
|
1936
|
+
# },
|
1937
|
+
# ],
|
1791
1938
|
# },
|
1939
|
+
# secrets: [
|
1940
|
+
# {
|
1941
|
+
# name: "String", # required
|
1942
|
+
# value_from: "String", # required
|
1943
|
+
# },
|
1944
|
+
# ],
|
1792
1945
|
# },
|
1793
1946
|
# },
|
1794
1947
|
# ],
|
@@ -2131,7 +2284,10 @@ module Aws::Batch
|
|
2131
2284
|
# The name or the Amazon Resource Name (ARN) of the job queue.
|
2132
2285
|
#
|
2133
2286
|
# @option params [String] :state
|
2134
|
-
# Describes the queue's ability to accept new jobs.
|
2287
|
+
# Describes the queue's ability to accept new jobs. If the job queue
|
2288
|
+
# state is `ENABLED`, it is able to accept jobs. If the job queue state
|
2289
|
+
# is `DISABLED`, new jobs cannot be added to the queue, but jobs already
|
2290
|
+
# in the queue can finish.
|
2135
2291
|
#
|
2136
2292
|
# @option params [Integer] :priority
|
2137
2293
|
# The priority of the job queue. Job queues with a higher priority (or a
|
@@ -2209,7 +2365,7 @@ module Aws::Batch
|
|
2209
2365
|
params: params,
|
2210
2366
|
config: config)
|
2211
2367
|
context[:gem_name] = 'aws-sdk-batch'
|
2212
|
-
context[:gem_version] = '1.
|
2368
|
+
context[:gem_version] = '1.38.0'
|
2213
2369
|
Seahorse::Client::Request.new(handlers, context)
|
2214
2370
|
end
|
2215
2371
|
|
@@ -85,6 +85,9 @@ module Aws::Batch
|
|
85
85
|
LinuxParameters = Shapes::StructureShape.new(name: 'LinuxParameters')
|
86
86
|
ListJobsRequest = Shapes::StructureShape.new(name: 'ListJobsRequest')
|
87
87
|
ListJobsResponse = Shapes::StructureShape.new(name: 'ListJobsResponse')
|
88
|
+
LogConfiguration = Shapes::StructureShape.new(name: 'LogConfiguration')
|
89
|
+
LogConfigurationOptionsMap = Shapes::MapShape.new(name: 'LogConfigurationOptionsMap')
|
90
|
+
LogDriver = Shapes::StringShape.new(name: 'LogDriver')
|
88
91
|
Long = Shapes::IntegerShape.new(name: 'Long')
|
89
92
|
MountPoint = Shapes::StructureShape.new(name: 'MountPoint')
|
90
93
|
MountPoints = Shapes::ListShape.new(name: 'MountPoints')
|
@@ -105,6 +108,8 @@ module Aws::Batch
|
|
105
108
|
ResourceRequirements = Shapes::ListShape.new(name: 'ResourceRequirements')
|
106
109
|
ResourceType = Shapes::StringShape.new(name: 'ResourceType')
|
107
110
|
RetryStrategy = Shapes::StructureShape.new(name: 'RetryStrategy')
|
111
|
+
Secret = Shapes::StructureShape.new(name: 'Secret')
|
112
|
+
SecretList = Shapes::ListShape.new(name: 'SecretList')
|
108
113
|
ServerException = Shapes::StructureShape.new(name: 'ServerException')
|
109
114
|
String = Shapes::StringShape.new(name: 'String')
|
110
115
|
StringList = Shapes::ListShape.new(name: 'StringList')
|
@@ -113,6 +118,8 @@ module Aws::Batch
|
|
113
118
|
TagsMap = Shapes::MapShape.new(name: 'TagsMap')
|
114
119
|
TerminateJobRequest = Shapes::StructureShape.new(name: 'TerminateJobRequest')
|
115
120
|
TerminateJobResponse = Shapes::StructureShape.new(name: 'TerminateJobResponse')
|
121
|
+
Tmpfs = Shapes::StructureShape.new(name: 'Tmpfs')
|
122
|
+
TmpfsList = Shapes::ListShape.new(name: 'TmpfsList')
|
116
123
|
Ulimit = Shapes::StructureShape.new(name: 'Ulimit')
|
117
124
|
Ulimits = Shapes::ListShape.new(name: 'Ulimits')
|
118
125
|
UpdateComputeEnvironmentRequest = Shapes::StructureShape.new(name: 'UpdateComputeEnvironmentRequest')
|
@@ -209,6 +216,7 @@ module Aws::Batch
|
|
209
216
|
ContainerDetail.add_member(:memory, Shapes::ShapeRef.new(shape: Integer, location_name: "memory"))
|
210
217
|
ContainerDetail.add_member(:command, Shapes::ShapeRef.new(shape: StringList, location_name: "command"))
|
211
218
|
ContainerDetail.add_member(:job_role_arn, Shapes::ShapeRef.new(shape: String, location_name: "jobRoleArn"))
|
219
|
+
ContainerDetail.add_member(:execution_role_arn, Shapes::ShapeRef.new(shape: String, location_name: "executionRoleArn"))
|
212
220
|
ContainerDetail.add_member(:volumes, Shapes::ShapeRef.new(shape: Volumes, location_name: "volumes"))
|
213
221
|
ContainerDetail.add_member(:environment, Shapes::ShapeRef.new(shape: EnvironmentVariables, location_name: "environment"))
|
214
222
|
ContainerDetail.add_member(:mount_points, Shapes::ShapeRef.new(shape: MountPoints, location_name: "mountPoints"))
|
@@ -225,6 +233,8 @@ module Aws::Batch
|
|
225
233
|
ContainerDetail.add_member(:network_interfaces, Shapes::ShapeRef.new(shape: NetworkInterfaceList, location_name: "networkInterfaces"))
|
226
234
|
ContainerDetail.add_member(:resource_requirements, Shapes::ShapeRef.new(shape: ResourceRequirements, location_name: "resourceRequirements"))
|
227
235
|
ContainerDetail.add_member(:linux_parameters, Shapes::ShapeRef.new(shape: LinuxParameters, location_name: "linuxParameters"))
|
236
|
+
ContainerDetail.add_member(:log_configuration, Shapes::ShapeRef.new(shape: LogConfiguration, location_name: "logConfiguration"))
|
237
|
+
ContainerDetail.add_member(:secrets, Shapes::ShapeRef.new(shape: SecretList, location_name: "secrets"))
|
228
238
|
ContainerDetail.struct_class = Types::ContainerDetail
|
229
239
|
|
230
240
|
ContainerOverrides.add_member(:vcpus, Shapes::ShapeRef.new(shape: Integer, location_name: "vcpus"))
|
@@ -240,6 +250,7 @@ module Aws::Batch
|
|
240
250
|
ContainerProperties.add_member(:memory, Shapes::ShapeRef.new(shape: Integer, location_name: "memory"))
|
241
251
|
ContainerProperties.add_member(:command, Shapes::ShapeRef.new(shape: StringList, location_name: "command"))
|
242
252
|
ContainerProperties.add_member(:job_role_arn, Shapes::ShapeRef.new(shape: String, location_name: "jobRoleArn"))
|
253
|
+
ContainerProperties.add_member(:execution_role_arn, Shapes::ShapeRef.new(shape: String, location_name: "executionRoleArn"))
|
243
254
|
ContainerProperties.add_member(:volumes, Shapes::ShapeRef.new(shape: Volumes, location_name: "volumes"))
|
244
255
|
ContainerProperties.add_member(:environment, Shapes::ShapeRef.new(shape: EnvironmentVariables, location_name: "environment"))
|
245
256
|
ContainerProperties.add_member(:mount_points, Shapes::ShapeRef.new(shape: MountPoints, location_name: "mountPoints"))
|
@@ -250,6 +261,8 @@ module Aws::Batch
|
|
250
261
|
ContainerProperties.add_member(:instance_type, Shapes::ShapeRef.new(shape: String, location_name: "instanceType"))
|
251
262
|
ContainerProperties.add_member(:resource_requirements, Shapes::ShapeRef.new(shape: ResourceRequirements, location_name: "resourceRequirements"))
|
252
263
|
ContainerProperties.add_member(:linux_parameters, Shapes::ShapeRef.new(shape: LinuxParameters, location_name: "linuxParameters"))
|
264
|
+
ContainerProperties.add_member(:log_configuration, Shapes::ShapeRef.new(shape: LogConfiguration, location_name: "logConfiguration"))
|
265
|
+
ContainerProperties.add_member(:secrets, Shapes::ShapeRef.new(shape: SecretList, location_name: "secrets"))
|
253
266
|
ContainerProperties.struct_class = Types::ContainerProperties
|
254
267
|
|
255
268
|
ContainerSummary.add_member(:exit_code, Shapes::ShapeRef.new(shape: Integer, location_name: "exitCode"))
|
@@ -421,6 +434,11 @@ module Aws::Batch
|
|
421
434
|
LaunchTemplateSpecification.struct_class = Types::LaunchTemplateSpecification
|
422
435
|
|
423
436
|
LinuxParameters.add_member(:devices, Shapes::ShapeRef.new(shape: DevicesList, location_name: "devices"))
|
437
|
+
LinuxParameters.add_member(:init_process_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "initProcessEnabled"))
|
438
|
+
LinuxParameters.add_member(:shared_memory_size, Shapes::ShapeRef.new(shape: Integer, location_name: "sharedMemorySize"))
|
439
|
+
LinuxParameters.add_member(:tmpfs, Shapes::ShapeRef.new(shape: TmpfsList, location_name: "tmpfs"))
|
440
|
+
LinuxParameters.add_member(:max_swap, Shapes::ShapeRef.new(shape: Integer, location_name: "maxSwap"))
|
441
|
+
LinuxParameters.add_member(:swappiness, Shapes::ShapeRef.new(shape: Integer, location_name: "swappiness"))
|
424
442
|
LinuxParameters.struct_class = Types::LinuxParameters
|
425
443
|
|
426
444
|
ListJobsRequest.add_member(:job_queue, Shapes::ShapeRef.new(shape: String, location_name: "jobQueue"))
|
@@ -435,6 +453,14 @@ module Aws::Batch
|
|
435
453
|
ListJobsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
|
436
454
|
ListJobsResponse.struct_class = Types::ListJobsResponse
|
437
455
|
|
456
|
+
LogConfiguration.add_member(:log_driver, Shapes::ShapeRef.new(shape: LogDriver, required: true, location_name: "logDriver"))
|
457
|
+
LogConfiguration.add_member(:options, Shapes::ShapeRef.new(shape: LogConfigurationOptionsMap, location_name: "options"))
|
458
|
+
LogConfiguration.add_member(:secret_options, Shapes::ShapeRef.new(shape: SecretList, location_name: "secretOptions"))
|
459
|
+
LogConfiguration.struct_class = Types::LogConfiguration
|
460
|
+
|
461
|
+
LogConfigurationOptionsMap.key = Shapes::ShapeRef.new(shape: String)
|
462
|
+
LogConfigurationOptionsMap.value = Shapes::ShapeRef.new(shape: String)
|
463
|
+
|
438
464
|
MountPoint.add_member(:container_path, Shapes::ShapeRef.new(shape: String, location_name: "containerPath"))
|
439
465
|
MountPoint.add_member(:read_only, Shapes::ShapeRef.new(shape: Boolean, location_name: "readOnly"))
|
440
466
|
MountPoint.add_member(:source_volume, Shapes::ShapeRef.new(shape: String, location_name: "sourceVolume"))
|
@@ -505,6 +531,12 @@ module Aws::Batch
|
|
505
531
|
RetryStrategy.add_member(:attempts, Shapes::ShapeRef.new(shape: Integer, location_name: "attempts"))
|
506
532
|
RetryStrategy.struct_class = Types::RetryStrategy
|
507
533
|
|
534
|
+
Secret.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "name"))
|
535
|
+
Secret.add_member(:value_from, Shapes::ShapeRef.new(shape: String, required: true, location_name: "valueFrom"))
|
536
|
+
Secret.struct_class = Types::Secret
|
537
|
+
|
538
|
+
SecretList.member = Shapes::ShapeRef.new(shape: Secret)
|
539
|
+
|
508
540
|
ServerException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
509
541
|
ServerException.struct_class = Types::ServerException
|
510
542
|
|
@@ -535,6 +567,13 @@ module Aws::Batch
|
|
535
567
|
|
536
568
|
TerminateJobResponse.struct_class = Types::TerminateJobResponse
|
537
569
|
|
570
|
+
Tmpfs.add_member(:container_path, Shapes::ShapeRef.new(shape: String, required: true, location_name: "containerPath"))
|
571
|
+
Tmpfs.add_member(:size, Shapes::ShapeRef.new(shape: Integer, required: true, location_name: "size"))
|
572
|
+
Tmpfs.add_member(:mount_options, Shapes::ShapeRef.new(shape: StringList, location_name: "mountOptions"))
|
573
|
+
Tmpfs.struct_class = Types::Tmpfs
|
574
|
+
|
575
|
+
TmpfsList.member = Shapes::ShapeRef.new(shape: Tmpfs)
|
576
|
+
|
538
577
|
Ulimit.add_member(:hard_limit, Shapes::ShapeRef.new(shape: Integer, required: true, location_name: "hardLimit"))
|
539
578
|
Ulimit.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "name"))
|
540
579
|
Ulimit.add_member(:soft_limit, Shapes::ShapeRef.new(shape: Integer, required: true, location_name: "softLimit"))
|
data/lib/aws-sdk-batch/types.rb
CHANGED
@@ -134,16 +134,15 @@ module Aws::Batch
|
|
134
134
|
# @return [Types::AttemptContainerDetail]
|
135
135
|
#
|
136
136
|
# @!attribute [rw] started_at
|
137
|
-
# The Unix timestamp (in
|
138
|
-
#
|
139
|
-
#
|
137
|
+
# The Unix timestamp (in milliseconds) for when the attempt was
|
138
|
+
# started (when the attempt transitioned from the `STARTING` state to
|
139
|
+
# the `RUNNING` state).
|
140
140
|
# @return [Integer]
|
141
141
|
#
|
142
142
|
# @!attribute [rw] stopped_at
|
143
|
-
# The Unix timestamp (in
|
144
|
-
#
|
145
|
-
#
|
146
|
-
# `FAILED`).
|
143
|
+
# The Unix timestamp (in milliseconds) for when the attempt was
|
144
|
+
# stopped (when the attempt transitioned from the `RUNNING` state to a
|
145
|
+
# terminal state, such as `SUCCEEDED` or `FAILED`).
|
147
146
|
# @return [Integer]
|
148
147
|
#
|
149
148
|
# @!attribute [rw] status_reason
|
@@ -580,6 +579,16 @@ module Aws::Batch
|
|
580
579
|
# execution.
|
581
580
|
# @return [String]
|
582
581
|
#
|
582
|
+
# @!attribute [rw] execution_role_arn
|
583
|
+
# The Amazon Resource Name (ARN) of the execution role that AWS Batch
|
584
|
+
# can assume. For more information, see [Amazon ECS task execution IAM
|
585
|
+
# role][1].
|
586
|
+
#
|
587
|
+
#
|
588
|
+
#
|
589
|
+
# [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_execution_IAM_role.html
|
590
|
+
# @return [String]
|
591
|
+
#
|
583
592
|
# @!attribute [rw] volumes
|
584
593
|
# A list of volumes associated with the job.
|
585
594
|
# @return [Array<Types::Volume>]
|
@@ -663,6 +672,63 @@ module Aws::Batch
|
|
663
672
|
# as details for device mappings.
|
664
673
|
# @return [Types::LinuxParameters]
|
665
674
|
#
|
675
|
+
# @!attribute [rw] log_configuration
|
676
|
+
# The log configuration specification for the container.
|
677
|
+
#
|
678
|
+
# This parameter maps to `LogConfig` in the [Create a container][1]
|
679
|
+
# section of the [Docker Remote API][2] and the `--log-driver` option
|
680
|
+
# to [docker run][3]. By default, containers use the same logging
|
681
|
+
# driver that the Docker daemon uses. However the container may use a
|
682
|
+
# different logging driver than the Docker daemon by specifying a log
|
683
|
+
# driver with this parameter in the container definition. To use a
|
684
|
+
# different logging driver for a container, the log system must be
|
685
|
+
# configured properly on the container instance (or on a different log
|
686
|
+
# server for remote logging options). For more information on the
|
687
|
+
# options for different supported log drivers, see [Configure logging
|
688
|
+
# drivers][4] in the Docker documentation.
|
689
|
+
#
|
690
|
+
# <note markdown="1"> AWS Batch currently supports a subset of the logging drivers
|
691
|
+
# available to the Docker daemon (shown in the LogConfiguration data
|
692
|
+
# type). Additional log drivers may be available in future releases of
|
693
|
+
# the Amazon ECS container agent.
|
694
|
+
#
|
695
|
+
# </note>
|
696
|
+
#
|
697
|
+
# This parameter requires version 1.18 of the Docker Remote API or
|
698
|
+
# greater on your container instance. To check the Docker Remote API
|
699
|
+
# version on your container instance, log into your container instance
|
700
|
+
# and run the following command: `sudo docker version | grep "Server
|
701
|
+
# API version"`
|
702
|
+
#
|
703
|
+
# <note markdown="1"> The Amazon ECS container agent running on a container instance must
|
704
|
+
# register the logging drivers available on that instance with the
|
705
|
+
# `ECS_AVAILABLE_LOGGING_DRIVERS` environment variable before
|
706
|
+
# containers placed on that instance can use these log configuration
|
707
|
+
# options. For more information, see [Amazon ECS Container Agent
|
708
|
+
# Configuration][5] in the *Amazon Elastic Container Service Developer
|
709
|
+
# Guide*.
|
710
|
+
#
|
711
|
+
# </note>
|
712
|
+
#
|
713
|
+
#
|
714
|
+
#
|
715
|
+
# [1]: https://docs.docker.com/engine/api/v1.23/#create-a-container
|
716
|
+
# [2]: https://docs.docker.com/engine/api/v1.23/
|
717
|
+
# [3]: https://docs.docker.com/engine/reference/run/
|
718
|
+
# [4]: https://docs.docker.com/engine/admin/logging/overview/
|
719
|
+
# [5]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-config.html
|
720
|
+
# @return [Types::LogConfiguration]
|
721
|
+
#
|
722
|
+
# @!attribute [rw] secrets
|
723
|
+
# The secrets to pass to the container. For more information, see
|
724
|
+
# [Specifying Sensitive Data][1] in the *Amazon Elastic Container
|
725
|
+
# Service Developer Guide*.
|
726
|
+
#
|
727
|
+
#
|
728
|
+
#
|
729
|
+
# [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/specifying-sensitive-data.html
|
730
|
+
# @return [Array<Types::Secret>]
|
731
|
+
#
|
666
732
|
# @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ContainerDetail AWS API Documentation
|
667
733
|
#
|
668
734
|
class ContainerDetail < Struct.new(
|
@@ -671,6 +737,7 @@ module Aws::Batch
|
|
671
737
|
:memory,
|
672
738
|
:command,
|
673
739
|
:job_role_arn,
|
740
|
+
:execution_role_arn,
|
674
741
|
:volumes,
|
675
742
|
:environment,
|
676
743
|
:mount_points,
|
@@ -686,7 +753,9 @@ module Aws::Batch
|
|
686
753
|
:instance_type,
|
687
754
|
:network_interfaces,
|
688
755
|
:resource_requirements,
|
689
|
-
:linux_parameters
|
756
|
+
:linux_parameters,
|
757
|
+
:log_configuration,
|
758
|
+
:secrets)
|
690
759
|
SENSITIVE = []
|
691
760
|
include Aws::Structure
|
692
761
|
end
|
@@ -779,6 +848,7 @@ module Aws::Batch
|
|
779
848
|
# memory: 1,
|
780
849
|
# command: ["String"],
|
781
850
|
# job_role_arn: "String",
|
851
|
+
# execution_role_arn: "String",
|
782
852
|
# volumes: [
|
783
853
|
# {
|
784
854
|
# host: {
|
@@ -825,7 +895,36 @@ module Aws::Batch
|
|
825
895
|
# permissions: ["READ"], # accepts READ, WRITE, MKNOD
|
826
896
|
# },
|
827
897
|
# ],
|
898
|
+
# init_process_enabled: false,
|
899
|
+
# shared_memory_size: 1,
|
900
|
+
# tmpfs: [
|
901
|
+
# {
|
902
|
+
# container_path: "String", # required
|
903
|
+
# size: 1, # required
|
904
|
+
# mount_options: ["String"],
|
905
|
+
# },
|
906
|
+
# ],
|
907
|
+
# max_swap: 1,
|
908
|
+
# swappiness: 1,
|
828
909
|
# },
|
910
|
+
# log_configuration: {
|
911
|
+
# log_driver: "json-file", # required, accepts json-file, syslog, journald, gelf, fluentd, awslogs, splunk
|
912
|
+
# options: {
|
913
|
+
# "String" => "String",
|
914
|
+
# },
|
915
|
+
# secret_options: [
|
916
|
+
# {
|
917
|
+
# name: "String", # required
|
918
|
+
# value_from: "String", # required
|
919
|
+
# },
|
920
|
+
# ],
|
921
|
+
# },
|
922
|
+
# secrets: [
|
923
|
+
# {
|
924
|
+
# name: "String", # required
|
925
|
+
# value_from: "String", # required
|
926
|
+
# },
|
927
|
+
# ],
|
829
928
|
# }
|
830
929
|
#
|
831
930
|
# @!attribute [rw] image
|
@@ -863,7 +962,9 @@ module Aws::Batch
|
|
863
962
|
# to `CpuShares` in the [Create a container][1] section of the [Docker
|
864
963
|
# Remote API][2] and the `--cpu-shares` option to [docker run][3].
|
865
964
|
# Each vCPU is equivalent to 1,024 CPU shares. You must specify at
|
866
|
-
# least one vCPU.
|
965
|
+
# least one vCPU. This is required but can be specified in several
|
966
|
+
# places for multi-node parallel (MNP) jobs; it must be specified for
|
967
|
+
# each node at least once.
|
867
968
|
#
|
868
969
|
#
|
869
970
|
#
|
@@ -878,7 +979,9 @@ module Aws::Batch
|
|
878
979
|
# container is killed. This parameter maps to `Memory` in the [Create
|
879
980
|
# a container][1] section of the [Docker Remote API][2] and the
|
880
981
|
# `--memory` option to [docker run][3]. You must specify at least 4
|
881
|
-
# MiB of memory for a job.
|
982
|
+
# MiB of memory for a job. This is required but can be specified in
|
983
|
+
# several places for multi-node parallel (MNP) jobs; it must be
|
984
|
+
# specified for each node at least once.
|
882
985
|
#
|
883
986
|
# <note markdown="1"> If you are trying to maximize your resource utilization by providing
|
884
987
|
# your jobs as much memory as possible for a particular instance type,
|
@@ -914,6 +1017,16 @@ module Aws::Batch
|
|
914
1017
|
# can assume for AWS permissions.
|
915
1018
|
# @return [String]
|
916
1019
|
#
|
1020
|
+
# @!attribute [rw] execution_role_arn
|
1021
|
+
# The Amazon Resource Name (ARN) of the execution role that AWS Batch
|
1022
|
+
# can assume. For more information, see [Amazon ECS task execution IAM
|
1023
|
+
# role][1].
|
1024
|
+
#
|
1025
|
+
#
|
1026
|
+
#
|
1027
|
+
# [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_execution_IAM_role.html
|
1028
|
+
# @return [String]
|
1029
|
+
#
|
917
1030
|
# @!attribute [rw] volumes
|
918
1031
|
# A list of data volumes used in a job.
|
919
1032
|
# @return [Array<Types::Volume>]
|
@@ -1018,6 +1131,62 @@ module Aws::Batch
|
|
1018
1131
|
# as details for device mappings.
|
1019
1132
|
# @return [Types::LinuxParameters]
|
1020
1133
|
#
|
1134
|
+
# @!attribute [rw] log_configuration
|
1135
|
+
# The log configuration specification for the container.
|
1136
|
+
#
|
1137
|
+
# This parameter maps to `LogConfig` in the [Create a container][1]
|
1138
|
+
# section of the [Docker Remote API][2] and the `--log-driver` option
|
1139
|
+
# to [docker run][3]. By default, containers use the same logging
|
1140
|
+
# driver that the Docker daemon uses. However the container may use a
|
1141
|
+
# different logging driver than the Docker daemon by specifying a log
|
1142
|
+
# driver with this parameter in the container definition. To use a
|
1143
|
+
# different logging driver for a container, the log system must be
|
1144
|
+
# configured properly on the container instance (or on a different log
|
1145
|
+
# server for remote logging options). For more information on the
|
1146
|
+
# options for different supported log drivers, see [Configure logging
|
1147
|
+
# drivers][4] in the Docker documentation.
|
1148
|
+
#
|
1149
|
+
# <note markdown="1"> AWS Batch currently supports a subset of the logging drivers
|
1150
|
+
# available to the Docker daemon (shown in the LogConfiguration data
|
1151
|
+
# type).
|
1152
|
+
#
|
1153
|
+
# </note>
|
1154
|
+
#
|
1155
|
+
# This parameter requires version 1.18 of the Docker Remote API or
|
1156
|
+
# greater on your container instance. To check the Docker Remote API
|
1157
|
+
# version on your container instance, log into your container instance
|
1158
|
+
# and run the following command: `sudo docker version | grep "Server
|
1159
|
+
# API version"`
|
1160
|
+
#
|
1161
|
+
# <note markdown="1"> The Amazon ECS container agent running on a container instance must
|
1162
|
+
# register the logging drivers available on that instance with the
|
1163
|
+
# `ECS_AVAILABLE_LOGGING_DRIVERS` environment variable before
|
1164
|
+
# containers placed on that instance can use these log configuration
|
1165
|
+
# options. For more information, see [Amazon ECS Container Agent
|
1166
|
+
# Configuration][5] in the *Amazon Elastic Container Service Developer
|
1167
|
+
# Guide*.
|
1168
|
+
#
|
1169
|
+
# </note>
|
1170
|
+
#
|
1171
|
+
#
|
1172
|
+
#
|
1173
|
+
# [1]: https://docs.docker.com/engine/api/v1.23/#create-a-container
|
1174
|
+
# [2]: https://docs.docker.com/engine/api/v1.23/
|
1175
|
+
# [3]: https://docs.docker.com/engine/reference/run/
|
1176
|
+
# [4]: https://docs.docker.com/engine/admin/logging/overview/
|
1177
|
+
# [5]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-agent-config.html
|
1178
|
+
# @return [Types::LogConfiguration]
|
1179
|
+
#
|
1180
|
+
# @!attribute [rw] secrets
|
1181
|
+
# The secrets for the container. For more information, see [Specifying
|
1182
|
+
# Sensitive Data][1] in the *Amazon Elastic Container Service
|
1183
|
+
# Developer Guide*.
|
1184
|
+
#
|
1185
|
+
#
|
1186
|
+
#
|
1187
|
+
# [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/specifying-sensitive-data.html
|
1188
|
+
# @return [Array<Types::Secret>]
|
1189
|
+
#
|
1021
1190
|
# @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ContainerProperties AWS API Documentation
|
1022
1191
|
#
|
1023
1192
|
class ContainerProperties < Struct.new(
|
@@ -1026,6 +1195,7 @@ module Aws::Batch
|
|
1026
1195
|
:memory,
|
1027
1196
|
:command,
|
1028
1197
|
:job_role_arn,
|
1198
|
+
:execution_role_arn,
|
1029
1199
|
:volumes,
|
1030
1200
|
:environment,
|
1031
1201
|
:mount_points,
|
@@ -1035,7 +1205,9 @@ module Aws::Batch
|
|
1035
1205
|
:user,
|
1036
1206
|
:instance_type,
|
1037
1207
|
:resource_requirements,
|
1038
|
-
:linux_parameters
|
1208
|
+
:linux_parameters,
|
1209
|
+
:log_configuration,
|
1210
|
+
:secrets)
|
1039
1211
|
SENSITIVE = []
|
1040
1212
|
include Aws::Structure
|
1041
1213
|
end
|
@@ -1193,7 +1365,9 @@ module Aws::Batch
|
|
1193
1365
|
#
|
1194
1366
|
# @!attribute [rw] state
|
1195
1367
|
# The state of the job queue. If the job queue state is `ENABLED`, it
|
1196
|
-
# is able to accept jobs.
|
1368
|
+
# is able to accept jobs. If the job queue state is `DISABLED`, new
|
1369
|
+
# jobs cannot be added to the queue, but jobs already in the queue can
|
1370
|
+
# finish.
|
1197
1371
|
# @return [String]
|
1198
1372
|
#
|
1199
1373
|
# @!attribute [rw] priority
|
@@ -1779,11 +1953,11 @@ module Aws::Batch
|
|
1779
1953
|
# @return [String]
|
1780
1954
|
#
|
1781
1955
|
# @!attribute [rw] created_at
|
1782
|
-
# The Unix timestamp (in
|
1783
|
-
#
|
1784
|
-
#
|
1785
|
-
#
|
1786
|
-
#
|
1956
|
+
# The Unix timestamp (in milliseconds) for when the job was created.
|
1957
|
+
# For non-array jobs and parent array jobs, this is when the job
|
1958
|
+
# entered the `SUBMITTED` state (at the time SubmitJob was called).
|
1959
|
+
# For array child jobs, this is when the child job was spawned by its
|
1960
|
+
# parent and entered the `PENDING` state.
|
1787
1961
|
# @return [Integer]
|
1788
1962
|
#
|
1789
1963
|
# @!attribute [rw] retry_strategy
|
@@ -1791,15 +1965,16 @@ module Aws::Batch
|
|
1791
1965
|
# @return [Types::RetryStrategy]
|
1792
1966
|
#
|
1793
1967
|
# @!attribute [rw] started_at
|
1794
|
-
# The Unix timestamp (in
|
1795
|
-
#
|
1796
|
-
#
|
1968
|
+
# The Unix timestamp (in milliseconds) for when the job was started
|
1969
|
+
# (when the job transitioned from the `STARTING` state to the
|
1970
|
+
# `RUNNING` state). This parameter is not provided for child jobs of
|
1971
|
+
# array jobs or multi-node parallel jobs.
|
1797
1972
|
# @return [Integer]
|
1798
1973
|
#
|
1799
1974
|
# @!attribute [rw] stopped_at
|
1800
|
-
# The Unix timestamp (in
|
1801
|
-
#
|
1802
|
-
#
|
1975
|
+
# The Unix timestamp (in milliseconds) for when the job was stopped
|
1976
|
+
# (when the job transitioned from the `RUNNING` state to a terminal
|
1977
|
+
# state, such as `SUCCEEDED` or `FAILED`).
|
1803
1978
|
# @return [Integer]
|
1804
1979
|
#
|
1805
1980
|
# @!attribute [rw] depends_on
|
@@ -1875,7 +2050,10 @@ module Aws::Batch
|
|
1875
2050
|
# @return [String]
|
1876
2051
|
#
|
1877
2052
|
# @!attribute [rw] state
|
1878
|
-
# Describes the ability of the queue to accept new jobs.
|
2053
|
+
# Describes the ability of the queue to accept new jobs. If the job
|
2054
|
+
# queue state is `ENABLED`, it is able to accept jobs. If the job
|
2055
|
+
# queue state is `DISABLED`, new jobs cannot be added to the queue,
|
2056
|
+
# but jobs already in the queue can finish.
|
1879
2057
|
# @return [String]
|
1880
2058
|
#
|
1881
2059
|
# @!attribute [rw] status
|
@@ -2053,9 +2231,13 @@ module Aws::Batch
|
|
2053
2231
|
# @return [String]
|
2054
2232
|
#
|
2055
2233
|
# @!attribute [rw] version
|
2056
|
-
# The version number of the launch template
|
2234
|
+
# The version number of the launch template, `$Latest`, or `$Default`.
|
2235
|
+
#
|
2236
|
+
# If the value is `$Latest`, the latest version of the launch template
|
2237
|
+
# is used. If the value is `$Default`, the default version of the
|
2238
|
+
# launch template is used.
|
2057
2239
|
#
|
2058
|
-
# Default:
|
2240
|
+
# Default: `$Default`.
|
2059
2241
|
# @return [String]
|
2060
2242
|
#
|
2061
2243
|
# @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/LaunchTemplateSpecification AWS API Documentation
|
@@ -2082,6 +2264,17 @@ module Aws::Batch
|
|
2082
2264
|
# permissions: ["READ"], # accepts READ, WRITE, MKNOD
|
2083
2265
|
# },
|
2084
2266
|
# ],
|
2267
|
+
# init_process_enabled: false,
|
2268
|
+
# shared_memory_size: 1,
|
2269
|
+
# tmpfs: [
|
2270
|
+
# {
|
2271
|
+
# container_path: "String", # required
|
2272
|
+
# size: 1, # required
|
2273
|
+
# mount_options: ["String"],
|
2274
|
+
# },
|
2275
|
+
# ],
|
2276
|
+
# max_swap: 1,
|
2277
|
+
# swappiness: 1,
|
2085
2278
|
# }
|
2086
2279
|
#
|
2087
2280
|
# @!attribute [rw] devices
|
@@ -2096,10 +2289,82 @@ module Aws::Batch
|
|
2096
2289
|
# [3]: https://docs.docker.com/engine/reference/run/
|
2097
2290
|
# @return [Array<Types::Device>]
|
2098
2291
|
#
|
2292
|
+
# @!attribute [rw] init_process_enabled
|
2293
|
+
# Run an `init` process inside the container that forwards signals and
|
2294
|
+
# reaps processes. This parameter maps to the `--init` option to
|
2295
|
+
# [docker run][1]. This parameter requires version 1.25 of the Docker
|
2296
|
+
# Remote API or greater on your container instance. To check the
|
2297
|
+
# Docker Remote API version on your container instance, log into your
|
2298
|
+
# container instance and run the following command: `sudo docker
|
2299
|
+
# version | grep "Server API version"`
|
2300
|
+
#
|
2301
|
+
#
|
2302
|
+
#
|
2303
|
+
# [1]: https://docs.docker.com/engine/reference/run/
|
2304
|
+
# @return [Boolean]
|
2305
|
+
#
|
2306
|
+
# @!attribute [rw] shared_memory_size
|
2307
|
+
# The value for the size (in MiB) of the `/dev/shm` volume. This
|
2308
|
+
# parameter maps to the `--shm-size` option to [docker run][1].
|
2309
|
+
#
|
2310
|
+
#
|
2311
|
+
#
|
2312
|
+
# [1]: https://docs.docker.com/engine/reference/run/
|
2313
|
+
# @return [Integer]
|
2314
|
+
#
|
2315
|
+
# @!attribute [rw] tmpfs
|
2316
|
+
# The container path, mount options, and size (in MiB) of the tmpfs
|
2317
|
+
# mount. This parameter maps to the `--tmpfs` option to [docker
|
2318
|
+
# run][1].
|
2319
|
+
#
|
2320
|
+
#
|
2321
|
+
#
|
2322
|
+
# [1]: https://docs.docker.com/engine/reference/run/
|
2323
|
+
# @return [Array<Types::Tmpfs>]
|
2324
|
+
#
|
2325
|
+
# @!attribute [rw] max_swap
|
2326
|
+
# The total amount of swap memory (in MiB) a container can use. This
|
2327
|
+
# parameter will be translated to the `--memory-swap` option to
|
2328
|
+
# [docker run][1] where the value would be the sum of the container
|
2329
|
+
# memory plus the `maxSwap` value.
|
2330
|
+
#
|
2331
|
+
# If a `maxSwap` value of `0` is specified, the container will not use
|
2332
|
+
# swap. Accepted values are `0` or any positive integer. If the
|
2333
|
+
# `maxSwap` parameter is omitted, the container will use the swap
|
2334
|
+
# configuration for the container instance it is running on. A
|
2335
|
+
# `maxSwap` value must be set for the `swappiness` parameter to be
|
2336
|
+
# used.
|
2337
|
+
#
|
2338
|
+
#
|
2339
|
+
#
|
2340
|
+
# [1]: https://docs.docker.com/engine/reference/run/
|
2341
|
+
# @return [Integer]
|
2342
|
+
#
|
2343
|
+
# @!attribute [rw] swappiness
|
2344
|
+
# This allows you to tune a container's memory swappiness behavior. A
|
2345
|
+
# `swappiness` value of `0` will cause swapping to not happen unless
|
2346
|
+
# absolutely necessary. A `swappiness` value of `100` will cause pages
|
2347
|
+
# to be swapped very aggressively. Accepted values are whole numbers
|
2348
|
+
# between `0` and `100`. If the `swappiness` parameter is not
|
2349
|
+
# specified, a default value of `60` is used. If a value is not
|
2350
|
+
# specified for `maxSwap` then this parameter is ignored. This
|
2351
|
+
# parameter maps to the `--memory-swappiness` option to [docker
|
2352
|
+
# run][1].
|
2353
|
+
#
|
2354
|
+
#
|
2355
|
+
#
|
2356
|
+
# [1]: https://docs.docker.com/engine/reference/run/
|
2357
|
+
# @return [Integer]
|
2358
|
+
#
|
2099
2359
|
# @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/LinuxParameters AWS API Documentation
|
2100
2360
|
#
|
2101
2361
|
class LinuxParameters < Struct.new(
|
2102
|
-
:devices
|
2362
|
+
:devices,
|
2363
|
+
:init_process_enabled,
|
2364
|
+
:shared_memory_size,
|
2365
|
+
:tmpfs,
|
2366
|
+
:max_swap,
|
2367
|
+
:swappiness)
|
2103
2368
|
SENSITIVE = []
|
2104
2369
|
include Aws::Structure
|
2105
2370
|
end
|
@@ -2195,6 +2460,87 @@ module Aws::Batch
|
|
2195
2460
|
include Aws::Structure
|
2196
2461
|
end
|
2197
2462
|
|
2463
|
+
# Log configuration options to send to a custom log driver for the
|
2464
|
+
# container.
|
2465
|
+
#
|
2466
|
+
# @note When making an API call, you may pass LogConfiguration
|
2467
|
+
# data as a hash:
|
2468
|
+
#
|
2469
|
+
# {
|
2470
|
+
# log_driver: "json-file", # required, accepts json-file, syslog, journald, gelf, fluentd, awslogs, splunk
|
2471
|
+
# options: {
|
2472
|
+
# "String" => "String",
|
2473
|
+
# },
|
2474
|
+
# secret_options: [
|
2475
|
+
# {
|
2476
|
+
# name: "String", # required
|
2477
|
+
# value_from: "String", # required
|
2478
|
+
# },
|
2479
|
+
# ],
|
2480
|
+
# }
|
2481
|
+
#
|
2482
|
+
# @!attribute [rw] log_driver
|
2483
|
+
# The log driver to use for the container. The valid values listed for
|
2484
|
+
# this parameter are log drivers that the Amazon ECS container agent
|
2485
|
+
# can communicate with by default.
|
2486
|
+
#
|
2487
|
+
# The supported log drivers are `awslogs`, `fluentd`, `gelf`,
|
2488
|
+
# `json-file`, `journald`, `logentries`, `syslog`, and `splunk`.
|
2489
|
+
#
|
2490
|
+
# For more information about using the `awslogs` log driver, see
|
2491
|
+
# [Using the awslogs Log Driver][1] in the *Amazon Elastic Container
|
2492
|
+
# Service Developer Guide*.
|
2493
|
+
#
|
2494
|
+
# <note markdown="1"> If you have a custom driver that is not listed earlier that you
|
2495
|
+
# would like to work with the Amazon ECS container agent, you can fork
|
2496
|
+
# the Amazon ECS container agent project that is [available on
|
2497
|
+
# GitHub][2] and customize it to work with that driver. We encourage
|
2498
|
+
# you to submit pull requests for changes that you would like to have
|
2499
|
+
# included. However, Amazon Web Services does not currently support
|
2500
|
+
# running modified copies of this software.
|
2501
|
+
#
|
2502
|
+
# </note>
|
2503
|
+
#
|
2504
|
+
# This parameter requires version 1.18 of the Docker Remote API or
|
2505
|
+
# greater on your container instance. To check the Docker Remote API
|
2506
|
+
# version on your container instance, log into your container instance
|
2507
|
+
# and run the following command: `sudo docker version | grep "Server
|
2508
|
+
# API version"`
|
2509
|
+
#
|
2510
|
+
#
|
2511
|
+
#
|
2512
|
+
# [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/using_awslogs.html
|
2513
|
+
# [2]: https://github.com/aws/amazon-ecs-agent
|
2514
|
+
# @return [String]
|
2515
|
+
#
|
2516
|
+
# @!attribute [rw] options
|
2517
|
+
# The configuration options to send to the log driver. This parameter
|
2518
|
+
# requires version 1.19 of the Docker Remote API or greater on your
|
2519
|
+
# container instance. To check the Docker Remote API version on your
|
2520
|
+
# container instance, log into your container instance and run the
|
2521
|
+
# following command: `sudo docker version | grep "Server API version"`
|
2522
|
+
# @return [Hash<String,String>]
|
2523
|
+
#
|
2524
|
+
# @!attribute [rw] secret_options
|
2525
|
+
# The secrets to pass to the log configuration. For more information,
|
2526
|
+
# see [Specifying Sensitive Data][1] in the *Amazon Elastic Container
|
2527
|
+
# Service Developer Guide*.
|
2528
|
+
#
|
2529
|
+
#
|
2530
|
+
#
|
2531
|
+
# [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/specifying-sensitive-data.html
|
2532
|
+
# @return [Array<Types::Secret>]
|
2533
|
+
#
|
2534
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/LogConfiguration AWS API Documentation
|
2535
|
+
#
|
2536
|
+
class LogConfiguration < Struct.new(
|
2537
|
+
:log_driver,
|
2538
|
+
:options,
|
2539
|
+
:secret_options)
|
2540
|
+
SENSITIVE = []
|
2541
|
+
include Aws::Structure
|
2542
|
+
end
|
2543
|
+
|
2198
2544
|
# Details on a Docker volume mount point that is used in a job's
|
2199
2545
|
# container properties. This parameter maps to `Volumes` in the [Create
|
2200
2546
|
# a container][1] section of the Docker Remote API and the `--volume`
|
@@ -2364,6 +2710,7 @@ module Aws::Batch
|
|
2364
2710
|
# memory: 1,
|
2365
2711
|
# command: ["String"],
|
2366
2712
|
# job_role_arn: "String",
|
2713
|
+
# execution_role_arn: "String",
|
2367
2714
|
# volumes: [
|
2368
2715
|
# {
|
2369
2716
|
# host: {
|
@@ -2410,7 +2757,36 @@ module Aws::Batch
|
|
2410
2757
|
# permissions: ["READ"], # accepts READ, WRITE, MKNOD
|
2411
2758
|
# },
|
2412
2759
|
# ],
|
2760
|
+
# init_process_enabled: false,
|
2761
|
+
# shared_memory_size: 1,
|
2762
|
+
# tmpfs: [
|
2763
|
+
# {
|
2764
|
+
# container_path: "String", # required
|
2765
|
+
# size: 1, # required
|
2766
|
+
# mount_options: ["String"],
|
2767
|
+
# },
|
2768
|
+
# ],
|
2769
|
+
# max_swap: 1,
|
2770
|
+
# swappiness: 1,
|
2771
|
+
# },
|
2772
|
+
# log_configuration: {
|
2773
|
+
# log_driver: "json-file", # required, accepts json-file, syslog, journald, gelf, fluentd, awslogs, splunk
|
2774
|
+
# options: {
|
2775
|
+
# "String" => "String",
|
2776
|
+
# },
|
2777
|
+
# secret_options: [
|
2778
|
+
# {
|
2779
|
+
# name: "String", # required
|
2780
|
+
# value_from: "String", # required
|
2781
|
+
# },
|
2782
|
+
# ],
|
2413
2783
|
# },
|
2784
|
+
# secrets: [
|
2785
|
+
# {
|
2786
|
+
# name: "String", # required
|
2787
|
+
# value_from: "String", # required
|
2788
|
+
# },
|
2789
|
+
# ],
|
2414
2790
|
# },
|
2415
2791
|
# },
|
2416
2792
|
# ],
|
@@ -2531,6 +2907,7 @@ module Aws::Batch
|
|
2531
2907
|
# memory: 1,
|
2532
2908
|
# command: ["String"],
|
2533
2909
|
# job_role_arn: "String",
|
2910
|
+
# execution_role_arn: "String",
|
2534
2911
|
# volumes: [
|
2535
2912
|
# {
|
2536
2913
|
# host: {
|
@@ -2577,7 +2954,36 @@ module Aws::Batch
|
|
2577
2954
|
# permissions: ["READ"], # accepts READ, WRITE, MKNOD
|
2578
2955
|
# },
|
2579
2956
|
# ],
|
2957
|
+
# init_process_enabled: false,
|
2958
|
+
# shared_memory_size: 1,
|
2959
|
+
# tmpfs: [
|
2960
|
+
# {
|
2961
|
+
# container_path: "String", # required
|
2962
|
+
# size: 1, # required
|
2963
|
+
# mount_options: ["String"],
|
2964
|
+
# },
|
2965
|
+
# ],
|
2966
|
+
# max_swap: 1,
|
2967
|
+
# swappiness: 1,
|
2968
|
+
# },
|
2969
|
+
# log_configuration: {
|
2970
|
+
# log_driver: "json-file", # required, accepts json-file, syslog, journald, gelf, fluentd, awslogs, splunk
|
2971
|
+
# options: {
|
2972
|
+
# "String" => "String",
|
2973
|
+
# },
|
2974
|
+
# secret_options: [
|
2975
|
+
# {
|
2976
|
+
# name: "String", # required
|
2977
|
+
# value_from: "String", # required
|
2978
|
+
# },
|
2979
|
+
# ],
|
2580
2980
|
# },
|
2981
|
+
# secrets: [
|
2982
|
+
# {
|
2983
|
+
# name: "String", # required
|
2984
|
+
# value_from: "String", # required
|
2985
|
+
# },
|
2986
|
+
# ],
|
2581
2987
|
# },
|
2582
2988
|
# }
|
2583
2989
|
#
|
@@ -2620,6 +3026,7 @@ module Aws::Batch
|
|
2620
3026
|
# memory: 1,
|
2621
3027
|
# command: ["String"],
|
2622
3028
|
# job_role_arn: "String",
|
3029
|
+
# execution_role_arn: "String",
|
2623
3030
|
# volumes: [
|
2624
3031
|
# {
|
2625
3032
|
# host: {
|
@@ -2666,7 +3073,36 @@ module Aws::Batch
|
|
2666
3073
|
# permissions: ["READ"], # accepts READ, WRITE, MKNOD
|
2667
3074
|
# },
|
2668
3075
|
# ],
|
3076
|
+
# init_process_enabled: false,
|
3077
|
+
# shared_memory_size: 1,
|
3078
|
+
# tmpfs: [
|
3079
|
+
# {
|
3080
|
+
# container_path: "String", # required
|
3081
|
+
# size: 1, # required
|
3082
|
+
# mount_options: ["String"],
|
3083
|
+
# },
|
3084
|
+
# ],
|
3085
|
+
# max_swap: 1,
|
3086
|
+
# swappiness: 1,
|
2669
3087
|
# },
|
3088
|
+
# log_configuration: {
|
3089
|
+
# log_driver: "json-file", # required, accepts json-file, syslog, journald, gelf, fluentd, awslogs, splunk
|
3090
|
+
# options: {
|
3091
|
+
# "String" => "String",
|
3092
|
+
# },
|
3093
|
+
# secret_options: [
|
3094
|
+
# {
|
3095
|
+
# name: "String", # required
|
3096
|
+
# value_from: "String", # required
|
3097
|
+
# },
|
3098
|
+
# ],
|
3099
|
+
# },
|
3100
|
+
# secrets: [
|
3101
|
+
# {
|
3102
|
+
# name: "String", # required
|
3103
|
+
# value_from: "String", # required
|
3104
|
+
# },
|
3105
|
+
# ],
|
2670
3106
|
# },
|
2671
3107
|
# node_properties: {
|
2672
3108
|
# num_nodes: 1, # required
|
@@ -2680,6 +3116,7 @@ module Aws::Batch
|
|
2680
3116
|
# memory: 1,
|
2681
3117
|
# command: ["String"],
|
2682
3118
|
# job_role_arn: "String",
|
3119
|
+
# execution_role_arn: "String",
|
2683
3120
|
# volumes: [
|
2684
3121
|
# {
|
2685
3122
|
# host: {
|
@@ -2726,7 +3163,36 @@ module Aws::Batch
|
|
2726
3163
|
# permissions: ["READ"], # accepts READ, WRITE, MKNOD
|
2727
3164
|
# },
|
2728
3165
|
# ],
|
3166
|
+
# init_process_enabled: false,
|
3167
|
+
# shared_memory_size: 1,
|
3168
|
+
# tmpfs: [
|
3169
|
+
# {
|
3170
|
+
# container_path: "String", # required
|
3171
|
+
# size: 1, # required
|
3172
|
+
# mount_options: ["String"],
|
3173
|
+
# },
|
3174
|
+
# ],
|
3175
|
+
# max_swap: 1,
|
3176
|
+
# swappiness: 1,
|
2729
3177
|
# },
|
3178
|
+
# log_configuration: {
|
3179
|
+
# log_driver: "json-file", # required, accepts json-file, syslog, journald, gelf, fluentd, awslogs, splunk
|
3180
|
+
# options: {
|
3181
|
+
# "String" => "String",
|
3182
|
+
# },
|
3183
|
+
# secret_options: [
|
3184
|
+
# {
|
3185
|
+
# name: "String", # required
|
3186
|
+
# value_from: "String", # required
|
3187
|
+
# },
|
3188
|
+
# ],
|
3189
|
+
# },
|
3190
|
+
# secrets: [
|
3191
|
+
# {
|
3192
|
+
# name: "String", # required
|
3193
|
+
# value_from: "String", # required
|
3194
|
+
# },
|
3195
|
+
# ],
|
2730
3196
|
# },
|
2731
3197
|
# },
|
2732
3198
|
# ],
|
@@ -2890,6 +3356,56 @@ module Aws::Batch
|
|
2890
3356
|
include Aws::Structure
|
2891
3357
|
end
|
2892
3358
|
|
3359
|
+
# An object representing the secret to expose to your container. Secrets
|
3360
|
+
# can be exposed to a container in the following ways:
|
3361
|
+
#
|
3362
|
+
# * To inject sensitive data into your containers as environment
|
3363
|
+
# variables, use the `secrets` container definition parameter.
|
3364
|
+
#
|
3365
|
+
# * To reference sensitive information in the log configuration of a
|
3366
|
+
# container, use the `secretOptions` container definition parameter.
|
3367
|
+
#
|
3368
|
+
# For more information, see [Specifying Sensitive Data][1] in the
|
3369
|
+
# *Amazon Elastic Container Service Developer Guide*.
|
3370
|
+
#
|
3371
|
+
#
|
3372
|
+
#
|
3373
|
+
# [1]: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/specifying-sensitive-data.html
|
3374
|
+
#
|
3375
|
+
# @note When making an API call, you may pass Secret
|
3376
|
+
# data as a hash:
|
3377
|
+
#
|
3378
|
+
# {
|
3379
|
+
# name: "String", # required
|
3380
|
+
# value_from: "String", # required
|
3381
|
+
# }
|
3382
|
+
#
|
3383
|
+
# @!attribute [rw] name
|
3384
|
+
# The name of the secret.
|
3385
|
+
# @return [String]
|
3386
|
+
#
|
3387
|
+
# @!attribute [rw] value_from
|
3388
|
+
# The secret to expose to the container. The supported values are
|
3389
|
+
# either the full ARN of the AWS Secrets Manager secret or the full
|
3390
|
+
# ARN of the parameter in the AWS Systems Manager Parameter Store.
|
3391
|
+
#
|
3392
|
+
# <note markdown="1"> If the AWS Systems Manager Parameter Store parameter exists in the
|
3393
|
+
# same Region as the task you are launching, then you can use either
|
3394
|
+
# the full ARN or name of the parameter. If the parameter exists in a
|
3395
|
+
# different Region, then the full ARN must be specified.
|
3396
|
+
#
|
3397
|
+
# </note>
|
3398
|
+
# @return [String]
|
3399
|
+
#
|
3400
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/Secret AWS API Documentation
|
3401
|
+
#
|
3402
|
+
class Secret < Struct.new(
|
3403
|
+
:name,
|
3404
|
+
:value_from)
|
3405
|
+
SENSITIVE = []
|
3406
|
+
include Aws::Structure
|
3407
|
+
end
|
3408
|
+
|
2893
3409
|
# These errors are usually caused by a server issue.
|
2894
3410
|
#
|
2895
3411
|
# @!attribute [rw] message
|
@@ -3125,6 +3641,47 @@ module Aws::Batch
|
|
3125
3641
|
#
|
3126
3642
|
class TerminateJobResponse < Aws::EmptyStructure; end
|
3127
3643
|
|
3644
|
+
# The container path, mount options, and size of the tmpfs mount.
|
3645
|
+
#
|
3646
|
+
# @note When making an API call, you may pass Tmpfs
|
3647
|
+
# data as a hash:
|
3648
|
+
#
|
3649
|
+
# {
|
3650
|
+
# container_path: "String", # required
|
3651
|
+
# size: 1, # required
|
3652
|
+
# mount_options: ["String"],
|
3653
|
+
# }
|
3654
|
+
#
|
3655
|
+
# @!attribute [rw] container_path
|
3656
|
+
# The absolute file path where the tmpfs volume is to be mounted.
|
3657
|
+
# @return [String]
|
3658
|
+
#
|
3659
|
+
# @!attribute [rw] size
|
3660
|
+
# The size (in MiB) of the tmpfs volume.
|
3661
|
+
# @return [Integer]
|
3662
|
+
#
|
3663
|
+
# @!attribute [rw] mount_options
|
3664
|
+
# The list of tmpfs volume mount options.
|
3665
|
+
#
|
3666
|
+
# Valid values: `"defaults" | "ro" | "rw" | "suid" | "nosuid" | "dev"
|
3667
|
+
# | "nodev" | "exec" | "noexec" | "sync" | "async" | "dirsync" |
|
3668
|
+
# "remount" | "mand" | "nomand" | "atime" | "noatime" | "diratime" |
|
3669
|
+
# "nodiratime" | "bind" | "rbind" | "unbindable" | "runbindable" |
|
3670
|
+
# "private" | "rprivate" | "shared" | "rshared" | "slave" | "rslave" |
|
3671
|
+
# "relatime" | "norelatime" | "strictatime" | "nostrictatime" | "mode"
|
3672
|
+
# | "uid" | "gid" | "nr_inodes" | "nr_blocks" | "mpol"`
|
3673
|
+
# @return [Array<String>]
|
3674
|
+
#
|
3675
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/Tmpfs AWS API Documentation
|
3676
|
+
#
|
3677
|
+
class Tmpfs < Struct.new(
|
3678
|
+
:container_path,
|
3679
|
+
:size,
|
3680
|
+
:mount_options)
|
3681
|
+
SENSITIVE = []
|
3682
|
+
include Aws::Structure
|
3683
|
+
end
|
3684
|
+
|
3128
3685
|
# The `ulimit` settings to pass to the container.
|
3129
3686
|
#
|
3130
3687
|
# @note When making an API call, you may pass Ulimit
|
@@ -3254,7 +3811,10 @@ module Aws::Batch
|
|
3254
3811
|
# @return [String]
|
3255
3812
|
#
|
3256
3813
|
# @!attribute [rw] state
|
3257
|
-
# Describes the queue's ability to accept new jobs.
|
3814
|
+
# Describes the queue's ability to accept new jobs. If the job queue
|
3815
|
+
# state is `ENABLED`, it is able to accept jobs. If the job queue
|
3816
|
+
# state is `DISABLED`, new jobs cannot be added to the queue, but jobs
|
3817
|
+
# already in the queue can finish.
|
3258
3818
|
# @return [String]
|
3259
3819
|
#
|
3260
3820
|
# @!attribute [rw] priority
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-batch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.38.0
|
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: 2020-
|
11
|
+
date: 2020-09-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.109.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.109.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|