// generated from terraform resource schema
import * as cdktf from 'cdktf';
export class EfsFileSystemSizeInBytes extends cdktf.ComplexComputedList {
    // value - computed: true, optional: false, required: false
    get value() {
        return this.getNumberAttribute('value');
    }
    // value_in_ia - computed: true, optional: false, required: false
    get valueInIa() {
        return this.getNumberAttribute('value_in_ia');
    }
    // value_in_standard - computed: true, optional: false, required: false
    get valueInStandard() {
        return this.getNumberAttribute('value_in_standard');
    }
}
export function efsFileSystemLifecyclePolicyToTerraform(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 {
        transition_to_ia: cdktf.stringToTerraform(struct.transitionToIa),
        transition_to_primary_storage_class: cdktf.stringToTerraform(struct.transitionToPrimaryStorageClass),
    };
}
/**
* Represents a {@link https://www.terraform.io/docs/providers/aws/r/efs_file_system aws_efs_file_system}
*/
export class EfsFileSystem extends cdktf.TerraformResource {
    // =================
    // STATIC PROPERTIES
    // =================
    static tfResourceType = "aws_efs_file_system";
    // ===========
    // INITIALIZER
    // ===========
    /**
    * Create a new {@link https://www.terraform.io/docs/providers/aws/r/efs_file_system aws_efs_file_system} 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 EfsFileSystemConfig = {}
    */
    constructor(scope, id, config = {}) {
        super(scope, id, {
            terraformResourceType: 'aws_efs_file_system',
            terraformGeneratorMetadata: {
                providerName: 'aws'
            },
            provider: config.provider,
            dependsOn: config.dependsOn,
            count: config.count,
            lifecycle: config.lifecycle
        });
        this._availabilityZoneName = config.availabilityZoneName;
        this._creationToken = config.creationToken;
        this._encrypted = config.encrypted;
        this._kmsKeyId = config.kmsKeyId;
        this._performanceMode = config.performanceMode;
        this._provisionedThroughputInMibps = config.provisionedThroughputInMibps;
        this._tags = config.tags;
        this._tagsAll = config.tagsAll;
        this._throughputMode = config.throughputMode;
        this._lifecyclePolicy = config.lifecyclePolicy;
    }
    // ==========
    // ATTRIBUTES
    // ==========
    // arn - computed: true, optional: false, required: false
    get arn() {
        return this.getStringAttribute('arn');
    }
    // availability_zone_id - computed: true, optional: false, required: false
    get availabilityZoneId() {
        return this.getStringAttribute('availability_zone_id');
    }
    // availability_zone_name - computed: true, optional: true, required: false
    _availabilityZoneName;
    get availabilityZoneName() {
        return this.getStringAttribute('availability_zone_name');
    }
    set availabilityZoneName(value) {
        this._availabilityZoneName = value;
    }
    resetAvailabilityZoneName() {
        this._availabilityZoneName = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get availabilityZoneNameInput() {
        return this._availabilityZoneName;
    }
    // creation_token - computed: true, optional: true, required: false
    _creationToken;
    get creationToken() {
        return this.getStringAttribute('creation_token');
    }
    set creationToken(value) {
        this._creationToken = value;
    }
    resetCreationToken() {
        this._creationToken = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get creationTokenInput() {
        return this._creationToken;
    }
    // dns_name - computed: true, optional: false, required: false
    get dnsName() {
        return this.getStringAttribute('dns_name');
    }
    // encrypted - computed: true, optional: true, required: false
    _encrypted;
    get encrypted() {
        return this.getBooleanAttribute('encrypted');
    }
    set encrypted(value) {
        this._encrypted = value;
    }
    resetEncrypted() {
        this._encrypted = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get encryptedInput() {
        return this._encrypted;
    }
    // id - computed: true, optional: true, required: false
    get id() {
        return this.getStringAttribute('id');
    }
    // kms_key_id - computed: true, optional: true, required: false
    _kmsKeyId;
    get kmsKeyId() {
        return this.getStringAttribute('kms_key_id');
    }
    set kmsKeyId(value) {
        this._kmsKeyId = value;
    }
    resetKmsKeyId() {
        this._kmsKeyId = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get kmsKeyIdInput() {
        return this._kmsKeyId;
    }
    // number_of_mount_targets - computed: true, optional: false, required: false
    get numberOfMountTargets() {
        return this.getNumberAttribute('number_of_mount_targets');
    }
    // owner_id - computed: true, optional: false, required: false
    get ownerId() {
        return this.getStringAttribute('owner_id');
    }
    // performance_mode - computed: true, optional: true, required: false
    _performanceMode;
    get performanceMode() {
        return this.getStringAttribute('performance_mode');
    }
    set performanceMode(value) {
        this._performanceMode = value;
    }
    resetPerformanceMode() {
        this._performanceMode = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get performanceModeInput() {
        return this._performanceMode;
    }
    // provisioned_throughput_in_mibps - computed: false, optional: true, required: false
    _provisionedThroughputInMibps;
    get provisionedThroughputInMibps() {
        return this.getNumberAttribute('provisioned_throughput_in_mibps');
    }
    set provisionedThroughputInMibps(value) {
        this._provisionedThroughputInMibps = value;
    }
    resetProvisionedThroughputInMibps() {
        this._provisionedThroughputInMibps = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get provisionedThroughputInMibpsInput() {
        return this._provisionedThroughputInMibps;
    }
    // size_in_bytes - computed: true, optional: false, required: false
    sizeInBytes(index) {
        return new EfsFileSystemSizeInBytes(this, 'size_in_bytes', index, false);
    }
    // tags - computed: false, optional: true, required: false
    _tags;
    get tags() {
        return this.getStringMapAttribute('tags');
    }
    set tags(value) {
        this._tags = value;
    }
    resetTags() {
        this._tags = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get tagsInput() {
        return this._tags;
    }
    // tags_all - computed: true, optional: true, required: false
    _tagsAll;
    get tagsAll() {
        return this.getStringMapAttribute('tags_all');
    }
    set tagsAll(value) {
        this._tagsAll = value;
    }
    resetTagsAll() {
        this._tagsAll = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get tagsAllInput() {
        return this._tagsAll;
    }
    // throughput_mode - computed: false, optional: true, required: false
    _throughputMode;
    get throughputMode() {
        return this.getStringAttribute('throughput_mode');
    }
    set throughputMode(value) {
        this._throughputMode = value;
    }
    resetThroughputMode() {
        this._throughputMode = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get throughputModeInput() {
        return this._throughputMode;
    }
    // lifecycle_policy - computed: false, optional: true, required: false
    _lifecyclePolicy;
    get lifecyclePolicy() {
        // Getting the computed value is not yet implemented
        return this.interpolationForAttribute('lifecycle_policy');
    }
    set lifecyclePolicy(value) {
        this._lifecyclePolicy = value;
    }
    resetLifecyclePolicy() {
        this._lifecyclePolicy = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get lifecyclePolicyInput() {
        return this._lifecyclePolicy;
    }
    // =========
    // SYNTHESIS
    // =========
    synthesizeAttributes() {
        return {
            availability_zone_name: cdktf.stringToTerraform(this._availabilityZoneName),
            creation_token: cdktf.stringToTerraform(this._creationToken),
            encrypted: cdktf.booleanToTerraform(this._encrypted),
            kms_key_id: cdktf.stringToTerraform(this._kmsKeyId),
            performance_mode: cdktf.stringToTerraform(this._performanceMode),
            provisioned_throughput_in_mibps: cdktf.numberToTerraform(this._provisionedThroughputInMibps),
            tags: cdktf.hashMapper(cdktf.stringToTerraform)(this._tags),
            tags_all: cdktf.hashMapper(cdktf.stringToTerraform)(this._tagsAll),
            throughput_mode: cdktf.stringToTerraform(this._throughputMode),
            lifecycle_policy: cdktf.listMapper(efsFileSystemLifecyclePolicyToTerraform)(this._lifecyclePolicy),
        };
    }
}
//# sourceMappingURL=efs-file-system.js.map