Skip to main content

integrations

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

Overview

Nameintegrations
TypeResource
DescriptionIntegration from a source AWS service to a Redshift cluster
Idawscc.redshift.integrations

Fields

NameDatatypeDescription
integration_arnstringThe Amazon Resource Name (ARN) of the integration.
integration_namestringThe name of the integration.
source_arnstringThe Amazon Resource Name (ARN) of the database to use as the source for replication
target_arnstringThe Amazon Resource Name (ARN) of the Redshift data warehouse to use as the target for replication
tagsarrayAn array of key-value pairs to apply to this resource.
create_timestringThe time (UTC) when the integration was created.
kms_key_idstringAn KMS key identifier for the key to use to encrypt the integration. If you don't specify an encryption key, the default AWS owned KMS key is used.
additional_encryption_contextobjectAn optional set of non-secret key–value pairs that contains additional contextual information about the data.
regionstringAWS region.

For more information, see AWS::Redshift::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_arn,
integration_name,
source_arn,
target_arn,
tags,
create_time,
kms_key_id,
additional_encryption_context
FROM awscc.redshift.integrations
WHERE
region = '{{ region }}' 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.redshift.integrations (
SourceArn,
TargetArn,
region
)
SELECT
'{{ source_arn }}',
'{{ target_arn }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

UPDATE example

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

/*+ update */
UPDATE awscc.redshift.integrations
SET PatchDocument = string('{{ {
"IntegrationName": integration_name,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ integration_arn }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.redshift.integrations
WHERE
Identifier = '{{ integration_arn }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

redshift:CreateIntegration,
redshift:DescribeIntegrations,
redshift:CreateTags,
redshift:DescribeTags,
redshift:DescribeClusters,
redshift:CreateInboundIntegration,
redshift-serverless:ListNamespaces,
kms:CreateGrant,
kms:DescribeKey