UNPKG

@cdktf/provider-google

Version:

Prebuilt google Provider for Terraform CDK (cdktf)

954 lines 627 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13; Object.defineProperty(exports, "__esModule", { value: true }); exports.dialogflowCxFlowEventHandlersToHclTerraform = exports.dialogflowCxFlowEventHandlersToTerraform = exports.DialogflowCxFlowEventHandlersTriggerFulfillmentOutputReference = exports.dialogflowCxFlowEventHandlersTriggerFulfillmentToHclTerraform = exports.dialogflowCxFlowEventHandlersTriggerFulfillmentToTerraform = exports.DialogflowCxFlowEventHandlersTriggerFulfillmentSetParameterActionsList = exports.DialogflowCxFlowEventHandlersTriggerFulfillmentSetParameterActionsOutputReference = exports.dialogflowCxFlowEventHandlersTriggerFulfillmentSetParameterActionsToHclTerraform = exports.dialogflowCxFlowEventHandlersTriggerFulfillmentSetParameterActionsToTerraform = exports.DialogflowCxFlowEventHandlersTriggerFulfillmentMessagesList = exports.DialogflowCxFlowEventHandlersTriggerFulfillmentMessagesOutputReference = exports.dialogflowCxFlowEventHandlersTriggerFulfillmentMessagesToHclTerraform = exports.dialogflowCxFlowEventHandlersTriggerFulfillmentMessagesToTerraform = exports.DialogflowCxFlowEventHandlersTriggerFulfillmentMessagesTextOutputReference = exports.dialogflowCxFlowEventHandlersTriggerFulfillmentMessagesTextToHclTerraform = exports.dialogflowCxFlowEventHandlersTriggerFulfillmentMessagesTextToTerraform = exports.DialogflowCxFlowEventHandlersTriggerFulfillmentMessagesTelephonyTransferCallOutputReference = exports.dialogflowCxFlowEventHandlersTriggerFulfillmentMessagesTelephonyTransferCallToHclTerraform = exports.dialogflowCxFlowEventHandlersTriggerFulfillmentMessagesTelephonyTransferCallToTerraform = exports.DialogflowCxFlowEventHandlersTriggerFulfillmentMessagesPlayAudioOutputReference = exports.dialogflowCxFlowEventHandlersTriggerFulfillmentMessagesPlayAudioToHclTerraform = exports.dialogflowCxFlowEventHandlersTriggerFulfillmentMessagesPlayAudioToTerraform = exports.DialogflowCxFlowEventHandlersTriggerFulfillmentMessagesOutputAudioTextOutputReference = exports.dialogflowCxFlowEventHandlersTriggerFulfillmentMessagesOutputAudioTextToHclTerraform = exports.dialogflowCxFlowEventHandlersTriggerFulfillmentMessagesOutputAudioTextToTerraform = exports.DialogflowCxFlowEventHandlersTriggerFulfillmentMessagesLiveAgentHandoffOutputReference = exports.dialogflowCxFlowEventHandlersTriggerFulfillmentMessagesLiveAgentHandoffToHclTerraform = exports.dialogflowCxFlowEventHandlersTriggerFulfillmentMessagesLiveAgentHandoffToTerraform = exports.DialogflowCxFlowEventHandlersTriggerFulfillmentMessagesConversationSuccessOutputReference = exports.dialogflowCxFlowEventHandlersTriggerFulfillmentMessagesConversationSuccessToHclTerraform = exports.dialogflowCxFlowEventHandlersTriggerFulfillmentMessagesConversationSuccessToTerraform = exports.DialogflowCxFlowEventHandlersTriggerFulfillmentConditionalCasesList = exports.DialogflowCxFlowEventHandlersTriggerFulfillmentConditionalCasesOutputReference = exports.dialogflowCxFlowEventHandlersTriggerFulfillmentConditionalCasesToHclTerraform = exports.dialogflowCxFlowEventHandlersTriggerFulfillmentConditionalCasesToTerraform = exports.DialogflowCxFlowAdvancedSettingsOutputReference = exports.dialogflowCxFlowAdvancedSettingsToHclTerraform = exports.dialogflowCxFlowAdvancedSettingsToTerraform = exports.DialogflowCxFlowAdvancedSettingsSpeechSettingsOutputReference = exports.dialogflowCxFlowAdvancedSettingsSpeechSettingsToHclTerraform = exports.dialogflowCxFlowAdvancedSettingsSpeechSettingsToTerraform = exports.DialogflowCxFlowAdvancedSettingsLoggingSettingsOutputReference = exports.dialogflowCxFlowAdvancedSettingsLoggingSettingsToHclTerraform = exports.dialogflowCxFlowAdvancedSettingsLoggingSettingsToTerraform = exports.DialogflowCxFlowAdvancedSettingsDtmfSettingsOutputReference = exports.dialogflowCxFlowAdvancedSettingsDtmfSettingsToHclTerraform = exports.dialogflowCxFlowAdvancedSettingsDtmfSettingsToTerraform = exports.DialogflowCxFlowAdvancedSettingsAudioExportGcsDestinationOutputReference = exports.dialogflowCxFlowAdvancedSettingsAudioExportGcsDestinationToHclTerraform = exports.dialogflowCxFlowAdvancedSettingsAudioExportGcsDestinationToTerraform = void 0; exports.DialogflowCxFlow = exports.DialogflowCxFlowTransitionRoutesList = exports.DialogflowCxFlowTransitionRoutesOutputReference = exports.dialogflowCxFlowTransitionRoutesToHclTerraform = exports.dialogflowCxFlowTransitionRoutesToTerraform = exports.DialogflowCxFlowTransitionRoutesTriggerFulfillmentOutputReference = exports.dialogflowCxFlowTransitionRoutesTriggerFulfillmentToHclTerraform = exports.dialogflowCxFlowTransitionRoutesTriggerFulfillmentToTerraform = exports.DialogflowCxFlowTransitionRoutesTriggerFulfillmentSetParameterActionsList = exports.DialogflowCxFlowTransitionRoutesTriggerFulfillmentSetParameterActionsOutputReference = exports.dialogflowCxFlowTransitionRoutesTriggerFulfillmentSetParameterActionsToHclTerraform = exports.dialogflowCxFlowTransitionRoutesTriggerFulfillmentSetParameterActionsToTerraform = exports.DialogflowCxFlowTransitionRoutesTriggerFulfillmentMessagesList = exports.DialogflowCxFlowTransitionRoutesTriggerFulfillmentMessagesOutputReference = exports.dialogflowCxFlowTransitionRoutesTriggerFulfillmentMessagesToHclTerraform = exports.dialogflowCxFlowTransitionRoutesTriggerFulfillmentMessagesToTerraform = exports.DialogflowCxFlowTransitionRoutesTriggerFulfillmentMessagesTextOutputReference = exports.dialogflowCxFlowTransitionRoutesTriggerFulfillmentMessagesTextToHclTerraform = exports.dialogflowCxFlowTransitionRoutesTriggerFulfillmentMessagesTextToTerraform = exports.DialogflowCxFlowTransitionRoutesTriggerFulfillmentMessagesTelephonyTransferCallOutputReference = exports.dialogflowCxFlowTransitionRoutesTriggerFulfillmentMessagesTelephonyTransferCallToHclTerraform = exports.dialogflowCxFlowTransitionRoutesTriggerFulfillmentMessagesTelephonyTransferCallToTerraform = exports.DialogflowCxFlowTransitionRoutesTriggerFulfillmentMessagesPlayAudioOutputReference = exports.dialogflowCxFlowTransitionRoutesTriggerFulfillmentMessagesPlayAudioToHclTerraform = exports.dialogflowCxFlowTransitionRoutesTriggerFulfillmentMessagesPlayAudioToTerraform = exports.DialogflowCxFlowTransitionRoutesTriggerFulfillmentMessagesOutputAudioTextOutputReference = exports.dialogflowCxFlowTransitionRoutesTriggerFulfillmentMessagesOutputAudioTextToHclTerraform = exports.dialogflowCxFlowTransitionRoutesTriggerFulfillmentMessagesOutputAudioTextToTerraform = exports.DialogflowCxFlowTransitionRoutesTriggerFulfillmentMessagesLiveAgentHandoffOutputReference = exports.dialogflowCxFlowTransitionRoutesTriggerFulfillmentMessagesLiveAgentHandoffToHclTerraform = exports.dialogflowCxFlowTransitionRoutesTriggerFulfillmentMessagesLiveAgentHandoffToTerraform = exports.DialogflowCxFlowTransitionRoutesTriggerFulfillmentMessagesConversationSuccessOutputReference = exports.dialogflowCxFlowTransitionRoutesTriggerFulfillmentMessagesConversationSuccessToHclTerraform = exports.dialogflowCxFlowTransitionRoutesTriggerFulfillmentMessagesConversationSuccessToTerraform = exports.DialogflowCxFlowTransitionRoutesTriggerFulfillmentConditionalCasesList = exports.DialogflowCxFlowTransitionRoutesTriggerFulfillmentConditionalCasesOutputReference = exports.dialogflowCxFlowTransitionRoutesTriggerFulfillmentConditionalCasesToHclTerraform = exports.dialogflowCxFlowTransitionRoutesTriggerFulfillmentConditionalCasesToTerraform = exports.DialogflowCxFlowTimeoutsOutputReference = exports.dialogflowCxFlowTimeoutsToHclTerraform = exports.dialogflowCxFlowTimeoutsToTerraform = exports.DialogflowCxFlowNluSettingsOutputReference = exports.dialogflowCxFlowNluSettingsToHclTerraform = exports.dialogflowCxFlowNluSettingsToTerraform = exports.DialogflowCxFlowEventHandlersList = exports.DialogflowCxFlowEventHandlersOutputReference = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function dialogflowCxFlowAdvancedSettingsAudioExportGcsDestinationToTerraform(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 { uri: cdktf.stringToTerraform(struct.uri), }; } exports.dialogflowCxFlowAdvancedSettingsAudioExportGcsDestinationToTerraform = dialogflowCxFlowAdvancedSettingsAudioExportGcsDestinationToTerraform; function dialogflowCxFlowAdvancedSettingsAudioExportGcsDestinationToHclTerraform(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"); } const attrs = { uri: { value: cdktf.stringToHclTerraform(struct.uri), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.dialogflowCxFlowAdvancedSettingsAudioExportGcsDestinationToHclTerraform = dialogflowCxFlowAdvancedSettingsAudioExportGcsDestinationToHclTerraform; class DialogflowCxFlowAdvancedSettingsAudioExportGcsDestinationOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._uri !== undefined) { hasAnyValues = true; internalValueResult.uri = this._uri; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._uri = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._uri = value.uri; } } get uri() { return this.getStringAttribute('uri'); } set uri(value) { this._uri = value; } resetUri() { this._uri = undefined; } // Temporarily expose input value. Use with caution. get uriInput() { return this._uri; } } exports.DialogflowCxFlowAdvancedSettingsAudioExportGcsDestinationOutputReference = DialogflowCxFlowAdvancedSettingsAudioExportGcsDestinationOutputReference; _a = JSII_RTTI_SYMBOL_1; DialogflowCxFlowAdvancedSettingsAudioExportGcsDestinationOutputReference[_a] = { fqn: "@cdktf/provider-google.dialogflowCxFlow.DialogflowCxFlowAdvancedSettingsAudioExportGcsDestinationOutputReference", version: "14.12.0" }; function dialogflowCxFlowAdvancedSettingsDtmfSettingsToTerraform(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 { enabled: cdktf.booleanToTerraform(struct.enabled), finish_digit: cdktf.stringToTerraform(struct.finishDigit), max_digits: cdktf.numberToTerraform(struct.maxDigits), }; } exports.dialogflowCxFlowAdvancedSettingsDtmfSettingsToTerraform = dialogflowCxFlowAdvancedSettingsDtmfSettingsToTerraform; function dialogflowCxFlowAdvancedSettingsDtmfSettingsToHclTerraform(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"); } const attrs = { enabled: { value: cdktf.booleanToHclTerraform(struct.enabled), isBlock: false, type: "simple", storageClassType: "boolean", }, finish_digit: { value: cdktf.stringToHclTerraform(struct.finishDigit), isBlock: false, type: "simple", storageClassType: "string", }, max_digits: { value: cdktf.numberToHclTerraform(struct.maxDigits), isBlock: false, type: "simple", storageClassType: "number", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.dialogflowCxFlowAdvancedSettingsDtmfSettingsToHclTerraform = dialogflowCxFlowAdvancedSettingsDtmfSettingsToHclTerraform; class DialogflowCxFlowAdvancedSettingsDtmfSettingsOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._enabled !== undefined) { hasAnyValues = true; internalValueResult.enabled = this._enabled; } if (this._finishDigit !== undefined) { hasAnyValues = true; internalValueResult.finishDigit = this._finishDigit; } if (this._maxDigits !== undefined) { hasAnyValues = true; internalValueResult.maxDigits = this._maxDigits; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._enabled = undefined; this._finishDigit = undefined; this._maxDigits = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._enabled = value.enabled; this._finishDigit = value.finishDigit; this._maxDigits = value.maxDigits; } } get enabled() { return this.getBooleanAttribute('enabled'); } set enabled(value) { this._enabled = value; } resetEnabled() { this._enabled = undefined; } // Temporarily expose input value. Use with caution. get enabledInput() { return this._enabled; } get finishDigit() { return this.getStringAttribute('finish_digit'); } set finishDigit(value) { this._finishDigit = value; } resetFinishDigit() { this._finishDigit = undefined; } // Temporarily expose input value. Use with caution. get finishDigitInput() { return this._finishDigit; } get maxDigits() { return this.getNumberAttribute('max_digits'); } set maxDigits(value) { this._maxDigits = value; } resetMaxDigits() { this._maxDigits = undefined; } // Temporarily expose input value. Use with caution. get maxDigitsInput() { return this._maxDigits; } } exports.DialogflowCxFlowAdvancedSettingsDtmfSettingsOutputReference = DialogflowCxFlowAdvancedSettingsDtmfSettingsOutputReference; _b = JSII_RTTI_SYMBOL_1; DialogflowCxFlowAdvancedSettingsDtmfSettingsOutputReference[_b] = { fqn: "@cdktf/provider-google.dialogflowCxFlow.DialogflowCxFlowAdvancedSettingsDtmfSettingsOutputReference", version: "14.12.0" }; function dialogflowCxFlowAdvancedSettingsLoggingSettingsToTerraform(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 { enable_consent_based_redaction: cdktf.booleanToTerraform(struct.enableConsentBasedRedaction), enable_interaction_logging: cdktf.booleanToTerraform(struct.enableInteractionLogging), enable_stackdriver_logging: cdktf.booleanToTerraform(struct.enableStackdriverLogging), }; } exports.dialogflowCxFlowAdvancedSettingsLoggingSettingsToTerraform = dialogflowCxFlowAdvancedSettingsLoggingSettingsToTerraform; function dialogflowCxFlowAdvancedSettingsLoggingSettingsToHclTerraform(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"); } const attrs = { enable_consent_based_redaction: { value: cdktf.booleanToHclTerraform(struct.enableConsentBasedRedaction), isBlock: false, type: "simple", storageClassType: "boolean", }, enable_interaction_logging: { value: cdktf.booleanToHclTerraform(struct.enableInteractionLogging), isBlock: false, type: "simple", storageClassType: "boolean", }, enable_stackdriver_logging: { value: cdktf.booleanToHclTerraform(struct.enableStackdriverLogging), isBlock: false, type: "simple", storageClassType: "boolean", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.dialogflowCxFlowAdvancedSettingsLoggingSettingsToHclTerraform = dialogflowCxFlowAdvancedSettingsLoggingSettingsToHclTerraform; class DialogflowCxFlowAdvancedSettingsLoggingSettingsOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._enableConsentBasedRedaction !== undefined) { hasAnyValues = true; internalValueResult.enableConsentBasedRedaction = this._enableConsentBasedRedaction; } if (this._enableInteractionLogging !== undefined) { hasAnyValues = true; internalValueResult.enableInteractionLogging = this._enableInteractionLogging; } if (this._enableStackdriverLogging !== undefined) { hasAnyValues = true; internalValueResult.enableStackdriverLogging = this._enableStackdriverLogging; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._enableConsentBasedRedaction = undefined; this._enableInteractionLogging = undefined; this._enableStackdriverLogging = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._enableConsentBasedRedaction = value.enableConsentBasedRedaction; this._enableInteractionLogging = value.enableInteractionLogging; this._enableStackdriverLogging = value.enableStackdriverLogging; } } get enableConsentBasedRedaction() { return this.getBooleanAttribute('enable_consent_based_redaction'); } set enableConsentBasedRedaction(value) { this._enableConsentBasedRedaction = value; } resetEnableConsentBasedRedaction() { this._enableConsentBasedRedaction = undefined; } // Temporarily expose input value. Use with caution. get enableConsentBasedRedactionInput() { return this._enableConsentBasedRedaction; } get enableInteractionLogging() { return this.getBooleanAttribute('enable_interaction_logging'); } set enableInteractionLogging(value) { this._enableInteractionLogging = value; } resetEnableInteractionLogging() { this._enableInteractionLogging = undefined; } // Temporarily expose input value. Use with caution. get enableInteractionLoggingInput() { return this._enableInteractionLogging; } get enableStackdriverLogging() { return this.getBooleanAttribute('enable_stackdriver_logging'); } set enableStackdriverLogging(value) { this._enableStackdriverLogging = value; } resetEnableStackdriverLogging() { this._enableStackdriverLogging = undefined; } // Temporarily expose input value. Use with caution. get enableStackdriverLoggingInput() { return this._enableStackdriverLogging; } } exports.DialogflowCxFlowAdvancedSettingsLoggingSettingsOutputReference = DialogflowCxFlowAdvancedSettingsLoggingSettingsOutputReference; _c = JSII_RTTI_SYMBOL_1; DialogflowCxFlowAdvancedSettingsLoggingSettingsOutputReference[_c] = { fqn: "@cdktf/provider-google.dialogflowCxFlow.DialogflowCxFlowAdvancedSettingsLoggingSettingsOutputReference", version: "14.12.0" }; function dialogflowCxFlowAdvancedSettingsSpeechSettingsToTerraform(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 { endpointer_sensitivity: cdktf.numberToTerraform(struct.endpointerSensitivity), models: cdktf.hashMapper(cdktf.stringToTerraform)(struct.models), no_speech_timeout: cdktf.stringToTerraform(struct.noSpeechTimeout), use_timeout_based_endpointing: cdktf.booleanToTerraform(struct.useTimeoutBasedEndpointing), }; } exports.dialogflowCxFlowAdvancedSettingsSpeechSettingsToTerraform = dialogflowCxFlowAdvancedSettingsSpeechSettingsToTerraform; function dialogflowCxFlowAdvancedSettingsSpeechSettingsToHclTerraform(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"); } const attrs = { endpointer_sensitivity: { value: cdktf.numberToHclTerraform(struct.endpointerSensitivity), isBlock: false, type: "simple", storageClassType: "number", }, models: { value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(struct.models), isBlock: false, type: "map", storageClassType: "stringMap", }, no_speech_timeout: { value: cdktf.stringToHclTerraform(struct.noSpeechTimeout), isBlock: false, type: "simple", storageClassType: "string", }, use_timeout_based_endpointing: { value: cdktf.booleanToHclTerraform(struct.useTimeoutBasedEndpointing), isBlock: false, type: "simple", storageClassType: "boolean", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.dialogflowCxFlowAdvancedSettingsSpeechSettingsToHclTerraform = dialogflowCxFlowAdvancedSettingsSpeechSettingsToHclTerraform; class DialogflowCxFlowAdvancedSettingsSpeechSettingsOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._endpointerSensitivity !== undefined) { hasAnyValues = true; internalValueResult.endpointerSensitivity = this._endpointerSensitivity; } if (this._models !== undefined) { hasAnyValues = true; internalValueResult.models = this._models; } if (this._noSpeechTimeout !== undefined) { hasAnyValues = true; internalValueResult.noSpeechTimeout = this._noSpeechTimeout; } if (this._useTimeoutBasedEndpointing !== undefined) { hasAnyValues = true; internalValueResult.useTimeoutBasedEndpointing = this._useTimeoutBasedEndpointing; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._endpointerSensitivity = undefined; this._models = undefined; this._noSpeechTimeout = undefined; this._useTimeoutBasedEndpointing = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._endpointerSensitivity = value.endpointerSensitivity; this._models = value.models; this._noSpeechTimeout = value.noSpeechTimeout; this._useTimeoutBasedEndpointing = value.useTimeoutBasedEndpointing; } } get endpointerSensitivity() { return this.getNumberAttribute('endpointer_sensitivity'); } set endpointerSensitivity(value) { this._endpointerSensitivity = value; } resetEndpointerSensitivity() { this._endpointerSensitivity = undefined; } // Temporarily expose input value. Use with caution. get endpointerSensitivityInput() { return this._endpointerSensitivity; } get models() { return this.getStringMapAttribute('models'); } set models(value) { this._models = value; } resetModels() { this._models = undefined; } // Temporarily expose input value. Use with caution. get modelsInput() { return this._models; } get noSpeechTimeout() { return this.getStringAttribute('no_speech_timeout'); } set noSpeechTimeout(value) { this._noSpeechTimeout = value; } resetNoSpeechTimeout() { this._noSpeechTimeout = undefined; } // Temporarily expose input value. Use with caution. get noSpeechTimeoutInput() { return this._noSpeechTimeout; } get useTimeoutBasedEndpointing() { return this.getBooleanAttribute('use_timeout_based_endpointing'); } set useTimeoutBasedEndpointing(value) { this._useTimeoutBasedEndpointing = value; } resetUseTimeoutBasedEndpointing() { this._useTimeoutBasedEndpointing = undefined; } // Temporarily expose input value. Use with caution. get useTimeoutBasedEndpointingInput() { return this._useTimeoutBasedEndpointing; } } exports.DialogflowCxFlowAdvancedSettingsSpeechSettingsOutputReference = DialogflowCxFlowAdvancedSettingsSpeechSettingsOutputReference; _d = JSII_RTTI_SYMBOL_1; DialogflowCxFlowAdvancedSettingsSpeechSettingsOutputReference[_d] = { fqn: "@cdktf/provider-google.dialogflowCxFlow.DialogflowCxFlowAdvancedSettingsSpeechSettingsOutputReference", version: "14.12.0" }; function dialogflowCxFlowAdvancedSettingsToTerraform(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 { audio_export_gcs_destination: dialogflowCxFlowAdvancedSettingsAudioExportGcsDestinationToTerraform(struct.audioExportGcsDestination), dtmf_settings: dialogflowCxFlowAdvancedSettingsDtmfSettingsToTerraform(struct.dtmfSettings), logging_settings: dialogflowCxFlowAdvancedSettingsLoggingSettingsToTerraform(struct.loggingSettings), speech_settings: dialogflowCxFlowAdvancedSettingsSpeechSettingsToTerraform(struct.speechSettings), }; } exports.dialogflowCxFlowAdvancedSettingsToTerraform = dialogflowCxFlowAdvancedSettingsToTerraform; function dialogflowCxFlowAdvancedSettingsToHclTerraform(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"); } const attrs = { audio_export_gcs_destination: { value: dialogflowCxFlowAdvancedSettingsAudioExportGcsDestinationToHclTerraform(struct.audioExportGcsDestination), isBlock: true, type: "list", storageClassType: "DialogflowCxFlowAdvancedSettingsAudioExportGcsDestinationList", }, dtmf_settings: { value: dialogflowCxFlowAdvancedSettingsDtmfSettingsToHclTerraform(struct.dtmfSettings), isBlock: true, type: "list", storageClassType: "DialogflowCxFlowAdvancedSettingsDtmfSettingsList", }, logging_settings: { value: dialogflowCxFlowAdvancedSettingsLoggingSettingsToHclTerraform(struct.loggingSettings), isBlock: true, type: "list", storageClassType: "DialogflowCxFlowAdvancedSettingsLoggingSettingsList", }, speech_settings: { value: dialogflowCxFlowAdvancedSettingsSpeechSettingsToHclTerraform(struct.speechSettings), isBlock: true, type: "list", storageClassType: "DialogflowCxFlowAdvancedSettingsSpeechSettingsList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.dialogflowCxFlowAdvancedSettingsToHclTerraform = dialogflowCxFlowAdvancedSettingsToHclTerraform; class DialogflowCxFlowAdvancedSettingsOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; // audio_export_gcs_destination - computed: false, optional: true, required: false this._audioExportGcsDestination = new DialogflowCxFlowAdvancedSettingsAudioExportGcsDestinationOutputReference(this, "audio_export_gcs_destination"); // dtmf_settings - computed: false, optional: true, required: false this._dtmfSettings = new DialogflowCxFlowAdvancedSettingsDtmfSettingsOutputReference(this, "dtmf_settings"); // logging_settings - computed: false, optional: true, required: false this._loggingSettings = new DialogflowCxFlowAdvancedSettingsLoggingSettingsOutputReference(this, "logging_settings"); // speech_settings - computed: false, optional: true, required: false this._speechSettings = new DialogflowCxFlowAdvancedSettingsSpeechSettingsOutputReference(this, "speech_settings"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._audioExportGcsDestination?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.audioExportGcsDestination = this._audioExportGcsDestination?.internalValue; } if (this._dtmfSettings?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.dtmfSettings = this._dtmfSettings?.internalValue; } if (this._loggingSettings?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.loggingSettings = this._loggingSettings?.internalValue; } if (this._speechSettings?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.speechSettings = this._speechSettings?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._audioExportGcsDestination.internalValue = undefined; this._dtmfSettings.internalValue = undefined; this._loggingSettings.internalValue = undefined; this._speechSettings.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._audioExportGcsDestination.internalValue = value.audioExportGcsDestination; this._dtmfSettings.internalValue = value.dtmfSettings; this._loggingSettings.internalValue = value.loggingSettings; this._speechSettings.internalValue = value.speechSettings; } } get audioExportGcsDestination() { return this._audioExportGcsDestination; } putAudioExportGcsDestination(value) { this._audioExportGcsDestination.internalValue = value; } resetAudioExportGcsDestination() { this._audioExportGcsDestination.internalValue = undefined; } // Temporarily expose input value. Use with caution. get audioExportGcsDestinationInput() { return this._audioExportGcsDestination.internalValue; } get dtmfSettings() { return this._dtmfSettings; } putDtmfSettings(value) { this._dtmfSettings.internalValue = value; } resetDtmfSettings() { this._dtmfSettings.internalValue = undefined; } // Temporarily expose input value. Use with caution. get dtmfSettingsInput() { return this._dtmfSettings.internalValue; } get loggingSettings() { return this._loggingSettings; } putLoggingSettings(value) { this._loggingSettings.internalValue = value; } resetLoggingSettings() { this._loggingSettings.internalValue = undefined; } // Temporarily expose input value. Use with caution. get loggingSettingsInput() { return this._loggingSettings.internalValue; } get speechSettings() { return this._speechSettings; } putSpeechSettings(value) { this._speechSettings.internalValue = value; } resetSpeechSettings() { this._speechSettings.internalValue = undefined; } // Temporarily expose input value. Use with caution. get speechSettingsInput() { return this._speechSettings.internalValue; } } exports.DialogflowCxFlowAdvancedSettingsOutputReference = DialogflowCxFlowAdvancedSettingsOutputReference; _e = JSII_RTTI_SYMBOL_1; DialogflowCxFlowAdvancedSettingsOutputReference[_e] = { fqn: "@cdktf/provider-google.dialogflowCxFlow.DialogflowCxFlowAdvancedSettingsOutputReference", version: "14.12.0" }; function dialogflowCxFlowEventHandlersTriggerFulfillmentConditionalCasesToTerraform(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 { cases: cdktf.stringToTerraform(struct.cases), }; } exports.dialogflowCxFlowEventHandlersTriggerFulfillmentConditionalCasesToTerraform = dialogflowCxFlowEventHandlersTriggerFulfillmentConditionalCasesToTerraform; function dialogflowCxFlowEventHandlersTriggerFulfillmentConditionalCasesToHclTerraform(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"); } const attrs = { cases: { value: cdktf.stringToHclTerraform(struct.cases), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.dialogflowCxFlowEventHandlersTriggerFulfillmentConditionalCasesToHclTerraform = dialogflowCxFlowEventHandlersTriggerFulfillmentConditionalCasesToHclTerraform; class DialogflowCxFlowEventHandlersTriggerFulfillmentConditionalCasesOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) { super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex); this.isEmptyObject = false; } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._cases !== undefined) { hasAnyValues = true; internalValueResult.cases = this._cases; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._cases = undefined; } else if (cdktf.Tokenization.isResolvable(value)) { this.isEmptyObject = false; this.resolvableValue = value; } else { this.isEmptyObject = Object.keys(value).length === 0; this.resolvableValue = undefined; this._cases = value.cases; } } get cases() { return this.getStringAttribute('cases'); } set cases(value) { this._cases = value; } resetCases() { this._cases = undefined; } // Temporarily expose input value. Use with caution. get casesInput() { return this._cases; } } exports.DialogflowCxFlowEventHandlersTriggerFulfillmentConditionalCasesOutputReference = DialogflowCxFlowEventHandlersTriggerFulfillmentConditionalCasesOutputReference; _f = JSII_RTTI_SYMBOL_1; DialogflowCxFlowEventHandlersTriggerFulfillmentConditionalCasesOutputReference[_f] = { fqn: "@cdktf/provider-google.dialogflowCxFlow.DialogflowCxFlowEventHandlersTriggerFulfillmentConditionalCasesOutputReference", version: "14.12.0" }; class DialogflowCxFlowEventHandlersTriggerFulfillmentConditionalCasesList extends cdktf.ComplexList { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, wrapsSet) { super(terraformResource, terraformAttribute, wrapsSet); this.terraformResource = terraformResource; this.terraformAttribute = terraformAttribute; this.wrapsSet = wrapsSet; } /** * @param index the index of the item to return */ get(index) { return new DialogflowCxFlowEventHandlersTriggerFulfillmentConditionalCasesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DialogflowCxFlowEventHandlersTriggerFulfillmentConditionalCasesList = DialogflowCxFlowEventHandlersTriggerFulfillmentConditionalCasesList; _g = JSII_RTTI_SYMBOL_1; DialogflowCxFlowEventHandlersTriggerFulfillmentConditionalCasesList[_g] = { fqn: "@cdktf/provider-google.dialogflowCxFlow.DialogflowCxFlowEventHandlersTriggerFulfillmentConditionalCasesList", version: "14.12.0" }; function dialogflowCxFlowEventHandlersTriggerFulfillmentMessagesConversationSuccessToTerraform(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 { metadata: cdktf.stringToTerraform(struct.metadata), }; } exports.dialogflowCxFlowEventHandlersTriggerFulfillmentMessagesConversationSuccessToTerraform = dialogflowCxFlowEventHandlersTriggerFulfillmentMessagesConversationSuccessToTerraform; function dialogflowCxFlowEventHandlersTriggerFulfillmentMessagesConversationSuccessToHclTerraform(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"); } const attrs = { metadata: { value: cdktf.stringToHclTerraform(struct.metadata), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.dialogflowCxFlowEventHandlersTriggerFulfillmentMessagesConversationSuccessToHclTerraform = dialogflowCxFlowEventHandlersTriggerFulfillmentMessagesConversationSuccessToHclTerraform; class DialogflowCxFlowEventHandlersTriggerFulfillmentMessagesConversationSuccessOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._metadata !== undefined) { hasAnyValues = true; internalValueResult.metadata = this._metadata; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._metadata = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._metadata = value.metadata; } } get metadata() { return this.getStringAttribute('metadata'); } set metadata(value) { this._metadata = value; } resetMetadata() { this._metadata = undefined; } // Temporarily expose input value. Use with caution. get metadataInput() { return this._metadata; } } exports.DialogflowCxFlowEventHandlersTriggerFulfillmentMessagesConversationSuccessOutputReference = DialogflowCxFlowEventHandlersTriggerFulfillmentMessagesConversationSuccessOutputReference; _h = JSII_RTTI_SYMBOL_1; DialogflowCxFlowEventHandlersTriggerFulfillmentMessagesConversationSuccessOutputReference[_h] = { fqn: "@cdktf/provider-google.dialogflowCxFlow.DialogflowCxFlowEventHandlersTriggerFulfillmentMessagesConversationSuccessOutputReference", version: "14.12.0" }; function dialogflowCxFlowEventHandlersTriggerFulfillmentMessagesLiveAgentHandoffToTerraform(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 { metadata: cdktf.stringToTerraform(struct.metadata), }; } exports.dialogflowCxFlowEventHandlersTriggerFulfillmentMessagesLiveAgentHandoffToTerraform = dialogflowCxFlowEventHandlersTriggerFulfillmentMessagesLiveAgentHandoffToTerraform; function dialogflowCxFlowEventHandlersTriggerFulfillmentMessagesLiveAgentHandoffToHclTerraform(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"); } const attrs = { metadata: { value: cdktf.stringToHclTerraform(struct.metadata), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.dialogflowCxFlowEventHandlersTriggerFulfillmentMessagesLiveAgentHandoffToHclTerraform = dialogflowCxFlowEventHandlersTriggerFulfillmentMessagesLiveAgentHandoffToHclTerraform; class DialogflowCxFlowEventHandlersTriggerFulfillmentMessagesLiveAgentHandoffOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._metadata !== undefined) { hasAnyValues = true; internalValueResult.metadata = this._metadata; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._metadata = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._metadata = value.metadata; } } get metadata() { return this.getStringAttribute('metadata'); } set metadata(value) { this._metadata = value; } resetMetadata() { this._metadata = undefined; } // Temporarily expose input value. Use with caution. get metadataInput() { return this._metadata; } } exports.DialogflowCxFlowEventHandlersTriggerFulfillmentMessagesLiveAgentHandoffOutputReference = DialogflowCxFlowEventHandlersTriggerFulfillmentMessagesLiveAgentHandoffOutputReference; _j = JSII_RTTI_SYMBOL_1; DialogflowCxFlowEventHandlersTriggerFulfillmentMessagesLiveAgentHandoffOutputReference[_j] = { fqn: "@cdktf/provider-google.dialogflowCxFlow.DialogflowCxFlowEventHandlersTriggerFulfillmentMessagesLiveAgentHandoffOutputReference", version: "14.12.0" }; function dialogflowCxFlowEventHandlersTriggerFulfillmentMessagesOutputAudioTextToTerraform(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 { ssml: cdktf.stringToTerraform(struct.ssml), text: cdktf.stringToTerraform(struct.text), }; } exports.dialogflowCxFlowEventHandlersTriggerFulfillmentMessagesOutputAudioTextToTerraform = dialogflowCxFlowEventHandlersTriggerFulfillmentMessagesOutputAudioTextToTerraform; function dialogflowCxFlowEventHandlersTriggerFulfillmentMessagesOutputAudioTextToHclTerraform(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"); } const attrs = { ssml: { value: cdktf.stringToHclTerraform(struct.ssml), isBlock: false, type: "simple", storageClassType: "string", }, text: { value: cdktf.stringToHclTerraform(struct.text), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } e