
com.pulumi.aws.msk.outputs.GetClusterResult Maven / Gradle / Ivy
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.aws.msk.outputs;
import com.pulumi.aws.msk.outputs.GetClusterBrokerNodeGroupInfo;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
@CustomType
public final class GetClusterResult {
/**
* @return ARN of the MSK cluster.
*
*/
private String arn;
/**
* @return Comma separated list of one or more hostname:port pairs of kafka brokers suitable to bootstrap connectivity to the kafka cluster. Contains a value if `encryption_info.0.encryption_in_transit.0.client_broker` is set to `PLAINTEXT` or `TLS_PLAINTEXT`. The resource sorts values alphabetically. AWS may not always return all endpoints so this value is not guaranteed to be stable across applies.
*
*/
private String bootstrapBrokers;
/**
* @return One or more DNS names (or IP addresses) and SASL IAM port pairs. For example, `b-1-public.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9198,b-2-public.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9198,b-3-public.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9198`. This attribute will have a value if `encryption_info.0.encryption_in_transit.0.client_broker` is set to `TLS_PLAINTEXT` or `TLS` and `client_authentication.0.sasl.0.iam` is set to `true` and `broker_node_group_info.0.connectivity_info.0.public_access.0.type` is set to `SERVICE_PROVIDED_EIPS` and the cluster fulfill all other requirements for public access. The resource sorts the list alphabetically. AWS may not always return all endpoints so the values may not be stable across applies.
*
*/
private String bootstrapBrokersPublicSaslIam;
/**
* @return One or more DNS names (or IP addresses) and SASL SCRAM port pairs. For example, `b-1-public.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9196,b-2-public.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9196,b-3-public.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9196`. This attribute will have a value if `encryption_info.0.encryption_in_transit.0.client_broker` is set to `TLS_PLAINTEXT` or `TLS` and `client_authentication.0.sasl.0.scram` is set to `true` and `broker_node_group_info.0.connectivity_info.0.public_access.0.type` is set to `SERVICE_PROVIDED_EIPS` and the cluster fulfill all other requirements for public access. The resource sorts the list alphabetically. AWS may not always return all endpoints so the values may not be stable across applies.
*
*/
private String bootstrapBrokersPublicSaslScram;
/**
* @return One or more DNS names (or IP addresses) and TLS port pairs. For example, `b-1-public.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9194,b-2-public.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9194,b-3-public.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9194`. This attribute will have a value if `encryption_info.0.encryption_in_transit.0.client_broker` is set to `TLS_PLAINTEXT` or `TLS` and `broker_node_group_info.0.connectivity_info.0.public_access.0.type` is set to `SERVICE_PROVIDED_EIPS` and the cluster fulfill all other requirements for public access. The resource sorts the list alphabetically. AWS may not always return all endpoints so the values may not be stable across applies.
*
*/
private String bootstrapBrokersPublicTls;
/**
* @return One or more DNS names (or IP addresses) and SASL IAM port pairs. For example, `b-1.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9098,b-2.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9098,b-3.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9098`. This attribute will have a value if `encryption_info.0.encryption_in_transit.0.client_broker` is set to `TLS_PLAINTEXT` or `TLS` and `client_authentication.0.sasl.0.iam` is set to `true`. The resource sorts the list alphabetically. AWS may not always return all endpoints so the values may not be stable across applies.
*
*/
private String bootstrapBrokersSaslIam;
/**
* @return One or more DNS names (or IP addresses) and SASL SCRAM port pairs. For example, `b-1.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9096,b-2.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9096,b-3.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9096`. This attribute will have a value if `encryption_info.0.encryption_in_transit.0.client_broker` is set to `TLS_PLAINTEXT` or `TLS` and `client_authentication.0.sasl.0.scram` is set to `true`. The resource sorts the list alphabetically. AWS may not always return all endpoints so the values may not be stable across applies.
*
*/
private String bootstrapBrokersSaslScram;
/**
* @return One or more DNS names (or IP addresses) and TLS port pairs. For example, `b-1.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9094,b-2.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9094,b-3.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9094`. This attribute will have a value if `encryption_info.0.encryption_in_transit.0.client_broker` is set to `TLS_PLAINTEXT` or `TLS`. The resource sorts the list alphabetically. AWS may not always return all endpoints so the values may not be stable across applies.
*
*/
private String bootstrapBrokersTls;
/**
* @return Configuration block for the broker nodes of the Kafka cluster.
*
*/
private List brokerNodeGroupInfos;
private String clusterName;
/**
* @return UUID of the MSK cluster, for use in IAM policies.
*
*/
private String clusterUuid;
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
/**
* @return Apache Kafka version.
*
*/
private String kafkaVersion;
/**
* @return Number of broker nodes in the cluster.
*
*/
private Integer numberOfBrokerNodes;
/**
* @return Map of key-value pairs assigned to the cluster.
*
*/
private Map tags;
/**
* @return A comma separated list of one or more hostname:port pairs to use to connect to the Apache Zookeeper cluster. The returned values are sorted alphbetically. The AWS API may not return all endpoints, so this value is not guaranteed to be stable across applies.
*
*/
private String zookeeperConnectString;
/**
* @return A comma separated list of one or more hostname:port pairs to use to connect to the Apache Zookeeper cluster via TLS. The returned values are sorted alphabetically. The AWS API may not return all endpoints, so this value is not guaranteed to be stable across applies.
*
*/
private String zookeeperConnectStringTls;
private GetClusterResult() {}
/**
* @return ARN of the MSK cluster.
*
*/
public String arn() {
return this.arn;
}
/**
* @return Comma separated list of one or more hostname:port pairs of kafka brokers suitable to bootstrap connectivity to the kafka cluster. Contains a value if `encryption_info.0.encryption_in_transit.0.client_broker` is set to `PLAINTEXT` or `TLS_PLAINTEXT`. The resource sorts values alphabetically. AWS may not always return all endpoints so this value is not guaranteed to be stable across applies.
*
*/
public String bootstrapBrokers() {
return this.bootstrapBrokers;
}
/**
* @return One or more DNS names (or IP addresses) and SASL IAM port pairs. For example, `b-1-public.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9198,b-2-public.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9198,b-3-public.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9198`. This attribute will have a value if `encryption_info.0.encryption_in_transit.0.client_broker` is set to `TLS_PLAINTEXT` or `TLS` and `client_authentication.0.sasl.0.iam` is set to `true` and `broker_node_group_info.0.connectivity_info.0.public_access.0.type` is set to `SERVICE_PROVIDED_EIPS` and the cluster fulfill all other requirements for public access. The resource sorts the list alphabetically. AWS may not always return all endpoints so the values may not be stable across applies.
*
*/
public String bootstrapBrokersPublicSaslIam() {
return this.bootstrapBrokersPublicSaslIam;
}
/**
* @return One or more DNS names (or IP addresses) and SASL SCRAM port pairs. For example, `b-1-public.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9196,b-2-public.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9196,b-3-public.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9196`. This attribute will have a value if `encryption_info.0.encryption_in_transit.0.client_broker` is set to `TLS_PLAINTEXT` or `TLS` and `client_authentication.0.sasl.0.scram` is set to `true` and `broker_node_group_info.0.connectivity_info.0.public_access.0.type` is set to `SERVICE_PROVIDED_EIPS` and the cluster fulfill all other requirements for public access. The resource sorts the list alphabetically. AWS may not always return all endpoints so the values may not be stable across applies.
*
*/
public String bootstrapBrokersPublicSaslScram() {
return this.bootstrapBrokersPublicSaslScram;
}
/**
* @return One or more DNS names (or IP addresses) and TLS port pairs. For example, `b-1-public.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9194,b-2-public.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9194,b-3-public.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9194`. This attribute will have a value if `encryption_info.0.encryption_in_transit.0.client_broker` is set to `TLS_PLAINTEXT` or `TLS` and `broker_node_group_info.0.connectivity_info.0.public_access.0.type` is set to `SERVICE_PROVIDED_EIPS` and the cluster fulfill all other requirements for public access. The resource sorts the list alphabetically. AWS may not always return all endpoints so the values may not be stable across applies.
*
*/
public String bootstrapBrokersPublicTls() {
return this.bootstrapBrokersPublicTls;
}
/**
* @return One or more DNS names (or IP addresses) and SASL IAM port pairs. For example, `b-1.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9098,b-2.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9098,b-3.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9098`. This attribute will have a value if `encryption_info.0.encryption_in_transit.0.client_broker` is set to `TLS_PLAINTEXT` or `TLS` and `client_authentication.0.sasl.0.iam` is set to `true`. The resource sorts the list alphabetically. AWS may not always return all endpoints so the values may not be stable across applies.
*
*/
public String bootstrapBrokersSaslIam() {
return this.bootstrapBrokersSaslIam;
}
/**
* @return One or more DNS names (or IP addresses) and SASL SCRAM port pairs. For example, `b-1.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9096,b-2.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9096,b-3.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9096`. This attribute will have a value if `encryption_info.0.encryption_in_transit.0.client_broker` is set to `TLS_PLAINTEXT` or `TLS` and `client_authentication.0.sasl.0.scram` is set to `true`. The resource sorts the list alphabetically. AWS may not always return all endpoints so the values may not be stable across applies.
*
*/
public String bootstrapBrokersSaslScram() {
return this.bootstrapBrokersSaslScram;
}
/**
* @return One or more DNS names (or IP addresses) and TLS port pairs. For example, `b-1.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9094,b-2.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9094,b-3.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9094`. This attribute will have a value if `encryption_info.0.encryption_in_transit.0.client_broker` is set to `TLS_PLAINTEXT` or `TLS`. The resource sorts the list alphabetically. AWS may not always return all endpoints so the values may not be stable across applies.
*
*/
public String bootstrapBrokersTls() {
return this.bootstrapBrokersTls;
}
/**
* @return Configuration block for the broker nodes of the Kafka cluster.
*
*/
public List brokerNodeGroupInfos() {
return this.brokerNodeGroupInfos;
}
public String clusterName() {
return this.clusterName;
}
/**
* @return UUID of the MSK cluster, for use in IAM policies.
*
*/
public String clusterUuid() {
return this.clusterUuid;
}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
/**
* @return Apache Kafka version.
*
*/
public String kafkaVersion() {
return this.kafkaVersion;
}
/**
* @return Number of broker nodes in the cluster.
*
*/
public Integer numberOfBrokerNodes() {
return this.numberOfBrokerNodes;
}
/**
* @return Map of key-value pairs assigned to the cluster.
*
*/
public Map tags() {
return this.tags;
}
/**
* @return A comma separated list of one or more hostname:port pairs to use to connect to the Apache Zookeeper cluster. The returned values are sorted alphbetically. The AWS API may not return all endpoints, so this value is not guaranteed to be stable across applies.
*
*/
public String zookeeperConnectString() {
return this.zookeeperConnectString;
}
/**
* @return A comma separated list of one or more hostname:port pairs to use to connect to the Apache Zookeeper cluster via TLS. The returned values are sorted alphabetically. The AWS API may not return all endpoints, so this value is not guaranteed to be stable across applies.
*
*/
public String zookeeperConnectStringTls() {
return this.zookeeperConnectStringTls;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetClusterResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String arn;
private String bootstrapBrokers;
private String bootstrapBrokersPublicSaslIam;
private String bootstrapBrokersPublicSaslScram;
private String bootstrapBrokersPublicTls;
private String bootstrapBrokersSaslIam;
private String bootstrapBrokersSaslScram;
private String bootstrapBrokersTls;
private List brokerNodeGroupInfos;
private String clusterName;
private String clusterUuid;
private String id;
private String kafkaVersion;
private Integer numberOfBrokerNodes;
private Map tags;
private String zookeeperConnectString;
private String zookeeperConnectStringTls;
public Builder() {}
public Builder(GetClusterResult defaults) {
Objects.requireNonNull(defaults);
this.arn = defaults.arn;
this.bootstrapBrokers = defaults.bootstrapBrokers;
this.bootstrapBrokersPublicSaslIam = defaults.bootstrapBrokersPublicSaslIam;
this.bootstrapBrokersPublicSaslScram = defaults.bootstrapBrokersPublicSaslScram;
this.bootstrapBrokersPublicTls = defaults.bootstrapBrokersPublicTls;
this.bootstrapBrokersSaslIam = defaults.bootstrapBrokersSaslIam;
this.bootstrapBrokersSaslScram = defaults.bootstrapBrokersSaslScram;
this.bootstrapBrokersTls = defaults.bootstrapBrokersTls;
this.brokerNodeGroupInfos = defaults.brokerNodeGroupInfos;
this.clusterName = defaults.clusterName;
this.clusterUuid = defaults.clusterUuid;
this.id = defaults.id;
this.kafkaVersion = defaults.kafkaVersion;
this.numberOfBrokerNodes = defaults.numberOfBrokerNodes;
this.tags = defaults.tags;
this.zookeeperConnectString = defaults.zookeeperConnectString;
this.zookeeperConnectStringTls = defaults.zookeeperConnectStringTls;
}
@CustomType.Setter
public Builder arn(String arn) {
if (arn == null) {
throw new MissingRequiredPropertyException("GetClusterResult", "arn");
}
this.arn = arn;
return this;
}
@CustomType.Setter
public Builder bootstrapBrokers(String bootstrapBrokers) {
if (bootstrapBrokers == null) {
throw new MissingRequiredPropertyException("GetClusterResult", "bootstrapBrokers");
}
this.bootstrapBrokers = bootstrapBrokers;
return this;
}
@CustomType.Setter
public Builder bootstrapBrokersPublicSaslIam(String bootstrapBrokersPublicSaslIam) {
if (bootstrapBrokersPublicSaslIam == null) {
throw new MissingRequiredPropertyException("GetClusterResult", "bootstrapBrokersPublicSaslIam");
}
this.bootstrapBrokersPublicSaslIam = bootstrapBrokersPublicSaslIam;
return this;
}
@CustomType.Setter
public Builder bootstrapBrokersPublicSaslScram(String bootstrapBrokersPublicSaslScram) {
if (bootstrapBrokersPublicSaslScram == null) {
throw new MissingRequiredPropertyException("GetClusterResult", "bootstrapBrokersPublicSaslScram");
}
this.bootstrapBrokersPublicSaslScram = bootstrapBrokersPublicSaslScram;
return this;
}
@CustomType.Setter
public Builder bootstrapBrokersPublicTls(String bootstrapBrokersPublicTls) {
if (bootstrapBrokersPublicTls == null) {
throw new MissingRequiredPropertyException("GetClusterResult", "bootstrapBrokersPublicTls");
}
this.bootstrapBrokersPublicTls = bootstrapBrokersPublicTls;
return this;
}
@CustomType.Setter
public Builder bootstrapBrokersSaslIam(String bootstrapBrokersSaslIam) {
if (bootstrapBrokersSaslIam == null) {
throw new MissingRequiredPropertyException("GetClusterResult", "bootstrapBrokersSaslIam");
}
this.bootstrapBrokersSaslIam = bootstrapBrokersSaslIam;
return this;
}
@CustomType.Setter
public Builder bootstrapBrokersSaslScram(String bootstrapBrokersSaslScram) {
if (bootstrapBrokersSaslScram == null) {
throw new MissingRequiredPropertyException("GetClusterResult", "bootstrapBrokersSaslScram");
}
this.bootstrapBrokersSaslScram = bootstrapBrokersSaslScram;
return this;
}
@CustomType.Setter
public Builder bootstrapBrokersTls(String bootstrapBrokersTls) {
if (bootstrapBrokersTls == null) {
throw new MissingRequiredPropertyException("GetClusterResult", "bootstrapBrokersTls");
}
this.bootstrapBrokersTls = bootstrapBrokersTls;
return this;
}
@CustomType.Setter
public Builder brokerNodeGroupInfos(List brokerNodeGroupInfos) {
if (brokerNodeGroupInfos == null) {
throw new MissingRequiredPropertyException("GetClusterResult", "brokerNodeGroupInfos");
}
this.brokerNodeGroupInfos = brokerNodeGroupInfos;
return this;
}
public Builder brokerNodeGroupInfos(GetClusterBrokerNodeGroupInfo... brokerNodeGroupInfos) {
return brokerNodeGroupInfos(List.of(brokerNodeGroupInfos));
}
@CustomType.Setter
public Builder clusterName(String clusterName) {
if (clusterName == null) {
throw new MissingRequiredPropertyException("GetClusterResult", "clusterName");
}
this.clusterName = clusterName;
return this;
}
@CustomType.Setter
public Builder clusterUuid(String clusterUuid) {
if (clusterUuid == null) {
throw new MissingRequiredPropertyException("GetClusterResult", "clusterUuid");
}
this.clusterUuid = clusterUuid;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetClusterResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder kafkaVersion(String kafkaVersion) {
if (kafkaVersion == null) {
throw new MissingRequiredPropertyException("GetClusterResult", "kafkaVersion");
}
this.kafkaVersion = kafkaVersion;
return this;
}
@CustomType.Setter
public Builder numberOfBrokerNodes(Integer numberOfBrokerNodes) {
if (numberOfBrokerNodes == null) {
throw new MissingRequiredPropertyException("GetClusterResult", "numberOfBrokerNodes");
}
this.numberOfBrokerNodes = numberOfBrokerNodes;
return this;
}
@CustomType.Setter
public Builder tags(Map tags) {
if (tags == null) {
throw new MissingRequiredPropertyException("GetClusterResult", "tags");
}
this.tags = tags;
return this;
}
@CustomType.Setter
public Builder zookeeperConnectString(String zookeeperConnectString) {
if (zookeeperConnectString == null) {
throw new MissingRequiredPropertyException("GetClusterResult", "zookeeperConnectString");
}
this.zookeeperConnectString = zookeeperConnectString;
return this;
}
@CustomType.Setter
public Builder zookeeperConnectStringTls(String zookeeperConnectStringTls) {
if (zookeeperConnectStringTls == null) {
throw new MissingRequiredPropertyException("GetClusterResult", "zookeeperConnectStringTls");
}
this.zookeeperConnectStringTls = zookeeperConnectStringTls;
return this;
}
public GetClusterResult build() {
final var _resultValue = new GetClusterResult();
_resultValue.arn = arn;
_resultValue.bootstrapBrokers = bootstrapBrokers;
_resultValue.bootstrapBrokersPublicSaslIam = bootstrapBrokersPublicSaslIam;
_resultValue.bootstrapBrokersPublicSaslScram = bootstrapBrokersPublicSaslScram;
_resultValue.bootstrapBrokersPublicTls = bootstrapBrokersPublicTls;
_resultValue.bootstrapBrokersSaslIam = bootstrapBrokersSaslIam;
_resultValue.bootstrapBrokersSaslScram = bootstrapBrokersSaslScram;
_resultValue.bootstrapBrokersTls = bootstrapBrokersTls;
_resultValue.brokerNodeGroupInfos = brokerNodeGroupInfos;
_resultValue.clusterName = clusterName;
_resultValue.clusterUuid = clusterUuid;
_resultValue.id = id;
_resultValue.kafkaVersion = kafkaVersion;
_resultValue.numberOfBrokerNodes = numberOfBrokerNodes;
_resultValue.tags = tags;
_resultValue.zookeeperConnectString = zookeeperConnectString;
_resultValue.zookeeperConnectStringTls = zookeeperConnectStringTls;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy