Skip to main content

custom_domain_associations

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

Overview

Namecustom_domain_associations
TypeResource
Idaws.redshift_serverless.custom_domain_associations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
custom_domain_certificate_arnstringThe custom domain name’s certificate Amazon resource name (ARN). (pattern: <code>arn:[\w+=/,.@-]+:acm:[\w+=/,.@-]:[0-9]+:[\w+=,.@-]+(/[\w+=,.@-]+)</code>)
custom_domain_certificate_expiry_timestring (date-time)The expiration time for the certificate.
custom_domain_namestringThe custom domain name associated with the workgroup. (pattern: <code>^(((?!-)[A-Za-z0-9-]{0,62}[A-Za-z0-9]).)+((?!-)[A-Za-z0-9-]{1,62}[A-Za-z0-9])$</code>)
workgroup_namestringThe name of the workgroup associated with the database. (pattern: <code>^[a-z0-9-]+$</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_custom_domain_associationselectregionGets information about a specific custom domain association.
list_custom_domain_associationsselectregionLists custom domain associations for Amazon Redshift Serverless.
create_custom_domain_associationinsertregion, customDomainCertificateArn, customDomainName, workgroupNameCreates a custom domain association for Amazon Redshift Serverless.
update_custom_domain_associationupdateregion, customDomainCertificateArn, customDomainName, workgroupNameUpdates an Amazon Redshift Serverless certificate associated with a custom domain.
delete_custom_domain_associationdeleteregionDeletes a custom domain association for Amazon Redshift Serverless.

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
regionstringAWS region (default: us-east-1)

SELECT examples

Gets information about a specific custom domain association.

SELECT
custom_domain_certificate_arn,
custom_domain_certificate_expiry_time,
custom_domain_name,
workgroup_name
FROM aws.redshift_serverless.custom_domain_associations
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a custom domain association for Amazon Redshift Serverless.

INSERT INTO aws.redshift_serverless.custom_domain_associations (
customDomainCertificateArn,
customDomainName,
workgroupName,
region
)
SELECT
'{{ customDomainCertificateArn }}' /* required */,
'{{ customDomainName }}' /* required */,
'{{ workgroupName }}' /* required */,
'{{ region }}'
RETURNING
custom_domain_certificate_arn,
custom_domain_certificate_expiry_time,
custom_domain_name,
workgroup_name
;

UPDATE examples

Updates an Amazon Redshift Serverless certificate associated with a custom domain.

UPDATE aws.redshift_serverless.custom_domain_associations
SET
customDomainCertificateArn = '{{ customDomainCertificateArn }}',
customDomainName = '{{ customDomainName }}',
workgroupName = '{{ workgroupName }}'
WHERE
region = '{{ region }}' --required
AND customDomainCertificateArn = '{{ customDomainCertificateArn }}' --required
AND customDomainName = '{{ customDomainName }}' --required
AND workgroupName = '{{ workgroupName }}' --required
RETURNING
custom_domain_certificate_arn,
custom_domain_certificate_expiry_time,
custom_domain_name,
workgroup_name;

DELETE examples

Deletes a custom domain association for Amazon Redshift Serverless.

DELETE FROM aws.redshift_serverless.custom_domain_associations
WHERE region = '{{ region }}' --required
;