Skip to main content

search_result_export_jobs

Creates, updates, deletes, gets or lists a search_result_export_jobs resource.

Overview

Namesearch_result_export_jobs
TypeResource
Idaws.backupsearch.search_result_export_jobs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
completion_timestring (date-time)The date and time that an export job completed, in Unix format and Coordinated Universal Time (UTC). The value of CreationTime is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
creation_timestring (date-time)The date and time that an export job was created, in Unix format and Coordinated Universal Time (UTC). The value of CreationTime is accurate to milliseconds. For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
export_job_arnstringThe unique Amazon Resource Name (ARN) that uniquely identifies the export job.
export_job_identifierstringThis is the unique string that identifies the specified export job.
export_specificationobjectThe export specification consists of the destination S3 bucket to which the search results were exported, along with the destination prefix.
search_job_arnstringThe unique string that identifies the Amazon Resource Name (ARN) of the specified search job.
statusstringThis is the current status of the export job. (RUNNING, FAILED, COMPLETED)
status_messagestringA status message is a string that is returned for search job with a status of FAILED, along with steps to remedy and retry the operation.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_search_result_export_jobselectexport_job_identifier, regionThis operation retrieves the metadata of an export job. An export job is an operation that transmits the results of a search job to a specified S3 bucket in a .csv file. An export job allows you to retain results of a search beyond the search job's scheduled retention of 7 days.
list_search_result_export_jobsselectregionStatus, SearchJobIdentifier, NextToken, MaxResultsThis operation exports search results of a search job to a specified destination S3 bucket.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
export_job_identifierstringThis is the unique string that identifies a specific export job. Required for this operation.
regionstringAWS region (default: us-east-1)
MaxResultsintegerThe maximum number of resource list items to be returned.
NextTokenstringThe next item following a partial list of returned backups included in a search job. For example, if a request is made to return MaxResults number of backups, NextToken allows you to return more items in your list starting at the location pointed to by the next token.
SearchJobIdentifierstringThe unique string that specifies the search job.
StatusstringThe search jobs to be included in the export job can be filtered by including this parameter.

SELECT examples

This operation retrieves the metadata of an export job. An export job is an operation that transmits the results of a search job to a specified S3 bucket in a .csv file. An export job allows you to retain results of a search beyond the search job's scheduled retention of 7 days.

SELECT
completion_time,
creation_time,
export_job_arn,
export_job_identifier,
export_specification,
search_job_arn,
status,
status_message
FROM aws.backupsearch.search_result_export_jobs
WHERE export_job_identifier = '{{ export_job_identifier }}' -- required
AND region = '{{ region }}' -- required
;