terraconstructs 0.0.25 → 0.1.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/.jsii +83665 -54911
- package/.mise.toml +1 -1
- package/.nvmrc +1 -1
- package/LICENSE +202 -674
- package/lib/asset-manager.d.ts +23 -0
- package/lib/asset-manager.js +3 -0
- package/lib/asset-staging.d.ts +178 -0
- package/lib/asset-staging.js +589 -0
- package/lib/assets.d.ts +359 -0
- package/lib/assets.js +55 -0
- package/lib/aws/arn.js +16 -15
- package/lib/aws/aws-asset-manager.d.ts +91 -0
- package/lib/aws/aws-asset-manager.js +244 -0
- package/lib/aws/aws-construct.js +1 -1
- package/lib/aws/aws-stack.d.ts +37 -0
- package/lib/aws/aws-stack.js +30 -9
- package/lib/aws/aws-tags.js +2 -2
- package/lib/aws/cloudwatch/actions/appscaling.d.ts +15 -0
- package/lib/aws/cloudwatch/actions/appscaling.js +24 -0
- package/lib/aws/cloudwatch/actions/ec2.js +1 -1
- package/lib/aws/cloudwatch/actions/index.d.ts +3 -0
- package/lib/aws/cloudwatch/actions/index.js +4 -4
- package/lib/aws/cloudwatch/actions/lambda.js +1 -1
- package/lib/aws/cloudwatch/actions/sns.d.ts +14 -0
- package/lib/aws/cloudwatch/actions/sns.js +23 -0
- package/lib/aws/cloudwatch/actions/ssm.d.ts +72 -0
- package/lib/aws/cloudwatch/actions/ssm.js +104 -0
- package/lib/aws/cloudwatch/alarm-base.js +1 -1
- package/lib/aws/cloudwatch/alarm-rule.js +1 -1
- package/lib/aws/cloudwatch/alarm-status-widget.js +1 -1
- package/lib/aws/cloudwatch/alarm.js +1 -1
- package/lib/aws/cloudwatch/composite-alarm.js +1 -1
- package/lib/aws/cloudwatch/dashboard.js +1 -1
- package/lib/aws/cloudwatch/data-protection-policy.js +3 -3
- package/lib/aws/cloudwatch/graph.js +8 -8
- package/lib/aws/cloudwatch/layout.js +3 -3
- package/lib/aws/cloudwatch/log-destinations/kinesis.js +1 -1
- package/lib/aws/cloudwatch/log-destinations/lambda.js +1 -1
- package/lib/aws/cloudwatch/log-group.js +1 -1
- package/lib/aws/cloudwatch/log-query.js +1 -1
- package/lib/aws/cloudwatch/log-stream.js +1 -1
- package/lib/aws/cloudwatch/metric-filter.js +1 -1
- package/lib/aws/cloudwatch/metric.js +2 -2
- package/lib/aws/cloudwatch/pattern.js +3 -3
- package/lib/aws/cloudwatch/policy.js +1 -1
- package/lib/aws/cloudwatch/query-definition.js +2 -2
- package/lib/aws/cloudwatch/stats.js +1 -1
- package/lib/aws/cloudwatch/subscription-filter.js +1 -1
- package/lib/aws/cloudwatch/text.js +1 -1
- package/lib/aws/cloudwatch/variable.js +3 -3
- package/lib/aws/cloudwatch/widget.js +1 -1
- package/lib/aws/compute/access-log.d.ts +478 -0
- package/lib/aws/compute/access-log.js +649 -0
- package/lib/aws/compute/activity.js +1 -1
- package/lib/aws/compute/alb/application-listener-action.js +1 -1
- package/lib/aws/compute/alb/application-listener-certificate.js +1 -1
- package/lib/aws/compute/alb/application-listener-rule.js +1 -1
- package/lib/aws/compute/alb/application-listener.js +1 -1
- package/lib/aws/compute/alb/application-load-balancer.js +1 -1
- package/lib/aws/compute/alb/application-target-group.js +1 -1
- package/lib/aws/compute/alb/conditions.js +1 -1
- package/lib/aws/compute/alb/trust-store-revocation.js +1 -1
- package/lib/aws/compute/alb/trust-store.js +1 -1
- package/lib/aws/compute/api-definition.d.ts +106 -0
- package/lib/aws/compute/api-definition.js +200 -0
- package/lib/aws/compute/api-key.d.ts +184 -0
- package/lib/aws/compute/api-key.js +197 -0
- package/lib/aws/compute/apigateway-canned-metrics.generated.d.ts +169 -0
- package/lib/aws/compute/apigateway-canned-metrics.generated.js +63 -0
- package/lib/aws/compute/apigateway-util.d.ts +31 -0
- package/lib/aws/compute/apigateway-util.js +152 -0
- package/lib/aws/compute/architecture.js +1 -1
- package/lib/aws/compute/aspects/require-imdsv2-aspect.js +2 -2
- package/lib/aws/compute/authorizer.d.ts +35 -0
- package/lib/aws/compute/authorizer.js +28 -0
- package/lib/aws/compute/authorizers/identity-source.d.ts +37 -0
- package/lib/aws/compute/authorizers/identity-source.js +61 -0
- package/lib/aws/compute/authorizers/index.d.ts +2 -0
- package/lib/aws/compute/authorizers/index.js +20 -0
- package/lib/aws/compute/authorizers/lambda.d.ts +140 -0
- package/lib/aws/compute/authorizers/lambda.js +208 -0
- package/lib/aws/compute/base-path-mapping.d.ts +49 -0
- package/lib/aws/compute/base-path-mapping.js +52 -0
- package/lib/aws/compute/base-scalable-attribute.js +3 -3
- package/lib/aws/compute/bastion-host.js +1 -1
- package/lib/aws/compute/chain.js +1 -1
- package/lib/aws/compute/client-vpn-authorization-rule.js +1 -1
- package/lib/aws/compute/client-vpn-endpoint.js +2 -2
- package/lib/aws/compute/client-vpn-route.js +2 -2
- package/lib/aws/compute/code.d.ts +415 -0
- package/lib/aws/compute/code.js +424 -0
- package/lib/aws/compute/condition.js +1 -1
- package/lib/aws/compute/connections.js +1 -1
- package/lib/aws/compute/cors.d.ts +102 -0
- package/lib/aws/compute/cors.js +33 -0
- package/lib/aws/compute/deployment.d.ts +83 -0
- package/lib/aws/compute/deployment.js +158 -0
- package/lib/aws/compute/domain-name.d.ts +153 -0
- package/lib/aws/compute/domain-name.js +158 -0
- package/lib/aws/compute/event-invoke-config.d.ts +2 -2
- package/lib/aws/compute/event-invoke-config.js +4 -4
- package/lib/aws/compute/event-source-filter.js +2 -2
- package/lib/aws/compute/event-source-mapping.d.ts +2 -2
- package/lib/aws/compute/event-source-mapping.js +9 -7
- package/lib/aws/compute/event-sources/s3-onfailure-destination.js +1 -1
- package/lib/aws/compute/event-sources/s3.js +1 -1
- package/lib/aws/compute/event-sources/sqs-dlq.js +1 -1
- package/lib/aws/compute/event-sources/sqs.js +3 -2
- package/lib/aws/compute/fields.js +4 -4
- package/lib/aws/compute/function-alias.d.ts +1 -0
- package/lib/aws/compute/function-alias.js +8 -2
- package/lib/aws/compute/function-base.d.ts +15 -0
- package/lib/aws/compute/function-base.js +4 -4
- package/lib/aws/compute/function-destinations/event-bridge.js +1 -1
- package/lib/aws/compute/function-destinations/function.js +1 -1
- package/lib/aws/compute/function-destinations/sqs.js +1 -1
- package/lib/aws/compute/function-nodejs/bundling.d.ts +75 -0
- package/lib/aws/compute/function-nodejs/bundling.js +405 -0
- package/lib/aws/compute/function-nodejs/function.d.ts +99 -0
- package/lib/aws/compute/function-nodejs/function.js +175 -0
- package/lib/aws/compute/function-nodejs/index.d.ts +2 -0
- package/lib/aws/compute/function-nodejs/index.js +19 -0
- package/lib/aws/compute/function-nodejs/package-installation.d.ts +8 -0
- package/lib/aws/compute/function-nodejs/package-installation.js +36 -0
- package/lib/aws/compute/function-nodejs/package-manager.d.ts +33 -0
- package/lib/aws/compute/function-nodejs/package-manager.js +99 -0
- package/lib/aws/compute/function-nodejs/types.d.ts +410 -0
- package/lib/aws/compute/function-nodejs/types.js +81 -0
- package/lib/aws/compute/function-nodejs/util.d.ts +60 -0
- package/lib/aws/compute/function-nodejs/util.js +202 -0
- package/lib/aws/compute/function-url.d.ts +2 -2
- package/lib/aws/compute/function-url.js +4 -4
- package/lib/aws/compute/function.d.ts +34 -4
- package/lib/aws/compute/function.js +91 -17
- package/lib/aws/compute/gateway-response.d.ts +157 -0
- package/lib/aws/compute/gateway-response.js +156 -0
- package/lib/aws/compute/handler.d.ts +10 -0
- package/lib/aws/compute/handler.js +20 -0
- package/lib/aws/compute/index.d.ts +27 -0
- package/lib/aws/compute/index.js +29 -1
- package/lib/aws/compute/instance-types.js +1 -1
- package/lib/aws/compute/instance.js +1 -1
- package/lib/aws/compute/integration.d.ts +311 -0
- package/lib/aws/compute/integration.js +165 -0
- package/lib/aws/compute/integrations/aws.d.ts +72 -0
- package/lib/aws/compute/integrations/aws.js +55 -0
- package/lib/aws/compute/integrations/http.d.ts +37 -0
- package/lib/aws/compute/integrations/http.js +35 -0
- package/lib/aws/compute/integrations/index.d.ts +6 -0
- package/lib/aws/compute/integrations/index.js +24 -0
- package/lib/aws/compute/integrations/lambda.d.ts +40 -0
- package/lib/aws/compute/integrations/lambda.js +73 -0
- package/lib/aws/compute/integrations/mock.d.ts +16 -0
- package/lib/aws/compute/integrations/mock.js +30 -0
- package/lib/aws/compute/integrations/request-context.d.ts +144 -0
- package/lib/aws/compute/integrations/request-context.js +3 -0
- package/lib/aws/compute/integrations/stepfunctions.d.ts +102 -0
- package/lib/aws/compute/integrations/stepfunctions.js +268 -0
- package/lib/aws/compute/ip-addresses.js +2 -2
- package/lib/aws/compute/ipam.js +1 -1
- package/lib/aws/compute/json-schema.d.ts +75 -0
- package/lib/aws/compute/json-schema.js +23 -0
- package/lib/aws/compute/key-pair.js +1 -1
- package/lib/aws/compute/lambda-api.d.ts +46 -0
- package/lib/aws/compute/lambda-api.js +64 -0
- package/lib/aws/compute/launch-template.js +2 -2
- package/lib/aws/compute/lb-shared/base-listener.js +1 -1
- package/lib/aws/compute/lb-shared/base-load-balancer.js +2 -2
- package/lib/aws/compute/lb-shared/base-target-group.js +1 -1
- package/lib/aws/compute/lb-shared/listener-certificate.js +1 -1
- package/lib/aws/compute/lb-shared/load-balancer-targets.js +2 -2
- package/lib/aws/compute/lb-targets/alb-target.js +3 -3
- package/lib/aws/compute/lb-targets/instance-target.js +2 -2
- package/lib/aws/compute/lb-targets/ip-target.js +1 -1
- package/lib/aws/compute/lb-targets/lambda-target.js +1 -1
- package/lib/aws/compute/load-balancer.js +3 -3
- package/lib/aws/compute/machine-image/amazon-linux-2022.js +2 -2
- package/lib/aws/compute/machine-image/amazon-linux-2023.js +2 -2
- package/lib/aws/compute/machine-image/amazon-linux2.js +2 -2
- package/lib/aws/compute/machine-image/common.js +1 -1
- package/lib/aws/compute/machine-image/machine-image.js +8 -8
- package/lib/aws/compute/method.d.ts +219 -0
- package/lib/aws/compute/method.js +396 -0
- package/lib/aws/compute/methodresponse.d.ts +28 -0
- package/lib/aws/compute/methodresponse.js +3 -0
- package/lib/aws/compute/model.d.ts +143 -0
- package/lib/aws/compute/model.js +141 -0
- package/lib/aws/compute/nat.js +5 -5
- package/lib/aws/compute/network-acl-types.js +2 -2
- package/lib/aws/compute/network-acl.js +3 -3
- package/lib/aws/compute/nlb/network-listener-action.js +1 -1
- package/lib/aws/compute/nlb/network-listener.js +1 -1
- package/lib/aws/compute/nlb/network-load-balancer.js +1 -1
- package/lib/aws/compute/nlb/network-target-group.js +1 -1
- package/lib/aws/compute/peer.js +1 -1
- package/lib/aws/compute/placement-group.js +1 -1
- package/lib/aws/compute/port.js +1 -1
- package/lib/aws/compute/prefix-list.js +1 -1
- package/lib/aws/compute/requestvalidator.d.ts +50 -0
- package/lib/aws/compute/requestvalidator.js +59 -0
- package/lib/aws/compute/resource.d.ts +223 -0
- package/lib/aws/compute/resource.js +316 -0
- package/lib/aws/compute/restapi.d.ts +510 -0
- package/lib/aws/compute/restapi.js +626 -0
- package/lib/aws/compute/route.js +8 -8
- package/lib/aws/compute/runtime.d.ts +282 -0
- package/lib/aws/compute/runtime.js +337 -0
- package/lib/aws/compute/scalable-target.js +3 -3
- package/lib/aws/compute/schedule.js +3 -3
- package/lib/aws/compute/security-group.js +1 -1
- package/lib/aws/compute/stage.d.ts +350 -0
- package/lib/aws/compute/stage.js +304 -0
- package/lib/aws/compute/state-graph.js +1 -1
- package/lib/aws/compute/state-machine-fragment.js +1 -1
- package/lib/aws/compute/state-machine.js +4 -4
- package/lib/aws/compute/states/choice.js +1 -1
- package/lib/aws/compute/states/custom-state.js +1 -1
- package/lib/aws/compute/states/distributed-map/item-batcher.js +1 -1
- package/lib/aws/compute/states/distributed-map/item-reader.js +5 -5
- package/lib/aws/compute/states/distributed-map/result-writer.js +1 -1
- package/lib/aws/compute/states/distributed-map.js +1 -1
- package/lib/aws/compute/states/fail.js +1 -1
- package/lib/aws/compute/states/map-base.js +1 -1
- package/lib/aws/compute/states/map.js +1 -1
- package/lib/aws/compute/states/parallel.js +1 -1
- package/lib/aws/compute/states/pass.js +2 -2
- package/lib/aws/compute/states/state.js +1 -1
- package/lib/aws/compute/states/succeed.js +1 -1
- package/lib/aws/compute/states/task-base.js +2 -2
- package/lib/aws/compute/states/task.js +1 -1
- package/lib/aws/compute/states/wait.js +2 -2
- package/lib/aws/compute/step-scaling-action.js +3 -3
- package/lib/aws/compute/step-scaling-policy.js +1 -1
- package/lib/aws/compute/stepfunctions-api.d.ts +103 -0
- package/lib/aws/compute/stepfunctions-api.js +39 -0
- package/lib/aws/compute/subnet-v2.js +2 -2
- package/lib/aws/compute/subnet.js +1 -1
- package/lib/aws/compute/target-tracking-scaling-policy.js +3 -3
- package/lib/aws/compute/task-credentials.js +1 -1
- package/lib/aws/compute/task-input.js +1 -1
- package/lib/aws/compute/tasks/aws-sdk/call-aws-service.js +1 -1
- package/lib/aws/compute/tasks/eventbridge/put-events.js +1 -1
- package/lib/aws/compute/tasks/http/invoke.js +1 -1
- package/lib/aws/compute/tasks/lambda/invoke.js +1 -1
- package/lib/aws/compute/tasks/sqs/send-message.js +1 -1
- package/lib/aws/compute/tasks/stepfunctions/invoke-activity.js +1 -1
- package/lib/aws/compute/tasks/stepfunctions/start-execution.js +1 -1
- package/lib/aws/compute/types.js +1 -1
- package/lib/aws/compute/usage-plan.d.ts +194 -0
- package/lib/aws/compute/usage-plan.js +174 -0
- package/lib/aws/compute/user-data.js +3 -3
- package/lib/aws/compute/volume.js +2 -2
- package/lib/aws/compute/vpc-endpoint-service.js +1 -1
- package/lib/aws/compute/vpc-endpoint.js +6 -6
- package/lib/aws/compute/vpc-flow-logs.js +4 -4
- package/lib/aws/compute/vpc-link.d.ts +104 -0
- package/lib/aws/compute/vpc-link.js +137 -0
- package/lib/aws/compute/vpc-v2-base.js +1 -1
- package/lib/aws/compute/vpc-v2.js +2 -2
- package/lib/aws/compute/vpc.js +4 -4
- package/lib/aws/compute/vpn.js +3 -3
- package/lib/aws/edge/certificate.js +1 -1
- package/lib/aws/edge/distribution.js +3 -3
- package/lib/aws/edge/dns-alias-record-targets.js +3 -3
- package/lib/aws/edge/dns-record.js +13 -13
- package/lib/aws/edge/dns-zone.js +1 -1
- package/lib/aws/edge/function.js +2 -2
- package/lib/aws/edge/key-value-store.js +4 -4
- package/lib/aws/edge/origin.js +3 -3
- package/lib/aws/edge/response-headers-policy.js +1 -1
- package/lib/aws/encryption/alias.js +1 -1
- package/lib/aws/encryption/key.js +1 -1
- package/lib/aws/encryption/via-service-principal.js +1 -1
- package/lib/aws/iam/grant.js +2 -2
- package/lib/aws/iam/group.js +1 -1
- package/lib/aws/iam/instance-profile.js +1 -1
- package/lib/aws/iam/managed-policy.js +1 -1
- package/lib/aws/iam/oidc-provider.js +1 -1
- package/lib/aws/iam/policy-document.js +1 -1
- package/lib/aws/iam/policy-statement.js +1 -1
- package/lib/aws/iam/policy.js +1 -1
- package/lib/aws/iam/principals.js +20 -20
- package/lib/aws/iam/role.js +1 -1
- package/lib/aws/iam/saml-provider.js +2 -2
- package/lib/aws/iam/unknown-principal.js +1 -1
- package/lib/aws/iam/user.js +5 -5
- package/lib/aws/index.d.ts +1 -0
- package/lib/aws/index.js +4 -1
- package/lib/aws/network/simple-ipv4-vpc.js +1 -1
- package/lib/aws/network/subnet-group.js +3 -3
- package/lib/aws/network/subnet.js +4 -4
- package/lib/aws/notify/archive.js +1 -1
- package/lib/aws/notify/connection.js +3 -3
- package/lib/aws/notify/event-bus.js +3 -3
- package/lib/aws/notify/event-pattern.js +1 -1
- package/lib/aws/notify/input.js +2 -2
- package/lib/aws/notify/kinesis-stream.js +1 -1
- package/lib/aws/notify/notification-rule.d.ts +1 -1
- package/lib/aws/notify/notification-rule.js +5 -5
- package/lib/aws/notify/policy.js +1 -1
- package/lib/aws/notify/queue-policy.js +1 -1
- package/lib/aws/notify/queue.js +1 -1
- package/lib/aws/notify/resource-policy.js +1 -1
- package/lib/aws/notify/rule.js +1 -1
- package/lib/aws/notify/schedule.js +1 -1
- package/lib/aws/notify/subscription-filter.js +1 -1
- package/lib/aws/notify/subscription.js +4 -4
- package/lib/aws/notify/subscriptions/email.js +1 -1
- package/lib/aws/notify/subscriptions/lambda.js +1 -1
- package/lib/aws/notify/subscriptions/sms.js +1 -1
- package/lib/aws/notify/subscriptions/sqs.js +1 -1
- package/lib/aws/notify/subscriptions/url.js +1 -1
- package/lib/aws/notify/targets/event-bus.js +1 -1
- package/lib/aws/notify/targets/function.js +1 -1
- package/lib/aws/notify/targets/log-group.js +2 -2
- package/lib/aws/notify/targets/sqs.js +1 -1
- package/lib/aws/notify/targets/state-machine.js +1 -1
- package/lib/aws/notify/topic-base.js +1 -1
- package/lib/aws/notify/topic.js +6 -5
- package/lib/aws/partition.d.ts +21 -0
- package/lib/aws/partition.js +42 -0
- package/lib/aws/storage/assets/image-asset.d.ts +379 -0
- package/lib/aws/storage/assets/image-asset.js +247 -0
- package/lib/aws/storage/assets/index.d.ts +2 -0
- package/lib/aws/storage/assets/index.js +21 -0
- package/lib/aws/storage/assets/s3.d.ts +125 -0
- package/lib/aws/storage/assets/s3.js +80 -0
- package/lib/aws/storage/auth-token.d.ts +25 -0
- package/lib/aws/storage/auth-token.js +54 -0
- package/lib/aws/storage/billing.js +1 -1
- package/lib/aws/storage/bucket-notifications.js +1 -1
- package/lib/aws/storage/bucket-policy.js +1 -1
- package/lib/aws/storage/bucket-source.d.ts +1 -1
- package/lib/aws/storage/bucket-source.js +4 -4
- package/lib/aws/storage/bucket.d.ts +14 -6
- package/lib/aws/storage/bucket.js +48 -40
- package/lib/aws/storage/capacity.js +1 -1
- package/lib/aws/storage/ecr-lifecycle.d.ts +88 -0
- package/lib/aws/storage/ecr-lifecycle.js +23 -0
- package/lib/aws/storage/ecr-repository.d.ts +446 -0
- package/lib/aws/storage/ecr-repository.js +685 -0
- package/lib/aws/storage/encryption.js +1 -1
- package/lib/aws/storage/index.d.ts +5 -0
- package/lib/aws/storage/index.js +10 -3
- package/lib/aws/storage/location.d.ts +17 -0
- package/lib/aws/storage/location.js +4 -0
- package/lib/aws/storage/notification-targets/function.js +1 -1
- package/lib/aws/storage/notification-targets/queue.js +1 -1
- package/lib/aws/storage/origin-access-identity.js +1 -1
- package/lib/aws/storage/parameter.js +2 -2
- package/lib/aws/storage/table.js +3 -3
- package/lib/aws/storage/util.d.ts +8 -20
- package/lib/aws/storage/util.js +56 -34
- package/lib/aws/util.d.ts +1 -0
- package/lib/aws/util.js +6 -1
- package/lib/bundling.d.ts +434 -0
- package/lib/bundling.js +368 -0
- package/lib/construct-base.js +2 -2
- package/lib/duration.js +1 -1
- package/lib/expiration.js +1 -1
- package/lib/fs/copy.d.ts +2 -0
- package/lib/fs/copy.js +57 -0
- package/lib/fs/fingerprint.d.ts +21 -0
- package/lib/fs/fingerprint.js +165 -0
- package/lib/fs/ignore.d.ts +107 -0
- package/lib/fs/ignore.js +190 -0
- package/lib/fs/index.d.ts +47 -0
- package/lib/fs/index.js +88 -0
- package/lib/fs/options.d.ts +110 -0
- package/lib/fs/options.js +60 -0
- package/lib/fs/utils.d.ts +11 -0
- package/lib/fs/utils.js +34 -0
- package/lib/index.d.ts +5 -0
- package/lib/index.js +7 -1
- package/lib/private/asset-staging.d.ts +83 -0
- package/lib/private/asset-staging.js +205 -0
- package/lib/private/cache.d.ts +17 -0
- package/lib/private/cache.js +35 -0
- package/lib/private/jsii-deprecated.d.ts +2 -0
- package/lib/private/jsii-deprecated.js +19 -0
- package/lib/private/unique-resource-name.js +3 -2
- package/lib/size.js +1 -1
- package/lib/stack-base.js +1 -1
- package/lib/terra-func.js +2 -2
- package/lib/time-zone.js +1 -1
- package/node_modules/@balena/dockerignore/CHANGELOG.md +31 -0
- package/node_modules/@balena/dockerignore/LICENSE.md +206 -0
- package/node_modules/@balena/dockerignore/README.md +261 -0
- package/node_modules/@balena/dockerignore/ignore.js +363 -0
- package/node_modules/@balena/dockerignore/index.d.ts +45 -0
- package/node_modules/@balena/dockerignore/package.json +49 -0
- package/node_modules/balanced-match/.github/FUNDING.yml +2 -0
- package/node_modules/balanced-match/LICENSE.md +21 -0
- package/node_modules/balanced-match/README.md +97 -0
- package/node_modules/balanced-match/index.js +62 -0
- package/node_modules/balanced-match/package.json +48 -0
- package/node_modules/concat-map/.travis.yml +4 -0
- package/node_modules/concat-map/LICENSE +18 -0
- package/node_modules/concat-map/README.markdown +62 -0
- package/node_modules/concat-map/example/map.js +6 -0
- package/node_modules/concat-map/index.js +13 -0
- package/node_modules/concat-map/package.json +43 -0
- package/node_modules/concat-map/test/map.js +39 -0
- package/node_modules/ignore/LICENSE-MIT +21 -0
- package/node_modules/ignore/README.md +412 -0
- package/node_modules/ignore/index.d.ts +61 -0
- package/node_modules/ignore/index.js +636 -0
- package/node_modules/ignore/legacy.js +559 -0
- package/node_modules/ignore/package.json +74 -0
- package/node_modules/minimatch/LICENSE +15 -0
- package/node_modules/minimatch/README.md +230 -0
- package/node_modules/minimatch/minimatch.js +947 -0
- package/node_modules/minimatch/node_modules/brace-expansion/LICENSE +21 -0
- package/node_modules/minimatch/node_modules/brace-expansion/README.md +129 -0
- package/node_modules/minimatch/node_modules/brace-expansion/index.js +201 -0
- package/node_modules/minimatch/node_modules/brace-expansion/package.json +47 -0
- package/node_modules/minimatch/package.json +33 -0
- package/package.json +14 -5
- package/lib/aws/compute/function-nodejs.d.ts +0 -55
- package/lib/aws/compute/function-nodejs.js +0 -70
|
@@ -0,0 +1,379 @@
|
|
|
1
|
+
import { Construct } from "constructs";
|
|
2
|
+
import * as ecr from "..";
|
|
3
|
+
import { FileFingerprintOptions, IAsset } from "../../..";
|
|
4
|
+
/**
|
|
5
|
+
* networking mode on build time supported by docker
|
|
6
|
+
*/
|
|
7
|
+
export declare class NetworkMode {
|
|
8
|
+
readonly mode: string;
|
|
9
|
+
/**
|
|
10
|
+
* The default networking mode if omitted, create a network stack on the default Docker bridge
|
|
11
|
+
*/
|
|
12
|
+
static readonly DEFAULT: ecr.assets.NetworkMode;
|
|
13
|
+
/**
|
|
14
|
+
* Use the Docker host network stack
|
|
15
|
+
*/
|
|
16
|
+
static readonly HOST: ecr.assets.NetworkMode;
|
|
17
|
+
/**
|
|
18
|
+
* Disable the network stack, only the loopback device will be created
|
|
19
|
+
*/
|
|
20
|
+
static readonly NONE: ecr.assets.NetworkMode;
|
|
21
|
+
/**
|
|
22
|
+
* Reuse another container's network stack
|
|
23
|
+
*
|
|
24
|
+
* @param containerId The target container's id or name
|
|
25
|
+
*/
|
|
26
|
+
static fromContainer(containerId: string): ecr.assets.NetworkMode;
|
|
27
|
+
/**
|
|
28
|
+
* Used to specify a custom networking mode
|
|
29
|
+
* Use this if the networking mode name is not yet supported by the CDK.
|
|
30
|
+
*
|
|
31
|
+
* @param mode The networking mode to use for docker build
|
|
32
|
+
*/
|
|
33
|
+
static custom(mode: string): ecr.assets.NetworkMode;
|
|
34
|
+
/**
|
|
35
|
+
* @param mode The networking mode to use for docker build
|
|
36
|
+
*/
|
|
37
|
+
private constructor();
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* platform supported by docker
|
|
41
|
+
*/
|
|
42
|
+
export declare class Platform {
|
|
43
|
+
readonly platform: string;
|
|
44
|
+
/**
|
|
45
|
+
* Build for linux/amd64
|
|
46
|
+
*/
|
|
47
|
+
static readonly LINUX_AMD64: ecr.assets.Platform;
|
|
48
|
+
/**
|
|
49
|
+
* Build for linux/arm64
|
|
50
|
+
*/
|
|
51
|
+
static readonly LINUX_ARM64: ecr.assets.Platform;
|
|
52
|
+
/**
|
|
53
|
+
* Used to specify a custom platform
|
|
54
|
+
* Use this if the platform name is not yet supported by the CDK.
|
|
55
|
+
*
|
|
56
|
+
* @param platform The platform to use for docker build
|
|
57
|
+
*/
|
|
58
|
+
static custom(platform: string): ecr.assets.Platform;
|
|
59
|
+
/**
|
|
60
|
+
* @param platform The platform to use for docker build
|
|
61
|
+
*/
|
|
62
|
+
private constructor();
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Options to control invalidation of `DockerImageAsset` asset hashes
|
|
66
|
+
*/
|
|
67
|
+
export interface DockerImageAssetInvalidationOptions {
|
|
68
|
+
/**
|
|
69
|
+
* Use `extraHash` while calculating the asset hash
|
|
70
|
+
*
|
|
71
|
+
* @default true
|
|
72
|
+
*/
|
|
73
|
+
readonly extraHash?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Use `buildArgs` while calculating the asset hash
|
|
76
|
+
*
|
|
77
|
+
* @default true
|
|
78
|
+
*/
|
|
79
|
+
readonly buildArgs?: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Use `buildSecrets` while calculating the asset hash
|
|
82
|
+
*
|
|
83
|
+
* @default true
|
|
84
|
+
*/
|
|
85
|
+
readonly buildSecrets?: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Use `buildSsh` while calculating the asset hash
|
|
88
|
+
*
|
|
89
|
+
* @default true
|
|
90
|
+
*/
|
|
91
|
+
readonly buildSsh?: boolean;
|
|
92
|
+
/**
|
|
93
|
+
* Use `target` while calculating the asset hash
|
|
94
|
+
*
|
|
95
|
+
* @default true
|
|
96
|
+
*/
|
|
97
|
+
readonly target?: boolean;
|
|
98
|
+
/**
|
|
99
|
+
* Use `file` while calculating the asset hash
|
|
100
|
+
*
|
|
101
|
+
* @default true
|
|
102
|
+
*/
|
|
103
|
+
readonly file?: boolean;
|
|
104
|
+
/**
|
|
105
|
+
* Use `repositoryName` while calculating the asset hash
|
|
106
|
+
*
|
|
107
|
+
* @default true
|
|
108
|
+
*/
|
|
109
|
+
readonly repositoryName?: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* Use `networkMode` while calculating the asset hash
|
|
112
|
+
*
|
|
113
|
+
* @default true
|
|
114
|
+
*/
|
|
115
|
+
readonly networkMode?: boolean;
|
|
116
|
+
/**
|
|
117
|
+
* Use `platform` while calculating the asset hash
|
|
118
|
+
*
|
|
119
|
+
* @default true
|
|
120
|
+
*/
|
|
121
|
+
readonly platform?: boolean;
|
|
122
|
+
/**
|
|
123
|
+
* Use `outputs` while calculating the asset hash
|
|
124
|
+
*
|
|
125
|
+
* @default true
|
|
126
|
+
*/
|
|
127
|
+
readonly outputs?: boolean;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Options for configuring the Docker cache backend
|
|
131
|
+
*/
|
|
132
|
+
export interface DockerCacheOption {
|
|
133
|
+
/**
|
|
134
|
+
* The type of cache to use.
|
|
135
|
+
* Refer to https://docs.docker.com/build/cache/backends/ for full list of backends.
|
|
136
|
+
* @default - unspecified
|
|
137
|
+
*
|
|
138
|
+
* @example 'registry'
|
|
139
|
+
*/
|
|
140
|
+
readonly type: string;
|
|
141
|
+
/**
|
|
142
|
+
* Any parameters to pass into the docker cache backend configuration.
|
|
143
|
+
* Refer to https://docs.docker.com/build/cache/backends/ for cache backend configuration.
|
|
144
|
+
* @default {} No options provided
|
|
145
|
+
*
|
|
146
|
+
* @example
|
|
147
|
+
* declare const branch: string;
|
|
148
|
+
*
|
|
149
|
+
* const params = {
|
|
150
|
+
* ref: `12345678.dkr.ecr.us-west-2.amazonaws.com/cache:${branch}`,
|
|
151
|
+
* mode: "max",
|
|
152
|
+
* };
|
|
153
|
+
*/
|
|
154
|
+
readonly params?: {
|
|
155
|
+
[key: string]: string;
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Options for DockerImageAsset
|
|
160
|
+
*/
|
|
161
|
+
export interface DockerImageAssetOptions extends FileFingerprintOptions {
|
|
162
|
+
/**
|
|
163
|
+
* ECR repository name
|
|
164
|
+
*
|
|
165
|
+
* Specify this property if you need to statically address the image, e.g.
|
|
166
|
+
* from a Kubernetes Pod. Note, this is only the repository name, without the
|
|
167
|
+
* registry and the tag parts.
|
|
168
|
+
*
|
|
169
|
+
* @default - the default ECR repository for CDK assets
|
|
170
|
+
* @deprecated to control the location of docker image assets, please override
|
|
171
|
+
* `Stack.addDockerImageAsset`. this feature will be removed in future
|
|
172
|
+
* releases.
|
|
173
|
+
*/
|
|
174
|
+
readonly repositoryName?: string;
|
|
175
|
+
/**
|
|
176
|
+
* Build args to pass to the `docker build` command.
|
|
177
|
+
*
|
|
178
|
+
* Since Docker build arguments are resolved before deployment, keys and
|
|
179
|
+
* values cannot refer to unresolved tokens (such as `lambda.functionArn` or
|
|
180
|
+
* `queue.queueUrl`).
|
|
181
|
+
*
|
|
182
|
+
* @default - no build args are passed
|
|
183
|
+
*/
|
|
184
|
+
readonly buildArgs?: {
|
|
185
|
+
[key: string]: string;
|
|
186
|
+
};
|
|
187
|
+
/**
|
|
188
|
+
* Build secrets.
|
|
189
|
+
*
|
|
190
|
+
* Docker BuildKit must be enabled to use build secrets.
|
|
191
|
+
*
|
|
192
|
+
* @see https://docs.docker.com/build/buildkit/
|
|
193
|
+
*
|
|
194
|
+
* @default - no build secrets
|
|
195
|
+
*
|
|
196
|
+
* @example
|
|
197
|
+
* import { DockerBuildSecret } from 'aws-cdk-lib';
|
|
198
|
+
*
|
|
199
|
+
* const buildSecrets = {
|
|
200
|
+
* 'MY_SECRET': DockerBuildSecret.fromSrc('file.txt')
|
|
201
|
+
* };
|
|
202
|
+
*/
|
|
203
|
+
readonly buildSecrets?: {
|
|
204
|
+
[key: string]: string;
|
|
205
|
+
};
|
|
206
|
+
/**
|
|
207
|
+
* SSH agent socket or keys to pass to the `docker build` command.
|
|
208
|
+
*
|
|
209
|
+
* Docker BuildKit must be enabled to use the ssh flag
|
|
210
|
+
*
|
|
211
|
+
* @see https://docs.docker.com/build/buildkit/
|
|
212
|
+
*
|
|
213
|
+
* @default - no --ssh flag
|
|
214
|
+
*/
|
|
215
|
+
readonly buildSsh?: string;
|
|
216
|
+
/**
|
|
217
|
+
* Docker target to build to
|
|
218
|
+
*
|
|
219
|
+
* @default - no target
|
|
220
|
+
*/
|
|
221
|
+
readonly target?: string;
|
|
222
|
+
/**
|
|
223
|
+
* Path to the Dockerfile (relative to the directory).
|
|
224
|
+
*
|
|
225
|
+
* @default 'Dockerfile'
|
|
226
|
+
*/
|
|
227
|
+
readonly file?: string;
|
|
228
|
+
/**
|
|
229
|
+
* Networking mode for the RUN commands during build. Support docker API 1.25+.
|
|
230
|
+
*
|
|
231
|
+
* @default - no networking mode specified (the default networking mode `NetworkMode.DEFAULT` will be used)
|
|
232
|
+
*/
|
|
233
|
+
readonly networkMode?: NetworkMode;
|
|
234
|
+
/**
|
|
235
|
+
* Platform to build for. _Requires Docker Buildx_.
|
|
236
|
+
*
|
|
237
|
+
* @default - no platform specified (the current machine architecture will be used)
|
|
238
|
+
*/
|
|
239
|
+
readonly platform?: Platform;
|
|
240
|
+
/**
|
|
241
|
+
* Options to control which parameters are used to invalidate the asset hash.
|
|
242
|
+
*
|
|
243
|
+
* @default - hash all parameters
|
|
244
|
+
*/
|
|
245
|
+
readonly invalidation?: DockerImageAssetInvalidationOptions;
|
|
246
|
+
/**
|
|
247
|
+
* Outputs to pass to the `docker build` command.
|
|
248
|
+
*
|
|
249
|
+
* @default - no outputs are passed to the build command (default outputs are used)
|
|
250
|
+
* @see https://docs.docker.com/engine/reference/commandline/build/#custom-build-outputs
|
|
251
|
+
*/
|
|
252
|
+
readonly outputs?: string[];
|
|
253
|
+
/**
|
|
254
|
+
* Unique identifier of the docker image asset and its potential revisions.
|
|
255
|
+
* Required if using AppScopedStagingSynthesizer.
|
|
256
|
+
*
|
|
257
|
+
* @default - no asset name
|
|
258
|
+
*/
|
|
259
|
+
readonly assetName?: string;
|
|
260
|
+
/**
|
|
261
|
+
* Cache from options to pass to the `docker build` command.
|
|
262
|
+
*
|
|
263
|
+
* @default - no cache from options are passed to the build command
|
|
264
|
+
* @see https://docs.docker.com/build/cache/backends/
|
|
265
|
+
*/
|
|
266
|
+
readonly cacheFrom?: DockerCacheOption[];
|
|
267
|
+
/**
|
|
268
|
+
* Cache to options to pass to the `docker build` command.
|
|
269
|
+
*
|
|
270
|
+
* @default - no cache to options are passed to the build command
|
|
271
|
+
* @see https://docs.docker.com/build/cache/backends/
|
|
272
|
+
*/
|
|
273
|
+
readonly cacheTo?: DockerCacheOption;
|
|
274
|
+
/**
|
|
275
|
+
* Disable the cache and pass `--no-cache` to the `docker build` command.
|
|
276
|
+
*
|
|
277
|
+
* @default - cache is used
|
|
278
|
+
*/
|
|
279
|
+
readonly cacheDisabled?: boolean;
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* Props for DockerImageAssets
|
|
283
|
+
*/
|
|
284
|
+
export interface DockerImageAssetProps extends DockerImageAssetOptions {
|
|
285
|
+
/**
|
|
286
|
+
* The directory where the Dockerfile is stored
|
|
287
|
+
*
|
|
288
|
+
* Any directory inside with a name that matches the CDK output folder (cdk.out by default) will be excluded from the asset
|
|
289
|
+
*/
|
|
290
|
+
readonly directory: string;
|
|
291
|
+
}
|
|
292
|
+
/**
|
|
293
|
+
* An asset that represents a Docker image.
|
|
294
|
+
*
|
|
295
|
+
* The image will be created in build time and uploaded to an ECR repository.
|
|
296
|
+
*
|
|
297
|
+
* WARNING: `DockerAsset[0-9]*` and `DockerAsset_Image[0-9]*` identifiers are
|
|
298
|
+
* used internally by the Stack Asset Manager and will cause Id conflicts.
|
|
299
|
+
*/
|
|
300
|
+
export declare class DockerImageAsset extends Construct implements IAsset {
|
|
301
|
+
/**
|
|
302
|
+
* The full URI of the image (including a tag). Use this reference to pull
|
|
303
|
+
* the asset.
|
|
304
|
+
*/
|
|
305
|
+
imageUri: string;
|
|
306
|
+
/**
|
|
307
|
+
* Repository where the image is stored
|
|
308
|
+
*/
|
|
309
|
+
repository: ecr.IRepository;
|
|
310
|
+
/**
|
|
311
|
+
* A hash of the source of this asset, which is available at construction time. As this is a plain
|
|
312
|
+
* string, it can be used in construct IDs in order to enforce creation of a new resource when
|
|
313
|
+
* the content hash has changed.
|
|
314
|
+
* @deprecated use assetHash
|
|
315
|
+
*/
|
|
316
|
+
readonly sourceHash: string;
|
|
317
|
+
/**
|
|
318
|
+
* A hash of this asset, which is available at construction time. As this is a plain string, it
|
|
319
|
+
* can be used in construct IDs in order to enforce creation of a new resource when the content
|
|
320
|
+
* hash has changed.
|
|
321
|
+
*/
|
|
322
|
+
readonly assetHash: string;
|
|
323
|
+
/**
|
|
324
|
+
* The tag of this asset when it is uploaded to ECR. The tag may differ from the assetHash if a stack synthesizer adds a dockerTagPrefix.
|
|
325
|
+
*/
|
|
326
|
+
readonly imageTag: string;
|
|
327
|
+
/**
|
|
328
|
+
* The path to the asset, relative to the current Cloud Assembly
|
|
329
|
+
*
|
|
330
|
+
* If asset staging is disabled, this will just be the original path.
|
|
331
|
+
*
|
|
332
|
+
* If asset staging is enabled it will be the staged path.
|
|
333
|
+
*/
|
|
334
|
+
private readonly assetPath;
|
|
335
|
+
/**
|
|
336
|
+
* The path to the Dockerfile, relative to the assetPath
|
|
337
|
+
*/
|
|
338
|
+
private readonly dockerfilePath?;
|
|
339
|
+
/**
|
|
340
|
+
* Build args to pass to the `docker build` command.
|
|
341
|
+
*/
|
|
342
|
+
private readonly dockerBuildArgs?;
|
|
343
|
+
/**
|
|
344
|
+
* Build secrets to pass to the `docker build` command.
|
|
345
|
+
*/
|
|
346
|
+
private readonly dockerBuildSecrets?;
|
|
347
|
+
/**
|
|
348
|
+
* SSH agent socket or keys to pass to the `docker build` command.
|
|
349
|
+
*/
|
|
350
|
+
private readonly dockerBuildSsh?;
|
|
351
|
+
/**
|
|
352
|
+
* Outputs to pass to the `docker build` command.
|
|
353
|
+
*/
|
|
354
|
+
private readonly dockerOutputs?;
|
|
355
|
+
/**
|
|
356
|
+
* Unique identifier of the docker image asset and its potential revisions.
|
|
357
|
+
* Required if using AppScopedStagingSynthesizer.
|
|
358
|
+
*
|
|
359
|
+
* @default - no asset name
|
|
360
|
+
*/
|
|
361
|
+
private readonly assetName?;
|
|
362
|
+
/**
|
|
363
|
+
* Cache from options to pass to the `docker build` command.
|
|
364
|
+
*/
|
|
365
|
+
private readonly dockerCacheFrom?;
|
|
366
|
+
/**
|
|
367
|
+
* Cache to options to pass to the `docker build` command.
|
|
368
|
+
*/
|
|
369
|
+
private readonly dockerCacheTo?;
|
|
370
|
+
/**
|
|
371
|
+
* Disable the cache and pass `--no-cache` to the `docker build` command.
|
|
372
|
+
*/
|
|
373
|
+
private readonly dockerCacheDisabled?;
|
|
374
|
+
/**
|
|
375
|
+
* Docker target to build to
|
|
376
|
+
*/
|
|
377
|
+
private readonly dockerBuildTarget?;
|
|
378
|
+
constructor(scope: Construct, id: string, props: DockerImageAssetProps);
|
|
379
|
+
}
|