// generated from terraform resource schema
import * as cdktf from 'cdktf';
export function mediaConvertQueueReservationPlanSettingsToTerraform(struct) {
    if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
        return struct;
    }
    if (cdktf.isComplexElement(struct)) {
        throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
    }
    return {
        commitment: cdktf.stringToTerraform(struct.commitment),
        renewal_type: cdktf.stringToTerraform(struct.renewalType),
        reserved_slots: cdktf.numberToTerraform(struct.reservedSlots),
    };
}
export class MediaConvertQueueReservationPlanSettingsOutputReference extends cdktf.ComplexObject {
    isEmptyObject = false;
    /**
    * @param terraformResource The parent resource
    * @param terraformAttribute The attribute on the parent resource this class is referencing
    * @param isSingleItem True if this is a block, false if it's a list
    */
    constructor(terraformResource, terraformAttribute, isSingleItem) {
        super(terraformResource, terraformAttribute, isSingleItem);
    }
    get internalValue() {
        let hasAnyValues = this.isEmptyObject;
        const internalValueResult = {};
        if (this._commitment !== undefined) {
            hasAnyValues = true;
            internalValueResult.commitment = this._commitment;
        }
        if (this._renewalType !== undefined) {
            hasAnyValues = true;
            internalValueResult.renewalType = this._renewalType;
        }
        if (this._reservedSlots !== undefined) {
            hasAnyValues = true;
            internalValueResult.reservedSlots = this._reservedSlots;
        }
        return hasAnyValues ? internalValueResult : undefined;
    }
    set internalValue(value) {
        if (value === undefined) {
            this.isEmptyObject = false;
            this._commitment = undefined;
            this._renewalType = undefined;
            this._reservedSlots = undefined;
        }
        else {
            this.isEmptyObject = Object.keys(value).length === 0;
            this._commitment = value.commitment;
            this._renewalType = value.renewalType;
            this._reservedSlots = value.reservedSlots;
        }
    }
    // commitment - computed: false, optional: false, required: true
    _commitment;
    get commitment() {
        return this.getStringAttribute('commitment');
    }
    set commitment(value) {
        this._commitment = value;
    }
    // Temporarily expose input value. Use with caution.
    get commitmentInput() {
        return this._commitment;
    }
    // renewal_type - computed: false, optional: false, required: true
    _renewalType;
    get renewalType() {
        return this.getStringAttribute('renewal_type');
    }
    set renewalType(value) {
        this._renewalType = value;
    }
    // Temporarily expose input value. Use with caution.
    get renewalTypeInput() {
        return this._renewalType;
    }
    // reserved_slots - computed: false, optional: false, required: true
    _reservedSlots;
    get reservedSlots() {
        return this.getNumberAttribute('reserved_slots');
    }
    set reservedSlots(value) {
        this._reservedSlots = value;
    }
    // Temporarily expose input value. Use with caution.
    get reservedSlotsInput() {
        return this._reservedSlots;
    }
}
/**
* Represents a {@link https://www.terraform.io/docs/providers/aws/r/media_convert_queue aws_media_convert_queue}
*/
export class MediaConvertQueue extends cdktf.TerraformResource {
    // =================
    // STATIC PROPERTIES
    // =================
    static tfResourceType = "aws_media_convert_queue";
    // ===========
    // INITIALIZER
    // ===========
    /**
    * Create a new {@link https://www.terraform.io/docs/providers/aws/r/media_convert_queue aws_media_convert_queue} 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 MediaConvertQueueConfig
    */
    constructor(scope, id, config) {
        super(scope, id, {
            terraformResourceType: 'aws_media_convert_queue',
            terraformGeneratorMetadata: {
                providerName: 'aws'
            },
            provider: config.provider,
            dependsOn: config.dependsOn,
            count: config.count,
            lifecycle: config.lifecycle
        });
        this._description = config.description;
        this._name = config.name;
        this._pricingPlan = config.pricingPlan;
        this._status = config.status;
        this._tags = config.tags;
        this._tagsAll = config.tagsAll;
        this._reservationPlanSettings.internalValue = config.reservationPlanSettings;
    }
    // ==========
    // ATTRIBUTES
    // ==========
    // arn - computed: true, optional: false, required: false
    get arn() {
        return this.getStringAttribute('arn');
    }
    // description - computed: false, optional: true, required: false
    _description;
    get description() {
        return this.getStringAttribute('description');
    }
    set description(value) {
        this._description = value;
    }
    resetDescription() {
        this._description = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get descriptionInput() {
        return this._description;
    }
    // id - computed: true, optional: true, required: false
    get id() {
        return this.getStringAttribute('id');
    }
    // name - computed: false, optional: false, required: true
    _name;
    get name() {
        return this.getStringAttribute('name');
    }
    set name(value) {
        this._name = value;
    }
    // Temporarily expose input value. Use with caution.
    get nameInput() {
        return this._name;
    }
    // pricing_plan - computed: false, optional: true, required: false
    _pricingPlan;
    get pricingPlan() {
        return this.getStringAttribute('pricing_plan');
    }
    set pricingPlan(value) {
        this._pricingPlan = value;
    }
    resetPricingPlan() {
        this._pricingPlan = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get pricingPlanInput() {
        return this._pricingPlan;
    }
    // status - computed: false, optional: true, required: false
    _status;
    get status() {
        return this.getStringAttribute('status');
    }
    set status(value) {
        this._status = value;
    }
    resetStatus() {
        this._status = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get statusInput() {
        return this._status;
    }
    // tags - computed: false, optional: true, required: false
    _tags;
    get tags() {
        return this.getStringMapAttribute('tags');
    }
    set tags(value) {
        this._tags = value;
    }
    resetTags() {
        this._tags = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get tagsInput() {
        return this._tags;
    }
    // tags_all - computed: true, optional: true, required: false
    _tagsAll;
    get tagsAll() {
        return this.getStringMapAttribute('tags_all');
    }
    set tagsAll(value) {
        this._tagsAll = value;
    }
    resetTagsAll() {
        this._tagsAll = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get tagsAllInput() {
        return this._tagsAll;
    }
    // reservation_plan_settings - computed: false, optional: true, required: false
    _reservationPlanSettings = new MediaConvertQueueReservationPlanSettingsOutputReference(this, "reservation_plan_settings", true);
    get reservationPlanSettings() {
        return this._reservationPlanSettings;
    }
    putReservationPlanSettings(value) {
        this._reservationPlanSettings.internalValue = value;
    }
    resetReservationPlanSettings() {
        this._reservationPlanSettings.internalValue = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get reservationPlanSettingsInput() {
        return this._reservationPlanSettings.internalValue;
    }
    // =========
    // SYNTHESIS
    // =========
    synthesizeAttributes() {
        return {
            description: cdktf.stringToTerraform(this._description),
            name: cdktf.stringToTerraform(this._name),
            pricing_plan: cdktf.stringToTerraform(this._pricingPlan),
            status: cdktf.stringToTerraform(this._status),
            tags: cdktf.hashMapper(cdktf.stringToTerraform)(this._tags),
            tags_all: cdktf.hashMapper(cdktf.stringToTerraform)(this._tagsAll),
            reservation_plan_settings: mediaConvertQueueReservationPlanSettingsToTerraform(this._reservationPlanSettings.internalValue),
        };
    }
}
//# sourceMappingURL=media-convert-queue.js.map