Configuration

class Configuration : KotlinCustomResource

Manages an Amazon Managed Streaming for Kafka configuration. More information can be found on the MSK Developer Guide.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.msk.Configuration("example", {
kafkaVersions: ["2.1.0"],
name: "example",
serverProperties: `auto.create.topics.enable = true
delete.topic.enable = true
`,
});
import pulumi
import pulumi_aws as aws
example = aws.msk.Configuration("example",
kafka_versions=["2.1.0"],
name="example",
server_properties="""auto.create.topics.enable = true
delete.topic.enable = true
""")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.Msk.Configuration("example", new()
{
KafkaVersions = new[]
{
"2.1.0",
},
Name = "example",
ServerProperties = @"auto.create.topics.enable = true
delete.topic.enable = true
",
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/msk"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := msk.NewConfiguration(ctx, "example", &msk.ConfigurationArgs{
KafkaVersions: pulumi.StringArray{
pulumi.String("2.1.0"),
},
Name: pulumi.String("example"),
ServerProperties: pulumi.String("auto.create.topics.enable = true\ndelete.topic.enable = true\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.msk.Configuration;
import com.pulumi.aws.msk.ConfigurationArgs;
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 Configuration("example", ConfigurationArgs.builder()
.kafkaVersions("2.1.0")
.name("example")
.serverProperties("""
auto.create.topics.enable = true
delete.topic.enable = true
""")
.build());
}
}
resources:
example:
type: aws:msk:Configuration
properties:
kafkaVersions:
- 2.1.0
name: example
serverProperties: |
auto.create.topics.enable = true
delete.topic.enable = true

Import

Using pulumi import, import MSK configurations using the configuration ARN. For example:

$ pulumi import aws:msk/configuration:Configuration example arn:aws:kafka:us-west-2:123456789012:configuration/example/279c0212-d057-4dba-9aa9-1c4e5a25bfc7-3

Properties

Link copied to clipboard
val arn: Output<String>

Amazon Resource Name (ARN) of the configuration.

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

Description of the configuration.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val kafkaVersions: Output<List<String>>?

List of Apache Kafka versions which can use this configuration.

Link copied to clipboard
val latestRevision: Output<Int>

Latest revision of the configuration.

Link copied to clipboard
val name: Output<String>

Name of the configuration.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Contents of the server.properties file. Supported properties are documented in the MSK Developer Guide.

Link copied to clipboard
val urn: Output<String>