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