import * as core from "@terrascript/core"; export interface DsMskClusterArgs { /** * (Required) Name of the cluster. */ clusterName: string | core.StringOut; /** * Map of key-value pairs assigned to the cluster. */ tags?: core.Map | core.MapOut; } export class DsMskCluster extends core.Data { /** * Amazon Resource Name (ARN) of the MSK cluster. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * Comma separated list of one or more hostname:port pairs of kafka brokers suitable to bootstrap conne * ctivity 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. */ @core.attr(String, { computed: true }) public bootstrapBrokers!: string | core.StringOut; /** * One or more DNS names (or IP addresses) and SASL IAM port pairs. For example, `b-1-public.exampleClu * sterName.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 `broke * r_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 alphabetic * ally. AWS may not always return all endpoints so the values may not be stable across applies. */ @core.attr(String, { computed: true }) public bootstrapBrokersPublicSaslIam!: string | core.StringOut; /** * One or more DNS names (or IP addresses) and SASL SCRAM port pairs. For example, `b-1-public.exampleC * lusterName.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:91 * 96`. This attribute will have a value if `encryption_info.0.encryption_in_transit.0.client_broker` i * s set to `TLS_PLAINTEXT` or `TLS` and `client_authentication.0.sasl.0.scram` is set to `true` and `b * roker_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 alphab * etically. AWS may not always return all endpoints so the values may not be stable across applies. */ @core.attr(String, { computed: true }) public bootstrapBrokersPublicSaslScram!: string | core.StringOut; /** * One or more DNS names (or IP addresses) and TLS port pairs. For example, `b-1-public.exampleClusterN * ame.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`. Th * is attribute will have a value if `encryption_info.0.encryption_in_transit.0.client_broker` is set t * o `TLS_PLAINTEXT` or `TLS` and `broker_node_group_info.0.connectivity_info.0.public_access.0.type` i * s set to `SERVICE_PROVIDED_EIPS` and the cluster fulfill all other requirements for public access. T * he resource sorts the list alphabetically. AWS may not always return all endpoints so the values may * not be stable across applies. */ @core.attr(String, { computed: true }) public bootstrapBrokersPublicTls!: string | core.StringOut; /** * One or more DNS names (or IP addresses) and SASL IAM port pairs. For example, `b-1.exampleClusterNam * e.abcde.c2.kafka.us-east-1.amazonaws.com:9098,b-2.exampleClusterName.abcde.c2.kafka.us-east-1.amazon * aws.com:9098,b-3.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9098`. This attribute wil * l 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 al * phabetically. AWS may not always return all endpoints so the values may not be stable across applies * . */ @core.attr(String, { computed: true }) public bootstrapBrokersSaslIam!: string | core.StringOut; /** * One or more DNS names (or IP addresses) and SASL SCRAM port pairs. For example, `b-1.exampleClusterN * ame.abcde.c2.kafka.us-east-1.amazonaws.com:9096,b-2.exampleClusterName.abcde.c2.kafka.us-east-1.amaz * onaws.com:9096,b-3.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9096`. This attribute w * ill have a value if `encryption_info.0.encryption_in_transit.0.client_broker` is set to `TLS_PLAINTE * XT` or `TLS` and `client_authentication.0.sasl.0.scram` is set to `true`. The resource sorts the lis * t alphabetically. AWS may not always return all endpoints so the values may not be stable across app * lies. */ @core.attr(String, { computed: true }) public bootstrapBrokersSaslScram!: string | core.StringOut; /** * One or more DNS names (or IP addresses) and TLS port pairs. For example, `b-1.exampleClusterName.abc * de.c2.kafka.us-east-1.amazonaws.com:9094,b-2.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.c * om:9094,b-3.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9094`. This attribute will hav * e 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 va * lues may not be stable across applies. */ @core.attr(String, { computed: true }) public bootstrapBrokersTls!: string | core.StringOut; /** * (Required) Name of the cluster. */ @core.attr(String) public clusterName!: string | core.StringOut; @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * Apache Kafka version. */ @core.attr(String, { computed: true }) public kafkaVersion!: string | core.StringOut; /** * Number of broker nodes in the cluster. */ @core.attr(Number, { computed: true }) public numberOfBrokerNodes!: number | core.NumberOut; /** * Map of key-value pairs assigned to the cluster. */ @core.attr(String, { computed: true, kind: "map" }) public tags?: core.Map | core.MapOut; /** * 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. */ @core.attr(String, { computed: true }) public zookeeperConnectString!: string | core.StringOut; /** * 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 endpo * ints, so this value is not guaranteed to be stable across applies. */ @core.attr(String, { computed: true }) public zookeeperConnectStringTls!: string | core.StringOut; constructor(name: string, args?: DsMskClusterArgs) { super(name, "aws_msk_cluster", args); } public override getNamespace(): string { return "aws_managed_streaming_for_kafka"; } }