Skip to main content

datastores

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

Overview

Namedatastores
TypeResource
Idaws.medical_imaging.datastores

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
created_atstring (date-time)The timestamp when the data store was created.
datastore_arnstringThe Amazon Resource Name (ARN) for the data store. (pattern: <code>arn:aws((-us-gov)|(-iso)|(-iso-b)|(-cn))?:medical-imaging:[a-z0-9-]+:[0-9]{12}:datastore/[0-9a-z]{32}(/imageset/[0-9a-z]{32})?</code>)
datastore_idstringThe data store identifier. (pattern: <code>[0-9a-z]{32}</code>)
datastore_namestringThe data store name. (pattern: <code>[A-Za-z0-9._/#-]+</code>)
datastore_statusstringThe data store status. (CREATING, CREATE_FAILED, ACTIVE, DELETING, DELETED)
kms_key_arnstringARN referencing a KMS key or KMS key alias. (pattern: <code>arn:aws[a-zA-Z-]{0,16}:kms:[a-z]{2}(-[a-z]{1,16}){1,3}-\d{1}:\d{12}:((key/[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12})|(alias/[a-zA-Z0-9:/_-]{1,256}))</code>)
lambda_authorizer_arnstringThe ARN of the authorizer's Lambda function. (pattern: <code>arn:(aws[a-zA-Z-]*)?:lambda:[a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\d{1}:\d{12}:function:[a-zA-Z0-9-]+(:($LATEST|[a-zA-Z0-9-]+))?</code>)
lossless_storage_formatstringThe datastore's lossless storage format. (HTJ2K, JPEG_2000_LOSSLESS)
updated_atstring (date-time)The timestamp when the data store was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_datastoreselectdatastore_id, regionGet data store properties.
list_datastoresselectregiondatastoreStatus, nextToken, maxResultsList data stores.
create_datastoreinsertregion, clientTokenCreate a data store.
delete_datastoredeletedatastore_id, regionDelete a data store. Before a data store can be deleted, you must first delete all image sets within it.
copy_image_setexecdatastore_id, source_image_set_id, region, copyImageSetInformationforce, promoteToPrimaryCopy an image set.
start_dicom_import_jobexecdatastore_id, region, dataAccessRoleArn, clientToken, inputS3Uri, outputS3UriStart importing bulk data into an ACTIVE data store. The import job imports DICOM P10 files or enhances existing DICOM files with JSON metadata. The importConfiguration parameter specifies the import type. The data is found in the S3 prefix specified by the inputS3Uri parameter. The import job stores processing results in the file specified by the outputS3Uri parameter.

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
datastore_idstringThe data store identifier.
regionstringAWS region (default: us-east-1)
source_image_set_idstringThe source image set identifier.
datastoreStatusstringThe data store status.
forcebooleanProviding this parameter will force completion of the CopyImageSet operation, even if there are inconsistent Patient, Study, and/or Series level metadata elements between the sourceImageSet and destinationImageSet.
maxResultsintegerValid Range: Minimum value of 1. Maximum value of 50.
nextTokenstringThe pagination token used to request the list of data stores on the next page.
promoteToPrimarybooleanProviding this parameter will configure the CopyImageSet operation to promote the given image set to the primary DICOM hierarchy. If successful, a new primary image set ID will be returned as the destination image set.

SELECT examples

Get data store properties.

SELECT
created_at,
datastore_arn,
datastore_id,
datastore_name,
datastore_status,
kms_key_arn,
lambda_authorizer_arn,
lossless_storage_format,
updated_at
FROM aws.medical_imaging.datastores
WHERE datastore_id = '{{ datastore_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Create a data store.

INSERT INTO aws.medical_imaging.datastores (
datastoreName,
clientToken,
tags,
kmsKeyArn,
lambdaAuthorizerArn,
losslessStorageFormat,
region
)
SELECT
'{{ datastoreName }}',
'{{ clientToken }}' /* required */,
'{{ tags }}',
'{{ kmsKeyArn }}',
'{{ lambdaAuthorizerArn }}',
'{{ losslessStorageFormat }}',
'{{ region }}'
RETURNING
datastore_id,
datastore_status
;

DELETE examples

Delete a data store. Before a data store can be deleted, you must first delete all image sets within it.

DELETE FROM aws.medical_imaging.datastores
WHERE datastore_id = '{{ datastore_id }}' --required
AND region = '{{ region }}' --required
;

Lifecycle Methods

Copy an image set.

EXEC aws.medical_imaging.datastores.copy_image_set
@datastore_id='{{ datastore_id }}' --required,
@source_image_set_id='{{ source_image_set_id }}' --required,
@region='{{ region }}' --required,
@force={{ force }},
@promoteToPrimary={{ promoteToPrimary }}
@@json=
'{
"copyImageSetInformation": "{{ copyImageSetInformation }}"
}'
;