// generated from terraform resource schema
import * as cdktf from 'cdktf';
/**
* Represents a {@link https://www.terraform.io/docs/providers/aws/r/ec2_traffic_mirror_session aws_ec2_traffic_mirror_session}
*/
export class Ec2TrafficMirrorSession extends cdktf.TerraformResource {
    // =================
    // STATIC PROPERTIES
    // =================
    static tfResourceType = "aws_ec2_traffic_mirror_session";
    // ===========
    // INITIALIZER
    // ===========
    /**
    * Create a new {@link https://www.terraform.io/docs/providers/aws/r/ec2_traffic_mirror_session aws_ec2_traffic_mirror_session} 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 Ec2TrafficMirrorSessionConfig
    */
    constructor(scope, id, config) {
        super(scope, id, {
            terraformResourceType: 'aws_ec2_traffic_mirror_session',
            terraformGeneratorMetadata: {
                providerName: 'aws'
            },
            provider: config.provider,
            dependsOn: config.dependsOn,
            count: config.count,
            lifecycle: config.lifecycle
        });
        this._description = config.description;
        this._networkInterfaceId = config.networkInterfaceId;
        this._packetLength = config.packetLength;
        this._sessionNumber = config.sessionNumber;
        this._tags = config.tags;
        this._tagsAll = config.tagsAll;
        this._trafficMirrorFilterId = config.trafficMirrorFilterId;
        this._trafficMirrorTargetId = config.trafficMirrorTargetId;
        this._virtualNetworkId = config.virtualNetworkId;
    }
    // ==========
    // ATTRIBUTES
    // ==========
    // arn - computed: true, optional: false, required: false
    get arn() {
        return this.getStringAttribute('arn');
    }
    // description - computed: false, optional: true, required: false
    _description;
    get description() {
        return this.getStringAttribute('description');
    }
    set description(value) {
        this._description = value;
    }
    resetDescription() {
        this._description = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get descriptionInput() {
        return this._description;
    }
    // id - computed: true, optional: true, required: false
    get id() {
        return this.getStringAttribute('id');
    }
    // network_interface_id - computed: false, optional: false, required: true
    _networkInterfaceId;
    get networkInterfaceId() {
        return this.getStringAttribute('network_interface_id');
    }
    set networkInterfaceId(value) {
        this._networkInterfaceId = value;
    }
    // Temporarily expose input value. Use with caution.
    get networkInterfaceIdInput() {
        return this._networkInterfaceId;
    }
    // owner_id - computed: true, optional: false, required: false
    get ownerId() {
        return this.getStringAttribute('owner_id');
    }
    // packet_length - computed: false, optional: true, required: false
    _packetLength;
    get packetLength() {
        return this.getNumberAttribute('packet_length');
    }
    set packetLength(value) {
        this._packetLength = value;
    }
    resetPacketLength() {
        this._packetLength = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get packetLengthInput() {
        return this._packetLength;
    }
    // session_number - computed: false, optional: false, required: true
    _sessionNumber;
    get sessionNumber() {
        return this.getNumberAttribute('session_number');
    }
    set sessionNumber(value) {
        this._sessionNumber = value;
    }
    // Temporarily expose input value. Use with caution.
    get sessionNumberInput() {
        return this._sessionNumber;
    }
    // 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;
    }
    // traffic_mirror_filter_id - computed: false, optional: false, required: true
    _trafficMirrorFilterId;
    get trafficMirrorFilterId() {
        return this.getStringAttribute('traffic_mirror_filter_id');
    }
    set trafficMirrorFilterId(value) {
        this._trafficMirrorFilterId = value;
    }
    // Temporarily expose input value. Use with caution.
    get trafficMirrorFilterIdInput() {
        return this._trafficMirrorFilterId;
    }
    // traffic_mirror_target_id - computed: false, optional: false, required: true
    _trafficMirrorTargetId;
    get trafficMirrorTargetId() {
        return this.getStringAttribute('traffic_mirror_target_id');
    }
    set trafficMirrorTargetId(value) {
        this._trafficMirrorTargetId = value;
    }
    // Temporarily expose input value. Use with caution.
    get trafficMirrorTargetIdInput() {
        return this._trafficMirrorTargetId;
    }
    // virtual_network_id - computed: true, optional: true, required: false
    _virtualNetworkId;
    get virtualNetworkId() {
        return this.getNumberAttribute('virtual_network_id');
    }
    set virtualNetworkId(value) {
        this._virtualNetworkId = value;
    }
    resetVirtualNetworkId() {
        this._virtualNetworkId = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get virtualNetworkIdInput() {
        return this._virtualNetworkId;
    }
    // =========
    // SYNTHESIS
    // =========
    synthesizeAttributes() {
        return {
            description: cdktf.stringToTerraform(this._description),
            network_interface_id: cdktf.stringToTerraform(this._networkInterfaceId),
            packet_length: cdktf.numberToTerraform(this._packetLength),
            session_number: cdktf.numberToTerraform(this._sessionNumber),
            tags: cdktf.hashMapper(cdktf.stringToTerraform)(this._tags),
            tags_all: cdktf.hashMapper(cdktf.stringToTerraform)(this._tagsAll),
            traffic_mirror_filter_id: cdktf.stringToTerraform(this._trafficMirrorFilterId),
            traffic_mirror_target_id: cdktf.stringToTerraform(this._trafficMirrorTargetId),
            virtual_network_id: cdktf.numberToTerraform(this._virtualNetworkId),
        };
    }
}
//# sourceMappingURL=ec2-traffic-mirror-session.js.map