integrations
Creates, updates, deletes or gets an integration resource or lists integrations in a region
Overview
| Name | integrations |
| Type | Resource |
| Description | Integration from a source AWS service to a Redshift cluster |
| Id | awscc.redshift.integrations |
Fields
- get (all properties)
- list (identifiers only)
| Name | Datatype | Description |
|---|---|---|
integration_arn | string | The Amazon Resource Name (ARN) of the integration. |
integration_name | string | The name of the integration. |
source_arn | string | The Amazon Resource Name (ARN) of the database to use as the source for replication |
target_arn | string | The Amazon Resource Name (ARN) of the Redshift data warehouse to use as the target for replication |
tags | array | An array of key-value pairs to apply to this resource. |
create_time | string | The time (UTC) when the integration was created. |
kms_key_id | string | An 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_context | object | An optional set of non-secret key–value pairs that contains additional contextual information about the data. |
region | string | AWS region. |
| Name | Datatype | Description |
|---|---|---|
integration_arn | string | The Amazon Resource Name (ARN) of the integration. |
region | string | AWS region. |
For more information, see AWS::Redshift::Integration.
Methods
| Name | Resource | Accessible by | Required Params |
|---|---|---|---|
create_resource | integrations | INSERT | SourceArn, TargetArn, region |
delete_resource | integrations | DELETE | Identifier, region |
update_resource | integrations | UPDATE | Identifier, PatchDocument, region |
list_resources | integrations_list_only | SELECT | region |
get_resource | integrations | SELECT | Identifier, region |
SELECT examples
- get (all properties)
- list (identifiers only)
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 = 'us-east-1' AND
Identifier = '{{ integration_arn }}';
Lists all integrations in a region.
SELECT
region,
integration_arn
FROM awscc.redshift.integrations_list_only
WHERE
region = 'us-east-1';
INSERT example
Use the following StackQL query and manifest file to create a new integration resource, using stack-deploy.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO awscc.redshift.integrations (
SourceArn,
TargetArn,
region
)
SELECT
'{{ source_arn }}',
'{{ target_arn }}',
'{{ region }}';
/*+ create */
INSERT INTO awscc.redshift.integrations (
IntegrationName,
SourceArn,
TargetArn,
Tags,
KMSKeyId,
AdditionalEncryptionContext,
region
)
SELECT
'{{ integration_name }}',
'{{ source_arn }}',
'{{ target_arn }}',
'{{ tags }}',
'{{ kms_key_id }}',
'{{ additional_encryption_context }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: integration
props:
- name: integration_name
value: '{{ integration_name }}'
- name: source_arn
value: '{{ source_arn }}'
- name: target_arn
value: '{{ target_arn }}'
- name: tags
value:
- key: '{{ key }}'
value: '{{ value }}'
- name: kms_key_id
value: '{{ kms_key_id }}'
- name: additional_encryption_context
value: {}
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 }}';
DELETE example
/*+ delete */
DELETE FROM awscc.redshift.integrations
WHERE
Identifier = '{{ integration_arn }}' AND
region = 'us-east-1';
Permissions
To operate on the integrations resource, the following permissions are required:
- Create
- Read
- Update
- Delete
- List
redshift:CreateIntegration,
redshift:DescribeIntegrations,
redshift:CreateTags,
redshift:DescribeTags,
redshift:DescribeClusters,
redshift:CreateInboundIntegration,
redshift-serverless:ListNamespaces,
kms:CreateGrant,
kms:DescribeKey
redshift:DescribeIntegrations,
redshift:DescribeTags
redshift:DescribeIntegrations,
redshift:ModifyIntegration,
redshift:CreateTags,
redshift:DeleteTags,
redshift:DescribeClusters,
redshift:DescribeTags,
redshift-serverless:ListNamespaces
redshift:DeleteTags,
redshift:DeleteIntegration,
redshift:DescribeIntegrations
redshift:DescribeTags,
redshift:DescribeIntegrations