import * as core from "@terrascript/core"; export interface FileSystemPolicyArgs extends core.ResourceArgs { /** * (Optional) A flag to indicate whether to bypass the `aws_efs_file_system_policy` lockout safety chec * k. The policy lockout safety check determines whether the policy in the request will prevent the pri * ncipal making the request will be locked out from making future `PutFileSystemPolicy` requests on th * e file system. Set `bypass_policy_lockout_safety_check` to `true` only when you intend to prevent th * e principal that is making the request from making a subsequent `PutFileSystemPolicy` request on the * file system. The default value is `false`. */ bypassPolicyLockoutSafetyCheck?: boolean | core.BooleanOut; /** * (Required) The ID of the EFS file system. */ fileSystemId: string | core.StringOut; /** * (Required) The JSON formatted file system policy for the EFS file system. see [Docs](https://docs.aw * s.amazon.com/efs/latest/ug/access-control-overview.html#access-control-manage-access-intro-resource- * policies) for more info. */ policy: string | core.StringOut; } export class FileSystemPolicy extends core.Resource { /** * (Optional) A flag to indicate whether to bypass the `aws_efs_file_system_policy` lockout safety chec * k. The policy lockout safety check determines whether the policy in the request will prevent the pri * ncipal making the request will be locked out from making future `PutFileSystemPolicy` requests on th * e file system. Set `bypass_policy_lockout_safety_check` to `true` only when you intend to prevent th * e principal that is making the request from making a subsequent `PutFileSystemPolicy` request on the * file system. The default value is `false`. */ @core.attr(Boolean) public bypassPolicyLockoutSafetyCheck?: boolean | core.BooleanOut; /** * (Required) The ID of the EFS file system. */ @core.attr(String) public fileSystemId!: string | core.StringOut; /** * The ID that identifies the file system (e.g., fs-ccfc0d65). */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) The JSON formatted file system policy for the EFS file system. see [Docs](https://docs.aw * s.amazon.com/efs/latest/ug/access-control-overview.html#access-control-manage-access-intro-resource- * policies) for more info. */ @core.attr(String) public policy!: string | core.StringOut; constructor(name: string, args?: FileSystemPolicyArgs) { super(name, "aws_efs_file_system_policy", args); } public override getNamespace(): string { return "aws_efs"; } }