Skip to main content

domains

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

Overview

Namedomains
TypeResource
Idaws.connectcases.domains

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name of the Cases domain. (pattern: <code>.*[\S]</code>)
created_timestring (date-time)The timestamp when the Cases domain was created.
domain_arnstringThe Amazon Resource Name (ARN) for the Cases domain.
domain_idstringThe unique identifier of the Cases domain.
domain_statusstringThe status of the Cases domain. (Active, CreationInProgress, CreationFailed)
tagsobjectA map of of key-value pairs that represent tags on a resource. Tags are used to organize, track, or control access for this resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_domainselectdomain_id, regionReturns information about a specific domain if it exists.
list_domainsselectregionmaxResults, nextTokenLists all cases domains in the Amazon Web Services account. Each list item is a condensed summary object of the domain.
create_domaininsertregion, nameCreates a domain, which is a container for all case data, such as cases, fields, templates and layouts. Each Amazon Connect instance can be associated with only one Cases domain. This will not associate your connect instance to Cases domain. Instead, use the Amazon Connect CreateIntegrationAssociation API. You need specific IAM permissions to successfully associate the Cases domain. For more information, see Onboard to Cases.
delete_domaindeletedomain_id, regionDeletes a Cases domain. After deleting your domain you must disassociate the deleted domain from your Amazon Connect instance with another API call before being able to use Cases again with this Amazon Connect instance. See DeleteIntegrationAssociation.

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_idstringThe unique identifier of the Cases domain.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of results to return per page.
nextTokenstringThe token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

SELECT examples

Returns information about a specific domain if it exists.

SELECT
name,
created_time,
domain_arn,
domain_id,
domain_status,
tags
FROM aws.connectcases.domains
WHERE domain_id = '{{ domain_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a domain, which is a container for all case data, such as cases, fields, templates and layouts. Each Amazon Connect instance can be associated with only one Cases domain. This will not associate your connect instance to Cases domain. Instead, use the Amazon Connect CreateIntegrationAssociation API. You need specific IAM permissions to successfully associate the Cases domain. For more information, see Onboard to Cases.

INSERT INTO aws.connectcases.domains (
name,
region
)
SELECT
'{{ name }}' /* required */,
'{{ region }}'
RETURNING
domain_arn,
domain_id,
domain_status
;

DELETE examples

Deletes a Cases domain. After deleting your domain you must disassociate the deleted domain from your Amazon Connect instance with another API call before being able to use Cases again with this Amazon Connect instance. See DeleteIntegrationAssociation.

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