UNPKG

@cdktf/provider-google

Version:

Prebuilt google Provider for Terraform CDK (cdktf)

1,121 lines (1,120 loc) 242 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l; Object.defineProperty(exports, "__esModule", { value: true }); exports.DialogflowCxAgent = exports.DialogflowCxAgentTimeoutsOutputReference = exports.dialogflowCxAgentTimeoutsToHclTerraform = exports.dialogflowCxAgentTimeoutsToTerraform = exports.DialogflowCxAgentTextToSpeechSettingsOutputReference = exports.dialogflowCxAgentTextToSpeechSettingsToHclTerraform = exports.dialogflowCxAgentTextToSpeechSettingsToTerraform = exports.DialogflowCxAgentSpeechToTextSettingsOutputReference = exports.dialogflowCxAgentSpeechToTextSettingsToHclTerraform = exports.dialogflowCxAgentSpeechToTextSettingsToTerraform = exports.DialogflowCxAgentGitIntegrationSettingsOutputReference = exports.dialogflowCxAgentGitIntegrationSettingsToHclTerraform = exports.dialogflowCxAgentGitIntegrationSettingsToTerraform = exports.DialogflowCxAgentGitIntegrationSettingsGithubSettingsOutputReference = exports.dialogflowCxAgentGitIntegrationSettingsGithubSettingsToHclTerraform = exports.dialogflowCxAgentGitIntegrationSettingsGithubSettingsToTerraform = exports.DialogflowCxAgentAdvancedSettingsOutputReference = exports.dialogflowCxAgentAdvancedSettingsToHclTerraform = exports.dialogflowCxAgentAdvancedSettingsToTerraform = exports.DialogflowCxAgentAdvancedSettingsSpeechSettingsOutputReference = exports.dialogflowCxAgentAdvancedSettingsSpeechSettingsToHclTerraform = exports.dialogflowCxAgentAdvancedSettingsSpeechSettingsToTerraform = exports.DialogflowCxAgentAdvancedSettingsLoggingSettingsOutputReference = exports.dialogflowCxAgentAdvancedSettingsLoggingSettingsToHclTerraform = exports.dialogflowCxAgentAdvancedSettingsLoggingSettingsToTerraform = exports.DialogflowCxAgentAdvancedSettingsDtmfSettingsOutputReference = exports.dialogflowCxAgentAdvancedSettingsDtmfSettingsToHclTerraform = exports.dialogflowCxAgentAdvancedSettingsDtmfSettingsToTerraform = exports.DialogflowCxAgentAdvancedSettingsAudioExportGcsDestinationOutputReference = exports.dialogflowCxAgentAdvancedSettingsAudioExportGcsDestinationToHclTerraform = exports.dialogflowCxAgentAdvancedSettingsAudioExportGcsDestinationToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function dialogflowCxAgentAdvancedSettingsAudioExportGcsDestinationToTerraform(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.dialogflowCxAgentAdvancedSettingsAudioExportGcsDestinationToTerraform = dialogflowCxAgentAdvancedSettingsAudioExportGcsDestinationToTerraform; function dialogflowCxAgentAdvancedSettingsAudioExportGcsDestinationToHclTerraform(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.dialogflowCxAgentAdvancedSettingsAudioExportGcsDestinationToHclTerraform = dialogflowCxAgentAdvancedSettingsAudioExportGcsDestinationToHclTerraform; class DialogflowCxAgentAdvancedSettingsAudioExportGcsDestinationOutputReference 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.DialogflowCxAgentAdvancedSettingsAudioExportGcsDestinationOutputReference = DialogflowCxAgentAdvancedSettingsAudioExportGcsDestinationOutputReference; _a = JSII_RTTI_SYMBOL_1; DialogflowCxAgentAdvancedSettingsAudioExportGcsDestinationOutputReference[_a] = { fqn: "@cdktf/provider-google.dialogflowCxAgent.DialogflowCxAgentAdvancedSettingsAudioExportGcsDestinationOutputReference", version: "14.12.0" }; function dialogflowCxAgentAdvancedSettingsDtmfSettingsToTerraform(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.dialogflowCxAgentAdvancedSettingsDtmfSettingsToTerraform = dialogflowCxAgentAdvancedSettingsDtmfSettingsToTerraform; function dialogflowCxAgentAdvancedSettingsDtmfSettingsToHclTerraform(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.dialogflowCxAgentAdvancedSettingsDtmfSettingsToHclTerraform = dialogflowCxAgentAdvancedSettingsDtmfSettingsToHclTerraform; class DialogflowCxAgentAdvancedSettingsDtmfSettingsOutputReference 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.DialogflowCxAgentAdvancedSettingsDtmfSettingsOutputReference = DialogflowCxAgentAdvancedSettingsDtmfSettingsOutputReference; _b = JSII_RTTI_SYMBOL_1; DialogflowCxAgentAdvancedSettingsDtmfSettingsOutputReference[_b] = { fqn: "@cdktf/provider-google.dialogflowCxAgent.DialogflowCxAgentAdvancedSettingsDtmfSettingsOutputReference", version: "14.12.0" }; function dialogflowCxAgentAdvancedSettingsLoggingSettingsToTerraform(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.dialogflowCxAgentAdvancedSettingsLoggingSettingsToTerraform = dialogflowCxAgentAdvancedSettingsLoggingSettingsToTerraform; function dialogflowCxAgentAdvancedSettingsLoggingSettingsToHclTerraform(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.dialogflowCxAgentAdvancedSettingsLoggingSettingsToHclTerraform = dialogflowCxAgentAdvancedSettingsLoggingSettingsToHclTerraform; class DialogflowCxAgentAdvancedSettingsLoggingSettingsOutputReference 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.DialogflowCxAgentAdvancedSettingsLoggingSettingsOutputReference = DialogflowCxAgentAdvancedSettingsLoggingSettingsOutputReference; _c = JSII_RTTI_SYMBOL_1; DialogflowCxAgentAdvancedSettingsLoggingSettingsOutputReference[_c] = { fqn: "@cdktf/provider-google.dialogflowCxAgent.DialogflowCxAgentAdvancedSettingsLoggingSettingsOutputReference", version: "14.12.0" }; function dialogflowCxAgentAdvancedSettingsSpeechSettingsToTerraform(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.dialogflowCxAgentAdvancedSettingsSpeechSettingsToTerraform = dialogflowCxAgentAdvancedSettingsSpeechSettingsToTerraform; function dialogflowCxAgentAdvancedSettingsSpeechSettingsToHclTerraform(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.dialogflowCxAgentAdvancedSettingsSpeechSettingsToHclTerraform = dialogflowCxAgentAdvancedSettingsSpeechSettingsToHclTerraform; class DialogflowCxAgentAdvancedSettingsSpeechSettingsOutputReference 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.DialogflowCxAgentAdvancedSettingsSpeechSettingsOutputReference = DialogflowCxAgentAdvancedSettingsSpeechSettingsOutputReference; _d = JSII_RTTI_SYMBOL_1; DialogflowCxAgentAdvancedSettingsSpeechSettingsOutputReference[_d] = { fqn: "@cdktf/provider-google.dialogflowCxAgent.DialogflowCxAgentAdvancedSettingsSpeechSettingsOutputReference", version: "14.12.0" }; function dialogflowCxAgentAdvancedSettingsToTerraform(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: dialogflowCxAgentAdvancedSettingsAudioExportGcsDestinationToTerraform(struct.audioExportGcsDestination), dtmf_settings: dialogflowCxAgentAdvancedSettingsDtmfSettingsToTerraform(struct.dtmfSettings), logging_settings: dialogflowCxAgentAdvancedSettingsLoggingSettingsToTerraform(struct.loggingSettings), speech_settings: dialogflowCxAgentAdvancedSettingsSpeechSettingsToTerraform(struct.speechSettings), }; } exports.dialogflowCxAgentAdvancedSettingsToTerraform = dialogflowCxAgentAdvancedSettingsToTerraform; function dialogflowCxAgentAdvancedSettingsToHclTerraform(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: dialogflowCxAgentAdvancedSettingsAudioExportGcsDestinationToHclTerraform(struct.audioExportGcsDestination), isBlock: true, type: "list", storageClassType: "DialogflowCxAgentAdvancedSettingsAudioExportGcsDestinationList", }, dtmf_settings: { value: dialogflowCxAgentAdvancedSettingsDtmfSettingsToHclTerraform(struct.dtmfSettings), isBlock: true, type: "list", storageClassType: "DialogflowCxAgentAdvancedSettingsDtmfSettingsList", }, logging_settings: { value: dialogflowCxAgentAdvancedSettingsLoggingSettingsToHclTerraform(struct.loggingSettings), isBlock: true, type: "list", storageClassType: "DialogflowCxAgentAdvancedSettingsLoggingSettingsList", }, speech_settings: { value: dialogflowCxAgentAdvancedSettingsSpeechSettingsToHclTerraform(struct.speechSettings), isBlock: true, type: "list", storageClassType: "DialogflowCxAgentAdvancedSettingsSpeechSettingsList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.dialogflowCxAgentAdvancedSettingsToHclTerraform = dialogflowCxAgentAdvancedSettingsToHclTerraform; class DialogflowCxAgentAdvancedSettingsOutputReference 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 DialogflowCxAgentAdvancedSettingsAudioExportGcsDestinationOutputReference(this, "audio_export_gcs_destination"); // dtmf_settings - computed: false, optional: true, required: false this._dtmfSettings = new DialogflowCxAgentAdvancedSettingsDtmfSettingsOutputReference(this, "dtmf_settings"); // logging_settings - computed: false, optional: true, required: false this._loggingSettings = new DialogflowCxAgentAdvancedSettingsLoggingSettingsOutputReference(this, "logging_settings"); // speech_settings - computed: false, optional: true, required: false this._speechSettings = new DialogflowCxAgentAdvancedSettingsSpeechSettingsOutputReference(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.DialogflowCxAgentAdvancedSettingsOutputReference = DialogflowCxAgentAdvancedSettingsOutputReference; _e = JSII_RTTI_SYMBOL_1; DialogflowCxAgentAdvancedSettingsOutputReference[_e] = { fqn: "@cdktf/provider-google.dialogflowCxAgent.DialogflowCxAgentAdvancedSettingsOutputReference", version: "14.12.0" }; function dialogflowCxAgentGitIntegrationSettingsGithubSettingsToTerraform(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 { access_token: cdktf.stringToTerraform(struct.accessToken), branches: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.branches), display_name: cdktf.stringToTerraform(struct.displayName), repository_uri: cdktf.stringToTerraform(struct.repositoryUri), tracking_branch: cdktf.stringToTerraform(struct.trackingBranch), }; } exports.dialogflowCxAgentGitIntegrationSettingsGithubSettingsToTerraform = dialogflowCxAgentGitIntegrationSettingsGithubSettingsToTerraform; function dialogflowCxAgentGitIntegrationSettingsGithubSettingsToHclTerraform(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 = { access_token: { value: cdktf.stringToHclTerraform(struct.accessToken), isBlock: false, type: "simple", storageClassType: "string", }, branches: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.branches), isBlock: false, type: "list", storageClassType: "stringList", }, display_name: { value: cdktf.stringToHclTerraform(struct.displayName), isBlock: false, type: "simple", storageClassType: "string", }, repository_uri: { value: cdktf.stringToHclTerraform(struct.repositoryUri), isBlock: false, type: "simple", storageClassType: "string", }, tracking_branch: { value: cdktf.stringToHclTerraform(struct.trackingBranch), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.dialogflowCxAgentGitIntegrationSettingsGithubSettingsToHclTerraform = dialogflowCxAgentGitIntegrationSettingsGithubSettingsToHclTerraform; class DialogflowCxAgentGitIntegrationSettingsGithubSettingsOutputReference 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._accessToken !== undefined) { hasAnyValues = true; internalValueResult.accessToken = this._accessToken; } if (this._branches !== undefined) { hasAnyValues = true; internalValueResult.branches = this._branches; } if (this._displayName !== undefined) { hasAnyValues = true; internalValueResult.displayName = this._displayName; } if (this._repositoryUri !== undefined) { hasAnyValues = true; internalValueResult.repositoryUri = this._repositoryUri; } if (this._trackingBranch !== undefined) { hasAnyValues = true; internalValueResult.trackingBranch = this._trackingBranch; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._accessToken = undefined; this._branches = undefined; this._displayName = undefined; this._repositoryUri = undefined; this._trackingBranch = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._accessToken = value.accessToken; this._branches = value.branches; this._displayName = value.displayName; this._repositoryUri = value.repositoryUri; this._trackingBranch = value.trackingBranch; } } get accessToken() { return this.getStringAttribute('access_token'); } set accessToken(value) { this._accessToken = value; } resetAccessToken() { this._accessToken = undefined; } // Temporarily expose input value. Use with caution. get accessTokenInput() { return this._accessToken; } get branches() { return this.getListAttribute('branches'); } set branches(value) { this._branches = value; } resetBranches() { this._branches = undefined; } // Temporarily expose input value. Use with caution. get branchesInput() { return this._branches; } get displayName() { return this.getStringAttribute('display_name'); } set displayName(value) { this._displayName = value; } resetDisplayName() { this._displayName = undefined; } // Temporarily expose input value. Use with caution. get displayNameInput() { return this._displayName; } get repositoryUri() { return this.getStringAttribute('repository_uri'); } set repositoryUri(value) { this._repositoryUri = value; } resetRepositoryUri() { this._repositoryUri = undefined; } // Temporarily expose input value. Use with caution. get repositoryUriInput() { return this._repositoryUri; } get trackingBranch() { return this.getStringAttribute('tracking_branch'); } set trackingBranch(value) { this._trackingBranch = value; } resetTrackingBranch() { this._trackingBranch = undefined; } // Temporarily expose input value. Use with caution. get trackingBranchInput() { return this._trackingBranch; } } exports.DialogflowCxAgentGitIntegrationSettingsGithubSettingsOutputReference = DialogflowCxAgentGitIntegrationSettingsGithubSettingsOutputReference; _f = JSII_RTTI_SYMBOL_1; DialogflowCxAgentGitIntegrationSettingsGithubSettingsOutputReference[_f] = { fqn: "@cdktf/provider-google.dialogflowCxAgent.DialogflowCxAgentGitIntegrationSettingsGithubSettingsOutputReference", version: "14.12.0" }; function dialogflowCxAgentGitIntegrationSettingsToTerraform(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 { github_settings: dialogflowCxAgentGitIntegrationSettingsGithubSettingsToTerraform(struct.githubSettings), }; } exports.dialogflowCxAgentGitIntegrationSettingsToTerraform = dialogflowCxAgentGitIntegrationSettingsToTerraform; function dialogflowCxAgentGitIntegrationSettingsToHclTerraform(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 = { github_settings: { value: dialogflowCxAgentGitIntegrationSettingsGithubSettingsToHclTerraform(struct.githubSettings), isBlock: true, type: "list", storageClassType: "DialogflowCxAgentGitIntegrationSettingsGithubSettingsList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.dialogflowCxAgentGitIntegrationSettingsToHclTerraform = dialogflowCxAgentGitIntegrationSettingsToHclTerraform; class DialogflowCxAgentGitIntegrationSettingsOutputReference 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; // github_settings - computed: false, optional: true, required: false this._githubSettings = new DialogflowCxAgentGitIntegrationSettingsGithubSettingsOutputReference(this, "github_settings"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._githubSettings?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.githubSettings = this._githubSettings?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._githubSettings.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._githubSettings.internalValue = value.githubSettings; } } get githubSettings() { return this._githubSettings; } putGithubSettings(value) { this._githubSettings.internalValue = value; } resetGithubSettings() { this._githubSettings.internalValue = undefined; } // Temporarily expose input value. Use with caution. get githubSettingsInput() { return this._githubSettings.internalValue; } } exports.DialogflowCxAgentGitIntegrationSettingsOutputReference = DialogflowCxAgentGitIntegrationSettingsOutputReference; _g = JSII_RTTI_SYMBOL_1; DialogflowCxAgentGitIntegrationSettingsOutputReference[_g] = { fqn: "@cdktf/provider-google.dialogflowCxAgent.DialogflowCxAgentGitIntegrationSettingsOutputReference", version: "14.12.0" }; function dialogflowCxAgentSpeechToTextSettingsToTerraform(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_speech_adaptation: cdktf.booleanToTerraform(struct.enableSpeechAdaptation), }; } exports.dialogflowCxAgentSpeechToTextSettingsToTerraform = dialogflowCxAgentSpeechToTextSettingsToTerraform; function dialogflowCxAgentSpeechToTextSettingsToHclTerraform(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_speech_adaptation: { value: cdktf.booleanToHclTerraform(struct.enableSpeechAdaptation), isBlock: false, type: "simple", storageClassType: "boolean", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.dialogflowCxAgentSpeechToTextSettingsToHclTerraform = dialogflowCxAgentSpeechToTextSettingsToHclTerraform; class DialogflowCxAgentSpeechToTextSettingsOutputReference 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._enableSpeechAdaptation !== undefined) { hasAnyValues = true; internalValueResult.enableSpeechAdaptation = this._enableSpeechAdaptation; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._enableSpeechAdaptation = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._enableSpeechAdaptation = value.enableSpeechAdaptation; } } get enableSpeechAdaptation() { return this.getBooleanAttribute('enable_speech_adaptation'); } set enableSpeechAdaptation(value) { this._enableSpeechAdaptation = value; } resetEnableSpeechAdaptation() { this._enableSpeechAdaptation = undefined; } // Temporarily expose input value. Use with caution. get enableSpeechAdaptationInput() { return this._enableSpeechAdaptation; } } exports.DialogflowCxAgentSpeechToTextSettingsOutputReference = DialogflowCxAgentSpeechToTextSettingsOutputReference; _h = JSII_RTTI_SYMBOL_1; DialogflowCxAgentSpeechToTextSettingsOutputReference[_h] = { fqn: "@cdktf/provider-google.dialogflowCxAgent.DialogflowCxAgentSpeechToTextSettingsOutputReference", version: "14.12.0" }; function dialogflowCxAgentTextToSpeechSettingsToTerraform(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 { synthesize_speech_configs: cdktf.stringToTerraform(struct.synthesizeSpeechConfigs), }; } exports.dialogflowCxAgentTextToSpeechSettingsToTerraform = dialogflowCxAgentTextToSpeechSettingsToTerraform; function dialogflowCxAgentTextToSpeechSettingsToHclTerraform(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 = { synthesize_speech_configs: { value: cdktf.stringToHclTerraform(struct.synthesizeSpeechConfigs), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.dialogflowCxAgentTextToSpeechSettingsToHclTerraform = dialogflowCxAgentTextToSpeechSettingsToHclTerraform; class DialogflowCxAgentTextToSpeechSettingsOutputReference 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._synthesizeSpeechConfigs !== undefined) { hasAnyValues = true; internalValueResult.synthesizeSpeechConfigs = this._synthesizeSpeechConfigs; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._synthesizeSpeechConfigs = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._synthesizeSpeechConfigs = value.synthesizeSpeechConfigs; } } get synthesizeSpeechConfigs() { return this.getStringAttribute('synthesize_speech_configs'); } set synthesizeSpeechConfigs(value) { this._synthesizeSpeechConfigs = value; } resetSynthesizeSpeechConfigs() { this._synthesizeSpeechConfigs = undefined; } // Temporarily expose input value. Use with caution. get synthesizeSpeechConfigsInput() { return this._synthesizeSpeechConfigs; } } exports.DialogflowCxAgentTextToSpeechSettingsOutputReference = DialogflowCxAgentTextToSpeechSettingsOutputReference; _j = JSII_RTTI_SYMBOL_1; DialogflowCxAgentTextToSpeechSettingsOutputReference[_j] = { fqn: "@cdktf/provider-google.dialogflowCxAgent.DialogflowCxAgentTextToSpeechSettingsOutputReference", version: "14.12.0" }; function dialogflowCxAgentTimeoutsToTerraform(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), }; } exports.dialogflowCxAgentTimeoutsToTerraform = dialogflowCxAgentTimeoutsToTerraform; function dialogflowCxAgentTimeoutsToHclTerraform(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 = { create: { value: cdktf.stringToHclTerraform(struct.create), isBlock: false, type: "simple", storageClassType: "string", }, delete: { value: cdktf.stringToHclTerraform(struct.delete), isBlock: false, type: "simple", storageClassType: "string", }, update: { value: cdktf.stringToHclTerraform(struct.update), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.dialogflowCxAgentTimeoutsToHclTerraform = dialogflowCxAgentTimeoutsToHclTerraform; class DialogflowCxAgentTimeoutsOutputReference 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); this.isEmptyObject = false; } get internalValue() { if (this.resolvableValue) {