@cdktf/provider-aws
Version:
Prebuilt aws Provider for Terraform CDK (cdktf)
1,129 lines • 395 kB
JavaScript
"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;
Object.defineProperty(exports, "__esModule", { value: true });
exports.LexIntentSlotValueElicitationPromptMessageOutputReference = exports.lexIntentSlotValueElicitationPromptMessageToHclTerraform = exports.lexIntentSlotValueElicitationPromptMessageToTerraform = exports.LexIntentRejectionStatementOutputReference = exports.lexIntentRejectionStatementToHclTerraform = exports.lexIntentRejectionStatementToTerraform = exports.LexIntentRejectionStatementMessageList = exports.LexIntentRejectionStatementMessageOutputReference = exports.lexIntentRejectionStatementMessageToHclTerraform = exports.lexIntentRejectionStatementMessageToTerraform = exports.LexIntentFulfillmentActivityOutputReference = exports.lexIntentFulfillmentActivityToHclTerraform = exports.lexIntentFulfillmentActivityToTerraform = exports.LexIntentFulfillmentActivityCodeHookOutputReference = exports.lexIntentFulfillmentActivityCodeHookToHclTerraform = exports.lexIntentFulfillmentActivityCodeHookToTerraform = exports.LexIntentFollowUpPromptOutputReference = exports.lexIntentFollowUpPromptToHclTerraform = exports.lexIntentFollowUpPromptToTerraform = exports.LexIntentFollowUpPromptRejectionStatementOutputReference = exports.lexIntentFollowUpPromptRejectionStatementToHclTerraform = exports.lexIntentFollowUpPromptRejectionStatementToTerraform = exports.LexIntentFollowUpPromptRejectionStatementMessageList = exports.LexIntentFollowUpPromptRejectionStatementMessageOutputReference = exports.lexIntentFollowUpPromptRejectionStatementMessageToHclTerraform = exports.lexIntentFollowUpPromptRejectionStatementMessageToTerraform = exports.LexIntentFollowUpPromptPromptOutputReference = exports.lexIntentFollowUpPromptPromptToHclTerraform = exports.lexIntentFollowUpPromptPromptToTerraform = exports.LexIntentFollowUpPromptPromptMessageList = exports.LexIntentFollowUpPromptPromptMessageOutputReference = exports.lexIntentFollowUpPromptPromptMessageToHclTerraform = exports.lexIntentFollowUpPromptPromptMessageToTerraform = exports.LexIntentDialogCodeHookOutputReference = exports.lexIntentDialogCodeHookToHclTerraform = exports.lexIntentDialogCodeHookToTerraform = exports.LexIntentConfirmationPromptOutputReference = exports.lexIntentConfirmationPromptToHclTerraform = exports.lexIntentConfirmationPromptToTerraform = exports.LexIntentConfirmationPromptMessageList = exports.LexIntentConfirmationPromptMessageOutputReference = exports.lexIntentConfirmationPromptMessageToHclTerraform = exports.lexIntentConfirmationPromptMessageToTerraform = exports.LexIntentConclusionStatementOutputReference = exports.lexIntentConclusionStatementToHclTerraform = exports.lexIntentConclusionStatementToTerraform = exports.LexIntentConclusionStatementMessageList = exports.LexIntentConclusionStatementMessageOutputReference = exports.lexIntentConclusionStatementMessageToHclTerraform = exports.lexIntentConclusionStatementMessageToTerraform = void 0;
exports.LexIntent = exports.LexIntentTimeoutsOutputReference = exports.lexIntentTimeoutsToHclTerraform = exports.lexIntentTimeoutsToTerraform = exports.LexIntentSlotList = exports.LexIntentSlotOutputReference = exports.lexIntentSlotToHclTerraform = exports.lexIntentSlotToTerraform = exports.LexIntentSlotValueElicitationPromptOutputReference = exports.lexIntentSlotValueElicitationPromptToHclTerraform = exports.lexIntentSlotValueElicitationPromptToTerraform = exports.LexIntentSlotValueElicitationPromptMessageList = void 0;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function lexIntentConclusionStatementMessageToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {
content: cdktf.stringToTerraform(struct.content),
content_type: cdktf.stringToTerraform(struct.contentType),
group_number: cdktf.numberToTerraform(struct.groupNumber),
};
}
exports.lexIntentConclusionStatementMessageToTerraform = lexIntentConclusionStatementMessageToTerraform;
function lexIntentConclusionStatementMessageToHclTerraform(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 = {
content: {
value: cdktf.stringToHclTerraform(struct.content),
isBlock: false,
type: "simple",
storageClassType: "string",
},
content_type: {
value: cdktf.stringToHclTerraform(struct.contentType),
isBlock: false,
type: "simple",
storageClassType: "string",
},
group_number: {
value: cdktf.numberToHclTerraform(struct.groupNumber),
isBlock: false,
type: "simple",
storageClassType: "number",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.lexIntentConclusionStatementMessageToHclTerraform = lexIntentConclusionStatementMessageToHclTerraform;
class LexIntentConclusionStatementMessageOutputReference 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._content !== undefined) {
hasAnyValues = true;
internalValueResult.content = this._content;
}
if (this._contentType !== undefined) {
hasAnyValues = true;
internalValueResult.contentType = this._contentType;
}
if (this._groupNumber !== undefined) {
hasAnyValues = true;
internalValueResult.groupNumber = this._groupNumber;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._content = undefined;
this._contentType = undefined;
this._groupNumber = 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._content = value.content;
this._contentType = value.contentType;
this._groupNumber = value.groupNumber;
}
}
get content() {
return this.getStringAttribute('content');
}
set content(value) {
this._content = value;
}
// Temporarily expose input value. Use with caution.
get contentInput() {
return this._content;
}
get contentType() {
return this.getStringAttribute('content_type');
}
set contentType(value) {
this._contentType = value;
}
// Temporarily expose input value. Use with caution.
get contentTypeInput() {
return this._contentType;
}
get groupNumber() {
return this.getNumberAttribute('group_number');
}
set groupNumber(value) {
this._groupNumber = value;
}
resetGroupNumber() {
this._groupNumber = undefined;
}
// Temporarily expose input value. Use with caution.
get groupNumberInput() {
return this._groupNumber;
}
}
exports.LexIntentConclusionStatementMessageOutputReference = LexIntentConclusionStatementMessageOutputReference;
_a = JSII_RTTI_SYMBOL_1;
LexIntentConclusionStatementMessageOutputReference[_a] = { fqn: "@cdktf/provider-aws.lexIntent.LexIntentConclusionStatementMessageOutputReference", version: "19.50.0" };
class LexIntentConclusionStatementMessageList 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 LexIntentConclusionStatementMessageOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.LexIntentConclusionStatementMessageList = LexIntentConclusionStatementMessageList;
_b = JSII_RTTI_SYMBOL_1;
LexIntentConclusionStatementMessageList[_b] = { fqn: "@cdktf/provider-aws.lexIntent.LexIntentConclusionStatementMessageList", version: "19.50.0" };
function lexIntentConclusionStatementToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {
response_card: cdktf.stringToTerraform(struct.responseCard),
message: cdktf.listMapper(lexIntentConclusionStatementMessageToTerraform, true)(struct.message),
};
}
exports.lexIntentConclusionStatementToTerraform = lexIntentConclusionStatementToTerraform;
function lexIntentConclusionStatementToHclTerraform(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 = {
response_card: {
value: cdktf.stringToHclTerraform(struct.responseCard),
isBlock: false,
type: "simple",
storageClassType: "string",
},
message: {
value: cdktf.listMapperHcl(lexIntentConclusionStatementMessageToHclTerraform, true)(struct.message),
isBlock: true,
type: "set",
storageClassType: "LexIntentConclusionStatementMessageList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.lexIntentConclusionStatementToHclTerraform = lexIntentConclusionStatementToHclTerraform;
class LexIntentConclusionStatementOutputReference 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;
// message - computed: false, optional: false, required: true
this._message = new LexIntentConclusionStatementMessageList(this, "message", true);
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._responseCard !== undefined) {
hasAnyValues = true;
internalValueResult.responseCard = this._responseCard;
}
if (this._message?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.message = this._message?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._responseCard = undefined;
this._message.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._responseCard = value.responseCard;
this._message.internalValue = value.message;
}
}
get responseCard() {
return this.getStringAttribute('response_card');
}
set responseCard(value) {
this._responseCard = value;
}
resetResponseCard() {
this._responseCard = undefined;
}
// Temporarily expose input value. Use with caution.
get responseCardInput() {
return this._responseCard;
}
get message() {
return this._message;
}
putMessage(value) {
this._message.internalValue = value;
}
// Temporarily expose input value. Use with caution.
get messageInput() {
return this._message.internalValue;
}
}
exports.LexIntentConclusionStatementOutputReference = LexIntentConclusionStatementOutputReference;
_c = JSII_RTTI_SYMBOL_1;
LexIntentConclusionStatementOutputReference[_c] = { fqn: "@cdktf/provider-aws.lexIntent.LexIntentConclusionStatementOutputReference", version: "19.50.0" };
function lexIntentConfirmationPromptMessageToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {
content: cdktf.stringToTerraform(struct.content),
content_type: cdktf.stringToTerraform(struct.contentType),
group_number: cdktf.numberToTerraform(struct.groupNumber),
};
}
exports.lexIntentConfirmationPromptMessageToTerraform = lexIntentConfirmationPromptMessageToTerraform;
function lexIntentConfirmationPromptMessageToHclTerraform(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 = {
content: {
value: cdktf.stringToHclTerraform(struct.content),
isBlock: false,
type: "simple",
storageClassType: "string",
},
content_type: {
value: cdktf.stringToHclTerraform(struct.contentType),
isBlock: false,
type: "simple",
storageClassType: "string",
},
group_number: {
value: cdktf.numberToHclTerraform(struct.groupNumber),
isBlock: false,
type: "simple",
storageClassType: "number",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.lexIntentConfirmationPromptMessageToHclTerraform = lexIntentConfirmationPromptMessageToHclTerraform;
class LexIntentConfirmationPromptMessageOutputReference 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._content !== undefined) {
hasAnyValues = true;
internalValueResult.content = this._content;
}
if (this._contentType !== undefined) {
hasAnyValues = true;
internalValueResult.contentType = this._contentType;
}
if (this._groupNumber !== undefined) {
hasAnyValues = true;
internalValueResult.groupNumber = this._groupNumber;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._content = undefined;
this._contentType = undefined;
this._groupNumber = 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._content = value.content;
this._contentType = value.contentType;
this._groupNumber = value.groupNumber;
}
}
get content() {
return this.getStringAttribute('content');
}
set content(value) {
this._content = value;
}
// Temporarily expose input value. Use with caution.
get contentInput() {
return this._content;
}
get contentType() {
return this.getStringAttribute('content_type');
}
set contentType(value) {
this._contentType = value;
}
// Temporarily expose input value. Use with caution.
get contentTypeInput() {
return this._contentType;
}
get groupNumber() {
return this.getNumberAttribute('group_number');
}
set groupNumber(value) {
this._groupNumber = value;
}
resetGroupNumber() {
this._groupNumber = undefined;
}
// Temporarily expose input value. Use with caution.
get groupNumberInput() {
return this._groupNumber;
}
}
exports.LexIntentConfirmationPromptMessageOutputReference = LexIntentConfirmationPromptMessageOutputReference;
_d = JSII_RTTI_SYMBOL_1;
LexIntentConfirmationPromptMessageOutputReference[_d] = { fqn: "@cdktf/provider-aws.lexIntent.LexIntentConfirmationPromptMessageOutputReference", version: "19.50.0" };
class LexIntentConfirmationPromptMessageList 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 LexIntentConfirmationPromptMessageOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.LexIntentConfirmationPromptMessageList = LexIntentConfirmationPromptMessageList;
_e = JSII_RTTI_SYMBOL_1;
LexIntentConfirmationPromptMessageList[_e] = { fqn: "@cdktf/provider-aws.lexIntent.LexIntentConfirmationPromptMessageList", version: "19.50.0" };
function lexIntentConfirmationPromptToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {
max_attempts: cdktf.numberToTerraform(struct.maxAttempts),
response_card: cdktf.stringToTerraform(struct.responseCard),
message: cdktf.listMapper(lexIntentConfirmationPromptMessageToTerraform, true)(struct.message),
};
}
exports.lexIntentConfirmationPromptToTerraform = lexIntentConfirmationPromptToTerraform;
function lexIntentConfirmationPromptToHclTerraform(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 = {
max_attempts: {
value: cdktf.numberToHclTerraform(struct.maxAttempts),
isBlock: false,
type: "simple",
storageClassType: "number",
},
response_card: {
value: cdktf.stringToHclTerraform(struct.responseCard),
isBlock: false,
type: "simple",
storageClassType: "string",
},
message: {
value: cdktf.listMapperHcl(lexIntentConfirmationPromptMessageToHclTerraform, true)(struct.message),
isBlock: true,
type: "set",
storageClassType: "LexIntentConfirmationPromptMessageList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.lexIntentConfirmationPromptToHclTerraform = lexIntentConfirmationPromptToHclTerraform;
class LexIntentConfirmationPromptOutputReference 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;
// message - computed: false, optional: false, required: true
this._message = new LexIntentConfirmationPromptMessageList(this, "message", true);
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._maxAttempts !== undefined) {
hasAnyValues = true;
internalValueResult.maxAttempts = this._maxAttempts;
}
if (this._responseCard !== undefined) {
hasAnyValues = true;
internalValueResult.responseCard = this._responseCard;
}
if (this._message?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.message = this._message?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._maxAttempts = undefined;
this._responseCard = undefined;
this._message.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._maxAttempts = value.maxAttempts;
this._responseCard = value.responseCard;
this._message.internalValue = value.message;
}
}
get maxAttempts() {
return this.getNumberAttribute('max_attempts');
}
set maxAttempts(value) {
this._maxAttempts = value;
}
// Temporarily expose input value. Use with caution.
get maxAttemptsInput() {
return this._maxAttempts;
}
get responseCard() {
return this.getStringAttribute('response_card');
}
set responseCard(value) {
this._responseCard = value;
}
resetResponseCard() {
this._responseCard = undefined;
}
// Temporarily expose input value. Use with caution.
get responseCardInput() {
return this._responseCard;
}
get message() {
return this._message;
}
putMessage(value) {
this._message.internalValue = value;
}
// Temporarily expose input value. Use with caution.
get messageInput() {
return this._message.internalValue;
}
}
exports.LexIntentConfirmationPromptOutputReference = LexIntentConfirmationPromptOutputReference;
_f = JSII_RTTI_SYMBOL_1;
LexIntentConfirmationPromptOutputReference[_f] = { fqn: "@cdktf/provider-aws.lexIntent.LexIntentConfirmationPromptOutputReference", version: "19.50.0" };
function lexIntentDialogCodeHookToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {
message_version: cdktf.stringToTerraform(struct.messageVersion),
uri: cdktf.stringToTerraform(struct.uri),
};
}
exports.lexIntentDialogCodeHookToTerraform = lexIntentDialogCodeHookToTerraform;
function lexIntentDialogCodeHookToHclTerraform(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 = {
message_version: {
value: cdktf.stringToHclTerraform(struct.messageVersion),
isBlock: false,
type: "simple",
storageClassType: "string",
},
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.lexIntentDialogCodeHookToHclTerraform = lexIntentDialogCodeHookToHclTerraform;
class LexIntentDialogCodeHookOutputReference 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._messageVersion !== undefined) {
hasAnyValues = true;
internalValueResult.messageVersion = this._messageVersion;
}
if (this._uri !== undefined) {
hasAnyValues = true;
internalValueResult.uri = this._uri;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._messageVersion = undefined;
this._uri = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._messageVersion = value.messageVersion;
this._uri = value.uri;
}
}
get messageVersion() {
return this.getStringAttribute('message_version');
}
set messageVersion(value) {
this._messageVersion = value;
}
// Temporarily expose input value. Use with caution.
get messageVersionInput() {
return this._messageVersion;
}
get uri() {
return this.getStringAttribute('uri');
}
set uri(value) {
this._uri = value;
}
// Temporarily expose input value. Use with caution.
get uriInput() {
return this._uri;
}
}
exports.LexIntentDialogCodeHookOutputReference = LexIntentDialogCodeHookOutputReference;
_g = JSII_RTTI_SYMBOL_1;
LexIntentDialogCodeHookOutputReference[_g] = { fqn: "@cdktf/provider-aws.lexIntent.LexIntentDialogCodeHookOutputReference", version: "19.50.0" };
function lexIntentFollowUpPromptPromptMessageToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {
content: cdktf.stringToTerraform(struct.content),
content_type: cdktf.stringToTerraform(struct.contentType),
group_number: cdktf.numberToTerraform(struct.groupNumber),
};
}
exports.lexIntentFollowUpPromptPromptMessageToTerraform = lexIntentFollowUpPromptPromptMessageToTerraform;
function lexIntentFollowUpPromptPromptMessageToHclTerraform(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 = {
content: {
value: cdktf.stringToHclTerraform(struct.content),
isBlock: false,
type: "simple",
storageClassType: "string",
},
content_type: {
value: cdktf.stringToHclTerraform(struct.contentType),
isBlock: false,
type: "simple",
storageClassType: "string",
},
group_number: {
value: cdktf.numberToHclTerraform(struct.groupNumber),
isBlock: false,
type: "simple",
storageClassType: "number",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.lexIntentFollowUpPromptPromptMessageToHclTerraform = lexIntentFollowUpPromptPromptMessageToHclTerraform;
class LexIntentFollowUpPromptPromptMessageOutputReference 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._content !== undefined) {
hasAnyValues = true;
internalValueResult.content = this._content;
}
if (this._contentType !== undefined) {
hasAnyValues = true;
internalValueResult.contentType = this._contentType;
}
if (this._groupNumber !== undefined) {
hasAnyValues = true;
internalValueResult.groupNumber = this._groupNumber;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._content = undefined;
this._contentType = undefined;
this._groupNumber = 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._content = value.content;
this._contentType = value.contentType;
this._groupNumber = value.groupNumber;
}
}
get content() {
return this.getStringAttribute('content');
}
set content(value) {
this._content = value;
}
// Temporarily expose input value. Use with caution.
get contentInput() {
return this._content;
}
get contentType() {
return this.getStringAttribute('content_type');
}
set contentType(value) {
this._contentType = value;
}
// Temporarily expose input value. Use with caution.
get contentTypeInput() {
return this._contentType;
}
get groupNumber() {
return this.getNumberAttribute('group_number');
}
set groupNumber(value) {
this._groupNumber = value;
}
resetGroupNumber() {
this._groupNumber = undefined;
}
// Temporarily expose input value. Use with caution.
get groupNumberInput() {
return this._groupNumber;
}
}
exports.LexIntentFollowUpPromptPromptMessageOutputReference = LexIntentFollowUpPromptPromptMessageOutputReference;
_h = JSII_RTTI_SYMBOL_1;
LexIntentFollowUpPromptPromptMessageOutputReference[_h] = { fqn: "@cdktf/provider-aws.lexIntent.LexIntentFollowUpPromptPromptMessageOutputReference", version: "19.50.0" };
class LexIntentFollowUpPromptPromptMessageList 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 LexIntentFollowUpPromptPromptMessageOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.LexIntentFollowUpPromptPromptMessageList = LexIntentFollowUpPromptPromptMessageList;
_j = JSII_RTTI_SYMBOL_1;
LexIntentFollowUpPromptPromptMessageList[_j] = { fqn: "@cdktf/provider-aws.lexIntent.LexIntentFollowUpPromptPromptMessageList", version: "19.50.0" };
function lexIntentFollowUpPromptPromptToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {
max_attempts: cdktf.numberToTerraform(struct.maxAttempts),
response_card: cdktf.stringToTerraform(struct.responseCard),
message: cdktf.listMapper(lexIntentFollowUpPromptPromptMessageToTerraform, true)(struct.message),
};
}
exports.lexIntentFollowUpPromptPromptToTerraform = lexIntentFollowUpPromptPromptToTerraform;
function lexIntentFollowUpPromptPromptToHclTerraform(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 = {
max_attempts: {
value: cdktf.numberToHclTerraform(struct.maxAttempts),
isBlock: false,
type: "simple",
storageClassType: "number",
},
response_card: {
value: cdktf.stringToHclTerraform(struct.responseCard),
isBlock: false,
type: "simple",
storageClassType: "string",
},
message: {
value: cdktf.listMapperHcl(lexIntentFollowUpPromptPromptMessageToHclTerraform, true)(struct.message),
isBlock: true,
type: "set",
storageClassType: "LexIntentFollowUpPromptPromptMessageList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.lexIntentFollowUpPromptPromptToHclTerraform = lexIntentFollowUpPromptPromptToHclTerraform;
class LexIntentFollowUpPromptPromptOutputReference 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;
// message - computed: false, optional: false, required: true
this._message = new LexIntentFollowUpPromptPromptMessageList(this, "message", true);
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._maxAttempts !== undefined) {
hasAnyValues = true;
internalValueResult.maxAttempts = this._maxAttempts;
}
if (this._responseCard !== undefined) {
hasAnyValues = true;
internalValueResult.responseCard = this._responseCard;
}
if (this._message?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.message = this._message?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._maxAttempts = undefined;
this._responseCard = undefined;
this._message.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._maxAttempts = value.maxAttempts;
this._responseCard = value.responseCard;
this._message.internalValue = value.message;
}
}
get maxAttempts() {
return this.getNumberAttribute('max_attempts');
}
set maxAttempts(value) {
this._maxAttempts = value;
}
// Temporarily expose input value. Use with caution.
get maxAttemptsInput() {
return this._maxAttempts;
}
get responseCard() {
return this.getStringAttribute('response_card');
}
set responseCard(value) {
this._responseCard = value;
}
resetResponseCard() {
this._responseCard = undefined;
}
// Temporarily expose input value. Use with caution.
get responseCardInput() {
return this._responseCard;
}
get message() {
return this._message;
}
putMessage(value) {
this._message.internalValue = value;
}
// Temporarily expose input value. Use with caution.
get messageInput() {
return this._message.internalValue;
}
}
exports.LexIntentFollowUpPromptPromptOutputReference = LexIntentFollowUpPromptPromptOutputReference;
_k = JSII_RTTI_SYMBOL_1;
LexIntentFollowUpPromptPromptOutputReference[_k] = { fqn: "@cdktf/provider-aws.lexIntent.LexIntentFollowUpPromptPromptOutputReference", version: "19.50.0" };
function lexIntentFollowUpPromptRejectionStatementMessageToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {
content: cdktf.stringToTerraform(struct.content),
content_type: cdktf.stringToTerraform(struct.contentType),
group_number: cdktf.numberToTerraform(struct.groupNumber),
};
}
exports.lexIntentFollowUpPromptRejectionStatementMessageToTerraform = lexIntentFollowUpPromptRejectionStatementMessageToTerraform;
function lexIntentFollowUpPromptRejectionStatementMessageToHclTerraform(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 = {
content: {
value: cdktf.stringToHclTerraform(struct.content),
isBlock: false,
type: "simple",
storageClassType: "string",
},
content_type: {
value: cdktf.stringToHclTerraform(struct.contentType),
isBlock: false,
type: "simple",
storageClassType: "string",
},
group_number: {
value: cdktf.numberToHclTerraform(struct.groupNumber),
isBlock: false,
type: "simple",
storageClassType: "number",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.lexIntentFollowUpPromptRejectionStatementMessageToHclTerraform = lexIntentFollowUpPromptRejectionStatementMessageToHclTerraform;
class LexIntentFollowUpPromptRejectionStatementMessageOutputReference 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._content !== undefined) {
hasAnyValues = true;
internalValueResult.content = this._content;
}
if (this._contentType !== undefined) {
hasAnyValues = true;
internalValueResult.contentType = this._contentType;
}
if (this._groupNumber !== undefined) {
hasAnyValues = true;
internalValueResult.groupNumber = this._groupNumber;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._content = undefined;
this._contentType = undefined;
this._groupNumber = 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._content = value.content;
this._contentType = value.contentType;
this._groupNumber = value.groupNumber;
}
}
get content() {
return this.getStringAttribute('content');
}
set content(value) {
this._content = value;
}
// Temporarily expose input value. Use with caution.
get contentInput() {
return this._content;
}
get contentType() {
return this.getStringAttribute('content_type');
}
set contentType(value) {
this._contentType = value;
}
// Temporarily expose input value. Use with caution.
get contentTypeInput() {
return this._contentType;
}
get groupNumber() {
return this.getNumberAttribute('group_number');
}
set groupNumber(value) {
this._groupNumber = value;
}
resetGroupNumber() {
this._groupNumber = undefined;
}
// Temporarily expose input value. Use with caution.
get groupNumberInput() {
return this._groupNumber;
}
}
exports.LexIntentFollowUpPromptRejectionStatementMessageOutputReference = LexIntentFollowUpPromptRejectionStatementMessageOutputReference;
_l = JSII_RTTI_SYMBOL_1;
LexIntentFollowUpPromptRejectionStatementMessageOutputReference[_l] = { fqn: "@cdktf/provider-aws.lexIntent.LexIntentFollowUpPromptRejectionStatementMessageOutputReference", version: "19.50.0" };
class LexIntentFollowUpPromptRejectionStatementMessageList 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 LexIntentFollowUpPromptRejectionStatementMessageOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.LexIntentFollowUpPromptRejectionStatementMessageList = LexIntentFollowUpPromptRejectionStatementMessageList;
_m = JSII_RTTI_SYMBOL_1;
LexIntentFollowUpPromptRejectionStatementMessageList[_m] = { fqn: "@cdktf/provider-aws.lexIntent.LexIntentFollowUpPromptRejectionStatementMessageList", version: "19.50.0" };
function lexIntentFollowUpPromptRejectionStatementToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
return {
response_card: cdktf.stringToTerraform(struct.responseCard),
message: cdktf.listMapper(lexIntentFollowUpPromptRejectionStatementMessageToTerraform, true)(struct.message),
};
}
exports.lexIntentFollowUpPromptRejectionStatementToTerraform = lexIntentFollowUpPromptRejectionStatementToTerraform;
function lexIntentFollowUpPromptRejectionStatementToHclTerraform(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 = {
response_card: {
value: cdktf.stringToHclTerraform(struct.responseCard),
isBlock: false,
type: "simple",
storageClassType: "string",
},
message: {
value: cdktf.listMapperHcl(lexIntentFollowUpPromptRejectionStatementMessageToHclTerraform, true)(struct.message),
isBlock: true,
type: "set",
storageClassType: "LexIntentFollowUpPromptRejectionStatementMessageList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.lexIntentFollowUpPromptRejectionStatementToHclTerraform = lexIntentFollowUpPromptRejectionStatementToHclTerraform;
class LexIntentFollowUpPromptRejectionStatementOutputReference 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;
// message - computed: false, optional: false, required: true
this._message = new LexIntentFollowUpPromptRejectionStatementMessageList(this, "message", true);
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._responseCard !== undefined) {
hasAnyValues = true;
internalValueResult.responseCard = this._responseCard;
}
if (this._me