@digitraffic/common 2024.1.19-1 → 2024.1.23-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/aws/infra/api/{handler-factory.d.ts → handler-factory.d.mts} +2 -2
- package/dist/aws/infra/api/{handler-factory.js → handler-factory.mjs} +2 -2
- package/dist/aws/infra/api/{integration.d.ts → integration.d.mts} +1 -1
- package/dist/aws/infra/api/{integration.js → integration.mjs} +3 -3
- package/dist/aws/infra/api/{response.d.ts → response.d.mts} +1 -1
- package/dist/aws/infra/api/{response.js → response.mjs} +3 -3
- package/dist/aws/infra/api/{responses.d.ts → responses.d.mts} +1 -1
- package/dist/aws/infra/api/{responses.js → responses.mjs} +3 -3
- package/dist/aws/infra/api/{static-integration.d.ts → static-integration.d.mts} +1 -1
- package/dist/aws/infra/api/{static-integration.js → static-integration.mjs} +3 -3
- package/dist/aws/infra/canaries/{canary-alarm.d.ts → canary-alarm.d.mts} +1 -1
- package/dist/aws/infra/canaries/{canary-alarm.js → canary-alarm.mjs} +1 -1
- package/dist/aws/infra/canaries/{canary-keys.js → canary-keys.mjs} +1 -1
- package/dist/aws/infra/canaries/canary-parameters.mjs +2 -0
- package/dist/aws/infra/canaries/{canary-role.js → canary-role.mjs} +1 -1
- package/dist/aws/infra/canaries/{canary.d.ts → canary.d.mts} +2 -2
- package/dist/aws/infra/canaries/{canary.js → canary.mjs} +2 -2
- package/dist/aws/infra/canaries/{database-canary.d.ts → database-canary.d.mts} +3 -3
- package/dist/aws/infra/canaries/{database-canary.js → database-canary.mjs} +2 -2
- package/dist/aws/infra/canaries/{database-checker.d.ts → database-checker.d.mts} +1 -1
- package/dist/aws/infra/canaries/{database-checker.js → database-checker.mjs} +7 -9
- package/dist/aws/infra/canaries/{url-canary.d.ts → url-canary.d.mts} +4 -4
- package/dist/aws/infra/canaries/{url-canary.js → url-canary.mjs} +3 -3
- package/dist/aws/infra/canaries/{url-checker.d.ts → url-checker.d.mts} +1 -1
- package/dist/aws/infra/canaries/{url-checker.js → url-checker.mjs} +10 -10
- package/dist/aws/infra/{documentation.js → documentation.mjs} +1 -1
- package/dist/aws/infra/{import-util.js → import-util.mjs} +1 -1
- package/dist/aws/infra/{scheduler.js → scheduler.mjs} +1 -1
- package/dist/aws/infra/{security-rule.js → security-rule.mjs} +1 -1
- package/dist/aws/infra/{sqs-integration.js → sqs-integration.mjs} +1 -1
- package/dist/aws/infra/{sqs-queue.d.ts → sqs-queue.d.mts} +1 -1
- package/dist/aws/infra/{sqs-queue.js → sqs-queue.mjs} +4 -7
- package/dist/aws/infra/stack/{lambda-configs.d.ts → lambda-configs.d.mts} +2 -2
- package/dist/aws/infra/stack/{lambda-configs.js → lambda-configs.mjs} +1 -1
- package/dist/aws/infra/stack/{monitoredfunction.d.ts → monitoredfunction.d.mts} +3 -3
- package/dist/aws/infra/stack/{monitoredfunction.js → monitoredfunction.mjs} +3 -3
- package/dist/aws/infra/stack/{parameters.js → parameters.mjs} +1 -1
- package/dist/aws/infra/stack/{rest_apis.d.ts → rest_apis.d.mts} +3 -3
- package/dist/aws/infra/stack/{rest_apis.js → rest_apis.mjs} +4 -4
- package/dist/aws/infra/stack/{stack-checking-aspect.d.ts → stack-checking-aspect.d.mts} +1 -1
- package/dist/aws/infra/stack/{stack-checking-aspect.js → stack-checking-aspect.mjs} +2 -2
- package/dist/aws/infra/stack/{stack.d.ts → stack.d.mts} +2 -2
- package/dist/aws/infra/stack/{stack.js → stack.mjs} +2 -2
- package/dist/aws/infra/stack/{subscription.d.ts → subscription.d.mts} +2 -2
- package/dist/aws/infra/stack/{subscription.js → subscription.mjs} +1 -1
- package/dist/aws/infra/stacks/{db-dns-stack.d.ts → db-dns-stack.d.mts} +1 -1
- package/dist/aws/infra/stacks/{db-dns-stack.js → db-dns-stack.mjs} +3 -3
- package/dist/aws/infra/stacks/{db-proxy-stack.d.ts → db-proxy-stack.d.mts} +1 -1
- package/dist/aws/infra/stacks/{db-proxy-stack.js → db-proxy-stack.mjs} +4 -4
- package/dist/aws/infra/stacks/{db-stack.d.ts → db-stack.d.mts} +1 -1
- package/dist/aws/infra/stacks/{db-stack.js → db-stack.mjs} +3 -3
- package/dist/aws/infra/stacks/intra-stack-configuration.mjs +2 -0
- package/dist/aws/infra/stacks/{network-stack.d.ts → network-stack.d.mts} +1 -1
- package/dist/aws/infra/stacks/{network-stack.js → network-stack.mjs} +2 -2
- package/dist/aws/infra/{usage-plans.js → usage-plans.mjs} +1 -1
- package/dist/aws/runtime/{apikey.js → apikey.mjs} +1 -1
- package/dist/aws/runtime/{digitraffic-integration-response.d.ts → digitraffic-integration-response.d.mts} +1 -1
- package/dist/aws/runtime/{digitraffic-integration-response.js → digitraffic-integration-response.mjs} +3 -3
- package/dist/aws/runtime/{dt-logger-default.d.ts → dt-logger-default.d.mts} +2 -2
- package/dist/aws/runtime/{dt-logger-default.js → dt-logger-default.mjs} +2 -2
- package/dist/aws/runtime/{dt-logger.js → dt-logger.mjs} +1 -1
- package/dist/aws/runtime/{environment.js → environment.mjs} +1 -1
- package/dist/aws/runtime/{messaging.js → messaging.mjs} +1 -1
- package/dist/aws/runtime/{s3.js → s3.mjs} +1 -1
- package/dist/aws/runtime/secrets/{dbsecret.d.ts → dbsecret.d.mts} +1 -1
- package/dist/aws/runtime/secrets/{dbsecret.js → dbsecret.mjs} +1 -1
- package/dist/aws/runtime/secrets/{proxy-holder.js → proxy-holder.mjs} +5 -5
- package/dist/aws/runtime/secrets/{rds-holder.js → rds-holder.mjs} +5 -5
- package/dist/aws/runtime/secrets/{secret-holder.d.ts → secret-holder.d.mts} +1 -1
- package/dist/aws/runtime/secrets/{secret-holder.js → secret-holder.mjs} +9 -10
- package/dist/aws/runtime/secrets/{secret.js → secret.mjs} +3 -3
- package/dist/aws/types/{errors.js → errors.mjs} +1 -1
- package/dist/aws/types/{lambda-response.js → lambda-response.mjs} +1 -1
- package/dist/aws/types/{mediatypes.js → mediatypes.mjs} +1 -1
- package/dist/aws/types/model-with-reference.mjs +2 -0
- package/dist/aws/types/proxytypes.mjs +2 -0
- package/dist/aws/types/{tags.js → tags.mjs} +1 -1
- package/dist/database/{cached.d.ts → cached.d.mts} +1 -1
- package/dist/database/{cached.js → cached.mjs} +3 -2
- package/dist/database/{database.d.ts → database.d.mts} +1 -1
- package/dist/database/{database.js → database.mjs} +6 -6
- package/dist/database/{last-updated.d.ts → last-updated.d.mts} +1 -1
- package/dist/database/{last-updated.js → last-updated.mjs} +1 -1
- package/dist/database/models.mjs +2 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.mjs +2 -0
- package/dist/marine/{id_utils.js → id_utils.mjs} +1 -1
- package/dist/marine/rtz.mjs +2 -0
- package/dist/test/{asserter.js → asserter.mjs} +1 -1
- package/dist/test/{db-testutils.d.ts → db-testutils.d.mts} +1 -1
- package/dist/test/{db-testutils.js → db-testutils.mjs} +2 -2
- package/dist/test/{httpserver.js → httpserver.mjs} +1 -1
- package/dist/test/{secrets-manager.js → secrets-manager.mjs} +4 -6
- package/dist/test/{testutils.js → testutils.mjs} +1 -1
- package/dist/types/{async-timeout-error.js → async-timeout-error.mjs} +1 -1
- package/dist/types/aws-env.mjs +2 -0
- package/dist/types/either.mjs +2 -0
- package/dist/types/{http-error.js → http-error.mjs} +1 -1
- package/dist/types/{input-error.js → input-error.mjs} +1 -1
- package/dist/types/{language.js → language.mjs} +1 -1
- package/dist/types/{nullable.d.ts → nullable.d.mts} +1 -1
- package/dist/types/nullable.mjs +2 -0
- package/dist/types/{traffictype.js → traffictype.mjs} +1 -1
- package/dist/types/urn.mjs +2 -0
- package/dist/types/util-types.mjs +2 -0
- package/dist/types/{validator.js → validator.mjs} +1 -1
- package/dist/utils/{api-model.d.ts → api-model.d.mts} +1 -1
- package/dist/utils/{api-model.js → api-model.mjs} +1 -1
- package/dist/utils/{base64.js → base64.mjs} +1 -1
- package/dist/utils/{date-utils.js → date-utils.mjs} +1 -1
- package/dist/utils/{geojson-types.js → geojson-types.mjs} +1 -1
- package/dist/utils/{geometry.js → geometry.mjs} +2 -2
- package/dist/utils/{logging.d.ts → logging.d.mts} +1 -1
- package/dist/utils/{logging.js → logging.mjs} +3 -3
- package/dist/utils/{retry.js → retry.mjs} +4 -4
- package/dist/utils/{slack.js → slack.mjs} +3 -3
- package/dist/utils/{utils.d.ts → utils.d.mts} +2 -2
- package/dist/utils/{utils.js → utils.mjs} +2 -2
- package/package.json +105 -105
- package/src/aws/infra/api/{handler-factory.ts → handler-factory.mts} +3 -3
- package/src/aws/infra/api/{integration.ts → integration.mts} +2 -2
- package/src/aws/infra/api/{response.ts → response.mts} +2 -2
- package/src/aws/infra/api/{responses.ts → responses.mts} +3 -3
- package/src/aws/infra/api/{static-integration.ts → static-integration.mts} +2 -2
- package/src/aws/infra/canaries/Synthetics.d.mts +21 -0
- package/src/aws/infra/canaries/{canary-alarm.ts → canary-alarm.mts} +1 -1
- package/src/aws/infra/canaries/{canary.ts → canary.mts} +3 -3
- package/src/aws/infra/canaries/{database-canary.ts → database-canary.mts} +3 -3
- package/src/aws/infra/canaries/{database-checker.ts → database-checker.mts} +7 -10
- package/src/aws/infra/canaries/{url-canary.ts → url-canary.mts} +6 -6
- package/src/aws/infra/canaries/{url-checker.ts → url-checker.mts} +9 -29
- package/src/aws/infra/{sqs-queue.ts → sqs-queue.mts} +3 -6
- package/src/aws/infra/stack/{lambda-configs.ts → lambda-configs.mts} +2 -2
- package/src/aws/infra/stack/{monitoredfunction.ts → monitoredfunction.mts} +4 -4
- package/src/aws/infra/stack/{rest_apis.ts → rest_apis.mts} +6 -6
- package/src/aws/infra/stack/{stack-checking-aspect.ts → stack-checking-aspect.mts} +1 -1
- package/src/aws/infra/stack/{stack.ts → stack.mts} +3 -3
- package/src/aws/infra/stack/{subscription.ts → subscription.mts} +2 -2
- package/src/aws/infra/stacks/{db-dns-stack.ts → db-dns-stack.mts} +3 -3
- package/src/aws/infra/stacks/{db-proxy-stack.ts → db-proxy-stack.mts} +4 -4
- package/src/aws/infra/stacks/{db-stack.ts → db-stack.mts} +3 -3
- package/src/aws/infra/stacks/{network-stack.ts → network-stack.mts} +2 -2
- package/src/aws/runtime/{digitraffic-integration-response.ts → digitraffic-integration-response.mts} +2 -2
- package/src/aws/runtime/{dt-logger-default.ts → dt-logger-default.mts} +2 -2
- package/src/aws/runtime/secrets/{dbsecret.ts → dbsecret.mts} +1 -1
- package/src/aws/runtime/secrets/node-ttl.d.mts +12 -0
- package/src/aws/runtime/secrets/{proxy-holder.ts → proxy-holder.mts} +4 -4
- package/src/aws/runtime/secrets/{rds-holder.ts → rds-holder.mts} +4 -4
- package/src/aws/runtime/secrets/{secret-holder.ts → secret-holder.mts} +8 -9
- package/src/aws/runtime/secrets/{secret.ts → secret.mts} +2 -2
- package/src/database/{cached.ts → cached.mts} +4 -2
- package/src/database/{database.ts → database.mts} +6 -6
- package/src/database/{last-updated.ts → last-updated.mts} +1 -1
- package/src/index.mts +2 -0
- package/src/test/{db-testutils.ts → db-testutils.mts} +2 -2
- package/src/test/{secrets-manager.ts → secrets-manager.mts} +3 -3
- package/src/types/{nullable.ts → nullable.mts} +1 -1
- package/src/utils/{api-model.ts → api-model.mts} +1 -1
- package/src/utils/{geometry.ts → geometry.mts} +1 -1
- package/src/utils/{logging.ts → logging.mts} +2 -2
- package/src/utils/{retry.ts → retry.mts} +3 -3
- package/src/utils/{slack.ts → slack.mts} +2 -2
- package/src/utils/{utils.ts → utils.mts} +3 -3
- package/dist/aws/infra/canaries/canary-parameters.js +0 -2
- package/dist/aws/infra/stacks/intra-stack-configuration.js +0 -2
- package/dist/aws/types/model-with-reference.js +0 -2
- package/dist/aws/types/proxytypes.js +0 -2
- package/dist/database/models.js +0 -2
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -2
- package/dist/marine/rtz.js +0 -2
- package/dist/types/aws-env.js +0 -2
- package/dist/types/either.js +0 -2
- package/dist/types/nullable.js +0 -2
- package/dist/types/urn.js +0 -2
- package/dist/types/util-types.js +0 -2
- package/src/index.ts +0 -2
- /package/dist/aws/infra/canaries/{canary-keys.d.ts → canary-keys.d.mts} +0 -0
- /package/dist/aws/infra/canaries/{canary-parameters.d.ts → canary-parameters.d.mts} +0 -0
- /package/dist/aws/infra/canaries/{canary-role.d.ts → canary-role.d.mts} +0 -0
- /package/dist/aws/infra/{documentation.d.ts → documentation.d.mts} +0 -0
- /package/dist/aws/infra/{import-util.d.ts → import-util.d.mts} +0 -0
- /package/dist/aws/infra/{scheduler.d.ts → scheduler.d.mts} +0 -0
- /package/dist/aws/infra/{security-rule.d.ts → security-rule.d.mts} +0 -0
- /package/dist/aws/infra/{sqs-integration.d.ts → sqs-integration.d.mts} +0 -0
- /package/dist/aws/infra/stack/{parameters.d.ts → parameters.d.mts} +0 -0
- /package/dist/aws/infra/stacks/{intra-stack-configuration.d.ts → intra-stack-configuration.d.mts} +0 -0
- /package/dist/aws/infra/{usage-plans.d.ts → usage-plans.d.mts} +0 -0
- /package/dist/aws/runtime/{apikey.d.ts → apikey.d.mts} +0 -0
- /package/dist/aws/runtime/{dt-logger.d.ts → dt-logger.d.mts} +0 -0
- /package/dist/aws/runtime/{environment.d.ts → environment.d.mts} +0 -0
- /package/dist/aws/runtime/{messaging.d.ts → messaging.d.mts} +0 -0
- /package/dist/aws/runtime/{s3.d.ts → s3.d.mts} +0 -0
- /package/dist/aws/runtime/secrets/{proxy-holder.d.ts → proxy-holder.d.mts} +0 -0
- /package/dist/aws/runtime/secrets/{rds-holder.d.ts → rds-holder.d.mts} +0 -0
- /package/dist/aws/runtime/secrets/{secret.d.ts → secret.d.mts} +0 -0
- /package/dist/aws/types/{errors.d.ts → errors.d.mts} +0 -0
- /package/dist/aws/types/{lambda-response.d.ts → lambda-response.d.mts} +0 -0
- /package/dist/aws/types/{mediatypes.d.ts → mediatypes.d.mts} +0 -0
- /package/dist/aws/types/{model-with-reference.d.ts → model-with-reference.d.mts} +0 -0
- /package/dist/aws/types/{proxytypes.d.ts → proxytypes.d.mts} +0 -0
- /package/dist/aws/types/{tags.d.ts → tags.d.mts} +0 -0
- /package/dist/database/{models.d.ts → models.d.mts} +0 -0
- /package/dist/marine/{id_utils.d.ts → id_utils.d.mts} +0 -0
- /package/dist/marine/{rtz.d.ts → rtz.d.mts} +0 -0
- /package/dist/test/{asserter.d.ts → asserter.d.mts} +0 -0
- /package/dist/test/{httpserver.d.ts → httpserver.d.mts} +0 -0
- /package/dist/test/{secrets-manager.d.ts → secrets-manager.d.mts} +0 -0
- /package/dist/test/{testutils.d.ts → testutils.d.mts} +0 -0
- /package/dist/types/{async-timeout-error.d.ts → async-timeout-error.d.mts} +0 -0
- /package/dist/types/{aws-env.d.ts → aws-env.d.mts} +0 -0
- /package/dist/types/{either.d.ts → either.d.mts} +0 -0
- /package/dist/types/{http-error.d.ts → http-error.d.mts} +0 -0
- /package/dist/types/{input-error.d.ts → input-error.d.mts} +0 -0
- /package/dist/types/{language.d.ts → language.d.mts} +0 -0
- /package/dist/types/{traffictype.d.ts → traffictype.d.mts} +0 -0
- /package/dist/types/{urn.d.ts → urn.d.mts} +0 -0
- /package/dist/types/{util-types.d.ts → util-types.d.mts} +0 -0
- /package/dist/types/{validator.d.ts → validator.d.mts} +0 -0
- /package/dist/utils/{base64.d.ts → base64.d.mts} +0 -0
- /package/dist/utils/{date-utils.d.ts → date-utils.d.mts} +0 -0
- /package/dist/utils/{geojson-types.d.ts → geojson-types.d.mts} +0 -0
- /package/dist/utils/{geometry.d.ts → geometry.d.mts} +0 -0
- /package/dist/utils/{retry.d.ts → retry.d.mts} +0 -0
- /package/dist/utils/{slack.d.ts → slack.d.mts} +0 -0
- /package/src/@types/geojson-validation/{index.d.ts → index.d.mts} +0 -0
- /package/src/aws/infra/canaries/{canary-keys.ts → canary-keys.mts} +0 -0
- /package/src/aws/infra/canaries/{canary-parameters.ts → canary-parameters.mts} +0 -0
- /package/src/aws/infra/canaries/{canary-role.ts → canary-role.mts} +0 -0
- /package/src/aws/infra/{documentation.ts → documentation.mts} +0 -0
- /package/src/aws/infra/{import-util.ts → import-util.mts} +0 -0
- /package/src/aws/infra/{scheduler.ts → scheduler.mts} +0 -0
- /package/src/aws/infra/{security-rule.ts → security-rule.mts} +0 -0
- /package/src/aws/infra/{sqs-integration.ts → sqs-integration.mts} +0 -0
- /package/src/aws/infra/stack/{parameters.ts → parameters.mts} +0 -0
- /package/src/aws/infra/stacks/{intra-stack-configuration.ts → intra-stack-configuration.mts} +0 -0
- /package/src/aws/infra/{usage-plans.ts → usage-plans.mts} +0 -0
- /package/src/aws/runtime/{apikey.ts → apikey.mts} +0 -0
- /package/src/aws/runtime/{dt-logger.ts → dt-logger.mts} +0 -0
- /package/src/aws/runtime/{environment.ts → environment.mts} +0 -0
- /package/src/aws/runtime/{messaging.ts → messaging.mts} +0 -0
- /package/src/aws/runtime/{s3.ts → s3.mts} +0 -0
- /package/src/aws/types/{errors.ts → errors.mts} +0 -0
- /package/src/aws/types/{lambda-response.ts → lambda-response.mts} +0 -0
- /package/src/aws/types/{mediatypes.ts → mediatypes.mts} +0 -0
- /package/src/aws/types/{model-with-reference.ts → model-with-reference.mts} +0 -0
- /package/src/aws/types/{proxytypes.ts → proxytypes.mts} +0 -0
- /package/src/aws/types/{tags.ts → tags.mts} +0 -0
- /package/src/database/{models.ts → models.mts} +0 -0
- /package/src/marine/{id_utils.ts → id_utils.mts} +0 -0
- /package/src/marine/{rtz.ts → rtz.mts} +0 -0
- /package/src/test/{asserter.ts → asserter.mts} +0 -0
- /package/src/test/{httpserver.ts → httpserver.mts} +0 -0
- /package/src/test/{testutils.ts → testutils.mts} +0 -0
- /package/src/types/{async-timeout-error.ts → async-timeout-error.mts} +0 -0
- /package/src/types/{aws-env.ts → aws-env.mts} +0 -0
- /package/src/types/{either.ts → either.mts} +0 -0
- /package/src/types/{http-error.ts → http-error.mts} +0 -0
- /package/src/types/{input-error.ts → input-error.mts} +0 -0
- /package/src/types/{language.ts → language.mts} +0 -0
- /package/src/types/{traffictype.ts → traffictype.mts} +0 -0
- /package/src/types/{urn.ts → urn.mts} +0 -0
- /package/src/types/{util-types.ts → util-types.mts} +0 -0
- /package/src/types/{validator.ts → validator.mts} +0 -0
- /package/src/utils/{base64.ts → base64.mts} +0 -0
- /package/src/utils/{date-utils.ts → date-utils.mts} +0 -0
- /package/src/utils/{geojson-types.ts → geojson-types.mts} +0 -0
@@ -1,5 +1,5 @@
|
|
1
|
-
import { DtLogger } from "../../runtime/dt-logger.
|
2
|
-
import { LambdaResponse } from "../../types/lambda-response.
|
1
|
+
import { DtLogger } from "../../runtime/dt-logger.mjs";
|
2
|
+
import { LambdaResponse } from "../../types/lambda-response.mjs";
|
3
3
|
export type LoggingHandler = (method: () => Promise<LambdaResponse>, logger: DtLogger) => Promise<LambdaResponse>;
|
4
4
|
export type ErrorHandler = (error: unknown, logger: DtLogger) => LambdaResponse;
|
5
5
|
/**
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { getEnvVariableOrElse } from "../../../utils/utils.
|
1
|
+
import { getEnvVariableOrElse } from "../../../utils/utils.mjs";
|
2
2
|
const functionName = getEnvVariableOrElse("AWS_LAMBDA_FUNCTION_NAME", "test");
|
3
3
|
/**
|
4
4
|
* Factory class for creating lambda-handler functions. You can set functionality to handle logging and error-handling,
|
@@ -59,4 +59,4 @@ export function createJsonLoggingHandler() {
|
|
59
59
|
}
|
60
60
|
};
|
61
61
|
}
|
62
|
-
//# sourceMappingURL=handler-factory.
|
62
|
+
//# sourceMappingURL=handler-factory.mjs.map
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { IntegrationResponse, LambdaIntegration } from "aws-cdk-lib/aws-apigateway";
|
2
2
|
import { IFunction } from "aws-cdk-lib/aws-lambda";
|
3
|
-
import { MediaType } from "../../types/mediatypes.
|
3
|
+
import { MediaType } from "../../types/mediatypes.mjs";
|
4
4
|
type ParameterType = "path" | "querystring" | "multivaluequerystring" | "context" | "header";
|
5
5
|
interface ApiParameter {
|
6
6
|
type: ParameterType;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { LambdaIntegration, PassthroughBehavior, } from "aws-cdk-lib/aws-apigateway";
|
2
|
-
import { MediaType } from "../../types/mediatypes.
|
3
|
-
import { DigitrafficIntegrationResponse } from "../../runtime/digitraffic-integration-response.
|
2
|
+
import { MediaType } from "../../types/mediatypes.mjs";
|
3
|
+
import { DigitrafficIntegrationResponse } from "../../runtime/digitraffic-integration-response.mjs";
|
4
4
|
export class DigitrafficIntegration {
|
5
5
|
constructor(lambda, mediaType = MediaType.TEXT_PLAIN, sunset) {
|
6
6
|
this.parameters = [];
|
@@ -85,4 +85,4 @@ export class DigitrafficIntegration {
|
|
85
85
|
return [DigitrafficIntegrationResponse.ok(this.mediaType, this.sunset)];
|
86
86
|
}
|
87
87
|
}
|
88
|
-
//# sourceMappingURL=integration.
|
88
|
+
//# sourceMappingURL=integration.mjs.map
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { MediaType } from "../../types/mediatypes.
|
1
|
+
import { MediaType } from "../../types/mediatypes.mjs";
|
2
2
|
import { JsonSchema, MethodResponse, type IModel } from "aws-cdk-lib/aws-apigateway";
|
3
3
|
/**
|
4
4
|
* This is velocity-script, that assumes the response to be LambdaResponse(status and body).
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { MediaType } from "../../types/mediatypes.
|
1
|
+
import { MediaType } from "../../types/mediatypes.mjs";
|
2
2
|
import { JsonSchemaType, JsonSchemaVersion, Model } from "aws-cdk-lib/aws-apigateway";
|
3
|
-
import { dateFromIsoString } from "../../../utils/date-utils.
|
3
|
+
import { dateFromIsoString } from "../../../utils/date-utils.mjs";
|
4
4
|
/**
|
5
5
|
* This is velocity-script, that assumes the response to be LambdaResponse(status and body).
|
6
6
|
* It will always return the body and status, but if status in something else than 200 OK the content-type
|
@@ -113,4 +113,4 @@ export class DigitrafficMethodResponse {
|
|
113
113
|
return DigitrafficMethodResponse.response("400", model, mediaType, false);
|
114
114
|
}
|
115
115
|
}
|
116
|
-
//# sourceMappingURL=response.
|
116
|
+
//# sourceMappingURL=response.mjs.map
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { LambdaIntegration, MethodResponse, IntegrationResponse, PassthroughBehavior, type IModel } from "aws-cdk-lib/aws-apigateway";
|
2
2
|
import { Function as AWSFunction } from "aws-cdk-lib/aws-lambda";
|
3
|
-
import { MediaType } from "../../types/mediatypes.
|
3
|
+
import { MediaType } from "../../types/mediatypes.mjs";
|
4
4
|
export declare const RESPONSE_200_OK: IntegrationResponse;
|
5
5
|
export declare const RESPONSE_400_BAD_REQUEST: IntegrationResponse;
|
6
6
|
export declare const RESPONSE_500_SERVER_ERROR: IntegrationResponse;
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { InternalServerErrorResponseTemplate, XmlResponseTemplate, NotFoundResponseTemplate, BadRequestResponseTemplate, } from "./response.
|
1
|
+
import { InternalServerErrorResponseTemplate, XmlResponseTemplate, NotFoundResponseTemplate, BadRequestResponseTemplate, } from "./response.mjs";
|
2
2
|
import { LambdaIntegration, PassthroughBehavior } from "aws-cdk-lib/aws-apigateway";
|
3
|
-
import { BAD_REQUEST_MESSAGE, ERROR_MESSAGE, NOT_FOUND_MESSAGE, } from "../../types/errors.
|
3
|
+
import { BAD_REQUEST_MESSAGE, ERROR_MESSAGE, NOT_FOUND_MESSAGE, } from "../../types/errors.mjs";
|
4
4
|
/// @deprecated
|
5
5
|
export const RESPONSE_200_OK = {
|
6
6
|
statusCode: "200",
|
@@ -75,4 +75,4 @@ export function getResponse(response, options) {
|
|
75
75
|
}
|
76
76
|
return response;
|
77
77
|
}
|
78
|
-
//# sourceMappingURL=responses.
|
78
|
+
//# sourceMappingURL=responses.mjs.map
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { MockIntegration, Resource } from "aws-cdk-lib/aws-apigateway";
|
2
|
-
import { MediaType } from "../../types/mediatypes.
|
2
|
+
import { MediaType } from "../../types/mediatypes.mjs";
|
3
3
|
/**
|
4
4
|
* Static integration, that returns the given response with given mediaType from given resource.
|
5
5
|
*
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { MockIntegration, PassthroughBehavior, } from "aws-cdk-lib/aws-apigateway";
|
2
|
-
import { MediaType } from "../../types/mediatypes.
|
3
|
-
import { RESPONSE_CORS_INTEGRATION } from "./responses.
|
2
|
+
import { MediaType } from "../../types/mediatypes.mjs";
|
3
|
+
import { RESPONSE_CORS_INTEGRATION } from "./responses.mjs";
|
4
4
|
const INTEGRATION_RESPONSE_200 = `{
|
5
5
|
"statusCode": 200
|
6
6
|
}`;
|
@@ -63,4 +63,4 @@ function corsMethod(response) {
|
|
63
63
|
},
|
64
64
|
};
|
65
65
|
}
|
66
|
-
//# sourceMappingURL=static-integration.
|
66
|
+
//# sourceMappingURL=static-integration.mjs.map
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Construct } from "constructs";
|
2
|
-
import { CanaryParameters } from "./canary-parameters.
|
2
|
+
import { CanaryParameters } from "./canary-parameters.mjs";
|
3
3
|
import { Canary } from "aws-cdk-lib/aws-synthetics";
|
4
4
|
export declare class CanaryAlarm {
|
5
5
|
constructor(stack: Construct, canary: Canary, params: CanaryParameters);
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { Canary } from "aws-cdk-lib/aws-synthetics";
|
2
2
|
import { Role } from "aws-cdk-lib/aws-iam";
|
3
|
-
import { CanaryParameters } from "./canary-parameters.
|
3
|
+
import { CanaryParameters } from "./canary-parameters.mjs";
|
4
4
|
import { Construct } from "constructs";
|
5
|
-
import { LambdaEnvironment } from "../stack/lambda-configs.
|
5
|
+
import { LambdaEnvironment } from "../stack/lambda-configs.mjs";
|
6
6
|
export declare class DigitrafficCanary extends Canary {
|
7
7
|
constructor(scope: Construct, canaryName: string, role: Role, params: CanaryParameters, environmentVariables: LambdaEnvironment);
|
8
8
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Duration } from "aws-cdk-lib";
|
2
2
|
import { AssetCode, Canary, Runtime, Schedule, Test, } from "aws-cdk-lib/aws-synthetics";
|
3
|
-
import { CanaryAlarm } from "./canary-alarm.
|
3
|
+
import { CanaryAlarm } from "./canary-alarm.mjs";
|
4
4
|
export class DigitrafficCanary extends Canary {
|
5
5
|
constructor(scope, canaryName, role, params, environmentVariables) {
|
6
6
|
super(scope, canaryName, {
|
@@ -23,4 +23,4 @@ export class DigitrafficCanary extends Canary {
|
|
23
23
|
new CanaryAlarm(scope, this, params);
|
24
24
|
}
|
25
25
|
}
|
26
|
-
//# sourceMappingURL=canary.
|
26
|
+
//# sourceMappingURL=canary.mjs.map
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { Role } from "aws-cdk-lib/aws-iam";
|
2
2
|
import { ISecret } from "aws-cdk-lib/aws-secretsmanager";
|
3
|
-
import { CanaryParameters } from "./canary-parameters.
|
4
|
-
import { DigitrafficCanary } from "./canary.
|
5
|
-
import { DigitrafficStack } from "../stack/stack.
|
3
|
+
import { CanaryParameters } from "./canary-parameters.mjs";
|
4
|
+
import { DigitrafficCanary } from "./canary.mjs";
|
5
|
+
import { DigitrafficStack } from "../stack/stack.mjs";
|
6
6
|
export declare class DatabaseCanary extends DigitrafficCanary {
|
7
7
|
constructor(stack: DigitrafficStack, role: Role, secret: ISecret, params: CanaryParameters);
|
8
8
|
static create(stack: DigitrafficStack, role: Role, params: CanaryParameters): DatabaseCanary;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { CfnCanary } from "aws-cdk-lib/aws-synthetics";
|
2
2
|
import { Schedule } from "aws-cdk-lib/aws-events";
|
3
3
|
import { Duration } from "aws-cdk-lib";
|
4
|
-
import { DigitrafficCanary } from "./canary.
|
4
|
+
import { DigitrafficCanary } from "./canary.mjs";
|
5
5
|
export class DatabaseCanary extends DigitrafficCanary {
|
6
6
|
constructor(stack, role, secret, params) {
|
7
7
|
const canaryName = `${params.name}-db`;
|
@@ -63,4 +63,4 @@ export class DatabaseCanary extends DigitrafficCanary {
|
|
63
63
|
});
|
64
64
|
}
|
65
65
|
}
|
66
|
-
//# sourceMappingURL=database-canary.
|
66
|
+
//# sourceMappingURL=database-canary.mjs.map
|
@@ -1,10 +1,9 @@
|
|
1
|
-
import { inDatabaseReadonly } from "../../../database/database.
|
2
|
-
import { ProxyHolder } from "../../runtime/secrets/proxy-holder.
|
3
|
-
import { RdsHolder } from "../../runtime/secrets/rds-holder.
|
4
|
-
import { getEnvVariable } from "../../../utils/utils.
|
5
|
-
import { logger } from "../../runtime/dt-logger-default.
|
6
|
-
|
7
|
-
const synthetics = require("Synthetics");
|
1
|
+
import { inDatabaseReadonly } from "../../../database/database.mjs";
|
2
|
+
import { ProxyHolder } from "../../runtime/secrets/proxy-holder.mjs";
|
3
|
+
import { RdsHolder } from "../../runtime/secrets/rds-holder.mjs";
|
4
|
+
import { getEnvVariable } from "../../../utils/utils.mjs";
|
5
|
+
import { logger } from "../../runtime/dt-logger-default.mjs";
|
6
|
+
const synthetics = await import("Synthetics");
|
8
7
|
class DatabaseCheck {
|
9
8
|
constructor(name, sql) {
|
10
9
|
this.name = name;
|
@@ -103,7 +102,6 @@ export class DatabaseCountChecker {
|
|
103
102
|
const checkFunction = () => {
|
104
103
|
check.check(value);
|
105
104
|
};
|
106
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call
|
107
105
|
synthetics.executeStep(check.name, checkFunction, stepConfig);
|
108
106
|
}
|
109
107
|
});
|
@@ -113,4 +111,4 @@ export class DatabaseCountChecker {
|
|
113
111
|
return "OK";
|
114
112
|
}
|
115
113
|
}
|
116
|
-
//# sourceMappingURL=database-checker.
|
114
|
+
//# sourceMappingURL=database-checker.mjs.map
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { Role } from "aws-cdk-lib/aws-iam";
|
2
2
|
import { ISecret } from "aws-cdk-lib/aws-secretsmanager";
|
3
|
-
import { DigitrafficRestApi } from "../stack/rest_apis.
|
4
|
-
import { DigitrafficStack } from "../stack/stack.
|
5
|
-
import { DigitrafficCanary } from "./canary.
|
6
|
-
import { CanaryParameters } from "./canary-parameters.
|
3
|
+
import { DigitrafficRestApi } from "../stack/rest_apis.mjs";
|
4
|
+
import { DigitrafficStack } from "../stack/stack.mjs";
|
5
|
+
import { DigitrafficCanary } from "./canary.mjs";
|
6
|
+
import { CanaryParameters } from "./canary-parameters.mjs";
|
7
7
|
export interface UrlCanaryParameters extends CanaryParameters {
|
8
8
|
readonly hostname: string;
|
9
9
|
readonly apiKeyId: string;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { CfnCanary } from "aws-cdk-lib/aws-synthetics";
|
2
|
-
import { DigitrafficCanary } from "./canary.
|
3
|
-
import { ENV_API_KEY, ENV_HOSTNAME, ENV_SECRET } from "./canary-keys.
|
2
|
+
import { DigitrafficCanary } from "./canary.mjs";
|
3
|
+
import { ENV_API_KEY, ENV_HOSTNAME, ENV_SECRET } from "./canary-keys.mjs";
|
4
4
|
export class UrlCanary extends DigitrafficCanary {
|
5
5
|
constructor(stack, role, params, secret) {
|
6
6
|
const canaryName = `${params.name}-url`;
|
@@ -53,4 +53,4 @@ export class UrlCanary extends DigitrafficCanary {
|
|
53
53
|
return publicApi.apiKeyIds[0];
|
54
54
|
}
|
55
55
|
}
|
56
|
-
//# sourceMappingURL=url-canary.
|
56
|
+
//# sourceMappingURL=url-canary.mjs.map
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/// <reference types="node" resolution-mode="require"/>
|
2
2
|
import { IncomingMessage } from "http";
|
3
|
-
import { MediaType } from "../../types/mediatypes.
|
3
|
+
import { MediaType } from "../../types/mediatypes.mjs";
|
4
4
|
import { FeatureCollection } from "geojson";
|
5
5
|
export declare const API_KEY_HEADER = "x-api-key";
|
6
6
|
type CheckerFunction = (Res: IncomingMessage) => Promise<void>;
|
@@ -1,16 +1,16 @@
|
|
1
1
|
import { createRequire as _createRequire } from "module";
|
2
2
|
const __require = _createRequire(import.meta.url);
|
3
|
-
import { Asserter } from "../../../test/asserter.
|
3
|
+
import { Asserter } from "../../../test/asserter.mjs";
|
4
4
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-var-requires
|
5
|
-
const synthetics =
|
5
|
+
const synthetics = await import("Synthetics");
|
6
6
|
const zlib = __require("zlib");
|
7
|
-
import { MediaType } from "../../types/mediatypes.
|
8
|
-
import { getApiKeyFromAPIGateway } from "../../runtime/apikey.
|
9
|
-
import { isValidGeoJson } from "../../../utils/geometry.
|
10
|
-
import { getEnvVariable } from "../../../utils/utils.
|
11
|
-
import { ENV_API_KEY, ENV_HOSTNAME } from "./canary-keys.
|
12
|
-
import { logger } from "../../runtime/dt-logger-default.
|
13
|
-
import { logException } from "../../../utils/logging.
|
7
|
+
import { MediaType } from "../../types/mediatypes.mjs";
|
8
|
+
import { getApiKeyFromAPIGateway } from "../../runtime/apikey.mjs";
|
9
|
+
import { isValidGeoJson } from "../../../utils/geometry.mjs";
|
10
|
+
import { getEnvVariable } from "../../../utils/utils.mjs";
|
11
|
+
import { ENV_API_KEY, ENV_HOSTNAME } from "./canary-keys.mjs";
|
12
|
+
import { logger } from "../../runtime/dt-logger-default.mjs";
|
13
|
+
import { logException } from "../../../utils/logging.mjs";
|
14
14
|
export const API_KEY_HEADER = "x-api-key";
|
15
15
|
const baseHeaders = {
|
16
16
|
"Digitraffic-User": "internal-digitraffic-canary",
|
@@ -265,4 +265,4 @@ export class HeaderChecker {
|
|
265
265
|
};
|
266
266
|
}
|
267
267
|
}
|
268
|
-
//# sourceMappingURL=url-checker.
|
268
|
+
//# sourceMappingURL=url-checker.mjs.map
|
@@ -7,8 +7,9 @@ import { RetentionDays } from "aws-cdk-lib/aws-logs";
|
|
7
7
|
import { SqsEventSource } from "aws-cdk-lib/aws-lambda-event-sources";
|
8
8
|
import { ComparisonOperator, TreatMissingData } from "aws-cdk-lib/aws-cloudwatch";
|
9
9
|
import { SnsAction } from "aws-cdk-lib/aws-cloudwatch-actions";
|
10
|
+
import { S3 } from "@aws-sdk/client-s3";
|
10
11
|
import { Upload } from "@aws-sdk/lib-storage";
|
11
|
-
import { MonitoredFunction } from "./stack/monitoredfunction.
|
12
|
+
import { MonitoredFunction } from "./stack/monitoredfunction.mjs";
|
12
13
|
/**
|
13
14
|
* Construct for creating SQS-queues.
|
14
15
|
*
|
@@ -117,12 +118,8 @@ async function doUpload(s3, Bucket, Body, Key) {
|
|
117
118
|
const bucketName = "";
|
118
119
|
function createHandler() {
|
119
120
|
return async function handler(event) {
|
120
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires, @typescript-eslint/no-unsafe-assignment
|
121
|
-
const AWS = require("aws-sdk");
|
122
121
|
const millis = new Date().getTime();
|
123
|
-
await Promise.all(event.Records.map((e, idx) => uploadToS3(
|
124
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access
|
125
|
-
new AWS.S3(), bucketName, e.body, `dlq-${millis}-${idx}.json`)));
|
122
|
+
await Promise.all(event.Records.map((e, idx) => uploadToS3(new S3(), bucketName, e.body, `dlq-${millis}-${idx}.json`)));
|
126
123
|
};
|
127
124
|
}
|
128
125
|
const DLQ_LAMBDA_CODE = `
|
@@ -135,4 +132,4 @@ __doUpload__
|
|
135
132
|
|
136
133
|
exports.handler = async (event) => __handler__
|
137
134
|
`;
|
138
|
-
//# sourceMappingURL=sqs-queue.
|
135
|
+
//# sourceMappingURL=sqs-queue.mjs.map
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { Architecture, Code, FunctionProps, Runtime } from "aws-cdk-lib/aws-lambda";
|
2
2
|
import { IVpc, SubnetSelection } from "aws-cdk-lib/aws-ec2";
|
3
3
|
import { Role } from "aws-cdk-lib/aws-iam";
|
4
|
-
import { DigitrafficStack } from "./stack.
|
5
|
-
import { MonitoredFunctionAlarmProps } from "./monitoredfunction.
|
4
|
+
import { DigitrafficStack } from "./stack.mjs";
|
5
|
+
import { MonitoredFunctionAlarmProps } from "./monitoredfunction.mjs";
|
6
6
|
export type LambdaEnvironment = Record<string, string>;
|
7
7
|
export type DBLambdaEnvironment = LambdaEnvironment & {
|
8
8
|
SECRET_ID?: string;
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { Function, FunctionProps } from "aws-cdk-lib/aws-lambda";
|
2
2
|
import { Stack } from "aws-cdk-lib";
|
3
3
|
import { ComparisonOperator } from "aws-cdk-lib/aws-cloudwatch";
|
4
|
-
import { DigitrafficStack } from "./stack.
|
4
|
+
import { DigitrafficStack } from "./stack.mjs";
|
5
5
|
import { ITopic } from "aws-cdk-lib/aws-sns";
|
6
|
-
import { LambdaEnvironment, MonitoredFunctionParameters } from "./lambda-configs.
|
7
|
-
import { TrafficType } from "../../../types/traffictype.
|
6
|
+
import { LambdaEnvironment, MonitoredFunctionParameters } from "./lambda-configs.mjs";
|
7
|
+
import { TrafficType } from "../../../types/traffictype.mjs";
|
8
8
|
/**
|
9
9
|
* Allows customization of CloudWatch Alarm properties
|
10
10
|
*/
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { Function } from "aws-cdk-lib/aws-lambda";
|
2
2
|
import { SnsAction } from "aws-cdk-lib/aws-cloudwatch-actions";
|
3
3
|
import { ComparisonOperator } from "aws-cdk-lib/aws-cloudwatch";
|
4
|
-
import { databaseFunctionProps, } from "./lambda-configs.
|
5
|
-
import { DigitrafficLogSubscriptions } from "./subscription.
|
4
|
+
import { databaseFunctionProps, } from "./lambda-configs.mjs";
|
5
|
+
import { DigitrafficLogSubscriptions } from "./subscription.mjs";
|
6
6
|
import _ from "lodash";
|
7
7
|
/**
|
8
8
|
* Creates a Lambda function that monitors default CloudWatch Lambda metrics with CloudWatch Alarms.
|
@@ -145,4 +145,4 @@ export class MonitoredDBFunction {
|
|
145
145
|
return mf;
|
146
146
|
}
|
147
147
|
}
|
148
|
-
//# sourceMappingURL=monitoredfunction.
|
148
|
+
//# sourceMappingURL=monitoredfunction.mjs.map
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { IResource, JsonSchema, Resource, RestApi, RestApiProps } from "aws-cdk-lib/aws-apigateway";
|
2
2
|
import { PolicyDocument } from "aws-cdk-lib/aws-iam";
|
3
3
|
import { Construct } from "constructs";
|
4
|
-
import { ModelWithReference } from "../../types/model-with-reference.
|
5
|
-
import { DocumentationPart } from "../documentation.
|
6
|
-
import { DigitrafficStack } from "./stack.
|
4
|
+
import { ModelWithReference } from "../../types/model-with-reference.mjs";
|
5
|
+
import { DocumentationPart } from "../documentation.mjs";
|
6
|
+
import { DigitrafficStack } from "./stack.mjs";
|
7
7
|
export declare class DigitrafficRestApi extends RestApi {
|
8
8
|
readonly apiKeyIds: string[];
|
9
9
|
readonly enableDocumentation: boolean;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { CfnDocumentationPart, EndpointType, GatewayResponse, MethodLoggingLevel, MockIntegration, ResponseType, RestApi, } from "aws-cdk-lib/aws-apigateway";
|
2
2
|
import { AnyPrincipal, Effect, PolicyDocument, PolicyStatement, } from "aws-cdk-lib/aws-iam";
|
3
|
-
import { getModelReference } from "../../../utils/api-model.
|
4
|
-
import { MediaType } from "../../types/mediatypes.
|
5
|
-
import { createDefaultUsagePlan, createUsagePlan } from "../usage-plans.
|
3
|
+
import { getModelReference } from "../../../utils/api-model.mjs";
|
4
|
+
import { MediaType } from "../../types/mediatypes.mjs";
|
5
|
+
import { createDefaultUsagePlan, createUsagePlan } from "../usage-plans.mjs";
|
6
6
|
import _ from "lodash";
|
7
7
|
export class DigitrafficRestApi extends RestApi {
|
8
8
|
constructor(stack, apiId, apiName, allowFromIpAddresses, config) {
|
@@ -201,4 +201,4 @@ export function createIpRestrictionPolicyDocument(allowFromIpAddresses) {
|
|
201
201
|
],
|
202
202
|
});
|
203
203
|
}
|
204
|
-
//# sourceMappingURL=rest_apis.
|
204
|
+
//# sourceMappingURL=rest_apis.mjs.map
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { IAspect } from "aws-cdk-lib";
|
2
|
-
import { DigitrafficStack } from "./stack.
|
2
|
+
import { DigitrafficStack } from "./stack.mjs";
|
3
3
|
import { IConstruct } from "constructs";
|
4
4
|
export declare class StackCheckingAspect implements IAspect {
|
5
5
|
private readonly stackShortName?;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Annotations, Stack } from "aws-cdk-lib";
|
2
2
|
import { CfnFunction, Runtime } from "aws-cdk-lib/aws-lambda";
|
3
3
|
import { CfnBucket } from "aws-cdk-lib/aws-s3";
|
4
|
-
import { DigitrafficStack, SOLUTION_KEY } from "./stack.
|
4
|
+
import { DigitrafficStack, SOLUTION_KEY } from "./stack.mjs";
|
5
5
|
import { CfnMethod, CfnResource } from "aws-cdk-lib/aws-apigateway";
|
6
6
|
import { CfnQueue } from "aws-cdk-lib/aws-sqs";
|
7
7
|
import { LogRetention } from "aws-cdk-lib/aws-logs";
|
@@ -164,4 +164,4 @@ export class StackCheckingAspect {
|
|
164
164
|
}
|
165
165
|
}
|
166
166
|
}
|
167
|
-
//# sourceMappingURL=stack-checking-aspect.
|
167
|
+
//# sourceMappingURL=stack-checking-aspect.mjs.map
|
@@ -4,8 +4,8 @@ import { ITopic } from "aws-cdk-lib/aws-sns";
|
|
4
4
|
import { ISecret } from "aws-cdk-lib/aws-secretsmanager";
|
5
5
|
import { Function as AWSFunction } from "aws-cdk-lib/aws-lambda";
|
6
6
|
import { Construct } from "constructs";
|
7
|
-
import { TrafficType } from "../../../types/traffictype.
|
8
|
-
import { DBLambdaEnvironment } from "./lambda-configs.
|
7
|
+
import { TrafficType } from "../../../types/traffictype.mjs";
|
8
|
+
import { DBLambdaEnvironment } from "./lambda-configs.mjs";
|
9
9
|
export declare const SOLUTION_KEY = "Solution";
|
10
10
|
export declare const SSM_KEY_WARNING_TOPIC = "/digitraffic/monitoring/warning-topic";
|
11
11
|
export declare const SSM_KEY_ALARM_TOPIC = "/digitraffic/monitoring/alarm-topic";
|
@@ -3,7 +3,7 @@ import { SecurityGroup, Vpc } from "aws-cdk-lib/aws-ec2";
|
|
3
3
|
import { Topic } from "aws-cdk-lib/aws-sns";
|
4
4
|
import { StringParameter } from "aws-cdk-lib/aws-ssm";
|
5
5
|
import { Secret } from "aws-cdk-lib/aws-secretsmanager";
|
6
|
-
import { StackCheckingAspect } from "./stack-checking-aspect.
|
6
|
+
import { StackCheckingAspect } from "./stack-checking-aspect.mjs";
|
7
7
|
const SSM_ROOT = "/digitraffic";
|
8
8
|
export const SOLUTION_KEY = "Solution";
|
9
9
|
const MONITORING_ROOT = "/monitoring";
|
@@ -60,4 +60,4 @@ export class DigitrafficStack extends Stack {
|
|
60
60
|
lambdas.forEach((l) => secret.grantRead(l));
|
61
61
|
}
|
62
62
|
}
|
63
|
-
//# sourceMappingURL=stack.
|
63
|
+
//# sourceMappingURL=stack.mjs.map
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { CfnSubscriptionFilter } from "aws-cdk-lib/aws-logs";
|
2
2
|
import { Function as AWSFunction } from "aws-cdk-lib/aws-lambda";
|
3
|
-
import { DigitrafficStack } from "./stack.
|
3
|
+
import { DigitrafficStack } from "./stack.mjs";
|
4
4
|
import { Construct } from "constructs";
|
5
|
-
import { MonitoredFunction } from "./monitoredfunction.
|
5
|
+
import { MonitoredFunction } from "./monitoredfunction.mjs";
|
6
6
|
/**
|
7
7
|
* Creates a subscription filter that subscribes to a Lambda Log Group and delivers the logs to another destination.
|
8
8
|
* https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-subscriptionfilter.html
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Stack } from "aws-cdk-lib";
|
2
2
|
import { type Construct } from "constructs";
|
3
|
-
import { InfraStackConfiguration } from "./intra-stack-configuration.
|
3
|
+
import { InfraStackConfiguration } from "./intra-stack-configuration.mjs";
|
4
4
|
/**
|
5
5
|
* Creates a dns local zone and creates records for cluster endpoints and proxy endpoints.
|
6
6
|
*
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Duration, RemovalPolicy, Stack } from "aws-cdk-lib";
|
2
2
|
import { PrivateHostedZone, RecordSet, RecordTarget, RecordType, } from "aws-cdk-lib/aws-route53";
|
3
|
-
import { importVpc } from "../import-util.
|
4
|
-
import { getParameterValue } from "../stack/parameters.
|
3
|
+
import { importVpc } from "../import-util.mjs";
|
4
|
+
import { getParameterValue } from "../stack/parameters.mjs";
|
5
5
|
const DEFAULT_RECORD_TTL = Duration.seconds(30);
|
6
6
|
/**
|
7
7
|
* Creates a dns local zone and creates records for cluster endpoints and proxy endpoints.
|
@@ -57,4 +57,4 @@ export class DbDnsStack extends Stack {
|
|
57
57
|
});
|
58
58
|
}
|
59
59
|
}
|
60
|
-
//# sourceMappingURL=db-dns-stack.
|
60
|
+
//# sourceMappingURL=db-dns-stack.mjs.map
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { CfnDBProxyEndpoint, DatabaseProxy } from "aws-cdk-lib/aws-rds";
|
2
2
|
import { ISecret } from "aws-cdk-lib/aws-secretsmanager";
|
3
3
|
import { IVpc } from "aws-cdk-lib/aws-ec2";
|
4
|
-
import { InfraStackConfiguration } from "./intra-stack-configuration.
|
4
|
+
import { InfraStackConfiguration } from "./intra-stack-configuration.mjs";
|
5
5
|
import { Stack } from "aws-cdk-lib/core";
|
6
6
|
import { Construct } from "constructs/lib/construct.js";
|
7
7
|
export interface ProxyConfiguration {
|