// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS Data Sources */ export interface DataAwsCallerIdentityConfig extends cdktf.TerraformMetaArguments { } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/d/caller_identity.html aws_caller_identity} */ export class DataAwsCallerIdentity extends cdktf.TerraformDataSource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_caller_identity"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/d/caller_identity.html aws_caller_identity} 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 DataAwsCallerIdentityConfig = {} */ public constructor(scope: Construct, id: string, config: DataAwsCallerIdentityConfig = {}) { super(scope, id, { terraformResourceType: 'aws_caller_identity', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); } // ========== // ATTRIBUTES // ========== // account_id - computed: true, optional: false, required: false public get accountId() { return this.getStringAttribute('account_id'); } // 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'); } // user_id - computed: true, optional: false, required: false public get userId() { return this.getStringAttribute('user_id'); } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { }; } }