@cdktf/provider-aws
Version:
Prebuilt aws Provider for Terraform CDK (cdktf)
1,082 lines • 233 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
Object.defineProperty(exports, "__esModule", { value: true });
exports.QuicksightAnalysis = exports.QuicksightAnalysisTimeoutsOutputReference = exports.QuicksightAnalysisSourceEntityOutputReference = exports.QuicksightAnalysisSourceEntitySourceTemplateOutputReference = exports.QuicksightAnalysisSourceEntitySourceTemplateDataSetReferencesList = exports.QuicksightAnalysisSourceEntitySourceTemplateDataSetReferencesOutputReference = exports.QuicksightAnalysisPermissionsList = exports.QuicksightAnalysisPermissionsOutputReference = exports.QuicksightAnalysisParametersOutputReference = exports.QuicksightAnalysisParametersStringParametersList = exports.QuicksightAnalysisParametersStringParametersOutputReference = exports.QuicksightAnalysisParametersIntegerParametersList = exports.QuicksightAnalysisParametersIntegerParametersOutputReference = exports.QuicksightAnalysisParametersDecimalParametersList = exports.QuicksightAnalysisParametersDecimalParametersOutputReference = exports.QuicksightAnalysisParametersDateTimeParametersList = exports.QuicksightAnalysisParametersDateTimeParametersOutputReference = void 0;
exports.quicksightAnalysisParametersDateTimeParametersToTerraform = quicksightAnalysisParametersDateTimeParametersToTerraform;
exports.quicksightAnalysisParametersDateTimeParametersToHclTerraform = quicksightAnalysisParametersDateTimeParametersToHclTerraform;
exports.quicksightAnalysisParametersDecimalParametersToTerraform = quicksightAnalysisParametersDecimalParametersToTerraform;
exports.quicksightAnalysisParametersDecimalParametersToHclTerraform = quicksightAnalysisParametersDecimalParametersToHclTerraform;
exports.quicksightAnalysisParametersIntegerParametersToTerraform = quicksightAnalysisParametersIntegerParametersToTerraform;
exports.quicksightAnalysisParametersIntegerParametersToHclTerraform = quicksightAnalysisParametersIntegerParametersToHclTerraform;
exports.quicksightAnalysisParametersStringParametersToTerraform = quicksightAnalysisParametersStringParametersToTerraform;
exports.quicksightAnalysisParametersStringParametersToHclTerraform = quicksightAnalysisParametersStringParametersToHclTerraform;
exports.quicksightAnalysisParametersToTerraform = quicksightAnalysisParametersToTerraform;
exports.quicksightAnalysisParametersToHclTerraform = quicksightAnalysisParametersToHclTerraform;
exports.quicksightAnalysisPermissionsToTerraform = quicksightAnalysisPermissionsToTerraform;
exports.quicksightAnalysisPermissionsToHclTerraform = quicksightAnalysisPermissionsToHclTerraform;
exports.quicksightAnalysisSourceEntitySourceTemplateDataSetReferencesToTerraform = quicksightAnalysisSourceEntitySourceTemplateDataSetReferencesToTerraform;
exports.quicksightAnalysisSourceEntitySourceTemplateDataSetReferencesToHclTerraform = quicksightAnalysisSourceEntitySourceTemplateDataSetReferencesToHclTerraform;
exports.quicksightAnalysisSourceEntitySourceTemplateToTerraform = quicksightAnalysisSourceEntitySourceTemplateToTerraform;
exports.quicksightAnalysisSourceEntitySourceTemplateToHclTerraform = quicksightAnalysisSourceEntitySourceTemplateToHclTerraform;
exports.quicksightAnalysisSourceEntityToTerraform = quicksightAnalysisSourceEntityToTerraform;
exports.quicksightAnalysisSourceEntityToHclTerraform = quicksightAnalysisSourceEntityToHclTerraform;
exports.quicksightAnalysisTimeoutsToTerraform = quicksightAnalysisTimeoutsToTerraform;
exports.quicksightAnalysisTimeoutsToHclTerraform = quicksightAnalysisTimeoutsToHclTerraform;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function quicksightAnalysisParametersDateTimeParametersToTerraform(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),
values: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.values),
};
}
function quicksightAnalysisParametersDateTimeParametersToHclTerraform(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",
},
values: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.values),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class QuicksightAnalysisParametersDateTimeParametersOutputReference 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._name !== undefined) {
hasAnyValues = true;
internalValueResult.name = this._name;
}
if (this._values !== undefined) {
hasAnyValues = true;
internalValueResult.values = this._values;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._name = undefined;
this._values = 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._values = value.values;
}
}
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 values() {
return this.getListAttribute('values');
}
set values(value) {
this._values = value;
}
// Temporarily expose input value. Use with caution.
get valuesInput() {
return this._values;
}
}
exports.QuicksightAnalysisParametersDateTimeParametersOutputReference = QuicksightAnalysisParametersDateTimeParametersOutputReference;
_a = JSII_RTTI_SYMBOL_1;
QuicksightAnalysisParametersDateTimeParametersOutputReference[_a] = { fqn: "@cdktf/provider-aws.quicksightAnalysis.QuicksightAnalysisParametersDateTimeParametersOutputReference", version: "21.22.1" };
class QuicksightAnalysisParametersDateTimeParametersList 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 QuicksightAnalysisParametersDateTimeParametersOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.QuicksightAnalysisParametersDateTimeParametersList = QuicksightAnalysisParametersDateTimeParametersList;
_b = JSII_RTTI_SYMBOL_1;
QuicksightAnalysisParametersDateTimeParametersList[_b] = { fqn: "@cdktf/provider-aws.quicksightAnalysis.QuicksightAnalysisParametersDateTimeParametersList", version: "21.22.1" };
function quicksightAnalysisParametersDecimalParametersToTerraform(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),
values: cdktf.listMapper(cdktf.numberToTerraform, false)(struct.values),
};
}
function quicksightAnalysisParametersDecimalParametersToHclTerraform(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",
},
values: {
value: cdktf.listMapperHcl(cdktf.numberToHclTerraform, false)(struct.values),
isBlock: false,
type: "list",
storageClassType: "numberList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class QuicksightAnalysisParametersDecimalParametersOutputReference 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._name !== undefined) {
hasAnyValues = true;
internalValueResult.name = this._name;
}
if (this._values !== undefined) {
hasAnyValues = true;
internalValueResult.values = this._values;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._name = undefined;
this._values = 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._values = value.values;
}
}
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 values() {
return this.getNumberListAttribute('values');
}
set values(value) {
this._values = value;
}
// Temporarily expose input value. Use with caution.
get valuesInput() {
return this._values;
}
}
exports.QuicksightAnalysisParametersDecimalParametersOutputReference = QuicksightAnalysisParametersDecimalParametersOutputReference;
_c = JSII_RTTI_SYMBOL_1;
QuicksightAnalysisParametersDecimalParametersOutputReference[_c] = { fqn: "@cdktf/provider-aws.quicksightAnalysis.QuicksightAnalysisParametersDecimalParametersOutputReference", version: "21.22.1" };
class QuicksightAnalysisParametersDecimalParametersList 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 QuicksightAnalysisParametersDecimalParametersOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.QuicksightAnalysisParametersDecimalParametersList = QuicksightAnalysisParametersDecimalParametersList;
_d = JSII_RTTI_SYMBOL_1;
QuicksightAnalysisParametersDecimalParametersList[_d] = { fqn: "@cdktf/provider-aws.quicksightAnalysis.QuicksightAnalysisParametersDecimalParametersList", version: "21.22.1" };
function quicksightAnalysisParametersIntegerParametersToTerraform(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),
values: cdktf.listMapper(cdktf.numberToTerraform, false)(struct.values),
};
}
function quicksightAnalysisParametersIntegerParametersToHclTerraform(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",
},
values: {
value: cdktf.listMapperHcl(cdktf.numberToHclTerraform, false)(struct.values),
isBlock: false,
type: "list",
storageClassType: "numberList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class QuicksightAnalysisParametersIntegerParametersOutputReference 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._name !== undefined) {
hasAnyValues = true;
internalValueResult.name = this._name;
}
if (this._values !== undefined) {
hasAnyValues = true;
internalValueResult.values = this._values;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._name = undefined;
this._values = 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._values = value.values;
}
}
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 values() {
return this.getNumberListAttribute('values');
}
set values(value) {
this._values = value;
}
// Temporarily expose input value. Use with caution.
get valuesInput() {
return this._values;
}
}
exports.QuicksightAnalysisParametersIntegerParametersOutputReference = QuicksightAnalysisParametersIntegerParametersOutputReference;
_e = JSII_RTTI_SYMBOL_1;
QuicksightAnalysisParametersIntegerParametersOutputReference[_e] = { fqn: "@cdktf/provider-aws.quicksightAnalysis.QuicksightAnalysisParametersIntegerParametersOutputReference", version: "21.22.1" };
class QuicksightAnalysisParametersIntegerParametersList 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 QuicksightAnalysisParametersIntegerParametersOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.QuicksightAnalysisParametersIntegerParametersList = QuicksightAnalysisParametersIntegerParametersList;
_f = JSII_RTTI_SYMBOL_1;
QuicksightAnalysisParametersIntegerParametersList[_f] = { fqn: "@cdktf/provider-aws.quicksightAnalysis.QuicksightAnalysisParametersIntegerParametersList", version: "21.22.1" };
function quicksightAnalysisParametersStringParametersToTerraform(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),
values: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.values),
};
}
function quicksightAnalysisParametersStringParametersToHclTerraform(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",
},
values: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.values),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class QuicksightAnalysisParametersStringParametersOutputReference 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._name !== undefined) {
hasAnyValues = true;
internalValueResult.name = this._name;
}
if (this._values !== undefined) {
hasAnyValues = true;
internalValueResult.values = this._values;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._name = undefined;
this._values = 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._values = value.values;
}
}
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 values() {
return this.getListAttribute('values');
}
set values(value) {
this._values = value;
}
// Temporarily expose input value. Use with caution.
get valuesInput() {
return this._values;
}
}
exports.QuicksightAnalysisParametersStringParametersOutputReference = QuicksightAnalysisParametersStringParametersOutputReference;
_g = JSII_RTTI_SYMBOL_1;
QuicksightAnalysisParametersStringParametersOutputReference[_g] = { fqn: "@cdktf/provider-aws.quicksightAnalysis.QuicksightAnalysisParametersStringParametersOutputReference", version: "21.22.1" };
class QuicksightAnalysisParametersStringParametersList 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 QuicksightAnalysisParametersStringParametersOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.QuicksightAnalysisParametersStringParametersList = QuicksightAnalysisParametersStringParametersList;
_h = JSII_RTTI_SYMBOL_1;
QuicksightAnalysisParametersStringParametersList[_h] = { fqn: "@cdktf/provider-aws.quicksightAnalysis.QuicksightAnalysisParametersStringParametersList", version: "21.22.1" };
function quicksightAnalysisParametersToTerraform(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 {
date_time_parameters: cdktf.listMapper(quicksightAnalysisParametersDateTimeParametersToTerraform, true)(struct.dateTimeParameters),
decimal_parameters: cdktf.listMapper(quicksightAnalysisParametersDecimalParametersToTerraform, true)(struct.decimalParameters),
integer_parameters: cdktf.listMapper(quicksightAnalysisParametersIntegerParametersToTerraform, true)(struct.integerParameters),
string_parameters: cdktf.listMapper(quicksightAnalysisParametersStringParametersToTerraform, true)(struct.stringParameters),
};
}
function quicksightAnalysisParametersToHclTerraform(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 = {
date_time_parameters: {
value: cdktf.listMapperHcl(quicksightAnalysisParametersDateTimeParametersToHclTerraform, true)(struct.dateTimeParameters),
isBlock: true,
type: "list",
storageClassType: "QuicksightAnalysisParametersDateTimeParametersList",
},
decimal_parameters: {
value: cdktf.listMapperHcl(quicksightAnalysisParametersDecimalParametersToHclTerraform, true)(struct.decimalParameters),
isBlock: true,
type: "list",
storageClassType: "QuicksightAnalysisParametersDecimalParametersList",
},
integer_parameters: {
value: cdktf.listMapperHcl(quicksightAnalysisParametersIntegerParametersToHclTerraform, true)(struct.integerParameters),
isBlock: true,
type: "list",
storageClassType: "QuicksightAnalysisParametersIntegerParametersList",
},
string_parameters: {
value: cdktf.listMapperHcl(quicksightAnalysisParametersStringParametersToHclTerraform, true)(struct.stringParameters),
isBlock: true,
type: "list",
storageClassType: "QuicksightAnalysisParametersStringParametersList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class QuicksightAnalysisParametersOutputReference 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;
// date_time_parameters - computed: false, optional: true, required: false
this._dateTimeParameters = new QuicksightAnalysisParametersDateTimeParametersList(this, "date_time_parameters", false);
// decimal_parameters - computed: false, optional: true, required: false
this._decimalParameters = new QuicksightAnalysisParametersDecimalParametersList(this, "decimal_parameters", false);
// integer_parameters - computed: false, optional: true, required: false
this._integerParameters = new QuicksightAnalysisParametersIntegerParametersList(this, "integer_parameters", false);
// string_parameters - computed: false, optional: true, required: false
this._stringParameters = new QuicksightAnalysisParametersStringParametersList(this, "string_parameters", false);
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._dateTimeParameters?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.dateTimeParameters = this._dateTimeParameters?.internalValue;
}
if (this._decimalParameters?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.decimalParameters = this._decimalParameters?.internalValue;
}
if (this._integerParameters?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.integerParameters = this._integerParameters?.internalValue;
}
if (this._stringParameters?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.stringParameters = this._stringParameters?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._dateTimeParameters.internalValue = undefined;
this._decimalParameters.internalValue = undefined;
this._integerParameters.internalValue = undefined;
this._stringParameters.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._dateTimeParameters.internalValue = value.dateTimeParameters;
this._decimalParameters.internalValue = value.decimalParameters;
this._integerParameters.internalValue = value.integerParameters;
this._stringParameters.internalValue = value.stringParameters;
}
}
get dateTimeParameters() {
return this._dateTimeParameters;
}
putDateTimeParameters(value) {
this._dateTimeParameters.internalValue = value;
}
resetDateTimeParameters() {
this._dateTimeParameters.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get dateTimeParametersInput() {
return this._dateTimeParameters.internalValue;
}
get decimalParameters() {
return this._decimalParameters;
}
putDecimalParameters(value) {
this._decimalParameters.internalValue = value;
}
resetDecimalParameters() {
this._decimalParameters.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get decimalParametersInput() {
return this._decimalParameters.internalValue;
}
get integerParameters() {
return this._integerParameters;
}
putIntegerParameters(value) {
this._integerParameters.internalValue = value;
}
resetIntegerParameters() {
this._integerParameters.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get integerParametersInput() {
return this._integerParameters.internalValue;
}
get stringParameters() {
return this._stringParameters;
}
putStringParameters(value) {
this._stringParameters.internalValue = value;
}
resetStringParameters() {
this._stringParameters.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get stringParametersInput() {
return this._stringParameters.internalValue;
}
}
exports.QuicksightAnalysisParametersOutputReference = QuicksightAnalysisParametersOutputReference;
_j = JSII_RTTI_SYMBOL_1;
QuicksightAnalysisParametersOutputReference[_j] = { fqn: "@cdktf/provider-aws.quicksightAnalysis.QuicksightAnalysisParametersOutputReference", version: "21.22.1" };
function quicksightAnalysisPermissionsToTerraform(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 {
actions: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.actions),
principal: cdktf.stringToTerraform(struct.principal),
};
}
function quicksightAnalysisPermissionsToHclTerraform(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 = {
actions: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.actions),
isBlock: false,
type: "set",
storageClassType: "stringList",
},
principal: {
value: cdktf.stringToHclTerraform(struct.principal),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class QuicksightAnalysisPermissionsOutputReference 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._actions !== undefined) {
hasAnyValues = true;
internalValueResult.actions = this._actions;
}
if (this._principal !== undefined) {
hasAnyValues = true;
internalValueResult.principal = this._principal;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._actions = undefined;
this._principal = 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._actions = value.actions;
this._principal = value.principal;
}
}
get actions() {
return cdktf.Fn.tolist(this.getListAttribute('actions'));
}
set actions(value) {
this._actions = value;
}
// Temporarily expose input value. Use with caution.
get actionsInput() {
return this._actions;
}
get principal() {
return this.getStringAttribute('principal');
}
set principal(value) {
this._principal = value;
}
// Temporarily expose input value. Use with caution.
get principalInput() {
return this._principal;
}
}
exports.QuicksightAnalysisPermissionsOutputReference = QuicksightAnalysisPermissionsOutputReference;
_k = JSII_RTTI_SYMBOL_1;
QuicksightAnalysisPermissionsOutputReference[_k] = { fqn: "@cdktf/provider-aws.quicksightAnalysis.QuicksightAnalysisPermissionsOutputReference", version: "21.22.1" };
class QuicksightAnalysisPermissionsList 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 QuicksightAnalysisPermissionsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.QuicksightAnalysisPermissionsList = QuicksightAnalysisPermissionsList;
_l = JSII_RTTI_SYMBOL_1;
QuicksightAnalysisPermissionsList[_l] = { fqn: "@cdktf/provider-aws.quicksightAnalysis.QuicksightAnalysisPermissionsList", version: "21.22.1" };
function quicksightAnalysisSourceEntitySourceTemplateDataSetReferencesToTerraform(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 {
data_set_arn: cdktf.stringToTerraform(struct.dataSetArn),
data_set_placeholder: cdktf.stringToTerraform(struct.dataSetPlaceholder),
};
}
function quicksightAnalysisSourceEntitySourceTemplateDataSetReferencesToHclTerraform(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 = {
data_set_arn: {
value: cdktf.stringToHclTerraform(struct.dataSetArn),
isBlock: false,
type: "simple",
storageClassType: "string",
},
data_set_placeholder: {
value: cdktf.stringToHclTerraform(struct.dataSetPlaceholder),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class QuicksightAnalysisSourceEntitySourceTemplateDataSetReferencesOutputReference 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._dataSetArn !== undefined) {
hasAnyValues = true;
internalValueResult.dataSetArn = this._dataSetArn;
}
if (this._dataSetPlaceholder !== undefined) {
hasAnyValues = true;
internalValueResult.dataSetPlaceholder = this._dataSetPlaceholder;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._dataSetArn = undefined;
this._dataSetPlaceholder = 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._dataSetArn = value.dataSetArn;
this._dataSetPlaceholder = value.dataSetPlaceholder;
}
}
get dataSetArn() {
return this.getStringAttribute('data_set_arn');
}
set dataSetArn(value) {
this._dataSetArn = value;
}
// Temporarily expose input value. Use with caution.
get dataSetArnInput() {
return this._dataSetArn;
}
get dataSetPlaceholder() {
return this.getStringAttribute('data_set_placeholder');
}
set dataSetPlaceholder(value) {
this._dataSetPlaceholder = value;
}
// Temporarily expose input value. Use with caution.
get dataSetPlaceholderInput() {
return this._dataSetPlaceholder;
}
}
exports.QuicksightAnalysisSourceEntitySourceTemplateDataSetReferencesOutputReference = QuicksightAnalysisSourceEntitySourceTemplateDataSetReferencesOutputReference;
_m = JSII_RTTI_SYMBOL_1;
QuicksightAnalysisSourceEntitySourceTemplateDataSetReferencesOutputReference[_m] = { fqn: "@cdktf/provider-aws.quicksightAnalysis.QuicksightAnalysisSourceEntitySourceTemplateDataSetReferencesOutputReference", version: "21.22.1" };
class QuicksightAnalysisSourceEntitySourceTemplateDataSetReferencesList 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 QuicksightAnalysisSourceEntitySourceTemplateDataSetReferencesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.QuicksightAnalysisSourceEntitySourceTemplateDataSetReferencesList = QuicksightAnalysisSourceEntitySourceTemplateDataSetReferencesList;
_o = JSII_RTTI_SYMBOL_1;
QuicksightAnalysisSourceEntitySourceTemplateDataSetReferencesList[_o] = { fqn: "@cdktf/provider-aws.quicksightAnalysis.QuicksightAnalysisSourceEntitySourceTemplateDataSetReferencesList", version: "21.22.1" };
function quicksightAnalysisSourceEntitySourceTemplateToTerraform(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 {
arn: cdktf.stringToTerraform(struct.arn),
data_set_references: cdktf.listMapper(quicksightAnalysisSourceEntitySourceTemplateDataSetReferencesToTerraform, true)(struct.dataSetReferences),
};
}
function quicksightAnalysisSourceEntitySourceTemplateToHclTerraform(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 = {
arn: {
value: cdktf.stringToHclTerraform(struct.arn),
isBlock: false,
type: "simple",
storageClassType: "string",
},
data_set_references: {
value: cdktf.listMapperHcl(quicksightAnalysisSourceEntitySourceTemplateDataSetReferencesToHclTerraform, true)(struct.dataSetReferences),
isBlock: true,
type: "list",
storageClassType: "QuicksightAnalysisSourceEntitySourceTemplateDataSetReferencesList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class QuicksightAnalysisSourceEntitySourceTemplateOutputReference 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;
// data_set_references - computed: false, optional: false, required: true
this._dataSetReferences = new QuicksightAnalysisSourceEntitySourceTemplateDataSetReferencesList(this, "data_set_references", false);
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._arn !== undefined) {
hasAnyValues = true;
internalValueResult.arn = this._arn;
}
if (this._dataSetReferences?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.dataSetReferences = this._dataSetReferences?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._arn = undefined;
this._dataSetReferences.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._arn = value.arn;
this._dataSetReferences.internalValue = value.dataSetReferences;
}
}
get arn() {
return this.getStringAttribute('arn');
}
set arn(value) {
this._arn = value;
}
// Temporarily expose input value. Use with caution.
get arnInput() {
return this._arn;
}
get dataSetReferences() {
return this._dataSetReferences;
}
putDataSetReferences(value) {
this._dataSetReferences.internalValue = value;
}
// Temporarily expose input value. Use with caution.
get dataSetReferencesInput() {
return this._dataSetReferences.internalValue;
}
}
exports.QuicksightAnalysisSourceEntitySourceTemplateOutputReference = QuicksightAnalysisSourceEntitySourceTemplateOutputReference;
_p = JSII_RTTI_SYMBOL_1;
QuicksightAnalysisSourceEntitySourceTemplateOutputReference[_p] = { fqn: "@cdktf/provider-aws.quicksightAnalysis.QuicksightAnalysisSourceEntitySourceTemplateOutputReference", version: "21.22.1" };
function quicksightAnalysisSourceEntityToTerraform(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 {
source_template: quicksightAnalysisSourceEntitySourceTemplateToTerraform(struct.sourceTemplate),
};
}
function quicksightAnalysisSourceEntityToHclTerraform(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 = {
source_template: {
value: quicksightAnalysisSourceEntitySourceTemplateToHclTerraform(struct.sourceTemplate),
isBlock: true,
type: "list",
storageClassType: "QuicksightAnalysisSourceEntitySourceTemplateList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class QuicksightAnalysisSourceEntityOutputReference 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;
// source_template - comput