Skip to main content

table_maintenance_job_status

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

Overview

Nametable_maintenance_job_status
TypeResource
Idaws.s3tables.table_maintenance_job_status

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
statusobjectThe status of the maintenance job.
table_arnstringThe Amazon Resource Name (ARN) of the table. (pattern: <code>(arn:aws[-a-z0-9]:[a-z0-9]+:[-a-z0-9]:[0-9]{12}:bucket/[a-z0-9_-]{3,63}/table/[a-zA-Z0-9-_]{1,255})</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_table_maintenance_job_statusselecttable_bucket_arn, namespace, name, regionGets the status of a maintenance job for a table. For more information, see S3 Tables maintenance in the Amazon Simple Storage Service User Guide. Permissions You must have the s3tables:GetTableMaintenanceJobStatus permission to use this operation.

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
namestringThe name of the table containing the maintenance job status you want to check.
namespacestringThe name of the namespace the table is associated with.
regionstringAWS region (default: us-east-1)
table_bucket_arnstringThe Amazon Resource Name (ARN) of the table bucket.

SELECT examples

Gets the status of a maintenance job for a table. For more information, see S3 Tables maintenance in the Amazon Simple Storage Service User Guide. Permissions You must have the s3tables:GetTableMaintenanceJobStatus permission to use this operation.

SELECT
status,
table_arn
FROM aws.s3tables.table_maintenance_job_status
WHERE table_bucket_arn = '{{ table_bucket_arn }}' -- required
AND namespace = '{{ namespace }}' -- required
AND name = '{{ name }}' -- required
AND region = '{{ region }}' -- required
;