Viewing docs for Aiven v6.51.0
published on Tuesday, Mar 17, 2026 by Pulumi
published on Tuesday, Mar 17, 2026 by Pulumi
Viewing docs for Aiven v6.51.0
published on Tuesday, Mar 17, 2026 by Pulumi
published on Tuesday, Mar 17, 2026 by Pulumi
Gets information about an Aiven for Apache Kafka® MirrorMaker 2 replication flow.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";
const exampleReplicationFlow = aiven.getMirrorMakerReplicationFlow({
project: exampleProject.project,
serviceName: exampleKafka.serviceName,
sourceCluster: source.serviceName,
targetCluster: target.serviceName,
});
import pulumi
import pulumi_aiven as aiven
example_replication_flow = aiven.get_mirror_maker_replication_flow(project=example_project["project"],
service_name=example_kafka["serviceName"],
source_cluster=source["serviceName"],
target_cluster=target["serviceName"])
package main
import (
"github.com/pulumi/pulumi-aiven/sdk/v6/go/aiven"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := aiven.LookupMirrorMakerReplicationFlow(ctx, &aiven.LookupMirrorMakerReplicationFlowArgs{
Project: exampleProject.Project,
ServiceName: exampleKafka.ServiceName,
SourceCluster: source.ServiceName,
TargetCluster: target.ServiceName,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aiven = Pulumi.Aiven;
return await Deployment.RunAsync(() =>
{
var exampleReplicationFlow = Aiven.GetMirrorMakerReplicationFlow.Invoke(new()
{
Project = exampleProject.Project,
ServiceName = exampleKafka.ServiceName,
SourceCluster = source.ServiceName,
TargetCluster = target.ServiceName,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aiven.AivenFunctions;
import com.pulumi.aiven.inputs.GetMirrorMakerReplicationFlowArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var exampleReplicationFlow = AivenFunctions.getMirrorMakerReplicationFlow(GetMirrorMakerReplicationFlowArgs.builder()
.project(exampleProject.project())
.serviceName(exampleKafka.serviceName())
.sourceCluster(source.serviceName())
.targetCluster(target.serviceName())
.build());
}
}
variables:
exampleReplicationFlow:
fn::invoke:
function: aiven:getMirrorMakerReplicationFlow
arguments:
project: ${exampleProject.project}
serviceName: ${exampleKafka.serviceName}
sourceCluster: ${source.serviceName}
targetCluster: ${target.serviceName}
Using getMirrorMakerReplicationFlow
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getMirrorMakerReplicationFlow(args: GetMirrorMakerReplicationFlowArgs, opts?: InvokeOptions): Promise<GetMirrorMakerReplicationFlowResult>
function getMirrorMakerReplicationFlowOutput(args: GetMirrorMakerReplicationFlowOutputArgs, opts?: InvokeOptions): Output<GetMirrorMakerReplicationFlowResult>def get_mirror_maker_replication_flow(project: Optional[str] = None,
service_name: Optional[str] = None,
source_cluster: Optional[str] = None,
target_cluster: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetMirrorMakerReplicationFlowResult
def get_mirror_maker_replication_flow_output(project: Optional[pulumi.Input[str]] = None,
service_name: Optional[pulumi.Input[str]] = None,
source_cluster: Optional[pulumi.Input[str]] = None,
target_cluster: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetMirrorMakerReplicationFlowResult]func LookupMirrorMakerReplicationFlow(ctx *Context, args *LookupMirrorMakerReplicationFlowArgs, opts ...InvokeOption) (*LookupMirrorMakerReplicationFlowResult, error)
func LookupMirrorMakerReplicationFlowOutput(ctx *Context, args *LookupMirrorMakerReplicationFlowOutputArgs, opts ...InvokeOption) LookupMirrorMakerReplicationFlowResultOutput> Note: This function is named LookupMirrorMakerReplicationFlow in the Go SDK.
public static class GetMirrorMakerReplicationFlow
{
public static Task<GetMirrorMakerReplicationFlowResult> InvokeAsync(GetMirrorMakerReplicationFlowArgs args, InvokeOptions? opts = null)
public static Output<GetMirrorMakerReplicationFlowResult> Invoke(GetMirrorMakerReplicationFlowInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetMirrorMakerReplicationFlowResult> getMirrorMakerReplicationFlow(GetMirrorMakerReplicationFlowArgs args, InvokeOptions options)
public static Output<GetMirrorMakerReplicationFlowResult> getMirrorMakerReplicationFlow(GetMirrorMakerReplicationFlowArgs args, InvokeOptions options)
fn::invoke:
function: aiven:index/getMirrorMakerReplicationFlow:getMirrorMakerReplicationFlow
arguments:
# arguments dictionaryThe following arguments are supported:
- Project string
- The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- Service
Name string - The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- Source
Cluster string - Source cluster alias. Maximum length:
128. - Target
Cluster string - Target cluster alias. Maximum length:
128.
- Project string
- The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- Service
Name string - The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- Source
Cluster string - Source cluster alias. Maximum length:
128. - Target
Cluster string - Target cluster alias. Maximum length:
128.
- project String
- The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- service
Name String - The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- source
Cluster String - Source cluster alias. Maximum length:
128. - target
Cluster String - Target cluster alias. Maximum length:
128.
- project string
- The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- service
Name string - The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- source
Cluster string - Source cluster alias. Maximum length:
128. - target
Cluster string - Target cluster alias. Maximum length:
128.
- project str
- The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- service_
name str - The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- source_
cluster str - Source cluster alias. Maximum length:
128. - target_
cluster str - Target cluster alias. Maximum length:
128.
- project String
- The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- service
Name String - The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- source
Cluster String - Source cluster alias. Maximum length:
128. - target
Cluster String - Target cluster alias. Maximum length:
128.
getMirrorMakerReplicationFlow Result
The following output properties are available:
- Config
Properties List<string>Excludes - List of topic configuration properties and regular expressions to not replicate. The properties that are not replicated by default are:
follower.replication.throttled.replicas,leader.replication.throttled.replicas,message.timestamp.difference.max.ms,message.timestamp.type,unclean.leader.election.enable, andmin.insync.replicas. Setting this overrides the defaults. For example, to enable replication for 'min.insync.replicas' and 'unclean.leader.election.enable' set this to: ["follower\.replication\.throttled\.replicas", "leader\.replication\.throttled\.replicas", "message\.timestamp\.difference\.max\.ms", "message\.timestamp\.type"] - Emit
Backward boolHeartbeats Enabled - Enables emitting heartbeats to the direction opposite to the flow, i.e. to the source cluster. The default value is
false. - Emit
Heartbeats boolEnabled - Enables emitting heartbeats to the target cluster. The default value is
false. - Enable bool
- Enables replication flow for a service.
- Exactly
Once boolDelivery Enabled - Enables exactly-once message delivery. Set this to
enabledfor new replications. The default value isfalse. - Follower
Fetching boolEnabled - Assigns a Rack ID based on the availability-zone to enable follower fetching and rack awareness per replication flow. Defaults to enabled by the service for new flows, but is left unchanged for existing ones when not set.
- Id string
- The provider-assigned unique ID for this managed resource.
- Offset
Syncs stringTopic Location - Offset syncs topic location. The possible values are
sourceandtarget. - Project string
- The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- Replication
Factor int - Replication factor,
>= 1. - Replication
Policy stringClass - Replication policy class. The possible values are
org.apache.kafka.connect.mirror.DefaultReplicationPolicyandorg.apache.kafka.connect.mirror.IdentityReplicationPolicy. The default value isorg.apache.kafka.connect.mirror.DefaultReplicationPolicy. - Service
Name string - The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- Source
Cluster string - Source cluster alias. Maximum length:
128. - Sync
Group boolOffsets Enabled - Sync consumer group offsets. The default value is
false. - Sync
Group intOffsets Interval Seconds - Frequency of consumer group offset sync. The default value is
1. - Target
Cluster string - Target cluster alias. Maximum length:
128. - Topics List<string>
- The topics to include in the replica defined by a list of regular expressions in Java format.
- Topics
Blacklists List<string> - The topics to exclude from the replica defined by a list of regular expressions in Java format.
- Config
Properties []stringExcludes - List of topic configuration properties and regular expressions to not replicate. The properties that are not replicated by default are:
follower.replication.throttled.replicas,leader.replication.throttled.replicas,message.timestamp.difference.max.ms,message.timestamp.type,unclean.leader.election.enable, andmin.insync.replicas. Setting this overrides the defaults. For example, to enable replication for 'min.insync.replicas' and 'unclean.leader.election.enable' set this to: ["follower\.replication\.throttled\.replicas", "leader\.replication\.throttled\.replicas", "message\.timestamp\.difference\.max\.ms", "message\.timestamp\.type"] - Emit
Backward boolHeartbeats Enabled - Enables emitting heartbeats to the direction opposite to the flow, i.e. to the source cluster. The default value is
false. - Emit
Heartbeats boolEnabled - Enables emitting heartbeats to the target cluster. The default value is
false. - Enable bool
- Enables replication flow for a service.
- Exactly
Once boolDelivery Enabled - Enables exactly-once message delivery. Set this to
enabledfor new replications. The default value isfalse. - Follower
Fetching boolEnabled - Assigns a Rack ID based on the availability-zone to enable follower fetching and rack awareness per replication flow. Defaults to enabled by the service for new flows, but is left unchanged for existing ones when not set.
- Id string
- The provider-assigned unique ID for this managed resource.
- Offset
Syncs stringTopic Location - Offset syncs topic location. The possible values are
sourceandtarget. - Project string
- The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- Replication
Factor int - Replication factor,
>= 1. - Replication
Policy stringClass - Replication policy class. The possible values are
org.apache.kafka.connect.mirror.DefaultReplicationPolicyandorg.apache.kafka.connect.mirror.IdentityReplicationPolicy. The default value isorg.apache.kafka.connect.mirror.DefaultReplicationPolicy. - Service
Name string - The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- Source
Cluster string - Source cluster alias. Maximum length:
128. - Sync
Group boolOffsets Enabled - Sync consumer group offsets. The default value is
false. - Sync
Group intOffsets Interval Seconds - Frequency of consumer group offset sync. The default value is
1. - Target
Cluster string - Target cluster alias. Maximum length:
128. - Topics []string
- The topics to include in the replica defined by a list of regular expressions in Java format.
- Topics
Blacklists []string - The topics to exclude from the replica defined by a list of regular expressions in Java format.
- config
Properties List<String>Excludes - List of topic configuration properties and regular expressions to not replicate. The properties that are not replicated by default are:
follower.replication.throttled.replicas,leader.replication.throttled.replicas,message.timestamp.difference.max.ms,message.timestamp.type,unclean.leader.election.enable, andmin.insync.replicas. Setting this overrides the defaults. For example, to enable replication for 'min.insync.replicas' and 'unclean.leader.election.enable' set this to: ["follower\.replication\.throttled\.replicas", "leader\.replication\.throttled\.replicas", "message\.timestamp\.difference\.max\.ms", "message\.timestamp\.type"] - emit
Backward BooleanHeartbeats Enabled - Enables emitting heartbeats to the direction opposite to the flow, i.e. to the source cluster. The default value is
false. - emit
Heartbeats BooleanEnabled - Enables emitting heartbeats to the target cluster. The default value is
false. - enable Boolean
- Enables replication flow for a service.
- exactly
Once BooleanDelivery Enabled - Enables exactly-once message delivery. Set this to
enabledfor new replications. The default value isfalse. - follower
Fetching BooleanEnabled - Assigns a Rack ID based on the availability-zone to enable follower fetching and rack awareness per replication flow. Defaults to enabled by the service for new flows, but is left unchanged for existing ones when not set.
- id String
- The provider-assigned unique ID for this managed resource.
- offset
Syncs StringTopic Location - Offset syncs topic location. The possible values are
sourceandtarget. - project String
- The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- replication
Factor Integer - Replication factor,
>= 1. - replication
Policy StringClass - Replication policy class. The possible values are
org.apache.kafka.connect.mirror.DefaultReplicationPolicyandorg.apache.kafka.connect.mirror.IdentityReplicationPolicy. The default value isorg.apache.kafka.connect.mirror.DefaultReplicationPolicy. - service
Name String - The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- source
Cluster String - Source cluster alias. Maximum length:
128. - sync
Group BooleanOffsets Enabled - Sync consumer group offsets. The default value is
false. - sync
Group IntegerOffsets Interval Seconds - Frequency of consumer group offset sync. The default value is
1. - target
Cluster String - Target cluster alias. Maximum length:
128. - topics List<String>
- The topics to include in the replica defined by a list of regular expressions in Java format.
- topics
Blacklists List<String> - The topics to exclude from the replica defined by a list of regular expressions in Java format.
- config
Properties string[]Excludes - List of topic configuration properties and regular expressions to not replicate. The properties that are not replicated by default are:
follower.replication.throttled.replicas,leader.replication.throttled.replicas,message.timestamp.difference.max.ms,message.timestamp.type,unclean.leader.election.enable, andmin.insync.replicas. Setting this overrides the defaults. For example, to enable replication for 'min.insync.replicas' and 'unclean.leader.election.enable' set this to: ["follower\.replication\.throttled\.replicas", "leader\.replication\.throttled\.replicas", "message\.timestamp\.difference\.max\.ms", "message\.timestamp\.type"] - emit
Backward booleanHeartbeats Enabled - Enables emitting heartbeats to the direction opposite to the flow, i.e. to the source cluster. The default value is
false. - emit
Heartbeats booleanEnabled - Enables emitting heartbeats to the target cluster. The default value is
false. - enable boolean
- Enables replication flow for a service.
- exactly
Once booleanDelivery Enabled - Enables exactly-once message delivery. Set this to
enabledfor new replications. The default value isfalse. - follower
Fetching booleanEnabled - Assigns a Rack ID based on the availability-zone to enable follower fetching and rack awareness per replication flow. Defaults to enabled by the service for new flows, but is left unchanged for existing ones when not set.
- id string
- The provider-assigned unique ID for this managed resource.
- offset
Syncs stringTopic Location - Offset syncs topic location. The possible values are
sourceandtarget. - project string
- The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- replication
Factor number - Replication factor,
>= 1. - replication
Policy stringClass - Replication policy class. The possible values are
org.apache.kafka.connect.mirror.DefaultReplicationPolicyandorg.apache.kafka.connect.mirror.IdentityReplicationPolicy. The default value isorg.apache.kafka.connect.mirror.DefaultReplicationPolicy. - service
Name string - The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- source
Cluster string - Source cluster alias. Maximum length:
128. - sync
Group booleanOffsets Enabled - Sync consumer group offsets. The default value is
false. - sync
Group numberOffsets Interval Seconds - Frequency of consumer group offset sync. The default value is
1. - target
Cluster string - Target cluster alias. Maximum length:
128. - topics string[]
- The topics to include in the replica defined by a list of regular expressions in Java format.
- topics
Blacklists string[] - The topics to exclude from the replica defined by a list of regular expressions in Java format.
- config_
properties_ Sequence[str]excludes - List of topic configuration properties and regular expressions to not replicate. The properties that are not replicated by default are:
follower.replication.throttled.replicas,leader.replication.throttled.replicas,message.timestamp.difference.max.ms,message.timestamp.type,unclean.leader.election.enable, andmin.insync.replicas. Setting this overrides the defaults. For example, to enable replication for 'min.insync.replicas' and 'unclean.leader.election.enable' set this to: ["follower\.replication\.throttled\.replicas", "leader\.replication\.throttled\.replicas", "message\.timestamp\.difference\.max\.ms", "message\.timestamp\.type"] - emit_
backward_ boolheartbeats_ enabled - Enables emitting heartbeats to the direction opposite to the flow, i.e. to the source cluster. The default value is
false. - emit_
heartbeats_ boolenabled - Enables emitting heartbeats to the target cluster. The default value is
false. - enable bool
- Enables replication flow for a service.
- exactly_
once_ booldelivery_ enabled - Enables exactly-once message delivery. Set this to
enabledfor new replications. The default value isfalse. - follower_
fetching_ boolenabled - Assigns a Rack ID based on the availability-zone to enable follower fetching and rack awareness per replication flow. Defaults to enabled by the service for new flows, but is left unchanged for existing ones when not set.
- id str
- The provider-assigned unique ID for this managed resource.
- offset_
syncs_ strtopic_ location - Offset syncs topic location. The possible values are
sourceandtarget. - project str
- The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- replication_
factor int - Replication factor,
>= 1. - replication_
policy_ strclass - Replication policy class. The possible values are
org.apache.kafka.connect.mirror.DefaultReplicationPolicyandorg.apache.kafka.connect.mirror.IdentityReplicationPolicy. The default value isorg.apache.kafka.connect.mirror.DefaultReplicationPolicy. - service_
name str - The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- source_
cluster str - Source cluster alias. Maximum length:
128. - sync_
group_ booloffsets_ enabled - Sync consumer group offsets. The default value is
false. - sync_
group_ intoffsets_ interval_ seconds - Frequency of consumer group offset sync. The default value is
1. - target_
cluster str - Target cluster alias. Maximum length:
128. - topics Sequence[str]
- The topics to include in the replica defined by a list of regular expressions in Java format.
- topics_
blacklists Sequence[str] - The topics to exclude from the replica defined by a list of regular expressions in Java format.
- config
Properties List<String>Excludes - List of topic configuration properties and regular expressions to not replicate. The properties that are not replicated by default are:
follower.replication.throttled.replicas,leader.replication.throttled.replicas,message.timestamp.difference.max.ms,message.timestamp.type,unclean.leader.election.enable, andmin.insync.replicas. Setting this overrides the defaults. For example, to enable replication for 'min.insync.replicas' and 'unclean.leader.election.enable' set this to: ["follower\.replication\.throttled\.replicas", "leader\.replication\.throttled\.replicas", "message\.timestamp\.difference\.max\.ms", "message\.timestamp\.type"] - emit
Backward BooleanHeartbeats Enabled - Enables emitting heartbeats to the direction opposite to the flow, i.e. to the source cluster. The default value is
false. - emit
Heartbeats BooleanEnabled - Enables emitting heartbeats to the target cluster. The default value is
false. - enable Boolean
- Enables replication flow for a service.
- exactly
Once BooleanDelivery Enabled - Enables exactly-once message delivery. Set this to
enabledfor new replications. The default value isfalse. - follower
Fetching BooleanEnabled - Assigns a Rack ID based on the availability-zone to enable follower fetching and rack awareness per replication flow. Defaults to enabled by the service for new flows, but is left unchanged for existing ones when not set.
- id String
- The provider-assigned unique ID for this managed resource.
- offset
Syncs StringTopic Location - Offset syncs topic location. The possible values are
sourceandtarget. - project String
- The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- replication
Factor Number - Replication factor,
>= 1. - replication
Policy StringClass - Replication policy class. The possible values are
org.apache.kafka.connect.mirror.DefaultReplicationPolicyandorg.apache.kafka.connect.mirror.IdentityReplicationPolicy. The default value isorg.apache.kafka.connect.mirror.DefaultReplicationPolicy. - service
Name String - The name of the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. Changing this property forces recreation of the resource.
- source
Cluster String - Source cluster alias. Maximum length:
128. - sync
Group BooleanOffsets Enabled - Sync consumer group offsets. The default value is
false. - sync
Group NumberOffsets Interval Seconds - Frequency of consumer group offset sync. The default value is
1. - target
Cluster String - Target cluster alias. Maximum length:
128. - topics List<String>
- The topics to include in the replica defined by a list of regular expressions in Java format.
- topics
Blacklists List<String> - The topics to exclude from the replica defined by a list of regular expressions in Java format.
Package Details
- Repository
- Aiven pulumi/pulumi-aiven
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aivenTerraform Provider.
Viewing docs for Aiven v6.51.0
published on Tuesday, Mar 17, 2026 by Pulumi
published on Tuesday, Mar 17, 2026 by Pulumi
