Describes a list of job definitions. You can specify a status
(such as
ACTIVE
) to only return job definitions that match that status.
batch_describe_job_definitions(jobDefinitions, maxResults,
jobDefinitionName, status, nextToken)
A list with the following syntax:
list(
jobDefinitions = list(
list(
jobDefinitionName = "string",
jobDefinitionArn = "string",
revision = 123,
status = "string",
type = "string",
parameters = list(
"string"
),
retryStrategy = list(
attempts = 123,
evaluateOnExit = list(
list(
onStatusReason = "string",
onReason = "string",
onExitCode = "string",
action = "RETRY"|"EXIT"
)
)
),
containerProperties = list(
image = "string",
vcpus = 123,
memory = 123,
command = list(
"string"
),
jobRoleArn = "string",
executionRoleArn = "string",
volumes = list(
list(
host = list(
sourcePath = "string"
),
name = "string"
)
),
environment = list(
list(
name = "string",
value = "string"
)
),
mountPoints = list(
list(
containerPath = "string",
readOnly = TRUE|FALSE,
sourceVolume = "string"
)
),
readonlyRootFilesystem = TRUE|FALSE,
privileged = TRUE|FALSE,
ulimits = list(
list(
hardLimit = 123,
name = "string",
softLimit = 123
)
),
user = "string",
instanceType = "string",
resourceRequirements = list(
list(
value = "string",
type = "GPU"|"VCPU"|"MEMORY"
)
),
linuxParameters = list(
devices = list(
list(
hostPath = "string",
containerPath = "string",
permissions = list(
"READ"|"WRITE"|"MKNOD"
)
)
),
initProcessEnabled = TRUE|FALSE,
sharedMemorySize = 123,
tmpfs = list(
list(
containerPath = "string",
size = 123,
mountOptions = list(
"string"
)
)
),
maxSwap = 123,
swappiness = 123
),
logConfiguration = list(
logDriver = "json-file"|"syslog"|"journald"|"gelf"|"fluentd"|"awslogs"|"splunk",
options = list(
"string"
),
secretOptions = list(
list(
name = "string",
valueFrom = "string"
)
)
),
secrets = list(
list(
name = "string",
valueFrom = "string"
)
),
networkConfiguration = list(
assignPublicIp = "ENABLED"|"DISABLED"
),
fargatePlatformConfiguration = list(
platformVersion = "string"
)
),
timeout = list(
attemptDurationSeconds = 123
),
nodeProperties = list(
numNodes = 123,
mainNode = 123,
nodeRangeProperties = list(
list(
targetNodes = "string",
container = list(
image = "string",
vcpus = 123,
memory = 123,
command = list(
"string"
),
jobRoleArn = "string",
executionRoleArn = "string",
volumes = list(
list(
host = list(
sourcePath = "string"
),
name = "string"
)
),
environment = list(
list(
name = "string",
value = "string"
)
),
mountPoints = list(
list(
containerPath = "string",
readOnly = TRUE|FALSE,
sourceVolume = "string"
)
),
readonlyRootFilesystem = TRUE|FALSE,
privileged = TRUE|FALSE,
ulimits = list(
list(
hardLimit = 123,
name = "string",
softLimit = 123
)
),
user = "string",
instanceType = "string",
resourceRequirements = list(
list(
value = "string",
type = "GPU"|"VCPU"|"MEMORY"
)
),
linuxParameters = list(
devices = list(
list(
hostPath = "string",
containerPath = "string",
permissions = list(
"READ"|"WRITE"|"MKNOD"
)
)
),
initProcessEnabled = TRUE|FALSE,
sharedMemorySize = 123,
tmpfs = list(
list(
containerPath = "string",
size = 123,
mountOptions = list(
"string"
)
)
),
maxSwap = 123,
swappiness = 123
),
logConfiguration = list(
logDriver = "json-file"|"syslog"|"journald"|"gelf"|"fluentd"|"awslogs"|"splunk",
options = list(
"string"
),
secretOptions = list(
list(
name = "string",
valueFrom = "string"
)
)
),
secrets = list(
list(
name = "string",
valueFrom = "string"
)
),
networkConfiguration = list(
assignPublicIp = "ENABLED"|"DISABLED"
),
fargatePlatformConfiguration = list(
platformVersion = "string"
)
)
)
)
),
tags = list(
"string"
),
propagateTags = TRUE|FALSE,
platformCapabilities = list(
"EC2"|"FARGATE"
)
)
),
nextToken = "string"
)
A list of up to 100 job definition names or full Amazon Resource Name (ARN) entries.
The maximum number of results returned by
describe_job_definitions
in
paginated output. When this parameter is used,
describe_job_definitions
only
returns maxResults
results in a single page along with a nextToken
response element. The remaining results of the initial request can be
seen by sending another
describe_job_definitions
request
with the returned nextToken
value. This value can be between 1 and
100. If this parameter isn't used, then
describe_job_definitions
returns up
to 100 results and a nextToken
value if applicable.
The name of the job definition to describe.
The status used to filter job definitions.
The nextToken
value returned from a previous paginated
describe_job_definitions
request
where maxResults
was used and the results exceeded the value of that
parameter. Pagination continues from the end of the previous results
that returned the nextToken
value. This value is null
when there are
no more results to return.
This token should be treated as an opaque identifier that's only used to retrieve the next items in a list and not for other programmatic purposes.
svc$describe_job_definitions(
jobDefinitions = list(
"string"
),
maxResults = 123,
jobDefinitionName = "string",
status = "string",
nextToken = "string"
)
if (FALSE) {
# This example describes all of your active job definitions.
svc$describe_job_definitions(
status = "ACTIVE"
)
}
Run the code above in your browser using DataLab