"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.GraphqlApi = exports.AdditionalAuthenticationProvider = exports.AdditionalAuthenticationProviderUserPoolConfig = exports.OpenidConnectConfig = exports.LambdaAuthorizerConfig = exports.UserPoolConfig = exports.LogConfig = void 0;
const core = __importStar(require("@terrascript/core"));
class LogConfig extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], LogConfig.prototype, "cloudwatchLogsRoleArn", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], LogConfig.prototype, "excludeVerboseContent", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], LogConfig.prototype, "fieldLogLevel", void 0);
exports.LogConfig = LogConfig;
class UserPoolConfig extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], UserPoolConfig.prototype, "appIdClientRegex", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], UserPoolConfig.prototype, "awsRegion", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], UserPoolConfig.prototype, "defaultAction", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], UserPoolConfig.prototype, "userPoolId", void 0);
exports.UserPoolConfig = UserPoolConfig;
class LambdaAuthorizerConfig extends core.Schema {
}
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], LambdaAuthorizerConfig.prototype, "authorizerResultTtlInSeconds", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], LambdaAuthorizerConfig.prototype, "authorizerUri", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], LambdaAuthorizerConfig.prototype, "identityValidationExpression", void 0);
exports.LambdaAuthorizerConfig = LambdaAuthorizerConfig;
class OpenidConnectConfig extends core.Schema {
}
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], OpenidConnectConfig.prototype, "authTtl", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], OpenidConnectConfig.prototype, "clientId", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], OpenidConnectConfig.prototype, "iatTtl", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], OpenidConnectConfig.prototype, "issuer", void 0);
exports.OpenidConnectConfig = OpenidConnectConfig;
class AdditionalAuthenticationProviderUserPoolConfig extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], AdditionalAuthenticationProviderUserPoolConfig.prototype, "appIdClientRegex", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], AdditionalAuthenticationProviderUserPoolConfig.prototype, "awsRegion", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], AdditionalAuthenticationProviderUserPoolConfig.prototype, "userPoolId", void 0);
exports.AdditionalAuthenticationProviderUserPoolConfig = AdditionalAuthenticationProviderUserPoolConfig;
class AdditionalAuthenticationProvider extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], AdditionalAuthenticationProvider.prototype, "authenticationType", void 0);
__decorate([
    core.attr(LambdaAuthorizerConfig),
    __metadata("design:type", LambdaAuthorizerConfig)
], AdditionalAuthenticationProvider.prototype, "lambdaAuthorizerConfig", void 0);
__decorate([
    core.attr(OpenidConnectConfig),
    __metadata("design:type", OpenidConnectConfig)
], AdditionalAuthenticationProvider.prototype, "openidConnectConfig", void 0);
__decorate([
    core.attr(AdditionalAuthenticationProviderUserPoolConfig),
    __metadata("design:type", AdditionalAuthenticationProviderUserPoolConfig)
], AdditionalAuthenticationProvider.prototype, "userPoolConfig", void 0);
exports.AdditionalAuthenticationProvider = AdditionalAuthenticationProvider;
class GraphqlApi extends core.Resource {
    constructor(name, args) {
        super(name, "aws_appsync_graphql_api", args);
    }
    getNamespace() {
        return "aws_appsync";
    }
}
__decorate([
    core.attr(AdditionalAuthenticationProvider, { kind: "array" }),
    __metadata("design:type", Object)
], GraphqlApi.prototype, "additionalAuthenticationProvider", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], GraphqlApi.prototype, "arn", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], GraphqlApi.prototype, "authenticationType", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], GraphqlApi.prototype, "id", void 0);
__decorate([
    core.attr(LambdaAuthorizerConfig),
    __metadata("design:type", LambdaAuthorizerConfig)
], GraphqlApi.prototype, "lambdaAuthorizerConfig", void 0);
__decorate([
    core.attr(LogConfig),
    __metadata("design:type", LogConfig)
], GraphqlApi.prototype, "logConfig", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], GraphqlApi.prototype, "name", void 0);
__decorate([
    core.attr(OpenidConnectConfig),
    __metadata("design:type", OpenidConnectConfig)
], GraphqlApi.prototype, "openidConnectConfig", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], GraphqlApi.prototype, "schema", void 0);
__decorate([
    core.attr(String, { kind: "map" }),
    __metadata("design:type", Object)
], GraphqlApi.prototype, "tags", void 0);
__decorate([
    core.attr(String, { computed: true, kind: "map" }),
    __metadata("design:type", Object)
], GraphqlApi.prototype, "tagsAll", void 0);
__decorate([
    core.attr(String, { computed: true, kind: "map" }),
    __metadata("design:type", Object)
], GraphqlApi.prototype, "uris", void 0);
__decorate([
    core.attr(UserPoolConfig),
    __metadata("design:type", UserPoolConfig)
], GraphqlApi.prototype, "userPoolConfig", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], GraphqlApi.prototype, "xrayEnabled", void 0);
exports.GraphqlApi = GraphqlApi;
//# sourceMappingURL=graphql_api.js.map