// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS Lake Formation */ export interface LakeformationResourceConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/lakeformation_resource.html#arn LakeformationResource#arn} */ readonly arn: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/lakeformation_resource.html#role_arn LakeformationResource#role_arn} */ readonly roleArn?: string; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/lakeformation_resource.html aws_lakeformation_resource} */ export class LakeformationResource extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_lakeformation_resource"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/lakeformation_resource.html aws_lakeformation_resource} 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 LakeformationResourceConfig */ public constructor(scope: Construct, id: string, config: LakeformationResourceConfig) { super(scope, id, { terraformResourceType: 'aws_lakeformation_resource', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._arn = config.arn; this._roleArn = config.roleArn; } // ========== // ATTRIBUTES // ========== // arn - computed: false, optional: false, required: true private _arn?: string; public get arn() { return this.getStringAttribute('arn'); } public set arn(value: string) { this._arn = value; } // Temporarily expose input value. Use with caution. public get arnInput() { return this._arn; } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // last_modified - computed: true, optional: false, required: false public get lastModified() { return this.getStringAttribute('last_modified'); } // role_arn - computed: true, optional: true, required: false private _roleArn?: string; public get roleArn() { return this.getStringAttribute('role_arn'); } public set roleArn(value: string) { this._roleArn = value; } public resetRoleArn() { this._roleArn = undefined; } // Temporarily expose input value. Use with caution. public get roleArnInput() { return this._roleArn; } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { arn: cdktf.stringToTerraform(this._arn), role_arn: cdktf.stringToTerraform(this._roleArn), }; } }