1. Packages
  2. AWS Classic
  3. API Docs
  4. msk
  5. getBootstrapBrokers

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.32.0 published on Friday, Apr 19, 2024 by Pulumi

aws.msk.getBootstrapBrokers

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.32.0 published on Friday, Apr 19, 2024 by Pulumi

    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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws:msk/getBootstrapBrokers:getBootstrapBrokers
      arguments:
        # arguments dictionary

    The 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.
    BootstrapBrokersPublicSaslIam string
    One or more DNS names (or IP addresses) and SASL IAM port pairs.
    BootstrapBrokersPublicSaslScram string
    One or more DNS names (or IP addresses) and SASL SCRAM port pairs.
    BootstrapBrokersPublicTls string
    One or more DNS names (or IP addresses) and TLS port pairs.
    BootstrapBrokersSaslIam string
    One or more DNS names (or IP addresses) and SASL IAM port pairs.
    BootstrapBrokersSaslScram string
    One or more DNS names (or IP addresses) and SASL SCRAM port pairs.
    BootstrapBrokersTls string
    One or more DNS names (or IP addresses) and TLS port pairs.
    BootstrapBrokersVpcConnectivitySaslIam string
    A string containing one or more DNS names (or IP addresses) and SASL IAM port pairs for VPC connectivity.
    BootstrapBrokersVpcConnectivitySaslScram string
    A string containing one or more DNS names (or IP addresses) and SASL SCRAM port pairs for VPC connectivity.
    BootstrapBrokersVpcConnectivityTls string
    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.
    BootstrapBrokersPublicSaslIam string
    One or more DNS names (or IP addresses) and SASL IAM port pairs.
    BootstrapBrokersPublicSaslScram string
    One or more DNS names (or IP addresses) and SASL SCRAM port pairs.
    BootstrapBrokersPublicTls string
    One or more DNS names (or IP addresses) and TLS port pairs.
    BootstrapBrokersSaslIam string
    One or more DNS names (or IP addresses) and SASL IAM port pairs.
    BootstrapBrokersSaslScram string
    One or more DNS names (or IP addresses) and SASL SCRAM port pairs.
    BootstrapBrokersTls string
    One or more DNS names (or IP addresses) and TLS port pairs.
    BootstrapBrokersVpcConnectivitySaslIam string
    A string containing one or more DNS names (or IP addresses) and SASL IAM port pairs for VPC connectivity.
    BootstrapBrokersVpcConnectivitySaslScram string
    A string containing one or more DNS names (or IP addresses) and SASL SCRAM port pairs for VPC connectivity.
    BootstrapBrokersVpcConnectivityTls string
    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.
    bootstrapBrokersPublicSaslIam String
    One or more DNS names (or IP addresses) and SASL IAM port pairs.
    bootstrapBrokersPublicSaslScram String
    One or more DNS names (or IP addresses) and SASL SCRAM port pairs.
    bootstrapBrokersPublicTls String
    One or more DNS names (or IP addresses) and TLS port pairs.
    bootstrapBrokersSaslIam String
    One or more DNS names (or IP addresses) and SASL IAM port pairs.
    bootstrapBrokersSaslScram String
    One or more DNS names (or IP addresses) and SASL SCRAM port pairs.
    bootstrapBrokersTls String
    One or more DNS names (or IP addresses) and TLS port pairs.
    bootstrapBrokersVpcConnectivitySaslIam String
    A string containing one or more DNS names (or IP addresses) and SASL IAM port pairs for VPC connectivity.
    bootstrapBrokersVpcConnectivitySaslScram String
    A string containing one or more DNS names (or IP addresses) and SASL SCRAM port pairs for VPC connectivity.
    bootstrapBrokersVpcConnectivityTls String
    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.
    bootstrapBrokersPublicSaslIam string
    One or more DNS names (or IP addresses) and SASL IAM port pairs.
    bootstrapBrokersPublicSaslScram string
    One or more DNS names (or IP addresses) and SASL SCRAM port pairs.
    bootstrapBrokersPublicTls string
    One or more DNS names (or IP addresses) and TLS port pairs.
    bootstrapBrokersSaslIam string
    One or more DNS names (or IP addresses) and SASL IAM port pairs.
    bootstrapBrokersSaslScram string
    One or more DNS names (or IP addresses) and SASL SCRAM port pairs.
    bootstrapBrokersTls string
    One or more DNS names (or IP addresses) and TLS port pairs.
    bootstrapBrokersVpcConnectivitySaslIam string
    A string containing one or more DNS names (or IP addresses) and SASL IAM port pairs for VPC connectivity.
    bootstrapBrokersVpcConnectivitySaslScram string
    A string containing one or more DNS names (or IP addresses) and SASL SCRAM port pairs for VPC connectivity.
    bootstrapBrokersVpcConnectivityTls string
    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_public_sasl_iam str
    One or more DNS names (or IP addresses) and SASL IAM port pairs.
    bootstrap_brokers_public_sasl_scram str
    One or more DNS names (or IP addresses) and SASL SCRAM port pairs.
    bootstrap_brokers_public_tls str
    One or more DNS names (or IP addresses) and TLS port pairs.
    bootstrap_brokers_sasl_iam str
    One or more DNS names (or IP addresses) and SASL IAM port pairs.
    bootstrap_brokers_sasl_scram str
    One or more DNS names (or IP addresses) and SASL SCRAM port pairs.
    bootstrap_brokers_tls str
    One or more DNS names (or IP addresses) and TLS port pairs.
    bootstrap_brokers_vpc_connectivity_sasl_iam str
    A string containing one or more DNS names (or IP addresses) and SASL IAM port pairs for VPC connectivity.
    bootstrap_brokers_vpc_connectivity_sasl_scram str
    A string containing one or more DNS names (or IP addresses) and SASL SCRAM port pairs for VPC connectivity.
    bootstrap_brokers_vpc_connectivity_tls str
    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.
    bootstrapBrokersPublicSaslIam String
    One or more DNS names (or IP addresses) and SASL IAM port pairs.
    bootstrapBrokersPublicSaslScram String
    One or more DNS names (or IP addresses) and SASL SCRAM port pairs.
    bootstrapBrokersPublicTls String
    One or more DNS names (or IP addresses) and TLS port pairs.
    bootstrapBrokersSaslIam String
    One or more DNS names (or IP addresses) and SASL IAM port pairs.
    bootstrapBrokersSaslScram String
    One or more DNS names (or IP addresses) and SASL SCRAM port pairs.
    bootstrapBrokersTls String
    One or more DNS names (or IP addresses) and TLS port pairs.
    bootstrapBrokersVpcConnectivitySaslIam String
    A string containing one or more DNS names (or IP addresses) and SASL IAM port pairs for VPC connectivity.
    bootstrapBrokersVpcConnectivitySaslScram String
    A string containing one or more DNS names (or IP addresses) and SASL SCRAM port pairs for VPC connectivity.
    bootstrapBrokersVpcConnectivityTls String
    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 aws Terraform Provider.
    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.32.0 published on Friday, Apr 19, 2024 by Pulumi