datastores
Creates, updates, deletes or gets a datastore
resource or lists datastores
in a region
Overview
Name | datastores |
Type | Resource |
Description | Definition of AWS::HealthImaging::Datastore Resource Type |
Id | aws.healthimaging.datastores |
Fields
Name | Datatype | Description |
---|---|---|
datastore_arn | string | The Datastore's ARN. |
datastore_name | string | User friendly name for Datastore. |
datastore_id | string | |
datastore_status | string | A string to denote the Datastore's state. |
kms_key_arn | string | ARN referencing a KMS key or KMS key alias. |
created_at | string | The timestamp when the data store was created. |
updated_at | string | The timestamp when the data store was created. |
tags | object | A Map of key value pairs for Tags. |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | , region |
delete_resource | DELETE | data__Identifier, region |
list_resources | SELECT | region |
get_resource | SELECT | data__Identifier, region |
SELECT
examples
Gets all datastores
in a region.
SELECT
region,
datastore_arn,
datastore_name,
datastore_id,
datastore_status,
kms_key_arn,
created_at,
updated_at,
tags
FROM aws.healthimaging.datastores
WHERE region = 'us-east-1';
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 aws.healthimaging.datastores
WHERE region = 'us-east-1' AND data__Identifier = '<DatastoreId>';
INSERT
example
Use the following StackQL query and manifest file to create a new datastore
resource, using stack-deploy
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.healthimaging.datastores (
,
region
)
SELECT
'{{ }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.healthimaging.datastores (
DatastoreName,
KmsKeyArn,
Tags,
region
)
SELECT
'{{ DatastoreName }}',
'{{ KmsKeyArn }}',
'{{ Tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: datastore
props:
- name: DatastoreName
value: '{{ DatastoreName }}'
- name: KmsKeyArn
value: '{{ KmsKeyArn }}'
- name: Tags
value: {}
DELETE
example
/*+ delete */
DELETE FROM aws.healthimaging.datastores
WHERE data__Identifier = '<DatastoreId>'
AND region = 'us-east-1';
Permissions
To operate on the datastores
resource, the following permissions are required:
Create
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
Read
medical-imaging:GetDatastore,
medical-imaging:ListTagsForResource
Delete
medical-imaging:DeleteDatastore,
medical-imaging:GetDatastore,
medical-imaging:UntagResource,
kms:DescribeKey,
kms:RetireGrant,
kms:GenerateDataKey,
kms:Decrypt
List
medical-imaging:ListDatastores