Skip to main content

datastores

Creates, updates, deletes or gets a datastore resource or lists datastores in a region

Overview

Namedatastores
TypeResource
DescriptionDefinition of AWS::HealthImaging::Datastore Resource Type
Idawscc.healthimaging.datastores

Fields

NameDatatypeDescription
datastore_arnstringThe Datastore's ARN.
datastore_namestringUser friendly name for Datastore.
datastore_idstring
datastore_statusstringA string to denote the Datastore's state.
kms_key_arnstringARN referencing a KMS key or KMS key alias.
created_atstringThe timestamp when the data store was created.
updated_atstringThe timestamp when the data store was created.
tagsobjectA Map of key value pairs for Tags.
regionstringAWS region.

For more information, see AWS::HealthImaging::Datastore.

Methods

NameResourceAccessible byRequired Params
create_resourcedatastoresINSERT, region
delete_resourcedatastoresDELETEIdentifier, region
list_resourcesdatastores_list_onlySELECTregion
get_resourcedatastoresSELECTIdentifier, region

SELECT examples

Gets all properties from an individual datastore.

SELECT
region,
datastore_arn,
datastore_name,
datastore_id,
datastore_status,
kms_key_arn,
created_at,
updated_at,
tags
FROM awscc.healthimaging.datastores
WHERE
region = 'us-east-1' AND
Identifier = '{{ datastore_id }}';

INSERT example

Use the following StackQL query and manifest file to create a new datastore resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.healthimaging.datastores (
,
region
)
SELECT
'{{ }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM awscc.healthimaging.datastores
WHERE
Identifier = '{{ datastore_id }}' AND
region = 'us-east-1';

Permissions

To operate on the datastores resource, the following permissions are required:

medical-imaging:CreateDatastore,
medical-imaging:GetDatastore,
kms:DescribeKey,
kms:CreateGrant,
kms:RetireGrant,
kms:GenerateDataKey,
kms:Decrypt,
lambda:InvokeFunction,
medical-imaging:TagResource,
medical-imaging:UntagResource,
medical-imaging:ListTagsForResource