AWS v6.71.0 published on Friday, Mar 7, 2025 by Pulumi
aws.msk.getBootstrapBrokers
Explore with Pulumi AI
Get a list of brokers that a client application can use to bootstrap.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.msk.getBootstrapBrokers({
    clusterArn: exampleAwsMskCluster.arn,
});
import pulumi
import pulumi_aws as aws
example = aws.msk.get_bootstrap_brokers(cluster_arn=example_aws_msk_cluster["arn"])
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.GetBootstrapBrokers(ctx, &msk.GetBootstrapBrokersArgs{
			ClusterArn: exampleAwsMskCluster.Arn,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() => 
{
    var example = Aws.Msk.GetBootstrapBrokers.Invoke(new()
    {
        ClusterArn = exampleAwsMskCluster.Arn,
    });
});
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.GetBootstrapBrokersArgs;
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.getBootstrapBrokers(GetBootstrapBrokersArgs.builder()
            .clusterArn(exampleAwsMskCluster.arn())
            .build());
    }
}
variables:
  example:
    fn::invoke:
      function: aws:msk:getBootstrapBrokers
      arguments:
        clusterArn: ${exampleAwsMskCluster.arn}
Using getBootstrapBrokers
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 getBootstrapBrokers(args: GetBootstrapBrokersArgs, opts?: InvokeOptions): Promise<GetBootstrapBrokersResult>
function getBootstrapBrokersOutput(args: GetBootstrapBrokersOutputArgs, opts?: InvokeOptions): Output<GetBootstrapBrokersResult>def get_bootstrap_brokers(cluster_arn: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetBootstrapBrokersResult
def get_bootstrap_brokers_output(cluster_arn: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetBootstrapBrokersResult]func GetBootstrapBrokers(ctx *Context, args *GetBootstrapBrokersArgs, opts ...InvokeOption) (*GetBootstrapBrokersResult, error)
func GetBootstrapBrokersOutput(ctx *Context, args *GetBootstrapBrokersOutputArgs, opts ...InvokeOption) GetBootstrapBrokersResultOutput> Note: This function is named GetBootstrapBrokers in the Go SDK.
public static class GetBootstrapBrokers 
{
    public static Task<GetBootstrapBrokersResult> InvokeAsync(GetBootstrapBrokersArgs args, InvokeOptions? opts = null)
    public static Output<GetBootstrapBrokersResult> Invoke(GetBootstrapBrokersInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetBootstrapBrokersResult> getBootstrapBrokers(GetBootstrapBrokersArgs args, InvokeOptions options)
public static Output<GetBootstrapBrokersResult> getBootstrapBrokers(GetBootstrapBrokersArgs args, InvokeOptions options)
fn::invoke:
  function: aws:msk/getBootstrapBrokers:getBootstrapBrokers
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ClusterArn string
- ARN of the cluster the nodes belong to.
- ClusterArn string
- ARN of the cluster the nodes belong to.
- clusterArn String
- ARN of the cluster the nodes belong to.
- clusterArn string
- ARN of the cluster the nodes belong to.
- cluster_arn str
- ARN of the cluster the nodes belong to.
- clusterArn String
- ARN of the cluster the nodes belong to.
getBootstrapBrokers Result
The following output properties are available:
- BootstrapBrokers string
- Comma separated list of one or more hostname:port pairs of kafka brokers suitable to bootstrap connectivity to the kafka cluster.
- BootstrapBrokers stringPublic Sasl Iam 
- One or more DNS names (or IP addresses) and SASL IAM port pairs.
- BootstrapBrokers stringPublic Sasl Scram 
- One or more DNS names (or IP addresses) and SASL SCRAM port pairs.
- BootstrapBrokers stringPublic Tls 
- One or more DNS names (or IP addresses) and TLS port pairs.
- BootstrapBrokers stringSasl Iam 
- One or more DNS names (or IP addresses) and SASL IAM port pairs.
- BootstrapBrokers stringSasl Scram 
- One or more DNS names (or IP addresses) and SASL SCRAM port pairs.
- BootstrapBrokers stringTls 
- One or more DNS names (or IP addresses) and TLS port pairs.
- BootstrapBrokers stringVpc Connectivity Sasl Iam 
- A string containing one or more DNS names (or IP addresses) and SASL IAM port pairs for VPC connectivity.
- BootstrapBrokers stringVpc Connectivity Sasl Scram 
- A string containing one or more DNS names (or IP addresses) and SASL SCRAM port pairs for VPC connectivity.
- BootstrapBrokers stringVpc Connectivity Tls 
- A string containing one or more DNS names (or IP addresses) and TLS port pairs for VPC connectivity.
- ClusterArn string
- Id string
- The provider-assigned unique ID for this managed resource.
- BootstrapBrokers string
- Comma separated list of one or more hostname:port pairs of kafka brokers suitable to bootstrap connectivity to the kafka cluster.
- BootstrapBrokers stringPublic Sasl Iam 
- One or more DNS names (or IP addresses) and SASL IAM port pairs.
- BootstrapBrokers stringPublic Sasl Scram 
- One or more DNS names (or IP addresses) and SASL SCRAM port pairs.
- BootstrapBrokers stringPublic Tls 
- One or more DNS names (or IP addresses) and TLS port pairs.
- BootstrapBrokers stringSasl Iam 
- One or more DNS names (or IP addresses) and SASL IAM port pairs.
- BootstrapBrokers stringSasl Scram 
- One or more DNS names (or IP addresses) and SASL SCRAM port pairs.
- BootstrapBrokers stringTls 
- One or more DNS names (or IP addresses) and TLS port pairs.
- BootstrapBrokers stringVpc Connectivity Sasl Iam 
- A string containing one or more DNS names (or IP addresses) and SASL IAM port pairs for VPC connectivity.
- BootstrapBrokers stringVpc Connectivity Sasl Scram 
- A string containing one or more DNS names (or IP addresses) and SASL SCRAM port pairs for VPC connectivity.
- BootstrapBrokers stringVpc Connectivity Tls 
- A string containing one or more DNS names (or IP addresses) and TLS port pairs for VPC connectivity.
- ClusterArn string
- Id string
- The provider-assigned unique ID for this managed resource.
- bootstrapBrokers String
- Comma separated list of one or more hostname:port pairs of kafka brokers suitable to bootstrap connectivity to the kafka cluster.
- bootstrapBrokers StringPublic Sasl Iam 
- One or more DNS names (or IP addresses) and SASL IAM port pairs.
- bootstrapBrokers StringPublic Sasl Scram 
- One or more DNS names (or IP addresses) and SASL SCRAM port pairs.
- bootstrapBrokers StringPublic Tls 
- One or more DNS names (or IP addresses) and TLS port pairs.
- bootstrapBrokers StringSasl Iam 
- One or more DNS names (or IP addresses) and SASL IAM port pairs.
- bootstrapBrokers StringSasl Scram 
- One or more DNS names (or IP addresses) and SASL SCRAM port pairs.
- bootstrapBrokers StringTls 
- One or more DNS names (or IP addresses) and TLS port pairs.
- bootstrapBrokers StringVpc Connectivity Sasl Iam 
- A string containing one or more DNS names (or IP addresses) and SASL IAM port pairs for VPC connectivity.
- bootstrapBrokers StringVpc Connectivity Sasl Scram 
- A string containing one or more DNS names (or IP addresses) and SASL SCRAM port pairs for VPC connectivity.
- bootstrapBrokers StringVpc Connectivity Tls 
- A string containing one or more DNS names (or IP addresses) and TLS port pairs for VPC connectivity.
- clusterArn String
- id String
- The provider-assigned unique ID for this managed resource.
- bootstrapBrokers string
- Comma separated list of one or more hostname:port pairs of kafka brokers suitable to bootstrap connectivity to the kafka cluster.
- bootstrapBrokers stringPublic Sasl Iam 
- One or more DNS names (or IP addresses) and SASL IAM port pairs.
- bootstrapBrokers stringPublic Sasl Scram 
- One or more DNS names (or IP addresses) and SASL SCRAM port pairs.
- bootstrapBrokers stringPublic Tls 
- One or more DNS names (or IP addresses) and TLS port pairs.
- bootstrapBrokers stringSasl Iam 
- One or more DNS names (or IP addresses) and SASL IAM port pairs.
- bootstrapBrokers stringSasl Scram 
- One or more DNS names (or IP addresses) and SASL SCRAM port pairs.
- bootstrapBrokers stringTls 
- One or more DNS names (or IP addresses) and TLS port pairs.
- bootstrapBrokers stringVpc Connectivity Sasl Iam 
- A string containing one or more DNS names (or IP addresses) and SASL IAM port pairs for VPC connectivity.
- bootstrapBrokers stringVpc Connectivity Sasl Scram 
- A string containing one or more DNS names (or IP addresses) and SASL SCRAM port pairs for VPC connectivity.
- bootstrapBrokers stringVpc Connectivity Tls 
- A string containing one or more DNS names (or IP addresses) and TLS port pairs for VPC connectivity.
- clusterArn string
- id string
- The provider-assigned unique ID for this managed resource.
- bootstrap_brokers str
- Comma separated list of one or more hostname:port pairs of kafka brokers suitable to bootstrap connectivity to the kafka cluster.
- bootstrap_brokers_ strpublic_ sasl_ iam 
- One or more DNS names (or IP addresses) and SASL IAM port pairs.
- bootstrap_brokers_ strpublic_ sasl_ scram 
- One or more DNS names (or IP addresses) and SASL SCRAM port pairs.
- bootstrap_brokers_ strpublic_ tls 
- One or more DNS names (or IP addresses) and TLS port pairs.
- bootstrap_brokers_ strsasl_ iam 
- One or more DNS names (or IP addresses) and SASL IAM port pairs.
- bootstrap_brokers_ strsasl_ scram 
- One or more DNS names (or IP addresses) and SASL SCRAM port pairs.
- bootstrap_brokers_ strtls 
- One or more DNS names (or IP addresses) and TLS port pairs.
- bootstrap_brokers_ strvpc_ connectivity_ sasl_ iam 
- A string containing one or more DNS names (or IP addresses) and SASL IAM port pairs for VPC connectivity.
- bootstrap_brokers_ strvpc_ connectivity_ sasl_ scram 
- A string containing one or more DNS names (or IP addresses) and SASL SCRAM port pairs for VPC connectivity.
- bootstrap_brokers_ strvpc_ connectivity_ tls 
- A string containing one or more DNS names (or IP addresses) and TLS port pairs for VPC connectivity.
- cluster_arn str
- id str
- The provider-assigned unique ID for this managed resource.
- bootstrapBrokers String
- Comma separated list of one or more hostname:port pairs of kafka brokers suitable to bootstrap connectivity to the kafka cluster.
- bootstrapBrokers StringPublic Sasl Iam 
- One or more DNS names (or IP addresses) and SASL IAM port pairs.
- bootstrapBrokers StringPublic Sasl Scram 
- One or more DNS names (or IP addresses) and SASL SCRAM port pairs.
- bootstrapBrokers StringPublic Tls 
- One or more DNS names (or IP addresses) and TLS port pairs.
- bootstrapBrokers StringSasl Iam 
- One or more DNS names (or IP addresses) and SASL IAM port pairs.
- bootstrapBrokers StringSasl Scram 
- One or more DNS names (or IP addresses) and SASL SCRAM port pairs.
- bootstrapBrokers StringTls 
- One or more DNS names (or IP addresses) and TLS port pairs.
- bootstrapBrokers StringVpc Connectivity Sasl Iam 
- A string containing one or more DNS names (or IP addresses) and SASL IAM port pairs for VPC connectivity.
- bootstrapBrokers StringVpc Connectivity Sasl Scram 
- A string containing one or more DNS names (or IP addresses) and SASL SCRAM port pairs for VPC connectivity.
- bootstrapBrokers StringVpc Connectivity Tls 
- A string containing one or more DNS names (or IP addresses) and TLS port pairs for VPC connectivity.
- clusterArn String
- id String
- The provider-assigned unique ID for this managed resource.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the awsTerraform Provider.