integrations
Creates, updates, deletes or gets an integration resource or lists integrations in a region
Overview
| Name | integrations |
| Type | Resource |
| Description | A zero-ETL integration with Amazon Redshift. |
| Id | awscc.rds.integrations |
Fields
- get (all properties)
- list (identifiers only)
| Name | Datatype | Description |
|---|---|---|
integration_name | string | The name of the integration. |
description | string | A description of the integration. |
tags | array | A list of tags. For more information, see Tagging Amazon RDS Resources in the Amazon RDS User Guide.. |
data_filter | string | Data filters for the integration. These filters determine which tables from the source database are sent to the target Amazon Redshift data warehouse. |
source_arn | string | The Amazon Resource Name (ARN) of the database to use as the source for replication. |
target_arn | string | The ARN of the Redshift data warehouse to use as the target for replication. |
integration_arn | string | |
kms_key_id | string | The 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_context | object | An optional set of non-secret key–value pairs that contains additional contextual information about the data. For more information, see Encryption context in the Key Management Service Developer Guide.You can only include this parameter if you specify theKMSKeyId parameter. |
create_time | string | |
region | string | AWS region. |
| Name | Datatype | Description |
|---|---|---|
integration_arn | string | |
region | string | AWS region. |
For more information, see AWS::RDS::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_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 = '{{ region }}' AND
Identifier = '{{ integration_arn }}';
Lists all integrations in a region.
SELECT
region,
integration_arn
FROM awscc.rds.integrations_list_only
WHERE
region = '{{ region }}';
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.rds.integrations (
SourceArn,
TargetArn,
region
)
SELECT
'{{ source_arn }}',
'{{ target_arn }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
/*+ create */
INSERT INTO awscc.rds.integrations (
IntegrationName,
Description,
Tags,
DataFilter,
SourceArn,
TargetArn,
KMSKeyId,
AdditionalEncryptionContext,
region
)
SELECT
'{{ integration_name }}',
'{{ description }}',
'{{ tags }}',
'{{ data_filter }}',
'{{ source_arn }}',
'{{ target_arn }}',
'{{ kms_key_id }}',
'{{ additional_encryption_context }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
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: description
value: '{{ description }}'
- name: tags
value:
- key: '{{ key }}'
value: '{{ value }}'
- name: data_filter
value: '{{ data_filter }}'
- name: source_arn
value: '{{ source_arn }}'
- name: target_arn
value: '{{ target_arn }}'
- 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.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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
DELETE example
/*+ delete */
DELETE FROM awscc.rds.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:
| Parameter | Description |
|---|---|
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:
- Create
- Read
- Update
- Delete
- List
rds:CreateIntegration,
rds:DescribeIntegrations,
rds:AddTagsToResource,
kms:CreateGrant,
kms:DescribeKey,
redshift:CreateInboundIntegration
rds:DescribeIntegrations
rds:DescribeIntegrations,
rds:AddTagsToResource,
rds:RemoveTagsFromResource,
rds:ModifyIntegration
rds:DeleteIntegration,
rds:DescribeIntegrations
rds:DescribeIntegrations