@cdktf/provider-aws
Version:
Prebuilt aws Provider for Terraform CDK (cdktf)
1,161 lines • 286 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
Object.defineProperty(exports, "__esModule", { value: true });
exports.QuicksightTheme = exports.QuicksightThemeTimeoutsOutputReference = exports.QuicksightThemePermissionsList = exports.QuicksightThemePermissionsOutputReference = exports.QuicksightThemeConfigurationOutputReference = exports.QuicksightThemeConfigurationUiColorPaletteOutputReference = exports.QuicksightThemeConfigurationTypographyOutputReference = exports.QuicksightThemeConfigurationTypographyFontFamiliesList = exports.QuicksightThemeConfigurationTypographyFontFamiliesOutputReference = exports.QuicksightThemeConfigurationSheetOutputReference = exports.QuicksightThemeConfigurationSheetTileLayoutOutputReference = exports.QuicksightThemeConfigurationSheetTileLayoutMarginOutputReference = exports.QuicksightThemeConfigurationSheetTileLayoutGutterOutputReference = exports.QuicksightThemeConfigurationSheetTileOutputReference = exports.QuicksightThemeConfigurationSheetTileBorderOutputReference = exports.QuicksightThemeConfigurationDataColorPaletteOutputReference = void 0;
exports.quicksightThemeConfigurationDataColorPaletteToTerraform = quicksightThemeConfigurationDataColorPaletteToTerraform;
exports.quicksightThemeConfigurationDataColorPaletteToHclTerraform = quicksightThemeConfigurationDataColorPaletteToHclTerraform;
exports.quicksightThemeConfigurationSheetTileBorderToTerraform = quicksightThemeConfigurationSheetTileBorderToTerraform;
exports.quicksightThemeConfigurationSheetTileBorderToHclTerraform = quicksightThemeConfigurationSheetTileBorderToHclTerraform;
exports.quicksightThemeConfigurationSheetTileToTerraform = quicksightThemeConfigurationSheetTileToTerraform;
exports.quicksightThemeConfigurationSheetTileToHclTerraform = quicksightThemeConfigurationSheetTileToHclTerraform;
exports.quicksightThemeConfigurationSheetTileLayoutGutterToTerraform = quicksightThemeConfigurationSheetTileLayoutGutterToTerraform;
exports.quicksightThemeConfigurationSheetTileLayoutGutterToHclTerraform = quicksightThemeConfigurationSheetTileLayoutGutterToHclTerraform;
exports.quicksightThemeConfigurationSheetTileLayoutMarginToTerraform = quicksightThemeConfigurationSheetTileLayoutMarginToTerraform;
exports.quicksightThemeConfigurationSheetTileLayoutMarginToHclTerraform = quicksightThemeConfigurationSheetTileLayoutMarginToHclTerraform;
exports.quicksightThemeConfigurationSheetTileLayoutToTerraform = quicksightThemeConfigurationSheetTileLayoutToTerraform;
exports.quicksightThemeConfigurationSheetTileLayoutToHclTerraform = quicksightThemeConfigurationSheetTileLayoutToHclTerraform;
exports.quicksightThemeConfigurationSheetToTerraform = quicksightThemeConfigurationSheetToTerraform;
exports.quicksightThemeConfigurationSheetToHclTerraform = quicksightThemeConfigurationSheetToHclTerraform;
exports.quicksightThemeConfigurationTypographyFontFamiliesToTerraform = quicksightThemeConfigurationTypographyFontFamiliesToTerraform;
exports.quicksightThemeConfigurationTypographyFontFamiliesToHclTerraform = quicksightThemeConfigurationTypographyFontFamiliesToHclTerraform;
exports.quicksightThemeConfigurationTypographyToTerraform = quicksightThemeConfigurationTypographyToTerraform;
exports.quicksightThemeConfigurationTypographyToHclTerraform = quicksightThemeConfigurationTypographyToHclTerraform;
exports.quicksightThemeConfigurationUiColorPaletteToTerraform = quicksightThemeConfigurationUiColorPaletteToTerraform;
exports.quicksightThemeConfigurationUiColorPaletteToHclTerraform = quicksightThemeConfigurationUiColorPaletteToHclTerraform;
exports.quicksightThemeConfigurationToTerraform = quicksightThemeConfigurationToTerraform;
exports.quicksightThemeConfigurationToHclTerraform = quicksightThemeConfigurationToHclTerraform;
exports.quicksightThemePermissionsToTerraform = quicksightThemePermissionsToTerraform;
exports.quicksightThemePermissionsToHclTerraform = quicksightThemePermissionsToHclTerraform;
exports.quicksightThemeTimeoutsToTerraform = quicksightThemeTimeoutsToTerraform;
exports.quicksightThemeTimeoutsToHclTerraform = quicksightThemeTimeoutsToHclTerraform;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function quicksightThemeConfigurationDataColorPaletteToTerraform(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 {
colors: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.colors),
empty_fill_color: cdktf.stringToTerraform(struct.emptyFillColor),
min_max_gradient: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.minMaxGradient),
};
}
function quicksightThemeConfigurationDataColorPaletteToHclTerraform(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 = {
colors: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.colors),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
empty_fill_color: {
value: cdktf.stringToHclTerraform(struct.emptyFillColor),
isBlock: false,
type: "simple",
storageClassType: "string",
},
min_max_gradient: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.minMaxGradient),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class QuicksightThemeConfigurationDataColorPaletteOutputReference 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._colors !== undefined) {
hasAnyValues = true;
internalValueResult.colors = this._colors;
}
if (this._emptyFillColor !== undefined) {
hasAnyValues = true;
internalValueResult.emptyFillColor = this._emptyFillColor;
}
if (this._minMaxGradient !== undefined) {
hasAnyValues = true;
internalValueResult.minMaxGradient = this._minMaxGradient;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._colors = undefined;
this._emptyFillColor = undefined;
this._minMaxGradient = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._colors = value.colors;
this._emptyFillColor = value.emptyFillColor;
this._minMaxGradient = value.minMaxGradient;
}
}
get colors() {
return this.getListAttribute('colors');
}
set colors(value) {
this._colors = value;
}
resetColors() {
this._colors = undefined;
}
// Temporarily expose input value. Use with caution.
get colorsInput() {
return this._colors;
}
get emptyFillColor() {
return this.getStringAttribute('empty_fill_color');
}
set emptyFillColor(value) {
this._emptyFillColor = value;
}
resetEmptyFillColor() {
this._emptyFillColor = undefined;
}
// Temporarily expose input value. Use with caution.
get emptyFillColorInput() {
return this._emptyFillColor;
}
get minMaxGradient() {
return this.getListAttribute('min_max_gradient');
}
set minMaxGradient(value) {
this._minMaxGradient = value;
}
resetMinMaxGradient() {
this._minMaxGradient = undefined;
}
// Temporarily expose input value. Use with caution.
get minMaxGradientInput() {
return this._minMaxGradient;
}
}
exports.QuicksightThemeConfigurationDataColorPaletteOutputReference = QuicksightThemeConfigurationDataColorPaletteOutputReference;
_a = JSII_RTTI_SYMBOL_1;
QuicksightThemeConfigurationDataColorPaletteOutputReference[_a] = { fqn: "@cdktf/provider-aws.quicksightTheme.QuicksightThemeConfigurationDataColorPaletteOutputReference", version: "21.22.1" };
function quicksightThemeConfigurationSheetTileBorderToTerraform(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 {
show: cdktf.booleanToTerraform(struct.show),
};
}
function quicksightThemeConfigurationSheetTileBorderToHclTerraform(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 = {
show: {
value: cdktf.booleanToHclTerraform(struct.show),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class QuicksightThemeConfigurationSheetTileBorderOutputReference 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._show !== undefined) {
hasAnyValues = true;
internalValueResult.show = this._show;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._show = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._show = value.show;
}
}
get show() {
return this.getBooleanAttribute('show');
}
set show(value) {
this._show = value;
}
resetShow() {
this._show = undefined;
}
// Temporarily expose input value. Use with caution.
get showInput() {
return this._show;
}
}
exports.QuicksightThemeConfigurationSheetTileBorderOutputReference = QuicksightThemeConfigurationSheetTileBorderOutputReference;
_b = JSII_RTTI_SYMBOL_1;
QuicksightThemeConfigurationSheetTileBorderOutputReference[_b] = { fqn: "@cdktf/provider-aws.quicksightTheme.QuicksightThemeConfigurationSheetTileBorderOutputReference", version: "21.22.1" };
function quicksightThemeConfigurationSheetTileToTerraform(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 {
border: quicksightThemeConfigurationSheetTileBorderToTerraform(struct.border),
};
}
function quicksightThemeConfigurationSheetTileToHclTerraform(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 = {
border: {
value: quicksightThemeConfigurationSheetTileBorderToHclTerraform(struct.border),
isBlock: true,
type: "list",
storageClassType: "QuicksightThemeConfigurationSheetTileBorderList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class QuicksightThemeConfigurationSheetTileOutputReference 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;
// border - computed: false, optional: true, required: false
this._border = new QuicksightThemeConfigurationSheetTileBorderOutputReference(this, "border");
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._border?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.border = this._border?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._border.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._border.internalValue = value.border;
}
}
get border() {
return this._border;
}
putBorder(value) {
this._border.internalValue = value;
}
resetBorder() {
this._border.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get borderInput() {
return this._border.internalValue;
}
}
exports.QuicksightThemeConfigurationSheetTileOutputReference = QuicksightThemeConfigurationSheetTileOutputReference;
_c = JSII_RTTI_SYMBOL_1;
QuicksightThemeConfigurationSheetTileOutputReference[_c] = { fqn: "@cdktf/provider-aws.quicksightTheme.QuicksightThemeConfigurationSheetTileOutputReference", version: "21.22.1" };
function quicksightThemeConfigurationSheetTileLayoutGutterToTerraform(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 {
show: cdktf.booleanToTerraform(struct.show),
};
}
function quicksightThemeConfigurationSheetTileLayoutGutterToHclTerraform(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 = {
show: {
value: cdktf.booleanToHclTerraform(struct.show),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class QuicksightThemeConfigurationSheetTileLayoutGutterOutputReference 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._show !== undefined) {
hasAnyValues = true;
internalValueResult.show = this._show;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._show = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._show = value.show;
}
}
get show() {
return this.getBooleanAttribute('show');
}
set show(value) {
this._show = value;
}
resetShow() {
this._show = undefined;
}
// Temporarily expose input value. Use with caution.
get showInput() {
return this._show;
}
}
exports.QuicksightThemeConfigurationSheetTileLayoutGutterOutputReference = QuicksightThemeConfigurationSheetTileLayoutGutterOutputReference;
_d = JSII_RTTI_SYMBOL_1;
QuicksightThemeConfigurationSheetTileLayoutGutterOutputReference[_d] = { fqn: "@cdktf/provider-aws.quicksightTheme.QuicksightThemeConfigurationSheetTileLayoutGutterOutputReference", version: "21.22.1" };
function quicksightThemeConfigurationSheetTileLayoutMarginToTerraform(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 {
show: cdktf.booleanToTerraform(struct.show),
};
}
function quicksightThemeConfigurationSheetTileLayoutMarginToHclTerraform(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 = {
show: {
value: cdktf.booleanToHclTerraform(struct.show),
isBlock: false,
type: "simple",
storageClassType: "boolean",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class QuicksightThemeConfigurationSheetTileLayoutMarginOutputReference 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._show !== undefined) {
hasAnyValues = true;
internalValueResult.show = this._show;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._show = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._show = value.show;
}
}
get show() {
return this.getBooleanAttribute('show');
}
set show(value) {
this._show = value;
}
resetShow() {
this._show = undefined;
}
// Temporarily expose input value. Use with caution.
get showInput() {
return this._show;
}
}
exports.QuicksightThemeConfigurationSheetTileLayoutMarginOutputReference = QuicksightThemeConfigurationSheetTileLayoutMarginOutputReference;
_e = JSII_RTTI_SYMBOL_1;
QuicksightThemeConfigurationSheetTileLayoutMarginOutputReference[_e] = { fqn: "@cdktf/provider-aws.quicksightTheme.QuicksightThemeConfigurationSheetTileLayoutMarginOutputReference", version: "21.22.1" };
function quicksightThemeConfigurationSheetTileLayoutToTerraform(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 {
gutter: quicksightThemeConfigurationSheetTileLayoutGutterToTerraform(struct.gutter),
margin: quicksightThemeConfigurationSheetTileLayoutMarginToTerraform(struct.margin),
};
}
function quicksightThemeConfigurationSheetTileLayoutToHclTerraform(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 = {
gutter: {
value: quicksightThemeConfigurationSheetTileLayoutGutterToHclTerraform(struct.gutter),
isBlock: true,
type: "list",
storageClassType: "QuicksightThemeConfigurationSheetTileLayoutGutterList",
},
margin: {
value: quicksightThemeConfigurationSheetTileLayoutMarginToHclTerraform(struct.margin),
isBlock: true,
type: "list",
storageClassType: "QuicksightThemeConfigurationSheetTileLayoutMarginList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class QuicksightThemeConfigurationSheetTileLayoutOutputReference 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;
// gutter - computed: false, optional: true, required: false
this._gutter = new QuicksightThemeConfigurationSheetTileLayoutGutterOutputReference(this, "gutter");
// margin - computed: false, optional: true, required: false
this._margin = new QuicksightThemeConfigurationSheetTileLayoutMarginOutputReference(this, "margin");
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._gutter?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.gutter = this._gutter?.internalValue;
}
if (this._margin?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.margin = this._margin?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._gutter.internalValue = undefined;
this._margin.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._gutter.internalValue = value.gutter;
this._margin.internalValue = value.margin;
}
}
get gutter() {
return this._gutter;
}
putGutter(value) {
this._gutter.internalValue = value;
}
resetGutter() {
this._gutter.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get gutterInput() {
return this._gutter.internalValue;
}
get margin() {
return this._margin;
}
putMargin(value) {
this._margin.internalValue = value;
}
resetMargin() {
this._margin.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get marginInput() {
return this._margin.internalValue;
}
}
exports.QuicksightThemeConfigurationSheetTileLayoutOutputReference = QuicksightThemeConfigurationSheetTileLayoutOutputReference;
_f = JSII_RTTI_SYMBOL_1;
QuicksightThemeConfigurationSheetTileLayoutOutputReference[_f] = { fqn: "@cdktf/provider-aws.quicksightTheme.QuicksightThemeConfigurationSheetTileLayoutOutputReference", version: "21.22.1" };
function quicksightThemeConfigurationSheetToTerraform(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 {
tile: quicksightThemeConfigurationSheetTileToTerraform(struct.tile),
tile_layout: quicksightThemeConfigurationSheetTileLayoutToTerraform(struct.tileLayout),
};
}
function quicksightThemeConfigurationSheetToHclTerraform(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 = {
tile: {
value: quicksightThemeConfigurationSheetTileToHclTerraform(struct.tile),
isBlock: true,
type: "list",
storageClassType: "QuicksightThemeConfigurationSheetTileList",
},
tile_layout: {
value: quicksightThemeConfigurationSheetTileLayoutToHclTerraform(struct.tileLayout),
isBlock: true,
type: "list",
storageClassType: "QuicksightThemeConfigurationSheetTileLayoutList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class QuicksightThemeConfigurationSheetOutputReference 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;
// tile - computed: false, optional: true, required: false
this._tile = new QuicksightThemeConfigurationSheetTileOutputReference(this, "tile");
// tile_layout - computed: false, optional: true, required: false
this._tileLayout = new QuicksightThemeConfigurationSheetTileLayoutOutputReference(this, "tile_layout");
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._tile?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.tile = this._tile?.internalValue;
}
if (this._tileLayout?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.tileLayout = this._tileLayout?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._tile.internalValue = undefined;
this._tileLayout.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._tile.internalValue = value.tile;
this._tileLayout.internalValue = value.tileLayout;
}
}
get tile() {
return this._tile;
}
putTile(value) {
this._tile.internalValue = value;
}
resetTile() {
this._tile.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get tileInput() {
return this._tile.internalValue;
}
get tileLayout() {
return this._tileLayout;
}
putTileLayout(value) {
this._tileLayout.internalValue = value;
}
resetTileLayout() {
this._tileLayout.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get tileLayoutInput() {
return this._tileLayout.internalValue;
}
}
exports.QuicksightThemeConfigurationSheetOutputReference = QuicksightThemeConfigurationSheetOutputReference;
_g = JSII_RTTI_SYMBOL_1;
QuicksightThemeConfigurationSheetOutputReference[_g] = { fqn: "@cdktf/provider-aws.quicksightTheme.QuicksightThemeConfigurationSheetOutputReference", version: "21.22.1" };
function quicksightThemeConfigurationTypographyFontFamiliesToTerraform(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 {
font_family: cdktf.stringToTerraform(struct.fontFamily),
};
}
function quicksightThemeConfigurationTypographyFontFamiliesToHclTerraform(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 = {
font_family: {
value: cdktf.stringToHclTerraform(struct.fontFamily),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class QuicksightThemeConfigurationTypographyFontFamiliesOutputReference 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._fontFamily !== undefined) {
hasAnyValues = true;
internalValueResult.fontFamily = this._fontFamily;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._fontFamily = 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._fontFamily = value.fontFamily;
}
}
get fontFamily() {
return this.getStringAttribute('font_family');
}
set fontFamily(value) {
this._fontFamily = value;
}
resetFontFamily() {
this._fontFamily = undefined;
}
// Temporarily expose input value. Use with caution.
get fontFamilyInput() {
return this._fontFamily;
}
}
exports.QuicksightThemeConfigurationTypographyFontFamiliesOutputReference = QuicksightThemeConfigurationTypographyFontFamiliesOutputReference;
_h = JSII_RTTI_SYMBOL_1;
QuicksightThemeConfigurationTypographyFontFamiliesOutputReference[_h] = { fqn: "@cdktf/provider-aws.quicksightTheme.QuicksightThemeConfigurationTypographyFontFamiliesOutputReference", version: "21.22.1" };
class QuicksightThemeConfigurationTypographyFontFamiliesList 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 QuicksightThemeConfigurationTypographyFontFamiliesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.QuicksightThemeConfigurationTypographyFontFamiliesList = QuicksightThemeConfigurationTypographyFontFamiliesList;
_j = JSII_RTTI_SYMBOL_1;
QuicksightThemeConfigurationTypographyFontFamiliesList[_j] = { fqn: "@cdktf/provider-aws.quicksightTheme.QuicksightThemeConfigurationTypographyFontFamiliesList", version: "21.22.1" };
function quicksightThemeConfigurationTypographyToTerraform(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 {
font_families: cdktf.listMapper(quicksightThemeConfigurationTypographyFontFamiliesToTerraform, true)(struct.fontFamilies),
};
}
function quicksightThemeConfigurationTypographyToHclTerraform(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 = {
font_families: {
value: cdktf.listMapperHcl(quicksightThemeConfigurationTypographyFontFamiliesToHclTerraform, true)(struct.fontFamilies),
isBlock: true,
type: "list",
storageClassType: "QuicksightThemeConfigurationTypographyFontFamiliesList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class QuicksightThemeConfigurationTypographyOutputReference 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;
// font_families - computed: false, optional: true, required: false
this._fontFamilies = new QuicksightThemeConfigurationTypographyFontFamiliesList(this, "font_families", false);
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._fontFamilies?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.fontFamilies = this._fontFamilies?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._fontFamilies.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._fontFamilies.internalValue = value.fontFamilies;
}
}
get fontFamilies() {
return this._fontFamilies;
}
putFontFamilies(value) {
this._fontFamilies.internalValue = value;
}
resetFontFamilies() {
this._fontFamilies.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get fontFamiliesInput() {
return this._fontFamilies.internalValue;
}
}
exports.QuicksightThemeConfigurationTypographyOutputReference = QuicksightThemeConfigurationTypographyOutputReference;
_k = JSII_RTTI_SYMBOL_1;
QuicksightThemeConfigurationTypographyOutputReference[_k] = { fqn: "@cdktf/provider-aws.quicksightTheme.QuicksightThemeConfigurationTypographyOutputReference", version: "21.22.1" };
function quicksightThemeConfigurationUiColorPaletteToTerraform(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 {
accent: cdktf.stringToTerraform(struct.accent),
accent_foreground: cdktf.stringToTerraform(struct.accentForeground),
danger: cdktf.stringToTerraform(struct.danger),
danger_foreground: cdktf.stringToTerraform(struct.dangerForeground),
dimension: cdktf.stringToTerraform(struct.dimension),
dimension_foreground: cdktf.stringToTerraform(struct.dimensionForeground),
measure: cdktf.stringToTerraform(struct.measure),
measure_foreground: cdktf.stringToTerraform(struct.measureForeground),
primary_background: cdktf.stringToTerraform(struct.primaryBackground),
primary_foreground: cdktf.stringToTerraform(struct.primaryForeground),
secondary_background: cdktf.stringToTerraform(struct.secondaryBackground),
secondary_foreground: cdktf.stringToTerraform(struct.secondaryForeground),
success: cdktf.stringToTerraform(struct.success),
success_foreground: cdktf.stringToTerraform(struct.successForeground),
warning: cdktf.stringToTerraform(struct.warning),
warning_foreground: cdktf.stringToTerraform(struct.warningForeground),
};
}
function quicksightThemeConfigurationUiColorPaletteToHclTerraform(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 = {
accent: {
value: cdktf.stringToHclTerraform(struct.accent),
isBlock: false,
type: "simple",
storageClassType: "string",
},
accent_foreground: {
value: cdktf.stringToHclTerraform(struct.accentForeground),
isBlock: false,
type: "simple",
storageClassType: "string",
},
danger: {
value: cdktf.stringToHclTerraform(struct.danger),
isBlock: false,
type: "simple",
storageClassType: "string",
},
danger_foreground: {
value: cdktf.stringToHclTerraform(struct.dangerForeground),
isBlock: false,
type: "simple",
storageClassType: "string",
},
dimension: {
value: cdktf.stringToHclTerraform(struct.dimension),
isBlock: false,
type: "simple",
storageClassType: "string",
},
dimension_foreground: {
value: cdktf.stringToHclTerraform(struct.dimensionForeground),
isBlock: false,
type: "simple",
storageClassType: "string",
},
measure: {
value: cdktf.stringToHclTerraform(struct.measure),
isBlock: false,
type: "simple",
storageClassType: "string",
},
measure_foreground: {
value: cdktf.stringToHclTerraform(struct.measureForeground),
isBlock: false,
type: "simple",
storageClassType: "string",
},
primary_background: {
value: cdktf.stringToHclTerraform(struct.primaryBackground),
isBlock: false,
type: "simple",
storageClassType: "string",
},
primary_foreground: {
value: cdktf.stringToHclTerraform(struct.primaryForeground),
isBlock: false,
type: "simple",
storageClassType: "string",
},
secondary_background: {
value: cdktf.stringToHclTerraform(struct.secondaryBackground),
isBlock: false,
type: "simple",
storageClassType: "string",
},
secondary_foreground: {
value: cdktf.stringToHclTerraform(struct.secondaryForeground),
isBlock: false,
type: "simple",
storageClassType: "string",
},
success: {
value: cdktf.stringToHclTerraform(struct.success),
isBlock: false,
type: "simple",
storageClassType: "string",
},
success_foreground: {
value: cdktf.stringToHclTerraform(struct.successForeground),
isBlock: false,
type: "simple",
storageClassType: "string",
},
warning: {
value: cdktf.stringToHclTerraform(struct.warning),
isBlock: false,
type: "simple",
storageClassType: "string",
},
warning_foreground: {
value: cdktf.stringToHclTerraform(struct.warningForeground),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class QuicksightThemeConfigurationUiColorPaletteOutputReference 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._accent !== undefined) {
hasAnyValues = true;
internalValueResult.accent = this._accent;
}
if (this._accentForeground !== undefined) {
hasAnyValues = true;
internalValueResult.accentForeground = this._accentForeground;
}
if (this._danger !== undefined) {
hasAnyValues = true;
internalValueResult.danger = this._danger;
}
if (this._dangerForeground !== undefined) {
hasAnyValues = true;
internalValueResult.dangerForeground = this._dangerForeground;
}
if (this._dimension !== undefined) {
hasAnyValues = true;
internalValueResult.dimension = this._dimension;
}
if (this._dimensionForeground !== undefined) {
hasAnyValues = true;
internalValueResult.dimensionForeground = this._dimensionForeground;
}
if (this._measure !== undefined) {
hasAnyValues = true;
internalValueResult.measure = this._measure;
}
if (this._measureForeground !== undefined) {
hasAnyValues = true;
internalValueResult.measureForeground = this._measureForeground;
}
if (this._primaryBackground !== undefined) {
hasAnyValues = true;
internalValueResult.primaryBackground = this._primaryBackground;
}
if (this._primaryForeground !== undefined) {
hasAnyValues = true;
internalValueResult.primaryForeground = this._primaryForeground;
}
if (this._secondaryBackground !== undefined) {
hasAnyValues = true;
internalValueResult.secondaryBackground = this._secondaryBackground;
}
if (this._secondaryForeground !== undefined) {
hasAnyValues = true;
internalValueResult.secondaryForeground = this._secondaryForeground;
}
if (this._success !== undefined) {
hasAnyValues = true;
internalValueResult.success = this._success;
}
if (this._successForeground !== undefined) {
hasAnyValues = true;
internalValueResult.successForeground = this._successForeground;
}
if (this._warning !== undefined) {
hasAnyValues = true;
internalValueResult.warning = this._warning;
}
if (this._warningForeground !== undefined) {
hasAnyValues = true;
internalValueResult.warningForeground = this._warningForeground;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._accent = undefined;
this._accentForeground = undefined;
this._danger = undefined;
this._dangerForeground = undefined;
this._dimension = undefined;
this._dimensionForeground = undefined;
this._measure = undefined;
this._measureForeground = undefined;
this._primaryBackground = undefined;
this._primaryForeground = undefined;
this._secondaryBackground = undefined;
this._secondaryForeground = undefined;
this._success = undefined;
this._successForeground = undefined;
this._warning = undefined;
this._warningForeground = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._accent = value.accent;
this._accentForeground = value.accentForeground;
this._danger = value.danger;
this._dangerForeground = value.dangerForeground;
this._dimension = value.dimension;
this._dimensionForeground = value.dimensionForeground;
this._measure = value.measure;
this._measureForeground = value.measureForeground;
this._primaryBackground = value.primaryBackground;
this._primaryForeground = value.primaryForeground;
this._secondaryBackground = value.secondaryBackground;
this._secondaryForeground = value.secondaryForeground;
this._success = value.success;
this._successForeground = value.successForeground;
this._warning = value.warning;
this._warningForeground = value.warningForeground;
}
}
get accent() {
return this.getStringAttribute('accent');
}
set accent(value) {
this._accent = value;
}
resetAccent() {
this._accent = undefined;
}
// Temporarily expose input value. Use with caution.
get accentInput() {
return this._accent;
}
get accentForeground() {
return this.getStringAttribute('accent_foreground');
}
set accentForeground(value) {
this._accentForeground = value;
}
resetAccentForeground() {
this._accentForeground = undefined;
}
// Temporarily expose input value. Use with caution.
get accentForegroundInput() {
return this._accentForeground;
}
get danger() {
return this.getStringAttribute('danger');
}
set danger(value) {
this._danger = value;
}
resetDanger() {
this._danger = undefined;
}
// Temporarily expose input value. Use with caution.
get dangerInput() {
return this._danger;
}
get dangerForeground() {
return this.getStringAttribute('danger_foreground');
}
set dangerForeground(value) {
this._dangerForeground = value;
}
resetDangerForeground() {
this._dangerForeground = undefined;
}
// Temporarily expose input value. Use with caution.
get dangerForegroundInput() {
return this._dangerForeground;
}
get dimension() {
return this.getStringAttribute('dimension');
}
set dimension(value) {
this._dimension = value;
}
resetDimension() {
this._dimension = undefined;
}
//