terraconstructs 0.0.8
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/.envrc +5 -0
- package/.jsii +79780 -0
- package/.mise.toml +8 -0
- package/.nvmrc +1 -0
- package/.terraform-version +1 -0
- package/.terraform.d/plugin-cache/.gitignore +5 -0
- package/LICENSE +674 -0
- package/NOTICE.txt +12 -0
- package/README.md +42 -0
- package/bun.lockb +0 -0
- package/go.mod +158 -0
- package/go.sum +1206 -0
- package/lib/aws/arn.d.ts +187 -0
- package/lib/aws/arn.js +383 -0
- package/lib/aws/aws-construct.d.ts +76 -0
- package/lib/aws/aws-construct.js +38 -0
- package/lib/aws/aws-stack.d.ts +201 -0
- package/lib/aws/aws-stack.js +303 -0
- package/lib/aws/cloudwatch/actions/ec2.d.ts +35 -0
- package/lib/aws/cloudwatch/actions/ec2.js +48 -0
- package/lib/aws/cloudwatch/actions/index.d.ts +2 -0
- package/lib/aws/cloudwatch/actions/index.js +24 -0
- package/lib/aws/cloudwatch/actions/lambda.d.ts +16 -0
- package/lib/aws/cloudwatch/actions/lambda.js +48 -0
- package/lib/aws/cloudwatch/alarm-action.d.ts +23 -0
- package/lib/aws/cloudwatch/alarm-action.js +4 -0
- package/lib/aws/cloudwatch/alarm-base.d.ts +84 -0
- package/lib/aws/cloudwatch/alarm-base.js +64 -0
- package/lib/aws/cloudwatch/alarm-rule.d.ts +61 -0
- package/lib/aws/cloudwatch/alarm-rule.js +116 -0
- package/lib/aws/cloudwatch/alarm-status-widget.d.ts +77 -0
- package/lib/aws/cloudwatch/alarm-status-widget.js +62 -0
- package/lib/aws/cloudwatch/alarm.d.ts +158 -0
- package/lib/aws/cloudwatch/alarm.js +410 -0
- package/lib/aws/cloudwatch/composite-alarm.d.ts +88 -0
- package/lib/aws/cloudwatch/composite-alarm.js +98 -0
- package/lib/aws/cloudwatch/dashboard.d.ts +137 -0
- package/lib/aws/cloudwatch/dashboard.js +141 -0
- package/lib/aws/cloudwatch/data-protection-policy.d.ts +184 -0
- package/lib/aws/cloudwatch/data-protection-policy.js +246 -0
- package/lib/aws/cloudwatch/graph.d.ts +792 -0
- package/lib/aws/cloudwatch/graph.js +537 -0
- package/lib/aws/cloudwatch/index.d.ts +26 -0
- package/lib/aws/cloudwatch/index.js +49 -0
- package/lib/aws/cloudwatch/layout.d.ts +89 -0
- package/lib/aws/cloudwatch/layout.js +147 -0
- package/lib/aws/cloudwatch/log-destinations/index.d.ts +2 -0
- package/lib/aws/cloudwatch/log-destinations/index.js +20 -0
- package/lib/aws/cloudwatch/log-destinations/kinesis.d.ts +29 -0
- package/lib/aws/cloudwatch/log-destinations/kinesis.js +52 -0
- package/lib/aws/cloudwatch/log-destinations/lambda.d.ts +22 -0
- package/lib/aws/cloudwatch/log-destinations/lambda.js +46 -0
- package/lib/aws/cloudwatch/log-group.d.ts +453 -0
- package/lib/aws/cloudwatch/log-group.js +350 -0
- package/lib/aws/cloudwatch/log-query.d.ts +91 -0
- package/lib/aws/cloudwatch/log-query.js +85 -0
- package/lib/aws/cloudwatch/log-stream.d.ts +57 -0
- package/lib/aws/cloudwatch/log-stream.js +57 -0
- package/lib/aws/cloudwatch/metric-filter.d.ts +30 -0
- package/lib/aws/cloudwatch/metric-filter.js +69 -0
- package/lib/aws/cloudwatch/metric-types.d.ts +407 -0
- package/lib/aws/cloudwatch/metric-types.js +151 -0
- package/lib/aws/cloudwatch/metric.d.ts +492 -0
- package/lib/aws/cloudwatch/metric.js +493 -0
- package/lib/aws/cloudwatch/pattern.d.ts +195 -0
- package/lib/aws/cloudwatch/pattern.js +412 -0
- package/lib/aws/cloudwatch/policy.d.ts +43 -0
- package/lib/aws/cloudwatch/policy.js +50 -0
- package/lib/aws/cloudwatch/private/drop-empty-object-at-the-end-of-an-array-token.d.ts +14 -0
- package/lib/aws/cloudwatch/private/drop-empty-object-at-the-end-of-an-array-token.js +37 -0
- package/lib/aws/cloudwatch/private/env-tokens.d.ts +8 -0
- package/lib/aws/cloudwatch/private/env-tokens.js +48 -0
- package/lib/aws/cloudwatch/private/metric-util.d.ts +60 -0
- package/lib/aws/cloudwatch/private/metric-util.js +132 -0
- package/lib/aws/cloudwatch/private/object.d.ts +1 -0
- package/lib/aws/cloudwatch/private/object.js +18 -0
- package/lib/aws/cloudwatch/private/rendering.d.ts +60 -0
- package/lib/aws/cloudwatch/private/rendering.js +181 -0
- package/lib/aws/cloudwatch/private/statistic.d.ts +51 -0
- package/lib/aws/cloudwatch/private/statistic.js +176 -0
- package/lib/aws/cloudwatch/query-definition.d.ts +150 -0
- package/lib/aws/cloudwatch/query-definition.js +114 -0
- package/lib/aws/cloudwatch/stats.d.ts +150 -0
- package/lib/aws/cloudwatch/stats.js +207 -0
- package/lib/aws/cloudwatch/subscription-filter.d.ts +75 -0
- package/lib/aws/cloudwatch/subscription-filter.js +51 -0
- package/lib/aws/cloudwatch/text.d.ts +52 -0
- package/lib/aws/cloudwatch/text.js +53 -0
- package/lib/aws/cloudwatch/variable.d.ts +156 -0
- package/lib/aws/cloudwatch/variable.js +156 -0
- package/lib/aws/cloudwatch/widget.d.ts +62 -0
- package/lib/aws/cloudwatch/widget.js +45 -0
- package/lib/aws/compute/activity.d.ts +81 -0
- package/lib/aws/compute/activity.js +132 -0
- package/lib/aws/compute/architecture.d.ts +33 -0
- package/lib/aws/compute/architecture.js +42 -0
- package/lib/aws/compute/chain.d.ts +52 -0
- package/lib/aws/compute/chain.js +68 -0
- package/lib/aws/compute/condition.d.ts +202 -0
- package/lib/aws/compute/condition.js +409 -0
- package/lib/aws/compute/event-invoke-config.d.ts +74 -0
- package/lib/aws/compute/event-invoke-config.js +63 -0
- package/lib/aws/compute/event-source-filter.d.ts +64 -0
- package/lib/aws/compute/event-source-filter.js +86 -0
- package/lib/aws/compute/event-source-mapping.d.ts +310 -0
- package/lib/aws/compute/event-source-mapping.js +267 -0
- package/lib/aws/compute/event-sources/index.d.ts +4 -0
- package/lib/aws/compute/event-sources/index.js +28 -0
- package/lib/aws/compute/event-sources/s3-onfailure-destination.d.ts +13 -0
- package/lib/aws/compute/event-sources/s3-onfailure-destination.js +26 -0
- package/lib/aws/compute/event-sources/s3.d.ts +24 -0
- package/lib/aws/compute/event-sources/s3.js +25 -0
- package/lib/aws/compute/event-sources/sqs-dlq.d.ts +13 -0
- package/lib/aws/compute/event-sources/sqs-dlq.js +26 -0
- package/lib/aws/compute/event-sources/sqs.d.ts +75 -0
- package/lib/aws/compute/event-sources/sqs.js +84 -0
- package/lib/aws/compute/fields.d.ts +367 -0
- package/lib/aws/compute/fields.js +546 -0
- package/lib/aws/compute/function-alias.d.ts +148 -0
- package/lib/aws/compute/function-alias.js +176 -0
- package/lib/aws/compute/function-base.d.ts +314 -0
- package/lib/aws/compute/function-base.js +421 -0
- package/lib/aws/compute/function-destination.d.ts +42 -0
- package/lib/aws/compute/function-destination.js +18 -0
- package/lib/aws/compute/function-destinations/event-bridge.d.ts +19 -0
- package/lib/aws/compute/function-destinations/event-bridge.js +46 -0
- package/lib/aws/compute/function-destinations/function.d.ts +34 -0
- package/lib/aws/compute/function-destinations/function.js +55 -0
- package/lib/aws/compute/function-destinations/index.d.ts +3 -0
- package/lib/aws/compute/function-destinations/index.js +22 -0
- package/lib/aws/compute/function-destinations/sqs.d.ts +14 -0
- package/lib/aws/compute/function-destinations/sqs.js +27 -0
- package/lib/aws/compute/function-nodejs.d.ts +55 -0
- package/lib/aws/compute/function-nodejs.js +70 -0
- package/lib/aws/compute/function-permission.d.ts +83 -0
- package/lib/aws/compute/function-permission.js +3 -0
- package/lib/aws/compute/function-url.d.ts +210 -0
- package/lib/aws/compute/function-url.js +148 -0
- package/lib/aws/compute/function-vpc-config.generated.d.ts +36 -0
- package/lib/aws/compute/function-vpc-config.generated.js +3 -0
- package/lib/aws/compute/function.d.ts +492 -0
- package/lib/aws/compute/function.js +692 -0
- package/lib/aws/compute/index.d.ts +42 -0
- package/lib/aws/compute/index.js +64 -0
- package/lib/aws/compute/private/intrinstics.d.ts +86 -0
- package/lib/aws/compute/private/intrinstics.js +220 -0
- package/lib/aws/compute/private/json-path.d.ts +57 -0
- package/lib/aws/compute/private/json-path.js +351 -0
- package/lib/aws/compute/private/util.d.ts +1 -0
- package/lib/aws/compute/private/util.js +38 -0
- package/lib/aws/compute/state-graph.d.ts +100 -0
- package/lib/aws/compute/state-graph.js +177 -0
- package/lib/aws/compute/state-machine-fragment.d.ts +61 -0
- package/lib/aws/compute/state-machine-fragment.js +56 -0
- package/lib/aws/compute/state-machine.d.ts +323 -0
- package/lib/aws/compute/state-machine.js +392 -0
- package/lib/aws/compute/states/choice.d.ts +94 -0
- package/lib/aws/compute/states/choice.js +81 -0
- package/lib/aws/compute/states/custom-state.d.ts +55 -0
- package/lib/aws/compute/states/custom-state.js +114 -0
- package/lib/aws/compute/states/distributed-map/item-batcher.d.ts +64 -0
- package/lib/aws/compute/states/distributed-map/item-batcher.js +58 -0
- package/lib/aws/compute/states/distributed-map/item-reader.d.ts +256 -0
- package/lib/aws/compute/states/distributed-map/item-reader.js +253 -0
- package/lib/aws/compute/states/distributed-map/result-writer.d.ts +41 -0
- package/lib/aws/compute/states/distributed-map/result-writer.js +66 -0
- package/lib/aws/compute/states/distributed-map.d.ts +153 -0
- package/lib/aws/compute/states/distributed-map.js +207 -0
- package/lib/aws/compute/states/fail.d.ts +74 -0
- package/lib/aws/compute/states/fail.js +83 -0
- package/lib/aws/compute/states/map-base.d.ts +145 -0
- package/lib/aws/compute/states/map-base.js +109 -0
- package/lib/aws/compute/states/map.d.ts +76 -0
- package/lib/aws/compute/states/map.js +110 -0
- package/lib/aws/compute/states/parallel.d.ts +113 -0
- package/lib/aws/compute/states/parallel.js +100 -0
- package/lib/aws/compute/states/pass.d.ts +122 -0
- package/lib/aws/compute/states/pass.js +99 -0
- package/lib/aws/compute/states/private/state-type.d.ts +13 -0
- package/lib/aws/compute/states/private/state-type.js +19 -0
- package/lib/aws/compute/states/state.d.ts +276 -0
- package/lib/aws/compute/states/state.js +482 -0
- package/lib/aws/compute/states/succeed.d.ts +51 -0
- package/lib/aws/compute/states/succeed.js +32 -0
- package/lib/aws/compute/states/task-base.d.ts +225 -0
- package/lib/aws/compute/states/task-base.js +160 -0
- package/lib/aws/compute/states/task.d.ts +127 -0
- package/lib/aws/compute/states/task.js +92 -0
- package/lib/aws/compute/states/wait.d.ts +78 -0
- package/lib/aws/compute/states/wait.js +90 -0
- package/lib/aws/compute/step-functions-task.d.ts +78 -0
- package/lib/aws/compute/step-functions-task.js +27 -0
- package/lib/aws/compute/task-credentials.d.ts +45 -0
- package/lib/aws/compute/task-credentials.js +52 -0
- package/lib/aws/compute/task-input.d.ts +86 -0
- package/lib/aws/compute/task-input.js +107 -0
- package/lib/aws/compute/tasks/aws-sdk/call-aws-service.d.ts +73 -0
- package/lib/aws/compute/tasks/aws-sdk/call-aws-service.js +69 -0
- package/lib/aws/compute/tasks/eventbridge/put-events.d.ts +74 -0
- package/lib/aws/compute/tasks/eventbridge/put-events.js +94 -0
- package/lib/aws/compute/tasks/http/invoke.d.ts +104 -0
- package/lib/aws/compute/tasks/http/invoke.js +117 -0
- package/lib/aws/compute/tasks/index.d.ts +7 -0
- package/lib/aws/compute/tasks/index.js +42 -0
- package/lib/aws/compute/tasks/lambda/invoke.d.ts +106 -0
- package/lib/aws/compute/tasks/lambda/invoke.js +125 -0
- package/lib/aws/compute/tasks/private/task-utils.d.ts +8 -0
- package/lib/aws/compute/tasks/private/task-utils.js +36 -0
- package/lib/aws/compute/tasks/resource-arn-suffix.d.ts +3 -0
- package/lib/aws/compute/tasks/resource-arn-suffix.js +25 -0
- package/lib/aws/compute/tasks/sqs/send-message.d.ts +62 -0
- package/lib/aws/compute/tasks/sqs/send-message.js +70 -0
- package/lib/aws/compute/tasks/stepfunctions/invoke-activity.d.ts +36 -0
- package/lib/aws/compute/tasks/stepfunctions/invoke-activity.js +45 -0
- package/lib/aws/compute/tasks/stepfunctions/start-execution.d.ts +63 -0
- package/lib/aws/compute/tasks/stepfunctions/start-execution.js +123 -0
- package/lib/aws/compute/types.d.ts +214 -0
- package/lib/aws/compute/types.js +103 -0
- package/lib/aws/compute/util.d.ts +12 -0
- package/lib/aws/compute/util.js +29 -0
- package/lib/aws/edge/certificate.d.ts +144 -0
- package/lib/aws/edge/certificate.js +191 -0
- package/lib/aws/edge/distribution.d.ts +505 -0
- package/lib/aws/edge/distribution.js +444 -0
- package/lib/aws/edge/dns-alias-record-targets.d.ts +29 -0
- package/lib/aws/edge/dns-alias-record-targets.js +46 -0
- package/lib/aws/edge/dns-record.d.ts +536 -0
- package/lib/aws/edge/dns-record.js +532 -0
- package/lib/aws/edge/dns-zone.d.ts +169 -0
- package/lib/aws/edge/dns-zone.js +149 -0
- package/lib/aws/edge/function.d.ts +185 -0
- package/lib/aws/edge/function.js +141 -0
- package/lib/aws/edge/index.d.ts +8 -0
- package/lib/aws/edge/index.js +25 -0
- package/lib/aws/edge/key-value-store.d.ts +162 -0
- package/lib/aws/edge/key-value-store.js +163 -0
- package/lib/aws/edge/origin.d.ts +160 -0
- package/lib/aws/edge/origin.js +245 -0
- package/lib/aws/encryption/alias.d.ts +137 -0
- package/lib/aws/encryption/alias.js +216 -0
- package/lib/aws/encryption/index.d.ts +4 -0
- package/lib/aws/encryption/index.js +21 -0
- package/lib/aws/encryption/key-lookup.d.ts +11 -0
- package/lib/aws/encryption/key-lookup.js +4 -0
- package/lib/aws/encryption/key.d.ts +461 -0
- package/lib/aws/encryption/key.js +586 -0
- package/lib/aws/encryption/private/perms.d.ts +5 -0
- package/lib/aws/encryption/private/perms.js +30 -0
- package/lib/aws/encryption/via-service-principal.d.ts +11 -0
- package/lib/aws/encryption/via-service-principal.js +39 -0
- package/lib/aws/iam/grant.d.ts +221 -0
- package/lib/aws/iam/grant.js +239 -0
- package/lib/aws/iam/identity-base.d.ts +20 -0
- package/lib/aws/iam/identity-base.js +3 -0
- package/lib/aws/iam/index.d.ts +16 -0
- package/lib/aws/iam/index.js +34 -0
- package/lib/aws/iam/managed-policy.d.ts +227 -0
- package/lib/aws/iam/managed-policy.js +237 -0
- package/lib/aws/iam/oidc-provider.d.ts +120 -0
- package/lib/aws/iam/oidc-provider.js +82 -0
- package/lib/aws/iam/policy-document-config.generated.d.ts +78 -0
- package/lib/aws/iam/policy-document-config.generated.js +3 -0
- package/lib/aws/iam/policy-document.d.ts +150 -0
- package/lib/aws/iam/policy-document.js +172 -0
- package/lib/aws/iam/policy-statement-props.generated.d.ts +55 -0
- package/lib/aws/iam/policy-statement-props.generated.js +3 -0
- package/lib/aws/iam/policy-statement.d.ts +451 -0
- package/lib/aws/iam/policy-statement.js +947 -0
- package/lib/aws/iam/policy.d.ts +122 -0
- package/lib/aws/iam/policy.js +192 -0
- package/lib/aws/iam/principals.d.ts +668 -0
- package/lib/aws/iam/principals.js +1032 -0
- package/lib/aws/iam/private/adapter.d.ts +21 -0
- package/lib/aws/iam/private/adapter.js +51 -0
- package/lib/aws/iam/private/assume-role-policy.d.ts +8 -0
- package/lib/aws/iam/private/assume-role-policy.js +27 -0
- package/lib/aws/iam/private/comparable-principal.d.ts +6 -0
- package/lib/aws/iam/private/comparable-principal.js +20 -0
- package/lib/aws/iam/private/immutable-role.d.ts +43 -0
- package/lib/aws/iam/private/immutable-role.js +76 -0
- package/lib/aws/iam/private/imported-role.d.ts +49 -0
- package/lib/aws/iam/private/imported-role.js +103 -0
- package/lib/aws/iam/private/merge-statements.d.ts +44 -0
- package/lib/aws/iam/private/merge-statements.js +214 -0
- package/lib/aws/iam/private/postprocess-policy-document.d.ts +15 -0
- package/lib/aws/iam/private/postprocess-policy-document.js +102 -0
- package/lib/aws/iam/private/util.d.ts +37 -0
- package/lib/aws/iam/private/util.js +87 -0
- package/lib/aws/iam/role.d.ts +425 -0
- package/lib/aws/iam/role.js +407 -0
- package/lib/aws/iam/saml-provider.d.ts +79 -0
- package/lib/aws/iam/saml-provider.js +79 -0
- package/lib/aws/iam/unknown-principal.d.ts +32 -0
- package/lib/aws/iam/unknown-principal.js +45 -0
- package/lib/aws/iam/utils.d.ts +12 -0
- package/lib/aws/iam/utils.js +41 -0
- package/lib/aws/index.d.ts +13 -0
- package/lib/aws/index.js +34 -0
- package/lib/aws/log-retention.d.ts +97 -0
- package/lib/aws/log-retention.js +103 -0
- package/lib/aws/network/index.d.ts +4 -0
- package/lib/aws/network/index.js +21 -0
- package/lib/aws/network/network.d.ts +77 -0
- package/lib/aws/network/network.js +3 -0
- package/lib/aws/network/simple-ipv4-vpc.d.ts +84 -0
- package/lib/aws/network/simple-ipv4-vpc.js +236 -0
- package/lib/aws/network/subnet-group.d.ts +42 -0
- package/lib/aws/network/subnet-group.js +72 -0
- package/lib/aws/network/subnet.d.ts +95 -0
- package/lib/aws/network/subnet.js +123 -0
- package/lib/aws/notify/archive.d.ts +77 -0
- package/lib/aws/notify/archive.js +62 -0
- package/lib/aws/notify/connection.d.ts +276 -0
- package/lib/aws/notify/connection.js +261 -0
- package/lib/aws/notify/event-bus.d.ts +298 -0
- package/lib/aws/notify/event-bus.js +326 -0
- package/lib/aws/notify/event-pattern.d.ts +220 -0
- package/lib/aws/notify/event-pattern.js +197 -0
- package/lib/aws/notify/index.d.ts +15 -0
- package/lib/aws/notify/index.js +35 -0
- package/lib/aws/notify/input.d.ts +126 -0
- package/lib/aws/notify/input.js +282 -0
- package/lib/aws/notify/kinesis-canned-metrics.generated.d.ts +68 -0
- package/lib/aws/notify/kinesis-canned-metrics.generated.js +103 -0
- package/lib/aws/notify/kinesis-fixed-canned-metrics.d.ts +195 -0
- package/lib/aws/notify/kinesis-fixed-canned-metrics.js +155 -0
- package/lib/aws/notify/kinesis-stream.d.ts +705 -0
- package/lib/aws/notify/kinesis-stream.js +541 -0
- package/lib/aws/notify/on-event-options.d.ts +54 -0
- package/lib/aws/notify/on-event-options.js +3 -0
- package/lib/aws/notify/queue-config.generated.d.ts +85 -0
- package/lib/aws/notify/queue-config.generated.js +3 -0
- package/lib/aws/notify/queue-policy.d.ts +35 -0
- package/lib/aws/notify/queue-policy.js +39 -0
- package/lib/aws/notify/queue.d.ts +355 -0
- package/lib/aws/notify/queue.js +305 -0
- package/lib/aws/notify/resource-policy.d.ts +41 -0
- package/lib/aws/notify/resource-policy.js +43 -0
- package/lib/aws/notify/rule.d.ts +153 -0
- package/lib/aws/notify/rule.js +227 -0
- package/lib/aws/notify/schedule.d.ts +83 -0
- package/lib/aws/notify/schedule.js +116 -0
- package/lib/aws/notify/target.d.ts +102 -0
- package/lib/aws/notify/target.js +3 -0
- package/lib/aws/notify/targets/event-bus.d.ts +39 -0
- package/lib/aws/notify/targets/event-bus.js +40 -0
- package/lib/aws/notify/targets/function.d.ts +31 -0
- package/lib/aws/notify/targets/function.js +36 -0
- package/lib/aws/notify/targets/index.d.ts +6 -0
- package/lib/aws/notify/targets/index.js +37 -0
- package/lib/aws/notify/targets/log-group.d.ts +89 -0
- package/lib/aws/notify/targets/log-group.js +110 -0
- package/lib/aws/notify/targets/sqs.d.ts +45 -0
- package/lib/aws/notify/targets/sqs.js +73 -0
- package/lib/aws/notify/targets/state-machine.d.ts +36 -0
- package/lib/aws/notify/targets/state-machine.js +39 -0
- package/lib/aws/notify/targets/util.d.ts +71 -0
- package/lib/aws/notify/targets/util.js +130 -0
- package/lib/aws/notify/util.d.ts +13 -0
- package/lib/aws/notify/util.js +69 -0
- package/lib/aws/provider-config.generated.d.ts +220 -0
- package/lib/aws/provider-config.generated.js +3 -0
- package/lib/aws/storage/bucket-destination.d.ts +41 -0
- package/lib/aws/storage/bucket-destination.js +13 -0
- package/lib/aws/storage/bucket-notifications.d.ts +58 -0
- package/lib/aws/storage/bucket-notifications.js +169 -0
- package/lib/aws/storage/bucket-perms.d.ts +9 -0
- package/lib/aws/storage/bucket-perms.js +33 -0
- package/lib/aws/storage/bucket-policy.d.ts +51 -0
- package/lib/aws/storage/bucket-policy.js +53 -0
- package/lib/aws/storage/bucket-source.d.ts +41 -0
- package/lib/aws/storage/bucket-source.js +79 -0
- package/lib/aws/storage/bucket.d.ts +941 -0
- package/lib/aws/storage/bucket.js +869 -0
- package/lib/aws/storage/cors-config.generated.d.ts +57 -0
- package/lib/aws/storage/cors-config.generated.js +3 -0
- package/lib/aws/storage/cors-rule-config.generated.d.ts +38 -0
- package/lib/aws/storage/cors-rule-config.generated.js +3 -0
- package/lib/aws/storage/index.d.ts +12 -0
- package/lib/aws/storage/index.js +31 -0
- package/lib/aws/storage/lifecycle-config.generated.d.ts +55 -0
- package/lib/aws/storage/lifecycle-config.generated.js +3 -0
- package/lib/aws/storage/notification-targets/function.d.ts +11 -0
- package/lib/aws/storage/notification-targets/function.js +48 -0
- package/lib/aws/storage/notification-targets/index.d.ts +2 -0
- package/lib/aws/storage/notification-targets/index.js +21 -0
- package/lib/aws/storage/notification-targets/queue.d.ts +15 -0
- package/lib/aws/storage/notification-targets/queue.js +58 -0
- package/lib/aws/storage/origin-access-identity.d.ts +91 -0
- package/lib/aws/storage/origin-access-identity.js +76 -0
- package/lib/aws/storage/util.d.ts +40 -0
- package/lib/aws/storage/util.js +85 -0
- package/lib/aws/storage/website-config.generated.d.ts +73 -0
- package/lib/aws/storage/website-config.generated.js +3 -0
- package/lib/aws/util.d.ts +4 -0
- package/lib/aws/util.js +25 -0
- package/lib/construct-base.d.ts +69 -0
- package/lib/construct-base.js +89 -0
- package/lib/duration.d.ts +160 -0
- package/lib/duration.js +327 -0
- package/lib/index.d.ts +5 -0
- package/lib/index.js +24 -0
- package/lib/private/index.d.ts +2 -0
- package/lib/private/index.js +19 -0
- package/lib/private/terraform-dependables-aspect.d.ts +20 -0
- package/lib/private/terraform-dependables-aspect.js +95 -0
- package/lib/private/unique-resource-name.d.ts +9 -0
- package/lib/private/unique-resource-name.js +145 -0
- package/lib/size.d.ts +146 -0
- package/lib/size.js +220 -0
- package/lib/stack-base.d.ts +188 -0
- package/lib/stack-base.js +183 -0
- package/lib/token.d.ts +32 -0
- package/lib/token.js +54 -0
- package/node_modules/camel-case/LICENSE +21 -0
- package/node_modules/camel-case/README.md +47 -0
- package/node_modules/camel-case/dist/index.d.ts +5 -0
- package/node_modules/camel-case/dist/index.js +23 -0
- package/node_modules/camel-case/dist/index.js.map +1 -0
- package/node_modules/camel-case/dist/index.spec.d.ts +1 -0
- package/node_modules/camel-case/dist/index.spec.js +26 -0
- package/node_modules/camel-case/dist/index.spec.js.map +1 -0
- package/node_modules/camel-case/dist.es2015/index.d.ts +5 -0
- package/node_modules/camel-case/dist.es2015/index.js +17 -0
- package/node_modules/camel-case/dist.es2015/index.js.map +1 -0
- package/node_modules/camel-case/dist.es2015/index.spec.d.ts +1 -0
- package/node_modules/camel-case/dist.es2015/index.spec.js +24 -0
- package/node_modules/camel-case/dist.es2015/index.spec.js.map +1 -0
- package/node_modules/camel-case/package.json +89 -0
- package/node_modules/capital-case/LICENSE +21 -0
- package/node_modules/capital-case/README.md +37 -0
- package/node_modules/capital-case/dist/index.d.ts +4 -0
- package/node_modules/capital-case/dist/index.js +16 -0
- package/node_modules/capital-case/dist/index.js.map +1 -0
- package/node_modules/capital-case/dist/index.spec.d.ts +1 -0
- package/node_modules/capital-case/dist/index.spec.js +24 -0
- package/node_modules/capital-case/dist/index.spec.js.map +1 -0
- package/node_modules/capital-case/dist.es2015/index.d.ts +4 -0
- package/node_modules/capital-case/dist.es2015/index.js +11 -0
- package/node_modules/capital-case/dist.es2015/index.js.map +1 -0
- package/node_modules/capital-case/dist.es2015/index.spec.d.ts +1 -0
- package/node_modules/capital-case/dist.es2015/index.spec.js +22 -0
- package/node_modules/capital-case/dist.es2015/index.spec.js.map +1 -0
- package/node_modules/capital-case/package.json +90 -0
- package/node_modules/change-case/LICENSE +21 -0
- package/node_modules/change-case/README.md +44 -0
- package/node_modules/change-case/dist/index.d.ts +11 -0
- package/node_modules/change-case/dist/index.js +15 -0
- package/node_modules/change-case/dist/index.js.map +1 -0
- package/node_modules/change-case/dist/index.spec.d.ts +1 -0
- package/node_modules/change-case/dist/index.spec.js +9 -0
- package/node_modules/change-case/dist/index.spec.js.map +1 -0
- package/node_modules/change-case/dist.es2015/index.d.ts +11 -0
- package/node_modules/change-case/dist.es2015/index.js +12 -0
- package/node_modules/change-case/dist.es2015/index.js.map +1 -0
- package/node_modules/change-case/dist.es2015/index.spec.d.ts +1 -0
- package/node_modules/change-case/dist.es2015/index.spec.js +7 -0
- package/node_modules/change-case/dist.es2015/index.spec.js.map +1 -0
- package/node_modules/change-case/package.json +101 -0
- package/node_modules/constant-case/LICENSE +21 -0
- package/node_modules/constant-case/README.md +37 -0
- package/node_modules/constant-case/dist/index.d.ts +3 -0
- package/node_modules/constant-case/dist/index.js +12 -0
- package/node_modules/constant-case/dist/index.js.map +1 -0
- package/node_modules/constant-case/dist/index.spec.d.ts +1 -0
- package/node_modules/constant-case/dist/index.spec.js +26 -0
- package/node_modules/constant-case/dist/index.spec.js.map +1 -0
- package/node_modules/constant-case/dist.es2015/index.d.ts +3 -0
- package/node_modules/constant-case/dist.es2015/index.js +8 -0
- package/node_modules/constant-case/dist.es2015/index.js.map +1 -0
- package/node_modules/constant-case/dist.es2015/index.spec.d.ts +1 -0
- package/node_modules/constant-case/dist.es2015/index.spec.js +24 -0
- package/node_modules/constant-case/dist.es2015/index.spec.js.map +1 -0
- package/node_modules/constant-case/package.json +90 -0
- package/node_modules/dot-case/LICENSE +21 -0
- package/node_modules/dot-case/README.md +37 -0
- package/node_modules/dot-case/dist/index.d.ts +3 -0
- package/node_modules/dot-case/dist/index.js +11 -0
- package/node_modules/dot-case/dist/index.js.map +1 -0
- package/node_modules/dot-case/dist/index.spec.d.ts +1 -0
- package/node_modules/dot-case/dist/index.spec.js +26 -0
- package/node_modules/dot-case/dist/index.spec.js.map +1 -0
- package/node_modules/dot-case/dist.es2015/index.d.ts +3 -0
- package/node_modules/dot-case/dist.es2015/index.js +7 -0
- package/node_modules/dot-case/dist.es2015/index.js.map +1 -0
- package/node_modules/dot-case/dist.es2015/index.spec.d.ts +1 -0
- package/node_modules/dot-case/dist.es2015/index.spec.js +24 -0
- package/node_modules/dot-case/dist.es2015/index.spec.js.map +1 -0
- package/node_modules/dot-case/package.json +89 -0
- package/node_modules/esbuild-wasm/LICENSE.md +21 -0
- package/node_modules/esbuild-wasm/README.md +3 -0
- package/node_modules/esbuild-wasm/bin/esbuild +91 -0
- package/node_modules/esbuild-wasm/esbuild.wasm +0 -0
- package/node_modules/esbuild-wasm/esm/browser.d.ts +705 -0
- package/node_modules/esbuild-wasm/esm/browser.js +2370 -0
- package/node_modules/esbuild-wasm/esm/browser.min.js +20 -0
- package/node_modules/esbuild-wasm/lib/browser.d.ts +705 -0
- package/node_modules/esbuild-wasm/lib/browser.js +2415 -0
- package/node_modules/esbuild-wasm/lib/browser.min.js +22 -0
- package/node_modules/esbuild-wasm/lib/main.d.ts +705 -0
- package/node_modules/esbuild-wasm/lib/main.js +2051 -0
- package/node_modules/esbuild-wasm/package.json +19 -0
- package/node_modules/esbuild-wasm/wasm_exec.js +561 -0
- package/node_modules/esbuild-wasm/wasm_exec_node.js +39 -0
- package/node_modules/header-case/LICENSE +21 -0
- package/node_modules/header-case/README.md +37 -0
- package/node_modules/header-case/dist/index.d.ts +3 -0
- package/node_modules/header-case/dist/index.js +11 -0
- package/node_modules/header-case/dist/index.js.map +1 -0
- package/node_modules/header-case/dist/index.spec.d.ts +1 -0
- package/node_modules/header-case/dist/index.spec.js +24 -0
- package/node_modules/header-case/dist/index.spec.js.map +1 -0
- package/node_modules/header-case/dist.es2015/index.d.ts +3 -0
- package/node_modules/header-case/dist.es2015/index.js +7 -0
- package/node_modules/header-case/dist.es2015/index.js.map +1 -0
- package/node_modules/header-case/dist.es2015/index.spec.d.ts +1 -0
- package/node_modules/header-case/dist.es2015/index.spec.js +22 -0
- package/node_modules/header-case/dist.es2015/index.spec.js.map +1 -0
- package/node_modules/header-case/package.json +89 -0
- package/node_modules/lower-case/LICENSE +21 -0
- package/node_modules/lower-case/README.md +35 -0
- package/node_modules/lower-case/dist/index.d.ts +8 -0
- package/node_modules/lower-case/dist/index.js +53 -0
- package/node_modules/lower-case/dist/index.js.map +1 -0
- package/node_modules/lower-case/dist/index.spec.d.ts +1 -0
- package/node_modules/lower-case/dist/index.spec.js +36 -0
- package/node_modules/lower-case/dist/index.spec.js.map +1 -0
- package/node_modules/lower-case/dist.es2015/index.d.ts +8 -0
- package/node_modules/lower-case/dist.es2015/index.js +48 -0
- package/node_modules/lower-case/dist.es2015/index.js.map +1 -0
- package/node_modules/lower-case/dist.es2015/index.spec.d.ts +1 -0
- package/node_modules/lower-case/dist.es2015/index.spec.js +34 -0
- package/node_modules/lower-case/dist.es2015/index.spec.js.map +1 -0
- package/node_modules/lower-case/package.json +87 -0
- package/node_modules/mime-db/HISTORY.md +507 -0
- package/node_modules/mime-db/LICENSE +23 -0
- package/node_modules/mime-db/README.md +100 -0
- package/node_modules/mime-db/db.json +8519 -0
- package/node_modules/mime-db/index.js +12 -0
- package/node_modules/mime-db/package.json +60 -0
- package/node_modules/mime-types/HISTORY.md +397 -0
- package/node_modules/mime-types/LICENSE +23 -0
- package/node_modules/mime-types/README.md +113 -0
- package/node_modules/mime-types/index.js +188 -0
- package/node_modules/mime-types/package.json +44 -0
- package/node_modules/no-case/LICENSE +21 -0
- package/node_modules/no-case/README.md +37 -0
- package/node_modules/no-case/dist/index.d.ts +10 -0
- package/node_modules/no-case/dist/index.js +35 -0
- package/node_modules/no-case/dist/index.js.map +1 -0
- package/node_modules/no-case/dist/index.spec.d.ts +1 -0
- package/node_modules/no-case/dist/index.spec.js +59 -0
- package/node_modules/no-case/dist/index.spec.js.map +1 -0
- package/node_modules/no-case/dist.es2015/index.d.ts +10 -0
- package/node_modules/no-case/dist.es2015/index.js +31 -0
- package/node_modules/no-case/dist.es2015/index.js.map +1 -0
- package/node_modules/no-case/dist.es2015/index.spec.d.ts +1 -0
- package/node_modules/no-case/dist.es2015/index.spec.js +57 -0
- package/node_modules/no-case/dist.es2015/index.spec.js.map +1 -0
- package/node_modules/no-case/package.json +85 -0
- package/node_modules/param-case/LICENSE +21 -0
- package/node_modules/param-case/README.md +37 -0
- package/node_modules/param-case/dist/index.d.ts +3 -0
- package/node_modules/param-case/dist/index.js +11 -0
- package/node_modules/param-case/dist/index.js.map +1 -0
- package/node_modules/param-case/dist/index.spec.d.ts +1 -0
- package/node_modules/param-case/dist/index.spec.js +24 -0
- package/node_modules/param-case/dist/index.spec.js.map +1 -0
- package/node_modules/param-case/dist.es2015/index.d.ts +3 -0
- package/node_modules/param-case/dist.es2015/index.js +7 -0
- package/node_modules/param-case/dist.es2015/index.js.map +1 -0
- package/node_modules/param-case/dist.es2015/index.spec.d.ts +1 -0
- package/node_modules/param-case/dist.es2015/index.spec.js +22 -0
- package/node_modules/param-case/dist.es2015/index.spec.js.map +1 -0
- package/node_modules/param-case/package.json +91 -0
- package/node_modules/pascal-case/LICENSE +21 -0
- package/node_modules/pascal-case/README.md +47 -0
- package/node_modules/pascal-case/dist/index.d.ts +5 -0
- package/node_modules/pascal-case/dist/index.js +24 -0
- package/node_modules/pascal-case/dist/index.js.map +1 -0
- package/node_modules/pascal-case/dist/index.spec.d.ts +1 -0
- package/node_modules/pascal-case/dist/index.spec.js +25 -0
- package/node_modules/pascal-case/dist/index.spec.js.map +1 -0
- package/node_modules/pascal-case/dist.es2015/index.d.ts +5 -0
- package/node_modules/pascal-case/dist.es2015/index.js +18 -0
- package/node_modules/pascal-case/dist.es2015/index.js.map +1 -0
- package/node_modules/pascal-case/dist.es2015/index.spec.d.ts +1 -0
- package/node_modules/pascal-case/dist.es2015/index.spec.js +23 -0
- package/node_modules/pascal-case/dist.es2015/index.spec.js.map +1 -0
- package/node_modules/pascal-case/package.json +90 -0
- package/node_modules/path-case/LICENSE +21 -0
- package/node_modules/path-case/README.md +37 -0
- package/node_modules/path-case/dist/index.d.ts +3 -0
- package/node_modules/path-case/dist/index.js +11 -0
- package/node_modules/path-case/dist/index.js.map +1 -0
- package/node_modules/path-case/dist/index.spec.d.ts +1 -0
- package/node_modules/path-case/dist/index.spec.js +24 -0
- package/node_modules/path-case/dist/index.spec.js.map +1 -0
- package/node_modules/path-case/dist.es2015/index.d.ts +3 -0
- package/node_modules/path-case/dist.es2015/index.js +7 -0
- package/node_modules/path-case/dist.es2015/index.js.map +1 -0
- package/node_modules/path-case/dist.es2015/index.spec.d.ts +1 -0
- package/node_modules/path-case/dist.es2015/index.spec.js +22 -0
- package/node_modules/path-case/dist.es2015/index.spec.js.map +1 -0
- package/node_modules/path-case/package.json +88 -0
- package/node_modules/sentence-case/LICENSE +21 -0
- package/node_modules/sentence-case/README.md +37 -0
- package/node_modules/sentence-case/dist/index.d.ts +4 -0
- package/node_modules/sentence-case/dist/index.js +19 -0
- package/node_modules/sentence-case/dist/index.js.map +1 -0
- package/node_modules/sentence-case/dist/index.spec.d.ts +1 -0
- package/node_modules/sentence-case/dist/index.spec.js +24 -0
- package/node_modules/sentence-case/dist/index.spec.js.map +1 -0
- package/node_modules/sentence-case/dist.es2015/index.d.ts +4 -0
- package/node_modules/sentence-case/dist.es2015/index.js +14 -0
- package/node_modules/sentence-case/dist.es2015/index.js.map +1 -0
- package/node_modules/sentence-case/dist.es2015/index.spec.d.ts +1 -0
- package/node_modules/sentence-case/dist.es2015/index.spec.js +22 -0
- package/node_modules/sentence-case/dist.es2015/index.spec.js.map +1 -0
- package/node_modules/sentence-case/package.json +89 -0
- package/node_modules/snake-case/LICENSE +21 -0
- package/node_modules/snake-case/README.md +37 -0
- package/node_modules/snake-case/dist/index.d.ts +3 -0
- package/node_modules/snake-case/dist/index.js +11 -0
- package/node_modules/snake-case/dist/index.js.map +1 -0
- package/node_modules/snake-case/dist/index.spec.d.ts +1 -0
- package/node_modules/snake-case/dist/index.spec.js +25 -0
- package/node_modules/snake-case/dist/index.spec.js.map +1 -0
- package/node_modules/snake-case/dist.es2015/index.d.ts +3 -0
- package/node_modules/snake-case/dist.es2015/index.js +7 -0
- package/node_modules/snake-case/dist.es2015/index.js.map +1 -0
- package/node_modules/snake-case/dist.es2015/index.spec.d.ts +1 -0
- package/node_modules/snake-case/dist.es2015/index.spec.js +23 -0
- package/node_modules/snake-case/dist.es2015/index.spec.js.map +1 -0
- package/node_modules/snake-case/package.json +90 -0
- package/node_modules/tslib/CopyrightNotice.txt +15 -0
- package/node_modules/tslib/LICENSE.txt +12 -0
- package/node_modules/tslib/README.md +164 -0
- package/node_modules/tslib/SECURITY.md +41 -0
- package/node_modules/tslib/modules/index.d.ts +37 -0
- package/node_modules/tslib/modules/index.js +68 -0
- package/node_modules/tslib/modules/package.json +3 -0
- package/node_modules/tslib/package.json +47 -0
- package/node_modules/tslib/tslib.d.ts +453 -0
- package/node_modules/tslib/tslib.es6.html +1 -0
- package/node_modules/tslib/tslib.es6.js +374 -0
- package/node_modules/tslib/tslib.es6.mjs +373 -0
- package/node_modules/tslib/tslib.html +1 -0
- package/node_modules/tslib/tslib.js +424 -0
- package/node_modules/upper-case/README.md +34 -0
- package/node_modules/upper-case/dist/index.d.ts +8 -0
- package/node_modules/upper-case/dist/index.js +49 -0
- package/node_modules/upper-case/dist/index.js.map +1 -0
- package/node_modules/upper-case/dist/index.spec.d.ts +1 -0
- package/node_modules/upper-case/dist/index.spec.js +34 -0
- package/node_modules/upper-case/dist/index.spec.js.map +1 -0
- package/node_modules/upper-case/dist.es2015/index.d.ts +8 -0
- package/node_modules/upper-case/dist.es2015/index.js +44 -0
- package/node_modules/upper-case/dist.es2015/index.js.map +1 -0
- package/node_modules/upper-case/dist.es2015/index.spec.d.ts +1 -0
- package/node_modules/upper-case/dist.es2015/index.spec.js +32 -0
- package/node_modules/upper-case/dist.es2015/index.spec.js.map +1 -0
- package/node_modules/upper-case/package.json +86 -0
- package/node_modules/upper-case-first/LICENSE +21 -0
- package/node_modules/upper-case-first/README.md +32 -0
- package/node_modules/upper-case-first/dist/index.d.ts +4 -0
- package/node_modules/upper-case-first/dist/index.js +11 -0
- package/node_modules/upper-case-first/dist/index.js.map +1 -0
- package/node_modules/upper-case-first/dist/index.spec.d.ts +1 -0
- package/node_modules/upper-case-first/dist/index.spec.js +20 -0
- package/node_modules/upper-case-first/dist/index.spec.js.map +1 -0
- package/node_modules/upper-case-first/dist.es2015/index.d.ts +4 -0
- package/node_modules/upper-case-first/dist.es2015/index.js +7 -0
- package/node_modules/upper-case-first/dist.es2015/index.js.map +1 -0
- package/node_modules/upper-case-first/dist.es2015/index.spec.d.ts +1 -0
- package/node_modules/upper-case-first/dist.es2015/index.spec.js +18 -0
- package/node_modules/upper-case-first/dist.es2015/index.spec.js.map +1 -0
- package/node_modules/upper-case-first/package.json +87 -0
- package/package.json +152 -0
- package/setup.js +2 -0
|
@@ -0,0 +1,461 @@
|
|
|
1
|
+
import { kmsKey } from "@cdktf/provider-aws";
|
|
2
|
+
import { Construct } from "constructs";
|
|
3
|
+
import { IAwsConstruct, AwsConstructBase, AwsConstructProps } from "../aws-construct";
|
|
4
|
+
import { Alias } from "./alias";
|
|
5
|
+
import { KeyLookupOptions } from "./key-lookup";
|
|
6
|
+
import * as iam from "../iam";
|
|
7
|
+
import { Duration } from "../../duration";
|
|
8
|
+
/**
|
|
9
|
+
* Outputs which may be registered for output via the Grid.
|
|
10
|
+
*/
|
|
11
|
+
export interface KeyOutputs {
|
|
12
|
+
/**
|
|
13
|
+
* The ARN of the key.
|
|
14
|
+
*
|
|
15
|
+
* @attribute
|
|
16
|
+
*/
|
|
17
|
+
readonly keyArn: string;
|
|
18
|
+
/**
|
|
19
|
+
* The ID of the key
|
|
20
|
+
* (the part that looks something like: 1234abcd-12ab-34cd-56ef-1234567890ab).
|
|
21
|
+
*
|
|
22
|
+
* @attribute
|
|
23
|
+
*/
|
|
24
|
+
readonly keyId: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* A KMS Key, either managed by this CDK app, or imported.
|
|
28
|
+
*/
|
|
29
|
+
export interface IKey extends IAwsConstruct {
|
|
30
|
+
/** Strongly typed outputs */
|
|
31
|
+
readonly keyOutputs: KeyOutputs;
|
|
32
|
+
/**
|
|
33
|
+
* The ARN of the key.
|
|
34
|
+
*
|
|
35
|
+
* @attribute
|
|
36
|
+
*/
|
|
37
|
+
readonly keyArn: string;
|
|
38
|
+
/**
|
|
39
|
+
* The ID of the key
|
|
40
|
+
* (the part that looks something like: 1234abcd-12ab-34cd-56ef-1234567890ab).
|
|
41
|
+
*
|
|
42
|
+
* @attribute
|
|
43
|
+
*/
|
|
44
|
+
readonly keyId: string;
|
|
45
|
+
/**
|
|
46
|
+
* Defines a new alias for the key.
|
|
47
|
+
*/
|
|
48
|
+
addAlias(alias: string): Alias;
|
|
49
|
+
/**
|
|
50
|
+
* Adds a statement to the KMS key resource policy.
|
|
51
|
+
* @param statement The policy statement to add
|
|
52
|
+
* @param allowNoOp If this is set to `false` and there is no policy
|
|
53
|
+
* defined (i.e. external key), the operation will fail. Otherwise, it will
|
|
54
|
+
* no-op.
|
|
55
|
+
*/
|
|
56
|
+
addToResourcePolicy(statement: iam.PolicyStatement, allowNoOp?: boolean): iam.AddToResourcePolicyResult;
|
|
57
|
+
/**
|
|
58
|
+
* Grant the indicated permissions on this key to the given principal
|
|
59
|
+
*/
|
|
60
|
+
grant(grantee: iam.IGrantable, ...actions: string[]): iam.Grant;
|
|
61
|
+
/**
|
|
62
|
+
* Grant decryption permissions using this key to the given principal
|
|
63
|
+
*/
|
|
64
|
+
grantDecrypt(grantee: iam.IGrantable): iam.Grant;
|
|
65
|
+
/**
|
|
66
|
+
* Grant encryption permissions using this key to the given principal
|
|
67
|
+
*/
|
|
68
|
+
grantEncrypt(grantee: iam.IGrantable): iam.Grant;
|
|
69
|
+
/**
|
|
70
|
+
* Grant encryption and decryption permissions using this key to the given principal
|
|
71
|
+
*/
|
|
72
|
+
grantEncryptDecrypt(grantee: iam.IGrantable): iam.Grant;
|
|
73
|
+
/**
|
|
74
|
+
* Grant permissions to generating MACs to the given principal
|
|
75
|
+
*/
|
|
76
|
+
grantGenerateMac(grantee: iam.IGrantable): iam.Grant;
|
|
77
|
+
/**
|
|
78
|
+
* Grant permissions to verifying MACs to the given principal
|
|
79
|
+
*/
|
|
80
|
+
grantVerifyMac(grantee: iam.IGrantable): iam.Grant;
|
|
81
|
+
}
|
|
82
|
+
declare abstract class KeyBase extends AwsConstructBase implements IKey {
|
|
83
|
+
/**
|
|
84
|
+
* The ARN of the key.
|
|
85
|
+
*/
|
|
86
|
+
abstract readonly keyArn: string;
|
|
87
|
+
abstract readonly keyId: string;
|
|
88
|
+
/**
|
|
89
|
+
* Optional policy document that represents the resource policy of this key.
|
|
90
|
+
*
|
|
91
|
+
* If specified, addToResourcePolicy can be used to edit this policy.
|
|
92
|
+
* Otherwise this method will no-op.
|
|
93
|
+
*/
|
|
94
|
+
protected abstract readonly policy?: iam.PolicyDocument;
|
|
95
|
+
/**
|
|
96
|
+
* Optional property to control trusting account identities.
|
|
97
|
+
*
|
|
98
|
+
* If specified, grants will default identity policies instead of to both
|
|
99
|
+
* resource and identity policies. This matches the default behavior when creating
|
|
100
|
+
* KMS keys via the API or console.
|
|
101
|
+
*/
|
|
102
|
+
protected abstract readonly trustAccountIdentities: boolean;
|
|
103
|
+
get keyOutputs(): KeyOutputs;
|
|
104
|
+
get outputs(): Record<string, any>;
|
|
105
|
+
/**
|
|
106
|
+
* Collection of aliases added to the key
|
|
107
|
+
*
|
|
108
|
+
* Tracked to determine whether or not the aliasName should be added to the end of its ID
|
|
109
|
+
*/
|
|
110
|
+
private readonly aliases;
|
|
111
|
+
constructor(scope: Construct, id: string, props?: AwsConstructProps);
|
|
112
|
+
/**
|
|
113
|
+
* Defines a new alias for the key.
|
|
114
|
+
*/
|
|
115
|
+
addAlias(aliasName: string): Alias;
|
|
116
|
+
/**
|
|
117
|
+
* Adds a statement to the KMS key resource policy.
|
|
118
|
+
* @param statement The policy statement to add
|
|
119
|
+
* @param allowNoOp If this is set to `false` and there is no policy
|
|
120
|
+
* defined (i.e. external key), the operation will fail. Otherwise, it will
|
|
121
|
+
* no-op.
|
|
122
|
+
*/
|
|
123
|
+
addToResourcePolicy(statement: iam.PolicyStatement, allowNoOp?: boolean): iam.AddToResourcePolicyResult;
|
|
124
|
+
/**
|
|
125
|
+
* Grant the indicated permissions on this key to the given principal
|
|
126
|
+
*
|
|
127
|
+
* This modifies both the principal's policy as well as the resource policy,
|
|
128
|
+
* since the default CloudFormation setup for KMS keys is that the policy
|
|
129
|
+
* must not be empty and so default grants won't work.
|
|
130
|
+
*/
|
|
131
|
+
grant(grantee: iam.IGrantable, ...actions: string[]): iam.Grant;
|
|
132
|
+
/**
|
|
133
|
+
* Grant decryption permissions using this key to the given principal
|
|
134
|
+
*/
|
|
135
|
+
grantDecrypt(grantee: iam.IGrantable): iam.Grant;
|
|
136
|
+
/**
|
|
137
|
+
* Grant encryption permissions using this key to the given principal
|
|
138
|
+
*/
|
|
139
|
+
grantEncrypt(grantee: iam.IGrantable): iam.Grant;
|
|
140
|
+
/**
|
|
141
|
+
* Grant encryption and decryption permissions using this key to the given principal
|
|
142
|
+
*/
|
|
143
|
+
grantEncryptDecrypt(grantee: iam.IGrantable): iam.Grant;
|
|
144
|
+
/**
|
|
145
|
+
* Grant permissions to generating MACs to the given principal
|
|
146
|
+
*/
|
|
147
|
+
grantGenerateMac(grantee: iam.IGrantable): iam.Grant;
|
|
148
|
+
/**
|
|
149
|
+
* Grant permissions to verifying MACs to the given principal
|
|
150
|
+
*/
|
|
151
|
+
grantVerifyMac(grantee: iam.IGrantable): iam.Grant;
|
|
152
|
+
/**
|
|
153
|
+
* Checks whether the grantee belongs to a stack that will be deployed
|
|
154
|
+
* after the stack containing this key.
|
|
155
|
+
*
|
|
156
|
+
* @param grantee the grantee to give permissions to
|
|
157
|
+
* @returns the account ID of the grantee stack if its stack does depend on this stack,
|
|
158
|
+
* undefined otherwise
|
|
159
|
+
*/
|
|
160
|
+
private granteeStackDependsOnKeyStack;
|
|
161
|
+
private isGranteeFromAnotherRegion;
|
|
162
|
+
private isGranteeFromAnotherAccount;
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* The key spec, represents the cryptographic configuration of keys.
|
|
166
|
+
*/
|
|
167
|
+
export declare enum KeySpec {
|
|
168
|
+
/**
|
|
169
|
+
* The default key spec.
|
|
170
|
+
*
|
|
171
|
+
* Valid usage: ENCRYPT_DECRYPT
|
|
172
|
+
*/
|
|
173
|
+
SYMMETRIC_DEFAULT = "SYMMETRIC_DEFAULT",
|
|
174
|
+
/**
|
|
175
|
+
* RSA with 2048 bits of key.
|
|
176
|
+
*
|
|
177
|
+
* Valid usage: ENCRYPT_DECRYPT and SIGN_VERIFY
|
|
178
|
+
*/
|
|
179
|
+
RSA_2048 = "RSA_2048",
|
|
180
|
+
/**
|
|
181
|
+
* RSA with 3072 bits of key.
|
|
182
|
+
*
|
|
183
|
+
* Valid usage: ENCRYPT_DECRYPT and SIGN_VERIFY
|
|
184
|
+
*/
|
|
185
|
+
RSA_3072 = "RSA_3072",
|
|
186
|
+
/**
|
|
187
|
+
* RSA with 4096 bits of key.
|
|
188
|
+
*
|
|
189
|
+
* Valid usage: ENCRYPT_DECRYPT and SIGN_VERIFY
|
|
190
|
+
*/
|
|
191
|
+
RSA_4096 = "RSA_4096",
|
|
192
|
+
/**
|
|
193
|
+
* NIST FIPS 186-4, Section 6.4, ECDSA signature using the curve specified by the key and
|
|
194
|
+
* SHA-256 for the message digest.
|
|
195
|
+
*
|
|
196
|
+
* Valid usage: SIGN_VERIFY
|
|
197
|
+
*/
|
|
198
|
+
ECC_NIST_P256 = "ECC_NIST_P256",
|
|
199
|
+
/**
|
|
200
|
+
* NIST FIPS 186-4, Section 6.4, ECDSA signature using the curve specified by the key and
|
|
201
|
+
* SHA-384 for the message digest.
|
|
202
|
+
*
|
|
203
|
+
* Valid usage: SIGN_VERIFY
|
|
204
|
+
*/
|
|
205
|
+
ECC_NIST_P384 = "ECC_NIST_P384",
|
|
206
|
+
/**
|
|
207
|
+
* NIST FIPS 186-4, Section 6.4, ECDSA signature using the curve specified by the key and
|
|
208
|
+
* SHA-512 for the message digest.
|
|
209
|
+
*
|
|
210
|
+
* Valid usage: SIGN_VERIFY
|
|
211
|
+
*/
|
|
212
|
+
ECC_NIST_P521 = "ECC_NIST_P521",
|
|
213
|
+
/**
|
|
214
|
+
* Standards for Efficient Cryptography 2, Section 2.4.1, ECDSA signature on the Koblitz curve.
|
|
215
|
+
*
|
|
216
|
+
* Valid usage: SIGN_VERIFY
|
|
217
|
+
*/
|
|
218
|
+
ECC_SECG_P256K1 = "ECC_SECG_P256K1",
|
|
219
|
+
/**
|
|
220
|
+
* Hash-Based Message Authentication Code as defined in RFC 2104 using the message digest function SHA224.
|
|
221
|
+
*
|
|
222
|
+
* Valid usage: GENERATE_VERIFY_MAC
|
|
223
|
+
*/
|
|
224
|
+
HMAC_224 = "HMAC_224",
|
|
225
|
+
/**
|
|
226
|
+
* Hash-Based Message Authentication Code as defined in RFC 2104 using the message digest function SHA256.
|
|
227
|
+
*
|
|
228
|
+
* Valid usage: GENERATE_VERIFY_MAC
|
|
229
|
+
*/
|
|
230
|
+
HMAC_256 = "HMAC_256",
|
|
231
|
+
/**
|
|
232
|
+
* Hash-Based Message Authentication Code as defined in RFC 2104 using the message digest function SHA384.
|
|
233
|
+
*
|
|
234
|
+
* Valid usage: GENERATE_VERIFY_MAC
|
|
235
|
+
*/
|
|
236
|
+
HMAC_384 = "HMAC_384",
|
|
237
|
+
/**
|
|
238
|
+
* Hash-Based Message Authentication Code as defined in RFC 2104 using the message digest function SHA512.
|
|
239
|
+
*
|
|
240
|
+
* Valid usage: GENERATE_VERIFY_MAC
|
|
241
|
+
*/
|
|
242
|
+
HMAC_512 = "HMAC_512",
|
|
243
|
+
/**
|
|
244
|
+
* Elliptic curve key spec available only in China Regions.
|
|
245
|
+
*
|
|
246
|
+
* Valid usage: ENCRYPT_DECRYPT and SIGN_VERIFY
|
|
247
|
+
*/
|
|
248
|
+
SM2 = "SM2"
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* The key usage, represents the cryptographic operations of keys.
|
|
252
|
+
*/
|
|
253
|
+
export declare enum KeyUsage {
|
|
254
|
+
/**
|
|
255
|
+
* Encryption and decryption.
|
|
256
|
+
*/
|
|
257
|
+
ENCRYPT_DECRYPT = "ENCRYPT_DECRYPT",
|
|
258
|
+
/**
|
|
259
|
+
* Signing and verification
|
|
260
|
+
*/
|
|
261
|
+
SIGN_VERIFY = "SIGN_VERIFY",
|
|
262
|
+
/**
|
|
263
|
+
* Generating and verifying MACs
|
|
264
|
+
*/
|
|
265
|
+
GENERATE_VERIFY_MAC = "GENERATE_VERIFY_MAC",
|
|
266
|
+
/**
|
|
267
|
+
* Deriving shared secrets
|
|
268
|
+
*/
|
|
269
|
+
KEY_AGREEMENT = "KEY_AGREEMENT"
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* Construction properties for a KMS Key object
|
|
273
|
+
*/
|
|
274
|
+
export interface KeyProps extends AwsConstructProps {
|
|
275
|
+
/**
|
|
276
|
+
* A description of the key. Use a description that helps your users decide
|
|
277
|
+
* whether the key is appropriate for a particular task.
|
|
278
|
+
*
|
|
279
|
+
* @default - No description.
|
|
280
|
+
*/
|
|
281
|
+
readonly description?: string;
|
|
282
|
+
/**
|
|
283
|
+
* Initial alias to add to the key
|
|
284
|
+
*
|
|
285
|
+
* More aliases can be added later by calling `addAlias`.
|
|
286
|
+
*
|
|
287
|
+
* @default - No alias is added for the key.
|
|
288
|
+
*/
|
|
289
|
+
readonly alias?: string;
|
|
290
|
+
/**
|
|
291
|
+
* Indicates whether AWS KMS rotates the key.
|
|
292
|
+
*
|
|
293
|
+
* @default false
|
|
294
|
+
*/
|
|
295
|
+
readonly enableKeyRotation?: boolean;
|
|
296
|
+
/**
|
|
297
|
+
* The period between each automatic rotation.
|
|
298
|
+
*
|
|
299
|
+
* @default - set by CFN to 365 days.
|
|
300
|
+
*/
|
|
301
|
+
readonly rotationPeriod?: Duration;
|
|
302
|
+
/**
|
|
303
|
+
* Indicates whether the key is available for use.
|
|
304
|
+
*
|
|
305
|
+
* @default - Key is enabled.
|
|
306
|
+
*/
|
|
307
|
+
readonly enabled?: boolean;
|
|
308
|
+
/**
|
|
309
|
+
* The cryptographic configuration of the key. The valid value depends on usage of the key.
|
|
310
|
+
*
|
|
311
|
+
* IMPORTANT: If you change this property of an existing key, the existing key is scheduled for deletion
|
|
312
|
+
* and a new key is created with the specified value.
|
|
313
|
+
*
|
|
314
|
+
* @default KeySpec.SYMMETRIC_DEFAULT
|
|
315
|
+
*/
|
|
316
|
+
readonly keySpec?: KeySpec;
|
|
317
|
+
/**
|
|
318
|
+
* The cryptographic operations for which the key can be used.
|
|
319
|
+
*
|
|
320
|
+
* IMPORTANT: If you change this property of an existing key, the existing key is scheduled for deletion
|
|
321
|
+
* and a new key is created with the specified value.
|
|
322
|
+
*
|
|
323
|
+
* @default KeyUsage.ENCRYPT_DECRYPT
|
|
324
|
+
*/
|
|
325
|
+
readonly keyUsage?: KeyUsage;
|
|
326
|
+
/**
|
|
327
|
+
* Creates a multi-Region primary key that you can replicate in other AWS Regions.
|
|
328
|
+
*
|
|
329
|
+
* You can't change the `multiRegion` value after the KMS key is created.
|
|
330
|
+
*
|
|
331
|
+
* IMPORTANT: If you change the value of the `multiRegion` property on an existing KMS key, the update request fails,
|
|
332
|
+
* regardless of the value of the UpdateReplacePolicy attribute.
|
|
333
|
+
* This prevents you from accidentally deleting a KMS key by changing an immutable property value.
|
|
334
|
+
*
|
|
335
|
+
* @default false
|
|
336
|
+
* @see https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html
|
|
337
|
+
*/
|
|
338
|
+
readonly multiRegion?: boolean;
|
|
339
|
+
/**
|
|
340
|
+
* Custom policy document to attach to the KMS key.
|
|
341
|
+
*
|
|
342
|
+
* NOTE - If the `@aws-cdk/aws-kms:defaultKeyPolicies` feature flag is set (the default for new projects),
|
|
343
|
+
* this policy will *override* the default key policy and become the only key policy for the key. If the
|
|
344
|
+
* feature flag is not set, this policy will be appended to the default key policy.
|
|
345
|
+
*
|
|
346
|
+
* @default - A policy document with permissions for the account root to
|
|
347
|
+
* administer the key will be created.
|
|
348
|
+
*/
|
|
349
|
+
readonly policy?: iam.PolicyDocument;
|
|
350
|
+
/**
|
|
351
|
+
* A list of principals to add as key administrators to the key policy.
|
|
352
|
+
*
|
|
353
|
+
* Key administrators have permissions to manage the key (e.g., change permissions, revoke), but do not have permissions
|
|
354
|
+
* to use the key in cryptographic operations (e.g., encrypt, decrypt).
|
|
355
|
+
*
|
|
356
|
+
* These principals will be added to the default key policy (if none specified), or to the specified policy (if provided).
|
|
357
|
+
*
|
|
358
|
+
* @default []
|
|
359
|
+
*/
|
|
360
|
+
readonly admins?: iam.IPrincipal[];
|
|
361
|
+
/**
|
|
362
|
+
* Whether the key usage can be granted by IAM policies
|
|
363
|
+
*
|
|
364
|
+
* Setting this to true adds a default statement which delegates key
|
|
365
|
+
* access control completely to the identity's IAM policy (similar
|
|
366
|
+
* to how it works for other AWS resources). This matches the default behavior
|
|
367
|
+
* when creating KMS keys via the API or console.
|
|
368
|
+
*
|
|
369
|
+
* @default - true
|
|
370
|
+
* @see https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default-allow-root-enable-iam
|
|
371
|
+
*/
|
|
372
|
+
readonly trustAccountIdentities?: boolean;
|
|
373
|
+
/**
|
|
374
|
+
* Specifies the number of days in the waiting period before
|
|
375
|
+
* AWS KMS deletes a CMK that has been removed from a CloudFormation stack.
|
|
376
|
+
*
|
|
377
|
+
* When you remove a customer master key (CMK) from a CloudFormation stack, AWS KMS schedules the CMK for deletion
|
|
378
|
+
* and starts the mandatory waiting period. The PendingWindowInDays property determines the length of waiting period.
|
|
379
|
+
* During the waiting period, the key state of CMK is Pending Deletion, which prevents the CMK from being used in
|
|
380
|
+
* cryptographic operations. When the waiting period expires, AWS KMS permanently deletes the CMK.
|
|
381
|
+
*
|
|
382
|
+
* Enter a value between 7 and 30 days.
|
|
383
|
+
*
|
|
384
|
+
* @see https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kms-key.html#cfn-kms-key-pendingwindowindays
|
|
385
|
+
* @default - 30 days
|
|
386
|
+
*/
|
|
387
|
+
readonly pendingWindow?: Duration;
|
|
388
|
+
}
|
|
389
|
+
/**
|
|
390
|
+
* Defines a KMS key.
|
|
391
|
+
*
|
|
392
|
+
* @resource aws_kms_key
|
|
393
|
+
*/
|
|
394
|
+
export declare class Key extends KeyBase {
|
|
395
|
+
/**
|
|
396
|
+
* Import an externally defined KMS Key using its ARN.
|
|
397
|
+
*
|
|
398
|
+
* @param scope the construct that will "own" the imported key.
|
|
399
|
+
* @param id the id of the imported key in the construct tree.
|
|
400
|
+
* @param keyArn the ARN of an existing KMS key.
|
|
401
|
+
*/
|
|
402
|
+
static fromKeyArn(scope: Construct, id: string, keyArn: string): IKey;
|
|
403
|
+
/**
|
|
404
|
+
* Create a mutable `IKey` based on a low-level `KmsKey`.
|
|
405
|
+
* This method is different than `fromKeyArn()` because the `IKey`
|
|
406
|
+
* returned from this method is mutable;
|
|
407
|
+
* meaning, calling any mutating methods on it,
|
|
408
|
+
* like `IKey.addToResourcePolicy()`,
|
|
409
|
+
* will actually be reflected in the resulting template,
|
|
410
|
+
* as opposed to the object returned from `fromKeyArn()`,
|
|
411
|
+
* on which calling those methods would have no effect.
|
|
412
|
+
*/
|
|
413
|
+
static fromTfKey(tfKey: kmsKey.KmsKey): IKey;
|
|
414
|
+
/**
|
|
415
|
+
* Import an existing Key by querying the AWS environment this stack is deployed to.
|
|
416
|
+
*
|
|
417
|
+
* This function only needs to be used to use Keys not defined in your CDKTF
|
|
418
|
+
* application. If you are looking to share a Key between stacks, you can
|
|
419
|
+
* pass the `Key` object between stacks and use it as normal. In addition,
|
|
420
|
+
* it's not necessary to use this method if an interface accepts an `IKey`.
|
|
421
|
+
* In this case, `Alias.fromAliasName()` can be used which returns an alias
|
|
422
|
+
* that extends `IKey`.
|
|
423
|
+
*
|
|
424
|
+
* Calling this method will lead to a lookup when the CLI is executed.
|
|
425
|
+
* You can therefore not use any values that will only be available at
|
|
426
|
+
* Terraform execution time (i.e., Tokens).
|
|
427
|
+
*/
|
|
428
|
+
static fromLookup(scope: Construct, id: string, options: KeyLookupOptions): IKey;
|
|
429
|
+
readonly keyArn: string;
|
|
430
|
+
readonly keyId: string;
|
|
431
|
+
readonly resource: kmsKey.KmsKey;
|
|
432
|
+
protected readonly policy?: iam.PolicyDocument;
|
|
433
|
+
protected readonly trustAccountIdentities: boolean;
|
|
434
|
+
private readonly enableKeyRotation?;
|
|
435
|
+
constructor(scope: Construct, id: string, props?: KeyProps);
|
|
436
|
+
/**
|
|
437
|
+
* Grant admins permissions using this key to the given principal
|
|
438
|
+
*
|
|
439
|
+
* Key administrators have permissions to manage the key (e.g., change permissions, revoke), but do not have permissions
|
|
440
|
+
* to use the key in cryptographic operations (e.g., encrypt, decrypt).
|
|
441
|
+
*/
|
|
442
|
+
grantAdmin(grantee: iam.IGrantable): iam.Grant;
|
|
443
|
+
/**
|
|
444
|
+
* Adds the default key policy to the key. This policy gives the AWS account (root user) full access to the CMK,
|
|
445
|
+
* which reduces the risk of the CMK becoming unmanageable and enables IAM policies to allow access to the CMK.
|
|
446
|
+
* This is the same policy that is default when creating a Key via the KMS API or Console.
|
|
447
|
+
* @see https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default
|
|
448
|
+
*/
|
|
449
|
+
private addDefaultAdminPolicy;
|
|
450
|
+
/**
|
|
451
|
+
* Grants the account admin privileges -- not full account access -- plus the GenerateDataKey action.
|
|
452
|
+
* The GenerateDataKey action was added for interop with S3 in https://github.com/aws/aws-cdk/issues/3458.
|
|
453
|
+
*
|
|
454
|
+
* This policy is discouraged.
|
|
455
|
+
*
|
|
456
|
+
* @link https://docs.aws.amazon.com/kms/latest/developerguide/key-policies.html#key-policy-default
|
|
457
|
+
* @deprecated
|
|
458
|
+
*/
|
|
459
|
+
private addLegacyAdminPolicy;
|
|
460
|
+
}
|
|
461
|
+
export {};
|