// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS EFS */ export interface EfsFileSystemPolicyConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/efs_file_system_policy.html#bypass_policy_lockout_safety_check EfsFileSystemPolicy#bypass_policy_lockout_safety_check} */ readonly bypassPolicyLockoutSafetyCheck?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/efs_file_system_policy.html#file_system_id EfsFileSystemPolicy#file_system_id} */ readonly fileSystemId: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/efs_file_system_policy.html#policy EfsFileSystemPolicy#policy} */ readonly policy: string; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/efs_file_system_policy.html aws_efs_file_system_policy} */ export class EfsFileSystemPolicy extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_efs_file_system_policy"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/efs_file_system_policy.html aws_efs_file_system_policy} 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 EfsFileSystemPolicyConfig */ public constructor(scope: Construct, id: string, config: EfsFileSystemPolicyConfig) { super(scope, id, { terraformResourceType: 'aws_efs_file_system_policy', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._bypassPolicyLockoutSafetyCheck = config.bypassPolicyLockoutSafetyCheck; this._fileSystemId = config.fileSystemId; this._policy = config.policy; } // ========== // ATTRIBUTES // ========== // bypass_policy_lockout_safety_check - computed: false, optional: true, required: false private _bypassPolicyLockoutSafetyCheck?: boolean | cdktf.IResolvable; public get bypassPolicyLockoutSafetyCheck() { return this.getBooleanAttribute('bypass_policy_lockout_safety_check') as any; } public set bypassPolicyLockoutSafetyCheck(value: boolean | cdktf.IResolvable) { this._bypassPolicyLockoutSafetyCheck = value; } public resetBypassPolicyLockoutSafetyCheck() { this._bypassPolicyLockoutSafetyCheck = undefined; } // Temporarily expose input value. Use with caution. public get bypassPolicyLockoutSafetyCheckInput() { return this._bypassPolicyLockoutSafetyCheck; } // file_system_id - computed: false, optional: false, required: true private _fileSystemId?: string; public get fileSystemId() { return this.getStringAttribute('file_system_id'); } public set fileSystemId(value: string) { this._fileSystemId = value; } // Temporarily expose input value. Use with caution. public get fileSystemIdInput() { return this._fileSystemId; } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // policy - computed: false, optional: false, required: true private _policy?: string; public get policy() { return this.getStringAttribute('policy'); } public set policy(value: string) { this._policy = value; } // Temporarily expose input value. Use with caution. public get policyInput() { return this._policy; } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { bypass_policy_lockout_safety_check: cdktf.booleanToTerraform(this._bypassPolicyLockoutSafetyCheck), file_system_id: cdktf.stringToTerraform(this._fileSystemId), policy: cdktf.stringToTerraform(this._policy), }; } }