// generated from terraform resource schema
import * as cdktf from 'cdktf';
/**
* Represents a {@link https://www.terraform.io/docs/providers/aws/r/volume_attachment aws_volume_attachment}
*/
export class VolumeAttachment extends cdktf.TerraformResource {
    // =================
    // STATIC PROPERTIES
    // =================
    static tfResourceType = "aws_volume_attachment";
    // ===========
    // INITIALIZER
    // ===========
    /**
    * Create a new {@link https://www.terraform.io/docs/providers/aws/r/volume_attachment aws_volume_attachment} 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 VolumeAttachmentConfig
    */
    constructor(scope, id, config) {
        super(scope, id, {
            terraformResourceType: 'aws_volume_attachment',
            terraformGeneratorMetadata: {
                providerName: 'aws'
            },
            provider: config.provider,
            dependsOn: config.dependsOn,
            count: config.count,
            lifecycle: config.lifecycle
        });
        this._deviceName = config.deviceName;
        this._forceDetach = config.forceDetach;
        this._instanceId = config.instanceId;
        this._skipDestroy = config.skipDestroy;
        this._stopInstanceBeforeDetaching = config.stopInstanceBeforeDetaching;
        this._volumeId = config.volumeId;
    }
    // ==========
    // ATTRIBUTES
    // ==========
    // device_name - computed: false, optional: false, required: true
    _deviceName;
    get deviceName() {
        return this.getStringAttribute('device_name');
    }
    set deviceName(value) {
        this._deviceName = value;
    }
    // Temporarily expose input value. Use with caution.
    get deviceNameInput() {
        return this._deviceName;
    }
    // force_detach - computed: false, optional: true, required: false
    _forceDetach;
    get forceDetach() {
        return this.getBooleanAttribute('force_detach');
    }
    set forceDetach(value) {
        this._forceDetach = value;
    }
    resetForceDetach() {
        this._forceDetach = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get forceDetachInput() {
        return this._forceDetach;
    }
    // id - computed: true, optional: true, required: false
    get id() {
        return this.getStringAttribute('id');
    }
    // instance_id - computed: false, optional: false, required: true
    _instanceId;
    get instanceId() {
        return this.getStringAttribute('instance_id');
    }
    set instanceId(value) {
        this._instanceId = value;
    }
    // Temporarily expose input value. Use with caution.
    get instanceIdInput() {
        return this._instanceId;
    }
    // skip_destroy - computed: false, optional: true, required: false
    _skipDestroy;
    get skipDestroy() {
        return this.getBooleanAttribute('skip_destroy');
    }
    set skipDestroy(value) {
        this._skipDestroy = value;
    }
    resetSkipDestroy() {
        this._skipDestroy = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get skipDestroyInput() {
        return this._skipDestroy;
    }
    // stop_instance_before_detaching - computed: false, optional: true, required: false
    _stopInstanceBeforeDetaching;
    get stopInstanceBeforeDetaching() {
        return this.getBooleanAttribute('stop_instance_before_detaching');
    }
    set stopInstanceBeforeDetaching(value) {
        this._stopInstanceBeforeDetaching = value;
    }
    resetStopInstanceBeforeDetaching() {
        this._stopInstanceBeforeDetaching = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get stopInstanceBeforeDetachingInput() {
        return this._stopInstanceBeforeDetaching;
    }
    // volume_id - computed: false, optional: false, required: true
    _volumeId;
    get volumeId() {
        return this.getStringAttribute('volume_id');
    }
    set volumeId(value) {
        this._volumeId = value;
    }
    // Temporarily expose input value. Use with caution.
    get volumeIdInput() {
        return this._volumeId;
    }
    // =========
    // SYNTHESIS
    // =========
    synthesizeAttributes() {
        return {
            device_name: cdktf.stringToTerraform(this._deviceName),
            force_detach: cdktf.booleanToTerraform(this._forceDetach),
            instance_id: cdktf.stringToTerraform(this._instanceId),
            skip_destroy: cdktf.booleanToTerraform(this._skipDestroy),
            stop_instance_before_detaching: cdktf.booleanToTerraform(this._stopInstanceBeforeDetaching),
            volume_id: cdktf.stringToTerraform(this._volumeId),
        };
    }
}
//# sourceMappingURL=volume-attachment.js.map