WorkerConfigurationArgs

data class WorkerConfigurationArgs(val description: Output<String>? = null, val name: Output<String>? = null, val propertiesFileContent: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<WorkerConfigurationArgs>

Provides an Amazon MSK Connect Worker Configuration Resource.

Example Usage

Basic configuration

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.mskconnect.WorkerConfiguration("example", {
name: "example",
propertiesFileContent: `key.converter=org.apache.kafka.connect.storage.StringConverter
value.converter=org.apache.kafka.connect.storage.StringConverter
`,
});
import pulumi
import pulumi_aws as aws
example = aws.mskconnect.WorkerConfiguration("example",
name="example",
properties_file_content="""key.converter=org.apache.kafka.connect.storage.StringConverter
value.converter=org.apache.kafka.connect.storage.StringConverter
""")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.MskConnect.WorkerConfiguration("example", new()
{
Name = "example",
PropertiesFileContent = @"key.converter=org.apache.kafka.connect.storage.StringConverter
value.converter=org.apache.kafka.connect.storage.StringConverter
",
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/mskconnect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := mskconnect.NewWorkerConfiguration(ctx, "example", &mskconnect.WorkerConfigurationArgs{
Name: pulumi.String("example"),
PropertiesFileContent: pulumi.String("key.converter=org.apache.kafka.connect.storage.StringConverter\nvalue.converter=org.apache.kafka.connect.storage.StringConverter\n"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.mskconnect.WorkerConfiguration;
import com.pulumi.aws.mskconnect.WorkerConfigurationArgs;
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 example = new WorkerConfiguration("example", WorkerConfigurationArgs.builder()
.name("example")
.propertiesFileContent("""
key.converter=org.apache.kafka.connect.storage.StringConverter
value.converter=org.apache.kafka.connect.storage.StringConverter
""")
.build());
}
}
resources:
example:
type: aws:mskconnect:WorkerConfiguration
properties:
name: example
propertiesFileContent: |
key.converter=org.apache.kafka.connect.storage.StringConverter
value.converter=org.apache.kafka.connect.storage.StringConverter

Import

Using pulumi import, import MSK Connect Worker Configuration using the plugin's arn. For example:

$ pulumi import aws:mskconnect/workerConfiguration:WorkerConfiguration example 'arn:aws:kafkaconnect:eu-central-1:123456789012:worker-configuration/example/8848493b-7fcc-478c-a646-4a52634e3378-4'

Constructors

Link copied to clipboard
constructor(description: Output<String>? = null, name: Output<String>? = null, propertiesFileContent: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val description: Output<String>? = null

A summary description of the worker configuration.

Link copied to clipboard
val name: Output<String>? = null

The name of the worker configuration.

Link copied to clipboard
val propertiesFileContent: Output<String>? = null

Contents of connect-distributed.properties file. The value can be either base64 encoded or in raw format. The following arguments are optional:

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Functions

Link copied to clipboard
open override fun toJava(): WorkerConfigurationArgs