@cdktf/provider-aws
Version:
Prebuilt aws Provider for Terraform CDK (cdktf)
1,109 lines • 317 kB
JavaScript
"use strict";
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2;
Object.defineProperty(exports, "__esModule", { value: true });
exports.LakeformationOptIn = exports.LakeformationOptInResourceDataList = exports.LakeformationOptInResourceDataOutputReference = exports.LakeformationOptInResourceDataTableWithColumnsList = exports.LakeformationOptInResourceDataTableWithColumnsOutputReference = exports.LakeformationOptInResourceDataTableWithColumnsColumnWildcardList = exports.LakeformationOptInResourceDataTableWithColumnsColumnWildcardOutputReference = exports.LakeformationOptInResourceDataTableList = exports.LakeformationOptInResourceDataTableOutputReference = exports.LakeformationOptInResourceDataLfTagPolicyList = exports.LakeformationOptInResourceDataLfTagPolicyOutputReference = exports.LakeformationOptInResourceDataLfTagExpressionList = exports.LakeformationOptInResourceDataLfTagExpressionOutputReference = exports.LakeformationOptInResourceDataLfTagList = exports.LakeformationOptInResourceDataLfTagOutputReference = exports.LakeformationOptInResourceDataDatabaseList = exports.LakeformationOptInResourceDataDatabaseOutputReference = exports.LakeformationOptInResourceDataDataLocationList = exports.LakeformationOptInResourceDataDataLocationOutputReference = exports.LakeformationOptInResourceDataDataCellsFilterList = exports.LakeformationOptInResourceDataDataCellsFilterOutputReference = exports.LakeformationOptInResourceDataCatalogList = exports.LakeformationOptInResourceDataCatalogOutputReference = exports.LakeformationOptInPrincipalList = exports.LakeformationOptInPrincipalOutputReference = exports.LakeformationOptInConditionList = exports.LakeformationOptInConditionOutputReference = void 0;
exports.lakeformationOptInConditionToTerraform = lakeformationOptInConditionToTerraform;
exports.lakeformationOptInConditionToHclTerraform = lakeformationOptInConditionToHclTerraform;
exports.lakeformationOptInPrincipalToTerraform = lakeformationOptInPrincipalToTerraform;
exports.lakeformationOptInPrincipalToHclTerraform = lakeformationOptInPrincipalToHclTerraform;
exports.lakeformationOptInResourceDataCatalogToTerraform = lakeformationOptInResourceDataCatalogToTerraform;
exports.lakeformationOptInResourceDataCatalogToHclTerraform = lakeformationOptInResourceDataCatalogToHclTerraform;
exports.lakeformationOptInResourceDataDataCellsFilterToTerraform = lakeformationOptInResourceDataDataCellsFilterToTerraform;
exports.lakeformationOptInResourceDataDataCellsFilterToHclTerraform = lakeformationOptInResourceDataDataCellsFilterToHclTerraform;
exports.lakeformationOptInResourceDataDataLocationToTerraform = lakeformationOptInResourceDataDataLocationToTerraform;
exports.lakeformationOptInResourceDataDataLocationToHclTerraform = lakeformationOptInResourceDataDataLocationToHclTerraform;
exports.lakeformationOptInResourceDataDatabaseToTerraform = lakeformationOptInResourceDataDatabaseToTerraform;
exports.lakeformationOptInResourceDataDatabaseToHclTerraform = lakeformationOptInResourceDataDatabaseToHclTerraform;
exports.lakeformationOptInResourceDataLfTagToTerraform = lakeformationOptInResourceDataLfTagToTerraform;
exports.lakeformationOptInResourceDataLfTagToHclTerraform = lakeformationOptInResourceDataLfTagToHclTerraform;
exports.lakeformationOptInResourceDataLfTagExpressionToTerraform = lakeformationOptInResourceDataLfTagExpressionToTerraform;
exports.lakeformationOptInResourceDataLfTagExpressionToHclTerraform = lakeformationOptInResourceDataLfTagExpressionToHclTerraform;
exports.lakeformationOptInResourceDataLfTagPolicyToTerraform = lakeformationOptInResourceDataLfTagPolicyToTerraform;
exports.lakeformationOptInResourceDataLfTagPolicyToHclTerraform = lakeformationOptInResourceDataLfTagPolicyToHclTerraform;
exports.lakeformationOptInResourceDataTableToTerraform = lakeformationOptInResourceDataTableToTerraform;
exports.lakeformationOptInResourceDataTableToHclTerraform = lakeformationOptInResourceDataTableToHclTerraform;
exports.lakeformationOptInResourceDataTableWithColumnsColumnWildcardToTerraform = lakeformationOptInResourceDataTableWithColumnsColumnWildcardToTerraform;
exports.lakeformationOptInResourceDataTableWithColumnsColumnWildcardToHclTerraform = lakeformationOptInResourceDataTableWithColumnsColumnWildcardToHclTerraform;
exports.lakeformationOptInResourceDataTableWithColumnsToTerraform = lakeformationOptInResourceDataTableWithColumnsToTerraform;
exports.lakeformationOptInResourceDataTableWithColumnsToHclTerraform = lakeformationOptInResourceDataTableWithColumnsToHclTerraform;
exports.lakeformationOptInResourceDataToTerraform = lakeformationOptInResourceDataToTerraform;
exports.lakeformationOptInResourceDataToHclTerraform = lakeformationOptInResourceDataToHclTerraform;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function lakeformationOptInConditionToTerraform(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 {};
}
function lakeformationOptInConditionToHclTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.isComplexElement(struct)) {
throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
}
const attrs = {};
return attrs;
}
class LakeformationOptInConditionOutputReference 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 = {};
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
}
else if (cdktf.Tokenization.isResolvable(value)) {
this.isEmptyObject = false;
this.resolvableValue = value;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this.resolvableValue = undefined;
}
}
// expression - computed: true, optional: false, required: false
get expression() {
return this.getStringAttribute('expression');
}
}
exports.LakeformationOptInConditionOutputReference = LakeformationOptInConditionOutputReference;
_a = JSII_RTTI_SYMBOL_1;
LakeformationOptInConditionOutputReference[_a] = { fqn: "@cdktf/provider-aws.lakeformationOptIn.LakeformationOptInConditionOutputReference", version: "21.22.1" };
class LakeformationOptInConditionList 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 LakeformationOptInConditionOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.LakeformationOptInConditionList = LakeformationOptInConditionList;
_b = JSII_RTTI_SYMBOL_1;
LakeformationOptInConditionList[_b] = { fqn: "@cdktf/provider-aws.lakeformationOptIn.LakeformationOptInConditionList", version: "21.22.1" };
function lakeformationOptInPrincipalToTerraform(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_lake_principal_identifier: cdktf.stringToTerraform(struct.dataLakePrincipalIdentifier),
};
}
function lakeformationOptInPrincipalToHclTerraform(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_lake_principal_identifier: {
value: cdktf.stringToHclTerraform(struct.dataLakePrincipalIdentifier),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class LakeformationOptInPrincipalOutputReference 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._dataLakePrincipalIdentifier !== undefined) {
hasAnyValues = true;
internalValueResult.dataLakePrincipalIdentifier = this._dataLakePrincipalIdentifier;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._dataLakePrincipalIdentifier = 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._dataLakePrincipalIdentifier = value.dataLakePrincipalIdentifier;
}
}
get dataLakePrincipalIdentifier() {
return this.getStringAttribute('data_lake_principal_identifier');
}
set dataLakePrincipalIdentifier(value) {
this._dataLakePrincipalIdentifier = value;
}
// Temporarily expose input value. Use with caution.
get dataLakePrincipalIdentifierInput() {
return this._dataLakePrincipalIdentifier;
}
}
exports.LakeformationOptInPrincipalOutputReference = LakeformationOptInPrincipalOutputReference;
_c = JSII_RTTI_SYMBOL_1;
LakeformationOptInPrincipalOutputReference[_c] = { fqn: "@cdktf/provider-aws.lakeformationOptIn.LakeformationOptInPrincipalOutputReference", version: "21.22.1" };
class LakeformationOptInPrincipalList 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 LakeformationOptInPrincipalOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.LakeformationOptInPrincipalList = LakeformationOptInPrincipalList;
_d = JSII_RTTI_SYMBOL_1;
LakeformationOptInPrincipalList[_d] = { fqn: "@cdktf/provider-aws.lakeformationOptIn.LakeformationOptInPrincipalList", version: "21.22.1" };
function lakeformationOptInResourceDataCatalogToTerraform(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 {
id: cdktf.stringToTerraform(struct.id),
};
}
function lakeformationOptInResourceDataCatalogToHclTerraform(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 = {
id: {
value: cdktf.stringToHclTerraform(struct.id),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class LakeformationOptInResourceDataCatalogOutputReference 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._id !== undefined) {
hasAnyValues = true;
internalValueResult.id = this._id;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._id = 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._id = value.id;
}
}
get id() {
return this.getStringAttribute('id');
}
set id(value) {
this._id = value;
}
resetId() {
this._id = undefined;
}
// Temporarily expose input value. Use with caution.
get idInput() {
return this._id;
}
}
exports.LakeformationOptInResourceDataCatalogOutputReference = LakeformationOptInResourceDataCatalogOutputReference;
_e = JSII_RTTI_SYMBOL_1;
LakeformationOptInResourceDataCatalogOutputReference[_e] = { fqn: "@cdktf/provider-aws.lakeformationOptIn.LakeformationOptInResourceDataCatalogOutputReference", version: "21.22.1" };
class LakeformationOptInResourceDataCatalogList 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 LakeformationOptInResourceDataCatalogOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.LakeformationOptInResourceDataCatalogList = LakeformationOptInResourceDataCatalogList;
_f = JSII_RTTI_SYMBOL_1;
LakeformationOptInResourceDataCatalogList[_f] = { fqn: "@cdktf/provider-aws.lakeformationOptIn.LakeformationOptInResourceDataCatalogList", version: "21.22.1" };
function lakeformationOptInResourceDataDataCellsFilterToTerraform(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 {
database_name: cdktf.stringToTerraform(struct.databaseName),
name: cdktf.stringToTerraform(struct.name),
table_catalog_id: cdktf.stringToTerraform(struct.tableCatalogId),
table_name: cdktf.stringToTerraform(struct.tableName),
};
}
function lakeformationOptInResourceDataDataCellsFilterToHclTerraform(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 = {
database_name: {
value: cdktf.stringToHclTerraform(struct.databaseName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
name: {
value: cdktf.stringToHclTerraform(struct.name),
isBlock: false,
type: "simple",
storageClassType: "string",
},
table_catalog_id: {
value: cdktf.stringToHclTerraform(struct.tableCatalogId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
table_name: {
value: cdktf.stringToHclTerraform(struct.tableName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class LakeformationOptInResourceDataDataCellsFilterOutputReference 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._databaseName !== undefined) {
hasAnyValues = true;
internalValueResult.databaseName = this._databaseName;
}
if (this._name !== undefined) {
hasAnyValues = true;
internalValueResult.name = this._name;
}
if (this._tableCatalogId !== undefined) {
hasAnyValues = true;
internalValueResult.tableCatalogId = this._tableCatalogId;
}
if (this._tableName !== undefined) {
hasAnyValues = true;
internalValueResult.tableName = this._tableName;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._databaseName = undefined;
this._name = undefined;
this._tableCatalogId = undefined;
this._tableName = 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._databaseName = value.databaseName;
this._name = value.name;
this._tableCatalogId = value.tableCatalogId;
this._tableName = value.tableName;
}
}
get databaseName() {
return this.getStringAttribute('database_name');
}
set databaseName(value) {
this._databaseName = value;
}
resetDatabaseName() {
this._databaseName = undefined;
}
// Temporarily expose input value. Use with caution.
get databaseNameInput() {
return this._databaseName;
}
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 tableCatalogId() {
return this.getStringAttribute('table_catalog_id');
}
set tableCatalogId(value) {
this._tableCatalogId = value;
}
resetTableCatalogId() {
this._tableCatalogId = undefined;
}
// Temporarily expose input value. Use with caution.
get tableCatalogIdInput() {
return this._tableCatalogId;
}
get tableName() {
return this.getStringAttribute('table_name');
}
set tableName(value) {
this._tableName = value;
}
resetTableName() {
this._tableName = undefined;
}
// Temporarily expose input value. Use with caution.
get tableNameInput() {
return this._tableName;
}
}
exports.LakeformationOptInResourceDataDataCellsFilterOutputReference = LakeformationOptInResourceDataDataCellsFilterOutputReference;
_g = JSII_RTTI_SYMBOL_1;
LakeformationOptInResourceDataDataCellsFilterOutputReference[_g] = { fqn: "@cdktf/provider-aws.lakeformationOptIn.LakeformationOptInResourceDataDataCellsFilterOutputReference", version: "21.22.1" };
class LakeformationOptInResourceDataDataCellsFilterList 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 LakeformationOptInResourceDataDataCellsFilterOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.LakeformationOptInResourceDataDataCellsFilterList = LakeformationOptInResourceDataDataCellsFilterList;
_h = JSII_RTTI_SYMBOL_1;
LakeformationOptInResourceDataDataCellsFilterList[_h] = { fqn: "@cdktf/provider-aws.lakeformationOptIn.LakeformationOptInResourceDataDataCellsFilterList", version: "21.22.1" };
function lakeformationOptInResourceDataDataLocationToTerraform(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 {
catalog_id: cdktf.stringToTerraform(struct.catalogId),
resource_arn: cdktf.stringToTerraform(struct.resourceArn),
};
}
function lakeformationOptInResourceDataDataLocationToHclTerraform(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 = {
catalog_id: {
value: cdktf.stringToHclTerraform(struct.catalogId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
resource_arn: {
value: cdktf.stringToHclTerraform(struct.resourceArn),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class LakeformationOptInResourceDataDataLocationOutputReference 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._catalogId !== undefined) {
hasAnyValues = true;
internalValueResult.catalogId = this._catalogId;
}
if (this._resourceArn !== undefined) {
hasAnyValues = true;
internalValueResult.resourceArn = this._resourceArn;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._catalogId = undefined;
this._resourceArn = 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._catalogId = value.catalogId;
this._resourceArn = value.resourceArn;
}
}
get catalogId() {
return this.getStringAttribute('catalog_id');
}
set catalogId(value) {
this._catalogId = value;
}
resetCatalogId() {
this._catalogId = undefined;
}
// Temporarily expose input value. Use with caution.
get catalogIdInput() {
return this._catalogId;
}
get resourceArn() {
return this.getStringAttribute('resource_arn');
}
set resourceArn(value) {
this._resourceArn = value;
}
// Temporarily expose input value. Use with caution.
get resourceArnInput() {
return this._resourceArn;
}
}
exports.LakeformationOptInResourceDataDataLocationOutputReference = LakeformationOptInResourceDataDataLocationOutputReference;
_j = JSII_RTTI_SYMBOL_1;
LakeformationOptInResourceDataDataLocationOutputReference[_j] = { fqn: "@cdktf/provider-aws.lakeformationOptIn.LakeformationOptInResourceDataDataLocationOutputReference", version: "21.22.1" };
class LakeformationOptInResourceDataDataLocationList 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 LakeformationOptInResourceDataDataLocationOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.LakeformationOptInResourceDataDataLocationList = LakeformationOptInResourceDataDataLocationList;
_k = JSII_RTTI_SYMBOL_1;
LakeformationOptInResourceDataDataLocationList[_k] = { fqn: "@cdktf/provider-aws.lakeformationOptIn.LakeformationOptInResourceDataDataLocationList", version: "21.22.1" };
function lakeformationOptInResourceDataDatabaseToTerraform(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 {
catalog_id: cdktf.stringToTerraform(struct.catalogId),
name: cdktf.stringToTerraform(struct.name),
};
}
function lakeformationOptInResourceDataDatabaseToHclTerraform(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 = {
catalog_id: {
value: cdktf.stringToHclTerraform(struct.catalogId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
name: {
value: cdktf.stringToHclTerraform(struct.name),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class LakeformationOptInResourceDataDatabaseOutputReference 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._catalogId !== undefined) {
hasAnyValues = true;
internalValueResult.catalogId = this._catalogId;
}
if (this._name !== undefined) {
hasAnyValues = true;
internalValueResult.name = this._name;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._catalogId = undefined;
this._name = 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._catalogId = value.catalogId;
this._name = value.name;
}
}
get catalogId() {
return this.getStringAttribute('catalog_id');
}
set catalogId(value) {
this._catalogId = value;
}
resetCatalogId() {
this._catalogId = undefined;
}
// Temporarily expose input value. Use with caution.
get catalogIdInput() {
return this._catalogId;
}
get name() {
return this.getStringAttribute('name');
}
set name(value) {
this._name = value;
}
// Temporarily expose input value. Use with caution.
get nameInput() {
return this._name;
}
}
exports.LakeformationOptInResourceDataDatabaseOutputReference = LakeformationOptInResourceDataDatabaseOutputReference;
_l = JSII_RTTI_SYMBOL_1;
LakeformationOptInResourceDataDatabaseOutputReference[_l] = { fqn: "@cdktf/provider-aws.lakeformationOptIn.LakeformationOptInResourceDataDatabaseOutputReference", version: "21.22.1" };
class LakeformationOptInResourceDataDatabaseList 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 LakeformationOptInResourceDataDatabaseOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.LakeformationOptInResourceDataDatabaseList = LakeformationOptInResourceDataDatabaseList;
_m = JSII_RTTI_SYMBOL_1;
LakeformationOptInResourceDataDatabaseList[_m] = { fqn: "@cdktf/provider-aws.lakeformationOptIn.LakeformationOptInResourceDataDatabaseList", version: "21.22.1" };
function lakeformationOptInResourceDataLfTagToTerraform(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 {
catalog_id: cdktf.stringToTerraform(struct.catalogId),
key: cdktf.stringToTerraform(struct.key),
value: cdktf.stringToTerraform(struct.value),
};
}
function lakeformationOptInResourceDataLfTagToHclTerraform(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 = {
catalog_id: {
value: cdktf.stringToHclTerraform(struct.catalogId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
key: {
value: cdktf.stringToHclTerraform(struct.key),
isBlock: false,
type: "simple",
storageClassType: "string",
},
value: {
value: cdktf.stringToHclTerraform(struct.value),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class LakeformationOptInResourceDataLfTagOutputReference 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._catalogId !== undefined) {
hasAnyValues = true;
internalValueResult.catalogId = this._catalogId;
}
if (this._key !== undefined) {
hasAnyValues = true;
internalValueResult.key = this._key;
}
if (this._value !== undefined) {
hasAnyValues = true;
internalValueResult.value = this._value;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._catalogId = undefined;
this._key = undefined;
this._value = 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._catalogId = value.catalogId;
this._key = value.key;
this._value = value.value;
}
}
get catalogId() {
return this.getStringAttribute('catalog_id');
}
set catalogId(value) {
this._catalogId = value;
}
resetCatalogId() {
this._catalogId = undefined;
}
// Temporarily expose input value. Use with caution.
get catalogIdInput() {
return this._catalogId;
}
get key() {
return this.getStringAttribute('key');
}
set key(value) {
this._key = value;
}
// Temporarily expose input value. Use with caution.
get keyInput() {
return this._key;
}
get value() {
return this.getStringAttribute('value');
}
set value(value) {
this._value = value;
}
// Temporarily expose input value. Use with caution.
get valueInput() {
return this._value;
}
}
exports.LakeformationOptInResourceDataLfTagOutputReference = LakeformationOptInResourceDataLfTagOutputReference;
_o = JSII_RTTI_SYMBOL_1;
LakeformationOptInResourceDataLfTagOutputReference[_o] = { fqn: "@cdktf/provider-aws.lakeformationOptIn.LakeformationOptInResourceDataLfTagOutputReference", version: "21.22.1" };
class LakeformationOptInResourceDataLfTagList 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 LakeformationOptInResourceDataLfTagOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.LakeformationOptInResourceDataLfTagList = LakeformationOptInResourceDataLfTagList;
_p = JSII_RTTI_SYMBOL_1;
LakeformationOptInResourceDataLfTagList[_p] = { fqn: "@cdktf/provider-aws.lakeformationOptIn.LakeformationOptInResourceDataLfTagList", version: "21.22.1" };
function lakeformationOptInResourceDataLfTagExpressionToTerraform(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 {
catalog_id: cdktf.stringToTerraform(struct.catalogId),
name: cdktf.stringToTerraform(struct.name),
};
}
function lakeformationOptInResourceDataLfTagExpressionToHclTerraform(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 = {
catalog_id: {
value: cdktf.stringToHclTerraform(struct.catalogId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
name: {
value: cdktf.stringToHclTerraform(struct.name),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class LakeformationOptInResourceDataLfTagExpressionOutputReference 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._catalogId !== undefined) {
hasAnyValues = true;
internalValueResult.catalogId = this._catalogId;
}
if (this._name !== undefined) {
hasAnyValues = true;
internalValueResult.name = this._name;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._catalogId = undefined;
this._name = 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._catalogId = value.catalogId;
this._name = value.name;
}
}
get catalogId() {
return this.getStringAttribute('catalog_id');
}
set catalogId(value) {
this._catalogId = value;
}
resetCatalogId() {
this._catalogId = undefined;
}
// Temporarily expose input value. Use with caution.
get catalogIdInput() {
return this._catalogId;
}
get name() {
return this.getStringAttribute('name');
}
set name(value) {
this._name = value;
}
// Temporarily expose input value. Use with caution.
get nameInput() {
return this._name;
}
}
exports.LakeformationOptInResourceDataLfTagExpressionOutputReference = LakeformationOptInResourceDataLfTagExpressionOutputReference;
_q = JSII_RTTI_SYMBOL_1;
LakeformationOptInResourceDataLfTagExpressionOutputReference[_q] = { fqn: "@cdktf/provider-aws.lakeformationOptIn.LakeformationOptInResourceDataLfTagExpressionOutputReference", version: "21.22.1" };
class LakeformationOptInResourceDataLfTagExpressionList 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 LakeformationOptInResourceDataLfTagExpressionOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.LakeformationOptInResourceDataLfTagExpressionList = LakeformationOptInResourceDataLfTagExpressionList;
_r = JSII_RTTI_SYMBOL_1;
LakeformationOptInResourceDataLfTagExpressionList[_r] = { fqn: "@cdktf/provider-aws.lakeformationOptIn.LakeformationOptInResourceDataLfTagExpressionList", version: "21.22.1" };
function lakeformationOptInResourceDataLfTagPolicyToTerraform(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 {
catalog_id: cdktf.stringToTerraform(struct.catalogId),
expression: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.expression),
expression_name: cdktf.stringToTerraform(struct.expressionName),
resource_type: cdktf.stringToTerraform(struct.resourceType),
};
}
function lakeformationOptInResourceDataLfTagPolicyToHclTerraform(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 = {
catalog_id: {
value: cdktf.stringToHclTerraform(struct.catalogId),
isBlock: false,
type: "simple",
storageClassType: "string",
},
expression: {
value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.expression),
isBlock: false,
type: "list",
storageClassType: "stringList",
},
expression_name: {
value: cdktf.stringToHclTerraform(struct.expressionName),
isBlock: false,
type: "simple",
storageClassType: "string",
},
resource_type: {
value: cdktf.stringToHclTerraform(struct.resourceType),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class LakeformationOptInResourceDataLfTagPolicyOutputReference 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
* @