// generated from terraform resource schema
import * as cdktf from 'cdktf';
export function lexIntentConclusionStatementMessageToTerraform(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 {
        content: cdktf.stringToTerraform(struct.content),
        content_type: cdktf.stringToTerraform(struct.contentType),
        group_number: cdktf.numberToTerraform(struct.groupNumber),
    };
}
export function lexIntentConclusionStatementToTerraform(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 {
        response_card: cdktf.stringToTerraform(struct.responseCard),
        message: cdktf.listMapper(lexIntentConclusionStatementMessageToTerraform)(struct.message),
    };
}
export class LexIntentConclusionStatementOutputReference 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._responseCard !== undefined) {
            hasAnyValues = true;
            internalValueResult.responseCard = this._responseCard;
        }
        if (this._message !== undefined) {
            hasAnyValues = true;
            internalValueResult.message = this._message;
        }
        return hasAnyValues ? internalValueResult : undefined;
    }
    set internalValue(value) {
        if (value === undefined) {
            this.isEmptyObject = false;
            this._responseCard = undefined;
            this._message = undefined;
        }
        else {
            this.isEmptyObject = Object.keys(value).length === 0;
            this._responseCard = value.responseCard;
            this._message = value.message;
        }
    }
    // response_card - computed: false, optional: true, required: false
    _responseCard;
    get responseCard() {
        return this.getStringAttribute('response_card');
    }
    set responseCard(value) {
        this._responseCard = value;
    }
    resetResponseCard() {
        this._responseCard = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get responseCardInput() {
        return this._responseCard;
    }
    // message - computed: false, optional: false, required: true
    _message;
    get message() {
        // Getting the computed value is not yet implemented
        return cdktf.Token.asAny(cdktf.Fn.tolist(this.interpolationForAttribute('message')));
    }
    set message(value) {
        this._message = value;
    }
    // Temporarily expose input value. Use with caution.
    get messageInput() {
        return this._message;
    }
}
export function lexIntentConfirmationPromptMessageToTerraform(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 {
        content: cdktf.stringToTerraform(struct.content),
        content_type: cdktf.stringToTerraform(struct.contentType),
        group_number: cdktf.numberToTerraform(struct.groupNumber),
    };
}
export function lexIntentConfirmationPromptToTerraform(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 {
        max_attempts: cdktf.numberToTerraform(struct.maxAttempts),
        response_card: cdktf.stringToTerraform(struct.responseCard),
        message: cdktf.listMapper(lexIntentConfirmationPromptMessageToTerraform)(struct.message),
    };
}
export class LexIntentConfirmationPromptOutputReference 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._maxAttempts !== undefined) {
            hasAnyValues = true;
            internalValueResult.maxAttempts = this._maxAttempts;
        }
        if (this._responseCard !== undefined) {
            hasAnyValues = true;
            internalValueResult.responseCard = this._responseCard;
        }
        if (this._message !== undefined) {
            hasAnyValues = true;
            internalValueResult.message = this._message;
        }
        return hasAnyValues ? internalValueResult : undefined;
    }
    set internalValue(value) {
        if (value === undefined) {
            this.isEmptyObject = false;
            this._maxAttempts = undefined;
            this._responseCard = undefined;
            this._message = undefined;
        }
        else {
            this.isEmptyObject = Object.keys(value).length === 0;
            this._maxAttempts = value.maxAttempts;
            this._responseCard = value.responseCard;
            this._message = value.message;
        }
    }
    // max_attempts - computed: false, optional: false, required: true
    _maxAttempts;
    get maxAttempts() {
        return this.getNumberAttribute('max_attempts');
    }
    set maxAttempts(value) {
        this._maxAttempts = value;
    }
    // Temporarily expose input value. Use with caution.
    get maxAttemptsInput() {
        return this._maxAttempts;
    }
    // response_card - computed: false, optional: true, required: false
    _responseCard;
    get responseCard() {
        return this.getStringAttribute('response_card');
    }
    set responseCard(value) {
        this._responseCard = value;
    }
    resetResponseCard() {
        this._responseCard = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get responseCardInput() {
        return this._responseCard;
    }
    // message - computed: false, optional: false, required: true
    _message;
    get message() {
        // Getting the computed value is not yet implemented
        return cdktf.Token.asAny(cdktf.Fn.tolist(this.interpolationForAttribute('message')));
    }
    set message(value) {
        this._message = value;
    }
    // Temporarily expose input value. Use with caution.
    get messageInput() {
        return this._message;
    }
}
export function lexIntentDialogCodeHookToTerraform(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 {
        message_version: cdktf.stringToTerraform(struct.messageVersion),
        uri: cdktf.stringToTerraform(struct.uri),
    };
}
export class LexIntentDialogCodeHookOutputReference 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._messageVersion !== undefined) {
            hasAnyValues = true;
            internalValueResult.messageVersion = this._messageVersion;
        }
        if (this._uri !== undefined) {
            hasAnyValues = true;
            internalValueResult.uri = this._uri;
        }
        return hasAnyValues ? internalValueResult : undefined;
    }
    set internalValue(value) {
        if (value === undefined) {
            this.isEmptyObject = false;
            this._messageVersion = undefined;
            this._uri = undefined;
        }
        else {
            this.isEmptyObject = Object.keys(value).length === 0;
            this._messageVersion = value.messageVersion;
            this._uri = value.uri;
        }
    }
    // message_version - computed: false, optional: false, required: true
    _messageVersion;
    get messageVersion() {
        return this.getStringAttribute('message_version');
    }
    set messageVersion(value) {
        this._messageVersion = value;
    }
    // Temporarily expose input value. Use with caution.
    get messageVersionInput() {
        return this._messageVersion;
    }
    // uri - computed: false, optional: false, required: true
    _uri;
    get uri() {
        return this.getStringAttribute('uri');
    }
    set uri(value) {
        this._uri = value;
    }
    // Temporarily expose input value. Use with caution.
    get uriInput() {
        return this._uri;
    }
}
export function lexIntentFollowUpPromptPromptMessageToTerraform(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 {
        content: cdktf.stringToTerraform(struct.content),
        content_type: cdktf.stringToTerraform(struct.contentType),
        group_number: cdktf.numberToTerraform(struct.groupNumber),
    };
}
export function lexIntentFollowUpPromptPromptToTerraform(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 {
        max_attempts: cdktf.numberToTerraform(struct.maxAttempts),
        response_card: cdktf.stringToTerraform(struct.responseCard),
        message: cdktf.listMapper(lexIntentFollowUpPromptPromptMessageToTerraform)(struct.message),
    };
}
export class LexIntentFollowUpPromptPromptOutputReference 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._maxAttempts !== undefined) {
            hasAnyValues = true;
            internalValueResult.maxAttempts = this._maxAttempts;
        }
        if (this._responseCard !== undefined) {
            hasAnyValues = true;
            internalValueResult.responseCard = this._responseCard;
        }
        if (this._message !== undefined) {
            hasAnyValues = true;
            internalValueResult.message = this._message;
        }
        return hasAnyValues ? internalValueResult : undefined;
    }
    set internalValue(value) {
        if (value === undefined) {
            this.isEmptyObject = false;
            this._maxAttempts = undefined;
            this._responseCard = undefined;
            this._message = undefined;
        }
        else {
            this.isEmptyObject = Object.keys(value).length === 0;
            this._maxAttempts = value.maxAttempts;
            this._responseCard = value.responseCard;
            this._message = value.message;
        }
    }
    // max_attempts - computed: false, optional: false, required: true
    _maxAttempts;
    get maxAttempts() {
        return this.getNumberAttribute('max_attempts');
    }
    set maxAttempts(value) {
        this._maxAttempts = value;
    }
    // Temporarily expose input value. Use with caution.
    get maxAttemptsInput() {
        return this._maxAttempts;
    }
    // response_card - computed: false, optional: true, required: false
    _responseCard;
    get responseCard() {
        return this.getStringAttribute('response_card');
    }
    set responseCard(value) {
        this._responseCard = value;
    }
    resetResponseCard() {
        this._responseCard = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get responseCardInput() {
        return this._responseCard;
    }
    // message - computed: false, optional: false, required: true
    _message;
    get message() {
        // Getting the computed value is not yet implemented
        return cdktf.Token.asAny(cdktf.Fn.tolist(this.interpolationForAttribute('message')));
    }
    set message(value) {
        this._message = value;
    }
    // Temporarily expose input value. Use with caution.
    get messageInput() {
        return this._message;
    }
}
export function lexIntentFollowUpPromptRejectionStatementMessageToTerraform(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 {
        content: cdktf.stringToTerraform(struct.content),
        content_type: cdktf.stringToTerraform(struct.contentType),
        group_number: cdktf.numberToTerraform(struct.groupNumber),
    };
}
export function lexIntentFollowUpPromptRejectionStatementToTerraform(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 {
        response_card: cdktf.stringToTerraform(struct.responseCard),
        message: cdktf.listMapper(lexIntentFollowUpPromptRejectionStatementMessageToTerraform)(struct.message),
    };
}
export class LexIntentFollowUpPromptRejectionStatementOutputReference 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._responseCard !== undefined) {
            hasAnyValues = true;
            internalValueResult.responseCard = this._responseCard;
        }
        if (this._message !== undefined) {
            hasAnyValues = true;
            internalValueResult.message = this._message;
        }
        return hasAnyValues ? internalValueResult : undefined;
    }
    set internalValue(value) {
        if (value === undefined) {
            this.isEmptyObject = false;
            this._responseCard = undefined;
            this._message = undefined;
        }
        else {
            this.isEmptyObject = Object.keys(value).length === 0;
            this._responseCard = value.responseCard;
            this._message = value.message;
        }
    }
    // response_card - computed: false, optional: true, required: false
    _responseCard;
    get responseCard() {
        return this.getStringAttribute('response_card');
    }
    set responseCard(value) {
        this._responseCard = value;
    }
    resetResponseCard() {
        this._responseCard = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get responseCardInput() {
        return this._responseCard;
    }
    // message - computed: false, optional: false, required: true
    _message;
    get message() {
        // Getting the computed value is not yet implemented
        return cdktf.Token.asAny(cdktf.Fn.tolist(this.interpolationForAttribute('message')));
    }
    set message(value) {
        this._message = value;
    }
    // Temporarily expose input value. Use with caution.
    get messageInput() {
        return this._message;
    }
}
export function lexIntentFollowUpPromptToTerraform(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 {
        prompt: lexIntentFollowUpPromptPromptToTerraform(struct.prompt),
        rejection_statement: lexIntentFollowUpPromptRejectionStatementToTerraform(struct.rejectionStatement),
    };
}
export class LexIntentFollowUpPromptOutputReference 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._prompt?.internalValue !== undefined) {
            hasAnyValues = true;
            internalValueResult.prompt = this._prompt?.internalValue;
        }
        if (this._rejectionStatement?.internalValue !== undefined) {
            hasAnyValues = true;
            internalValueResult.rejectionStatement = this._rejectionStatement?.internalValue;
        }
        return hasAnyValues ? internalValueResult : undefined;
    }
    set internalValue(value) {
        if (value === undefined) {
            this.isEmptyObject = false;
            this._prompt.internalValue = undefined;
            this._rejectionStatement.internalValue = undefined;
        }
        else {
            this.isEmptyObject = Object.keys(value).length === 0;
            this._prompt.internalValue = value.prompt;
            this._rejectionStatement.internalValue = value.rejectionStatement;
        }
    }
    // prompt - computed: false, optional: false, required: true
    _prompt = new LexIntentFollowUpPromptPromptOutputReference(this, "prompt", true);
    get prompt() {
        return this._prompt;
    }
    putPrompt(value) {
        this._prompt.internalValue = value;
    }
    // Temporarily expose input value. Use with caution.
    get promptInput() {
        return this._prompt.internalValue;
    }
    // rejection_statement - computed: false, optional: false, required: true
    _rejectionStatement = new LexIntentFollowUpPromptRejectionStatementOutputReference(this, "rejection_statement", true);
    get rejectionStatement() {
        return this._rejectionStatement;
    }
    putRejectionStatement(value) {
        this._rejectionStatement.internalValue = value;
    }
    // Temporarily expose input value. Use with caution.
    get rejectionStatementInput() {
        return this._rejectionStatement.internalValue;
    }
}
export function lexIntentFulfillmentActivityCodeHookToTerraform(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 {
        message_version: cdktf.stringToTerraform(struct.messageVersion),
        uri: cdktf.stringToTerraform(struct.uri),
    };
}
export class LexIntentFulfillmentActivityCodeHookOutputReference 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._messageVersion !== undefined) {
            hasAnyValues = true;
            internalValueResult.messageVersion = this._messageVersion;
        }
        if (this._uri !== undefined) {
            hasAnyValues = true;
            internalValueResult.uri = this._uri;
        }
        return hasAnyValues ? internalValueResult : undefined;
    }
    set internalValue(value) {
        if (value === undefined) {
            this.isEmptyObject = false;
            this._messageVersion = undefined;
            this._uri = undefined;
        }
        else {
            this.isEmptyObject = Object.keys(value).length === 0;
            this._messageVersion = value.messageVersion;
            this._uri = value.uri;
        }
    }
    // message_version - computed: false, optional: false, required: true
    _messageVersion;
    get messageVersion() {
        return this.getStringAttribute('message_version');
    }
    set messageVersion(value) {
        this._messageVersion = value;
    }
    // Temporarily expose input value. Use with caution.
    get messageVersionInput() {
        return this._messageVersion;
    }
    // uri - computed: false, optional: false, required: true
    _uri;
    get uri() {
        return this.getStringAttribute('uri');
    }
    set uri(value) {
        this._uri = value;
    }
    // Temporarily expose input value. Use with caution.
    get uriInput() {
        return this._uri;
    }
}
export function lexIntentFulfillmentActivityToTerraform(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 {
        type: cdktf.stringToTerraform(struct.type),
        code_hook: lexIntentFulfillmentActivityCodeHookToTerraform(struct.codeHook),
    };
}
export class LexIntentFulfillmentActivityOutputReference 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._type !== undefined) {
            hasAnyValues = true;
            internalValueResult.type = this._type;
        }
        if (this._codeHook?.internalValue !== undefined) {
            hasAnyValues = true;
            internalValueResult.codeHook = this._codeHook?.internalValue;
        }
        return hasAnyValues ? internalValueResult : undefined;
    }
    set internalValue(value) {
        if (value === undefined) {
            this.isEmptyObject = false;
            this._type = undefined;
            this._codeHook.internalValue = undefined;
        }
        else {
            this.isEmptyObject = Object.keys(value).length === 0;
            this._type = value.type;
            this._codeHook.internalValue = value.codeHook;
        }
    }
    // type - computed: false, optional: false, required: true
    _type;
    get type() {
        return this.getStringAttribute('type');
    }
    set type(value) {
        this._type = value;
    }
    // Temporarily expose input value. Use with caution.
    get typeInput() {
        return this._type;
    }
    // code_hook - computed: false, optional: true, required: false
    _codeHook = new LexIntentFulfillmentActivityCodeHookOutputReference(this, "code_hook", true);
    get codeHook() {
        return this._codeHook;
    }
    putCodeHook(value) {
        this._codeHook.internalValue = value;
    }
    resetCodeHook() {
        this._codeHook.internalValue = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get codeHookInput() {
        return this._codeHook.internalValue;
    }
}
export function lexIntentRejectionStatementMessageToTerraform(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 {
        content: cdktf.stringToTerraform(struct.content),
        content_type: cdktf.stringToTerraform(struct.contentType),
        group_number: cdktf.numberToTerraform(struct.groupNumber),
    };
}
export function lexIntentRejectionStatementToTerraform(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 {
        response_card: cdktf.stringToTerraform(struct.responseCard),
        message: cdktf.listMapper(lexIntentRejectionStatementMessageToTerraform)(struct.message),
    };
}
export class LexIntentRejectionStatementOutputReference 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._responseCard !== undefined) {
            hasAnyValues = true;
            internalValueResult.responseCard = this._responseCard;
        }
        if (this._message !== undefined) {
            hasAnyValues = true;
            internalValueResult.message = this._message;
        }
        return hasAnyValues ? internalValueResult : undefined;
    }
    set internalValue(value) {
        if (value === undefined) {
            this.isEmptyObject = false;
            this._responseCard = undefined;
            this._message = undefined;
        }
        else {
            this.isEmptyObject = Object.keys(value).length === 0;
            this._responseCard = value.responseCard;
            this._message = value.message;
        }
    }
    // response_card - computed: false, optional: true, required: false
    _responseCard;
    get responseCard() {
        return this.getStringAttribute('response_card');
    }
    set responseCard(value) {
        this._responseCard = value;
    }
    resetResponseCard() {
        this._responseCard = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get responseCardInput() {
        return this._responseCard;
    }
    // message - computed: false, optional: false, required: true
    _message;
    get message() {
        // Getting the computed value is not yet implemented
        return cdktf.Token.asAny(cdktf.Fn.tolist(this.interpolationForAttribute('message')));
    }
    set message(value) {
        this._message = value;
    }
    // Temporarily expose input value. Use with caution.
    get messageInput() {
        return this._message;
    }
}
export function lexIntentSlotValueElicitationPromptMessageToTerraform(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 {
        content: cdktf.stringToTerraform(struct.content),
        content_type: cdktf.stringToTerraform(struct.contentType),
        group_number: cdktf.numberToTerraform(struct.groupNumber),
    };
}
export function lexIntentSlotValueElicitationPromptToTerraform(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 {
        max_attempts: cdktf.numberToTerraform(struct.maxAttempts),
        response_card: cdktf.stringToTerraform(struct.responseCard),
        message: cdktf.listMapper(lexIntentSlotValueElicitationPromptMessageToTerraform)(struct.message),
    };
}
export class LexIntentSlotValueElicitationPromptOutputReference 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._maxAttempts !== undefined) {
            hasAnyValues = true;
            internalValueResult.maxAttempts = this._maxAttempts;
        }
        if (this._responseCard !== undefined) {
            hasAnyValues = true;
            internalValueResult.responseCard = this._responseCard;
        }
        if (this._message !== undefined) {
            hasAnyValues = true;
            internalValueResult.message = this._message;
        }
        return hasAnyValues ? internalValueResult : undefined;
    }
    set internalValue(value) {
        if (value === undefined) {
            this.isEmptyObject = false;
            this._maxAttempts = undefined;
            this._responseCard = undefined;
            this._message = undefined;
        }
        else {
            this.isEmptyObject = Object.keys(value).length === 0;
            this._maxAttempts = value.maxAttempts;
            this._responseCard = value.responseCard;
            this._message = value.message;
        }
    }
    // max_attempts - computed: false, optional: false, required: true
    _maxAttempts;
    get maxAttempts() {
        return this.getNumberAttribute('max_attempts');
    }
    set maxAttempts(value) {
        this._maxAttempts = value;
    }
    // Temporarily expose input value. Use with caution.
    get maxAttemptsInput() {
        return this._maxAttempts;
    }
    // response_card - computed: false, optional: true, required: false
    _responseCard;
    get responseCard() {
        return this.getStringAttribute('response_card');
    }
    set responseCard(value) {
        this._responseCard = value;
    }
    resetResponseCard() {
        this._responseCard = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get responseCardInput() {
        return this._responseCard;
    }
    // message - computed: false, optional: false, required: true
    _message;
    get message() {
        // Getting the computed value is not yet implemented
        return cdktf.Token.asAny(cdktf.Fn.tolist(this.interpolationForAttribute('message')));
    }
    set message(value) {
        this._message = value;
    }
    // Temporarily expose input value. Use with caution.
    get messageInput() {
        return this._message;
    }
}
export function lexIntentSlotToTerraform(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 {
        description: cdktf.stringToTerraform(struct.description),
        name: cdktf.stringToTerraform(struct.name),
        priority: cdktf.numberToTerraform(struct.priority),
        response_card: cdktf.stringToTerraform(struct.responseCard),
        sample_utterances: cdktf.listMapper(cdktf.stringToTerraform)(struct.sampleUtterances),
        slot_constraint: cdktf.stringToTerraform(struct.slotConstraint),
        slot_type: cdktf.stringToTerraform(struct.slotType),
        slot_type_version: cdktf.stringToTerraform(struct.slotTypeVersion),
        value_elicitation_prompt: lexIntentSlotValueElicitationPromptToTerraform(struct.valueElicitationPrompt),
    };
}
export function lexIntentTimeoutsToTerraform(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 {
        create: cdktf.stringToTerraform(struct.create),
        delete: cdktf.stringToTerraform(struct.delete),
        update: cdktf.stringToTerraform(struct.update),
    };
}
export class LexIntentTimeoutsOutputReference 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._create !== undefined) {
            hasAnyValues = true;
            internalValueResult.create = this._create;
        }
        if (this._delete !== undefined) {
            hasAnyValues = true;
            internalValueResult.delete = this._delete;
        }
        if (this._update !== undefined) {
            hasAnyValues = true;
            internalValueResult.update = this._update;
        }
        return hasAnyValues ? internalValueResult : undefined;
    }
    set internalValue(value) {
        if (value === undefined) {
            this.isEmptyObject = false;
            this._create = undefined;
            this._delete = undefined;
            this._update = undefined;
        }
        else {
            this.isEmptyObject = Object.keys(value).length === 0;
            this._create = value.create;
            this._delete = value.delete;
            this._update = value.update;
        }
    }
    // create - computed: false, optional: true, required: false
    _create;
    get create() {
        return this.getStringAttribute('create');
    }
    set create(value) {
        this._create = value;
    }
    resetCreate() {
        this._create = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get createInput() {
        return this._create;
    }
    // delete - computed: false, optional: true, required: false
    _delete;
    get delete() {
        return this.getStringAttribute('delete');
    }
    set delete(value) {
        this._delete = value;
    }
    resetDelete() {
        this._delete = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get deleteInput() {
        return this._delete;
    }
    // update - computed: false, optional: true, required: false
    _update;
    get update() {
        return this.getStringAttribute('update');
    }
    set update(value) {
        this._update = value;
    }
    resetUpdate() {
        this._update = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get updateInput() {
        return this._update;
    }
}
/**
* Represents a {@link https://www.terraform.io/docs/providers/aws/r/lex_intent aws_lex_intent}
*/
export class LexIntent extends cdktf.TerraformResource {
    // =================
    // STATIC PROPERTIES
    // =================
    static tfResourceType = "aws_lex_intent";
    // ===========
    // INITIALIZER
    // ===========
    /**
    * Create a new {@link https://www.terraform.io/docs/providers/aws/r/lex_intent aws_lex_intent} 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 LexIntentConfig
    */
    constructor(scope, id, config) {
        super(scope, id, {
            terraformResourceType: 'aws_lex_intent',
            terraformGeneratorMetadata: {
                providerName: 'aws'
            },
            provider: config.provider,
            dependsOn: config.dependsOn,
            count: config.count,
            lifecycle: config.lifecycle
        });
        this._createVersion = config.createVersion;
        this._description = config.description;
        this._name = config.name;
        this._parentIntentSignature = config.parentIntentSignature;
        this._sampleUtterances = config.sampleUtterances;
        this._conclusionStatement.internalValue = config.conclusionStatement;
        this._confirmationPrompt.internalValue = config.confirmationPrompt;
        this._dialogCodeHook.internalValue = config.dialogCodeHook;
        this._followUpPrompt.internalValue = config.followUpPrompt;
        this._fulfillmentActivity.internalValue = config.fulfillmentActivity;
        this._rejectionStatement.internalValue = config.rejectionStatement;
        this._slot = config.slot;
        this._timeouts.internalValue = config.timeouts;
    }
    // ==========
    // ATTRIBUTES
    // ==========
    // arn - computed: true, optional: false, required: false
    get arn() {
        return this.getStringAttribute('arn');
    }
    // checksum - computed: true, optional: false, required: false
    get checksum() {
        return this.getStringAttribute('checksum');
    }
    // create_version - computed: false, optional: true, required: false
    _createVersion;
    get createVersion() {
        return this.getBooleanAttribute('create_version');
    }
    set createVersion(value) {
        this._createVersion = value;
    }
    resetCreateVersion() {
        this._createVersion = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get createVersionInput() {
        return this._createVersion;
    }
    // created_date - computed: true, optional: false, required: false
    get createdDate() {
        return this.getStringAttribute('created_date');
    }
    // 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');
    }
    // last_updated_date - computed: true, optional: false, required: false
    get lastUpdatedDate() {
        return this.getStringAttribute('last_updated_date');
    }
    // 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;
    }
    // parent_intent_signature - computed: false, optional: true, required: false
    _parentIntentSignature;
    get parentIntentSignature() {
        return this.getStringAttribute('parent_intent_signature');
    }
    set parentIntentSignature(value) {
        this._parentIntentSignature = value;
    }
    resetParentIntentSignature() {
        this._parentIntentSignature = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get parentIntentSignatureInput() {
        return this._parentIntentSignature;
    }
    // sample_utterances - computed: false, optional: true, required: false
    _sampleUtterances;
    get sampleUtterances() {
        return cdktf.Fn.tolist(this.getListAttribute('sample_utterances'));
    }
    set sampleUtterances(value) {
        this._sampleUtterances = value;
    }
    resetSampleUtterances() {
        this._sampleUtterances = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get sampleUtterancesInput() {
        return this._sampleUtterances;
    }
    // version - computed: true, optional: false, required: false
    get version() {
        return this.getStringAttribute('version');
    }
    // conclusion_statement - computed: false, optional: true, required: false
    _conclusionStatement = new LexIntentConclusionStatementOutputReference(this, "conclusion_statement", true);
    get conclusionStatement() {
        return this._conclusionStatement;
    }
    putConclusionStatement(value) {
        this._conclusionStatement.internalValue = value;
    }
    resetConclusionStatement() {
        this._conclusionStatement.internalValue = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get conclusionStatementInput() {
        return this._conclusionStatement.internalValue;
    }
    // confirmation_prompt - computed: false, optional: true, required: false
    _confirmationPrompt = new LexIntentConfirmationPromptOutputReference(this, "confirmation_prompt", true);
    get confirmationPrompt() {
        return this._confirmationPrompt;
    }
    putConfirmationPrompt(value) {
        this._confirmationPrompt.internalValue = value;
    }
    resetConfirmationPrompt() {
        this._confirmationPrompt.internalValue = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get confirmationPromptInput() {
        return this._confirmationPrompt.internalValue;
    }
    // dialog_code_hook - computed: false, optional: true, required: false
    _dialogCodeHook = new LexIntentDialogCodeHookOutputReference(this, "dialog_code_hook", true);
    get dialogCodeHook() {
        return this._dialogCodeHook;
    }
    putDialogCodeHook(value) {
        this._dialogCodeHook.internalValue = value;
    }
    resetDialogCodeHook() {
        this._dialogCodeHook.internalValue = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get dialogCodeHookInput() {
        return this._dialogCodeHook.internalValue;
    }
    // follow_up_prompt - computed: false, optional: true, required: false
    _followUpPrompt = new LexIntentFollowUpPromptOutputReference(this, "follow_up_prompt", true);
    get followUpPrompt() {
        return this._followUpPrompt;
    }
    putFollowUpPrompt(value) {
        this._followUpPrompt.internalValue = value;
    }
    resetFollowUpPrompt() {
        this._followUpPrompt.internalValue = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get followUpPromptInput() {
        return this._followUpPrompt.internalValue;
    }
    // fulfillment_activity - computed: false, optional: false, required: true
    _fulfillmentActivity = new LexIntentFulfillmentActivityOutputReference(this, "fulfillment_activity", true);
    get fulfillmentActivity() {
        return this._fulfillmentActivity;
    }
    putFulfillmentActivity(value) {
        this._fulfillmentActivity.internalValue = value;
    }
    // Temporarily expose input value. Use with caution.
    get fulfillmentActivityInput() {
        return this._fulfillmentActivity.internalValue;
    }
    // rejection_statement - computed: false, optional: true, required: false
    _rejectionStatement = new LexIntentRejectionStatementOutputReference(this, "rejection_statement", true);
    get rejectionStatement() {
        return this._rejectionStatement;
    }
    putRejectionStatement(value) {
        this._rejectionStatement.internalValue = value;
    }
    resetRejectionStatement() {
        this._rejectionStatement.internalValue = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get rejectionStatementInput() {
        return this._rejectionStatement.internalValue;
    }
    // slot - computed: false, optional: true, required: false
    _slot;
    get slot() {
        // Getting the computed value is not yet implemented
        return cdktf.Token.asAny(cdktf.Fn.tolist(this.interpolationForAttribute('slot')));
    }
    set slot(value) {
        this._slot = value;
    }
    resetSlot() {
        this._slot = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get slotInput() {
        return this._slot;
    }
    // timeouts - computed: false, optional: true, required: false
    _timeouts = new LexIntentTimeoutsOutputReference(this, "timeouts", true);
    get timeouts() {
        return this._timeouts;
    }
    putTimeouts(value) {
        this._timeouts.internalValue = value;
    }
    resetTimeouts() {
        this._timeouts.internalValue = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get timeoutsInput() {
        return this._timeouts.internalValue;
    }
    // =========
    // SYNTHESIS
    // =========
    synthesizeAttributes() {
        return {
            create_version: cdktf.booleanToTerraform(this._createVersion),
            description: cdktf.stringToTerraform(this._description),
            name: cdktf.stringToTerraform(this._name),
            parent_intent_signature: cdktf.stringToTerraform(this._parentIntentSignature),
            sample_utterances: cdktf.listMapper(cdktf.stringToTerraform)(this._sampleUtterances),
            conclusion_statement: lexIntentConclusionStatementToTerraform(this._conclusionStatement.internalValue),
            confirmation_prompt: lexIntentConfirmationPromptToTerraform(this._confirmationPrompt.internalValue),
            dialog_code_hook: lexIntentDialogCodeHookToTerraform(this._dialogCodeHook.internalValue),
            follow_up_prompt: lexIntentFollowUpPromptToTerraform(this._followUpPrompt.internalValue),
            fulfillment_activity: lexIntentFulfillmentActivityToTerraform(this._fulfillmentActivity.internalValue),
            rejection_statement: lexIntentRejectionStatementToTerraform(this._rejectionStatement.internalValue),
            slot: cdktf.listMapper(lexIntentSlotToTerraform)(this._slot),
            timeouts: lexIntentTimeoutsToTerraform(this._timeouts.internalValue),
        };
    }
}
//# sourceMappingURL=lex-intent.js.map