// generated from terraform resource schema
import * as cdktf from 'cdktf';
export function connectQueueOutboundCallerConfigToTerraform(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 {
        outbound_caller_id_name: cdktf.stringToTerraform(struct.outboundCallerIdName),
        outbound_caller_id_number_id: cdktf.stringToTerraform(struct.outboundCallerIdNumberId),
        outbound_flow_id: cdktf.stringToTerraform(struct.outboundFlowId),
    };
}
export class ConnectQueueOutboundCallerConfigOutputReference 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._outboundCallerIdName !== undefined) {
            hasAnyValues = true;
            internalValueResult.outboundCallerIdName = this._outboundCallerIdName;
        }
        if (this._outboundCallerIdNumberId !== undefined) {
            hasAnyValues = true;
            internalValueResult.outboundCallerIdNumberId = this._outboundCallerIdNumberId;
        }
        if (this._outboundFlowId !== undefined) {
            hasAnyValues = true;
            internalValueResult.outboundFlowId = this._outboundFlowId;
        }
        return hasAnyValues ? internalValueResult : undefined;
    }
    set internalValue(value) {
        if (value === undefined) {
            this.isEmptyObject = false;
            this._outboundCallerIdName = undefined;
            this._outboundCallerIdNumberId = undefined;
            this._outboundFlowId = undefined;
        }
        else {
            this.isEmptyObject = Object.keys(value).length === 0;
            this._outboundCallerIdName = value.outboundCallerIdName;
            this._outboundCallerIdNumberId = value.outboundCallerIdNumberId;
            this._outboundFlowId = value.outboundFlowId;
        }
    }
    // outbound_caller_id_name - computed: false, optional: true, required: false
    _outboundCallerIdName;
    get outboundCallerIdName() {
        return this.getStringAttribute('outbound_caller_id_name');
    }
    set outboundCallerIdName(value) {
        this._outboundCallerIdName = value;
    }
    resetOutboundCallerIdName() {
        this._outboundCallerIdName = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get outboundCallerIdNameInput() {
        return this._outboundCallerIdName;
    }
    // outbound_caller_id_number_id - computed: false, optional: true, required: false
    _outboundCallerIdNumberId;
    get outboundCallerIdNumberId() {
        return this.getStringAttribute('outbound_caller_id_number_id');
    }
    set outboundCallerIdNumberId(value) {
        this._outboundCallerIdNumberId = value;
    }
    resetOutboundCallerIdNumberId() {
        this._outboundCallerIdNumberId = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get outboundCallerIdNumberIdInput() {
        return this._outboundCallerIdNumberId;
    }
    // outbound_flow_id - computed: false, optional: true, required: false
    _outboundFlowId;
    get outboundFlowId() {
        return this.getStringAttribute('outbound_flow_id');
    }
    set outboundFlowId(value) {
        this._outboundFlowId = value;
    }
    resetOutboundFlowId() {
        this._outboundFlowId = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get outboundFlowIdInput() {
        return this._outboundFlowId;
    }
}
/**
* Represents a {@link https://www.terraform.io/docs/providers/aws/r/connect_queue aws_connect_queue}
*/
export class ConnectQueue extends cdktf.TerraformResource {
    // =================
    // STATIC PROPERTIES
    // =================
    static tfResourceType = "aws_connect_queue";
    // ===========
    // INITIALIZER
    // ===========
    /**
    * Create a new {@link https://www.terraform.io/docs/providers/aws/r/connect_queue aws_connect_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 ConnectQueueConfig
    */
    constructor(scope, id, config) {
        super(scope, id, {
            terraformResourceType: 'aws_connect_queue',
            terraformGeneratorMetadata: {
                providerName: 'aws'
            },
            provider: config.provider,
            dependsOn: config.dependsOn,
            count: config.count,
            lifecycle: config.lifecycle
        });
        this._description = config.description;
        this._hoursOfOperationId = config.hoursOfOperationId;
        this._instanceId = config.instanceId;
        this._maxContacts = config.maxContacts;
        this._name = config.name;
        this._quickConnectIds = config.quickConnectIds;
        this._status = config.status;
        this._tags = config.tags;
        this._tagsAll = config.tagsAll;
        this._outboundCallerConfig.internalValue = config.outboundCallerConfig;
    }
    // ==========
    // 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;
    }
    // hours_of_operation_id - computed: false, optional: false, required: true
    _hoursOfOperationId;
    get hoursOfOperationId() {
        return this.getStringAttribute('hours_of_operation_id');
    }
    set hoursOfOperationId(value) {
        this._hoursOfOperationId = value;
    }
    // Temporarily expose input value. Use with caution.
    get hoursOfOperationIdInput() {
        return this._hoursOfOperationId;
    }
    // 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;
    }
    // max_contacts - computed: false, optional: true, required: false
    _maxContacts;
    get maxContacts() {
        return this.getNumberAttribute('max_contacts');
    }
    set maxContacts(value) {
        this._maxContacts = value;
    }
    resetMaxContacts() {
        this._maxContacts = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get maxContactsInput() {
        return this._maxContacts;
    }
    // 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;
    }
    // queue_id - computed: true, optional: false, required: false
    get queueId() {
        return this.getStringAttribute('queue_id');
    }
    // quick_connect_ids - computed: false, optional: true, required: false
    _quickConnectIds;
    get quickConnectIds() {
        return cdktf.Fn.tolist(this.getListAttribute('quick_connect_ids'));
    }
    set quickConnectIds(value) {
        this._quickConnectIds = value;
    }
    resetQuickConnectIds() {
        this._quickConnectIds = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get quickConnectIdsInput() {
        return this._quickConnectIds;
    }
    // status - computed: true, 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;
    }
    // outbound_caller_config - computed: false, optional: true, required: false
    _outboundCallerConfig = new ConnectQueueOutboundCallerConfigOutputReference(this, "outbound_caller_config", true);
    get outboundCallerConfig() {
        return this._outboundCallerConfig;
    }
    putOutboundCallerConfig(value) {
        this._outboundCallerConfig.internalValue = value;
    }
    resetOutboundCallerConfig() {
        this._outboundCallerConfig.internalValue = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get outboundCallerConfigInput() {
        return this._outboundCallerConfig.internalValue;
    }
    // =========
    // SYNTHESIS
    // =========
    synthesizeAttributes() {
        return {
            description: cdktf.stringToTerraform(this._description),
            hours_of_operation_id: cdktf.stringToTerraform(this._hoursOfOperationId),
            instance_id: cdktf.stringToTerraform(this._instanceId),
            max_contacts: cdktf.numberToTerraform(this._maxContacts),
            name: cdktf.stringToTerraform(this._name),
            quick_connect_ids: cdktf.listMapper(cdktf.stringToTerraform)(this._quickConnectIds),
            status: cdktf.stringToTerraform(this._status),
            tags: cdktf.hashMapper(cdktf.stringToTerraform)(this._tags),
            tags_all: cdktf.hashMapper(cdktf.stringToTerraform)(this._tagsAll),
            outbound_caller_config: connectQueueOutboundCallerConfigToTerraform(this._outboundCallerConfig.internalValue),
        };
    }
}
//# sourceMappingURL=connect-queue.js.map