import * as core from "@terrascript/core"; export interface WorkspacePropertiesArgs extends core.SchemaArgs { computeTypeName?: string | core.StringOut; rootVolumeSizeGib?: number | core.NumberOut; runningMode?: string | core.StringOut; runningModeAutoStopTimeoutInMinutes?: number | core.NumberOut; userVolumeSizeGib?: number | core.NumberOut; } export class WorkspaceProperties extends core.Schema { @core.attr(String) public computeTypeName?: string | core.StringOut; @core.attr(Number) public rootVolumeSizeGib?: number | core.NumberOut; @core.attr(String) public runningMode?: string | core.StringOut; @core.attr(Number, { computed: true }) public runningModeAutoStopTimeoutInMinutes?: number | core.NumberOut; @core.attr(Number) public userVolumeSizeGib?: number | core.NumberOut; } export interface WorkspaceArgs extends core.ResourceArgs { /** * (Required) The ID of the bundle for the WorkSpace. */ bundleId: string | core.StringOut; /** * (Required) The ID of the directory for the WorkSpace. */ directoryId: string | core.StringOut; /** * (Optional) Indicates whether the data stored on the root volume is encrypted. */ rootVolumeEncryptionEnabled?: boolean | core.BooleanOut; /** * (Optional) The tags for the WorkSpace. If configured with a provider [`default_tags` configuration b * lock](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-configuration-b * lock) present, tags with matching keys will overwrite those defined at the provider-level. */ tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ tagsAll?: core.Map | core.MapOut; userName: string | core.StringOut; userVolumeEncryptionEnabled?: boolean | core.BooleanOut; volumeEncryptionKey?: string | core.StringOut; workspaceProperties?: WorkspaceProperties; } export class Workspace extends core.Resource { /** * (Required) The ID of the bundle for the WorkSpace. */ @core.attr(String) public bundleId!: string | core.StringOut; /** * The name of the WorkSpace, as seen by the operating system. */ @core.attr(String, { computed: true }) public computerName!: string | core.StringOut; /** * (Required) The ID of the directory for the WorkSpace. */ @core.attr(String) public directoryId!: string | core.StringOut; /** * The workspaces ID. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * The IP address of the WorkSpace. */ @core.attr(String, { computed: true }) public ipAddress!: string | core.StringOut; /** * (Optional) Indicates whether the data stored on the root volume is encrypted. */ @core.attr(Boolean) public rootVolumeEncryptionEnabled?: boolean | core.BooleanOut; /** * The operational state of the WorkSpace. */ @core.attr(String, { computed: true }) public state!: string | core.StringOut; /** * (Optional) The tags for the WorkSpace. If configured with a provider [`default_tags` configuration b * lock](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-configuration-b * lock) present, tags with matching keys will overwrite those defined at the provider-level. */ @core.attr(String, { kind: "map" }) public tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ @core.attr(String, { computed: true, kind: "map" }) public tagsAll?: core.Map | core.MapOut; @core.attr(String) public userName!: string | core.StringOut; @core.attr(Boolean) public userVolumeEncryptionEnabled?: boolean | core.BooleanOut; @core.attr(String) public volumeEncryptionKey?: string | core.StringOut; @core.attr(WorkspaceProperties, { computed: true }) public workspaceProperties?: WorkspaceProperties; constructor(name: string, args?: WorkspaceArgs) { super(name, "aws_workspaces_workspace", args); } public override getNamespace(): string { return "aws_workspaces"; } }