Skip to main content

domains

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

Overview

Namedomains
TypeResource
Idaws.connecthealth.domains

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestring
arnstring (pattern: <code>arn:aws:health-agent:[a-z0-9-]+:[0-9]{12}:domain/(hai-|dom-)[a-z0-9]+</code>)
created_atstring (date-time)
domain_idstring (pattern: <code>(hai-|dom-)[a-z0-9]+</code>)
encryption_contextobjectEncryption context for a Domain.
kms_key_arnstring (pattern: <code>arn:aws:kms:[a-z0-9-]+:[0-9]{12}:key/[a-f0-9-]+</code>)
statusstring (ACTIVE, DELETING, DELETED)
tagsobjectTags associated with the Domain
web_app_configurationobjectConfiguration for the Domain web application, including Identity Center settings. If provided, all fields are required.
web_app_urlstring

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_domainselectdomain_id, regionRetrieves information about a Domain.
list_domainsselectregionstatus, maxResults, nextTokenLists Domains for a given account.
create_domaininsertregion, nameCreates a new Domain for managing HealthAgent resources.
delete_domaindeletedomain_id, regionDeletes a Domain and all associated resources.
start_patient_insights_jobexecdomain_id, region, patientContext, insightsContext, encounterContext, userContext, inputDataConfig, outputDataConfigStarts a new patient insights job.

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
domain_idstring
regionstringAWS region (default: us-east-1)
maxResultsintegerMaximum number of results to return.
nextTokenstringToken for pagination.
statusstringFilter by Domain status.

SELECT examples

Retrieves information about a Domain.

SELECT
name,
arn,
created_at,
domain_id,
encryption_context,
kms_key_arn,
status,
tags,
web_app_configuration,
web_app_url
FROM aws.connecthealth.domains
WHERE domain_id = '{{ domain_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a new Domain for managing HealthAgent resources.

INSERT INTO aws.connecthealth.domains (
name,
kmsKeyArn,
webAppSetupConfiguration,
tags,
region
)
SELECT
'{{ name }}' /* required */,
'{{ kmsKeyArn }}',
'{{ webAppSetupConfiguration }}',
'{{ tags }}',
'{{ region }}'
RETURNING
name,
arn,
created_at,
domain_id,
encryption_context,
kms_key_arn,
status,
web_app_configuration,
web_app_url
;

DELETE examples

Deletes a Domain and all associated resources.

DELETE FROM aws.connecthealth.domains
WHERE domain_id = '{{ domain_id }}' --required
AND region = '{{ region }}' --required
;

Lifecycle Methods

Starts a new patient insights job.

EXEC aws.connecthealth.domains.start_patient_insights_job
@domain_id='{{ domain_id }}' --required,
@region='{{ region }}' --required
@@json=
'{
"patientContext": "{{ patientContext }}",
"insightsContext": "{{ insightsContext }}",
"encounterContext": "{{ encounterContext }}",
"userContext": "{{ userContext }}",
"inputDataConfig": "{{ inputDataConfig }}",
"outputDataConfig": "{{ outputDataConfig }}",
"clientToken": "{{ clientToken }}"
}'
;