// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS Kinesis */ export interface DataAwsKinesisStreamConsumerConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/kinesis_stream_consumer.html#name DataAwsKinesisStreamConsumer#name} */ readonly name?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/kinesis_stream_consumer.html#stream_arn DataAwsKinesisStreamConsumer#stream_arn} */ readonly streamArn: string; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/d/kinesis_stream_consumer.html aws_kinesis_stream_consumer} */ export class DataAwsKinesisStreamConsumer extends cdktf.TerraformDataSource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_kinesis_stream_consumer"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/d/kinesis_stream_consumer.html aws_kinesis_stream_consumer} 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 DataAwsKinesisStreamConsumerConfig */ public constructor(scope: Construct, id: string, config: DataAwsKinesisStreamConsumerConfig) { super(scope, id, { terraformResourceType: 'aws_kinesis_stream_consumer', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._name = config.name; this._streamArn = config.streamArn; } // ========== // ATTRIBUTES // ========== // arn - computed: true, optional: true, required: false public get arn() { return this.getStringAttribute('arn'); } // creation_timestamp - computed: true, optional: false, required: false public get creationTimestamp() { return this.getStringAttribute('creation_timestamp'); } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // name - computed: true, optional: true, required: false private _name?: string; public get name() { return this.getStringAttribute('name'); } public set name(value: string) { this._name = value; } public resetName() { this._name = undefined; } // Temporarily expose input value. Use with caution. public get nameInput() { return this._name; } // status - computed: true, optional: false, required: false public get status() { return this.getStringAttribute('status'); } // stream_arn - computed: false, optional: false, required: true private _streamArn?: string; public get streamArn() { return this.getStringAttribute('stream_arn'); } public set streamArn(value: string) { this._streamArn = value; } // Temporarily expose input value. Use with caution. public get streamArnInput() { return this._streamArn; } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { name: cdktf.stringToTerraform(this._name), stream_arn: cdktf.stringToTerraform(this._streamArn), }; } }