// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS Managed Streaming for Kafka */ export interface DataAwsMskClusterConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/msk_cluster.html#cluster_name DataAwsMskCluster#cluster_name} */ readonly clusterName: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/msk_cluster.html#tags DataAwsMskCluster#tags} */ readonly tags?: { [key: string]: string } | cdktf.IResolvable; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/d/msk_cluster.html aws_msk_cluster} */ export class DataAwsMskCluster extends cdktf.TerraformDataSource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_msk_cluster"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/d/msk_cluster.html aws_msk_cluster} Data Source * * @param scope The scope in which to define this construct * @param id The scoped construct ID. Must be unique amongst siblings in the same scope * @param options DataAwsMskClusterConfig */ public constructor(scope: Construct, id: string, config: DataAwsMskClusterConfig) { super(scope, id, { terraformResourceType: 'aws_msk_cluster', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._clusterName = config.clusterName; this._tags = config.tags; } // ========== // ATTRIBUTES // ========== // arn - computed: true, optional: false, required: false public get arn() { return this.getStringAttribute('arn'); } // bootstrap_brokers - computed: true, optional: false, required: false public get bootstrapBrokers() { return this.getStringAttribute('bootstrap_brokers'); } // bootstrap_brokers_sasl_iam - computed: true, optional: false, required: false public get bootstrapBrokersSaslIam() { return this.getStringAttribute('bootstrap_brokers_sasl_iam'); } // bootstrap_brokers_sasl_scram - computed: true, optional: false, required: false public get bootstrapBrokersSaslScram() { return this.getStringAttribute('bootstrap_brokers_sasl_scram'); } // bootstrap_brokers_tls - computed: true, optional: false, required: false public get bootstrapBrokersTls() { return this.getStringAttribute('bootstrap_brokers_tls'); } // cluster_name - computed: false, optional: false, required: true private _clusterName?: string; public get clusterName() { return this.getStringAttribute('cluster_name'); } public set clusterName(value: string) { this._clusterName = value; } // Temporarily expose input value. Use with caution. public get clusterNameInput() { return this._clusterName; } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // kafka_version - computed: true, optional: false, required: false public get kafkaVersion() { return this.getStringAttribute('kafka_version'); } // number_of_broker_nodes - computed: true, optional: false, required: false public get numberOfBrokerNodes() { return this.getNumberAttribute('number_of_broker_nodes'); } // tags - computed: true, optional: true, required: false private _tags?: { [key: string]: string } | cdktf.IResolvable; public get tags() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('tags') as any; } public set tags(value: { [key: string]: string } | cdktf.IResolvable) { this._tags = value; } public resetTags() { this._tags = undefined; } // Temporarily expose input value. Use with caution. public get tagsInput() { return this._tags; } // zookeeper_connect_string - computed: true, optional: false, required: false public get zookeeperConnectString() { return this.getStringAttribute('zookeeper_connect_string'); } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { cluster_name: cdktf.stringToTerraform(this._clusterName), tags: cdktf.hashMapper(cdktf.anyToTerraform)(this._tags), }; } }