// generated from terraform resource schema
import * as cdktf from 'cdktf';
/**
* Represents a {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_api_destination aws_cloudwatch_event_api_destination}
*/
export class CloudwatchEventApiDestination extends cdktf.TerraformResource {
    // =================
    // STATIC PROPERTIES
    // =================
    static tfResourceType = "aws_cloudwatch_event_api_destination";
    // ===========
    // INITIALIZER
    // ===========
    /**
    * Create a new {@link https://www.terraform.io/docs/providers/aws/r/cloudwatch_event_api_destination aws_cloudwatch_event_api_destination} 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 CloudwatchEventApiDestinationConfig
    */
    constructor(scope, id, config) {
        super(scope, id, {
            terraformResourceType: 'aws_cloudwatch_event_api_destination',
            terraformGeneratorMetadata: {
                providerName: 'aws'
            },
            provider: config.provider,
            dependsOn: config.dependsOn,
            count: config.count,
            lifecycle: config.lifecycle
        });
        this._connectionArn = config.connectionArn;
        this._description = config.description;
        this._httpMethod = config.httpMethod;
        this._invocationEndpoint = config.invocationEndpoint;
        this._invocationRateLimitPerSecond = config.invocationRateLimitPerSecond;
        this._name = config.name;
    }
    // ==========
    // ATTRIBUTES
    // ==========
    // arn - computed: true, optional: false, required: false
    get arn() {
        return this.getStringAttribute('arn');
    }
    // connection_arn - computed: false, optional: false, required: true
    _connectionArn;
    get connectionArn() {
        return this.getStringAttribute('connection_arn');
    }
    set connectionArn(value) {
        this._connectionArn = value;
    }
    // Temporarily expose input value. Use with caution.
    get connectionArnInput() {
        return this._connectionArn;
    }
    // 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;
    }
    // http_method - computed: false, optional: false, required: true
    _httpMethod;
    get httpMethod() {
        return this.getStringAttribute('http_method');
    }
    set httpMethod(value) {
        this._httpMethod = value;
    }
    // Temporarily expose input value. Use with caution.
    get httpMethodInput() {
        return this._httpMethod;
    }
    // id - computed: true, optional: true, required: false
    get id() {
        return this.getStringAttribute('id');
    }
    // invocation_endpoint - computed: false, optional: false, required: true
    _invocationEndpoint;
    get invocationEndpoint() {
        return this.getStringAttribute('invocation_endpoint');
    }
    set invocationEndpoint(value) {
        this._invocationEndpoint = value;
    }
    // Temporarily expose input value. Use with caution.
    get invocationEndpointInput() {
        return this._invocationEndpoint;
    }
    // invocation_rate_limit_per_second - computed: false, optional: true, required: false
    _invocationRateLimitPerSecond;
    get invocationRateLimitPerSecond() {
        return this.getNumberAttribute('invocation_rate_limit_per_second');
    }
    set invocationRateLimitPerSecond(value) {
        this._invocationRateLimitPerSecond = value;
    }
    resetInvocationRateLimitPerSecond() {
        this._invocationRateLimitPerSecond = undefined;
    }
    // Temporarily expose input value. Use with caution.
    get invocationRateLimitPerSecondInput() {
        return this._invocationRateLimitPerSecond;
    }
    // name - computed: false, optional: false, required: true
    _name;
    get name() {
        return this.getStringAttribute('name');
    }
    set name(value) {
        this._name = value;
    }
    // Temporarily expose input value. Use with caution.
    get nameInput() {
        return this._name;
    }
    // =========
    // SYNTHESIS
    // =========
    synthesizeAttributes() {
        return {
            connection_arn: cdktf.stringToTerraform(this._connectionArn),
            description: cdktf.stringToTerraform(this._description),
            http_method: cdktf.stringToTerraform(this._httpMethod),
            invocation_endpoint: cdktf.stringToTerraform(this._invocationEndpoint),
            invocation_rate_limit_per_second: cdktf.numberToTerraform(this._invocationRateLimitPerSecond),
            name: cdktf.stringToTerraform(this._name),
        };
    }
}
//# sourceMappingURL=cloudwatch-event-api-destination.js.map