Skip to main content

domain_layouts

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

Overview

Namedomain_layouts
TypeResource
Idaws.customer_profiles.domain_layouts

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
created_atstring (date-time)The timestamp of when the layout was created.
descriptionstringThe description of the layout
display_namestringThe display name of the layout (pattern: <code>^[a-zA-Z_][a-zA-Z_0-9-\s]*$</code>)
is_defaultbooleanIf set to true for a layout, this layout will be used by default to view data. If set to false, then the layout will not be used by default, but it can be used to view data by explicitly selecting it in the console.
last_updated_atstring (date-time)The timestamp of when the layout was most recently updated.
layoutstringA customizable layout that can be used to view data under a Customer Profiles domain.
layout_definition_namestringThe unique name of the layout. (pattern: <code>^[a-zA-Z0-9_-]+$</code>)
layout_typestringThe type of layout that can be used to view data under a Customer Profiles domain. (PROFILE_EXPLORER)
tagsobjectThe tags used to organize, track, or control access for this resource.
versionstringThe version used to create layout.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_domain_layoutselectdomain_name, layout_definition_name, regionGets the layout to view data for a specific domain. This API can only be invoked from the Amazon Connect admin website.
list_domain_layoutsselectdomain_name, regionnext-token, max-resultsLists the existing layouts that can be used to view data for a specific domain. This API can only be invoked from the Amazon Connect admin website.
create_domain_layoutinsertdomain_name, layout_definition_name, region, DisplayName, LayoutTypeCreates the layout to view data for a specific domain. This API can only be invoked from the Amazon Connect admin website.
update_domain_layoutupdatedomain_name, layout_definition_name, regionUpdates the layout used to view data for a specific domain. This API can only be invoked from the Amazon Connect admin website.
delete_domain_layoutdeletedomain_name, layout_definition_name, regionDeletes the layout used to view data for a specific domain. This API can only be invoked from the Amazon Connect admin website.

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_namestringThe unique name of the domain.
layout_definition_namestringThe unique name of the layout.
regionstringAWS region (default: us-east-1)
max-resultsintegerThe maximum number of objects returned per page.
next-tokenstringIdentifies the next page of results to return.

SELECT examples

Gets the layout to view data for a specific domain. This API can only be invoked from the Amazon Connect admin website.

SELECT
created_at,
description,
display_name,
is_default,
last_updated_at,
layout,
layout_definition_name,
layout_type,
tags,
version
FROM aws.customer_profiles.domain_layouts
WHERE domain_name = '{{ domain_name }}' -- required
AND layout_definition_name = '{{ layout_definition_name }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates the layout to view data for a specific domain. This API can only be invoked from the Amazon Connect admin website.

INSERT INTO aws.customer_profiles.domain_layouts (
Description,
DisplayName,
IsDefault,
LayoutType,
Layout,
Tags,
domain_name,
layout_definition_name,
region
)
SELECT
'{{ Description }}',
'{{ DisplayName }}' /* required */,
{{ IsDefault }},
'{{ LayoutType }}' /* required */,
'{{ Layout }}',
'{{ Tags }}',
'{{ domain_name }}',
'{{ layout_definition_name }}',
'{{ region }}'
RETURNING
created_at,
description,
display_name,
is_default,
last_updated_at,
layout,
layout_definition_name,
layout_type,
tags,
version
;

UPDATE examples

Updates the layout used to view data for a specific domain. This API can only be invoked from the Amazon Connect admin website.

UPDATE aws.customer_profiles.domain_layouts
SET
Description = '{{ Description }}',
DisplayName = '{{ DisplayName }}',
IsDefault = {{ IsDefault }},
LayoutType = '{{ LayoutType }}',
Layout = '{{ Layout }}'
WHERE
domain_name = '{{ domain_name }}' --required
AND layout_definition_name = '{{ layout_definition_name }}' --required
AND region = '{{ region }}' --required
RETURNING
created_at,
description,
display_name,
is_default,
last_updated_at,
layout,
layout_definition_name,
layout_type,
tags,
version;

DELETE examples

Deletes the layout used to view data for a specific domain. This API can only be invoked from the Amazon Connect admin website.

DELETE FROM aws.customer_profiles.domain_layouts
WHERE domain_name = '{{ domain_name }}' --required
AND layout_definition_name = '{{ layout_definition_name }}' --required
AND region = '{{ region }}' --required
;