@cdktf/provider-aws
Version:
Prebuilt aws Provider for Terraform CDK (cdktf)
1,121 lines • 282 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
Object.defineProperty(exports, "__esModule", { value: true });
exports.KendraIndex = exports.KendraIndexUserTokenConfigurationsOutputReference = exports.kendraIndexUserTokenConfigurationsToHclTerraform = exports.kendraIndexUserTokenConfigurationsToTerraform = exports.KendraIndexUserTokenConfigurationsJwtTokenTypeConfigurationOutputReference = exports.kendraIndexUserTokenConfigurationsJwtTokenTypeConfigurationToHclTerraform = exports.kendraIndexUserTokenConfigurationsJwtTokenTypeConfigurationToTerraform = exports.KendraIndexUserTokenConfigurationsJsonTokenTypeConfigurationOutputReference = exports.kendraIndexUserTokenConfigurationsJsonTokenTypeConfigurationToHclTerraform = exports.kendraIndexUserTokenConfigurationsJsonTokenTypeConfigurationToTerraform = exports.KendraIndexUserGroupResolutionConfigurationOutputReference = exports.kendraIndexUserGroupResolutionConfigurationToHclTerraform = exports.kendraIndexUserGroupResolutionConfigurationToTerraform = exports.KendraIndexTimeoutsOutputReference = exports.kendraIndexTimeoutsToHclTerraform = exports.kendraIndexTimeoutsToTerraform = exports.KendraIndexServerSideEncryptionConfigurationOutputReference = exports.kendraIndexServerSideEncryptionConfigurationToHclTerraform = exports.kendraIndexServerSideEncryptionConfigurationToTerraform = exports.KendraIndexDocumentMetadataConfigurationUpdatesList = exports.KendraIndexDocumentMetadataConfigurationUpdatesOutputReference = exports.kendraIndexDocumentMetadataConfigurationUpdatesToHclTerraform = exports.kendraIndexDocumentMetadataConfigurationUpdatesToTerraform = exports.KendraIndexDocumentMetadataConfigurationUpdatesSearchOutputReference = exports.kendraIndexDocumentMetadataConfigurationUpdatesSearchToHclTerraform = exports.kendraIndexDocumentMetadataConfigurationUpdatesSearchToTerraform = exports.KendraIndexDocumentMetadataConfigurationUpdatesRelevanceOutputReference = exports.kendraIndexDocumentMetadataConfigurationUpdatesRelevanceToHclTerraform = exports.kendraIndexDocumentMetadataConfigurationUpdatesRelevanceToTerraform = exports.KendraIndexCapacityUnitsOutputReference = exports.kendraIndexCapacityUnitsToHclTerraform = exports.kendraIndexCapacityUnitsToTerraform = exports.KendraIndexIndexStatisticsList = exports.KendraIndexIndexStatisticsOutputReference = exports.kendraIndexIndexStatisticsToHclTerraform = exports.kendraIndexIndexStatisticsToTerraform = exports.KendraIndexIndexStatisticsTextDocumentStatisticsList = exports.KendraIndexIndexStatisticsTextDocumentStatisticsOutputReference = exports.kendraIndexIndexStatisticsTextDocumentStatisticsToHclTerraform = exports.kendraIndexIndexStatisticsTextDocumentStatisticsToTerraform = exports.KendraIndexIndexStatisticsFaqStatisticsList = exports.KendraIndexIndexStatisticsFaqStatisticsOutputReference = exports.kendraIndexIndexStatisticsFaqStatisticsToHclTerraform = exports.kendraIndexIndexStatisticsFaqStatisticsToTerraform = void 0;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function kendraIndexIndexStatisticsFaqStatisticsToTerraform(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 {};
}
exports.kendraIndexIndexStatisticsFaqStatisticsToTerraform = kendraIndexIndexStatisticsFaqStatisticsToTerraform;
function kendraIndexIndexStatisticsFaqStatisticsToHclTerraform(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 = {};
return attrs;
}
exports.kendraIndexIndexStatisticsFaqStatisticsToHclTerraform = kendraIndexIndexStatisticsFaqStatisticsToHclTerraform;
class KendraIndexIndexStatisticsFaqStatisticsOutputReference 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() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
// indexed_question_answers_count - computed: true, optional: false, required: false
get indexedQuestionAnswersCount() {
return this.getNumberAttribute('indexed_question_answers_count');
}
}
exports.KendraIndexIndexStatisticsFaqStatisticsOutputReference = KendraIndexIndexStatisticsFaqStatisticsOutputReference;
_a = JSII_RTTI_SYMBOL_1;
KendraIndexIndexStatisticsFaqStatisticsOutputReference[_a] = { fqn: "@cdktf/provider-aws.kendraIndex.KendraIndexIndexStatisticsFaqStatisticsOutputReference", version: "19.50.0" };
class KendraIndexIndexStatisticsFaqStatisticsList 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 KendraIndexIndexStatisticsFaqStatisticsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.KendraIndexIndexStatisticsFaqStatisticsList = KendraIndexIndexStatisticsFaqStatisticsList;
_b = JSII_RTTI_SYMBOL_1;
KendraIndexIndexStatisticsFaqStatisticsList[_b] = { fqn: "@cdktf/provider-aws.kendraIndex.KendraIndexIndexStatisticsFaqStatisticsList", version: "19.50.0" };
function kendraIndexIndexStatisticsTextDocumentStatisticsToTerraform(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 {};
}
exports.kendraIndexIndexStatisticsTextDocumentStatisticsToTerraform = kendraIndexIndexStatisticsTextDocumentStatisticsToTerraform;
function kendraIndexIndexStatisticsTextDocumentStatisticsToHclTerraform(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 = {};
return attrs;
}
exports.kendraIndexIndexStatisticsTextDocumentStatisticsToHclTerraform = kendraIndexIndexStatisticsTextDocumentStatisticsToHclTerraform;
class KendraIndexIndexStatisticsTextDocumentStatisticsOutputReference 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() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
// indexed_text_bytes - computed: true, optional: false, required: false
get indexedTextBytes() {
return this.getNumberAttribute('indexed_text_bytes');
}
// indexed_text_documents_count - computed: true, optional: false, required: false
get indexedTextDocumentsCount() {
return this.getNumberAttribute('indexed_text_documents_count');
}
}
exports.KendraIndexIndexStatisticsTextDocumentStatisticsOutputReference = KendraIndexIndexStatisticsTextDocumentStatisticsOutputReference;
_c = JSII_RTTI_SYMBOL_1;
KendraIndexIndexStatisticsTextDocumentStatisticsOutputReference[_c] = { fqn: "@cdktf/provider-aws.kendraIndex.KendraIndexIndexStatisticsTextDocumentStatisticsOutputReference", version: "19.50.0" };
class KendraIndexIndexStatisticsTextDocumentStatisticsList 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 KendraIndexIndexStatisticsTextDocumentStatisticsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.KendraIndexIndexStatisticsTextDocumentStatisticsList = KendraIndexIndexStatisticsTextDocumentStatisticsList;
_d = JSII_RTTI_SYMBOL_1;
KendraIndexIndexStatisticsTextDocumentStatisticsList[_d] = { fqn: "@cdktf/provider-aws.kendraIndex.KendraIndexIndexStatisticsTextDocumentStatisticsList", version: "19.50.0" };
function kendraIndexIndexStatisticsToTerraform(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 {};
}
exports.kendraIndexIndexStatisticsToTerraform = kendraIndexIndexStatisticsToTerraform;
function kendraIndexIndexStatisticsToHclTerraform(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 = {};
return attrs;
}
exports.kendraIndexIndexStatisticsToHclTerraform = kendraIndexIndexStatisticsToHclTerraform;
class KendraIndexIndexStatisticsOutputReference 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;
// faq_statistics - computed: true, optional: false, required: false
this._faqStatistics = new KendraIndexIndexStatisticsFaqStatisticsList(this, "faq_statistics", false);
// text_document_statistics - computed: true, optional: false, required: false
this._textDocumentStatistics = new KendraIndexIndexStatisticsTextDocumentStatisticsList(this, "text_document_statistics", false);
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
}
}
get faqStatistics() {
return this._faqStatistics;
}
get textDocumentStatistics() {
return this._textDocumentStatistics;
}
}
exports.KendraIndexIndexStatisticsOutputReference = KendraIndexIndexStatisticsOutputReference;
_e = JSII_RTTI_SYMBOL_1;
KendraIndexIndexStatisticsOutputReference[_e] = { fqn: "@cdktf/provider-aws.kendraIndex.KendraIndexIndexStatisticsOutputReference", version: "19.50.0" };
class KendraIndexIndexStatisticsList 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 KendraIndexIndexStatisticsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.KendraIndexIndexStatisticsList = KendraIndexIndexStatisticsList;
_f = JSII_RTTI_SYMBOL_1;
KendraIndexIndexStatisticsList[_f] = { fqn: "@cdktf/provider-aws.kendraIndex.KendraIndexIndexStatisticsList", version: "19.50.0" };
function kendraIndexCapacityUnitsToTerraform(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 {
query_capacity_units: cdktf.numberToTerraform(struct.queryCapacityUnits),
storage_capacity_units: cdktf.numberToTerraform(struct.storageCapacityUnits),
};
}
exports.kendraIndexCapacityUnitsToTerraform = kendraIndexCapacityUnitsToTerraform;
function kendraIndexCapacityUnitsToHclTerraform(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 = {
query_capacity_units: {
value: cdktf.numberToHclTerraform(struct.queryCapacityUnits),
isBlock: false,
type: "simple",
storageClassType: "number",
},
storage_capacity_units: {
value: cdktf.numberToHclTerraform(struct.storageCapacityUnits),
isBlock: false,
type: "simple",
storageClassType: "number",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.kendraIndexCapacityUnitsToHclTerraform = kendraIndexCapacityUnitsToHclTerraform;
class KendraIndexCapacityUnitsOutputReference 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._queryCapacityUnits !== undefined) {
hasAnyValues = true;
internalValueResult.queryCapacityUnits = this._queryCapacityUnits;
}
if (this._storageCapacityUnits !== undefined) {
hasAnyValues = true;
internalValueResult.storageCapacityUnits = this._storageCapacityUnits;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._queryCapacityUnits = undefined;
this._storageCapacityUnits = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._queryCapacityUnits = value.queryCapacityUnits;
this._storageCapacityUnits = value.storageCapacityUnits;
}
}
get queryCapacityUnits() {
return this.getNumberAttribute('query_capacity_units');
}
set queryCapacityUnits(value) {
this._queryCapacityUnits = value;
}
resetQueryCapacityUnits() {
this._queryCapacityUnits = undefined;
}
// Temporarily expose input value. Use with caution.
get queryCapacityUnitsInput() {
return this._queryCapacityUnits;
}
get storageCapacityUnits() {
return this.getNumberAttribute('storage_capacity_units');
}
set storageCapacityUnits(value) {
this._storageCapacityUnits = value;
}
resetStorageCapacityUnits() {
this._storageCapacityUnits = undefined;
}
// Temporarily expose input value. Use with caution.
get storageCapacityUnitsInput() {
return this._storageCapacityUnits;
}
}
exports.KendraIndexCapacityUnitsOutputReference = KendraIndexCapacityUnitsOutputReference;
_g = JSII_RTTI_SYMBOL_1;
KendraIndexCapacityUnitsOutputReference[_g] = { fqn: "@cdktf/provider-aws.kendraIndex.KendraIndexCapacityUnitsOutputReference", version: "19.50.0" };
function kendraIndexDocumentMetadataConfigurationUpdatesRelevanceToTerraform(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 {
duration: cdktf.stringToTerraform(struct.duration),
freshness: cdktf.booleanToTerraform(struct.freshness),
importance: cdktf.numberToTerraform(struct.importance),
rank_order: cdktf.stringToTerraform(struct.rankOrder),
values_importance_map: cdktf.hashMapper(cdktf.numberToTerraform)(struct.valuesImportanceMap),
};
}
exports.kendraIndexDocumentMetadataConfigurationUpdatesRelevanceToTerraform = kendraIndexDocumentMetadataConfigurationUpdatesRelevanceToTerraform;
function kendraIndexDocumentMetadataConfigurationUpdatesRelevanceToHclTerraform(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 = {
duration: {
value: cdktf.stringToHclTerraform(struct.duration),
isBlock: false,
type: "simple",
storageClassType: "string",
},
freshness: {
value: cdktf.booleanToHclTerraform(struct.freshness),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
importance: {
value: cdktf.numberToHclTerraform(struct.importance),
isBlock: false,
type: "simple",
storageClassType: "number",
},
rank_order: {
value: cdktf.stringToHclTerraform(struct.rankOrder),
isBlock: false,
type: "simple",
storageClassType: "string",
},
values_importance_map: {
value: cdktf.hashMapperHcl(cdktf.numberToHclTerraform)(struct.valuesImportanceMap),
isBlock: false,
type: "map",
storageClassType: "numberMap",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.kendraIndexDocumentMetadataConfigurationUpdatesRelevanceToHclTerraform = kendraIndexDocumentMetadataConfigurationUpdatesRelevanceToHclTerraform;
class KendraIndexDocumentMetadataConfigurationUpdatesRelevanceOutputReference 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._duration !== undefined) {
hasAnyValues = true;
internalValueResult.duration = this._duration;
}
if (this._freshness !== undefined) {
hasAnyValues = true;
internalValueResult.freshness = this._freshness;
}
if (this._importance !== undefined) {
hasAnyValues = true;
internalValueResult.importance = this._importance;
}
if (this._rankOrder !== undefined) {
hasAnyValues = true;
internalValueResult.rankOrder = this._rankOrder;
}
if (this._valuesImportanceMap !== undefined) {
hasAnyValues = true;
internalValueResult.valuesImportanceMap = this._valuesImportanceMap;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._duration = undefined;
this._freshness = undefined;
this._importance = undefined;
this._rankOrder = undefined;
this._valuesImportanceMap = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._duration = value.duration;
this._freshness = value.freshness;
this._importance = value.importance;
this._rankOrder = value.rankOrder;
this._valuesImportanceMap = value.valuesImportanceMap;
}
}
get duration() {
return this.getStringAttribute('duration');
}
set duration(value) {
this._duration = value;
}
resetDuration() {
this._duration = undefined;
}
// Temporarily expose input value. Use with caution.
get durationInput() {
return this._duration;
}
get freshness() {
return this.getBooleanAttribute('freshness');
}
set freshness(value) {
this._freshness = value;
}
resetFreshness() {
this._freshness = undefined;
}
// Temporarily expose input value. Use with caution.
get freshnessInput() {
return this._freshness;
}
get importance() {
return this.getNumberAttribute('importance');
}
set importance(value) {
this._importance = value;
}
resetImportance() {
this._importance = undefined;
}
// Temporarily expose input value. Use with caution.
get importanceInput() {
return this._importance;
}
get rankOrder() {
return this.getStringAttribute('rank_order');
}
set rankOrder(value) {
this._rankOrder = value;
}
resetRankOrder() {
this._rankOrder = undefined;
}
// Temporarily expose input value. Use with caution.
get rankOrderInput() {
return this._rankOrder;
}
get valuesImportanceMap() {
return this.getNumberMapAttribute('values_importance_map');
}
set valuesImportanceMap(value) {
this._valuesImportanceMap = value;
}
resetValuesImportanceMap() {
this._valuesImportanceMap = undefined;
}
// Temporarily expose input value. Use with caution.
get valuesImportanceMapInput() {
return this._valuesImportanceMap;
}
}
exports.KendraIndexDocumentMetadataConfigurationUpdatesRelevanceOutputReference = KendraIndexDocumentMetadataConfigurationUpdatesRelevanceOutputReference;
_h = JSII_RTTI_SYMBOL_1;
KendraIndexDocumentMetadataConfigurationUpdatesRelevanceOutputReference[_h] = { fqn: "@cdktf/provider-aws.kendraIndex.KendraIndexDocumentMetadataConfigurationUpdatesRelevanceOutputReference", version: "19.50.0" };
function kendraIndexDocumentMetadataConfigurationUpdatesSearchToTerraform(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 {
displayable: cdktf.booleanToTerraform(struct.displayable),
facetable: cdktf.booleanToTerraform(struct.facetable),
searchable: cdktf.booleanToTerraform(struct.searchable),
sortable: cdktf.booleanToTerraform(struct.sortable),
};
}
exports.kendraIndexDocumentMetadataConfigurationUpdatesSearchToTerraform = kendraIndexDocumentMetadataConfigurationUpdatesSearchToTerraform;
function kendraIndexDocumentMetadataConfigurationUpdatesSearchToHclTerraform(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 = {
displayable: {
value: cdktf.booleanToHclTerraform(struct.displayable),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
facetable: {
value: cdktf.booleanToHclTerraform(struct.facetable),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
searchable: {
value: cdktf.booleanToHclTerraform(struct.searchable),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
sortable: {
value: cdktf.booleanToHclTerraform(struct.sortable),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.kendraIndexDocumentMetadataConfigurationUpdatesSearchToHclTerraform = kendraIndexDocumentMetadataConfigurationUpdatesSearchToHclTerraform;
class KendraIndexDocumentMetadataConfigurationUpdatesSearchOutputReference 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._displayable !== undefined) {
hasAnyValues = true;
internalValueResult.displayable = this._displayable;
}
if (this._facetable !== undefined) {
hasAnyValues = true;
internalValueResult.facetable = this._facetable;
}
if (this._searchable !== undefined) {
hasAnyValues = true;
internalValueResult.searchable = this._searchable;
}
if (this._sortable !== undefined) {
hasAnyValues = true;
internalValueResult.sortable = this._sortable;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._displayable = undefined;
this._facetable = undefined;
this._searchable = undefined;
this._sortable = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._displayable = value.displayable;
this._facetable = value.facetable;
this._searchable = value.searchable;
this._sortable = value.sortable;
}
}
get displayable() {
return this.getBooleanAttribute('displayable');
}
set displayable(value) {
this._displayable = value;
}
resetDisplayable() {
this._displayable = undefined;
}
// Temporarily expose input value. Use with caution.
get displayableInput() {
return this._displayable;
}
get facetable() {
return this.getBooleanAttribute('facetable');
}
set facetable(value) {
this._facetable = value;
}
resetFacetable() {
this._facetable = undefined;
}
// Temporarily expose input value. Use with caution.
get facetableInput() {
return this._facetable;
}
get searchable() {
return this.getBooleanAttribute('searchable');
}
set searchable(value) {
this._searchable = value;
}
resetSearchable() {
this._searchable = undefined;
}
// Temporarily expose input value. Use with caution.
get searchableInput() {
return this._searchable;
}
get sortable() {
return this.getBooleanAttribute('sortable');
}
set sortable(value) {
this._sortable = value;
}
resetSortable() {
this._sortable = undefined;
}
// Temporarily expose input value. Use with caution.
get sortableInput() {
return this._sortable;
}
}
exports.KendraIndexDocumentMetadataConfigurationUpdatesSearchOutputReference = KendraIndexDocumentMetadataConfigurationUpdatesSearchOutputReference;
_j = JSII_RTTI_SYMBOL_1;
KendraIndexDocumentMetadataConfigurationUpdatesSearchOutputReference[_j] = { fqn: "@cdktf/provider-aws.kendraIndex.KendraIndexDocumentMetadataConfigurationUpdatesSearchOutputReference", version: "19.50.0" };
function kendraIndexDocumentMetadataConfigurationUpdatesToTerraform(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 {
name: cdktf.stringToTerraform(struct.name),
type: cdktf.stringToTerraform(struct.type),
relevance: kendraIndexDocumentMetadataConfigurationUpdatesRelevanceToTerraform(struct.relevance),
search: kendraIndexDocumentMetadataConfigurationUpdatesSearchToTerraform(struct.search),
};
}
exports.kendraIndexDocumentMetadataConfigurationUpdatesToTerraform = kendraIndexDocumentMetadataConfigurationUpdatesToTerraform;
function kendraIndexDocumentMetadataConfigurationUpdatesToHclTerraform(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 = {
name: {
value: cdktf.stringToHclTerraform(struct.name),
isBlock: false,
type: "simple",
storageClassType: "string",
},
type: {
value: cdktf.stringToHclTerraform(struct.type),
isBlock: false,
type: "simple",
storageClassType: "string",
},
relevance: {
value: kendraIndexDocumentMetadataConfigurationUpdatesRelevanceToHclTerraform(struct.relevance),
isBlock: true,
type: "list",
storageClassType: "KendraIndexDocumentMetadataConfigurationUpdatesRelevanceList",
},
search: {
value: kendraIndexDocumentMetadataConfigurationUpdatesSearchToHclTerraform(struct.search),
isBlock: true,
type: "list",
storageClassType: "KendraIndexDocumentMetadataConfigurationUpdatesSearchList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.kendraIndexDocumentMetadataConfigurationUpdatesToHclTerraform = kendraIndexDocumentMetadataConfigurationUpdatesToHclTerraform;
class KendraIndexDocumentMetadataConfigurationUpdatesOutputReference 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;
// relevance - computed: false, optional: true, required: false
this._relevance = new KendraIndexDocumentMetadataConfigurationUpdatesRelevanceOutputReference(this, "relevance");
// search - computed: false, optional: true, required: false
this._search = new KendraIndexDocumentMetadataConfigurationUpdatesSearchOutputReference(this, "search");
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._name !== undefined) {
hasAnyValues = true;
internalValueResult.name = this._name;
}
if (this._type !== undefined) {
hasAnyValues = true;
internalValueResult.type = this._type;
}
if (this._relevance?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.relevance = this._relevance?.internalValue;
}
if (this._search?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.search = this._search?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._name = undefined;
this._type = undefined;
this._relevance.internalValue = undefined;
this._search.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._name = value.name;
this._type = value.type;
this._relevance.internalValue = value.relevance;
this._search.internalValue = value.search;
}
}
get name() {
return this.getStringAttribute('name');
}
set name(value) {
this._name = value;
}
// Temporarily expose input value. Use with caution.
get nameInput() {
return this._name;
}
get type() {
return this.getStringAttribute('type');
}
set type(value) {
this._type = value;
}
// Temporarily expose input value. Use with caution.
get typeInput() {
return this._type;
}
get relevance() {
return this._relevance;
}
putRelevance(value) {
this._relevance.internalValue = value;
}
resetRelevance() {
this._relevance.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get relevanceInput() {
return this._relevance.internalValue;
}
get search() {
return this._search;
}
putSearch(value) {
this._search.internalValue = value;
}
resetSearch() {
this._search.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get searchInput() {
return this._search.internalValue;
}
}
exports.KendraIndexDocumentMetadataConfigurationUpdatesOutputReference = KendraIndexDocumentMetadataConfigurationUpdatesOutputReference;
_k = JSII_RTTI_SYMBOL_1;
KendraIndexDocumentMetadataConfigurationUpdatesOutputReference[_k] = { fqn: "@cdktf/provider-aws.kendraIndex.KendraIndexDocumentMetadataConfigurationUpdatesOutputReference", version: "19.50.0" };
class KendraIndexDocumentMetadataConfigurationUpdatesList 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 KendraIndexDocumentMetadataConfigurationUpdatesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.KendraIndexDocumentMetadataConfigurationUpdatesList = KendraIndexDocumentMetadataConfigurationUpdatesList;
_l = JSII_RTTI_SYMBOL_1;
KendraIndexDocumentMetadataConfigurationUpdatesList[_l] = { fqn: "@cdktf/provider-aws.kendraIndex.KendraIndexDocumentMetadataConfigurationUpdatesList", version: "19.50.0" };
function kendraIndexServerSideEncryptionConfigurationToTerraform(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 {
kms_key_id: cdktf.stringToTerraform(struct.kmsKeyId),
};
}
exports.kendraIndexServerSideEncryptionConfigurationToTerraform = kendraIndexServerSideEncryptionConfigurationToTerraform;
function kendraIndexServerSideEncryptionConfigurationToHclTerraform(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 = {
kms_key_id: {
value: cdktf.stringToHclTerraform(struct.kmsKeyId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.kendraIndexServerSideEncryptionConfigurationToHclTerraform = kendraIndexServerSideEncryptionConfigurationToHclTerraform;
class KendraIndexServerSideEncryptionConfigurationOutputReference 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._kmsKeyId !== undefined) {
hasAnyValues = true;
internalValueResult.kmsKeyId = this._kmsKeyId;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._kmsKeyId = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._kmsKeyId = value.kmsKeyId;
}
}
get kmsKeyId() {
return this.getStringAttribute('kms_key_id');
}
set kmsKeyId(value) {
this._kmsKeyId = value;
}
resetKmsKeyId() {
this._kmsKeyId = undefined;
}
// Temporarily expose input value. Use with caution.
get kmsKeyIdInput() {
return this._kmsKeyId;
}
}
exports.KendraIndexServerSideEncryptionConfigurationOutputReference = KendraIndexServerSideEncryptionConfigurationOutputReference;
_m = JSII_RTTI_SYMBOL_1;
KendraIndexServerSideEncryptionConfigurationOutputReference[_m] = { fqn: "@cdktf/provider-aws.kendraIndex.KendraIndexServerSideEncryptionConfigurationOutputReference", version: "19.50.0" };
function kendraIndexTimeoutsToTerraform(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.kendraIndexTimeoutsToTerraform = kendraIndexTimeoutsToTerraform;
function kendraIndexTimeoutsToHclTerraform(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.kendraIndexTimeoutsToHclTerraform = kendraIndexTimeoutsToHclTerraform;
class KendraIndexTimeoutsOutputReference 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) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._create !== undefined) {
hasAnyValues = true;
internalValueResult.create = this._create;
}
if (this._delete !== undefined) {
hasAnyValues = true;
internalValueResult.delete = this._delete;
}
if (this._update !== undefined) {
hasAnyValues = true;
internalValueResult.update = this._update;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._create = undefined;
this._delete = undefined;
this._update = 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._create = value.create;
this._delete = value.delete;
this._update = value.update;
}
}
get create() {
return this.getStringAttribute('create');
}
set create(value) {
this._create = value;
}
resetCreate() {
this._create = undefined;
}
// Temporarily expose input value. Use with caution.
get createInput() {
return this._create;
}
get delete() {
return this.getStringAttribute('delete');
}
set delete(value) {
this._delete = value;
}
resetDelete() {
this._delete = undefined;
}
// Temporarily expose input value. Use with caution.
get deleteInput() {
return this._delete;
}
get update() {
return this.getStringAttribute('update');
}
set update(value) {
this._update = value;
}
resetUpdate() {
this._update = undefined;
}
// Temporarily expose input value. Use with caution.
get updateInput() {
return this._update;
}
}
exports.KendraIndexTimeoutsOutputReference = KendraIndexTimeoutsOutputReference;
_o = JSII_RTTI_SYMBOL_1;
KendraIndexTimeoutsOutputReference[_o] = { fqn: "@cdktf/provider-aws.kendraIndex.KendraIndexTimeoutsOutputReference", version: "19.50.0" };
function kendraIndexUserGroupResolutionConfigurationToTerraform(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 {
user_group_resolution_mode: cdktf.stringToTerraform(struct.userGroupResolutionMode),
};
}
exports.kendraIndexUserGroupResolutionConfigurationToTerraform = kendraIndexUserGroupResolutionConfigurationToTerraform;
function kendraIndexUserGroupResolutionConfigurationToHclTerraform(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 = {
user_group_resolution_mode: {
value: cdktf.stringToHclTerraform(struct.userGroupResolutionMode),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.kendraIndexUserGroupResolutionConfigurationToHclTerraform = kendraIndexUserGroupResolutionConfigurationToHclTerraform;
class KendraIndexUserGroupResolutionConfigurationOutputReference 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._userGroupResolutionMode !== undefined) {
hasAnyValues = true;
in