1. Packages
  2. AWS
  3. API Docs
  4. msk
  5. getConfiguration
AWS v6.77.0 published on Wednesday, Apr 9, 2025 by Pulumi

aws.msk.getConfiguration

Explore with Pulumi AI

AWS v6.77.0 published on Wednesday, Apr 9, 2025 by Pulumi

Get information on an Amazon MSK Configuration.

Example Usage

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

const example = aws.msk.getConfiguration({
    name: "example",
});
Copy
import pulumi
import pulumi_aws as aws

example = aws.msk.get_configuration(name="example")
Copy
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.LookupConfiguration(ctx, &msk.LookupConfigurationArgs{
			Name: "example",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: aws:msk:getConfiguration
      arguments:
        name: example
Copy

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>
Copy
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]
Copy
func LookupConfiguration(ctx *Context, args *LookupConfigurationArgs, opts ...InvokeOption) (*LookupConfigurationResult, error)
func LookupConfigurationOutput(ctx *Context, args *LookupConfigurationOutputArgs, opts ...InvokeOption) LookupConfigurationResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetConfigurationResult> getConfiguration(GetConfigurationArgs args, InvokeOptions options)
public static Output<GetConfigurationResult> getConfiguration(GetConfigurationArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aws:msk/getConfiguration:getConfiguration
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Name This property is required. string
Name of the configuration.
Name This property is required. string
Name of the configuration.
name This property is required. String
Name of the configuration.
name This property is required. string
Name of the configuration.
name This property is required. str
Name of the configuration.
name This property is required. 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.
AWS v6.77.0 published on Wednesday, Apr 9, 2025 by Pulumi