GetCluster
Get information on an Amazon MSK Cluster.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Aws.Msk.GetCluster.InvokeAsync(new Aws.Msk.GetClusterArgs
{
ClusterName = "example",
}));
}
}
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/msk"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := msk.LookupCluster(ctx, &msk.LookupClusterArgs{
ClusterName: "example",
}, nil)
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_aws as aws
example = aws.msk.get_cluster(cluster_name="example")import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = pulumi.output(aws.msk.getCluster({
clusterName: "example",
}, { async: true }));Using GetCluster
function getCluster(args: GetClusterArgs, opts?: InvokeOptions): Promise<GetClusterResult>function get_cluster(cluster_name=None, tags=None, opts=None)func LookupCluster(ctx *Context, args *LookupClusterArgs, opts ...InvokeOption) (*LookupClusterResult, error)Note: This function is named
LookupClusterin the Go SDK.
public static class GetCluster {
public static Task<GetClusterResult> InvokeAsync(GetClusterArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Cluster
Name string Name of the cluster.
- Dictionary<string, string>
Map of key-value pairs assigned to the cluster.
- Cluster
Name string Name of the cluster.
- map[string]string
Map of key-value pairs assigned to the cluster.
- cluster
Name string Name of the cluster.
- {[key: string]: string}
Map of key-value pairs assigned to the cluster.
- cluster_
name str Name of the cluster.
- Dict[str, str]
Map of key-value pairs assigned to the cluster.
GetCluster Result
The following output properties are available:
- Arn string
Amazon Resource Name (ARN) of the MSK cluster.
- Bootstrap
Brokers string A comma separated list of one or more hostname:port pairs of Kafka brokers suitable to boostrap connectivity to the Kafka cluster.
- Bootstrap
Brokers stringTls A comma separated list of one or more DNS names (or IPs) and TLS port pairs kafka brokers suitable to boostrap connectivity to the kafka cluster.
- Cluster
Name string - Id string
The provider-assigned unique ID for this managed resource.
- Kafka
Version string Apache Kafka version.
- Number
Of intBroker Nodes Number of broker nodes in the cluster.
- Dictionary<string, string>
Map of key-value pairs assigned to the cluster.
- Zookeeper
Connect stringString A comma separated list of one or more hostname:port pairs to use to connect to the Apache Zookeeper cluster.
- Arn string
Amazon Resource Name (ARN) of the MSK cluster.
- Bootstrap
Brokers string A comma separated list of one or more hostname:port pairs of Kafka brokers suitable to boostrap connectivity to the Kafka cluster.
- Bootstrap
Brokers stringTls A comma separated list of one or more DNS names (or IPs) and TLS port pairs kafka brokers suitable to boostrap connectivity to the kafka cluster.
- Cluster
Name string - Id string
The provider-assigned unique ID for this managed resource.
- Kafka
Version string Apache Kafka version.
- Number
Of intBroker Nodes Number of broker nodes in the cluster.
- map[string]string
Map of key-value pairs assigned to the cluster.
- Zookeeper
Connect stringString A comma separated list of one or more hostname:port pairs to use to connect to the Apache Zookeeper cluster.
- arn string
Amazon Resource Name (ARN) of the MSK cluster.
- bootstrap
Brokers string A comma separated list of one or more hostname:port pairs of Kafka brokers suitable to boostrap connectivity to the Kafka cluster.
- bootstrap
Brokers stringTls A comma separated list of one or more DNS names (or IPs) and TLS port pairs kafka brokers suitable to boostrap connectivity to the kafka cluster.
- cluster
Name string - id string
The provider-assigned unique ID for this managed resource.
- kafka
Version string Apache Kafka version.
- number
Of numberBroker Nodes Number of broker nodes in the cluster.
- {[key: string]: string}
Map of key-value pairs assigned to the cluster.
- zookeeper
Connect stringString A comma separated list of one or more hostname:port pairs to use to connect to the Apache Zookeeper cluster.
- arn str
Amazon Resource Name (ARN) of the MSK cluster.
- bootstrap_
brokers str A comma separated list of one or more hostname:port pairs of Kafka brokers suitable to boostrap connectivity to the Kafka cluster.
- bootstrap_
brokers_ strtls A comma separated list of one or more DNS names (or IPs) and TLS port pairs kafka brokers suitable to boostrap connectivity to the kafka cluster.
- cluster_
name str - id str
The provider-assigned unique ID for this managed resource.
- kafka_
version str Apache Kafka version.
- number_
of_ floatbroker_ nodes Number of broker nodes in the cluster.
- Dict[str, str]
Map of key-value pairs assigned to the cluster.
- zookeeper_
connect_ strstring A comma separated list of one or more hostname:port pairs to use to connect to the Apache Zookeeper cluster.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.