"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.CloudwatchEventConnection = exports.AuthParameters = exports.InvocationHttpParameters = exports.Oauth = exports.ClientParameters = exports.OauthHttpParameters = exports.QueryString = exports.Header = exports.Body = exports.Basic = exports.ApiKey = void 0;
const core = __importStar(require("@terrascript/core"));
class ApiKey extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], ApiKey.prototype, "key", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], ApiKey.prototype, "value", void 0);
exports.ApiKey = ApiKey;
class Basic extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Basic.prototype, "password", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Basic.prototype, "username", void 0);
exports.Basic = Basic;
class Body extends core.Schema {
}
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], Body.prototype, "isValueSecret", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Body.prototype, "key", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Body.prototype, "value", void 0);
exports.Body = Body;
class Header extends core.Schema {
}
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], Header.prototype, "isValueSecret", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Header.prototype, "key", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Header.prototype, "value", void 0);
exports.Header = Header;
class QueryString extends core.Schema {
}
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], QueryString.prototype, "isValueSecret", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], QueryString.prototype, "key", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], QueryString.prototype, "value", void 0);
exports.QueryString = QueryString;
class OauthHttpParameters extends core.Schema {
}
__decorate([
    core.attr(Body, { kind: "array" }),
    __metadata("design:type", Object)
], OauthHttpParameters.prototype, "body", void 0);
__decorate([
    core.attr(Header, { kind: "array" }),
    __metadata("design:type", Object)
], OauthHttpParameters.prototype, "header", void 0);
__decorate([
    core.attr(QueryString, { kind: "array" }),
    __metadata("design:type", Object)
], OauthHttpParameters.prototype, "queryString", void 0);
exports.OauthHttpParameters = OauthHttpParameters;
class ClientParameters extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], ClientParameters.prototype, "clientId", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], ClientParameters.prototype, "clientSecret", void 0);
exports.ClientParameters = ClientParameters;
class Oauth extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Oauth.prototype, "authorizationEndpoint", void 0);
__decorate([
    core.attr(ClientParameters),
    __metadata("design:type", ClientParameters)
], Oauth.prototype, "clientParameters", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Oauth.prototype, "httpMethod", void 0);
__decorate([
    core.attr(OauthHttpParameters),
    __metadata("design:type", OauthHttpParameters)
], Oauth.prototype, "oauthHttpParameters", void 0);
exports.Oauth = Oauth;
class InvocationHttpParameters extends core.Schema {
}
__decorate([
    core.attr(Body, { kind: "array" }),
    __metadata("design:type", Object)
], InvocationHttpParameters.prototype, "body", void 0);
__decorate([
    core.attr(Header, { kind: "array" }),
    __metadata("design:type", Object)
], InvocationHttpParameters.prototype, "header", void 0);
__decorate([
    core.attr(QueryString, { kind: "array" }),
    __metadata("design:type", Object)
], InvocationHttpParameters.prototype, "queryString", void 0);
exports.InvocationHttpParameters = InvocationHttpParameters;
class AuthParameters extends core.Schema {
}
__decorate([
    core.attr(ApiKey),
    __metadata("design:type", ApiKey)
], AuthParameters.prototype, "apiKey", void 0);
__decorate([
    core.attr(Basic),
    __metadata("design:type", Basic)
], AuthParameters.prototype, "basic", void 0);
__decorate([
    core.attr(InvocationHttpParameters),
    __metadata("design:type", InvocationHttpParameters)
], AuthParameters.prototype, "invocationHttpParameters", void 0);
__decorate([
    core.attr(Oauth),
    __metadata("design:type", Oauth)
], AuthParameters.prototype, "oauth", void 0);
exports.AuthParameters = AuthParameters;
class CloudwatchEventConnection extends core.Resource {
    constructor(name, args) {
        super(name, "aws_cloudwatch_event_connection", args);
    }
    getNamespace() {
        return "aws_eventbridge";
    }
}
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], CloudwatchEventConnection.prototype, "arn", void 0);
__decorate([
    core.attr(AuthParameters),
    __metadata("design:type", AuthParameters)
], CloudwatchEventConnection.prototype, "authParameters", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], CloudwatchEventConnection.prototype, "authorizationType", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], CloudwatchEventConnection.prototype, "description", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], CloudwatchEventConnection.prototype, "id", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], CloudwatchEventConnection.prototype, "name", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], CloudwatchEventConnection.prototype, "secretArn", void 0);
exports.CloudwatchEventConnection = CloudwatchEventConnection;
//# sourceMappingURL=cloudwatch_event_connection.js.map