// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS Macie 2 */ export interface Macie2OrganizationAdminAccountConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/macie2_organization_admin_account.html#admin_account_id Macie2OrganizationAdminAccount#admin_account_id} */ readonly adminAccountId: string; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/macie2_organization_admin_account.html aws_macie2_organization_admin_account} */ export class Macie2OrganizationAdminAccount extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_macie2_organization_admin_account"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/macie2_organization_admin_account.html aws_macie2_organization_admin_account} Resource * * @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 Macie2OrganizationAdminAccountConfig */ public constructor(scope: Construct, id: string, config: Macie2OrganizationAdminAccountConfig) { super(scope, id, { terraformResourceType: 'aws_macie2_organization_admin_account', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._adminAccountId = config.adminAccountId; } // ========== // ATTRIBUTES // ========== // admin_account_id - computed: false, optional: false, required: true private _adminAccountId?: string; public get adminAccountId() { return this.getStringAttribute('admin_account_id'); } public set adminAccountId(value: string) { this._adminAccountId = value; } // Temporarily expose input value. Use with caution. public get adminAccountIdInput() { return this._adminAccountId; } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { admin_account_id: cdktf.stringToTerraform(this._adminAccountId), }; } }