aws logo
AWS Classic v5.41.0, May 15 23

aws.mskconnect.WorkerConfiguration

Explore with Pulumi AI

Provides an Amazon MSK Connect Worker Configuration Resource.

Example Usage

Basic configuration

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()
    {
        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/v5/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{
			PropertiesFileContent: pulumi.String("key.converter=org.apache.kafka.connect.storage.StringConverter\nvalue.converter=org.apache.kafka.connect.storage.StringConverter\n\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()        
            .propertiesFileContent("""
key.converter=org.apache.kafka.connect.storage.StringConverter
value.converter=org.apache.kafka.connect.storage.StringConverter

            """)
            .build());

    }
}
import pulumi
import pulumi_aws as aws

example = aws.mskconnect.WorkerConfiguration("example", properties_file_content="""key.converter=org.apache.kafka.connect.storage.StringConverter
value.converter=org.apache.kafka.connect.storage.StringConverter

""")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.mskconnect.WorkerConfiguration("example", {propertiesFileContent: `key.converter=org.apache.kafka.connect.storage.StringConverter
value.converter=org.apache.kafka.connect.storage.StringConverter

`});
resources:
  example:
    type: aws:mskconnect:WorkerConfiguration
    properties:
      propertiesFileContent: |+
        key.converter=org.apache.kafka.connect.storage.StringConverter
        value.converter=org.apache.kafka.connect.storage.StringConverter        

Create WorkerConfiguration Resource

new WorkerConfiguration(name: string, args: WorkerConfigurationArgs, opts?: CustomResourceOptions);
@overload
def WorkerConfiguration(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        description: Optional[str] = None,
                        name: Optional[str] = None,
                        properties_file_content: Optional[str] = None)
@overload
def WorkerConfiguration(resource_name: str,
                        args: WorkerConfigurationArgs,
                        opts: Optional[ResourceOptions] = None)
func NewWorkerConfiguration(ctx *Context, name string, args WorkerConfigurationArgs, opts ...ResourceOption) (*WorkerConfiguration, error)
public WorkerConfiguration(string name, WorkerConfigurationArgs args, CustomResourceOptions? opts = null)
public WorkerConfiguration(String name, WorkerConfigurationArgs args)
public WorkerConfiguration(String name, WorkerConfigurationArgs args, CustomResourceOptions options)
type: aws:mskconnect:WorkerConfiguration
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args WorkerConfigurationArgs
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 WorkerConfigurationArgs
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 WorkerConfigurationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args WorkerConfigurationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args WorkerConfigurationArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

WorkerConfiguration Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The WorkerConfiguration resource accepts the following input properties:

PropertiesFileContent string

Contents of connect-distributed.properties file. The value can be either base64 encoded or in raw format.

Description string

A summary description of the worker configuration.

Name string

The name of the worker configuration.

PropertiesFileContent string

Contents of connect-distributed.properties file. The value can be either base64 encoded or in raw format.

Description string

A summary description of the worker configuration.

Name string

The name of the worker configuration.

propertiesFileContent String

Contents of connect-distributed.properties file. The value can be either base64 encoded or in raw format.

description String

A summary description of the worker configuration.

name String

The name of the worker configuration.

propertiesFileContent string

Contents of connect-distributed.properties file. The value can be either base64 encoded or in raw format.

description string

A summary description of the worker configuration.

name string

The name of the worker configuration.

properties_file_content str

Contents of connect-distributed.properties file. The value can be either base64 encoded or in raw format.

description str

A summary description of the worker configuration.

name str

The name of the worker configuration.

propertiesFileContent String

Contents of connect-distributed.properties file. The value can be either base64 encoded or in raw format.

description String

A summary description of the worker configuration.

name String

The name of the worker configuration.

Outputs

All input properties are implicitly available as output properties. Additionally, the WorkerConfiguration resource produces the following output properties:

Arn string

the Amazon Resource Name (ARN) of the worker configuration.

Id string

The provider-assigned unique ID for this managed resource.

LatestRevision int

an ID of the latest successfully created revision of the worker configuration.

Arn string

the Amazon Resource Name (ARN) of the worker configuration.

Id string

The provider-assigned unique ID for this managed resource.

LatestRevision int

an ID of the latest successfully created revision of the worker configuration.

arn String

the Amazon Resource Name (ARN) of the worker configuration.

id String

The provider-assigned unique ID for this managed resource.

latestRevision Integer

an ID of the latest successfully created revision of the worker configuration.

arn string

the Amazon Resource Name (ARN) of the worker configuration.

id string

The provider-assigned unique ID for this managed resource.

latestRevision number

an ID of the latest successfully created revision of the worker configuration.

arn str

the Amazon Resource Name (ARN) of the worker configuration.

id str

The provider-assigned unique ID for this managed resource.

latest_revision int

an ID of the latest successfully created revision of the worker configuration.

arn String

the Amazon Resource Name (ARN) of the worker configuration.

id String

The provider-assigned unique ID for this managed resource.

latestRevision Number

an ID of the latest successfully created revision of the worker configuration.

Look up Existing WorkerConfiguration Resource

Get an existing WorkerConfiguration 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?: WorkerConfigurationState, opts?: CustomResourceOptions): WorkerConfiguration
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        arn: Optional[str] = None,
        description: Optional[str] = None,
        latest_revision: Optional[int] = None,
        name: Optional[str] = None,
        properties_file_content: Optional[str] = None) -> WorkerConfiguration
func GetWorkerConfiguration(ctx *Context, name string, id IDInput, state *WorkerConfigurationState, opts ...ResourceOption) (*WorkerConfiguration, error)
public static WorkerConfiguration Get(string name, Input<string> id, WorkerConfigurationState? state, CustomResourceOptions? opts = null)
public static WorkerConfiguration get(String name, Output<String> id, WorkerConfigurationState 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.
The following state arguments are supported:
Arn string

the Amazon Resource Name (ARN) of the worker configuration.

Description string

A summary description of the worker configuration.

LatestRevision int

an ID of the latest successfully created revision of the worker configuration.

Name string

The name of the worker configuration.

PropertiesFileContent string

Contents of connect-distributed.properties file. The value can be either base64 encoded or in raw format.

Arn string

the Amazon Resource Name (ARN) of the worker configuration.

Description string

A summary description of the worker configuration.

LatestRevision int

an ID of the latest successfully created revision of the worker configuration.

Name string

The name of the worker configuration.

PropertiesFileContent string

Contents of connect-distributed.properties file. The value can be either base64 encoded or in raw format.

arn String

the Amazon Resource Name (ARN) of the worker configuration.

description String

A summary description of the worker configuration.

latestRevision Integer

an ID of the latest successfully created revision of the worker configuration.

name String

The name of the worker configuration.

propertiesFileContent String

Contents of connect-distributed.properties file. The value can be either base64 encoded or in raw format.

arn string

the Amazon Resource Name (ARN) of the worker configuration.

description string

A summary description of the worker configuration.

latestRevision number

an ID of the latest successfully created revision of the worker configuration.

name string

The name of the worker configuration.

propertiesFileContent string

Contents of connect-distributed.properties file. The value can be either base64 encoded or in raw format.

arn str

the Amazon Resource Name (ARN) of the worker configuration.

description str

A summary description of the worker configuration.

latest_revision int

an ID of the latest successfully created revision of the worker configuration.

name str

The name of the worker configuration.

properties_file_content str

Contents of connect-distributed.properties file. The value can be either base64 encoded or in raw format.

arn String

the Amazon Resource Name (ARN) of the worker configuration.

description String

A summary description of the worker configuration.

latestRevision Number

an ID of the latest successfully created revision of the worker configuration.

name String

The name of the worker configuration.

propertiesFileContent String

Contents of connect-distributed.properties file. The value can be either base64 encoded or in raw format.

Import

MSK Connect Worker Configuration can be imported using the plugin’s arn, e.g.,

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

Package Details

Repository
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.