@gradientedge/cdk-utils 4.3.2 → 4.4.3
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/README.md +39 -28
- package/api-docs/AcmManager.html +622 -0
- package/api-docs/AcmProps.html +238 -0
- package/api-docs/AlarmProps.html +238 -0
- package/api-docs/AlarmStatusWidgetProps.html +238 -0
- package/api-docs/ApiDestinationEvent.html +297 -0
- package/api-docs/ApiDestinationEventType.html +238 -0
- package/api-docs/ApiDestinedLambda.html +297 -0
- package/api-docs/ApiDestinedLambdaEnvironment.html +238 -0
- package/api-docs/ApiDestinedLambdaType.html +238 -0
- package/api-docs/ApiDestinedRestApi.html +297 -0
- package/api-docs/ApiDestinedRestApiType.html +238 -0
- package/api-docs/ApiManager.html +766 -0
- package/api-docs/ApiToEventBridgeTarget.html +1877 -0
- package/api-docs/ApiToEventBridgeTarget.jpg +0 -0
- package/api-docs/ApiToEventBridgeTargetEventProps.html +238 -0
- package/api-docs/ApiToEventBridgeTargetLambdaProps.html +238 -0
- package/api-docs/ApiToEventBridgeTargetProps.html +238 -0
- package/api-docs/ApiToEventBridgeTargetRestApiProps.html +238 -0
- package/api-docs/AppConfigManager.html +1203 -0
- package/api-docs/AppConfigProps.html +238 -0
- package/api-docs/CloudFrontManager.html +2402 -0
- package/api-docs/CloudFrontProps.html +238 -0
- package/api-docs/CloudTrailManager.html +637 -0
- package/api-docs/CloudTrailProps.html +238 -0
- package/api-docs/CloudWatchManager.html +2986 -0
- package/api-docs/CloudfrontFunctionProps.html +238 -0
- package/api-docs/CodeBuildManager.html +736 -0
- package/api-docs/CommonConstruct.html +1299 -0
- package/api-docs/CommonStack.html +813 -0
- package/api-docs/CommonStackProps.html +238 -0
- package/api-docs/DashboardProps.html +238 -0
- package/api-docs/DistributionProps.html +238 -0
- package/api-docs/DynamodbManager.html +530 -0
- package/api-docs/EcrManager.html +530 -0
- package/api-docs/EcsClusterProps.html +238 -0
- package/api-docs/EcsManager.html +880 -0
- package/api-docs/EcsTaskProps.html +238 -0
- package/api-docs/EksClusterProps.html +238 -0
- package/api-docs/EksManager.html +580 -0
- package/api-docs/EventBusProps.html +238 -0
- package/api-docs/EventManager.html +1454 -0
- package/api-docs/EventRuleProps.html +238 -0
- package/api-docs/GraphQLApiLambda.html +1671 -0
- package/api-docs/GraphQLApiLambda.jpg +0 -0
- package/api-docs/GraphQlApiLambdaEnvironment.html +238 -0
- package/api-docs/GraphQlApiLambdaProps.html +238 -0
- package/api-docs/GraphWidgetProps.html +238 -0
- package/api-docs/HealthCheck.html +238 -0
- package/api-docs/IamManager.html +3821 -0
- package/api-docs/LambdaEdgeProps.html +238 -0
- package/api-docs/LambdaEnvironment.html +238 -0
- package/api-docs/LambdaManager.html +2378 -0
- package/api-docs/LambdaProps.html +238 -0
- package/api-docs/LifecycleRule.html +238 -0
- package/api-docs/LogManager.html +955 -0
- package/api-docs/LogProps.html +238 -0
- package/api-docs/LogQueryWidgetProps.html +238 -0
- package/api-docs/MetricFilterProps.html +238 -0
- package/api-docs/MetricProps.html +238 -0
- package/api-docs/NumericWidgetProps.html +238 -0
- package/api-docs/Route53Manager.html +1460 -0
- package/api-docs/Route53Props.html +238 -0
- package/api-docs/RuleProps.html +238 -0
- package/api-docs/S3BucketProps.html +238 -0
- package/api-docs/S3Manager.html +1546 -0
- package/api-docs/SSMParameterReader.html +431 -0
- package/api-docs/SSMParameterReaderProps.html +238 -0
- package/api-docs/SecretsManager.html +1140 -0
- package/api-docs/SiteWithEcsBackend.html +2391 -0
- package/api-docs/SiteWithEcsBackendProps.html +238 -0
- package/api-docs/SnsManager.html +780 -0
- package/api-docs/SsmManager.html +955 -0
- package/api-docs/StaticSite.html +1358 -0
- package/api-docs/StaticSiteProps.html +238 -0
- package/api-docs/SubscriptionProps.html +238 -0
- package/api-docs/TableProps.html +238 -0
- package/api-docs/TextWidgetProps.html +238 -0
- package/api-docs/VpcManager.html +986 -0
- package/api-docs/WafIPSetProps.html +238 -0
- package/api-docs/WafManager.html +730 -0
- package/api-docs/WafWebACLProps.html +238 -0
- package/api-docs/common_construct.ts.html +279 -0
- package/api-docs/common_stack.ts.html +303 -0
- package/api-docs/construct_api-to-eventbridge-target_api-destination-event.ts.html +175 -0
- package/api-docs/construct_api-to-eventbridge-target_api-destined-lambda.ts.html +178 -0
- package/api-docs/construct_api-to-eventbridge-target_api-destined-rest-api.ts.html +190 -0
- package/api-docs/construct_api-to-eventbridge-target_main.ts.html +751 -0
- package/api-docs/construct_graphql-api-lambda_main.ts.html +408 -0
- package/api-docs/construct_site-with-ecs-backend_main.ts.html +544 -0
- package/api-docs/construct_static-site_main.ts.html +374 -0
- package/api-docs/global.html +1530 -0
- package/api-docs/index.html +208 -0
- package/api-docs/logo.png +0 -0
- package/api-docs/manager_aws_acm-manager.ts.html +236 -0
- package/api-docs/manager_aws_api-manager.ts.html +260 -0
- package/api-docs/manager_aws_app-config-manager.ts.html +310 -0
- package/api-docs/manager_aws_cloudfront-manager.ts.html +491 -0
- package/api-docs/manager_aws_cloudtrail-manager.ts.html +251 -0
- package/api-docs/manager_aws_cloudwatch-manager.ts.html +553 -0
- package/api-docs/manager_aws_codebuild-manager.ts.html +240 -0
- package/api-docs/manager_aws_dynamodb-manager.ts.html +219 -0
- package/api-docs/manager_aws_ecr-manager.ts.html +199 -0
- package/api-docs/manager_aws_ecs-manager.ts.html +259 -0
- package/api-docs/manager_aws_eks-manager.ts.html +260 -0
- package/api-docs/manager_aws_event-manager.ts.html +336 -0
- package/api-docs/manager_aws_iam-manager.ts.html +573 -0
- package/api-docs/manager_aws_lambda-manager.ts.html +400 -0
- package/api-docs/manager_aws_log-manager.ts.html +259 -0
- package/api-docs/manager_aws_route53-manager.ts.html +333 -0
- package/api-docs/manager_aws_s3-manager.ts.html +361 -0
- package/api-docs/manager_aws_secrets-manager.ts.html +274 -0
- package/api-docs/manager_aws_sns-manager.ts.html +246 -0
- package/api-docs/manager_aws_ssm-manager.ts.html +273 -0
- package/api-docs/manager_aws_vpc-manager.ts.html +244 -0
- package/api-docs/manager_aws_waf-manager.ts.html +232 -0
- package/api-docs/scripts/app.min.js +1 -0
- package/api-docs/scripts/linenumber.js +26 -0
- package/api-docs/scripts/search.js +39 -0
- package/api-docs/styles/app.min.css +1 -0
- package/api-docs/styles/iframe.css +13 -0
- package/api-docs/styles/prettify-jsdoc.css +111 -0
- package/api-docs/styles/prettify-tomorrow.css +132 -0
- package/api-docs/styles/reset.css +44 -0
- package/api-docs/styles.css +113 -0
- package/api-docs/tutorial-Architecture.html +151 -0
- package/api-docs/tutorial-Build.html +150 -0
- package/api-docs/tutorial-CI-CD.html +154 -0
- package/api-docs/tutorial-Development.html +227 -0
- package/api-docs/types_aws_index.ts.html +665 -0
- package/api-docs/utils_aws_index.ts.html +192 -0
- package/api-docs/utils_index.ts.html +227 -0
- package/app/api-destined-function/node_modules/.yarn-integrity +180 -0
- package/app/api-destined-function/node_modules/@types/uuid/LICENSE +21 -0
- package/app/api-destined-function/node_modules/@types/uuid/README.md +16 -0
- package/app/api-destined-function/node_modules/@types/uuid/index.d.mts +10 -0
- package/app/api-destined-function/node_modules/@types/uuid/index.d.ts +80 -0
- package/app/api-destined-function/node_modules/@types/uuid/package.json +54 -0
- package/app/api-destined-function/node_modules/balanced-match/LICENSE.md +21 -0
- package/app/api-destined-function/node_modules/balanced-match/README.md +97 -0
- package/app/api-destined-function/node_modules/balanced-match/index.js +62 -0
- package/app/api-destined-function/node_modules/balanced-match/package.json +48 -0
- package/app/api-destined-function/node_modules/brace-expansion/LICENSE +21 -0
- package/app/api-destined-function/node_modules/brace-expansion/README.md +129 -0
- package/app/api-destined-function/node_modules/brace-expansion/index.js +201 -0
- package/app/api-destined-function/node_modules/brace-expansion/package.json +47 -0
- package/app/api-destined-function/node_modules/concat-map/.travis.yml +4 -0
- package/app/api-destined-function/node_modules/concat-map/LICENSE +18 -0
- package/app/api-destined-function/node_modules/concat-map/README.markdown +62 -0
- package/app/api-destined-function/node_modules/concat-map/example/map.js +6 -0
- package/app/api-destined-function/node_modules/concat-map/index.js +13 -0
- package/app/api-destined-function/node_modules/concat-map/package.json +43 -0
- package/app/api-destined-function/node_modules/fs.realpath/LICENSE +43 -0
- package/app/api-destined-function/node_modules/fs.realpath/README.md +33 -0
- package/app/api-destined-function/node_modules/fs.realpath/index.js +66 -0
- package/app/api-destined-function/node_modules/fs.realpath/old.js +303 -0
- package/app/api-destined-function/node_modules/fs.realpath/package.json +26 -0
- package/app/api-destined-function/node_modules/glob/LICENSE +21 -0
- package/app/api-destined-function/node_modules/glob/README.md +378 -0
- package/app/api-destined-function/node_modules/glob/common.js +236 -0
- package/app/api-destined-function/node_modules/glob/glob.js +787 -0
- package/app/api-destined-function/node_modules/glob/package.json +52 -0
- package/app/api-destined-function/node_modules/glob/sync.js +483 -0
- package/app/api-destined-function/node_modules/inflight/LICENSE +15 -0
- package/app/api-destined-function/node_modules/inflight/README.md +37 -0
- package/app/api-destined-function/node_modules/inflight/inflight.js +54 -0
- package/app/api-destined-function/node_modules/inflight/package.json +29 -0
- package/app/api-destined-function/node_modules/inherits/LICENSE +16 -0
- package/app/api-destined-function/node_modules/inherits/README.md +42 -0
- package/app/api-destined-function/node_modules/inherits/inherits.js +9 -0
- package/app/api-destined-function/node_modules/inherits/inherits_browser.js +27 -0
- package/app/api-destined-function/node_modules/inherits/package.json +29 -0
- package/app/api-destined-function/node_modules/minimatch/LICENSE +15 -0
- package/app/api-destined-function/node_modules/minimatch/README.md +209 -0
- package/app/api-destined-function/node_modules/minimatch/minimatch.js +923 -0
- package/app/api-destined-function/node_modules/minimatch/package.json +30 -0
- package/app/api-destined-function/node_modules/mkdirp/LICENSE +21 -0
- package/app/api-destined-function/node_modules/mkdirp/bin/cmd.js +68 -0
- package/app/api-destined-function/node_modules/mkdirp/index.js +31 -0
- package/app/api-destined-function/node_modules/mkdirp/lib/find-made.js +29 -0
- package/app/api-destined-function/node_modules/mkdirp/lib/mkdirp-manual.js +64 -0
- package/app/api-destined-function/node_modules/mkdirp/lib/mkdirp-native.js +39 -0
- package/app/api-destined-function/node_modules/mkdirp/lib/opts-arg.js +23 -0
- package/app/api-destined-function/node_modules/mkdirp/lib/path-arg.js +29 -0
- package/app/api-destined-function/node_modules/mkdirp/lib/use-native.js +10 -0
- package/app/api-destined-function/node_modules/mkdirp/package.json +44 -0
- package/app/api-destined-function/node_modules/mkdirp/readme.markdown +266 -0
- package/app/api-destined-function/node_modules/once/LICENSE +15 -0
- package/app/api-destined-function/node_modules/once/README.md +79 -0
- package/app/api-destined-function/node_modules/once/once.js +42 -0
- package/app/api-destined-function/node_modules/once/package.json +33 -0
- package/app/api-destined-function/node_modules/path-is-absolute/index.js +20 -0
- package/app/api-destined-function/node_modules/path-is-absolute/license +21 -0
- package/app/api-destined-function/node_modules/path-is-absolute/package.json +43 -0
- package/app/api-destined-function/node_modules/path-is-absolute/readme.md +59 -0
- package/app/api-destined-function/node_modules/rimraf/LICENSE +15 -0
- package/app/api-destined-function/node_modules/rimraf/README.md +101 -0
- package/app/api-destined-function/node_modules/rimraf/bin.js +68 -0
- package/app/api-destined-function/node_modules/rimraf/package.json +32 -0
- package/app/api-destined-function/node_modules/rimraf/rimraf.js +360 -0
- package/app/api-destined-function/node_modules/uuid/LICENSE.md +9 -0
- package/app/api-destined-function/node_modules/uuid/README.md +505 -0
- package/app/api-destined-function/node_modules/uuid/package.json +135 -0
- package/app/api-destined-function/node_modules/uuid/wrapper.mjs +10 -0
- package/app/api-destined-function/node_modules/wrappy/LICENSE +15 -0
- package/app/api-destined-function/node_modules/wrappy/README.md +36 -0
- package/app/api-destined-function/node_modules/wrappy/package.json +29 -0
- package/app/api-destined-function/node_modules/wrappy/wrappy.js +33 -0
- package/app/api-destined-function/package.json +29 -0
- package/app/api-destined-function/src/lib/lambda.ts +31 -0
- package/img/ApiToEventBridgeTarget.jpg +0 -0
- package/img/GraphQLApiLambda.jpg +0 -0
- package/img/logo.png +0 -0
- package/package.json +17 -18
- package/src/lib/common/{commonConstruct.ts → construct.ts} +3 -13
- package/src/lib/common/index.ts +2 -2
- package/src/lib/common/{commonStack.ts → stack.ts} +5 -14
- package/src/lib/construct/api-to-eventbridge-target/api-destination-event.ts +17 -0
- package/src/lib/construct/api-to-eventbridge-target/api-destined-lambda.ts +20 -0
- package/src/lib/construct/api-to-eventbridge-target/api-destined-rest-api.ts +32 -0
- package/src/lib/construct/api-to-eventbridge-target/index.ts +4 -0
- package/src/lib/construct/api-to-eventbridge-target/main.ts +593 -0
- package/src/lib/construct/graphql-api-lambda/index.ts +1 -0
- package/src/lib/construct/{graphQLApiLambda.ts → graphql-api-lambda/main.ts} +11 -20
- package/src/lib/construct/index.ts +4 -3
- package/src/lib/construct/site-with-ecs-backend/index.ts +1 -0
- package/src/lib/construct/{siteWithEcsBackend.ts → site-with-ecs-backend/main.ts} +6 -17
- package/src/lib/construct/static-site/index.ts +1 -0
- package/src/lib/construct/{staticSite.ts → static-site/main.ts} +5 -16
- package/src/lib/manager/aws/{acmManager.ts → acm-manager.ts} +3 -2
- package/src/lib/manager/aws/{apiManager.ts → api-manager.ts} +6 -5
- package/src/lib/manager/aws/{appConfigManager.ts → app-config-manager.ts} +5 -3
- package/src/lib/manager/aws/{cloudFrontManager.ts → cloudfront-manager.ts} +3 -2
- package/src/lib/manager/aws/{cloudTrailManager.ts → cloudtrail-manager.ts} +3 -2
- package/src/lib/manager/aws/{cloudWatchManager.ts → cloudwatch-manager.ts} +5 -3
- package/src/lib/manager/aws/{codeBuildManager.ts → codebuild-manager.ts} +3 -2
- package/src/lib/manager/aws/{dynamodbManager.ts → dynamodb-manager.ts} +3 -2
- package/src/lib/manager/aws/{ecrManager.ts → ecr-manager.ts} +3 -2
- package/src/lib/manager/aws/{ecsManager.ts → ecs-manager.ts} +3 -2
- package/src/lib/manager/aws/{eksManager.ts → eks-manager.ts} +3 -2
- package/src/lib/manager/aws/{eventManager.ts → event-manager.ts} +57 -2
- package/src/lib/manager/aws/{iamManager.ts → iam-manager.ts} +23 -17
- package/src/lib/manager/aws/index.ts +22 -22
- package/src/lib/manager/aws/{lambdaManager.ts → lambda-manager.ts} +4 -3
- package/src/lib/manager/aws/{logManager.ts → log-manager.ts} +3 -2
- package/src/lib/manager/aws/{route53Manager.ts → route53-manager.ts} +4 -3
- package/src/lib/manager/aws/{s3Manager.ts → s3-manager.ts} +3 -2
- package/src/lib/manager/aws/{secretsManager.ts → secrets-manager.ts} +3 -2
- package/src/lib/manager/aws/{snsManager.ts → sns-manager.ts} +3 -2
- package/src/lib/manager/aws/{ssmManager.ts → ssm-manager.ts} +6 -9
- package/src/lib/manager/aws/{vpcManager.ts → vpc-manager.ts} +8 -5
- package/src/lib/manager/aws/{wafManager.ts → waf-manager.ts} +3 -2
- package/src/lib/types/aws/index.ts +221 -32
- package/src/lib/utils/aws/index.ts +2 -2
- package/src/lib/utils/index.ts +8 -8
- package/theme/styles.css +113 -0
- package/.releaserc +0 -9
- package/dist/index.d.ts +0 -6
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/src/lib/common/commonConstruct.d.ts +0 -90
- package/dist/src/lib/common/commonConstruct.d.ts.map +0 -1
- package/dist/src/lib/common/commonConstruct.js +0 -144
- package/dist/src/lib/common/commonConstruct.js.map +0 -1
- package/dist/src/lib/common/commonStack.d.ts +0 -65
- package/dist/src/lib/common/commonStack.d.ts.map +0 -1
- package/dist/src/lib/common/commonStack.js +0 -158
- package/dist/src/lib/common/commonStack.js.map +0 -1
- package/dist/src/lib/common/index.d.ts +0 -3
- package/dist/src/lib/common/index.d.ts.map +0 -1
- package/dist/src/lib/common/index.js +0 -15
- package/dist/src/lib/common/index.js.map +0 -1
- package/dist/src/lib/construct/graphQLApiLambda.d.ts +0 -122
- package/dist/src/lib/construct/graphQLApiLambda.d.ts.map +0 -1
- package/dist/src/lib/construct/graphQLApiLambda.js +0 -211
- package/dist/src/lib/construct/graphQLApiLambda.js.map +0 -1
- package/dist/src/lib/construct/index.d.ts +0 -4
- package/dist/src/lib/construct/index.d.ts.map +0 -1
- package/dist/src/lib/construct/index.js +0 -16
- package/dist/src/lib/construct/index.js.map +0 -1
- package/dist/src/lib/construct/siteWithEcsBackend.d.ts +0 -179
- package/dist/src/lib/construct/siteWithEcsBackend.d.ts.map +0 -1
- package/dist/src/lib/construct/siteWithEcsBackend.js +0 -339
- package/dist/src/lib/construct/siteWithEcsBackend.js.map +0 -1
- package/dist/src/lib/construct/staticSite.d.ts +0 -106
- package/dist/src/lib/construct/staticSite.d.ts.map +0 -1
- package/dist/src/lib/construct/staticSite.js +0 -180
- package/dist/src/lib/construct/staticSite.js.map +0 -1
- package/dist/src/lib/manager/aws/acmManager.d.ts +0 -46
- package/dist/src/lib/manager/aws/acmManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/acmManager.js +0 -90
- package/dist/src/lib/manager/aws/acmManager.js.map +0 -1
- package/dist/src/lib/manager/aws/apiManager.d.ts +0 -43
- package/dist/src/lib/manager/aws/apiManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/apiManager.js +0 -111
- package/dist/src/lib/manager/aws/apiManager.js.map +0 -1
- package/dist/src/lib/manager/aws/appConfigManager.d.ts +0 -64
- package/dist/src/lib/manager/aws/appConfigManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/appConfigManager.js +0 -147
- package/dist/src/lib/manager/aws/appConfigManager.js.map +0 -1
- package/dist/src/lib/manager/aws/cloudFrontManager.d.ts +0 -112
- package/dist/src/lib/manager/aws/cloudFrontManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/cloudFrontManager.js +0 -282
- package/dist/src/lib/manager/aws/cloudFrontManager.js.map +0 -1
- package/dist/src/lib/manager/aws/cloudTrailManager.d.ts +0 -48
- package/dist/src/lib/manager/aws/cloudTrailManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/cloudTrailManager.js +0 -99
- package/dist/src/lib/manager/aws/cloudTrailManager.js.map +0 -1
- package/dist/src/lib/manager/aws/cloudWatchManager.d.ts +0 -121
- package/dist/src/lib/manager/aws/cloudWatchManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/cloudWatchManager.js +0 -351
- package/dist/src/lib/manager/aws/cloudWatchManager.js.map +0 -1
- package/dist/src/lib/manager/aws/codeBuildManager.d.ts +0 -40
- package/dist/src/lib/manager/aws/codeBuildManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/codeBuildManager.js +0 -94
- package/dist/src/lib/manager/aws/codeBuildManager.js.map +0 -1
- package/dist/src/lib/manager/aws/dynamodbManager.d.ts +0 -32
- package/dist/src/lib/manager/aws/dynamodbManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/dynamodbManager.js +0 -79
- package/dist/src/lib/manager/aws/dynamodbManager.js.map +0 -1
- package/dist/src/lib/manager/aws/ecrManager.d.ts +0 -31
- package/dist/src/lib/manager/aws/ecrManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/ecrManager.js +0 -60
- package/dist/src/lib/manager/aws/ecrManager.js.map +0 -1
- package/dist/src/lib/manager/aws/ecsManager.d.ts +0 -48
- package/dist/src/lib/manager/aws/ecsManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/ecsManager.js +0 -103
- package/dist/src/lib/manager/aws/ecsManager.js.map +0 -1
- package/dist/src/lib/manager/aws/eksManager.d.ts +0 -36
- package/dist/src/lib/manager/aws/eksManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/eksManager.js +0 -109
- package/dist/src/lib/manager/aws/eksManager.js.map +0 -1
- package/dist/src/lib/manager/aws/eventManager.d.ts +0 -51
- package/dist/src/lib/manager/aws/eventManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/eventManager.js +0 -120
- package/dist/src/lib/manager/aws/eventManager.js.map +0 -1
- package/dist/src/lib/manager/aws/iamManager.d.ts +0 -156
- package/dist/src/lib/manager/aws/iamManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/iamManager.js +0 -376
- package/dist/src/lib/manager/aws/iamManager.js.map +0 -1
- package/dist/src/lib/manager/aws/index.d.ts +0 -23
- package/dist/src/lib/manager/aws/index.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/index.js +0 -35
- package/dist/src/lib/manager/aws/index.js.map +0 -1
- package/dist/src/lib/manager/aws/lambdaManager.d.ts +0 -94
- package/dist/src/lib/manager/aws/lambdaManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/lambdaManager.js +0 -196
- package/dist/src/lib/manager/aws/lambdaManager.js.map +0 -1
- package/dist/src/lib/manager/aws/logManager.d.ts +0 -51
- package/dist/src/lib/manager/aws/logManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/logManager.js +0 -108
- package/dist/src/lib/manager/aws/logManager.js.map +0 -1
- package/dist/src/lib/manager/aws/route53Manager.d.ts +0 -68
- package/dist/src/lib/manager/aws/route53Manager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/route53Manager.js +0 -158
- package/dist/src/lib/manager/aws/route53Manager.js.map +0 -1
- package/dist/src/lib/manager/aws/s3Manager.d.ts +0 -73
- package/dist/src/lib/manager/aws/s3Manager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/s3Manager.js +0 -202
- package/dist/src/lib/manager/aws/s3Manager.js.map +0 -1
- package/dist/src/lib/manager/aws/secretsManager.d.ts +0 -57
- package/dist/src/lib/manager/aws/secretsManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/secretsManager.js +0 -116
- package/dist/src/lib/manager/aws/secretsManager.js.map +0 -1
- package/dist/src/lib/manager/aws/snsManager.d.ts +0 -42
- package/dist/src/lib/manager/aws/snsManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/snsManager.js +0 -90
- package/dist/src/lib/manager/aws/snsManager.js.map +0 -1
- package/dist/src/lib/manager/aws/ssmManager.d.ts +0 -64
- package/dist/src/lib/manager/aws/ssmManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/ssmManager.js +0 -128
- package/dist/src/lib/manager/aws/ssmManager.js.map +0 -1
- package/dist/src/lib/manager/aws/vpcManager.d.ts +0 -44
- package/dist/src/lib/manager/aws/vpcManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/vpcManager.js +0 -92
- package/dist/src/lib/manager/aws/vpcManager.js.map +0 -1
- package/dist/src/lib/manager/aws/wafManager.d.ts +0 -39
- package/dist/src/lib/manager/aws/wafManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/wafManager.js +0 -89
- package/dist/src/lib/manager/aws/wafManager.js.map +0 -1
- package/dist/src/lib/manager/index.d.ts +0 -2
- package/dist/src/lib/manager/index.d.ts.map +0 -1
- package/dist/src/lib/manager/index.js +0 -14
- package/dist/src/lib/manager/index.js.map +0 -1
- package/dist/src/lib/types/aws/index.d.ts +0 -294
- package/dist/src/lib/types/aws/index.d.ts.map +0 -1
- package/dist/src/lib/types/aws/index.js +0 -3
- package/dist/src/lib/types/aws/index.js.map +0 -1
- package/dist/src/lib/types/index.d.ts +0 -2
- package/dist/src/lib/types/index.d.ts.map +0 -1
- package/dist/src/lib/types/index.js +0 -14
- package/dist/src/lib/types/index.js.map +0 -1
- package/dist/src/lib/utils/aws/index.d.ts +0 -16
- package/dist/src/lib/utils/aws/index.d.ts.map +0 -1
- package/dist/src/lib/utils/aws/index.js +0 -50
- package/dist/src/lib/utils/aws/index.js.map +0 -1
- package/dist/src/lib/utils/index.d.ts +0 -63
- package/dist/src/lib/utils/index.d.ts.map +0 -1
- package/dist/src/lib/utils/index.js +0 -85
- package/dist/src/lib/utils/index.js.map +0 -1
|
@@ -5,13 +5,15 @@ import * as utils from '../../utils'
|
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* @stability stable
|
|
8
|
-
* @category
|
|
8
|
+
* @category cdk-utils.vpc-manager
|
|
9
|
+
* @subcategory Construct
|
|
9
10
|
*/
|
|
10
11
|
const CommonVpcIdentifier = 'CommonVpc'
|
|
11
12
|
|
|
12
13
|
/**
|
|
13
|
-
* @category
|
|
14
|
-
* @
|
|
14
|
+
* @category cdk-utils.vpc-manager
|
|
15
|
+
* @subcategory Construct
|
|
16
|
+
* @classdesc Provides operations on AWS VPC.
|
|
15
17
|
* - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
|
|
16
18
|
* - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
|
|
17
19
|
* @example
|
|
@@ -76,8 +78,9 @@ export class VpcManager {
|
|
|
76
78
|
* @summary Method to retrieve a common vpc
|
|
77
79
|
* @param {string} id scoped id of the resource
|
|
78
80
|
* @param {common.CommonConstruct} scope scope in which this resource is defined
|
|
81
|
+
* @param {string?} vpcIdentifier optional identifier for VPC
|
|
79
82
|
*/
|
|
80
|
-
public retrieveCommonVpc(id: string, scope: common.CommonConstruct) {
|
|
81
|
-
return ec2.Vpc.fromLookup(scope, `${id}`, { vpcName: CommonVpcIdentifier })
|
|
83
|
+
public retrieveCommonVpc(id: string, scope: common.CommonConstruct, vpcIdentifier?: string) {
|
|
84
|
+
return ec2.Vpc.fromLookup(scope, `${id}`, { vpcName: vpcIdentifier ?? CommonVpcIdentifier })
|
|
82
85
|
}
|
|
83
86
|
}
|
|
@@ -5,8 +5,9 @@ import * as utils from '../../utils'
|
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* @stability stable
|
|
8
|
-
* @category
|
|
9
|
-
* @
|
|
8
|
+
* @category cdk-utils.waf-manager
|
|
9
|
+
* @subcategory Construct
|
|
10
|
+
* @classdesc Provides operations on AWS WAF.
|
|
10
11
|
* - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
|
|
11
12
|
* - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
|
|
12
13
|
* @example
|
|
@@ -12,16 +12,20 @@ import * as ecsPatterns from 'aws-cdk-lib/aws-ecs-patterns'
|
|
|
12
12
|
import * as eks from 'aws-cdk-lib/aws-eks'
|
|
13
13
|
import * as elb from 'aws-cdk-lib/aws-elasticloadbalancingv2'
|
|
14
14
|
import * as events from 'aws-cdk-lib/aws-events'
|
|
15
|
+
import * as iam from 'aws-cdk-lib/aws-iam'
|
|
15
16
|
import * as lambda from 'aws-cdk-lib/aws-lambda'
|
|
17
|
+
import * as destinations from 'aws-cdk-lib/aws-lambda-destinations'
|
|
16
18
|
import * as logs from 'aws-cdk-lib/aws-logs'
|
|
17
19
|
import * as route53 from 'aws-cdk-lib/aws-route53'
|
|
18
20
|
import * as s3 from 'aws-cdk-lib/aws-s3'
|
|
19
21
|
import * as s3deploy from 'aws-cdk-lib/aws-s3-deployment'
|
|
20
22
|
import * as sns from 'aws-cdk-lib/aws-sns'
|
|
21
23
|
import * as wafv2 from 'aws-cdk-lib/aws-wafv2'
|
|
24
|
+
import * as types from '../index'
|
|
22
25
|
|
|
23
26
|
/**
|
|
24
|
-
* @category
|
|
27
|
+
* @category cdk-utils.app-config-manager
|
|
28
|
+
* @subcategory Properties
|
|
25
29
|
*/
|
|
26
30
|
export interface AppConfigProps {
|
|
27
31
|
id: string
|
|
@@ -33,7 +37,8 @@ export interface AppConfigProps {
|
|
|
33
37
|
}
|
|
34
38
|
|
|
35
39
|
/**
|
|
36
|
-
* @category
|
|
40
|
+
* @category cdk-utils.common-stack
|
|
41
|
+
* @subcategory Properties
|
|
37
42
|
*/
|
|
38
43
|
export interface CommonStackProps extends cdk.StackProps {
|
|
39
44
|
name: string
|
|
@@ -45,6 +50,10 @@ export interface CommonStackProps extends cdk.StackProps {
|
|
|
45
50
|
stageContextPath?: string
|
|
46
51
|
}
|
|
47
52
|
|
|
53
|
+
/**
|
|
54
|
+
* @category cdk-utils.site-with-ecs-backend
|
|
55
|
+
* @subcategory Properties
|
|
56
|
+
*/
|
|
48
57
|
export interface SiteWithEcsBackendProps extends CommonStackProps {
|
|
49
58
|
siteCacheInvalidationDockerFilePath?: string
|
|
50
59
|
siteHealthCheck: HealthCheck
|
|
@@ -66,6 +75,10 @@ export interface SiteWithEcsBackendProps extends CommonStackProps {
|
|
|
66
75
|
timezone: string
|
|
67
76
|
}
|
|
68
77
|
|
|
78
|
+
/**
|
|
79
|
+
* @category cdk-utils.static-site
|
|
80
|
+
* @subcategory Properties
|
|
81
|
+
*/
|
|
69
82
|
export interface StaticSiteProps extends CommonStackProps {
|
|
70
83
|
siteCreateAltARecord: boolean
|
|
71
84
|
siteCertificate: AcmProps
|
|
@@ -85,19 +98,45 @@ export interface StaticSiteProps extends CommonStackProps {
|
|
|
85
98
|
timezone: string
|
|
86
99
|
}
|
|
87
100
|
|
|
101
|
+
/**
|
|
102
|
+
* @category cdk-utils.site-with-ecs-backend
|
|
103
|
+
* @subcategory Properties
|
|
104
|
+
*/
|
|
88
105
|
export interface HealthCheck extends elb.HealthCheck {
|
|
89
106
|
intervalInSecs: number
|
|
90
107
|
timeoutInSecs: number
|
|
91
108
|
}
|
|
92
109
|
|
|
93
|
-
|
|
110
|
+
/**
|
|
111
|
+
* @category cdk-utils.lambda-manager
|
|
112
|
+
* @subcategory Types
|
|
113
|
+
*/
|
|
114
|
+
export interface LambdaEnvironment {
|
|
94
115
|
NODE_ENV: string
|
|
95
116
|
LOG_LEVEL: string
|
|
96
117
|
TZ: string
|
|
97
118
|
}
|
|
98
119
|
|
|
120
|
+
/**
|
|
121
|
+
* @category cdk-utils.api-to-eventbridge-target
|
|
122
|
+
* @subcategory Types
|
|
123
|
+
*/
|
|
124
|
+
export interface ApiDestinedLambdaEnvironment extends LambdaEnvironment {
|
|
125
|
+
SOURCE_ID: string
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* @category cdk-utils.graphql-api-lambda
|
|
130
|
+
* @subcategory Types
|
|
131
|
+
*/
|
|
132
|
+
export interface GraphQlApiLambdaEnvironment extends LambdaEnvironment {}
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* @category cdk-utils.graphql-api-lambda
|
|
136
|
+
* @subcategory Properties
|
|
137
|
+
*/
|
|
99
138
|
export interface GraphQlApiLambdaProps extends CommonStackProps {
|
|
100
|
-
apiRootPaths
|
|
139
|
+
apiRootPaths?: string[]
|
|
101
140
|
apiSubDomain: string
|
|
102
141
|
graphQLApiCertificate: AcmProps
|
|
103
142
|
graphqlRestApi: apig.LambdaRestApiProps
|
|
@@ -112,7 +151,114 @@ export interface GraphQlApiLambdaProps extends CommonStackProps {
|
|
|
112
151
|
}
|
|
113
152
|
|
|
114
153
|
/**
|
|
115
|
-
* @category
|
|
154
|
+
* @category cdk-utils.api-to-eventbridge-target
|
|
155
|
+
* @subcategory Types
|
|
156
|
+
*/
|
|
157
|
+
export interface ApiDestinationEventType {
|
|
158
|
+
eventBus: events.IEventBus
|
|
159
|
+
logGroupFailure: logs.LogGroup
|
|
160
|
+
logGroupSuccess: logs.LogGroup
|
|
161
|
+
ruleFailure: events.Rule
|
|
162
|
+
ruleSuccess: events.Rule
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* @category cdk-utils.api-to-eventbridge-target
|
|
167
|
+
* @subcategory Types
|
|
168
|
+
*/
|
|
169
|
+
export interface ApiDestinedRestApiType {
|
|
170
|
+
api: apig.RestApi
|
|
171
|
+
certificate: acm.ICertificate
|
|
172
|
+
domain: apig.DomainName
|
|
173
|
+
errorResponseModel: apig.Model
|
|
174
|
+
hostedZone: route53.IHostedZone
|
|
175
|
+
integration: apig.Integration
|
|
176
|
+
integrationErrorResponse: apig.IntegrationResponse
|
|
177
|
+
integrationRequestParameters: { [p: string]: string }
|
|
178
|
+
integrationRequestTemplates: { [p: string]: string }
|
|
179
|
+
integrationResponse: apig.IntegrationResponse
|
|
180
|
+
method: apig.Method
|
|
181
|
+
methodErrorResponse: apig.MethodResponse
|
|
182
|
+
methodResponse: apig.MethodResponse
|
|
183
|
+
resource: apig.Resource
|
|
184
|
+
responseModel: apig.Model
|
|
185
|
+
topic: sns.Topic
|
|
186
|
+
topicRole: iam.Role
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* @category cdk-utils.api-to-eventbridge-target
|
|
191
|
+
* @subcategory Types
|
|
192
|
+
*/
|
|
193
|
+
export interface ApiDestinedLambdaType {
|
|
194
|
+
destinationFailure: destinations.EventBridgeDestination
|
|
195
|
+
destinationSuccess: destinations.EventBridgeDestination
|
|
196
|
+
environment: types.ApiDestinedLambdaEnvironment
|
|
197
|
+
function: lambda.Function
|
|
198
|
+
layers: lambda.LayerVersion[]
|
|
199
|
+
policy: iam.PolicyDocument
|
|
200
|
+
role: iam.Role
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* @category cdk-utils.api-to-eventbridge-target
|
|
205
|
+
* @subcategory Properties
|
|
206
|
+
*/
|
|
207
|
+
export interface ApiToEventBridgeTargetRestApiProps {
|
|
208
|
+
certificate: AcmProps
|
|
209
|
+
integrationResponse?: apig.IntegrationResponse
|
|
210
|
+
integrationErrorResponse?: apig.IntegrationResponse
|
|
211
|
+
methodResponse?: apig.MethodResponse
|
|
212
|
+
methodErrorResponse?: apig.MethodResponse
|
|
213
|
+
integrationOptions?: apig.IntegrationOptions
|
|
214
|
+
resource: string
|
|
215
|
+
errorResponseModel?: apig.ModelOptions
|
|
216
|
+
responseModel?: apig.ModelOptions
|
|
217
|
+
restApi?: apig.RestApiProps
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* @category cdk-utils.api-to-eventbridge-target
|
|
222
|
+
* @subcategory Properties
|
|
223
|
+
*/
|
|
224
|
+
interface ApiToEventBridgeTargetLambdaProps {
|
|
225
|
+
useNative?: boolean
|
|
226
|
+
function: LambdaProps
|
|
227
|
+
source?: lambda.AssetCode
|
|
228
|
+
layerSource?: lambda.AssetCode
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* @category cdk-utils.api-to-eventbridge-target
|
|
233
|
+
* @subcategory Properties
|
|
234
|
+
*/
|
|
235
|
+
interface ApiToEventBridgeTargetEventProps {
|
|
236
|
+
eventBusName?: string
|
|
237
|
+
logGroupSuccess?: LogProps
|
|
238
|
+
logGroupFailure?: LogProps
|
|
239
|
+
ruleSuccess: EventRuleProps
|
|
240
|
+
ruleFailure: EventRuleProps
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* @category cdk-utils.api-to-eventbridge-target
|
|
245
|
+
* @subcategory Properties
|
|
246
|
+
*/
|
|
247
|
+
export interface ApiToEventBridgeTargetProps extends CommonStackProps {
|
|
248
|
+
apiRootPaths?: string[]
|
|
249
|
+
apiSubDomain: string
|
|
250
|
+
api: ApiToEventBridgeTargetRestApiProps
|
|
251
|
+
event: ApiToEventBridgeTargetEventProps
|
|
252
|
+
lambda: ApiToEventBridgeTargetLambdaProps
|
|
253
|
+
logLevel: string
|
|
254
|
+
nodeEnv: string
|
|
255
|
+
timezone: string
|
|
256
|
+
useExistingHostedZone: boolean
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* @category cdk-utils.acm-manager
|
|
261
|
+
* @subcategory Properties
|
|
116
262
|
*/
|
|
117
263
|
export interface AcmProps extends acm.CertificateProps {
|
|
118
264
|
certificateSsmName?: string
|
|
@@ -124,7 +270,8 @@ export interface AcmProps extends acm.CertificateProps {
|
|
|
124
270
|
}
|
|
125
271
|
|
|
126
272
|
/**
|
|
127
|
-
* @category
|
|
273
|
+
* @category cdk-utils.ssm-manager
|
|
274
|
+
* @subcategory Properties
|
|
128
275
|
*/
|
|
129
276
|
export interface SSMParameterReaderProps {
|
|
130
277
|
parameterName: string
|
|
@@ -132,12 +279,14 @@ export interface SSMParameterReaderProps {
|
|
|
132
279
|
}
|
|
133
280
|
|
|
134
281
|
/**
|
|
135
|
-
* @category
|
|
282
|
+
* @category cdk-utils.cloudfront-manager
|
|
283
|
+
* @subcategory Properties
|
|
136
284
|
*/
|
|
137
285
|
export interface CloudFrontProps extends cloudfront.CloudFrontWebDistributionProps {}
|
|
138
286
|
|
|
139
287
|
/**
|
|
140
|
-
* @category
|
|
288
|
+
* @category cdk-utils.cloudfront-manager
|
|
289
|
+
* @subcategory Properties
|
|
141
290
|
*/
|
|
142
291
|
export interface CloudfrontFunctionProps extends cloudfront.FunctionProps {
|
|
143
292
|
functionFilePath: string
|
|
@@ -145,17 +294,20 @@ export interface CloudfrontFunctionProps extends cloudfront.FunctionProps {
|
|
|
145
294
|
}
|
|
146
295
|
|
|
147
296
|
/**
|
|
148
|
-
* @category
|
|
297
|
+
* @category cdk-utils.cloudfront-manager
|
|
298
|
+
* @subcategory Properties
|
|
149
299
|
*/
|
|
150
300
|
export interface DistributionProps extends cloudfront.DistributionProps {}
|
|
151
301
|
|
|
152
302
|
/**
|
|
153
|
-
* @category
|
|
303
|
+
* @category cdk-utils.cloudtrail-manager
|
|
304
|
+
* @subcategory Properties
|
|
154
305
|
*/
|
|
155
306
|
export interface CloudTrailProps extends cloudtrail.CfnTrailProps {}
|
|
156
307
|
|
|
157
308
|
/**
|
|
158
|
-
* @category
|
|
309
|
+
* @category cdk-utils.cloudwatch-manager
|
|
310
|
+
* @subcategory Properties
|
|
159
311
|
*/
|
|
160
312
|
export interface DashboardProps extends watch.DashboardProps {
|
|
161
313
|
positionX: number
|
|
@@ -163,7 +315,8 @@ export interface DashboardProps extends watch.DashboardProps {
|
|
|
163
315
|
}
|
|
164
316
|
|
|
165
317
|
/**
|
|
166
|
-
* @category
|
|
318
|
+
* @category cdk-utils.cloudwatch-manager
|
|
319
|
+
* @subcategory Properties
|
|
167
320
|
*/
|
|
168
321
|
export interface AlarmProps extends watch.AlarmProps {
|
|
169
322
|
expression?: string
|
|
@@ -172,7 +325,8 @@ export interface AlarmProps extends watch.AlarmProps {
|
|
|
172
325
|
}
|
|
173
326
|
|
|
174
327
|
/**
|
|
175
|
-
* @category
|
|
328
|
+
* @category cdk-utils.cloudwatch-manager
|
|
329
|
+
* @subcategory Properties
|
|
176
330
|
*/
|
|
177
331
|
export interface MetricProps extends watch.MetricProps {
|
|
178
332
|
stageSuffix: boolean
|
|
@@ -182,7 +336,8 @@ export interface MetricProps extends watch.MetricProps {
|
|
|
182
336
|
}
|
|
183
337
|
|
|
184
338
|
/**
|
|
185
|
-
* @category
|
|
339
|
+
* @category cdk-utils.cloudwatch-manager
|
|
340
|
+
* @subcategory Properties
|
|
186
341
|
*/
|
|
187
342
|
export interface TextWidgetProps extends watch.TextWidgetProps {
|
|
188
343
|
positionX: number
|
|
@@ -190,7 +345,8 @@ export interface TextWidgetProps extends watch.TextWidgetProps {
|
|
|
190
345
|
}
|
|
191
346
|
|
|
192
347
|
/**
|
|
193
|
-
* @category
|
|
348
|
+
* @category cdk-utils.cloudwatch-manager
|
|
349
|
+
* @subcategory Properties
|
|
194
350
|
*/
|
|
195
351
|
export interface NumericWidgetProps extends watch.SingleValueWidgetProps {
|
|
196
352
|
positionX: number
|
|
@@ -199,7 +355,8 @@ export interface NumericWidgetProps extends watch.SingleValueWidgetProps {
|
|
|
199
355
|
}
|
|
200
356
|
|
|
201
357
|
/**
|
|
202
|
-
* @category
|
|
358
|
+
* @category cdk-utils.cloudwatch-manager
|
|
359
|
+
* @subcategory Properties
|
|
203
360
|
*/
|
|
204
361
|
export interface GraphWidgetProps extends watch.GraphWidgetProps {
|
|
205
362
|
positionX: number
|
|
@@ -208,7 +365,8 @@ export interface GraphWidgetProps extends watch.GraphWidgetProps {
|
|
|
208
365
|
}
|
|
209
366
|
|
|
210
367
|
/**
|
|
211
|
-
* @category
|
|
368
|
+
* @category cdk-utils.cloudwatch-manager
|
|
369
|
+
* @subcategory Properties
|
|
212
370
|
*/
|
|
213
371
|
export interface AlarmStatusWidgetProps extends watch.AlarmStatusWidgetProps {
|
|
214
372
|
positionX: number
|
|
@@ -217,7 +375,8 @@ export interface AlarmStatusWidgetProps extends watch.AlarmStatusWidgetProps {
|
|
|
217
375
|
}
|
|
218
376
|
|
|
219
377
|
/**
|
|
220
|
-
* @category
|
|
378
|
+
* @category cdk-utils.cloudwatch-manager
|
|
379
|
+
* @subcategory Properties
|
|
221
380
|
*/
|
|
222
381
|
export interface LogQueryWidgetProps extends watch.LogQueryWidgetProps {
|
|
223
382
|
positionX: number
|
|
@@ -225,17 +384,20 @@ export interface LogQueryWidgetProps extends watch.LogQueryWidgetProps {
|
|
|
225
384
|
}
|
|
226
385
|
|
|
227
386
|
/**
|
|
228
|
-
* @category
|
|
387
|
+
* @category cdk-utils.ecs-manager
|
|
388
|
+
* @subcategory Properties
|
|
229
389
|
*/
|
|
230
390
|
export interface EcsClusterProps extends ecs.ClusterProps {}
|
|
231
391
|
|
|
232
392
|
/**
|
|
233
|
-
* @category
|
|
393
|
+
* @category cdk-utils.ecs-manager
|
|
394
|
+
* @subcategory Properties
|
|
234
395
|
*/
|
|
235
396
|
export interface EcsTaskProps extends ecs.TaskDefinitionProps {}
|
|
236
397
|
|
|
237
398
|
/**
|
|
238
|
-
* @category
|
|
399
|
+
* @category cdk-utils.eks-manager
|
|
400
|
+
* @subcategory Properties
|
|
239
401
|
*/
|
|
240
402
|
export interface EksClusterProps extends eks.ClusterProps {
|
|
241
403
|
appContainerPort: number
|
|
@@ -243,31 +405,48 @@ export interface EksClusterProps extends eks.ClusterProps {
|
|
|
243
405
|
}
|
|
244
406
|
|
|
245
407
|
/**
|
|
246
|
-
* @category
|
|
408
|
+
* @category cdk-utils.event-manager
|
|
409
|
+
* @subcategory Properties
|
|
247
410
|
*/
|
|
248
411
|
export interface RuleProps extends events.CfnRuleProps {}
|
|
249
412
|
|
|
250
413
|
/**
|
|
251
|
-
* @category
|
|
414
|
+
* @category cdk-utils.event-manager
|
|
415
|
+
* @subcategory Properties
|
|
416
|
+
*/
|
|
417
|
+
export interface EventRuleProps extends events.RuleProps {}
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* @category cdk-utils.event-manager
|
|
421
|
+
* @subcategory Properties
|
|
422
|
+
*/
|
|
423
|
+
export interface EventBusProps extends events.EventBusProps {}
|
|
424
|
+
|
|
425
|
+
/**
|
|
426
|
+
* @category cdk-utils.lambda-manager
|
|
427
|
+
* @subcategory Properties
|
|
252
428
|
*/
|
|
253
429
|
export interface LambdaProps extends lambda.FunctionProps {
|
|
254
430
|
timeoutInSecs?: number
|
|
255
431
|
}
|
|
256
432
|
|
|
257
433
|
/**
|
|
258
|
-
* @category
|
|
434
|
+
* @category cdk-utils.lambda-manager
|
|
435
|
+
* @subcategory Properties
|
|
259
436
|
*/
|
|
260
437
|
export interface LambdaEdgeProps extends cloudfront.experimental.EdgeFunctionProps {
|
|
261
438
|
timeoutInSecs?: number
|
|
262
439
|
}
|
|
263
440
|
|
|
264
441
|
/**
|
|
265
|
-
* @category
|
|
442
|
+
* @category cdk-utils.cloudwatch-manager
|
|
443
|
+
* @subcategory Properties
|
|
266
444
|
*/
|
|
267
445
|
export interface LogProps extends logs.LogGroupProps {}
|
|
268
446
|
|
|
269
447
|
/**
|
|
270
|
-
* @category
|
|
448
|
+
* @category cdk-utils.cloudwatch-manager
|
|
449
|
+
* @subcategory Properties
|
|
271
450
|
*/
|
|
272
451
|
export interface MetricFilterProps extends logs.MetricFilterProps {
|
|
273
452
|
periodInSecs: number
|
|
@@ -275,24 +454,31 @@ export interface MetricFilterProps extends logs.MetricFilterProps {
|
|
|
275
454
|
}
|
|
276
455
|
|
|
277
456
|
/**
|
|
278
|
-
* @category
|
|
457
|
+
* @category cdk-utils.route53-manager
|
|
458
|
+
* @subcategory Properties
|
|
279
459
|
*/
|
|
280
460
|
export interface Route53Props extends route53.HostedZoneProps {
|
|
281
461
|
useExistingHostedZone?: boolean
|
|
282
462
|
}
|
|
283
463
|
|
|
464
|
+
/**
|
|
465
|
+
* @category cdk-utils.s3-manager
|
|
466
|
+
* @subcategory Properties
|
|
467
|
+
*/
|
|
284
468
|
export interface LifecycleRule extends s3.LifecycleRule {
|
|
285
469
|
expirationInDays?: number
|
|
286
470
|
noncurrentVersionExpirationInDays?: number
|
|
287
471
|
}
|
|
288
472
|
|
|
289
473
|
/**
|
|
290
|
-
* @category
|
|
474
|
+
* @category cdk-utils.dynamodb-manager
|
|
475
|
+
* @subcategory Properties
|
|
291
476
|
*/
|
|
292
477
|
export interface TableProps extends dynamodb.TableProps {}
|
|
293
478
|
|
|
294
479
|
/**
|
|
295
|
-
* @category
|
|
480
|
+
* @category cdk-utils.s3-manager
|
|
481
|
+
* @subcategory Properties
|
|
296
482
|
*/
|
|
297
483
|
export interface S3BucketProps extends s3.BucketProps {
|
|
298
484
|
enableEventBridge?: boolean
|
|
@@ -303,16 +489,19 @@ export interface S3BucketProps extends s3.BucketProps {
|
|
|
303
489
|
}
|
|
304
490
|
|
|
305
491
|
/**
|
|
306
|
-
* @category
|
|
492
|
+
* @category cdk-utils.sns-manager
|
|
493
|
+
* @subcategory Properties
|
|
307
494
|
*/
|
|
308
495
|
export interface SubscriptionProps extends sns.TopicProps {}
|
|
309
496
|
|
|
310
497
|
/**
|
|
311
|
-
* @category
|
|
498
|
+
* @category cdk-utils.waf-manager
|
|
499
|
+
* @subcategory Properties
|
|
312
500
|
*/
|
|
313
501
|
export interface WafIPSetProps extends wafv2.CfnIPSetProps {}
|
|
314
502
|
|
|
315
503
|
/**
|
|
316
|
-
* @category
|
|
504
|
+
* @category cdk-utils.waf-manager
|
|
505
|
+
* @subcategory Properties
|
|
317
506
|
*/
|
|
318
507
|
export interface WafWebACLProps extends wafv2.CfnWebACLProps {}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as cdk from 'aws-cdk-lib'
|
|
2
2
|
import * as _ from 'lodash'
|
|
3
|
-
import { CommonConstruct } from '../../common
|
|
3
|
+
import { CommonConstruct } from '../../common'
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* @category
|
|
6
|
+
* @category cdk-utils.utils
|
|
7
7
|
* @summary Helper method to add CloudFormation outputs from the construct
|
|
8
8
|
* @param {string} id scoped id of the resource
|
|
9
9
|
* @param {CommonConstruct} scope scope in which this resource is defined
|
package/src/lib/utils/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from './aws'
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* @category
|
|
4
|
+
* @category cdk-utils.utils
|
|
5
5
|
*/
|
|
6
6
|
const defaultResponseObject = {
|
|
7
7
|
statusCode: 200,
|
|
@@ -13,7 +13,7 @@ const defaultResponseObject = {
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* @category cdk-utils.utils
|
|
17
17
|
*/
|
|
18
18
|
export enum LogLevel {
|
|
19
19
|
DEBUG = 'DEBUG',
|
|
@@ -25,28 +25,28 @@ export enum LogLevel {
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
|
-
* @category
|
|
28
|
+
* @category cdk-utils.utils
|
|
29
29
|
* @param stage
|
|
30
30
|
*/
|
|
31
31
|
export const isDevStage = (stage: string) => stage === 'dev'
|
|
32
32
|
/**
|
|
33
|
-
* @category
|
|
33
|
+
* @category cdk-utils.utils
|
|
34
34
|
* @param stage
|
|
35
35
|
*/
|
|
36
36
|
export const isTestStage = (stage: string) => stage === 'tst'
|
|
37
37
|
/**
|
|
38
|
-
* @category
|
|
38
|
+
* @category cdk-utils.utils
|
|
39
39
|
* @param stage
|
|
40
40
|
*/
|
|
41
41
|
export const isUatStage = (stage: string) => stage === 'uat'
|
|
42
42
|
/**
|
|
43
|
-
* @category
|
|
43
|
+
* @category cdk-utils.utils
|
|
44
44
|
* @param stage
|
|
45
45
|
*/
|
|
46
46
|
export const isPrdStage = (stage: string) => stage === 'prd'
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
|
-
* @category
|
|
49
|
+
* @category cdk-utils.utils
|
|
50
50
|
* @param error
|
|
51
51
|
*/
|
|
52
52
|
export function redirectError(error: any) {
|
|
@@ -58,7 +58,7 @@ export function redirectError(error: any) {
|
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
|
-
* @category
|
|
61
|
+
* @category cdk-utils.utils
|
|
62
62
|
* @param message
|
|
63
63
|
*/
|
|
64
64
|
export function redirectSuccess(message: any) {
|
package/theme/styles.css
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
body {
|
|
2
|
+
font-family: Gotham, system-ui;
|
|
3
|
+
!important;
|
|
4
|
+
color: #fff !important;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
h1, h2, h3, h4, h5, h6 p, strong, span {
|
|
8
|
+
color: #fff !important;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.table {
|
|
12
|
+
background-color: rgb(35, 48, 68);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
th, td, code {
|
|
16
|
+
color: #fff !important;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.param-type, .tag:not(body) {
|
|
20
|
+
background-color: rgb(71, 130, 218);
|
|
21
|
+
border-radius: 4px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
a {
|
|
25
|
+
color: #00e7eb !important;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.button {
|
|
29
|
+
background-color: #4782da;
|
|
30
|
+
color: #fff !important;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.mermaid {
|
|
34
|
+
background-color: #fff;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.mermaid span {
|
|
38
|
+
color: #000 !important;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.top-nav {
|
|
42
|
+
background-color: rgb(35, 48, 68);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
#main, .core, .content {
|
|
46
|
+
background-color: rgb(27, 38, 53) !important;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.sidebar {
|
|
50
|
+
width: 450px !important;
|
|
51
|
+
border-right: none !important;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.side-nav {
|
|
55
|
+
width: 350px !important;
|
|
56
|
+
border-left: none !important;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.category h2 {
|
|
60
|
+
background: rgb(71, 130, 218);
|
|
61
|
+
border-radius: 25px;
|
|
62
|
+
color: #fff !important;
|
|
63
|
+
padding-left: 10px;
|
|
64
|
+
font-weight: bold;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.category h2:before {
|
|
68
|
+
content: '⇝';
|
|
69
|
+
padding-right: 10px;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.category h3 {
|
|
73
|
+
font-weight: bold;
|
|
74
|
+
color: #2b74b1;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.sidebar a:hover, .sidebar a.active, .side-nav a:hover, .side-nav a.is-active {
|
|
78
|
+
color: #ffdc7d !important;
|
|
79
|
+
font-weight: bold;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.logo h1 {
|
|
83
|
+
color: #fff;
|
|
84
|
+
font-weight: bold;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.link {
|
|
88
|
+
color: #fff !important;
|
|
89
|
+
font-weight: bold;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.dropdown-content {
|
|
93
|
+
background-color: rgb(27, 38, 53) !important;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
#search {
|
|
97
|
+
background: none;
|
|
98
|
+
color: rgb(238, 238, 238);
|
|
99
|
+
border-color: #999999;
|
|
100
|
+
border-radius: 4px;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
#search::placeholder {
|
|
104
|
+
color: rgb(238, 238, 238);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.logo .image img {
|
|
108
|
+
width: 4% !important;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.logo a {
|
|
112
|
+
display: inline-block;
|
|
113
|
+
}
|