aiven.MirrorMakerReplicationFlow
Explore with Pulumi AI
The MirrorMaker 2 Replication Flow resource allows the creation and management of MirrorMaker 2 Replication Flows on Aiven Cloud.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";
const f1 = new aiven.MirrorMakerReplicationFlow("f1", {
project: kafka_mm_project1.project,
serviceName: mm.serviceName,
sourceCluster: source.serviceName,
targetCluster: target.serviceName,
enable: true,
topics: [".*"],
topicsBlacklists: [
".*[\\-\\.]internal",
".*\\.replica",
"__.*",
],
configPropertiesExcludes: [
"follower\\.replication\\.throttled\\.replicas",
"leader\\.replication\\.throttled\\.replicas",
"message\\.timestamp\\.difference\\.max\\.ms",
"message\\.timestamp\\.type",
"unclean\\.leader\\.election\\.enable",
"min\\.insync\\.replicas",
],
});
import pulumi
import pulumi_aiven as aiven
f1 = aiven.MirrorMakerReplicationFlow("f1",
project=kafka_mm_project1["project"],
service_name=mm["serviceName"],
source_cluster=source["serviceName"],
target_cluster=target["serviceName"],
enable=True,
topics=[".*"],
topics_blacklists=[
".*[\\-\\.]internal",
".*\\.replica",
"__.*",
],
config_properties_excludes=[
"follower\\.replication\\.throttled\\.replicas",
"leader\\.replication\\.throttled\\.replicas",
"message\\.timestamp\\.difference\\.max\\.ms",
"message\\.timestamp\\.type",
"unclean\\.leader\\.election\\.enable",
"min\\.insync\\.replicas",
])
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.NewMirrorMakerReplicationFlow(ctx, "f1", &aiven.MirrorMakerReplicationFlowArgs{
Project: pulumi.Any(kafka_mm_project1.Project),
ServiceName: pulumi.Any(mm.ServiceName),
SourceCluster: pulumi.Any(source.ServiceName),
TargetCluster: pulumi.Any(target.ServiceName),
Enable: pulumi.Bool(true),
Topics: pulumi.StringArray{
pulumi.String(".*"),
},
TopicsBlacklists: pulumi.StringArray{
pulumi.String(".*[\\-\\.]internal"),
pulumi.String(".*\\.replica"),
pulumi.String("__.*"),
},
ConfigPropertiesExcludes: pulumi.StringArray{
pulumi.String("follower\\.replication\\.throttled\\.replicas"),
pulumi.String("leader\\.replication\\.throttled\\.replicas"),
pulumi.String("message\\.timestamp\\.difference\\.max\\.ms"),
pulumi.String("message\\.timestamp\\.type"),
pulumi.String("unclean\\.leader\\.election\\.enable"),
pulumi.String("min\\.insync\\.replicas"),
},
})
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 f1 = new Aiven.MirrorMakerReplicationFlow("f1", new()
{
Project = kafka_mm_project1.Project,
ServiceName = mm.ServiceName,
SourceCluster = source.ServiceName,
TargetCluster = target.ServiceName,
Enable = true,
Topics = new[]
{
".*",
},
TopicsBlacklists = new[]
{
".*[\\-\\.]internal",
".*\\.replica",
"__.*",
},
ConfigPropertiesExcludes = new[]
{
"follower\\.replication\\.throttled\\.replicas",
"leader\\.replication\\.throttled\\.replicas",
"message\\.timestamp\\.difference\\.max\\.ms",
"message\\.timestamp\\.type",
"unclean\\.leader\\.election\\.enable",
"min\\.insync\\.replicas",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aiven.MirrorMakerReplicationFlow;
import com.pulumi.aiven.MirrorMakerReplicationFlowArgs;
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) {
var f1 = new MirrorMakerReplicationFlow("f1", MirrorMakerReplicationFlowArgs.builder()
.project(kafka_mm_project1.project())
.serviceName(mm.serviceName())
.sourceCluster(source.serviceName())
.targetCluster(target.serviceName())
.enable(true)
.topics(".*")
.topicsBlacklists(
".*[\\-\\.]internal",
".*\\.replica",
"__.*")
.configPropertiesExcludes(
"follower\\.replication\\.throttled\\.replicas",
"leader\\.replication\\.throttled\\.replicas",
"message\\.timestamp\\.difference\\.max\\.ms",
"message\\.timestamp\\.type",
"unclean\\.leader\\.election\\.enable",
"min\\.insync\\.replicas")
.build());
}
}
resources:
f1:
type: aiven:MirrorMakerReplicationFlow
properties:
project: ${["kafka-mm-project1"].project}
serviceName: ${mm.serviceName}
sourceCluster: ${source.serviceName}
targetCluster: ${target.serviceName}
enable: true
topics:
- .*
topicsBlacklists:
- .*[\-\.]internal
- .*\.replica
- __.*
configPropertiesExcludes:
- follower\.replication\.throttled\.replicas
- leader\.replication\.throttled\.replicas
- message\.timestamp\.difference\.max\.ms
- message\.timestamp\.type
- unclean\.leader\.election\.enable
- min\.insync\.replicas
Create MirrorMakerReplicationFlow Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MirrorMakerReplicationFlow(name: string, args: MirrorMakerReplicationFlowArgs, opts?: CustomResourceOptions);
@overload
def MirrorMakerReplicationFlow(resource_name: str,
args: MirrorMakerReplicationFlowArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MirrorMakerReplicationFlow(resource_name: str,
opts: Optional[ResourceOptions] = None,
source_cluster: Optional[str] = None,
service_name: Optional[str] = None,
target_cluster: Optional[str] = None,
enable: Optional[bool] = None,
offset_syncs_topic_location: Optional[str] = None,
project: Optional[str] = None,
replication_policy_class: Optional[str] = None,
emit_backward_heartbeats_enabled: Optional[bool] = None,
replication_factor: Optional[int] = None,
config_properties_excludes: Optional[Sequence[str]] = None,
sync_group_offsets_enabled: Optional[bool] = None,
sync_group_offsets_interval_seconds: Optional[int] = None,
emit_heartbeats_enabled: Optional[bool] = None,
topics: Optional[Sequence[str]] = None,
topics_blacklists: Optional[Sequence[str]] = None)
func NewMirrorMakerReplicationFlow(ctx *Context, name string, args MirrorMakerReplicationFlowArgs, opts ...ResourceOption) (*MirrorMakerReplicationFlow, error)
public MirrorMakerReplicationFlow(string name, MirrorMakerReplicationFlowArgs args, CustomResourceOptions? opts = null)
public MirrorMakerReplicationFlow(String name, MirrorMakerReplicationFlowArgs args)
public MirrorMakerReplicationFlow(String name, MirrorMakerReplicationFlowArgs args, CustomResourceOptions options)
type: aiven:MirrorMakerReplicationFlow
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args MirrorMakerReplicationFlowArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args MirrorMakerReplicationFlowArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args MirrorMakerReplicationFlowArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MirrorMakerReplicationFlowArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MirrorMakerReplicationFlowArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var mirrorMakerReplicationFlowResource = new Aiven.MirrorMakerReplicationFlow("mirrorMakerReplicationFlowResource", new()
{
SourceCluster = "string",
ServiceName = "string",
TargetCluster = "string",
Enable = false,
OffsetSyncsTopicLocation = "string",
Project = "string",
ReplicationPolicyClass = "string",
EmitBackwardHeartbeatsEnabled = false,
ReplicationFactor = 0,
ConfigPropertiesExcludes = new[]
{
"string",
},
SyncGroupOffsetsEnabled = false,
SyncGroupOffsetsIntervalSeconds = 0,
EmitHeartbeatsEnabled = false,
Topics = new[]
{
"string",
},
TopicsBlacklists = new[]
{
"string",
},
});
example, err := aiven.NewMirrorMakerReplicationFlow(ctx, "mirrorMakerReplicationFlowResource", &aiven.MirrorMakerReplicationFlowArgs{
SourceCluster: pulumi.String("string"),
ServiceName: pulumi.String("string"),
TargetCluster: pulumi.String("string"),
Enable: pulumi.Bool(false),
OffsetSyncsTopicLocation: pulumi.String("string"),
Project: pulumi.String("string"),
ReplicationPolicyClass: pulumi.String("string"),
EmitBackwardHeartbeatsEnabled: pulumi.Bool(false),
ReplicationFactor: pulumi.Int(0),
ConfigPropertiesExcludes: pulumi.StringArray{
pulumi.String("string"),
},
SyncGroupOffsetsEnabled: pulumi.Bool(false),
SyncGroupOffsetsIntervalSeconds: pulumi.Int(0),
EmitHeartbeatsEnabled: pulumi.Bool(false),
Topics: pulumi.StringArray{
pulumi.String("string"),
},
TopicsBlacklists: pulumi.StringArray{
pulumi.String("string"),
},
})
var mirrorMakerReplicationFlowResource = new MirrorMakerReplicationFlow("mirrorMakerReplicationFlowResource", MirrorMakerReplicationFlowArgs.builder()
.sourceCluster("string")
.serviceName("string")
.targetCluster("string")
.enable(false)
.offsetSyncsTopicLocation("string")
.project("string")
.replicationPolicyClass("string")
.emitBackwardHeartbeatsEnabled(false)
.replicationFactor(0)
.configPropertiesExcludes("string")
.syncGroupOffsetsEnabled(false)
.syncGroupOffsetsIntervalSeconds(0)
.emitHeartbeatsEnabled(false)
.topics("string")
.topicsBlacklists("string")
.build());
mirror_maker_replication_flow_resource = aiven.MirrorMakerReplicationFlow("mirrorMakerReplicationFlowResource",
source_cluster="string",
service_name="string",
target_cluster="string",
enable=False,
offset_syncs_topic_location="string",
project="string",
replication_policy_class="string",
emit_backward_heartbeats_enabled=False,
replication_factor=0,
config_properties_excludes=["string"],
sync_group_offsets_enabled=False,
sync_group_offsets_interval_seconds=0,
emit_heartbeats_enabled=False,
topics=["string"],
topics_blacklists=["string"])
const mirrorMakerReplicationFlowResource = new aiven.MirrorMakerReplicationFlow("mirrorMakerReplicationFlowResource", {
sourceCluster: "string",
serviceName: "string",
targetCluster: "string",
enable: false,
offsetSyncsTopicLocation: "string",
project: "string",
replicationPolicyClass: "string",
emitBackwardHeartbeatsEnabled: false,
replicationFactor: 0,
configPropertiesExcludes: ["string"],
syncGroupOffsetsEnabled: false,
syncGroupOffsetsIntervalSeconds: 0,
emitHeartbeatsEnabled: false,
topics: ["string"],
topicsBlacklists: ["string"],
});
type: aiven:MirrorMakerReplicationFlow
properties:
configPropertiesExcludes:
- string
emitBackwardHeartbeatsEnabled: false
emitHeartbeatsEnabled: false
enable: false
offsetSyncsTopicLocation: string
project: string
replicationFactor: 0
replicationPolicyClass: string
serviceName: string
sourceCluster: string
syncGroupOffsetsEnabled: false
syncGroupOffsetsIntervalSeconds: 0
targetCluster: string
topics:
- string
topicsBlacklists:
- string
MirrorMakerReplicationFlow Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The MirrorMakerReplicationFlow resource accepts the following input properties:
- Enable bool
- Enable of disable replication flows for a service.
- Offset
Syncs stringTopic Location - Offset syncs topic location. The possible values are
source
andtarget
. - 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
Policy stringClass - Replication policy class. The possible values are
org.apache.kafka.connect.mirror.DefaultReplicationPolicy
andorg.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
. - Target
Cluster string - Target cluster alias. Maximum length:
128
. - Config
Properties List<string>Excludes - List of topic configuration properties and/or 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 - Whether to emit heartbeats to the direction opposite to the flow, i.e. to the source cluster. The default value is
false
. - Emit
Heartbeats boolEnabled - Whether to emit heartbeats to the target cluster. The default value is
false
. - Replication
Factor int - Replication factor,
>= 1
. - 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
. - Topics List<string>
- List of topics and/or regular expressions to replicate
- Topics
Blacklists List<string> - List of topics and/or regular expressions to not replicate.
- Enable bool
- Enable of disable replication flows for a service.
- Offset
Syncs stringTopic Location - Offset syncs topic location. The possible values are
source
andtarget
. - 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
Policy stringClass - Replication policy class. The possible values are
org.apache.kafka.connect.mirror.DefaultReplicationPolicy
andorg.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
. - Target
Cluster string - Target cluster alias. Maximum length:
128
. - Config
Properties []stringExcludes - List of topic configuration properties and/or 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 - Whether to emit heartbeats to the direction opposite to the flow, i.e. to the source cluster. The default value is
false
. - Emit
Heartbeats boolEnabled - Whether to emit heartbeats to the target cluster. The default value is
false
. - Replication
Factor int - Replication factor,
>= 1
. - 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
. - Topics []string
- List of topics and/or regular expressions to replicate
- Topics
Blacklists []string - List of topics and/or regular expressions to not replicate.
- enable Boolean
- Enable of disable replication flows for a service.
- offset
Syncs StringTopic Location - Offset syncs topic location. The possible values are
source
andtarget
. - 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
Policy StringClass - Replication policy class. The possible values are
org.apache.kafka.connect.mirror.DefaultReplicationPolicy
andorg.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
. - target
Cluster String - Target cluster alias. Maximum length:
128
. - config
Properties List<String>Excludes - List of topic configuration properties and/or 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 - Whether to emit heartbeats to the direction opposite to the flow, i.e. to the source cluster. The default value is
false
. - emit
Heartbeats BooleanEnabled - Whether to emit heartbeats to the target cluster. The default value is
false
. - replication
Factor Integer - Replication factor,
>= 1
. - 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
. - topics List<String>
- List of topics and/or regular expressions to replicate
- topics
Blacklists List<String> - List of topics and/or regular expressions to not replicate.
- enable boolean
- Enable of disable replication flows for a service.
- offset
Syncs stringTopic Location - Offset syncs topic location. The possible values are
source
andtarget
. - 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
Policy stringClass - Replication policy class. The possible values are
org.apache.kafka.connect.mirror.DefaultReplicationPolicy
andorg.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
. - target
Cluster string - Target cluster alias. Maximum length:
128
. - config
Properties string[]Excludes - List of topic configuration properties and/or 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 - Whether to emit heartbeats to the direction opposite to the flow, i.e. to the source cluster. The default value is
false
. - emit
Heartbeats booleanEnabled - Whether to emit heartbeats to the target cluster. The default value is
false
. - replication
Factor number - Replication factor,
>= 1
. - 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
. - topics string[]
- List of topics and/or regular expressions to replicate
- topics
Blacklists string[] - List of topics and/or regular expressions to not replicate.
- enable bool
- Enable of disable replication flows for a service.
- offset_
syncs_ strtopic_ location - Offset syncs topic location. The possible values are
source
andtarget
. - 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_
policy_ strclass - Replication policy class. The possible values are
org.apache.kafka.connect.mirror.DefaultReplicationPolicy
andorg.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
. - target_
cluster str - Target cluster alias. Maximum length:
128
. - config_
properties_ Sequence[str]excludes - List of topic configuration properties and/or 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 - Whether to emit heartbeats to the direction opposite to the flow, i.e. to the source cluster. The default value is
false
. - emit_
heartbeats_ boolenabled - Whether to emit heartbeats to the target cluster. The default value is
false
. - replication_
factor int - Replication factor,
>= 1
. - 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
. - 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.
- enable Boolean
- Enable of disable replication flows for a service.
- offset
Syncs StringTopic Location - Offset syncs topic location. The possible values are
source
andtarget
. - 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
Policy StringClass - Replication policy class. The possible values are
org.apache.kafka.connect.mirror.DefaultReplicationPolicy
andorg.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
. - target
Cluster String - Target cluster alias. Maximum length:
128
. - config
Properties List<String>Excludes - List of topic configuration properties and/or 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 - Whether to emit heartbeats to the direction opposite to the flow, i.e. to the source cluster. The default value is
false
. - emit
Heartbeats BooleanEnabled - Whether to emit heartbeats to the target cluster. The default value is
false
. - replication
Factor Number - Replication factor,
>= 1
. - 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
. - topics List<String>
- List of topics and/or regular expressions to replicate
- topics
Blacklists List<String> - List of topics and/or regular expressions to not replicate.
Outputs
All input properties are implicitly available as output properties. Additionally, the MirrorMakerReplicationFlow resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing MirrorMakerReplicationFlow Resource
Get an existing MirrorMakerReplicationFlow resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: MirrorMakerReplicationFlowState, opts?: CustomResourceOptions): MirrorMakerReplicationFlow
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
config_properties_excludes: Optional[Sequence[str]] = None,
emit_backward_heartbeats_enabled: Optional[bool] = None,
emit_heartbeats_enabled: Optional[bool] = None,
enable: Optional[bool] = None,
offset_syncs_topic_location: Optional[str] = None,
project: Optional[str] = None,
replication_factor: Optional[int] = None,
replication_policy_class: Optional[str] = None,
service_name: Optional[str] = None,
source_cluster: Optional[str] = None,
sync_group_offsets_enabled: Optional[bool] = None,
sync_group_offsets_interval_seconds: Optional[int] = None,
target_cluster: Optional[str] = None,
topics: Optional[Sequence[str]] = None,
topics_blacklists: Optional[Sequence[str]] = None) -> MirrorMakerReplicationFlow
func GetMirrorMakerReplicationFlow(ctx *Context, name string, id IDInput, state *MirrorMakerReplicationFlowState, opts ...ResourceOption) (*MirrorMakerReplicationFlow, error)
public static MirrorMakerReplicationFlow Get(string name, Input<string> id, MirrorMakerReplicationFlowState? state, CustomResourceOptions? opts = null)
public static MirrorMakerReplicationFlow get(String name, Output<String> id, MirrorMakerReplicationFlowState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Config
Properties List<string>Excludes - List of topic configuration properties and/or 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 - Whether to emit heartbeats to the direction opposite to the flow, i.e. to the source cluster. The default value is
false
. - Emit
Heartbeats boolEnabled - Whether to emit heartbeats to the target cluster. The default value is
false
. - Enable bool
- Enable of disable replication flows for a service.
- Offset
Syncs stringTopic Location - Offset syncs topic location. The possible values are
source
andtarget
. - 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.DefaultReplicationPolicy
andorg.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>
- List of topics and/or regular expressions to replicate
- Topics
Blacklists List<string> - List of topics and/or regular expressions to not replicate.
- Config
Properties []stringExcludes - List of topic configuration properties and/or 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 - Whether to emit heartbeats to the direction opposite to the flow, i.e. to the source cluster. The default value is
false
. - Emit
Heartbeats boolEnabled - Whether to emit heartbeats to the target cluster. The default value is
false
. - Enable bool
- Enable of disable replication flows for a service.
- Offset
Syncs stringTopic Location - Offset syncs topic location. The possible values are
source
andtarget
. - 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.DefaultReplicationPolicy
andorg.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
- List of topics and/or regular expressions to replicate
- Topics
Blacklists []string - List of topics and/or regular expressions to not replicate.
- config
Properties List<String>Excludes - List of topic configuration properties and/or 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 - Whether to emit heartbeats to the direction opposite to the flow, i.e. to the source cluster. The default value is
false
. - emit
Heartbeats BooleanEnabled - Whether to emit heartbeats to the target cluster. The default value is
false
. - enable Boolean
- Enable of disable replication flows for a service.
- offset
Syncs StringTopic Location - Offset syncs topic location. The possible values are
source
andtarget
. - 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.DefaultReplicationPolicy
andorg.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>
- List of topics and/or regular expressions to replicate
- topics
Blacklists List<String> - List of topics and/or regular expressions to not replicate.
- config
Properties string[]Excludes - List of topic configuration properties and/or 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 - Whether to emit heartbeats to the direction opposite to the flow, i.e. to the source cluster. The default value is
false
. - emit
Heartbeats booleanEnabled - Whether to emit heartbeats to the target cluster. The default value is
false
. - enable boolean
- Enable of disable replication flows for a service.
- offset
Syncs stringTopic Location - Offset syncs topic location. The possible values are
source
andtarget
. - 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.DefaultReplicationPolicy
andorg.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[]
- List of topics and/or regular expressions to replicate
- topics
Blacklists string[] - List of topics and/or regular expressions to not replicate.
- config_
properties_ Sequence[str]excludes - List of topic configuration properties and/or 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 - Whether to emit heartbeats to the direction opposite to the flow, i.e. to the source cluster. The default value is
false
. - emit_
heartbeats_ boolenabled - Whether to emit heartbeats to the target cluster. The default value is
false
. - enable bool
- Enable of disable replication flows for a service.
- offset_
syncs_ strtopic_ location - Offset syncs topic location. The possible values are
source
andtarget
. - 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.DefaultReplicationPolicy
andorg.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]
- List of topics and/or regular expressions to replicate
- topics_
blacklists Sequence[str] - List of topics and/or regular expressions to not replicate.
- config
Properties List<String>Excludes - List of topic configuration properties and/or 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 - Whether to emit heartbeats to the direction opposite to the flow, i.e. to the source cluster. The default value is
false
. - emit
Heartbeats BooleanEnabled - Whether to emit heartbeats to the target cluster. The default value is
false
. - enable Boolean
- Enable of disable replication flows for a service.
- offset
Syncs StringTopic Location - Offset syncs topic location. The possible values are
source
andtarget
. - 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.DefaultReplicationPolicy
andorg.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>
- List of topics and/or regular expressions to replicate
- topics
Blacklists List<String> - List of topics and/or regular expressions to not replicate.
Import
$ pulumi import aiven:index/mirrorMakerReplicationFlow:MirrorMakerReplicationFlow f1 project/service_name/source_cluster/target_cluster
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Aiven pulumi/pulumi-aiven
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aiven
Terraform Provider.