// generated from terraform resource schema
import * as cdktf from 'cdktf';
export function loadBalancerPolicyPolicyAttributeToTerraform(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 {
        name: cdktf.stringToTerraform(struct.name),
        value: cdktf.stringToTerraform(struct.value),
    };
}
/**
* Represents a {@link https://www.terraform.io/docs/providers/aws/r/load_balancer_policy aws_load_balancer_policy}
*/
export class LoadBalancerPolicy extends cdktf.TerraformResource {
    // =================
    // STATIC PROPERTIES
    // =================
    static tfResourceType = "aws_load_balancer_policy";
    // ===========
    // INITIALIZER
    // ===========
    /**
    * Create a new {@link https://www.terraform.io/docs/providers/aws/r/load_balancer_policy aws_load_balancer_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 LoadBalancerPolicyConfig
    */
    constructor(scope, id, config) {
        super(scope, id, {
            terraformResourceType: 'aws_load_balancer_policy',
            terraformGeneratorMetadata: {
                providerName: 'aws'
            },
            provider: config.provider,
            dependsOn: config.dependsOn,
            count: config.count,
            lifecycle: config.lifecycle
        });
        this._loadBalancerName = config.loadBalancerName;
        this._policyName = config.policyName;
        this._policyTypeName = config.policyTypeName;
        this._policyAttribute = config.policyAttribute;
    }
    // ==========
    // ATTRIBUTES
    // ==========
    // id - computed: true, optional: true, required: false
    get id() {
        return this.getStringAttribute('id');
    }
    // load_balancer_name - computed: false, optional: false, required: true
    _loadBalancerName;
    get loadBalancerName() {
        return this.getStringAttribute('load_balancer_name');
    }
    set loadBalancerName(value) {
        this._loadBalancerName = value;
    }
    // Temporarily expose input value. Use with caution.
    get loadBalancerNameInput() {
        return this._loadBalancerName;
    }
    // policy_name - computed: false, optional: false, required: true
    _policyName;
    get policyName() {
        return this.getStringAttribute('policy_name');
    }
    set policyName(value) {
        this._policyName = value;
    }
    // Temporarily expose input value. Use with caution.
    get policyNameInput() {
        return this._policyName;
    }
    // policy_type_name - computed: false, optional: false, required: true
    _policyTypeName;
    get policyTypeName() {
        return this.getStringAttribute('policy_type_name');
    }
    set policyTypeName(value) {
        this._policyTypeName = value;
    }
    // Temporarily expose input value. Use with caution.
    get policyTypeNameInput() {
        return this._policyTypeName;
    }
    // policy_attribute - computed: false, optional: true, required: false
    _policyAttribute;
    get policyAttribute() {
        // Getting the computed value is not yet implemented
        return cdktf.Token.asAny(cdktf.Fn.tolist(this.interpolationForAttribute('policy_attribute')));
    }
    set policyAttribute(value) {
        this._policyAttribute = value;
    }
    resetPolicyAttribute() {
        this._policyAttribute = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get policyAttributeInput() {
        return this._policyAttribute;
    }
    // =========
    // SYNTHESIS
    // =========
    synthesizeAttributes() {
        return {
            load_balancer_name: cdktf.stringToTerraform(this._loadBalancerName),
            policy_name: cdktf.stringToTerraform(this._policyName),
            policy_type_name: cdktf.stringToTerraform(this._policyTypeName),
            policy_attribute: cdktf.listMapper(loadBalancerPolicyPolicyAttributeToTerraform)(this._policyAttribute),
        };
    }
}
//# sourceMappingURL=load-balancer-policy.js.map