create_integration
¶
create_integration(
*,
config_overrides: Optional[RDSClientConfig] = None,
source_arn: Optional[SourceArn] = None,
target_arn: Optional[Arn] = None,
integration_name: Optional[IntegrationName] = None,
kms_key_id: Optional[String] = None,
additional_encryption_context: Optional[EncryptionContextMap] = None,
tags: Optional[TagList] = None,
data_filter: Optional[DataFilter] = None,
description: Optional[IntegrationDescription] = None,
) -> Integration
Creates a zero-ETL integration with Amazon Redshift.
Parameters:
-
source_arn(Optional[SourceArn], default:None) –The Amazon Resource Name (ARN) of the database to use as the source for replication.
-
target_arn(Optional[Arn], default:None) –The ARN of the Redshift data warehouse to use as the target for replication.
-
integration_name(Optional[IntegrationName], default:None) –The name of the integration.
-
kms_key_id(Optional[String], default:None) –The Amazon Web Services Key Management System (Amazon Web Services KMS) key identifier for the key to use to encrypt the integration. If you don't specify an encryption key, RDS uses a default Amazon Web Services owned key.
-
additional_encryption_context(Optional[EncryptionContextMap], default:None) –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 Amazon Web Services Key Management Service Developer Guide.
You can only include this parameter if you specify the
KMSKeyIdparameter. -
data_filter(Optional[DataFilter], default:None) –Data filtering options for the integration. For more information, see Data filtering for Aurora zero-ETL integrations with Amazon Redshift or Data filtering for Amazon RDS zero-ETL integrations with Amazon Redshift.
-
description(Optional[IntegrationDescription], default:None) –A description of the integration.
Raises:
-
DBClusterNotFoundFault–DBClusterIdentifierdoesn't refer to an existing DB cluster. -
DBInstanceNotFoundFault–DBInstanceIdentifierdoesn't refer to an existing DB instance. -
IntegrationAlreadyExistsFault–The integration you are trying to create already exists.
-
IntegrationConflictOperationFault–A conflicting conditional operation is currently in progress against this resource. Typically occurs when there are multiple requests being made to the same resource at the same time, and these requests conflict with each other.
-
IntegrationQuotaExceededFault–You can't crate any more zero-ETL integrations because the quota has been reached.
-
KMSKeyNotAccessibleFault–An error occurred accessing an Amazon Web Services KMS key.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To create a zero-ETL integration The following example creates a zero-ETL integration with Amazon Redshift.
>>> client.create_integration(integration_name='my-integration', source_arn='arn:aws:rds:us-east-1:123456789012:cluster:my-cluster', target_arn='arn:aws:redshift-serverless:us-east-1:123456789012:namespace/62c70612-0302-4db7-8414-b5e3e049f0d8')
Source code in docs_src/capo_rds/_services/rds.py
4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 | |