@gradientedge/cdk-utils 4.2.3 → 4.4.0
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 +38 -23
- package/api-docs/AcmManager.html +619 -0
- package/api-docs/AcmProps.html +235 -0
- package/api-docs/AlarmProps.html +235 -0
- package/api-docs/AlarmStatusWidgetProps.html +235 -0
- package/api-docs/ApiDestinationEvent.html +294 -0
- package/api-docs/ApiDestinationEventType.html +235 -0
- package/api-docs/ApiDestinedLambda.html +294 -0
- package/api-docs/ApiDestinedLambdaEnvironment.html +235 -0
- package/api-docs/ApiDestinedLambdaType.html +235 -0
- package/api-docs/ApiDestinedRestApi.html +294 -0
- package/api-docs/ApiDestinedRestApiType.html +235 -0
- package/api-docs/ApiManager.html +763 -0
- package/api-docs/ApiToEventBridgeTarget.html +1874 -0
- package/api-docs/ApiToEventBridgeTarget.jpg +0 -0
- package/api-docs/ApiToEventBridgeTargetEventProps.html +235 -0
- package/api-docs/ApiToEventBridgeTargetLambdaProps.html +235 -0
- package/api-docs/ApiToEventBridgeTargetProps.html +235 -0
- package/api-docs/AppConfigManager.html +1200 -0
- package/api-docs/AppConfigProps.html +235 -0
- package/api-docs/CloudFrontManager.html +2399 -0
- package/api-docs/CloudFrontProps.html +235 -0
- package/api-docs/CloudTrailManager.html +634 -0
- package/api-docs/CloudTrailProps.html +235 -0
- package/api-docs/CloudWatchManager.html +2983 -0
- package/api-docs/CloudfrontFunctionProps.html +235 -0
- package/api-docs/CodeBuildManager.html +733 -0
- package/api-docs/CommonConstruct.html +1296 -0
- package/api-docs/CommonStack.html +810 -0
- package/api-docs/CommonStackProps.html +235 -0
- package/api-docs/DashboardProps.html +235 -0
- package/api-docs/DistributionProps.html +235 -0
- package/api-docs/DynamodbManager.html +527 -0
- package/api-docs/EcrManager.html +527 -0
- package/api-docs/EcsClusterProps.html +235 -0
- package/api-docs/EcsManager.html +877 -0
- package/api-docs/EcsTaskProps.html +235 -0
- package/api-docs/EksClusterProps.html +235 -0
- package/api-docs/EksManager.html +577 -0
- package/api-docs/EventBusProps.html +235 -0
- package/api-docs/EventManager.html +1451 -0
- package/api-docs/EventRuleProps.html +235 -0
- package/api-docs/GraphQLApiLambda.html +1668 -0
- package/api-docs/GraphQLApiLambda.jpg +0 -0
- package/api-docs/GraphQlApiLambdaEnvironment.html +235 -0
- package/api-docs/GraphQlApiLambdaProps.html +235 -0
- package/api-docs/GraphWidgetProps.html +235 -0
- package/api-docs/HealthCheck.html +235 -0
- package/api-docs/IamManager.html +3818 -0
- package/api-docs/LambdaEdgeProps.html +235 -0
- package/api-docs/LambdaEnvironment.html +235 -0
- package/api-docs/LambdaManager.html +2375 -0
- package/api-docs/LambdaProps.html +235 -0
- package/api-docs/LogManager.html +952 -0
- package/api-docs/LogProps.html +235 -0
- package/api-docs/LogQueryWidgetProps.html +235 -0
- package/api-docs/MetricFilterProps.html +235 -0
- package/api-docs/MetricProps.html +235 -0
- package/api-docs/NumericWidgetProps.html +235 -0
- package/api-docs/Route53Manager.html +1457 -0
- package/api-docs/Route53Props.html +235 -0
- package/api-docs/RuleProps.html +235 -0
- package/api-docs/S3BucketProps.html +235 -0
- package/api-docs/S3Manager.html +1543 -0
- package/api-docs/SSMParameterReader.html +428 -0
- package/api-docs/SSMParameterReaderProps.html +235 -0
- package/api-docs/SecretsManager.html +1137 -0
- package/api-docs/SiteWithEcsBackend.html +2388 -0
- package/api-docs/SiteWithEcsBackendProps.html +235 -0
- package/api-docs/SnsManager.html +777 -0
- package/api-docs/SsmManager.html +952 -0
- package/api-docs/StaticSite.html +1355 -0
- package/api-docs/StaticSiteProps.html +235 -0
- package/api-docs/SubscriptionProps.html +235 -0
- package/api-docs/TableProps.html +235 -0
- package/api-docs/TextWidgetProps.html +235 -0
- package/api-docs/VpcManager.html +930 -0
- package/api-docs/WafIPSetProps.html +235 -0
- package/api-docs/WafManager.html +727 -0
- package/api-docs/WafWebACLProps.html +235 -0
- package/api-docs/common_construct.ts.html +275 -0
- package/api-docs/common_stack.ts.html +299 -0
- package/api-docs/construct_api-to-eventbridge-target_api-destination-event.ts.html +171 -0
- package/api-docs/construct_api-to-eventbridge-target_api-destined-lambda.ts.html +174 -0
- package/api-docs/construct_api-to-eventbridge-target_api-destined-rest-api.ts.html +186 -0
- package/api-docs/construct_api-to-eventbridge-target_main.ts.html +747 -0
- package/api-docs/construct_graphql-api-lambda_main.ts.html +404 -0
- package/api-docs/construct_site-with-ecs-backend_main.ts.html +540 -0
- package/api-docs/construct_static-site_main.ts.html +370 -0
- package/api-docs/global.html +1527 -0
- package/api-docs/index.html +207 -0
- package/api-docs/manager_aws_acm-manager.ts.html +232 -0
- package/api-docs/manager_aws_api-manager.ts.html +256 -0
- package/api-docs/manager_aws_app-config-manager.ts.html +305 -0
- package/api-docs/manager_aws_cloudfront-manager.ts.html +487 -0
- package/api-docs/manager_aws_cloudtrail-manager.ts.html +247 -0
- package/api-docs/manager_aws_cloudwatch-manager.ts.html +548 -0
- package/api-docs/manager_aws_codebuild-manager.ts.html +236 -0
- package/api-docs/manager_aws_dynamodb-manager.ts.html +215 -0
- package/api-docs/manager_aws_ecr-manager.ts.html +195 -0
- package/api-docs/manager_aws_ecs-manager.ts.html +255 -0
- package/api-docs/manager_aws_eks-manager.ts.html +256 -0
- package/api-docs/manager_aws_event-manager.ts.html +332 -0
- package/api-docs/manager_aws_iam-manager.ts.html +569 -0
- package/api-docs/manager_aws_lambda-manager.ts.html +396 -0
- package/api-docs/manager_aws_log-manager.ts.html +255 -0
- package/api-docs/manager_aws_route53-manager.ts.html +329 -0
- package/api-docs/manager_aws_s3-manager.ts.html +357 -0
- package/api-docs/manager_aws_secrets-manager.ts.html +270 -0
- package/api-docs/manager_aws_sns-manager.ts.html +242 -0
- package/api-docs/manager_aws_ssm-manager.ts.html +268 -0
- package/api-docs/manager_aws_vpc-manager.ts.html +238 -0
- package/api-docs/manager_aws_waf-manager.ts.html +228 -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/tutorial-Architecture.html +147 -0
- package/api-docs/tutorial-Build.html +146 -0
- package/api-docs/tutorial-CI-CD.html +150 -0
- package/api-docs/tutorial-Development.html +223 -0
- package/api-docs/types_aws_index.ts.html +611 -0
- package/api-docs/utils_aws_index.ts.html +189 -0
- package/api-docs/utils_index.ts.html +225 -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/dist/bin/uuid +2 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-browser/index.js +9 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-browser/md5.js +215 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-browser/nil.js +1 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-browser/parse.js +35 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-browser/regex.js +1 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-browser/rng.js +19 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-browser/sha1.js +96 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-browser/stringify.js +30 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v1.js +95 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v3.js +4 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v35.js +64 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v4.js +24 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-browser/v5.js +4 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-browser/validate.js +7 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-browser/version.js +11 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-node/index.js +9 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-node/md5.js +13 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-node/nil.js +1 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-node/parse.js +35 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-node/regex.js +1 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-node/rng.js +12 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-node/sha1.js +13 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-node/stringify.js +29 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-node/v1.js +95 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-node/v3.js +4 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-node/v35.js +64 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-node/v4.js +24 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-node/v5.js +4 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-node/validate.js +7 -0
- package/app/api-destined-function/node_modules/uuid/dist/esm-node/version.js +11 -0
- package/app/api-destined-function/node_modules/uuid/dist/index.js +79 -0
- package/app/api-destined-function/node_modules/uuid/dist/md5-browser.js +223 -0
- package/app/api-destined-function/node_modules/uuid/dist/md5.js +23 -0
- package/app/api-destined-function/node_modules/uuid/dist/nil.js +8 -0
- package/app/api-destined-function/node_modules/uuid/dist/parse.js +45 -0
- package/app/api-destined-function/node_modules/uuid/dist/regex.js +8 -0
- package/app/api-destined-function/node_modules/uuid/dist/rng-browser.js +26 -0
- package/app/api-destined-function/node_modules/uuid/dist/rng.js +24 -0
- package/app/api-destined-function/node_modules/uuid/dist/sha1-browser.js +104 -0
- package/app/api-destined-function/node_modules/uuid/dist/sha1.js +23 -0
- package/app/api-destined-function/node_modules/uuid/dist/stringify.js +39 -0
- package/app/api-destined-function/node_modules/uuid/dist/umd/uuid.min.js +1 -0
- package/app/api-destined-function/node_modules/uuid/dist/umd/uuidNIL.min.js +1 -0
- package/app/api-destined-function/node_modules/uuid/dist/umd/uuidParse.min.js +1 -0
- package/app/api-destined-function/node_modules/uuid/dist/umd/uuidStringify.min.js +1 -0
- package/app/api-destined-function/node_modules/uuid/dist/umd/uuidValidate.min.js +1 -0
- package/app/api-destined-function/node_modules/uuid/dist/umd/uuidVersion.min.js +1 -0
- package/app/api-destined-function/node_modules/uuid/dist/umd/uuidv1.min.js +1 -0
- package/app/api-destined-function/node_modules/uuid/dist/umd/uuidv3.min.js +1 -0
- package/app/api-destined-function/node_modules/uuid/dist/umd/uuidv4.min.js +1 -0
- package/app/api-destined-function/node_modules/uuid/dist/umd/uuidv5.min.js +1 -0
- package/app/api-destined-function/node_modules/uuid/dist/uuid-bin.js +85 -0
- package/app/api-destined-function/node_modules/uuid/dist/v1.js +107 -0
- package/app/api-destined-function/node_modules/uuid/dist/v3.js +16 -0
- package/app/api-destined-function/node_modules/uuid/dist/v35.js +78 -0
- package/app/api-destined-function/node_modules/uuid/dist/v4.js +37 -0
- package/app/api-destined-function/node_modules/uuid/dist/v5.js +16 -0
- package/app/api-destined-function/node_modules/uuid/dist/validate.js +17 -0
- package/app/api-destined-function/node_modules/uuid/dist/version.js +21 -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 +30 -0
- package/app/api-destined-function/src/lib/lambda.ts +31 -0
- package/dist/app/api-destined-function/src/lib/lambda.d.ts +19 -0
- package/dist/app/api-destined-function/src/lib/lambda.d.ts.map +1 -0
- package/dist/app/api-destined-function/src/lib/lambda.js +34 -0
- package/dist/app/api-destined-function/src/lib/lambda.js.map +1 -0
- package/dist/src/lib/common/{commonConstruct.d.ts → construct.d.ts} +3 -13
- package/dist/src/lib/common/construct.d.ts.map +1 -0
- package/dist/src/lib/common/{commonConstruct.js → construct.js} +4 -14
- package/dist/src/lib/common/construct.js.map +1 -0
- package/dist/src/lib/common/index.d.ts +2 -2
- package/dist/src/lib/common/index.d.ts.map +1 -1
- package/dist/src/lib/common/index.js +2 -2
- package/dist/src/lib/common/index.js.map +1 -1
- package/dist/src/lib/common/{commonStack.d.ts → stack.d.ts} +3 -14
- package/dist/src/lib/common/stack.d.ts.map +1 -0
- package/dist/src/lib/common/{commonStack.js → stack.js} +4 -15
- package/dist/src/lib/common/stack.js.map +1 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/api-destination-event.d.ts +16 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/api-destination-event.d.ts.map +1 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/api-destination-event.js +17 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/api-destination-event.js.map +1 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-lambda.d.ts +19 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-lambda.d.ts.map +1 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-lambda.js +19 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-lambda.js.map +1 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-rest-api.d.ts +35 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-rest-api.d.ts.map +1 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-rest-api.js +29 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/api-destined-rest-api.js.map +1 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/index.d.ts +5 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/index.d.ts.map +1 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/index.js +17 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/index.js.map +1 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/main.d.ts +134 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/main.d.ts.map +1 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/main.js +487 -0
- package/dist/src/lib/construct/api-to-eventbridge-target/main.js.map +1 -0
- package/dist/src/lib/construct/graphql-api-lambda/index.d.ts +2 -0
- package/dist/src/lib/construct/graphql-api-lambda/index.d.ts.map +1 -0
- package/dist/src/lib/construct/graphql-api-lambda/index.js +14 -0
- package/dist/src/lib/construct/graphql-api-lambda/index.js.map +1 -0
- package/dist/src/lib/construct/{graphQLApiLambda.d.ts → graphql-api-lambda/main.d.ts} +12 -22
- package/dist/src/lib/construct/graphql-api-lambda/main.d.ts.map +1 -0
- package/dist/src/lib/construct/{graphQLApiLambda.js → graphql-api-lambda/main.js} +14 -24
- package/dist/src/lib/construct/graphql-api-lambda/main.js.map +1 -0
- package/dist/src/lib/construct/index.d.ts +4 -3
- package/dist/src/lib/construct/index.d.ts.map +1 -1
- package/dist/src/lib/construct/index.js +4 -3
- package/dist/src/lib/construct/index.js.map +1 -1
- package/dist/src/lib/construct/site-with-ecs-backend/index.d.ts +2 -0
- package/dist/src/lib/construct/site-with-ecs-backend/index.d.ts.map +1 -0
- package/dist/src/lib/construct/site-with-ecs-backend/index.js +14 -0
- package/dist/src/lib/construct/site-with-ecs-backend/index.js.map +1 -0
- package/dist/src/lib/construct/{siteWithEcsBackend.d.ts → site-with-ecs-backend/main.d.ts} +4 -16
- package/dist/src/lib/construct/site-with-ecs-backend/main.d.ts.map +1 -0
- package/dist/src/lib/construct/{siteWithEcsBackend.js → site-with-ecs-backend/main.js} +4 -16
- package/dist/src/lib/construct/site-with-ecs-backend/main.js.map +1 -0
- package/dist/src/lib/construct/static-site/index.d.ts +2 -0
- package/dist/src/lib/construct/static-site/index.d.ts.map +1 -0
- package/dist/src/lib/construct/static-site/index.js +14 -0
- package/dist/src/lib/construct/static-site/index.js.map +1 -0
- package/dist/src/lib/construct/{staticSite.d.ts → static-site/main.d.ts} +4 -16
- package/dist/src/lib/construct/static-site/main.d.ts.map +1 -0
- package/dist/src/lib/construct/{staticSite.js → static-site/main.js} +4 -16
- package/dist/src/lib/construct/static-site/main.js.map +1 -0
- package/dist/src/lib/manager/aws/{acmManager.d.ts → acm-manager.d.ts} +2 -2
- package/dist/src/lib/manager/aws/acm-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/{acmManager.js → acm-manager.js} +2 -2
- package/dist/src/lib/manager/aws/acm-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/{apiManager.d.ts → api-manager.d.ts} +5 -5
- package/dist/src/lib/manager/aws/api-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/{apiManager.js → api-manager.js} +5 -5
- package/dist/src/lib/manager/aws/api-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/{appConfigManager.d.ts → app-config-manager.d.ts} +2 -2
- package/dist/src/lib/manager/aws/app-config-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/{appConfigManager.js → app-config-manager.js} +2 -2
- package/dist/src/lib/manager/aws/app-config-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/{cloudFrontManager.d.ts → cloudfront-manager.d.ts} +2 -2
- package/dist/src/lib/manager/aws/cloudfront-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/{cloudFrontManager.js → cloudfront-manager.js} +2 -2
- package/dist/src/lib/manager/aws/cloudfront-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/{cloudTrailManager.d.ts → cloudtrail-manager.d.ts} +2 -2
- package/dist/src/lib/manager/aws/cloudtrail-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/{cloudTrailManager.js → cloudtrail-manager.js} +2 -2
- package/dist/src/lib/manager/aws/cloudtrail-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/{cloudWatchManager.d.ts → cloudwatch-manager.d.ts} +2 -2
- package/dist/src/lib/manager/aws/cloudwatch-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/{cloudWatchManager.js → cloudwatch-manager.js} +2 -2
- package/dist/src/lib/manager/aws/cloudwatch-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/{codeBuildManager.d.ts → codebuild-manager.d.ts} +2 -2
- package/dist/src/lib/manager/aws/codebuild-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/{codeBuildManager.js → codebuild-manager.js} +2 -2
- package/dist/src/lib/manager/aws/codebuild-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/dynamodb-manager.d.ts +32 -0
- package/dist/src/lib/manager/aws/dynamodb-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/dynamodb-manager.js +79 -0
- package/dist/src/lib/manager/aws/dynamodb-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/{ecrManager.d.ts → ecr-manager.d.ts} +2 -2
- package/dist/src/lib/manager/aws/ecr-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/{ecrManager.js → ecr-manager.js} +2 -2
- package/dist/src/lib/manager/aws/ecr-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/{ecsManager.d.ts → ecs-manager.d.ts} +2 -2
- package/dist/src/lib/manager/aws/ecs-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/{ecsManager.js → ecs-manager.js} +2 -2
- package/dist/src/lib/manager/aws/ecs-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/{eksManager.d.ts → eks-manager.d.ts} +2 -2
- package/dist/src/lib/manager/aws/eks-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/{eksManager.js → eks-manager.js} +2 -2
- package/dist/src/lib/manager/aws/eks-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/{eventManager.d.ts → event-manager.d.ts} +18 -2
- package/dist/src/lib/manager/aws/event-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/{eventManager.js → event-manager.js} +44 -2
- package/dist/src/lib/manager/aws/event-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/{iamManager.d.ts → iam-manager.d.ts} +12 -14
- package/dist/src/lib/manager/aws/iam-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/{iamManager.js → iam-manager.js} +21 -17
- package/dist/src/lib/manager/aws/iam-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/index.d.ts +22 -21
- package/dist/src/lib/manager/aws/index.d.ts.map +1 -1
- package/dist/src/lib/manager/aws/index.js +22 -21
- package/dist/src/lib/manager/aws/index.js.map +1 -1
- package/dist/src/lib/manager/aws/{lambdaManager.d.ts → lambda-manager.d.ts} +28 -26
- package/dist/src/lib/manager/aws/lambda-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/{lambdaManager.js → lambda-manager.js} +45 -37
- package/dist/src/lib/manager/aws/lambda-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/{logManager.d.ts → log-manager.d.ts} +2 -2
- package/dist/src/lib/manager/aws/log-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/{logManager.js → log-manager.js} +2 -2
- package/dist/src/lib/manager/aws/log-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/{route53Manager.d.ts → route53-manager.d.ts} +3 -3
- package/dist/src/lib/manager/aws/route53-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/{route53Manager.js → route53-manager.js} +3 -3
- package/dist/src/lib/manager/aws/route53-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/{s3Manager.d.ts → s3-manager.d.ts} +2 -2
- package/dist/src/lib/manager/aws/s3-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/{s3Manager.js → s3-manager.js} +2 -2
- package/dist/src/lib/manager/aws/s3-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/{secretsManager.d.ts → secrets-manager.d.ts} +2 -2
- package/dist/src/lib/manager/aws/secrets-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/{secretsManager.js → secrets-manager.js} +2 -2
- package/dist/src/lib/manager/aws/secrets-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/{snsManager.d.ts → sns-manager.d.ts} +2 -2
- package/dist/src/lib/manager/aws/sns-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/{snsManager.js → sns-manager.js} +2 -2
- package/dist/src/lib/manager/aws/sns-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/{ssmManager.d.ts → ssm-manager.d.ts} +4 -9
- package/dist/src/lib/manager/aws/ssm-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/{ssmManager.js → ssm-manager.js} +4 -9
- package/dist/src/lib/manager/aws/ssm-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/{vpcManager.d.ts → vpc-manager.d.ts} +2 -2
- package/dist/src/lib/manager/aws/vpc-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/{vpcManager.js → vpc-manager.js} +3 -2
- package/dist/src/lib/manager/aws/vpc-manager.js.map +1 -0
- package/dist/src/lib/manager/aws/{wafManager.d.ts → waf-manager.d.ts} +2 -2
- package/dist/src/lib/manager/aws/waf-manager.d.ts.map +1 -0
- package/dist/src/lib/manager/aws/{wafManager.js → waf-manager.js} +2 -2
- package/dist/src/lib/manager/aws/waf-manager.js.map +1 -0
- package/dist/src/lib/types/aws/index.d.ts +143 -2
- package/dist/src/lib/types/aws/index.d.ts.map +1 -1
- package/dist/src/lib/utils/aws/index.d.ts +1 -1
- package/dist/src/lib/utils/aws/index.d.ts.map +1 -1
- package/dist/src/lib/utils/index.d.ts +1 -0
- package/dist/src/lib/utils/index.d.ts.map +1 -1
- package/dist/src/lib/utils/index.js +1 -0
- package/dist/src/lib/utils/index.js.map +1 -1
- package/img/ApiToEventBridgeTarget.jpg +0 -0
- package/img/GraphQLApiLambda.jpg +0 -0
- package/package.json +12 -13
- 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} +3 -13
- package/src/lib/construct/api-to-eventbridge-target/api-destination-event.ts +16 -0
- package/src/lib/construct/api-to-eventbridge-target/api-destined-lambda.ts +19 -0
- package/src/lib/construct/api-to-eventbridge-target/api-destined-rest-api.ts +31 -0
- package/src/lib/construct/api-to-eventbridge-target/index.ts +4 -0
- package/src/lib/construct/api-to-eventbridge-target/main.ts +592 -0
- package/src/lib/construct/graphql-api-lambda/index.ts +1 -0
- package/src/lib/construct/{graphQLApiLambda.ts → graphql-api-lambda/main.ts} +13 -23
- 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} +3 -15
- package/src/lib/construct/static-site/index.ts +1 -0
- package/src/lib/construct/{staticSite.ts → static-site/main.ts} +3 -15
- package/src/lib/manager/aws/{acmManager.ts → acm-manager.ts} +1 -1
- package/src/lib/manager/aws/{apiManager.ts → api-manager.ts} +4 -4
- package/src/lib/manager/aws/{appConfigManager.ts → app-config-manager.ts} +1 -1
- package/src/lib/manager/aws/{cloudFrontManager.ts → cloudfront-manager.ts} +1 -1
- package/src/lib/manager/aws/{cloudTrailManager.ts → cloudtrail-manager.ts} +1 -1
- package/src/lib/manager/aws/{cloudWatchManager.ts → cloudwatch-manager.ts} +1 -1
- package/src/lib/manager/aws/{codeBuildManager.ts → codebuild-manager.ts} +1 -1
- package/src/lib/manager/aws/dynamodb-manager.ts +60 -0
- package/src/lib/manager/aws/{ecrManager.ts → ecr-manager.ts} +1 -1
- package/src/lib/manager/aws/{ecsManager.ts → ecs-manager.ts} +1 -1
- package/src/lib/manager/aws/{eksManager.ts → eks-manager.ts} +1 -1
- package/src/lib/manager/aws/{eventManager.ts → event-manager.ts} +55 -1
- package/src/lib/manager/aws/{iamManager.ts → iam-manager.ts} +21 -16
- package/src/lib/manager/aws/index.ts +22 -21
- package/src/lib/manager/aws/{lambdaManager.ts → lambda-manager.ts} +51 -41
- package/src/lib/manager/aws/{logManager.ts → log-manager.ts} +1 -1
- package/src/lib/manager/aws/{route53Manager.ts → route53-manager.ts} +2 -2
- package/src/lib/manager/aws/{s3Manager.ts → s3-manager.ts} +1 -1
- package/src/lib/manager/aws/{secretsManager.ts → secrets-manager.ts} +1 -1
- package/src/lib/manager/aws/{snsManager.ts → sns-manager.ts} +1 -1
- package/src/lib/manager/aws/{ssmManager.ts → ssm-manager.ts} +3 -8
- package/src/lib/manager/aws/{vpcManager.ts → vpc-manager.ts} +2 -1
- package/src/lib/manager/aws/{wafManager.ts → waf-manager.ts} +1 -1
- package/src/lib/types/aws/index.ts +146 -2
- package/src/lib/utils/aws/index.ts +1 -1
- package/src/lib/utils/index.ts +1 -0
- package/.releaserc +0 -9
- package/dist/src/lib/common/commonConstruct.d.ts.map +0 -1
- package/dist/src/lib/common/commonConstruct.js.map +0 -1
- package/dist/src/lib/common/commonStack.d.ts.map +0 -1
- package/dist/src/lib/common/commonStack.js.map +0 -1
- package/dist/src/lib/construct/graphQLApiLambda.d.ts.map +0 -1
- package/dist/src/lib/construct/graphQLApiLambda.js.map +0 -1
- package/dist/src/lib/construct/siteWithEcsBackend.d.ts.map +0 -1
- package/dist/src/lib/construct/siteWithEcsBackend.js.map +0 -1
- package/dist/src/lib/construct/staticSite.d.ts.map +0 -1
- package/dist/src/lib/construct/staticSite.js.map +0 -1
- package/dist/src/lib/manager/aws/acmManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/acmManager.js.map +0 -1
- package/dist/src/lib/manager/aws/apiManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/apiManager.js.map +0 -1
- package/dist/src/lib/manager/aws/appConfigManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/appConfigManager.js.map +0 -1
- package/dist/src/lib/manager/aws/cloudFrontManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/cloudFrontManager.js.map +0 -1
- package/dist/src/lib/manager/aws/cloudTrailManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/cloudTrailManager.js.map +0 -1
- package/dist/src/lib/manager/aws/cloudWatchManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/cloudWatchManager.js.map +0 -1
- package/dist/src/lib/manager/aws/codeBuildManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/codeBuildManager.js.map +0 -1
- package/dist/src/lib/manager/aws/ecrManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/ecrManager.js.map +0 -1
- package/dist/src/lib/manager/aws/ecsManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/ecsManager.js.map +0 -1
- package/dist/src/lib/manager/aws/eksManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/eksManager.js.map +0 -1
- package/dist/src/lib/manager/aws/eventManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/eventManager.js.map +0 -1
- package/dist/src/lib/manager/aws/iamManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/iamManager.js.map +0 -1
- package/dist/src/lib/manager/aws/lambdaManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/lambdaManager.js.map +0 -1
- package/dist/src/lib/manager/aws/logManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/logManager.js.map +0 -1
- package/dist/src/lib/manager/aws/route53Manager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/route53Manager.js.map +0 -1
- package/dist/src/lib/manager/aws/s3Manager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/s3Manager.js.map +0 -1
- package/dist/src/lib/manager/aws/secretsManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/secretsManager.js.map +0 -1
- package/dist/src/lib/manager/aws/snsManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/snsManager.js.map +0 -1
- package/dist/src/lib/manager/aws/ssmManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/ssmManager.js.map +0 -1
- package/dist/src/lib/manager/aws/vpcManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/vpcManager.js.map +0 -1
- package/dist/src/lib/manager/aws/wafManager.d.ts.map +0 -1
- package/dist/src/lib/manager/aws/wafManager.js.map +0 -1
|
@@ -12,13 +12,13 @@ import * as route53 from 'aws-cdk-lib/aws-route53'
|
|
|
12
12
|
import * as s3 from 'aws-cdk-lib/aws-s3'
|
|
13
13
|
import * as secretsmanager from 'aws-cdk-lib/aws-secretsmanager'
|
|
14
14
|
import { Construct } from 'constructs'
|
|
15
|
-
import { CommonConstruct } from '
|
|
16
|
-
import { SiteWithEcsBackendProps } from '
|
|
15
|
+
import { CommonConstruct } from '../../common'
|
|
16
|
+
import { SiteWithEcsBackendProps } from '../../types'
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* @stability stable
|
|
20
20
|
* @category Constructs
|
|
21
|
-
* @
|
|
21
|
+
* @classdesc Provides a construct to create and deploy a site hosted with an clustered ECS/ELB backend
|
|
22
22
|
*
|
|
23
23
|
* @example
|
|
24
24
|
* import { SiteWithEcsBackend, SiteWithEcsBackendProps } '@gradientedge/cdk-utils'
|
|
@@ -32,12 +32,6 @@ import { SiteWithEcsBackendProps } from '../types'
|
|
|
32
32
|
* this.initResources()
|
|
33
33
|
* }
|
|
34
34
|
* }
|
|
35
|
-
*
|
|
36
|
-
* @mermaid
|
|
37
|
-
* graph LR;
|
|
38
|
-
* A[StaticSite]-.->|extends|B(CommonConstruct);
|
|
39
|
-
* B(CommonConstruct)-->|extends|C(Construct);
|
|
40
|
-
* C(Construct)-->|implements|D(IConstruct);
|
|
41
35
|
*/
|
|
42
36
|
export class SiteWithEcsBackend extends CommonConstruct {
|
|
43
37
|
/* site properties */
|
|
@@ -71,12 +65,6 @@ export class SiteWithEcsBackend extends CommonConstruct {
|
|
|
71
65
|
siteCloudfrontFunction: cloudfront.Function
|
|
72
66
|
siteFunctionAssociations: cloudfront.FunctionAssociation[]
|
|
73
67
|
|
|
74
|
-
/**
|
|
75
|
-
* @summary Constructor to initialise the SiteWithEcsBackend Construct
|
|
76
|
-
* @param {Construct} parent
|
|
77
|
-
* @param {string} id
|
|
78
|
-
* @param {SiteWithEcsBackendProps} props
|
|
79
|
-
*/
|
|
80
68
|
constructor(parent: Construct, id: string, props: SiteWithEcsBackendProps) {
|
|
81
69
|
super(parent, id, props)
|
|
82
70
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './main'
|
|
@@ -4,13 +4,13 @@ import * as origins from 'aws-cdk-lib/aws-cloudfront-origins'
|
|
|
4
4
|
import * as route53 from 'aws-cdk-lib/aws-route53'
|
|
5
5
|
import * as s3 from 'aws-cdk-lib/aws-s3'
|
|
6
6
|
import { Construct } from 'constructs'
|
|
7
|
-
import { CommonConstruct } from '
|
|
8
|
-
import { StaticSiteProps } from '
|
|
7
|
+
import { CommonConstruct } from '../../common'
|
|
8
|
+
import { StaticSiteProps } from '../../types'
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* @stability stable
|
|
12
12
|
* @category Constructs
|
|
13
|
-
* @
|
|
13
|
+
* @classdesc Provides a construct to create and deploy a s3 hosted static site
|
|
14
14
|
*
|
|
15
15
|
* @example
|
|
16
16
|
* import { StaticSite, StaticSiteProps } '@gradientedge/cdk-utils'
|
|
@@ -24,12 +24,6 @@ import { StaticSiteProps } from '../types'
|
|
|
24
24
|
* this.initResources()
|
|
25
25
|
* }
|
|
26
26
|
* }
|
|
27
|
-
*
|
|
28
|
-
* @mermaid
|
|
29
|
-
* graph LR;
|
|
30
|
-
* A[StaticSite]-.->|extends|B(CommonConstruct);
|
|
31
|
-
* B(CommonConstruct)-->|extends|C(Construct);
|
|
32
|
-
* C(Construct)-->|implements|D(IConstruct);
|
|
33
27
|
*/
|
|
34
28
|
export class StaticSite extends CommonConstruct {
|
|
35
29
|
/* static site properties */
|
|
@@ -49,12 +43,6 @@ export class StaticSite extends CommonConstruct {
|
|
|
49
43
|
siteCloudfrontFunction: cloudfront.Function
|
|
50
44
|
siteFunctionAssociations: cloudfront.FunctionAssociation[]
|
|
51
45
|
|
|
52
|
-
/**
|
|
53
|
-
* @summary Constructor to initialise the StaticSite Construct
|
|
54
|
-
* @param {Construct} parent
|
|
55
|
-
* @param {string} id
|
|
56
|
-
* @param {StaticSiteProps} props
|
|
57
|
-
*/
|
|
58
46
|
constructor(parent: Construct, id: string, props: StaticSiteProps) {
|
|
59
47
|
super(parent, id, props)
|
|
60
48
|
|
|
@@ -8,7 +8,7 @@ import * as utils from '../../utils'
|
|
|
8
8
|
/**
|
|
9
9
|
* @stability stable
|
|
10
10
|
* @category Security, Identity & Compliance
|
|
11
|
-
* @
|
|
11
|
+
* @classdesc Provides operations on AWS Certificates.
|
|
12
12
|
* - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
|
|
13
13
|
* - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
|
|
14
14
|
* @example
|
|
@@ -7,7 +7,7 @@ import * as utils from '../../utils'
|
|
|
7
7
|
/**
|
|
8
8
|
* @stability stable
|
|
9
9
|
* @category Networking & Content Delivery
|
|
10
|
-
* @
|
|
10
|
+
* @classdesc Provides operations on AWS API Gateway.
|
|
11
11
|
* - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
|
|
12
12
|
* - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
|
|
13
13
|
* @example
|
|
@@ -29,7 +29,7 @@ export class ApiManager {
|
|
|
29
29
|
* @summary Method to create a Rest API with Lambda backend/target
|
|
30
30
|
* @param {string} id scoped id of the resource
|
|
31
31
|
* @param {common.CommonConstruct} scope scope in which this resource is defined
|
|
32
|
-
* @param {AcmProps} props lambda rest
|
|
32
|
+
* @param {AcmProps} props lambda rest restApi props
|
|
33
33
|
* @param lambdaFunction
|
|
34
34
|
*/
|
|
35
35
|
public createLambdaRestApi(
|
|
@@ -80,11 +80,11 @@ export class ApiManager {
|
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
/**
|
|
83
|
-
* @summary Method to create custom
|
|
83
|
+
* @summary Method to create custom restApi domain
|
|
84
84
|
* @param {string} id scoped id of the resource
|
|
85
85
|
* @param {common.CommonConstruct} scope scope in which this resource is defined
|
|
86
86
|
* @param domainName the domain name to use
|
|
87
|
-
* @param certificate the certificate used for custom
|
|
87
|
+
* @param certificate the certificate used for custom restApi domain
|
|
88
88
|
*/
|
|
89
89
|
public createApiDomain(id: string, scope: common.CommonConstruct, domainName: string, certificate: acm.ICertificate) {
|
|
90
90
|
const apiDomain = new apig.DomainName(scope, `${id}`, {
|
|
@@ -34,7 +34,7 @@ export const ArnsByRegion: { [key: string]: string } = {
|
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
36
|
* @category Management & Governance
|
|
37
|
-
* @
|
|
37
|
+
* @classdesc Provides operations on AWS AppConfig.
|
|
38
38
|
* - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
|
|
39
39
|
* - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
|
|
40
40
|
* @example
|
|
@@ -14,7 +14,7 @@ import * as utils from '../../utils'
|
|
|
14
14
|
/**
|
|
15
15
|
* @stability stable
|
|
16
16
|
* @category Networking & Content Delivery
|
|
17
|
-
* @
|
|
17
|
+
* @classdesc Provides operations on AWS CloudFront.
|
|
18
18
|
* - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
|
|
19
19
|
* - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
|
|
20
20
|
* @example
|
|
@@ -8,7 +8,7 @@ import * as utils from '../../utils'
|
|
|
8
8
|
/**
|
|
9
9
|
* @stability stable
|
|
10
10
|
* @category Management & Governance
|
|
11
|
-
* @
|
|
11
|
+
* @classdesc Provides operations on AWS CloudTrail.
|
|
12
12
|
* - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
|
|
13
13
|
* - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
|
|
14
14
|
* @example
|
|
@@ -19,7 +19,7 @@ enum CloudWatchWidgetType {
|
|
|
19
19
|
/**
|
|
20
20
|
* @stability stable
|
|
21
21
|
* @category Management & Governance
|
|
22
|
-
* @
|
|
22
|
+
* @classdesc Provides operations on AWS CloudWatch.
|
|
23
23
|
* - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
|
|
24
24
|
* - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
|
|
25
25
|
* @example
|
|
@@ -5,7 +5,7 @@ import * as common from '../../common'
|
|
|
5
5
|
/**
|
|
6
6
|
* @stability stable
|
|
7
7
|
* @category Developer Tools
|
|
8
|
-
* @
|
|
8
|
+
* @classdesc Provides operations on AWS Code Build.
|
|
9
9
|
* - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
|
|
10
10
|
* - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
|
|
11
11
|
* @example
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import * as dynamodb from 'aws-cdk-lib/aws-dynamodb'
|
|
2
|
+
import * as common from '../../common'
|
|
3
|
+
import * as types from '../../types'
|
|
4
|
+
import * as utils from '../../utils'
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* @stability stable
|
|
8
|
+
* @category Storage
|
|
9
|
+
* @classdesc Provides operations on AWS DynamoDB.
|
|
10
|
+
* - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
|
|
11
|
+
* - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
|
|
12
|
+
* @example
|
|
13
|
+
* import { CommonConstruct } from '@gradientedge/cdk-utils'
|
|
14
|
+
*
|
|
15
|
+
* class CustomConstruct extends CommonConstruct {
|
|
16
|
+
* constructor(parent: cdk.Construct, id: string, props: common.CommonStackProps) {
|
|
17
|
+
* super(parent, id, props)
|
|
18
|
+
* this.props = props
|
|
19
|
+
* this.dynamodbManager.createTable('MyTable', this, tableProps)
|
|
20
|
+
* }
|
|
21
|
+
* }
|
|
22
|
+
*
|
|
23
|
+
* @see [CDK Certificate Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_dynamodb-readme.html}
|
|
24
|
+
*/
|
|
25
|
+
export class DynamodbManager {
|
|
26
|
+
/**
|
|
27
|
+
* @summary Method to create a table
|
|
28
|
+
* @param {string} id scoped id of the resource
|
|
29
|
+
* @param {common.CommonConstruct} scope scope in which this resource is defined
|
|
30
|
+
* @param {types.TableProps} props table props
|
|
31
|
+
*/
|
|
32
|
+
public createTable(id: string, scope: common.CommonConstruct, props: types.TableProps) {
|
|
33
|
+
if (!props) throw `Table props undefined`
|
|
34
|
+
|
|
35
|
+
const table = new dynamodb.Table(scope, `${id}`, {
|
|
36
|
+
tableName: `${props.tableName}-${scope.props.stage}`,
|
|
37
|
+
partitionKey: props.partitionKey,
|
|
38
|
+
sortKey: props.sortKey,
|
|
39
|
+
kinesisStream: props.kinesisStream,
|
|
40
|
+
readCapacity: props.readCapacity,
|
|
41
|
+
writeCapacity: props.writeCapacity,
|
|
42
|
+
billingMode: props.billingMode,
|
|
43
|
+
pointInTimeRecovery: props.pointInTimeRecovery,
|
|
44
|
+
encryption: props.encryption,
|
|
45
|
+
encryptionKey: props.encryptionKey,
|
|
46
|
+
timeToLiveAttribute: props.timeToLiveAttribute,
|
|
47
|
+
stream: props.stream,
|
|
48
|
+
removalPolicy: props.removalPolicy,
|
|
49
|
+
replicationRegions: props.replicationRegions,
|
|
50
|
+
replicationTimeout: props.replicationTimeout,
|
|
51
|
+
waitForReplicationToFinish: props.waitForReplicationToFinish,
|
|
52
|
+
contributorInsightsEnabled: props.contributorInsightsEnabled,
|
|
53
|
+
})
|
|
54
|
+
|
|
55
|
+
utils.createCfnOutput(`${id}-tableName`, scope, table.tableName)
|
|
56
|
+
utils.createCfnOutput(`${id}-tableArn`, scope, table.tableArn)
|
|
57
|
+
|
|
58
|
+
return table
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -5,7 +5,7 @@ import * as utils from '../../utils'
|
|
|
5
5
|
/**
|
|
6
6
|
* @stability stable
|
|
7
7
|
* @category Containers
|
|
8
|
-
* @
|
|
8
|
+
* @classdesc Provides operations on AWS Elastic Container Registry.
|
|
9
9
|
* - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
|
|
10
10
|
* - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
|
|
11
11
|
* @example
|
|
@@ -9,7 +9,7 @@ import * as utils from '../../utils'
|
|
|
9
9
|
/**
|
|
10
10
|
* @stability stable
|
|
11
11
|
* @category Containers
|
|
12
|
-
* @
|
|
12
|
+
* @classdesc Provides operations on AWS Elastic Container Service.
|
|
13
13
|
* - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
|
|
14
14
|
* - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
|
|
15
15
|
* @example
|
|
@@ -8,7 +8,7 @@ import * as utils from '../../utils'
|
|
|
8
8
|
/**
|
|
9
9
|
* @stability stable
|
|
10
10
|
* @category Containers
|
|
11
|
-
* @
|
|
11
|
+
* @classdesc Provides operations on AWS Elastic Kubernetes Service.
|
|
12
12
|
* - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
|
|
13
13
|
* - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
|
|
14
14
|
* @example
|
|
@@ -9,7 +9,7 @@ import * as utils from '../../utils'
|
|
|
9
9
|
/**
|
|
10
10
|
* @stability stable
|
|
11
11
|
* @category Application Integration
|
|
12
|
-
* @
|
|
12
|
+
* @classdesc Provides operations on AWS EventBridge.
|
|
13
13
|
* - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
|
|
14
14
|
* - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
|
|
15
15
|
* @example
|
|
@@ -26,6 +26,60 @@ import * as utils from '../../utils'
|
|
|
26
26
|
* @see [CDK EventBridge Module]{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_events-readme.html}
|
|
27
27
|
*/
|
|
28
28
|
export class EventManager {
|
|
29
|
+
/**
|
|
30
|
+
* Method to create an event bus
|
|
31
|
+
* @param {string} id scoped id of the resource
|
|
32
|
+
* @param {common.CommonConstruct} scope scope in which this resource is defined
|
|
33
|
+
* @param {types.EventBusProps} props event bus properties
|
|
34
|
+
*/
|
|
35
|
+
public createEventBus(id: string, scope: common.CommonConstruct, props: types.EventBusProps) {
|
|
36
|
+
if (!props) throw 'EventBus props undefined'
|
|
37
|
+
|
|
38
|
+
const eventBus = new events.EventBus(scope, `${id}`, {
|
|
39
|
+
eventBusName: `${props.eventBusName}-${scope.props.stage}`,
|
|
40
|
+
})
|
|
41
|
+
|
|
42
|
+
utils.createCfnOutput(`${id}-eventBusName`, scope, eventBus.eventBusName)
|
|
43
|
+
utils.createCfnOutput(`${id}-eventBusArn`, scope, eventBus.eventBusArn)
|
|
44
|
+
|
|
45
|
+
return eventBus
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Method to create an event rule
|
|
50
|
+
* @param {string} id scoped id of the resource
|
|
51
|
+
* @param {common.CommonConstruct} scope scope in which this resource is defined
|
|
52
|
+
* @param {types.EventRuleProps} props event rule properties
|
|
53
|
+
* @param {events.IEventBus?} eventBus optional custom event bus
|
|
54
|
+
* @param {events.IRuleTarget[]?} targets optional event targets
|
|
55
|
+
*/
|
|
56
|
+
public createRule(
|
|
57
|
+
id: string,
|
|
58
|
+
scope: common.CommonConstruct,
|
|
59
|
+
props: types.EventRuleProps,
|
|
60
|
+
eventBus?: events.IEventBus,
|
|
61
|
+
targets?: events.IRuleTarget[]
|
|
62
|
+
) {
|
|
63
|
+
if (!props) throw `EventRule props undefined`
|
|
64
|
+
|
|
65
|
+
const rule = new events.Rule(scope, `${id}`, {
|
|
66
|
+
eventBus: eventBus,
|
|
67
|
+
description: props.description,
|
|
68
|
+
ruleName: `${props.ruleName}-${scope.props.stage}`,
|
|
69
|
+
eventPattern: props.eventPattern,
|
|
70
|
+
})
|
|
71
|
+
|
|
72
|
+
if (targets && targets.length > 0) {
|
|
73
|
+
targets.forEach(target => {
|
|
74
|
+
rule.addTarget(target)
|
|
75
|
+
})
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
utils.createCfnOutput(`${id}-ruleArn`, scope, rule.ruleArn)
|
|
79
|
+
utils.createCfnOutput(`${id}-ruleName`, scope, rule.ruleName)
|
|
80
|
+
|
|
81
|
+
return rule
|
|
82
|
+
}
|
|
29
83
|
/**
|
|
30
84
|
* @summary Method to create an eventbridge rule with lambda target
|
|
31
85
|
* @param {string} id scoped id of the resource
|
|
@@ -9,7 +9,7 @@ import * as utils from '../../utils'
|
|
|
9
9
|
/**
|
|
10
10
|
* @stability stable
|
|
11
11
|
* @category Security, Identity & Compliance
|
|
12
|
-
* @
|
|
12
|
+
* @classdesc Provides operations on AWS IAM.
|
|
13
13
|
* - A new instance of this class is injected into {@link common.CommonConstruct} constructor.
|
|
14
14
|
* - If a custom construct extends {@link common.CommonConstruct}, an instance is available within the context.
|
|
15
15
|
* @example
|
|
@@ -38,11 +38,21 @@ export class IamManager {
|
|
|
38
38
|
})
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
+
/**
|
|
42
|
+
* @summary Method to create iam statement to put events
|
|
43
|
+
*/
|
|
44
|
+
public statementForPutEvents() {
|
|
45
|
+
return new iam.PolicyStatement({
|
|
46
|
+
effect: iam.Effect.ALLOW,
|
|
47
|
+
actions: ['events:PutEvents'],
|
|
48
|
+
resources: ['*'],
|
|
49
|
+
})
|
|
50
|
+
}
|
|
51
|
+
|
|
41
52
|
/**
|
|
42
53
|
* @summary Method to create iam statement to read app config
|
|
43
|
-
* @param {common.CommonConstruct} scope scope in which this resource is defined
|
|
44
54
|
*/
|
|
45
|
-
public statementForReadAnyAppConfig(
|
|
55
|
+
public statementForReadAnyAppConfig() {
|
|
46
56
|
return new iam.PolicyStatement({
|
|
47
57
|
effect: iam.Effect.ALLOW,
|
|
48
58
|
actions: [
|
|
@@ -78,9 +88,8 @@ export class IamManager {
|
|
|
78
88
|
|
|
79
89
|
/**
|
|
80
90
|
* @summary Method to create iam statement to list all s3 buckets
|
|
81
|
-
* @param {common.CommonConstruct} scope scope in which this resource is defined
|
|
82
91
|
*/
|
|
83
|
-
public statementForListAllMyBuckets(
|
|
92
|
+
public statementForListAllMyBuckets() {
|
|
84
93
|
return new iam.PolicyStatement({
|
|
85
94
|
effect: iam.Effect.ALLOW,
|
|
86
95
|
actions: ['s3:ListAllMyBuckets'],
|
|
@@ -129,9 +138,8 @@ export class IamManager {
|
|
|
129
138
|
|
|
130
139
|
/**
|
|
131
140
|
* @summary Method to create iam statement to pass iam role
|
|
132
|
-
* @param {common.CommonConstruct} scope scope in which this resource is defined
|
|
133
141
|
*/
|
|
134
|
-
public statementForPassRole(
|
|
142
|
+
public statementForPassRole() {
|
|
135
143
|
return new iam.PolicyStatement({
|
|
136
144
|
effect: iam.Effect.ALLOW,
|
|
137
145
|
actions: ['iam:PassRole'],
|
|
@@ -141,9 +149,8 @@ export class IamManager {
|
|
|
141
149
|
|
|
142
150
|
/**
|
|
143
151
|
* @summary Method to create iam statement to invalidate cloudfront cache
|
|
144
|
-
* @param {common.CommonConstruct} scope scope in which this resource is defined
|
|
145
152
|
*/
|
|
146
|
-
public statementForCloudfrontInvalidation(
|
|
153
|
+
public statementForCloudfrontInvalidation() {
|
|
147
154
|
return new iam.PolicyStatement({
|
|
148
155
|
effect: iam.Effect.ALLOW,
|
|
149
156
|
actions: ['cloudfront:GetInvalidation', 'cloudfront:CreateInvalidation'],
|
|
@@ -153,14 +160,13 @@ export class IamManager {
|
|
|
153
160
|
|
|
154
161
|
/**
|
|
155
162
|
* @summary Method to create iam policy to invalidate cloudfront cache
|
|
156
|
-
* @param {common.CommonConstruct} scope scope in which this resource is defined
|
|
157
163
|
*/
|
|
158
|
-
public policyForCloudfrontInvalidation(
|
|
164
|
+
public policyForCloudfrontInvalidation() {
|
|
159
165
|
return new iam.PolicyDocument({
|
|
160
166
|
statements: [
|
|
161
167
|
this.statementForCreateAnyLogStream(),
|
|
162
168
|
this.statementForPutAnyLogEvent(),
|
|
163
|
-
this.statementForCloudfrontInvalidation(
|
|
169
|
+
this.statementForCloudfrontInvalidation(),
|
|
164
170
|
new iam.PolicyStatement({
|
|
165
171
|
effect: iam.Effect.ALLOW,
|
|
166
172
|
actions: [
|
|
@@ -184,7 +190,7 @@ export class IamManager {
|
|
|
184
190
|
return new iam.Role(scope, `${id}-install-deps-project-role`, {
|
|
185
191
|
assumedBy: new iam.ServicePrincipal('codebuild.amazonaws.com'),
|
|
186
192
|
inlinePolicies: {
|
|
187
|
-
codeBuildPolicy: this.policyForCloudfrontInvalidation(
|
|
193
|
+
codeBuildPolicy: this.policyForCloudfrontInvalidation(),
|
|
188
194
|
},
|
|
189
195
|
})
|
|
190
196
|
}
|
|
@@ -204,9 +210,8 @@ export class IamManager {
|
|
|
204
210
|
|
|
205
211
|
/**
|
|
206
212
|
* @summary Method to create iam statement to pass ecs role
|
|
207
|
-
* @param {common.CommonConstruct} scope scope in which this resource is defined
|
|
208
213
|
*/
|
|
209
|
-
public statementForEcsPassRole(
|
|
214
|
+
public statementForEcsPassRole() {
|
|
210
215
|
return new iam.PolicyStatement({
|
|
211
216
|
effect: iam.Effect.ALLOW,
|
|
212
217
|
actions: ['iam:PassRole'],
|
|
@@ -331,7 +336,7 @@ export class IamManager {
|
|
|
331
336
|
task: ecs.ITaskDefinition
|
|
332
337
|
) {
|
|
333
338
|
const policy = new iam.PolicyDocument({
|
|
334
|
-
statements: [this.statementForRunEcsTask(scope, cluster, task), this.statementForEcsPassRole(
|
|
339
|
+
statements: [this.statementForRunEcsTask(scope, cluster, task), this.statementForEcsPassRole()],
|
|
335
340
|
})
|
|
336
341
|
|
|
337
342
|
const role = new iam.Role(scope, `${id}`, {
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './
|
|
9
|
-
export * from './
|
|
10
|
-
export * from './
|
|
11
|
-
export * from './
|
|
12
|
-
export * from './
|
|
13
|
-
export * from './
|
|
14
|
-
export * from './
|
|
15
|
-
export * from './
|
|
16
|
-
export * from './
|
|
17
|
-
export * from './
|
|
18
|
-
export * from './
|
|
19
|
-
export * from './
|
|
20
|
-
export * from './
|
|
21
|
-
export * from './
|
|
1
|
+
export * from './acm-manager'
|
|
2
|
+
export * from './api-manager'
|
|
3
|
+
export * from './app-config-manager'
|
|
4
|
+
export * from './cloudfront-manager'
|
|
5
|
+
export * from './cloudtrail-manager'
|
|
6
|
+
export * from './cloudwatch-manager'
|
|
7
|
+
export * from './codebuild-manager'
|
|
8
|
+
export * from './dynamodb-manager'
|
|
9
|
+
export * from './ecr-manager'
|
|
10
|
+
export * from './ecs-manager'
|
|
11
|
+
export * from './eks-manager'
|
|
12
|
+
export * from './event-manager'
|
|
13
|
+
export * from './iam-manager'
|
|
14
|
+
export * from './lambda-manager'
|
|
15
|
+
export * from './log-manager'
|
|
16
|
+
export * from './route53-manager'
|
|
17
|
+
export * from './s3-manager'
|
|
18
|
+
export * from './secrets-manager'
|
|
19
|
+
export * from './sns-manager'
|
|
20
|
+
export * from './ssm-manager'
|
|
21
|
+
export * from './vpc-manager'
|
|
22
|
+
export * from './waf-manager'
|