1. Packages
  2. Aiven Provider
  3. API Docs
  4. getMirrorMakerReplicationFlow
Viewing docs for Aiven v4.5.2 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
aiven logo
Viewing docs for Aiven v4.5.2 (Older version)
published on Monday, Mar 9, 2026 by Pulumi

    The MirrorMaker 2 Replication Flow data source provides information about the existing MirrorMaker 2 Replication Flow on Aiven Cloud.

    Example Usage

    using Pulumi;
    using Aiven = Pulumi.Aiven;
    
    class MyStack : Stack
    {
        public MyStack()
        {
            var f1 = Output.Create(Aiven.GetMirrorMakerReplicationFlow.InvokeAsync(new Aiven.GetMirrorMakerReplicationFlowArgs
            {
                Project = aiven_project.Kafka_mm_project1.Project,
                ServiceName = aiven_service.Mm.Service_name,
                SourceCluster = aiven_service.Source.Service_name,
                TargetCluster = aiven_service.Target.Service_name,
            }));
        }
    
    }
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aiven/sdk/v4/go/aiven"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := aiven.LookupMirrorMakerReplicationFlow(ctx, &GetMirrorMakerReplicationFlowArgs{
    			Project:       aiven_project.Kafka - mm - project1.Project,
    			ServiceName:   aiven_service.Mm.Service_name,
    			SourceCluster: aiven_service.Source.Service_name,
    			TargetCluster: aiven_service.Target.Service_name,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Example coming soon!

    import * as pulumi from "@pulumi/pulumi";
    import * as aiven from "@pulumi/aiven";
    
    const f1 = aiven.getMirrorMakerReplicationFlow({
        project: aiven_project["kafka-mm-project1"].project,
        serviceName: aiven_service.mm.service_name,
        sourceCluster: aiven_service.source.service_name,
        targetCluster: aiven_service.target.service_name,
    });
    
    import pulumi
    import pulumi_aiven as aiven
    
    f1 = aiven.get_mirror_maker_replication_flow(project=aiven_project["kafka-mm-project1"]["project"],
        service_name=aiven_service["mm"]["service_name"],
        source_cluster=aiven_service["source"]["service_name"],
        target_cluster=aiven_service["target"]["service_name"])
    

    Example coming soon!

    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 dictionary

    The following arguments are supported:

    Project string
    Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
    ServiceName string
    Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
    SourceCluster string
    Source cluster alias. Maximum Length: 128.
    TargetCluster string
    Target cluster alias. Maximum Length: 128.
    Project string
    Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
    ServiceName string
    Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
    SourceCluster string
    Source cluster alias. Maximum Length: 128.
    TargetCluster string
    Target cluster alias. Maximum Length: 128.
    project String
    Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
    serviceName String
    Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
    sourceCluster String
    Source cluster alias. Maximum Length: 128.
    targetCluster String
    Target cluster alias. Maximum Length: 128.
    project string
    Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
    serviceName string
    Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
    sourceCluster string
    Source cluster alias. Maximum Length: 128.
    targetCluster string
    Target cluster alias. Maximum Length: 128.
    project str
    Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
    service_name str
    Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so 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
    Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
    serviceName String
    Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
    sourceCluster String
    Source cluster alias. Maximum Length: 128.
    targetCluster String
    Target cluster alias. Maximum Length: 128.

    getMirrorMakerReplicationFlow Result

    The following output properties are available:

    EmitHeartbeatsEnabled bool
    Emit heartbeats enabled. The default value is false.
    Enable bool
    Enable of disable replication flows for a service.
    Id string
    The provider-assigned unique ID for this managed resource.
    Project string
    Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
    ReplicationPolicyClass string
    Replication policy class. The possible values are org.apache.kafka.connect.mirror.DefaultReplicationPolicy and org.apache.kafka.connect.mirror.IdentityReplicationPolicy. The default value is org.apache.kafka.connect.mirror.DefaultReplicationPolicy.
    ServiceName string
    Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
    SourceCluster string
    Source cluster alias. Maximum Length: 128.
    SyncGroupOffsetsEnabled bool
    Sync consumer group offsets. The default value is false.
    SyncGroupOffsetsIntervalSeconds int
    Frequency of consumer group offset sync. The default value is 1.
    TargetCluster string
    Target cluster alias. Maximum Length: 128.
    Topics List<string>
    List of topics and/or regular expressions to replicate
    TopicsBlacklists List<string>
    List of topics and/or regular expressions to not replicate.
    EmitHeartbeatsEnabled bool
    Emit heartbeats enabled. The default value is false.
    Enable bool
    Enable of disable replication flows for a service.
    Id string
    The provider-assigned unique ID for this managed resource.
    Project string
    Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
    ReplicationPolicyClass string
    Replication policy class. The possible values are org.apache.kafka.connect.mirror.DefaultReplicationPolicy and org.apache.kafka.connect.mirror.IdentityReplicationPolicy. The default value is org.apache.kafka.connect.mirror.DefaultReplicationPolicy.
    ServiceName string
    Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
    SourceCluster string
    Source cluster alias. Maximum Length: 128.
    SyncGroupOffsetsEnabled bool
    Sync consumer group offsets. The default value is false.
    SyncGroupOffsetsIntervalSeconds int
    Frequency of consumer group offset sync. The default value is 1.
    TargetCluster string
    Target cluster alias. Maximum Length: 128.
    Topics []string
    List of topics and/or regular expressions to replicate
    TopicsBlacklists []string
    List of topics and/or regular expressions to not replicate.
    emitHeartbeatsEnabled Boolean
    Emit heartbeats enabled. The default value is false.
    enable Boolean
    Enable of disable replication flows for a service.
    id String
    The provider-assigned unique ID for this managed resource.
    project String
    Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
    replicationPolicyClass String
    Replication policy class. The possible values are org.apache.kafka.connect.mirror.DefaultReplicationPolicy and org.apache.kafka.connect.mirror.IdentityReplicationPolicy. The default value is org.apache.kafka.connect.mirror.DefaultReplicationPolicy.
    serviceName String
    Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
    sourceCluster String
    Source cluster alias. Maximum Length: 128.
    syncGroupOffsetsEnabled Boolean
    Sync consumer group offsets. The default value is false.
    syncGroupOffsetsIntervalSeconds Integer
    Frequency of consumer group offset sync. The default value is 1.
    targetCluster String
    Target cluster alias. Maximum Length: 128.
    topics List<String>
    List of topics and/or regular expressions to replicate
    topicsBlacklists List<String>
    List of topics and/or regular expressions to not replicate.
    emitHeartbeatsEnabled boolean
    Emit heartbeats enabled. The default value is false.
    enable boolean
    Enable of disable replication flows for a service.
    id string
    The provider-assigned unique ID for this managed resource.
    project string
    Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
    replicationPolicyClass string
    Replication policy class. The possible values are org.apache.kafka.connect.mirror.DefaultReplicationPolicy and org.apache.kafka.connect.mirror.IdentityReplicationPolicy. The default value is org.apache.kafka.connect.mirror.DefaultReplicationPolicy.
    serviceName string
    Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
    sourceCluster string
    Source cluster alias. Maximum Length: 128.
    syncGroupOffsetsEnabled boolean
    Sync consumer group offsets. The default value is false.
    syncGroupOffsetsIntervalSeconds number
    Frequency of consumer group offset sync. The default value is 1.
    targetCluster string
    Target cluster alias. Maximum Length: 128.
    topics string[]
    List of topics and/or regular expressions to replicate
    topicsBlacklists string[]
    List of topics and/or regular expressions to not replicate.
    emit_heartbeats_enabled bool
    Emit heartbeats enabled. The default value is false.
    enable bool
    Enable of disable replication flows for a service.
    id str
    The provider-assigned unique ID for this managed resource.
    project str
    Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
    replication_policy_class str
    Replication policy class. The possible values are org.apache.kafka.connect.mirror.DefaultReplicationPolicy and org.apache.kafka.connect.mirror.IdentityReplicationPolicy. The default value is org.apache.kafka.connect.mirror.DefaultReplicationPolicy.
    service_name str
    Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
    source_cluster str
    Source cluster alias. Maximum Length: 128.
    sync_group_offsets_enabled bool
    Sync consumer group offsets. The default value is false.
    sync_group_offsets_interval_seconds int
    Frequency of consumer group offset sync. The default value is 1.
    target_cluster str
    Target cluster alias. Maximum Length: 128.
    topics Sequence[str]
    List of topics and/or regular expressions to replicate
    topics_blacklists Sequence[str]
    List of topics and/or regular expressions to not replicate.
    emitHeartbeatsEnabled Boolean
    Emit heartbeats enabled. The default value is false.
    enable Boolean
    Enable of disable replication flows for a service.
    id String
    The provider-assigned unique ID for this managed resource.
    project String
    Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
    replicationPolicyClass String
    Replication policy class. The possible values are org.apache.kafka.connect.mirror.DefaultReplicationPolicy and org.apache.kafka.connect.mirror.IdentityReplicationPolicy. The default value is org.apache.kafka.connect.mirror.DefaultReplicationPolicy.
    serviceName String
    Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
    sourceCluster String
    Source cluster alias. Maximum Length: 128.
    syncGroupOffsetsEnabled Boolean
    Sync consumer group offsets. The default value is false.
    syncGroupOffsetsIntervalSeconds Number
    Frequency of consumer group offset sync. The default value is 1.
    targetCluster String
    Target cluster alias. Maximum Length: 128.
    topics List<String>
    List of topics and/or regular expressions to replicate
    topicsBlacklists List<String>
    List of topics and/or regular expressions to not replicate.

    Package Details

    Repository
    Aiven pulumi/pulumi-aiven
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aiven Terraform Provider.
    aiven logo
    Viewing docs for Aiven v4.5.2 (Older version)
    published on Monday, Mar 9, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.