Skip to main content

integrations

Creates, updates, deletes or gets an integration resource or lists integrations in a region

Overview

Nameintegrations
TypeResource
DescriptionA zero-ETL integration with Amazon Redshift.
Idawscc.rds.integrations

Fields

NameDatatypeDescription
integration_namestringThe name of the integration.
descriptionstringA description of the integration.
tagsarrayA list of tags. For more information, see [Tagging Amazon RDS Resources](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html) in the *Amazon RDS User Guide.*.
data_filterstringData filters for the integration. These filters determine which tables from the source database are sent to the target Amazon Redshift data warehouse.
source_arnstringThe Amazon Resource Name (ARN) of the database to use as the source for replication.
target_arnstringThe ARN of the Redshift data warehouse to use as the target for replication.
integration_arnstring
kms_key_idstringThe AWS Key Management System (AWS KMS) key identifier for the key to use to encrypt the integration. If you don't specify an encryption key, RDS uses a default AWS owned key.
additional_encryption_contextobjectAn optional set of non-secret key–value pairs that contains additional contextual information about the data. For more information, see &#91;Encryption context&#93;(https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#encrypt&#95;context) in the &#42;Key Management Service Developer Guide&#42;.<br />You can only include this parameter if you specify the &#96;&#96;KMSKeyId&#96;&#96; parameter.
create_timestring
regionstringAWS region.

For more information, see AWS::RDS::Integration.

Methods

NameResourceAccessible byRequired Params
create_resourceintegrationsINSERTSourceArn, TargetArn, region
delete_resourceintegrationsDELETEIdentifier, region
update_resourceintegrationsUPDATEIdentifier, PatchDocument, region
list_resourcesintegrations_list_onlySELECTregion
get_resourceintegrationsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual integration.

SELECT
region,
integration_name,
description,
tags,
data_filter,
source_arn,
target_arn,
integration_arn,
kms_key_id,
additional_encryption_context,
create_time
FROM awscc.rds.integrations
WHERE
region = 'us-east-1' AND
Identifier = '{{ integration_arn }}';

INSERT example

Use the following StackQL query and manifest file to create a new integration resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.rds.integrations (
SourceArn,
TargetArn,
region
)
SELECT
'{{ source_arn }}',
'{{ target_arn }}',
'{{ region }}';

UPDATE example

Use the following StackQL query and manifest file to update a integration resource, using stack-deploy.

/*+ update */
UPDATE awscc.rds.integrations
SET PatchDocument = string('{{ {
"IntegrationName": integration_name,
"Description": description,
"Tags": tags,
"DataFilter": data_filter
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ integration_arn }}';

DELETE example

/*+ delete */
DELETE FROM awscc.rds.integrations
WHERE
Identifier = '{{ integration_arn }}' AND
region = 'us-east-1';

Permissions

To operate on the integrations resource, the following permissions are required:

rds:CreateIntegration,
rds:DescribeIntegrations,
rds:AddTagsToResource,
kms:CreateGrant,
kms:DescribeKey,
redshift:CreateInboundIntegration