Skip to main content

replicators

Creates, updates, deletes, gets or lists a replicators resource.

Overview​

Namereplicators
TypeResource
Idaws.kafka.replicators

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
creation_timestring (date-time)The time when the replicator was created.
current_versionstringThe current version number of the replicator.
is_replicator_referencebooleanWhether this resource is a replicator reference.
kafka_clustersarrayKafka Clusters used in setting up sources / targets for replication.
log_deliveryobjectConfiguration for log delivery to customer destinations.
replication_info_listarrayA list of replication configurations, where each configuration targets a given source cluster to target cluster replication flow.
replicator_arnstringThe Amazon Resource Name (ARN) of the replicator.
replicator_descriptionstringThe description of the replicator.
replicator_namestringThe name of the replicator.
replicator_resource_arnstringThe Amazon Resource Name (ARN) of the replicator resource in the region where the replicator was created.
replicator_statestringState of the replicator. (RUNNING, CREATING, UPDATING, DELETING, FAILED)
service_execution_role_arnstringThe Amazon Resource Name (ARN) of the IAM role used by the replicator to access resources in the customer's account (e.g source and target clusters)
state_infoobjectDetails about the state of the replicator.
tagsobjectList of tags attached to the Replicator.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_replicatorselectreplicator_arn, regionDescribes a replicator.
list_replicatorsselectregionmaxResults, nextToken, replicatorNameFilterLists the replicators.
create_replicatorinsertregion, KafkaClusters, ReplicationInfoList, ReplicatorName, ServiceExecutionRoleArnCreates the replicator.
update_replication_infoupdatereplicator_arn, region, CurrentVersionUpdates replication info of a replicator.
delete_replicatordeletereplicator_arn, regioncurrentVersionDeletes a replicator.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)
replicator_arnstringThe Amazon Resource Name (ARN) of the replicator to be deleted.
currentVersionstringThe current version of the replicator.
maxResultsintegerThe maximum number of results to return in the response. If there are more results, the response includes a NextToken parameter.
nextTokenstringIf the response of ListReplicators is truncated, it returns a NextToken in the response. This NextToken should be sent in the subsequent request to ListReplicators.
replicatorNameFilterstringReturns replicators starting with given name.

SELECT examples​

Describes a replicator.

SELECT
creation_time,
current_version,
is_replicator_reference,
kafka_clusters,
log_delivery,
replication_info_list,
replicator_arn,
replicator_description,
replicator_name,
replicator_resource_arn,
replicator_state,
service_execution_role_arn,
state_info,
tags
FROM aws.kafka.replicators
WHERE replicator_arn = '{{ replicator_arn }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples​

Creates the replicator.

INSERT INTO aws.kafka.replicators (
Description,
KafkaClusters,
ReplicationInfoList,
ReplicatorName,
ServiceExecutionRoleArn,
Tags,
LogDelivery,
region
)
SELECT
'{{ Description }}',
'{{ KafkaClusters }}' /* required */,
'{{ ReplicationInfoList }}' /* required */,
'{{ ReplicatorName }}' /* required */,
'{{ ServiceExecutionRoleArn }}' /* required */,
'{{ Tags }}',
'{{ LogDelivery }}',
'{{ region }}'
RETURNING
replicator_arn,
replicator_name,
replicator_state
;

UPDATE examples​

Updates replication info of a replicator.

UPDATE aws.kafka.replicators
SET
ConsumerGroupReplication = '{{ ConsumerGroupReplication }}',
CurrentVersion = '{{ CurrentVersion }}',
SourceKafkaClusterArn = '{{ SourceKafkaClusterArn }}',
SourceKafkaClusterId = '{{ SourceKafkaClusterId }}',
TargetKafkaClusterArn = '{{ TargetKafkaClusterArn }}',
TargetKafkaClusterId = '{{ TargetKafkaClusterId }}',
TopicReplication = '{{ TopicReplication }}',
LogDelivery = '{{ LogDelivery }}'
WHERE
replicator_arn = '{{ replicator_arn }}' --required
AND region = '{{ region }}' --required
AND CurrentVersion = '{{ CurrentVersion }}' --required
RETURNING
replicator_arn,
replicator_state;

DELETE examples​

Deletes a replicator.

DELETE FROM aws.kafka.replicators
WHERE replicator_arn = '{{ replicator_arn }}' --required
AND region = '{{ region }}' --required
AND currentVersion = '{{ currentVersion }}'
;