// generated from terraform resource schema
import * as cdktf from 'cdktf';
/**
* Represents a {@link https://www.terraform.io/docs/providers/aws/r/dx_gateway_association_proposal aws_dx_gateway_association_proposal}
*/
export class DxGatewayAssociationProposal extends cdktf.TerraformResource {
    // =================
    // STATIC PROPERTIES
    // =================
    static tfResourceType = "aws_dx_gateway_association_proposal";
    // ===========
    // INITIALIZER
    // ===========
    /**
    * Create a new {@link https://www.terraform.io/docs/providers/aws/r/dx_gateway_association_proposal aws_dx_gateway_association_proposal} 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 DxGatewayAssociationProposalConfig
    */
    constructor(scope, id, config) {
        super(scope, id, {
            terraformResourceType: 'aws_dx_gateway_association_proposal',
            terraformGeneratorMetadata: {
                providerName: 'aws'
            },
            provider: config.provider,
            dependsOn: config.dependsOn,
            count: config.count,
            lifecycle: config.lifecycle
        });
        this._allowedPrefixes = config.allowedPrefixes;
        this._associatedGatewayId = config.associatedGatewayId;
        this._dxGatewayId = config.dxGatewayId;
        this._dxGatewayOwnerAccountId = config.dxGatewayOwnerAccountId;
    }
    // ==========
    // ATTRIBUTES
    // ==========
    // allowed_prefixes - computed: true, optional: true, required: false
    _allowedPrefixes;
    get allowedPrefixes() {
        return cdktf.Fn.tolist(this.getListAttribute('allowed_prefixes'));
    }
    set allowedPrefixes(value) {
        this._allowedPrefixes = value;
    }
    resetAllowedPrefixes() {
        this._allowedPrefixes = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get allowedPrefixesInput() {
        return this._allowedPrefixes;
    }
    // associated_gateway_id - computed: false, optional: false, required: true
    _associatedGatewayId;
    get associatedGatewayId() {
        return this.getStringAttribute('associated_gateway_id');
    }
    set associatedGatewayId(value) {
        this._associatedGatewayId = value;
    }
    // Temporarily expose input value. Use with caution.
    get associatedGatewayIdInput() {
        return this._associatedGatewayId;
    }
    // associated_gateway_owner_account_id - computed: true, optional: false, required: false
    get associatedGatewayOwnerAccountId() {
        return this.getStringAttribute('associated_gateway_owner_account_id');
    }
    // associated_gateway_type - computed: true, optional: false, required: false
    get associatedGatewayType() {
        return this.getStringAttribute('associated_gateway_type');
    }
    // dx_gateway_id - computed: false, optional: false, required: true
    _dxGatewayId;
    get dxGatewayId() {
        return this.getStringAttribute('dx_gateway_id');
    }
    set dxGatewayId(value) {
        this._dxGatewayId = value;
    }
    // Temporarily expose input value. Use with caution.
    get dxGatewayIdInput() {
        return this._dxGatewayId;
    }
    // dx_gateway_owner_account_id - computed: false, optional: false, required: true
    _dxGatewayOwnerAccountId;
    get dxGatewayOwnerAccountId() {
        return this.getStringAttribute('dx_gateway_owner_account_id');
    }
    set dxGatewayOwnerAccountId(value) {
        this._dxGatewayOwnerAccountId = value;
    }
    // Temporarily expose input value. Use with caution.
    get dxGatewayOwnerAccountIdInput() {
        return this._dxGatewayOwnerAccountId;
    }
    // id - computed: true, optional: true, required: false
    get id() {
        return this.getStringAttribute('id');
    }
    // =========
    // SYNTHESIS
    // =========
    synthesizeAttributes() {
        return {
            allowed_prefixes: cdktf.listMapper(cdktf.stringToTerraform)(this._allowedPrefixes),
            associated_gateway_id: cdktf.stringToTerraform(this._associatedGatewayId),
            dx_gateway_id: cdktf.stringToTerraform(this._dxGatewayId),
            dx_gateway_owner_account_id: cdktf.stringToTerraform(this._dxGatewayOwnerAccountId),
        };
    }
}
//# sourceMappingURL=dx-gateway-association-proposal.js.map