// generated from terraform resource schema
import * as cdktf from 'cdktf';
export function lakeformationDataLakeSettingsCreateDatabaseDefaultPermissionsToTerraform(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 {
        permissions: cdktf.listMapper(cdktf.stringToTerraform)(struct.permissions),
        principal: cdktf.stringToTerraform(struct.principal),
    };
}
export function lakeformationDataLakeSettingsCreateTableDefaultPermissionsToTerraform(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 {
        permissions: cdktf.listMapper(cdktf.stringToTerraform)(struct.permissions),
        principal: cdktf.stringToTerraform(struct.principal),
    };
}
/**
* Represents a {@link https://www.terraform.io/docs/providers/aws/r/lakeformation_data_lake_settings aws_lakeformation_data_lake_settings}
*/
export class LakeformationDataLakeSettings extends cdktf.TerraformResource {
    // =================
    // STATIC PROPERTIES
    // =================
    static tfResourceType = "aws_lakeformation_data_lake_settings";
    // ===========
    // INITIALIZER
    // ===========
    /**
    * Create a new {@link https://www.terraform.io/docs/providers/aws/r/lakeformation_data_lake_settings aws_lakeformation_data_lake_settings} Resource
    *
    * @param scope The scope in which to define this construct
    * @param id The scoped construct ID. Must be unique amongst siblings in the same scope
    * @param options LakeformationDataLakeSettingsConfig = {}
    */
    constructor(scope, id, config = {}) {
        super(scope, id, {
            terraformResourceType: 'aws_lakeformation_data_lake_settings',
            terraformGeneratorMetadata: {
                providerName: 'aws'
            },
            provider: config.provider,
            dependsOn: config.dependsOn,
            count: config.count,
            lifecycle: config.lifecycle
        });
        this._admins = config.admins;
        this._catalogId = config.catalogId;
        this._trustedResourceOwners = config.trustedResourceOwners;
        this._createDatabaseDefaultPermissions = config.createDatabaseDefaultPermissions;
        this._createTableDefaultPermissions = config.createTableDefaultPermissions;
    }
    // ==========
    // ATTRIBUTES
    // ==========
    // admins - computed: true, optional: true, required: false
    _admins;
    get admins() {
        return cdktf.Fn.tolist(this.getListAttribute('admins'));
    }
    set admins(value) {
        this._admins = value;
    }
    resetAdmins() {
        this._admins = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get adminsInput() {
        return this._admins;
    }
    // catalog_id - computed: false, optional: true, required: false
    _catalogId;
    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;
    }
    // id - computed: true, optional: true, required: false
    get id() {
        return this.getStringAttribute('id');
    }
    // trusted_resource_owners - computed: true, optional: true, required: false
    _trustedResourceOwners;
    get trustedResourceOwners() {
        return this.getListAttribute('trusted_resource_owners');
    }
    set trustedResourceOwners(value) {
        this._trustedResourceOwners = value;
    }
    resetTrustedResourceOwners() {
        this._trustedResourceOwners = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get trustedResourceOwnersInput() {
        return this._trustedResourceOwners;
    }
    // create_database_default_permissions - computed: false, optional: true, required: false
    _createDatabaseDefaultPermissions;
    get createDatabaseDefaultPermissions() {
        // Getting the computed value is not yet implemented
        return this.interpolationForAttribute('create_database_default_permissions');
    }
    set createDatabaseDefaultPermissions(value) {
        this._createDatabaseDefaultPermissions = value;
    }
    resetCreateDatabaseDefaultPermissions() {
        this._createDatabaseDefaultPermissions = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get createDatabaseDefaultPermissionsInput() {
        return this._createDatabaseDefaultPermissions;
    }
    // create_table_default_permissions - computed: false, optional: true, required: false
    _createTableDefaultPermissions;
    get createTableDefaultPermissions() {
        // Getting the computed value is not yet implemented
        return this.interpolationForAttribute('create_table_default_permissions');
    }
    set createTableDefaultPermissions(value) {
        this._createTableDefaultPermissions = value;
    }
    resetCreateTableDefaultPermissions() {
        this._createTableDefaultPermissions = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get createTableDefaultPermissionsInput() {
        return this._createTableDefaultPermissions;
    }
    // =========
    // SYNTHESIS
    // =========
    synthesizeAttributes() {
        return {
            admins: cdktf.listMapper(cdktf.stringToTerraform)(this._admins),
            catalog_id: cdktf.stringToTerraform(this._catalogId),
            trusted_resource_owners: cdktf.listMapper(cdktf.stringToTerraform)(this._trustedResourceOwners),
            create_database_default_permissions: cdktf.listMapper(lakeformationDataLakeSettingsCreateDatabaseDefaultPermissionsToTerraform)(this._createDatabaseDefaultPermissions),
            create_table_default_permissions: cdktf.listMapper(lakeformationDataLakeSettingsCreateTableDefaultPermissionsToTerraform)(this._createTableDefaultPermissions),
        };
    }
}
//# sourceMappingURL=lakeformation-data-lake-settings.js.map