MirrorMakerReplicationFlow
# MirrorMaker 2 Replication Flow Resource
The MirrorMaker 2 Replication Flow resource allows the creation and management of MirrorMaker 2 Replication Flows on Aiven Cloud.
Example Usage
using Pulumi;
using Aiven = Pulumi.Aiven;
class MyStack : Stack
{
public MyStack()
{
var f1 = new Aiven.MirrorMakerReplicationFlow("f1", new Aiven.MirrorMakerReplicationFlowArgs
{
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,
Enable = true,
Topics =
{
".*",
},
TopicsBlacklists =
{
".*[\\-\\.]internal",
".*\\.replica",
"__.*",
},
});
}
}
package main
import (
"github.com/pulumi/pulumi-aiven/sdk/v3/go/aiven"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := aiven.NewMirrorMakerReplicationFlow(ctx, "f1", &aiven.MirrorMakerReplicationFlowArgs{
Project: pulumi.Any(aiven_project.Kafka - mm - project1.Project),
ServiceName: pulumi.Any(aiven_service.Mm.Service_name),
SourceCluster: pulumi.Any(aiven_service.Source.Service_name),
TargetCluster: pulumi.Any(aiven_service.Target.Service_name),
Enable: pulumi.Bool(true),
Topics: pulumi.StringArray{
pulumi.String(".*"),
},
TopicsBlacklists: pulumi.StringArray{
pulumi.String(".*[\\-\\.]internal"),
pulumi.String(".*\\.replica"),
pulumi.String("__.*"),
},
})
if err != nil {
return err
}
return nil
})
}
import pulumi
import pulumi_aiven as aiven
f1 = aiven.MirrorMakerReplicationFlow("f1",
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"],
enable=True,
topics=[".*"],
topics_blacklists=[
".*[\\-\\.]internal",
".*\\.replica",
"__.*",
])
import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";
const f1 = new aiven.MirrorMakerReplicationFlow("f1", {
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,
enable: true,
topics: [".*"],
topicsBlacklists: [
".*[\\-\\.]internal",
".*\\.replica",
"__.*",
],
});
Create a MirrorMakerReplicationFlow Resource
new MirrorMakerReplicationFlow(name: string, args: MirrorMakerReplicationFlowArgs, opts?: CustomResourceOptions);
def MirrorMakerReplicationFlow(resource_name: str, opts: Optional[ResourceOptions] = None, enable: Optional[bool] = None, project: Optional[str] = None, service_name: Optional[str] = None, source_cluster: Optional[str] = None, target_cluster: Optional[str] = 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)
- 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.
- opts ResourceOptions
- A bag of options that control this 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.
MirrorMakerReplicationFlow Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The MirrorMakerReplicationFlow resource accepts the following input properties:
- Enable bool
enable of disable replication flows for a MirrorMaker service
- Project string
and
service_name
- (Required) define the project and service the Kafka MirrorMaker Replication Flow belongs to. They should be defined using reference as shown above to set up dependencies correctly.- Service
Name string Service to link the kafka topic to
- Source
Cluster string is a source cluster alias.
- Target
Cluster string is a target cluster alias.
- Topics List<string>
is a list of topics and/or regular expressions to replicate.
- Topics
Blacklists List<string> is a list of topics and/or regular expressions to not replicate.
- Enable bool
enable of disable replication flows for a MirrorMaker service
- Project string
and
service_name
- (Required) define the project and service the Kafka MirrorMaker Replication Flow belongs to. They should be defined using reference as shown above to set up dependencies correctly.- Service
Name string Service to link the kafka topic to
- Source
Cluster string is a source cluster alias.
- Target
Cluster string is a target cluster alias.
- Topics []string
is a list of topics and/or regular expressions to replicate.
- Topics
Blacklists []string is a list of topics and/or regular expressions to not replicate.
- enable boolean
enable of disable replication flows for a MirrorMaker service
- project string
and
service_name
- (Required) define the project and service the Kafka MirrorMaker Replication Flow belongs to. They should be defined using reference as shown above to set up dependencies correctly.- service
Name string Service to link the kafka topic to
- source
Cluster string is a source cluster alias.
- target
Cluster string is a target cluster alias.
- topics string[]
is a list of topics and/or regular expressions to replicate.
- topics
Blacklists string[] is a list of topics and/or regular expressions to not replicate.
- enable bool
enable of disable replication flows for a MirrorMaker service
- project str
and
service_name
- (Required) define the project and service the Kafka MirrorMaker Replication Flow belongs to. They should be defined using reference as shown above to set up dependencies correctly.- service_
name str Service to link the kafka topic to
- source_
cluster str is a source cluster alias.
- target_
cluster str is a target cluster alias.
- topics Sequence[str]
is a list of topics and/or regular expressions to replicate.
- topics_
blacklists Sequence[str] is a 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 str
- The provider-assigned unique ID for this managed resource.
Look up an 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, enable: Optional[bool] = None, project: Optional[str] = None, service_name: Optional[str] = None, source_cluster: Optional[str] = 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)
- 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.
The following state arguments are supported:
- Enable bool
enable of disable replication flows for a MirrorMaker service
- Project string
and
service_name
- (Required) define the project and service the Kafka MirrorMaker Replication Flow belongs to. They should be defined using reference as shown above to set up dependencies correctly.- Service
Name string Service to link the kafka topic to
- Source
Cluster string is a source cluster alias.
- Target
Cluster string is a target cluster alias.
- Topics List<string>
is a list of topics and/or regular expressions to replicate.
- Topics
Blacklists List<string> is a list of topics and/or regular expressions to not replicate.
- Enable bool
enable of disable replication flows for a MirrorMaker service
- Project string
and
service_name
- (Required) define the project and service the Kafka MirrorMaker Replication Flow belongs to. They should be defined using reference as shown above to set up dependencies correctly.- Service
Name string Service to link the kafka topic to
- Source
Cluster string is a source cluster alias.
- Target
Cluster string is a target cluster alias.
- Topics []string
is a list of topics and/or regular expressions to replicate.
- Topics
Blacklists []string is a list of topics and/or regular expressions to not replicate.
- enable boolean
enable of disable replication flows for a MirrorMaker service
- project string
and
service_name
- (Required) define the project and service the Kafka MirrorMaker Replication Flow belongs to. They should be defined using reference as shown above to set up dependencies correctly.- service
Name string Service to link the kafka topic to
- source
Cluster string is a source cluster alias.
- target
Cluster string is a target cluster alias.
- topics string[]
is a list of topics and/or regular expressions to replicate.
- topics
Blacklists string[] is a list of topics and/or regular expressions to not replicate.
- enable bool
enable of disable replication flows for a MirrorMaker service
- project str
and
service_name
- (Required) define the project and service the Kafka MirrorMaker Replication Flow belongs to. They should be defined using reference as shown above to set up dependencies correctly.- service_
name str Service to link the kafka topic to
- source_
cluster str is a source cluster alias.
- target_
cluster str is a target cluster alias.
- topics Sequence[str]
is a list of topics and/or regular expressions to replicate.
- topics_
blacklists Sequence[str] is a list of topics and/or regular expressions to not replicate.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aiven
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aiven
Terraform Provider.