Classification Job List - Amazon Macie

Classification Job List

The Classification Job List resource provides a subset of information about the classification jobs for your account. A classification job, also referred to as a sensitive data discovery job, is a job that analyzes objects in specific Amazon S3 buckets to determine whether the objects contain sensitive data. Each job uses managed data identifiers that Amazon Macie provides and, optionally, custom data identifiers that you create.

This resource doesn't provide access to all the data for individual classification jobs. Instead, it provides only a subset of data. To retrieve all the data for a particular classification job, use the Classification Job Description resource.

You can use the Classification Job List resource to retrieve a subset of information about one or more classification jobs. To customize and refine your request, you can use supported parameters to specify whether and how to filter, sort, and paginate the results.

URI

/jobs/list

HTTP Methods

POST

Operation ID: ListClassificationJobs

Retrieves a subset of information about one or more classification jobs.

Responses
Status Code Response Model Description
200 ListClassificationJobsResponse

The request succeeded.

400 ValidationException

The request failed because it contains a syntax error.

402 ServiceQuotaExceededException

The request failed because fulfilling the request would exceed one or more service quotas for your account.

403 AccessDeniedException

The request was denied because you don't have sufficient access to the specified resource.

404 ResourceNotFoundException

The request failed because the specified resource wasn't found.

409 ConflictException

The request failed because it conflicts with the current state of the specified resource.

429 ThrottlingException

The request failed because you sent too many requests during a certain amount of time.

500 InternalServerException

The request failed due to an unknown internal server error, exception, or failure.

Schemas

Request Bodies

Example POST

{ "filterCriteria": { "excludes": [ { "comparator": enum, "values": [ "string" ], "key": enum } ], "includes": [ { "comparator": enum, "values": [ "string" ], "key": enum } ] }, "nextToken": "string", "maxResults": integer, "sortCriteria": { "orderBy": enum, "attributeName": enum } }

Response Bodies

Example ListClassificationJobsResponse

{ "nextToken": "string", "items": [ { "userPausedDetails": { "jobImminentExpirationHealthEventArn": "string", "jobExpiresAt": "string", "jobPausedAt": "string" }, "bucketDefinitions": [ { "accountId": "string", "buckets": [ "string" ] } ], "jobId": "string", "createdAt": "string", "jobStatus": enum, "name": "string", "jobType": enum, "lastRunErrorStatus": { "code": enum } } ] }

Example ValidationException

{ "message": "string" }

Example ServiceQuotaExceededException

{ "message": "string" }

Example AccessDeniedException

{ "message": "string" }

Example ResourceNotFoundException

{ "message": "string" }

Example ConflictException

{ "message": "string" }

Example ThrottlingException

{ "message": "string" }

Example InternalServerException

{ "message": "string" }

Properties

AccessDeniedException

Provides information about an error that occurred due to insufficient access to a specified resource.

Property Type Required Description
message

string

False

The explanation of the error that occurred.

ConflictException

Provides information about an error that occurred due to a versioning conflict for a specified resource.

Property Type Required Description
message

string

False

The explanation of the error that occurred.

InternalServerException

Provides information about an error that occurred due to an unknown internal server error, exception, or failure.

Property Type Required Description
message

string

False

The explanation of the error that occurred.

JobComparator

The operator to use in a condition. Valid values are:

  • EQ

  • GT

  • GTE

  • LT

  • LTE

  • NE

  • CONTAINS

JobStatus

The status of a classification job. Possible values are:

  • RUNNING

  • PAUSED

  • CANCELLED

  • COMPLETE

  • IDLE

  • USER_PAUSED

JobSummary

Provides information about a classification job, including the current status of the job.

Property Type Required Description
userPausedDetails

UserPausedDetails

False

If the current status of the job is USER_PAUSED, specifies when the job was paused and when the job will expire and be cancelled if it isn't resumed. This value is present only if the value for jobStatus is USER_PAUSED.

bucketDefinitions

Array of type S3BucketDefinitionForJob

False

The S3 buckets that the job is configured to analyze.

jobId

string

False

The unique identifier for the job.

createdAt

string

Format: date-time

False

The date and time, in UTC and extended ISO 8601 format, when the job was created.

jobStatus

JobStatus

False

The current status of the job. Possible values are:

  • CANCELLED - You cancelled the job, or you paused the job while it had a status of RUNNING and you didn't resume it within 30 days of pausing it.

  • COMPLETE - For a one-time job, Amazon Macie finished processing the data specified for the job. This value doesn't apply to recurring jobs.

  • IDLE - For a recurring job, the previous scheduled run is complete and the next scheduled run is pending. This value doesn't apply to one-time jobs.

  • PAUSED - Amazon Macie started running the job but additional processing would exceed the monthly sensitive data discovery quota for your account or one or more member accounts that the job analyzes data for.

  • RUNNING - For a one-time job, the job is in progress. For a recurring job, a scheduled run is in progress.

  • USER_PAUSED - You paused the job. If you paused the job while it had a status of RUNNING and you don't resume the job within 30 days of pausing it, the job expires and is cancelled. To check the job's expiration date, refer to the UserPausedDetails.jobExpiresAt property.

name

string

False

The custom name of the job.

jobType

JobType

False

The schedule for running the job. Possible values are:

  • ONE_TIME - The job runs only once.

  • SCHEDULED - The job runs on a daily, weekly, or monthly basis.

lastRunErrorStatus

LastRunErrorStatus

False

Specifies whether any account- or bucket-level access errors occurred when the job ran. For a recurring job, this value indicates the error status of the job's most recent run.

JobType

The schedule for running a classification job. Valid values are:

  • ONE_TIME

  • SCHEDULED

LastRunErrorStatus

Specifies whether any account- or bucket-level access errors occurred when a classification job ran. For example, the job is configured to analyze data for a member account that was suspended, or the job is configured to analyze an S3 bucket that Amazon Macie isn't allowed to access.

Property Type Required Description
code

LastRunErrorStatusCode

False

Specifies whether any account- or bucket-level access errors occurred when the job ran. For a recurring job, this value indicates the error status of the job's most recent run. Possible values are:

  • ERROR - One or more errors occurred. Amazon Macie didn't process all the data specified for the job.

  • NONE - No errors occurred. Macie processed all the data specified for the job.

LastRunErrorStatusCode

Specifies whether any account- or bucket-level access errors occurred during the run of a one-time classification job or the most recent run of a recurring classification job. Possible values are:

  • NONE

  • ERROR

ListClassificationJobsRequest

Specifies criteria for filtering, sorting, and paginating the results of a request for information about classification jobs.

Property Type Required Description
filterCriteria

ListJobsFilterCriteria

False

The criteria to use to filter the results.

nextToken

string

False

The nextToken string that specifies which page of results to return in a paginated response.

maxResults

integer

Format: int32

False

The maximum number of items to include in each page of the response.

sortCriteria

ListJobsSortCriteria

False

The criteria to use to sort the results.

ListClassificationJobsResponse

Provides the results of a request for information about one or more classification jobs.

Property Type Required Description
nextToken

string

False

The string to use in a subsequent request to get the next page of results in a paginated response. This value is null if there are no additional pages.

items

Array of type JobSummary

False

An array of objects, one for each job that meets the filter criteria specified in the request.

ListJobsFilterCriteria

Specifies criteria for filtering the results of a request for information about classification jobs.

Property Type Required Description
excludes

Array of type ListJobsFilterTerm

False

An array of objects, one for each condition that determines which jobs to exclude from the results.

includes

Array of type ListJobsFilterTerm

False

An array of objects, one for each condition that determines which jobs to include in the results.

ListJobsFilterKey

The property to use to filter the results. Valid values are:

  • jobType

  • jobStatus

  • createdAt

  • name

ListJobsFilterTerm

Specifies a condition that filters the results of a request for information about classification jobs. Each condition consists of a property, an operator, and one or more values.

Property Type Required Description
comparator

JobComparator

False

The operator to use to filter the results.

values

Array of type string

False

An array that lists one or more values to use to filter the results.

key

ListJobsFilterKey

False

The property to use to filter the results.

ListJobsSortAttributeName

The property to sort the results by. Valid values are:

  • createdAt

  • jobStatus

  • name

  • jobType

ListJobsSortCriteria

Specifies criteria for sorting the results of a request for information about classification jobs.

Property Type Required Description
orderBy

string

Values: ASC | DESC

False

The sort order to apply to the results, based on the value for the property specified by the attributeName property. Valid values are: ASC, sort the results in ascending order; and, DESC, sort the results in descending order.

attributeName

ListJobsSortAttributeName

False

The property to sort the results by.

ResourceNotFoundException

Provides information about an error that occurred because a specified resource wasn't found.

Property Type Required Description
message

string

False

The explanation of the error that occurred.

S3BucketDefinitionForJob

Specifies which AWS account owns the S3 buckets that a classification job analyzes, and the buckets to analyze for the account.

Property Type Required Description
accountId

string

False

The unique identifier for the AWS account that owns the buckets. If you specify this value and don't specify a value for the buckets array, the job analyzes objects in all the buckets that are owned by the account and meet other conditions specified for the job.

buckets

Array of type string

False

An array that lists the names of the buckets.

ServiceQuotaExceededException

Provides information about an error that occurred due to one or more service quotas for an account.

Property Type Required Description
message

string

False

The explanation of the error that occurred.

ThrottlingException

Provides information about an error that occurred because too many requests were sent during a certain amount of time.

Property Type Required Description
message

string

False

The explanation of the error that occurred.

UserPausedDetails

Provides information about when a classification job was paused and when it will expire and be cancelled if it isn't resumed. This object is present only if a job's current status (jobStatus) is USER_PAUSED. The information in this object applies only to a job that was paused while it had a status of RUNNING.

Property Type Required Description
jobImminentExpirationHealthEventArn

string

False

The Amazon Resource Name (ARN) of the AWS Health event that Amazon Macie sent to notify you of the job's pending expiration and cancellation. This value is null if a job has been paused for less than 23 days.

jobExpiresAt

string

Format: date-time

False

The date and time, in UTC and extended ISO 8601 format, when the job will expire and be cancelled if you don't resume it first. If you don't resume a job within 30 days of pausing it, the job expires and Amazon Macie cancels it.

jobPausedAt

string

Format: date-time

False

The date and time, in UTC and extended ISO 8601 format, when you paused the job.

ValidationException

Provides information about an error that occurred due to a syntax error in a request.

Property Type Required Description
message

string

False

The explanation of the error that occurred.

See Also

For more information about using this API in one of the language-specific AWS SDKs and references, see the following:

ListClassificationJobs