Skip to main content

integrations

Creates, updates, deletes, gets or lists an integrations resource.

Overview

Nameintegrations
TypeResource
Idaws.redshift.integrations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
additional_encryption_contextstringThe encryption context for the integration. For more information, see Encryption context in the Amazon Web Services Key Management Service Developer Guide.
create_timestringThe time (UTC) when the integration was created.
descriptionstringThe description of the integration.
errorsstringAny errors associated with the integration.
integration_arnstringThe Amazon Resource Name (ARN) of the integration.
integration_namestringThe name of the integration.
kms_key_idstringThe Key Management Service (KMS) key identifier for the key used to encrypt the integration.
source_arnstringThe Amazon Resource Name (ARN) of the database used as the source for replication.
statusstringThe current status of the integration.
tagsstringThe list of tags associated with the integration.
target_arnstringThe Amazon Resource Name (ARN) of the Amazon Redshift data warehouse to use as the target for replication.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_integrationsselectregionIntegrationArn, MaxRecords, Marker, FiltersDescribes one or more zero-ETL or S3 event integrations with Amazon Redshift.
create_integrationinsertSourceArn, TargetArn, IntegrationName, regionKMSKeyId, TagList, AdditionalEncryptionContext, DescriptionCreates a zero-ETL integration or S3 event integration with Amazon Redshift.
modify_integrationupdateIntegrationArn, regionDescription, IntegrationNameModifies a zero-ETL integration or S3 event integration with Amazon Redshift.
delete_integrationdeleteIntegrationArn, regionDeletes a zero-ETL integration or S3 event integration with Amazon Redshift.

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
IntegrationArnstringThe unique identifier of the integration to delete.
IntegrationNamestringThe name of the integration.
SourceArnstringThe Amazon Resource Name (ARN) of the database to use as the source for replication.
TargetArnstringThe Amazon Resource Name (ARN) of the Amazon Redshift data warehouse to use as the target for replication.
regionstringAWS region (default: us-east-1)
AdditionalEncryptionContextobjectAn optional set of non-secret key–value pairs that contains additional contextual information about the data. For more information, see Encryption context in the Amazon Web Services Key Management Service Developer Guide. You can only include this parameter if you specify the KMSKeyId parameter.
DescriptionstringA new description for the integration.
FiltersarrayA filter that specifies one or more resources to return.
IntegrationArnstringThe unique identifier of the integration.
IntegrationNamestringA new name for the integration.
KMSKeyIdstringAn Key Management Service (KMS) key identifier for the key to use to encrypt the integration. If you don't specify an encryption key, the default Amazon Web Services owned key is used.
MarkerstringAn optional pagination token provided by a previous DescribeIntegrations request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by MaxRecords.
MaxRecordsintegerThe maximum number of response records to return in each call. If the number of remaining response records exceeds the specified MaxRecords value, a value is returned in a marker field of the response. You can retrieve the next set of records by retrying the command with the returned marker value. Default: 100 Constraints: minimum 20, maximum 100.
TagListarrayA list of tags.

SELECT examples

Describes one or more zero-ETL or S3 event integrations with Amazon Redshift.

SELECT
additional_encryption_context,
create_time,
description,
errors,
integration_arn,
integration_name,
kms_key_id,
source_arn,
status,
tags,
target_arn
FROM aws.redshift.integrations
WHERE region = '{{ region }}' -- required
AND IntegrationArn = '{{ IntegrationArn }}'
AND MaxRecords = '{{ MaxRecords }}'
AND Marker = '{{ Marker }}'
AND Filters = '{{ Filters }}'
;

INSERT examples

Creates a zero-ETL integration or S3 event integration with Amazon Redshift.

INSERT INTO aws.redshift.integrations (
SourceArn,
TargetArn,
IntegrationName,
region,
KMSKeyId,
TagList,
AdditionalEncryptionContext,
Description
)
SELECT
'{{ SourceArn }}',
'{{ TargetArn }}',
'{{ IntegrationName }}',
'{{ region }}',
'{{ KMSKeyId }}',
'{{ TagList }}',
'{{ AdditionalEncryptionContext }}',
'{{ Description }}'
RETURNING
additional_encryption_context,
create_time,
description,
errors,
integration_arn,
integration_name,
kms_key_id,
source_arn,
status,
tags,
target_arn
;

UPDATE examples

Modifies a zero-ETL integration or S3 event integration with Amazon Redshift.

UPDATE aws.redshift.integrations
SET
-- No updatable properties
WHERE
IntegrationArn = '{{ IntegrationArn }}' --required
AND region = '{{ region }}' --required
AND Description = '{{ Description}}'
AND IntegrationName = '{{ IntegrationName}}'
RETURNING
additional_encryption_context,
create_time,
description,
errors,
integration_arn,
integration_name,
kms_key_id,
source_arn,
status,
tags,
target_arn;

DELETE examples

Deletes a zero-ETL integration or S3 event integration with Amazon Redshift.

DELETE FROM aws.redshift.integrations
WHERE IntegrationArn = '{{ IntegrationArn }}' --required
AND region = '{{ region }}' --required
;