"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.Service = exports.EncryptionConfiguration = exports.ObservabilityConfiguration = exports.NetworkConfiguration = exports.EgressConfiguration = exports.HealthCheckConfiguration = exports.InstanceConfiguration = exports.SourceConfiguration = exports.AuthenticationConfiguration = exports.ImageRepository = exports.ImageConfiguration = exports.CodeRepository = exports.CodeConfiguration = exports.CodeConfigurationValues = exports.SourceCodeVersion = void 0;
const core = __importStar(require("@terrascript/core"));
class SourceCodeVersion extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], SourceCodeVersion.prototype, "type", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], SourceCodeVersion.prototype, "value", void 0);
exports.SourceCodeVersion = SourceCodeVersion;
class CodeConfigurationValues extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], CodeConfigurationValues.prototype, "buildCommand", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], CodeConfigurationValues.prototype, "port", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], CodeConfigurationValues.prototype, "runtime", void 0);
__decorate([
    core.attr(String, { kind: "map" }),
    __metadata("design:type", Object)
], CodeConfigurationValues.prototype, "runtimeEnvironmentVariables", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], CodeConfigurationValues.prototype, "startCommand", void 0);
exports.CodeConfigurationValues = CodeConfigurationValues;
class CodeConfiguration extends core.Schema {
}
__decorate([
    core.attr(CodeConfigurationValues),
    __metadata("design:type", CodeConfigurationValues)
], CodeConfiguration.prototype, "codeConfigurationValues", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], CodeConfiguration.prototype, "configurationSource", void 0);
exports.CodeConfiguration = CodeConfiguration;
class CodeRepository extends core.Schema {
}
__decorate([
    core.attr(CodeConfiguration),
    __metadata("design:type", CodeConfiguration)
], CodeRepository.prototype, "codeConfiguration", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], CodeRepository.prototype, "repositoryUrl", void 0);
__decorate([
    core.attr(SourceCodeVersion),
    __metadata("design:type", SourceCodeVersion)
], CodeRepository.prototype, "sourceCodeVersion", void 0);
exports.CodeRepository = CodeRepository;
class ImageConfiguration extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], ImageConfiguration.prototype, "port", void 0);
__decorate([
    core.attr(String, { kind: "map" }),
    __metadata("design:type", Object)
], ImageConfiguration.prototype, "runtimeEnvironmentVariables", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], ImageConfiguration.prototype, "startCommand", void 0);
exports.ImageConfiguration = ImageConfiguration;
class ImageRepository extends core.Schema {
}
__decorate([
    core.attr(ImageConfiguration),
    __metadata("design:type", ImageConfiguration)
], ImageRepository.prototype, "imageConfiguration", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], ImageRepository.prototype, "imageIdentifier", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], ImageRepository.prototype, "imageRepositoryType", void 0);
exports.ImageRepository = ImageRepository;
class AuthenticationConfiguration extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], AuthenticationConfiguration.prototype, "accessRoleArn", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], AuthenticationConfiguration.prototype, "connectionArn", void 0);
exports.AuthenticationConfiguration = AuthenticationConfiguration;
class SourceConfiguration extends core.Schema {
}
__decorate([
    core.attr(AuthenticationConfiguration),
    __metadata("design:type", AuthenticationConfiguration)
], SourceConfiguration.prototype, "authenticationConfiguration", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], SourceConfiguration.prototype, "autoDeploymentsEnabled", void 0);
__decorate([
    core.attr(CodeRepository),
    __metadata("design:type", CodeRepository)
], SourceConfiguration.prototype, "codeRepository", void 0);
__decorate([
    core.attr(ImageRepository),
    __metadata("design:type", ImageRepository)
], SourceConfiguration.prototype, "imageRepository", void 0);
exports.SourceConfiguration = SourceConfiguration;
class InstanceConfiguration extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], InstanceConfiguration.prototype, "cpu", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], InstanceConfiguration.prototype, "instanceRoleArn", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], InstanceConfiguration.prototype, "memory", void 0);
exports.InstanceConfiguration = InstanceConfiguration;
class HealthCheckConfiguration extends core.Schema {
}
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], HealthCheckConfiguration.prototype, "healthyThreshold", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], HealthCheckConfiguration.prototype, "interval", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], HealthCheckConfiguration.prototype, "path", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], HealthCheckConfiguration.prototype, "protocol", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], HealthCheckConfiguration.prototype, "timeout", void 0);
__decorate([
    core.attr(Number),
    __metadata("design:type", Object)
], HealthCheckConfiguration.prototype, "unhealthyThreshold", void 0);
exports.HealthCheckConfiguration = HealthCheckConfiguration;
class EgressConfiguration extends core.Schema {
}
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], EgressConfiguration.prototype, "egressType", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], EgressConfiguration.prototype, "vpcConnectorArn", void 0);
exports.EgressConfiguration = EgressConfiguration;
class NetworkConfiguration extends core.Schema {
}
__decorate([
    core.attr(EgressConfiguration),
    __metadata("design:type", EgressConfiguration)
], NetworkConfiguration.prototype, "egressConfiguration", void 0);
exports.NetworkConfiguration = NetworkConfiguration;
class ObservabilityConfiguration extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], ObservabilityConfiguration.prototype, "observabilityConfigurationArn", void 0);
__decorate([
    core.attr(Boolean),
    __metadata("design:type", Object)
], ObservabilityConfiguration.prototype, "observabilityEnabled", void 0);
exports.ObservabilityConfiguration = ObservabilityConfiguration;
class EncryptionConfiguration extends core.Schema {
}
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], EncryptionConfiguration.prototype, "kmsKey", void 0);
exports.EncryptionConfiguration = EncryptionConfiguration;
class Service extends core.Resource {
    constructor(name, args) {
        super(name, "aws_apprunner_service", args);
    }
    getNamespace() {
        return "aws_apprunner";
    }
}
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Service.prototype, "arn", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Service.prototype, "autoScalingConfigurationArn", void 0);
__decorate([
    core.attr(EncryptionConfiguration),
    __metadata("design:type", EncryptionConfiguration)
], Service.prototype, "encryptionConfiguration", void 0);
__decorate([
    core.attr(HealthCheckConfiguration, { computed: true }),
    __metadata("design:type", HealthCheckConfiguration)
], Service.prototype, "healthCheckConfiguration", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Service.prototype, "id", void 0);
__decorate([
    core.attr(InstanceConfiguration, { computed: true }),
    __metadata("design:type", InstanceConfiguration)
], Service.prototype, "instanceConfiguration", void 0);
__decorate([
    core.attr(NetworkConfiguration, { computed: true }),
    __metadata("design:type", NetworkConfiguration)
], Service.prototype, "networkConfiguration", void 0);
__decorate([
    core.attr(ObservabilityConfiguration),
    __metadata("design:type", ObservabilityConfiguration)
], Service.prototype, "observabilityConfiguration", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Service.prototype, "serviceId", void 0);
__decorate([
    core.attr(String),
    __metadata("design:type", Object)
], Service.prototype, "serviceName", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Service.prototype, "serviceUrl", void 0);
__decorate([
    core.attr(SourceConfiguration),
    __metadata("design:type", SourceConfiguration)
], Service.prototype, "sourceConfiguration", void 0);
__decorate([
    core.attr(String, { computed: true }),
    __metadata("design:type", Object)
], Service.prototype, "status", void 0);
__decorate([
    core.attr(String, { kind: "map" }),
    __metadata("design:type", Object)
], Service.prototype, "tags", void 0);
__decorate([
    core.attr(String, { computed: true, kind: "map" }),
    __metadata("design:type", Object)
], Service.prototype, "tagsAll", void 0);
exports.Service = Service;
//# sourceMappingURL=service.js.map