import * as core from "@terrascript/core"; export interface VolumeAttachmentArgs extends core.ResourceArgs { /** * (Required) The device name to expose to the instance (for */ deviceName: string | core.StringOut; /** * (Optional, Boolean) Set to `true` if you want to force the */ forceDetach?: boolean | core.BooleanOut; /** * (Required) ID of the Instance to attach to */ instanceId: string | core.StringOut; /** * (Optional, Boolean) Set this to true if you do not wish */ skipDestroy?: boolean | core.BooleanOut; /** * (Optional, Boolean) Set this to true to ensure that the target instance is stopped */ stopInstanceBeforeDetaching?: boolean | core.BooleanOut; /** * (Required) ID of the Volume to be attached */ volumeId: string | core.StringOut; } export class VolumeAttachment extends core.Resource { /** * (Required) The device name to expose to the instance (for */ @core.attr(String) public deviceName!: string | core.StringOut; /** * (Optional, Boolean) Set to `true` if you want to force the */ @core.attr(Boolean) public forceDetach?: boolean | core.BooleanOut; @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) ID of the Instance to attach to */ @core.attr(String) public instanceId!: string | core.StringOut; /** * (Optional, Boolean) Set this to true if you do not wish */ @core.attr(Boolean) public skipDestroy?: boolean | core.BooleanOut; /** * (Optional, Boolean) Set this to true to ensure that the target instance is stopped */ @core.attr(Boolean) public stopInstanceBeforeDetaching?: boolean | core.BooleanOut; /** * (Required) ID of the Volume to be attached */ @core.attr(String) public volumeId!: string | core.StringOut; constructor(name: string, args?: VolumeAttachmentArgs) { super(name, "aws_volume_attachment", args); } public override getNamespace(): string { return "aws_ebs"; } }