aws logo
AWS Classic v5.41.0, May 15 23

aws.msk.getConfiguration

Explore with Pulumi AI

Get information on an Amazon MSK Configuration.

Example Usage

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var example = Aws.Msk.GetConfiguration.Invoke(new()
    {
        Name = "example",
    });

});
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/msk"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := msk.LookupConfiguration(ctx, &msk.LookupConfigurationArgs{
			Name: "example",
		}, nil)
		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.MskFunctions;
import com.pulumi.aws.msk.inputs.GetConfigurationArgs;
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) {
        final var example = MskFunctions.getConfiguration(GetConfigurationArgs.builder()
            .name("example")
            .build());

    }
}
import pulumi
import pulumi_aws as aws

example = aws.msk.get_configuration(name="example")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = aws.msk.getConfiguration({
    name: "example",
});
variables:
  example:
    fn::invoke:
      Function: aws:msk:getConfiguration
      Arguments:
        name: example

Using getConfiguration

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getConfiguration(args: GetConfigurationArgs, opts?: InvokeOptions): Promise<GetConfigurationResult>
function getConfigurationOutput(args: GetConfigurationOutputArgs, opts?: InvokeOptions): Output<GetConfigurationResult>
def get_configuration(name: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetConfigurationResult
def get_configuration_output(name: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetConfigurationResult]
func LookupConfiguration(ctx *Context, args *LookupConfigurationArgs, opts ...InvokeOption) (*LookupConfigurationResult, error)
func LookupConfigurationOutput(ctx *Context, args *LookupConfigurationOutputArgs, opts ...InvokeOption) LookupConfigurationResultOutput

> Note: This function is named LookupConfiguration in the Go SDK.

public static class GetConfiguration 
{
    public static Task<GetConfigurationResult> InvokeAsync(GetConfigurationArgs args, InvokeOptions? opts = null)
    public static Output<GetConfigurationResult> Invoke(GetConfigurationInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetConfigurationResult> getConfiguration(GetConfigurationArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: aws:msk/getConfiguration:getConfiguration
  arguments:
    # arguments dictionary

The following arguments are supported:

Name string

Name of the configuration.

Name string

Name of the configuration.

name String

Name of the configuration.

name string

Name of the configuration.

name str

Name of the configuration.

name String

Name of the configuration.

getConfiguration Result

The following output properties are available:

Arn string

ARN of the configuration.

Description string

Description of the configuration.

Id string

The provider-assigned unique ID for this managed resource.

KafkaVersions List<string>

List of Apache Kafka versions which can use this configuration.

LatestRevision int

Latest revision of the configuration.

Name string
ServerProperties string

Contents of the server.properties file.

Arn string

ARN of the configuration.

Description string

Description of the configuration.

Id string

The provider-assigned unique ID for this managed resource.

KafkaVersions []string

List of Apache Kafka versions which can use this configuration.

LatestRevision int

Latest revision of the configuration.

Name string
ServerProperties string

Contents of the server.properties file.

arn String

ARN of the configuration.

description String

Description of the configuration.

id String

The provider-assigned unique ID for this managed resource.

kafkaVersions List<String>

List of Apache Kafka versions which can use this configuration.

latestRevision Integer

Latest revision of the configuration.

name String
serverProperties String

Contents of the server.properties file.

arn string

ARN of the configuration.

description string

Description of the configuration.

id string

The provider-assigned unique ID for this managed resource.

kafkaVersions string[]

List of Apache Kafka versions which can use this configuration.

latestRevision number

Latest revision of the configuration.

name string
serverProperties string

Contents of the server.properties file.

arn str

ARN of the configuration.

description str

Description of the configuration.

id str

The provider-assigned unique ID for this managed resource.

kafka_versions Sequence[str]

List of Apache Kafka versions which can use this configuration.

latest_revision int

Latest revision of the configuration.

name str
server_properties str

Contents of the server.properties file.

arn String

ARN of the configuration.

description String

Description of the configuration.

id String

The provider-assigned unique ID for this managed resource.

kafkaVersions List<String>

List of Apache Kafka versions which can use this configuration.

latestRevision Number

Latest revision of the configuration.

name String
serverProperties String

Contents of the server.properties file.

Package Details

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

This Pulumi package is based on the aws Terraform Provider.