UNPKG

@cdktf/provider-aws

Version:

Prebuilt aws Provider for Terraform CDK (cdktf)

867 lines 426 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, _14; Object.defineProperty(exports, "__esModule", { value: true }); exports.Lexv2ModelsIntentTimeoutsOutputReference = exports.Lexv2ModelsIntentSlotPriorityList = exports.Lexv2ModelsIntentSlotPriorityOutputReference = exports.Lexv2ModelsIntentSampleUtteranceList = exports.Lexv2ModelsIntentSampleUtteranceOutputReference = exports.Lexv2ModelsIntentOutputContextList = exports.Lexv2ModelsIntentOutputContextOutputReference = exports.Lexv2ModelsIntentKendraConfigurationList = exports.Lexv2ModelsIntentKendraConfigurationOutputReference = exports.Lexv2ModelsIntentInputContextList = exports.Lexv2ModelsIntentInputContextOutputReference = exports.Lexv2ModelsIntentInitialResponseSettingList = exports.Lexv2ModelsIntentInitialResponseSettingOutputReference = exports.Lexv2ModelsIntentInitialResponseSettingNextStepList = exports.Lexv2ModelsIntentInitialResponseSettingNextStepOutputReference = exports.Lexv2ModelsIntentInitialResponseSettingNextStepIntentList = exports.Lexv2ModelsIntentInitialResponseSettingNextStepIntentOutputReference = exports.Lexv2ModelsIntentInitialResponseSettingNextStepIntentSlotList = exports.Lexv2ModelsIntentInitialResponseSettingNextStepIntentSlotOutputReference = exports.Lexv2ModelsIntentInitialResponseSettingNextStepIntentSlotValueList = exports.Lexv2ModelsIntentInitialResponseSettingNextStepIntentSlotValueOutputReference = exports.Lexv2ModelsIntentInitialResponseSettingNextStepDialogActionList = exports.Lexv2ModelsIntentInitialResponseSettingNextStepDialogActionOutputReference = exports.Lexv2ModelsIntentInitialResponseSettingInitialResponseList = exports.Lexv2ModelsIntentInitialResponseSettingInitialResponseOutputReference = exports.Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupList = exports.Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupOutputReference = exports.Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationList = exports.Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationOutputReference = exports.Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationSsmlMessageList = exports.Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationSsmlMessageOutputReference = exports.Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationPlainTextMessageList = exports.Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationPlainTextMessageOutputReference = exports.Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationImageResponseCardList = exports.Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationImageResponseCardOutputReference = exports.Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationImageResponseCardButtonList = exports.Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationImageResponseCardButtonOutputReference = exports.Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationCustomPayloadList = exports.Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationCustomPayloadOutputReference = void 0; exports.lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationCustomPayloadToTerraform = lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationCustomPayloadToTerraform; exports.lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationCustomPayloadToHclTerraform = lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationCustomPayloadToHclTerraform; exports.lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationImageResponseCardButtonToTerraform = lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationImageResponseCardButtonToTerraform; exports.lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationImageResponseCardButtonToHclTerraform = lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationImageResponseCardButtonToHclTerraform; exports.lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationImageResponseCardToTerraform = lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationImageResponseCardToTerraform; exports.lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationImageResponseCardToHclTerraform = lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationImageResponseCardToHclTerraform; exports.lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationPlainTextMessageToTerraform = lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationPlainTextMessageToTerraform; exports.lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationPlainTextMessageToHclTerraform = lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationPlainTextMessageToHclTerraform; exports.lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationSsmlMessageToTerraform = lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationSsmlMessageToTerraform; exports.lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationSsmlMessageToHclTerraform = lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationSsmlMessageToHclTerraform; exports.lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationToTerraform = lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationToTerraform; exports.lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationToHclTerraform = lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationToHclTerraform; exports.lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupToTerraform = lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupToTerraform; exports.lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupToHclTerraform = lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupToHclTerraform; exports.lexv2ModelsIntentInitialResponseSettingInitialResponseToTerraform = lexv2ModelsIntentInitialResponseSettingInitialResponseToTerraform; exports.lexv2ModelsIntentInitialResponseSettingInitialResponseToHclTerraform = lexv2ModelsIntentInitialResponseSettingInitialResponseToHclTerraform; exports.lexv2ModelsIntentInitialResponseSettingNextStepDialogActionToTerraform = lexv2ModelsIntentInitialResponseSettingNextStepDialogActionToTerraform; exports.lexv2ModelsIntentInitialResponseSettingNextStepDialogActionToHclTerraform = lexv2ModelsIntentInitialResponseSettingNextStepDialogActionToHclTerraform; exports.lexv2ModelsIntentInitialResponseSettingNextStepIntentSlotValueToTerraform = lexv2ModelsIntentInitialResponseSettingNextStepIntentSlotValueToTerraform; exports.lexv2ModelsIntentInitialResponseSettingNextStepIntentSlotValueToHclTerraform = lexv2ModelsIntentInitialResponseSettingNextStepIntentSlotValueToHclTerraform; exports.lexv2ModelsIntentInitialResponseSettingNextStepIntentSlotToTerraform = lexv2ModelsIntentInitialResponseSettingNextStepIntentSlotToTerraform; exports.lexv2ModelsIntentInitialResponseSettingNextStepIntentSlotToHclTerraform = lexv2ModelsIntentInitialResponseSettingNextStepIntentSlotToHclTerraform; exports.lexv2ModelsIntentInitialResponseSettingNextStepIntentToTerraform = lexv2ModelsIntentInitialResponseSettingNextStepIntentToTerraform; exports.lexv2ModelsIntentInitialResponseSettingNextStepIntentToHclTerraform = lexv2ModelsIntentInitialResponseSettingNextStepIntentToHclTerraform; exports.lexv2ModelsIntentInitialResponseSettingNextStepToTerraform = lexv2ModelsIntentInitialResponseSettingNextStepToTerraform; exports.lexv2ModelsIntentInitialResponseSettingNextStepToHclTerraform = lexv2ModelsIntentInitialResponseSettingNextStepToHclTerraform; exports.lexv2ModelsIntentInitialResponseSettingToTerraform = lexv2ModelsIntentInitialResponseSettingToTerraform; exports.lexv2ModelsIntentInitialResponseSettingToHclTerraform = lexv2ModelsIntentInitialResponseSettingToHclTerraform; exports.lexv2ModelsIntentInputContextToTerraform = lexv2ModelsIntentInputContextToTerraform; exports.lexv2ModelsIntentInputContextToHclTerraform = lexv2ModelsIntentInputContextToHclTerraform; exports.lexv2ModelsIntentKendraConfigurationToTerraform = lexv2ModelsIntentKendraConfigurationToTerraform; exports.lexv2ModelsIntentKendraConfigurationToHclTerraform = lexv2ModelsIntentKendraConfigurationToHclTerraform; exports.lexv2ModelsIntentOutputContextToTerraform = lexv2ModelsIntentOutputContextToTerraform; exports.lexv2ModelsIntentOutputContextToHclTerraform = lexv2ModelsIntentOutputContextToHclTerraform; exports.lexv2ModelsIntentSampleUtteranceToTerraform = lexv2ModelsIntentSampleUtteranceToTerraform; exports.lexv2ModelsIntentSampleUtteranceToHclTerraform = lexv2ModelsIntentSampleUtteranceToHclTerraform; exports.lexv2ModelsIntentSlotPriorityToTerraform = lexv2ModelsIntentSlotPriorityToTerraform; exports.lexv2ModelsIntentSlotPriorityToHclTerraform = lexv2ModelsIntentSlotPriorityToHclTerraform; exports.lexv2ModelsIntentTimeoutsToTerraform = lexv2ModelsIntentTimeoutsToTerraform; exports.lexv2ModelsIntentTimeoutsToHclTerraform = lexv2ModelsIntentTimeoutsToHclTerraform; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); /** * Copyright (c) HashiCorp, Inc. * SPDX-License-Identifier: MPL-2.0 */ const cdktf = require("cdktf"); const structs3200_1 = require("./structs3200"); function lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationCustomPayloadToTerraform(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 { value: cdktf.stringToTerraform(struct.value), }; } function lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationCustomPayloadToHclTerraform(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 = { value: { value: cdktf.stringToHclTerraform(struct.value), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationCustomPayloadOutputReference 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._value !== undefined) { hasAnyValues = true; internalValueResult.value = this._value; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._value = 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._value = value.value; } } get value() { return this.getStringAttribute('value'); } set value(value) { this._value = value; } // Temporarily expose input value. Use with caution. get valueInput() { return this._value; } } exports.Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationCustomPayloadOutputReference = Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationCustomPayloadOutputReference; _a = JSII_RTTI_SYMBOL_1; Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationCustomPayloadOutputReference[_a] = { fqn: "@cdktf/provider-aws.lexv2ModelsIntent.Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationCustomPayloadOutputReference", version: "21.22.1" }; class Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationCustomPayloadList 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 Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationCustomPayloadOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationCustomPayloadList = Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationCustomPayloadList; _b = JSII_RTTI_SYMBOL_1; Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationCustomPayloadList[_b] = { fqn: "@cdktf/provider-aws.lexv2ModelsIntent.Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationCustomPayloadList", version: "21.22.1" }; function lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationImageResponseCardButtonToTerraform(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 { text: cdktf.stringToTerraform(struct.text), value: cdktf.stringToTerraform(struct.value), }; } function lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationImageResponseCardButtonToHclTerraform(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 = { text: { value: cdktf.stringToHclTerraform(struct.text), isBlock: false, type: "simple", storageClassType: "string", }, value: { value: cdktf.stringToHclTerraform(struct.value), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationImageResponseCardButtonOutputReference 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._text !== undefined) { hasAnyValues = true; internalValueResult.text = this._text; } if (this._value !== undefined) { hasAnyValues = true; internalValueResult.value = this._value; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._text = undefined; this._value = 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._text = value.text; this._value = value.value; } } get text() { return this.getStringAttribute('text'); } set text(value) { this._text = value; } // Temporarily expose input value. Use with caution. get textInput() { return this._text; } get value() { return this.getStringAttribute('value'); } set value(value) { this._value = value; } // Temporarily expose input value. Use with caution. get valueInput() { return this._value; } } exports.Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationImageResponseCardButtonOutputReference = Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationImageResponseCardButtonOutputReference; _c = JSII_RTTI_SYMBOL_1; Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationImageResponseCardButtonOutputReference[_c] = { fqn: "@cdktf/provider-aws.lexv2ModelsIntent.Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationImageResponseCardButtonOutputReference", version: "21.22.1" }; class Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationImageResponseCardButtonList 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 Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationImageResponseCardButtonOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationImageResponseCardButtonList = Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationImageResponseCardButtonList; _d = JSII_RTTI_SYMBOL_1; Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationImageResponseCardButtonList[_d] = { fqn: "@cdktf/provider-aws.lexv2ModelsIntent.Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationImageResponseCardButtonList", version: "21.22.1" }; function lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationImageResponseCardToTerraform(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 { image_url: cdktf.stringToTerraform(struct.imageUrl), subtitle: cdktf.stringToTerraform(struct.subtitle), title: cdktf.stringToTerraform(struct.title), button: cdktf.listMapper(lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationImageResponseCardButtonToTerraform, true)(struct.button), }; } function lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationImageResponseCardToHclTerraform(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 = { image_url: { value: cdktf.stringToHclTerraform(struct.imageUrl), isBlock: false, type: "simple", storageClassType: "string", }, subtitle: { value: cdktf.stringToHclTerraform(struct.subtitle), isBlock: false, type: "simple", storageClassType: "string", }, title: { value: cdktf.stringToHclTerraform(struct.title), isBlock: false, type: "simple", storageClassType: "string", }, button: { value: cdktf.listMapperHcl(lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationImageResponseCardButtonToHclTerraform, true)(struct.button), isBlock: true, type: "list", storageClassType: "Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationImageResponseCardButtonList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationImageResponseCardOutputReference 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; // button - computed: false, optional: true, required: false this._button = new Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationImageResponseCardButtonList(this, "button", false); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._imageUrl !== undefined) { hasAnyValues = true; internalValueResult.imageUrl = this._imageUrl; } if (this._subtitle !== undefined) { hasAnyValues = true; internalValueResult.subtitle = this._subtitle; } if (this._title !== undefined) { hasAnyValues = true; internalValueResult.title = this._title; } if (this._button?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.button = this._button?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._imageUrl = undefined; this._subtitle = undefined; this._title = undefined; this._button.internalValue = 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._imageUrl = value.imageUrl; this._subtitle = value.subtitle; this._title = value.title; this._button.internalValue = value.button; } } get imageUrl() { return this.getStringAttribute('image_url'); } set imageUrl(value) { this._imageUrl = value; } resetImageUrl() { this._imageUrl = undefined; } // Temporarily expose input value. Use with caution. get imageUrlInput() { return this._imageUrl; } get subtitle() { return this.getStringAttribute('subtitle'); } set subtitle(value) { this._subtitle = value; } resetSubtitle() { this._subtitle = undefined; } // Temporarily expose input value. Use with caution. get subtitleInput() { return this._subtitle; } get title() { return this.getStringAttribute('title'); } set title(value) { this._title = value; } // Temporarily expose input value. Use with caution. get titleInput() { return this._title; } get button() { return this._button; } putButton(value) { this._button.internalValue = value; } resetButton() { this._button.internalValue = undefined; } // Temporarily expose input value. Use with caution. get buttonInput() { return this._button.internalValue; } } exports.Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationImageResponseCardOutputReference = Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationImageResponseCardOutputReference; _e = JSII_RTTI_SYMBOL_1; Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationImageResponseCardOutputReference[_e] = { fqn: "@cdktf/provider-aws.lexv2ModelsIntent.Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationImageResponseCardOutputReference", version: "21.22.1" }; class Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationImageResponseCardList 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 Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationImageResponseCardOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationImageResponseCardList = Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationImageResponseCardList; _f = JSII_RTTI_SYMBOL_1; Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationImageResponseCardList[_f] = { fqn: "@cdktf/provider-aws.lexv2ModelsIntent.Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationImageResponseCardList", version: "21.22.1" }; function lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationPlainTextMessageToTerraform(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 { value: cdktf.stringToTerraform(struct.value), }; } function lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationPlainTextMessageToHclTerraform(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 = { value: { value: cdktf.stringToHclTerraform(struct.value), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationPlainTextMessageOutputReference 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._value !== undefined) { hasAnyValues = true; internalValueResult.value = this._value; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._value = 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._value = value.value; } } get value() { return this.getStringAttribute('value'); } set value(value) { this._value = value; } // Temporarily expose input value. Use with caution. get valueInput() { return this._value; } } exports.Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationPlainTextMessageOutputReference = Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationPlainTextMessageOutputReference; _g = JSII_RTTI_SYMBOL_1; Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationPlainTextMessageOutputReference[_g] = { fqn: "@cdktf/provider-aws.lexv2ModelsIntent.Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationPlainTextMessageOutputReference", version: "21.22.1" }; class Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationPlainTextMessageList 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 Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationPlainTextMessageOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationPlainTextMessageList = Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationPlainTextMessageList; _h = JSII_RTTI_SYMBOL_1; Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationPlainTextMessageList[_h] = { fqn: "@cdktf/provider-aws.lexv2ModelsIntent.Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationPlainTextMessageList", version: "21.22.1" }; function lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationSsmlMessageToTerraform(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 { value: cdktf.stringToTerraform(struct.value), }; } function lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationSsmlMessageToHclTerraform(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 = { value: { value: cdktf.stringToHclTerraform(struct.value), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationSsmlMessageOutputReference 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._value !== undefined) { hasAnyValues = true; internalValueResult.value = this._value; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._value = 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._value = value.value; } } get value() { return this.getStringAttribute('value'); } set value(value) { this._value = value; } // Temporarily expose input value. Use with caution. get valueInput() { return this._value; } } exports.Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationSsmlMessageOutputReference = Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationSsmlMessageOutputReference; _j = JSII_RTTI_SYMBOL_1; Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationSsmlMessageOutputReference[_j] = { fqn: "@cdktf/provider-aws.lexv2ModelsIntent.Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationSsmlMessageOutputReference", version: "21.22.1" }; class Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationSsmlMessageList 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 Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationSsmlMessageOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationSsmlMessageList = Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationSsmlMessageList; _k = JSII_RTTI_SYMBOL_1; Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationSsmlMessageList[_k] = { fqn: "@cdktf/provider-aws.lexv2ModelsIntent.Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationSsmlMessageList", version: "21.22.1" }; function lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationToTerraform(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 { custom_payload: cdktf.listMapper(lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationCustomPayloadToTerraform, true)(struct.customPayload), image_response_card: cdktf.listMapper(lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationImageResponseCardToTerraform, true)(struct.imageResponseCard), plain_text_message: cdktf.listMapper(lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationPlainTextMessageToTerraform, true)(struct.plainTextMessage), ssml_message: cdktf.listMapper(lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationSsmlMessageToTerraform, true)(struct.ssmlMessage), }; } function lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationToHclTerraform(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 = { custom_payload: { value: cdktf.listMapperHcl(lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationCustomPayloadToHclTerraform, true)(struct.customPayload), isBlock: true, type: "list", storageClassType: "Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationCustomPayloadList", }, image_response_card: { value: cdktf.listMapperHcl(lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationImageResponseCardToHclTerraform, true)(struct.imageResponseCard), isBlock: true, type: "list", storageClassType: "Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationImageResponseCardList", }, plain_text_message: { value: cdktf.listMapperHcl(lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationPlainTextMessageToHclTerraform, true)(struct.plainTextMessage), isBlock: true, type: "list", storageClassType: "Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationPlainTextMessageList", }, ssml_message: { value: cdktf.listMapperHcl(lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationSsmlMessageToHclTerraform, true)(struct.ssmlMessage), isBlock: true, type: "list", storageClassType: "Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationSsmlMessageList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationOutputReference 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; // custom_payload - computed: false, optional: true, required: false this._customPayload = new Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationCustomPayloadList(this, "custom_payload", false); // image_response_card - computed: false, optional: true, required: false this._imageResponseCard = new Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationImageResponseCardList(this, "image_response_card", false); // plain_text_message - computed: false, optional: true, required: false this._plainTextMessage = new Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationPlainTextMessageList(this, "plain_text_message", false); // ssml_message - computed: false, optional: true, required: false this._ssmlMessage = new Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationSsmlMessageList(this, "ssml_message", false); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._customPayload?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.customPayload = this._customPayload?.internalValue; } if (this._imageResponseCard?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.imageResponseCard = this._imageResponseCard?.internalValue; } if (this._plainTextMessage?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.plainTextMessage = this._plainTextMessage?.internalValue; } if (this._ssmlMessage?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.ssmlMessage = this._ssmlMessage?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._customPayload.internalValue = undefined; this._imageResponseCard.internalValue = undefined; this._plainTextMessage.internalValue = undefined; this._ssmlMessage.internalValue = 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._customPayload.internalValue = value.customPayload; this._imageResponseCard.internalValue = value.imageResponseCard; this._plainTextMessage.internalValue = value.plainTextMessage; this._ssmlMessage.internalValue = value.ssmlMessage; } } get customPayload() { return this._customPayload; } putCustomPayload(value) { this._customPayload.internalValue = value; } resetCustomPayload() { this._customPayload.internalValue = undefined; } // Temporarily expose input value. Use with caution. get customPayloadInput() { return this._customPayload.internalValue; } get imageResponseCard() { return this._imageResponseCard; } putImageResponseCard(value) { this._imageResponseCard.internalValue = value; } resetImageResponseCard() { this._imageResponseCard.internalValue = undefined; } // Temporarily expose input value. Use with caution. get imageResponseCardInput() { return this._imageResponseCard.internalValue; } get plainTextMessage() { return this._plainTextMessage; } putPlainTextMessage(value) { this._plainTextMessage.internalValue = value; } resetPlainTextMessage() { this._plainTextMessage.internalValue = undefined; } // Temporarily expose input value. Use with caution. get plainTextMessageInput() { return this._plainTextMessage.internalValue; } get ssmlMessage() { return this._ssmlMessage; } putSsmlMessage(value) { this._ssmlMessage.internalValue = value; } resetSsmlMessage() { this._ssmlMessage.internalValue = undefined; } // Temporarily expose input value. Use with caution. get ssmlMessageInput() { return this._ssmlMessage.internalValue; } } exports.Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationOutputReference = Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationOutputReference; _l = JSII_RTTI_SYMBOL_1; Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationOutputReference[_l] = { fqn: "@cdktf/provider-aws.lexv2ModelsIntent.Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationOutputReference", version: "21.22.1" }; class Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationList 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 Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationList = Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationList; _m = JSII_RTTI_SYMBOL_1; Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationList[_m] = { fqn: "@cdktf/provider-aws.lexv2ModelsIntent.Lexv2ModelsIntentInitialResponseSettingInitialResponseMessageGroupVariationList", versi