// generated from terraform resource schema
import * as cdktf from 'cdktf';
/**
* Represents a {@link https://www.terraform.io/docs/providers/aws/r/proxy_protocol_policy aws_proxy_protocol_policy}
*/
export class ProxyProtocolPolicy extends cdktf.TerraformResource {
    // =================
    // STATIC PROPERTIES
    // =================
    static tfResourceType = "aws_proxy_protocol_policy";
    // ===========
    // INITIALIZER
    // ===========
    /**
    * Create a new {@link https://www.terraform.io/docs/providers/aws/r/proxy_protocol_policy aws_proxy_protocol_policy} 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 ProxyProtocolPolicyConfig
    */
    constructor(scope, id, config) {
        super(scope, id, {
            terraformResourceType: 'aws_proxy_protocol_policy',
            terraformGeneratorMetadata: {
                providerName: 'aws'
            },
            provider: config.provider,
            dependsOn: config.dependsOn,
            count: config.count,
            lifecycle: config.lifecycle
        });
        this._instancePorts = config.instancePorts;
        this._loadBalancer = config.loadBalancer;
    }
    // ==========
    // ATTRIBUTES
    // ==========
    // id - computed: true, optional: true, required: false
    get id() {
        return this.getStringAttribute('id');
    }
    // instance_ports - computed: false, optional: false, required: true
    _instancePorts;
    get instancePorts() {
        return cdktf.Fn.tolist(this.getListAttribute('instance_ports'));
    }
    set instancePorts(value) {
        this._instancePorts = value;
    }
    // Temporarily expose input value. Use with caution.
    get instancePortsInput() {
        return this._instancePorts;
    }
    // load_balancer - computed: false, optional: false, required: true
    _loadBalancer;
    get loadBalancer() {
        return this.getStringAttribute('load_balancer');
    }
    set loadBalancer(value) {
        this._loadBalancer = value;
    }
    // Temporarily expose input value. Use with caution.
    get loadBalancerInput() {
        return this._loadBalancer;
    }
    // =========
    // SYNTHESIS
    // =========
    synthesizeAttributes() {
        return {
            instance_ports: cdktf.listMapper(cdktf.stringToTerraform)(this._instancePorts),
            load_balancer: cdktf.stringToTerraform(this._loadBalancer),
        };
    }
}
//# sourceMappingURL=proxy-protocol-policy.js.map