@cdktf/provider-aws
Version:
Prebuilt aws Provider for Terraform CDK (cdktf)
1,185 lines • 325 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.GlueCatalogTable = exports.GlueCatalogTableTargetTableOutputReference = exports.GlueCatalogTableStorageDescriptorOutputReference = exports.GlueCatalogTableStorageDescriptorSortColumnsList = exports.GlueCatalogTableStorageDescriptorSortColumnsOutputReference = exports.GlueCatalogTableStorageDescriptorSkewedInfoOutputReference = exports.GlueCatalogTableStorageDescriptorSerDeInfoOutputReference = exports.GlueCatalogTableStorageDescriptorSchemaReferenceOutputReference = exports.GlueCatalogTableStorageDescriptorSchemaReferenceSchemaIdOutputReference = exports.GlueCatalogTableStorageDescriptorColumnsList = exports.GlueCatalogTableStorageDescriptorColumnsOutputReference = exports.GlueCatalogTablePartitionKeysList = exports.GlueCatalogTablePartitionKeysOutputReference = exports.GlueCatalogTablePartitionIndexList = exports.GlueCatalogTablePartitionIndexOutputReference = exports.GlueCatalogTableOpenTableFormatInputOutputReference = exports.GlueCatalogTableOpenTableFormatInputIcebergInputOutputReference = void 0;
exports.glueCatalogTableOpenTableFormatInputIcebergInputToTerraform = glueCatalogTableOpenTableFormatInputIcebergInputToTerraform;
exports.glueCatalogTableOpenTableFormatInputIcebergInputToHclTerraform = glueCatalogTableOpenTableFormatInputIcebergInputToHclTerraform;
exports.glueCatalogTableOpenTableFormatInputToTerraform = glueCatalogTableOpenTableFormatInputToTerraform;
exports.glueCatalogTableOpenTableFormatInputToHclTerraform = glueCatalogTableOpenTableFormatInputToHclTerraform;
exports.glueCatalogTablePartitionIndexToTerraform = glueCatalogTablePartitionIndexToTerraform;
exports.glueCatalogTablePartitionIndexToHclTerraform = glueCatalogTablePartitionIndexToHclTerraform;
exports.glueCatalogTablePartitionKeysToTerraform = glueCatalogTablePartitionKeysToTerraform;
exports.glueCatalogTablePartitionKeysToHclTerraform = glueCatalogTablePartitionKeysToHclTerraform;
exports.glueCatalogTableStorageDescriptorColumnsToTerraform = glueCatalogTableStorageDescriptorColumnsToTerraform;
exports.glueCatalogTableStorageDescriptorColumnsToHclTerraform = glueCatalogTableStorageDescriptorColumnsToHclTerraform;
exports.glueCatalogTableStorageDescriptorSchemaReferenceSchemaIdToTerraform = glueCatalogTableStorageDescriptorSchemaReferenceSchemaIdToTerraform;
exports.glueCatalogTableStorageDescriptorSchemaReferenceSchemaIdToHclTerraform = glueCatalogTableStorageDescriptorSchemaReferenceSchemaIdToHclTerraform;
exports.glueCatalogTableStorageDescriptorSchemaReferenceToTerraform = glueCatalogTableStorageDescriptorSchemaReferenceToTerraform;
exports.glueCatalogTableStorageDescriptorSchemaReferenceToHclTerraform = glueCatalogTableStorageDescriptorSchemaReferenceToHclTerraform;
exports.glueCatalogTableStorageDescriptorSerDeInfoToTerraform = glueCatalogTableStorageDescriptorSerDeInfoToTerraform;
exports.glueCatalogTableStorageDescriptorSerDeInfoToHclTerraform = glueCatalogTableStorageDescriptorSerDeInfoToHclTerraform;
exports.glueCatalogTableStorageDescriptorSkewedInfoToTerraform = glueCatalogTableStorageDescriptorSkewedInfoToTerraform;
exports.glueCatalogTableStorageDescriptorSkewedInfoToHclTerraform = glueCatalogTableStorageDescriptorSkewedInfoToHclTerraform;
exports.glueCatalogTableStorageDescriptorSortColumnsToTerraform = glueCatalogTableStorageDescriptorSortColumnsToTerraform;
exports.glueCatalogTableStorageDescriptorSortColumnsToHclTerraform = glueCatalogTableStorageDescriptorSortColumnsToHclTerraform;
exports.glueCatalogTableStorageDescriptorToTerraform = glueCatalogTableStorageDescriptorToTerraform;
exports.glueCatalogTableStorageDescriptorToHclTerraform = glueCatalogTableStorageDescriptorToHclTerraform;
exports.glueCatalogTableTargetTableToTerraform = glueCatalogTableTargetTableToTerraform;
exports.glueCatalogTableTargetTableToHclTerraform = glueCatalogTableTargetTableToHclTerraform;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function glueCatalogTableOpenTableFormatInputIcebergInputToTerraform(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 {
metadata_operation: cdktf.stringToTerraform(struct.metadataOperation),
version: cdktf.stringToTerraform(struct.version),
};
}
function glueCatalogTableOpenTableFormatInputIcebergInputToHclTerraform(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 = {
metadata_operation: {
value: cdktf.stringToHclTerraform(struct.metadataOperation),
isBlock: false,
type: "simple",
storageClassType: "string",
},
version: {
value: cdktf.stringToHclTerraform(struct.version),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class GlueCatalogTableOpenTableFormatInputIcebergInputOutputReference 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._metadataOperation !== undefined) {
hasAnyValues = true;
internalValueResult.metadataOperation = this._metadataOperation;
}
if (this._version !== undefined) {
hasAnyValues = true;
internalValueResult.version = this._version;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._metadataOperation = undefined;
this._version = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._metadataOperation = value.metadataOperation;
this._version = value.version;
}
}
get metadataOperation() {
return this.getStringAttribute('metadata_operation');
}
set metadataOperation(value) {
this._metadataOperation = value;
}
// Temporarily expose input value. Use with caution.
get metadataOperationInput() {
return this._metadataOperation;
}
get version() {
return this.getStringAttribute('version');
}
set version(value) {
this._version = value;
}
resetVersion() {
this._version = undefined;
}
// Temporarily expose input value. Use with caution.
get versionInput() {
return this._version;
}
}
exports.GlueCatalogTableOpenTableFormatInputIcebergInputOutputReference = GlueCatalogTableOpenTableFormatInputIcebergInputOutputReference;
_a = JSII_RTTI_SYMBOL_1;
GlueCatalogTableOpenTableFormatInputIcebergInputOutputReference[_a] = { fqn: "@cdktf/provider-aws.glueCatalogTable.GlueCatalogTableOpenTableFormatInputIcebergInputOutputReference", version: "21.22.1" };
function glueCatalogTableOpenTableFormatInputToTerraform(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 {
iceberg_input: glueCatalogTableOpenTableFormatInputIcebergInputToTerraform(struct.icebergInput),
};
}
function glueCatalogTableOpenTableFormatInputToHclTerraform(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 = {
iceberg_input: {
value: glueCatalogTableOpenTableFormatInputIcebergInputToHclTerraform(struct.icebergInput),
isBlock: true,
type: "list",
storageClassType: "GlueCatalogTableOpenTableFormatInputIcebergInputList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class GlueCatalogTableOpenTableFormatInputOutputReference 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;
// iceberg_input - computed: false, optional: false, required: true
this._icebergInput = new GlueCatalogTableOpenTableFormatInputIcebergInputOutputReference(this, "iceberg_input");
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._icebergInput?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.icebergInput = this._icebergInput?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._icebergInput.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._icebergInput.internalValue = value.icebergInput;
}
}
get icebergInput() {
return this._icebergInput;
}
putIcebergInput(value) {
this._icebergInput.internalValue = value;
}
// Temporarily expose input value. Use with caution.
get icebergInputInput() {
return this._icebergInput.internalValue;
}
}
exports.GlueCatalogTableOpenTableFormatInputOutputReference = GlueCatalogTableOpenTableFormatInputOutputReference;
_b = JSII_RTTI_SYMBOL_1;
GlueCatalogTableOpenTableFormatInputOutputReference[_b] = { fqn: "@cdktf/provider-aws.glueCatalogTable.GlueCatalogTableOpenTableFormatInputOutputReference", version: "21.22.1" };
function glueCatalogTablePartitionIndexToTerraform(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 {
index_name: cdktf.stringToTerraform(struct.indexName),
keys: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.keys),
};
}
function glueCatalogTablePartitionIndexToHclTerraform(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 = {
index_name: {
value: cdktf.stringToHclTerraform(struct.indexName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
keys: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.keys),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class GlueCatalogTablePartitionIndexOutputReference 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._indexName !== undefined) {
hasAnyValues = true;
internalValueResult.indexName = this._indexName;
}
if (this._keys !== undefined) {
hasAnyValues = true;
internalValueResult.keys = this._keys;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._indexName = undefined;
this._keys = 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._indexName = value.indexName;
this._keys = value.keys;
}
}
get indexName() {
return this.getStringAttribute('index_name');
}
set indexName(value) {
this._indexName = value;
}
// Temporarily expose input value. Use with caution.
get indexNameInput() {
return this._indexName;
}
// index_status - computed: true, optional: false, required: false
get indexStatus() {
return this.getStringAttribute('index_status');
}
get keys() {
return this.getListAttribute('keys');
}
set keys(value) {
this._keys = value;
}
// Temporarily expose input value. Use with caution.
get keysInput() {
return this._keys;
}
}
exports.GlueCatalogTablePartitionIndexOutputReference = GlueCatalogTablePartitionIndexOutputReference;
_c = JSII_RTTI_SYMBOL_1;
GlueCatalogTablePartitionIndexOutputReference[_c] = { fqn: "@cdktf/provider-aws.glueCatalogTable.GlueCatalogTablePartitionIndexOutputReference", version: "21.22.1" };
class GlueCatalogTablePartitionIndexList 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 GlueCatalogTablePartitionIndexOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.GlueCatalogTablePartitionIndexList = GlueCatalogTablePartitionIndexList;
_d = JSII_RTTI_SYMBOL_1;
GlueCatalogTablePartitionIndexList[_d] = { fqn: "@cdktf/provider-aws.glueCatalogTable.GlueCatalogTablePartitionIndexList", version: "21.22.1" };
function glueCatalogTablePartitionKeysToTerraform(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 {
comment: cdktf.stringToTerraform(struct.comment),
name: cdktf.stringToTerraform(struct.name),
parameters: cdktf.hashMapper(cdktf.stringToTerraform)(struct.parameters),
type: cdktf.stringToTerraform(struct.type),
};
}
function glueCatalogTablePartitionKeysToHclTerraform(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 = {
comment: {
value: cdktf.stringToHclTerraform(struct.comment),
isBlock: false,
type: "simple",
storageClassType: "string",
},
name: {
value: cdktf.stringToHclTerraform(struct.name),
isBlock: false,
type: "simple",
storageClassType: "string",
},
parameters: {
value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(struct.parameters),
isBlock: false,
type: "map",
storageClassType: "stringMap",
},
type: {
value: cdktf.stringToHclTerraform(struct.type),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class GlueCatalogTablePartitionKeysOutputReference 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._comment !== undefined) {
hasAnyValues = true;
internalValueResult.comment = this._comment;
}
if (this._name !== undefined) {
hasAnyValues = true;
internalValueResult.name = this._name;
}
if (this._parameters !== undefined) {
hasAnyValues = true;
internalValueResult.parameters = this._parameters;
}
if (this._type !== undefined) {
hasAnyValues = true;
internalValueResult.type = this._type;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._comment = undefined;
this._name = undefined;
this._parameters = undefined;
this._type = 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._comment = value.comment;
this._name = value.name;
this._parameters = value.parameters;
this._type = value.type;
}
}
get comment() {
return this.getStringAttribute('comment');
}
set comment(value) {
this._comment = value;
}
resetComment() {
this._comment = undefined;
}
// Temporarily expose input value. Use with caution.
get commentInput() {
return this._comment;
}
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 parameters() {
return this.getStringMapAttribute('parameters');
}
set parameters(value) {
this._parameters = value;
}
resetParameters() {
this._parameters = undefined;
}
// Temporarily expose input value. Use with caution.
get parametersInput() {
return this._parameters;
}
get type() {
return this.getStringAttribute('type');
}
set type(value) {
this._type = value;
}
resetType() {
this._type = undefined;
}
// Temporarily expose input value. Use with caution.
get typeInput() {
return this._type;
}
}
exports.GlueCatalogTablePartitionKeysOutputReference = GlueCatalogTablePartitionKeysOutputReference;
_e = JSII_RTTI_SYMBOL_1;
GlueCatalogTablePartitionKeysOutputReference[_e] = { fqn: "@cdktf/provider-aws.glueCatalogTable.GlueCatalogTablePartitionKeysOutputReference", version: "21.22.1" };
class GlueCatalogTablePartitionKeysList 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 GlueCatalogTablePartitionKeysOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.GlueCatalogTablePartitionKeysList = GlueCatalogTablePartitionKeysList;
_f = JSII_RTTI_SYMBOL_1;
GlueCatalogTablePartitionKeysList[_f] = { fqn: "@cdktf/provider-aws.glueCatalogTable.GlueCatalogTablePartitionKeysList", version: "21.22.1" };
function glueCatalogTableStorageDescriptorColumnsToTerraform(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 {
comment: cdktf.stringToTerraform(struct.comment),
name: cdktf.stringToTerraform(struct.name),
parameters: cdktf.hashMapper(cdktf.stringToTerraform)(struct.parameters),
type: cdktf.stringToTerraform(struct.type),
};
}
function glueCatalogTableStorageDescriptorColumnsToHclTerraform(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 = {
comment: {
value: cdktf.stringToHclTerraform(struct.comment),
isBlock: false,
type: "simple",
storageClassType: "string",
},
name: {
value: cdktf.stringToHclTerraform(struct.name),
isBlock: false,
type: "simple",
storageClassType: "string",
},
parameters: {
value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(struct.parameters),
isBlock: false,
type: "map",
storageClassType: "stringMap",
},
type: {
value: cdktf.stringToHclTerraform(struct.type),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class GlueCatalogTableStorageDescriptorColumnsOutputReference 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._comment !== undefined) {
hasAnyValues = true;
internalValueResult.comment = this._comment;
}
if (this._name !== undefined) {
hasAnyValues = true;
internalValueResult.name = this._name;
}
if (this._parameters !== undefined) {
hasAnyValues = true;
internalValueResult.parameters = this._parameters;
}
if (this._type !== undefined) {
hasAnyValues = true;
internalValueResult.type = this._type;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._comment = undefined;
this._name = undefined;
this._parameters = undefined;
this._type = 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._comment = value.comment;
this._name = value.name;
this._parameters = value.parameters;
this._type = value.type;
}
}
get comment() {
return this.getStringAttribute('comment');
}
set comment(value) {
this._comment = value;
}
resetComment() {
this._comment = undefined;
}
// Temporarily expose input value. Use with caution.
get commentInput() {
return this._comment;
}
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 parameters() {
return this.getStringMapAttribute('parameters');
}
set parameters(value) {
this._parameters = value;
}
resetParameters() {
this._parameters = undefined;
}
// Temporarily expose input value. Use with caution.
get parametersInput() {
return this._parameters;
}
get type() {
return this.getStringAttribute('type');
}
set type(value) {
this._type = value;
}
resetType() {
this._type = undefined;
}
// Temporarily expose input value. Use with caution.
get typeInput() {
return this._type;
}
}
exports.GlueCatalogTableStorageDescriptorColumnsOutputReference = GlueCatalogTableStorageDescriptorColumnsOutputReference;
_g = JSII_RTTI_SYMBOL_1;
GlueCatalogTableStorageDescriptorColumnsOutputReference[_g] = { fqn: "@cdktf/provider-aws.glueCatalogTable.GlueCatalogTableStorageDescriptorColumnsOutputReference", version: "21.22.1" };
class GlueCatalogTableStorageDescriptorColumnsList 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 GlueCatalogTableStorageDescriptorColumnsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.GlueCatalogTableStorageDescriptorColumnsList = GlueCatalogTableStorageDescriptorColumnsList;
_h = JSII_RTTI_SYMBOL_1;
GlueCatalogTableStorageDescriptorColumnsList[_h] = { fqn: "@cdktf/provider-aws.glueCatalogTable.GlueCatalogTableStorageDescriptorColumnsList", version: "21.22.1" };
function glueCatalogTableStorageDescriptorSchemaReferenceSchemaIdToTerraform(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 {
registry_name: cdktf.stringToTerraform(struct.registryName),
schema_arn: cdktf.stringToTerraform(struct.schemaArn),
schema_name: cdktf.stringToTerraform(struct.schemaName),
};
}
function glueCatalogTableStorageDescriptorSchemaReferenceSchemaIdToHclTerraform(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 = {
registry_name: {
value: cdktf.stringToHclTerraform(struct.registryName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
schema_arn: {
value: cdktf.stringToHclTerraform(struct.schemaArn),
isBlock: false,
type: "simple",
storageClassType: "string",
},
schema_name: {
value: cdktf.stringToHclTerraform(struct.schemaName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class GlueCatalogTableStorageDescriptorSchemaReferenceSchemaIdOutputReference 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._registryName !== undefined) {
hasAnyValues = true;
internalValueResult.registryName = this._registryName;
}
if (this._schemaArn !== undefined) {
hasAnyValues = true;
internalValueResult.schemaArn = this._schemaArn;
}
if (this._schemaName !== undefined) {
hasAnyValues = true;
internalValueResult.schemaName = this._schemaName;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._registryName = undefined;
this._schemaArn = undefined;
this._schemaName = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._registryName = value.registryName;
this._schemaArn = value.schemaArn;
this._schemaName = value.schemaName;
}
}
get registryName() {
return this.getStringAttribute('registry_name');
}
set registryName(value) {
this._registryName = value;
}
resetRegistryName() {
this._registryName = undefined;
}
// Temporarily expose input value. Use with caution.
get registryNameInput() {
return this._registryName;
}
get schemaArn() {
return this.getStringAttribute('schema_arn');
}
set schemaArn(value) {
this._schemaArn = value;
}
resetSchemaArn() {
this._schemaArn = undefined;
}
// Temporarily expose input value. Use with caution.
get schemaArnInput() {
return this._schemaArn;
}
get schemaName() {
return this.getStringAttribute('schema_name');
}
set schemaName(value) {
this._schemaName = value;
}
resetSchemaName() {
this._schemaName = undefined;
}
// Temporarily expose input value. Use with caution.
get schemaNameInput() {
return this._schemaName;
}
}
exports.GlueCatalogTableStorageDescriptorSchemaReferenceSchemaIdOutputReference = GlueCatalogTableStorageDescriptorSchemaReferenceSchemaIdOutputReference;
_j = JSII_RTTI_SYMBOL_1;
GlueCatalogTableStorageDescriptorSchemaReferenceSchemaIdOutputReference[_j] = { fqn: "@cdktf/provider-aws.glueCatalogTable.GlueCatalogTableStorageDescriptorSchemaReferenceSchemaIdOutputReference", version: "21.22.1" };
function glueCatalogTableStorageDescriptorSchemaReferenceToTerraform(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 {
schema_version_id: cdktf.stringToTerraform(struct.schemaVersionId),
schema_version_number: cdktf.numberToTerraform(struct.schemaVersionNumber),
schema_id: glueCatalogTableStorageDescriptorSchemaReferenceSchemaIdToTerraform(struct.schemaId),
};
}
function glueCatalogTableStorageDescriptorSchemaReferenceToHclTerraform(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 = {
schema_version_id: {
value: cdktf.stringToHclTerraform(struct.schemaVersionId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
schema_version_number: {
value: cdktf.numberToHclTerraform(struct.schemaVersionNumber),
isBlock: false,
type: "simple",
storageClassType: "number",
},
schema_id: {
value: glueCatalogTableStorageDescriptorSchemaReferenceSchemaIdToHclTerraform(struct.schemaId),
isBlock: true,
type: "list",
storageClassType: "GlueCatalogTableStorageDescriptorSchemaReferenceSchemaIdList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class GlueCatalogTableStorageDescriptorSchemaReferenceOutputReference 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;
// schema_id - computed: false, optional: true, required: false
this._schemaId = new GlueCatalogTableStorageDescriptorSchemaReferenceSchemaIdOutputReference(this, "schema_id");
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._schemaVersionId !== undefined) {
hasAnyValues = true;
internalValueResult.schemaVersionId = this._schemaVersionId;
}
if (this._schemaVersionNumber !== undefined) {
hasAnyValues = true;
internalValueResult.schemaVersionNumber = this._schemaVersionNumber;
}
if (this._schemaId?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.schemaId = this._schemaId?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._schemaVersionId = undefined;
this._schemaVersionNumber = undefined;
this._schemaId.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._schemaVersionId = value.schemaVersionId;
this._schemaVersionNumber = value.schemaVersionNumber;
this._schemaId.internalValue = value.schemaId;
}
}
get schemaVersionId() {
return this.getStringAttribute('schema_version_id');
}
set schemaVersionId(value) {
this._schemaVersionId = value;
}
resetSchemaVersionId() {
this._schemaVersionId = undefined;
}
// Temporarily expose input value. Use with caution.
get schemaVersionIdInput() {
return this._schemaVersionId;
}
get schemaVersionNumber() {
return this.getNumberAttribute('schema_version_number');
}
set schemaVersionNumber(value) {
this._schemaVersionNumber = value;
}
// Temporarily expose input value. Use with caution.
get schemaVersionNumberInput() {
return this._schemaVersionNumber;
}
get schemaId() {
return this._schemaId;
}
putSchemaId(value) {
this._schemaId.internalValue = value;
}
resetSchemaId() {
this._schemaId.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get schemaIdInput() {
return this._schemaId.internalValue;
}
}
exports.GlueCatalogTableStorageDescriptorSchemaReferenceOutputReference = GlueCatalogTableStorageDescriptorSchemaReferenceOutputReference;
_k = JSII_RTTI_SYMBOL_1;
GlueCatalogTableStorageDescriptorSchemaReferenceOutputReference[_k] = { fqn: "@cdktf/provider-aws.glueCatalogTable.GlueCatalogTableStorageDescriptorSchemaReferenceOutputReference", version: "21.22.1" };
function glueCatalogTableStorageDescriptorSerDeInfoToTerraform(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),
parameters: cdktf.hashMapper(cdktf.stringToTerraform)(struct.parameters),
serialization_library: cdktf.stringToTerraform(struct.serializationLibrary),
};
}
function glueCatalogTableStorageDescriptorSerDeInfoToHclTerraform(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",
},
parameters: {
value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(struct.parameters),
isBlock: false,
type: "map",
storageClassType: "stringMap",
},
serialization_library: {
value: cdktf.stringToHclTerraform(struct.serializationLibrary),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class GlueCatalogTableStorageDescriptorSerDeInfoOutputReference 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._name !== undefined) {
hasAnyValues = true;
internalValueResult.name = this._name;
}
if (this._parameters !== undefined) {
hasAnyValues = true;
internalValueResult.parameters = this._parameters;
}
if (this._serializationLibrary !== undefined) {
hasAnyValues = true;
internalValueResult.serializationLibrary = this._serializationLibrary;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._name = undefined;
this._parameters = undefined;
this._serializationLibrary = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._name = value.name;
this._parameters = value.parameters;
this._serializationLibrary = value.serializationLibrary;
}
}
get name() {
return this.getStringAttribute('name');
}
set name(value) {
this._name = value;
}
resetName() {
this._name = undefined;
}
// Temporarily expose input value. Use with caution.
get nameInput() {
return this._name;
}
get parameters() {
return this.getStringMapAttribute('parameters');
}
set parameters(value) {
this._parameters = value;
}
resetParameters() {
this._parameters = undefined;
}
// Temporarily expose input value. Use with caution.
get parametersInput() {
return this._parameters;
}
get serializationLibrary() {
return this.getStringAttribute('serialization_library');
}
set serializationLibrary(value) {
this._serializationLibrary = value;
}
resetSerializationLibrary() {
this._serializationLibrary = undefined;
}
// Temporarily expose input value. Use with caution.
get serializationLibraryInput() {
return this._serializationLibrary;
}
}
exports.GlueCatalogTableStorageDescriptorSerDeInfoOutputReference = GlueCatalogTableStorageDescriptorSerDeInfoOutputReference;
_l = JSII_RTTI_SYMBOL_1;
GlueCatalogTableStorageDescriptorSerDeInfoOutputReference[_l] = { fqn: "@cdktf/provider-aws.glueCatalogTable.GlueCatalogTableStorageDescriptorSerDeInfoOutputReference", version: "21.22.1" };
function glueCatalogTableStorageDescriptorSkewedInfoToTerraform(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 {
skewed_column_names: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.skewedColumnNames),
skewed_column_value_location_maps: cdktf.hashMapper(cdktf.stringToTerraform)(struct.skewedColumnValueLocationMaps),
skewed_column_values: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.skewedColumnValues),
};
}
function glueCatalogTableStorageDescriptorSkewedInfoToHclTerraform(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 = {
skewed_column_names: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.skewedColumnNames),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
skewed_column_value_location_maps: {
value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(struct.skewedColumnValueLocationMaps),
isBlock: false,
type: "map",
storageClassType: "stringMap",
},
skewed_column_values: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.skewedColumnValues),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class GlueCatalogTableStorageDescriptorSkewedInfoOutputReference 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._skewedColumnNames !== undefined) {
hasAnyValues = true;
internalValueResult.skewedColumnNames = this._skewedColumnNames;
}
if (this._skewedColumnValueLocationMaps !== undefined) {
hasAnyValues = true;
internalValueResult.skewedColumnValueLocationMaps = this._skewedColumnValueLocationMaps;
}
if (this._skewedColumnValues !== undefined) {
hasAnyValues = true;
internalValueResult.skewedColumnValues = this._skewedColumnValues;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._skewedColumnNames = undefined;
this._skewedColumnValueLocationMaps = undefined;
this._skewedColumnValues = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._skewedColumnNames = value.skewedColumnNames;
this._skewedColumnValueLocationMaps = value.skewedColumnValueLocationMaps;
this._skewedColumnValues = value.skewedColumnValues;
}
}
get skewedColumnNames() {
return this.getListAttribute('skewed_column_names');
}
set skewedColumnNames(value) {
this._skewedColumnNames = value;
}
resetSkewedColumnNames() {
this._skewedColumnNames = undefined;
}
// Temporarily expose input value. Use with caution.
get skewedColumnNamesInput() {
return this._skewedColumnNames;
}
get skewedColumnValueLocationMaps() {
return this.getStringMapAttribute('skewed_column_value_location_maps');
}
set skewedColumnValueLocationMaps(value) {
this._skewedColumnValueLocationMaps = value;
}
resetSkewedColumnValueLocationMaps() {
this._skewedColumnValueLocationMaps = undefined;
}
// Temporarily expose input value. Use with caution.
get skewedColumnValueLocationMapsInput() {
return this._skewedColumnValueLocationMaps;
}
get skewedColumnValues() {
return this.getListAttribute('skewed_column_values');
}
set skew