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,505 @@
|
|
|
1
|
+
import { IResolvable } from "cdktf";
|
|
2
|
+
import { Construct } from "constructs";
|
|
3
|
+
import { ICertificate, IOrigin, FunctionAssociation } from ".";
|
|
4
|
+
import { Duration } from "../../duration";
|
|
5
|
+
import { AwsConstructBase, IAwsConstruct, AwsConstructProps } from "../aws-construct";
|
|
6
|
+
/**
|
|
7
|
+
* Outputs which may be registered for output via the Grid.
|
|
8
|
+
*/
|
|
9
|
+
export interface DistributionOutputs {
|
|
10
|
+
/**
|
|
11
|
+
* Identifier for the distribution. For example: `EDFDVBD632BHDS5`.
|
|
12
|
+
*/
|
|
13
|
+
readonly id: string;
|
|
14
|
+
/**
|
|
15
|
+
* CloudFront Route 53 zone ID that can be used to
|
|
16
|
+
* route an Alias Resource Record Set to.
|
|
17
|
+
*
|
|
18
|
+
* This attribute is simply an alias for the zone ID
|
|
19
|
+
*/
|
|
20
|
+
readonly hostedZoneId: string;
|
|
21
|
+
/**
|
|
22
|
+
* Current status of the distribution.
|
|
23
|
+
*
|
|
24
|
+
* `Deployed` if the distribution's information is fully propagated
|
|
25
|
+
* throughout the Amazon CloudFront system.
|
|
26
|
+
*/
|
|
27
|
+
readonly status: string;
|
|
28
|
+
/**
|
|
29
|
+
* ARN for the distribution
|
|
30
|
+
*/
|
|
31
|
+
readonly arn: string;
|
|
32
|
+
/**
|
|
33
|
+
* Domain name corresponding to the distribution.
|
|
34
|
+
*
|
|
35
|
+
* For example: `d604721fxaaqy9.cloudfront.net`
|
|
36
|
+
*/
|
|
37
|
+
readonly domainName: string;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Imported or created DNS zone attributes
|
|
41
|
+
*/
|
|
42
|
+
export interface IDistribution extends IAwsConstruct {
|
|
43
|
+
/** Strongly typed outputs
|
|
44
|
+
*
|
|
45
|
+
* @attribute
|
|
46
|
+
*/
|
|
47
|
+
readonly distributionOutputs: DistributionOutputs;
|
|
48
|
+
/**
|
|
49
|
+
* Domain name corresponding to the distribution.
|
|
50
|
+
*
|
|
51
|
+
* @attribute
|
|
52
|
+
* For example: `d604721fxaaqy9.cloudfront.net`
|
|
53
|
+
*/
|
|
54
|
+
readonly domainName: string;
|
|
55
|
+
/**
|
|
56
|
+
* CloudFront Route 53 zone ID that can be used to
|
|
57
|
+
* route an Alias Resource Record Set to.
|
|
58
|
+
*
|
|
59
|
+
* This attribute is simply an alias for the zone ID
|
|
60
|
+
*/
|
|
61
|
+
readonly hostedZoneId: string;
|
|
62
|
+
}
|
|
63
|
+
export interface DistributionProps extends AwsConstructProps {
|
|
64
|
+
/**
|
|
65
|
+
* Extra CNAMEs (alternate domain names), if any, for this distribution.
|
|
66
|
+
*/
|
|
67
|
+
readonly aliases?: string[];
|
|
68
|
+
/**
|
|
69
|
+
* Whether the distribution is enabled to accept end user requests for content.
|
|
70
|
+
*
|
|
71
|
+
* @default true
|
|
72
|
+
*/
|
|
73
|
+
readonly enabled?: boolean | IResolvable;
|
|
74
|
+
/**
|
|
75
|
+
* If enabled, the resource will wait for the distribution status to change
|
|
76
|
+
* from InProgress to Deployed.
|
|
77
|
+
*
|
|
78
|
+
* Setting this tofalse will skip the process.
|
|
79
|
+
*
|
|
80
|
+
* @default: true.
|
|
81
|
+
*/
|
|
82
|
+
readonly waitForDeployment?: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* The default behavior for the distribution.
|
|
85
|
+
*/
|
|
86
|
+
readonly defaultBehavior: BehaviorOptions;
|
|
87
|
+
/**
|
|
88
|
+
* Additional behaviors for the distribution, mapped by the pathPattern that specifies which requests to apply the behavior to.
|
|
89
|
+
*
|
|
90
|
+
* @default - no additional behaviors are added.
|
|
91
|
+
*/
|
|
92
|
+
readonly additionalBehaviors?: Record<string, BehaviorOptions>;
|
|
93
|
+
/**
|
|
94
|
+
* A certificate to associate with the distribution. The certificate must be located in N. Virginia (us-east-1).
|
|
95
|
+
*
|
|
96
|
+
* @default - the CloudFront wildcard certificate (*.cloudfront.net) will be used.
|
|
97
|
+
*/
|
|
98
|
+
readonly certificate?: ICertificate;
|
|
99
|
+
/**
|
|
100
|
+
* Any comments you want to include about the distribution.
|
|
101
|
+
*
|
|
102
|
+
* @default - no comment
|
|
103
|
+
*/
|
|
104
|
+
readonly comment?: string;
|
|
105
|
+
/**
|
|
106
|
+
* The object that you want CloudFront to request from your origin (for example, index.html)
|
|
107
|
+
* when a viewer requests the root URL for your distribution. If no default object is set, the
|
|
108
|
+
* request goes to the origin's root (e.g., example.com/).
|
|
109
|
+
*
|
|
110
|
+
* @default - no default root object
|
|
111
|
+
*/
|
|
112
|
+
readonly defaultRootObject?: string;
|
|
113
|
+
/**
|
|
114
|
+
* Controls the countries in which your content is distributed.
|
|
115
|
+
*
|
|
116
|
+
* @default - No geographic restrictions
|
|
117
|
+
*/
|
|
118
|
+
readonly geoRestriction?: GeoRestriction;
|
|
119
|
+
/**
|
|
120
|
+
* Specify the maximum HTTP version that you want viewers to use to communicate with CloudFront.
|
|
121
|
+
*
|
|
122
|
+
* For viewers and CloudFront to use HTTP/2, viewers must support TLS 1.2 or later, and must support server name identification (SNI).
|
|
123
|
+
*
|
|
124
|
+
* @default HttpVersion.HTTP2
|
|
125
|
+
*/
|
|
126
|
+
readonly httpVersion?: HttpVersion;
|
|
127
|
+
/**
|
|
128
|
+
* The price class that corresponds with the maximum price that you want to pay for CloudFront service.
|
|
129
|
+
* If you specify PriceClass_All, CloudFront responds to requests for your objects from all CloudFront edge locations.
|
|
130
|
+
* If you specify a price class other than PriceClass_All, CloudFront serves your objects from the CloudFront edge location
|
|
131
|
+
* that has the lowest latency among the edge locations in your price class.
|
|
132
|
+
*
|
|
133
|
+
* @default PriceClass.PRICE_CLASS_ALL
|
|
134
|
+
*/
|
|
135
|
+
readonly priceClass?: PriceClass;
|
|
136
|
+
/**
|
|
137
|
+
* How CloudFront should handle requests that are not successful (e.g., PageNotFound).
|
|
138
|
+
*
|
|
139
|
+
* @default - No custom error responses.
|
|
140
|
+
*/
|
|
141
|
+
readonly errorResponses?: ErrorResponse[];
|
|
142
|
+
/**
|
|
143
|
+
* The minimum version of the SSL protocol that you want CloudFront to use for HTTPS connections.
|
|
144
|
+
*
|
|
145
|
+
* CloudFront serves your objects only to browsers or devices that support at
|
|
146
|
+
* least the SSL version that you specify.
|
|
147
|
+
*
|
|
148
|
+
* @default - SecurityPolicyProtocol.TLS_V1_2_2021.
|
|
149
|
+
*/
|
|
150
|
+
readonly minimumProtocolVersion?: SecurityPolicyProtocol;
|
|
151
|
+
/**
|
|
152
|
+
* The SSL method CloudFront will use for your distribution.
|
|
153
|
+
*
|
|
154
|
+
* Server Name Indication (SNI) - is an extension to the TLS computer networking protocol by which a client indicates
|
|
155
|
+
* which hostname it is attempting to connect to at the start of the handshaking process. This allows a server to present
|
|
156
|
+
* multiple certificates on the same IP address and TCP port number and hence allows multiple secure (HTTPS) websites
|
|
157
|
+
* (or any other service over TLS) to be served by the same IP address without requiring all those sites to use the same certificate.
|
|
158
|
+
*
|
|
159
|
+
* CloudFront can use SNI to host multiple distributions on the same IP - which a large majority of clients will support.
|
|
160
|
+
*
|
|
161
|
+
* If your clients cannot support SNI however - CloudFront can use dedicated IPs for your distribution - but there is a prorated monthly charge for
|
|
162
|
+
* using this feature. By default, we use SNI - but you can optionally enable dedicated IPs (VIP).
|
|
163
|
+
*
|
|
164
|
+
* See the CloudFront SSL for more details about pricing : https://aws.amazon.com/cloudfront/custom-ssl-domains/
|
|
165
|
+
*
|
|
166
|
+
* @default SSLMethod.SNI
|
|
167
|
+
*/
|
|
168
|
+
readonly sslSupportMethod?: SSLMethod;
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Amazon Cloudfront Distribution
|
|
172
|
+
*/
|
|
173
|
+
export declare class Distribution extends AwsConstructBase implements IDistribution {
|
|
174
|
+
private readonly resource;
|
|
175
|
+
private readonly _outputs;
|
|
176
|
+
get distributionOutputs(): DistributionOutputs;
|
|
177
|
+
get outputs(): Record<string, any>;
|
|
178
|
+
private readonly _domainName;
|
|
179
|
+
get domainName(): string;
|
|
180
|
+
readonly hostedZoneId: string;
|
|
181
|
+
private readonly _origins;
|
|
182
|
+
private readonly additionalBehaviors;
|
|
183
|
+
private readonly errorResponses;
|
|
184
|
+
private readonly certificate?;
|
|
185
|
+
constructor(scope: Construct, name: string, props: DistributionProps);
|
|
186
|
+
/**
|
|
187
|
+
* Add an Origin to this Distribution.
|
|
188
|
+
*
|
|
189
|
+
* @param origin The Origin to add.
|
|
190
|
+
* @param originId An optional id to use for the Origin or one will be generated.
|
|
191
|
+
*/
|
|
192
|
+
addOrigin(origin: IOrigin, originId?: string): string;
|
|
193
|
+
private renderErrorResponses;
|
|
194
|
+
/**
|
|
195
|
+
* Adds a new behavior to this distribution for the given pathPattern.
|
|
196
|
+
*
|
|
197
|
+
* @param pathPattern the path pattern (e.g., 'images/*') that specifies which requests to apply the behavior to.
|
|
198
|
+
* @param origin the origin to use for this behavior
|
|
199
|
+
* @param behaviorOptions the options for the behavior at this path.
|
|
200
|
+
*/
|
|
201
|
+
addBehavior(pathPattern: string, origin: IOrigin, behaviorOptions?: AddBehaviorOptions): void;
|
|
202
|
+
/**
|
|
203
|
+
* Creates and returns the Terraform representation of this behavior.
|
|
204
|
+
* This renders as a "CloudfrontDistributionDefaultCacheBehavior"
|
|
205
|
+
* regardless if this is a default cache behavior or not, as the two
|
|
206
|
+
* are identical except the `pathPattern` is omitted for the default
|
|
207
|
+
* cache behavior.
|
|
208
|
+
*
|
|
209
|
+
* @internal
|
|
210
|
+
*/
|
|
211
|
+
private _renderDefaultCacheBehavior;
|
|
212
|
+
private renderRestrictions;
|
|
213
|
+
private validateLocations;
|
|
214
|
+
private renderViewerCertificate;
|
|
215
|
+
/**
|
|
216
|
+
* Conditionally lookup or create a child based on the id provided.
|
|
217
|
+
* If the id is undefined, it will return undefined.
|
|
218
|
+
*
|
|
219
|
+
* @param id the id of the child to lookup or create
|
|
220
|
+
* @param constructType the type of the child to create
|
|
221
|
+
* @param config the configuration to pass to the child
|
|
222
|
+
*/
|
|
223
|
+
private dataLookup;
|
|
224
|
+
}
|
|
225
|
+
export interface GeoRestriction {
|
|
226
|
+
readonly locations: string[];
|
|
227
|
+
readonly restrictionType: GeoRestrictionType;
|
|
228
|
+
}
|
|
229
|
+
export declare enum GeoRestrictionType {
|
|
230
|
+
NONE = "none",
|
|
231
|
+
WHITELIST = "whitelist",
|
|
232
|
+
BLACKLIST = "blacklist"
|
|
233
|
+
}
|
|
234
|
+
/** Maximum HTTP version to support */
|
|
235
|
+
export declare enum HttpVersion {
|
|
236
|
+
/** HTTP 1.1 */
|
|
237
|
+
HTTP1_1 = "http1.1",
|
|
238
|
+
/** HTTP 2 */
|
|
239
|
+
HTTP2 = "http2",
|
|
240
|
+
/** HTTP 2 and HTTP 3 */
|
|
241
|
+
HTTP2_AND_3 = "http2and3",
|
|
242
|
+
/** HTTP 3 */
|
|
243
|
+
HTTP3 = "http3"
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* The price class determines how many edge locations CloudFront will use for your distribution.
|
|
247
|
+
* See https://aws.amazon.com/cloudfront/pricing/ for full list of supported regions.
|
|
248
|
+
*/
|
|
249
|
+
export declare enum PriceClass {
|
|
250
|
+
/** USA, Canada, Europe, & Israel */
|
|
251
|
+
PRICE_CLASS_100 = "PriceClass_100",
|
|
252
|
+
/** PRICE_CLASS_100 + South Africa, Kenya, Middle East, Japan, Singapore, South Korea, Taiwan, Hong Kong, & Philippines */
|
|
253
|
+
PRICE_CLASS_200 = "PriceClass_200",
|
|
254
|
+
/** All locations */
|
|
255
|
+
PRICE_CLASS_ALL = "PriceClass_All"
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* The SSL method CloudFront will use for your distribution.
|
|
259
|
+
*
|
|
260
|
+
* Server Name Indication (SNI) - is an extension to the TLS computer networking protocol by which a client indicates
|
|
261
|
+
* which hostname it is attempting to connect to at the start of the handshaking process. This allows a server to present
|
|
262
|
+
* multiple certificates on the same IP address and TCP port number and hence allows multiple secure (HTTPS) websites
|
|
263
|
+
* (or any other service over TLS) to be served by the same IP address without requiring all those sites to use the same certificate.
|
|
264
|
+
*
|
|
265
|
+
* CloudFront can use SNI to host multiple distributions on the same IP - which a large majority of clients will support.
|
|
266
|
+
*
|
|
267
|
+
* If your clients cannot support SNI however - CloudFront can use dedicated IPs for your distribution - but there is a prorated monthly charge for
|
|
268
|
+
* using this feature. By default, we use SNI - but you can optionally enable dedicated IPs (VIP).
|
|
269
|
+
*
|
|
270
|
+
* See the CloudFront SSL for more details about pricing : https://aws.amazon.com/cloudfront/custom-ssl-domains/
|
|
271
|
+
*
|
|
272
|
+
*/
|
|
273
|
+
export declare enum SSLMethod {
|
|
274
|
+
SNI = "sni-only",
|
|
275
|
+
VIP = "vip"
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* The minimum version of the SSL protocol that you want CloudFront to use for HTTPS connections.
|
|
279
|
+
* CloudFront serves your objects only to browsers or devices that support at least the SSL version that you specify.
|
|
280
|
+
*/
|
|
281
|
+
export declare enum SecurityPolicyProtocol {
|
|
282
|
+
SSL_V3 = "SSLv3",
|
|
283
|
+
TLS_V1 = "TLSv1",
|
|
284
|
+
TLS_V1_2016 = "TLSv1_2016",
|
|
285
|
+
TLS_V1_1_2016 = "TLSv1.1_2016",
|
|
286
|
+
TLS_V1_2_2018 = "TLSv1.2_2018",
|
|
287
|
+
TLS_V1_2_2019 = "TLSv1.2_2019",
|
|
288
|
+
TLS_V1_2_2021 = "TLSv1.2_2021"
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
* Options for configuring custom error responses.
|
|
292
|
+
*/
|
|
293
|
+
export interface ErrorResponse {
|
|
294
|
+
/**
|
|
295
|
+
* The minimum amount of time, in seconds, that you want CloudFront to cache the HTTP status code specified in ErrorCode.
|
|
296
|
+
*
|
|
297
|
+
* @default - the default caching TTL behavior applies
|
|
298
|
+
*/
|
|
299
|
+
readonly ttl?: Duration;
|
|
300
|
+
/**
|
|
301
|
+
* The HTTP status code for which you want to specify a custom error page and/or a caching duration.
|
|
302
|
+
*/
|
|
303
|
+
readonly httpStatus: number;
|
|
304
|
+
/**
|
|
305
|
+
* The HTTP status code that you want CloudFront to return to the viewer along with the custom error page.
|
|
306
|
+
*
|
|
307
|
+
* If you specify a value for `responseHttpStatus`, you must also specify a value for `responsePagePath`.
|
|
308
|
+
*
|
|
309
|
+
* @default - the error code will be returned as the response code.
|
|
310
|
+
*/
|
|
311
|
+
readonly responseHttpStatus?: number;
|
|
312
|
+
/**
|
|
313
|
+
* The path to the custom error page that you want CloudFront to return to a viewer when your origin returns the
|
|
314
|
+
* `httpStatus`, for example, /4xx-errors/403-forbidden.html
|
|
315
|
+
*
|
|
316
|
+
* @default - the default CloudFront response is shown.
|
|
317
|
+
*/
|
|
318
|
+
readonly responsePagePath?: string;
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
* Options for creating a new behavior.
|
|
322
|
+
*/
|
|
323
|
+
export interface BehaviorOptions extends AddBehaviorOptions {
|
|
324
|
+
/**
|
|
325
|
+
* The origin that you want CloudFront to route requests to when they match this behavior.
|
|
326
|
+
*/
|
|
327
|
+
readonly origin: IOrigin;
|
|
328
|
+
}
|
|
329
|
+
/**
|
|
330
|
+
* Options for adding a new behavior to a Distribution.
|
|
331
|
+
*/
|
|
332
|
+
export interface AddBehaviorOptions {
|
|
333
|
+
/**
|
|
334
|
+
* HTTP methods to allow for this behavior.
|
|
335
|
+
*
|
|
336
|
+
* @default AllowedMethods.ALLOW_GET_HEAD
|
|
337
|
+
*/
|
|
338
|
+
readonly allowedMethods?: AllowedMethods;
|
|
339
|
+
/**
|
|
340
|
+
* HTTP methods to cache for this behavior.
|
|
341
|
+
*
|
|
342
|
+
* @default CachedMethods.CACHE_GET_HEAD
|
|
343
|
+
*/
|
|
344
|
+
readonly cachedMethods?: CachedMethods;
|
|
345
|
+
/**
|
|
346
|
+
* The cache policy for this behavior. The cache policy determines what values are included in the cache key,
|
|
347
|
+
* and the time-to-live (TTL) values for the cache.
|
|
348
|
+
*
|
|
349
|
+
* @see https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/controlling-the-cache-key.html.
|
|
350
|
+
* @default ManagedCachePolicy.CACHING_OPTIMIZED
|
|
351
|
+
*/
|
|
352
|
+
readonly cachePolicy?: ManagedCachePolicy;
|
|
353
|
+
/**
|
|
354
|
+
* Whether you want CloudFront to automatically compress certain files for this cache behavior.
|
|
355
|
+
* See https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html#compressed-content-cloudfront-file-types
|
|
356
|
+
* for file types CloudFront will compress.
|
|
357
|
+
*
|
|
358
|
+
* @default true
|
|
359
|
+
*/
|
|
360
|
+
readonly compress?: boolean;
|
|
361
|
+
/**
|
|
362
|
+
* The origin request policy for this behavior. The origin request policy determines which values (e.g., headers, cookies)
|
|
363
|
+
* are included in requests that CloudFront sends to the origin.
|
|
364
|
+
*
|
|
365
|
+
* @default - none
|
|
366
|
+
*/
|
|
367
|
+
readonly originRequestPolicy?: ManagedOriginRequestPolicy;
|
|
368
|
+
/**
|
|
369
|
+
* The response headers policy for this behavior. The response headers policy determines which headers are included in responses
|
|
370
|
+
*
|
|
371
|
+
* @default - none
|
|
372
|
+
*/
|
|
373
|
+
readonly responseHeadersPolicy?: ManagedResponseHeadersPolicy;
|
|
374
|
+
/**
|
|
375
|
+
* Set this to true to indicate you want to distribute media files in the Microsoft Smooth Streaming format using this behavior.
|
|
376
|
+
*
|
|
377
|
+
* @default false
|
|
378
|
+
*/
|
|
379
|
+
readonly smoothStreaming?: boolean;
|
|
380
|
+
/**
|
|
381
|
+
* The protocol that viewers can use to access the files controlled by this behavior.
|
|
382
|
+
*
|
|
383
|
+
* @default ViewerProtocolPolicy.ALLOW_ALL
|
|
384
|
+
*/
|
|
385
|
+
readonly viewerProtocolPolicy?: ViewerProtocolPolicy;
|
|
386
|
+
/**
|
|
387
|
+
* The CloudFront functions to invoke before serving the contents.
|
|
388
|
+
*
|
|
389
|
+
* @default - no functions will be invoked
|
|
390
|
+
*/
|
|
391
|
+
readonly functionAssociations?: FunctionAssociation[];
|
|
392
|
+
}
|
|
393
|
+
/**
|
|
394
|
+
* The HTTP methods that the Behavior will accept requests on.
|
|
395
|
+
*/
|
|
396
|
+
export declare class AllowedMethods {
|
|
397
|
+
/** HEAD and GET */
|
|
398
|
+
static readonly ALLOW_GET_HEAD: AllowedMethods;
|
|
399
|
+
/** HEAD, GET, and OPTIONS */
|
|
400
|
+
static readonly ALLOW_GET_HEAD_OPTIONS: AllowedMethods;
|
|
401
|
+
/** All supported HTTP methods */
|
|
402
|
+
static readonly ALLOW_ALL: AllowedMethods;
|
|
403
|
+
/** HTTP methods supported */
|
|
404
|
+
readonly methods: string[];
|
|
405
|
+
private constructor();
|
|
406
|
+
}
|
|
407
|
+
/**
|
|
408
|
+
* The HTTP methods that the Behavior will cache requests on.
|
|
409
|
+
*/
|
|
410
|
+
export declare class CachedMethods {
|
|
411
|
+
/** HEAD and GET */
|
|
412
|
+
static readonly CACHE_GET_HEAD: CachedMethods;
|
|
413
|
+
/** HEAD, GET, and OPTIONS */
|
|
414
|
+
static readonly CACHE_GET_HEAD_OPTIONS: CachedMethods;
|
|
415
|
+
/** HTTP methods supported */
|
|
416
|
+
readonly methods: string[];
|
|
417
|
+
private constructor();
|
|
418
|
+
}
|
|
419
|
+
/**
|
|
420
|
+
* How HTTPs should be handled with your distribution.
|
|
421
|
+
*/
|
|
422
|
+
export declare enum ViewerProtocolPolicy {
|
|
423
|
+
/** HTTPS only */
|
|
424
|
+
HTTPS_ONLY = "https-only",
|
|
425
|
+
/** Will redirect HTTP requests to HTTPS */
|
|
426
|
+
REDIRECT_TO_HTTPS = "redirect-to-https",
|
|
427
|
+
/** Both HTTP and HTTPS supported */
|
|
428
|
+
ALLOW_ALL = "allow-all"
|
|
429
|
+
}
|
|
430
|
+
/**
|
|
431
|
+
* CloudFront provides a set of managed cache policies that you can attach to any of your distribution's cache behaviors.
|
|
432
|
+
* With a managed cache policy, you don't need to write or maintain your own cache policy. The managed policies use settings that are optimized for specific use cases.
|
|
433
|
+
*
|
|
434
|
+
* @link https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-cache-policies.html
|
|
435
|
+
* @link https://registry.terraform.io/providers/hashicorp/aws/5.60.0/docs/data-sources/cloudfront_cache_policy#aws-managed-policies
|
|
436
|
+
*/
|
|
437
|
+
export declare enum ManagedCachePolicy {
|
|
438
|
+
/**
|
|
439
|
+
* This policy is designed for use with an origin that is an AWS Amplify web app.
|
|
440
|
+
*/
|
|
441
|
+
AMPLIFY = "Managed-Amplify",
|
|
442
|
+
/**
|
|
443
|
+
* Optimize cache efficiency by minimizing the values that CloudFront includes in the cache key.
|
|
444
|
+
* Query strings and cookies are not included in the cache key, and only the normalized 'Accept-Encoding' header is included.
|
|
445
|
+
*/
|
|
446
|
+
CACHING_OPTIMIZED = "Managed-CachingOptimized",
|
|
447
|
+
/**
|
|
448
|
+
* Optimize cache efficiency by minimizing the values that CloudFront includes in the cache key.
|
|
449
|
+
* Query strings and cookies are not included in the cache key, and only the normalized 'Accept-Encoding' header is included.
|
|
450
|
+
* Disables cache compression.
|
|
451
|
+
*/
|
|
452
|
+
CACHING_OPTIMIZED_FOR_UNCOMPRESSED_OBJECTS = "Managed-CachingOptimizedForUncompressedObjects",
|
|
453
|
+
/** Disables caching. This policy is useful for dynamic content and for requests that are not cacheable. */
|
|
454
|
+
CACHING_DISABLED = "Managed-CachingDisabled",
|
|
455
|
+
/** Designed for use with an origin that is an AWS Elemental MediaPackage endpoint. */
|
|
456
|
+
ELEMENTAL_MEDIA_PACKAGE = "Managed-Elemental-MediaPackage",
|
|
457
|
+
/**
|
|
458
|
+
* Designed for use with an origin that returns Cache-Control HTTP response headers and does not serve different content based on values present in the query string.
|
|
459
|
+
*/
|
|
460
|
+
USE_ORIGIN_CACHE_CONTROL_HEADERS = "Managed-UseOriginCacheControlHeaders",
|
|
461
|
+
/**
|
|
462
|
+
* Designed for use with an origin that returns Cache-Control HTTP response headers and serves different content based on values present in the query string.
|
|
463
|
+
*/
|
|
464
|
+
USE_ORIGIN_CACHE_CONTROL_HEADERS_QUERY_STRINGS = "Managed-UseOriginCacheControlHeaders-QueryStrings"
|
|
465
|
+
}
|
|
466
|
+
/**
|
|
467
|
+
* Origin Request Policy configuration.
|
|
468
|
+
*
|
|
469
|
+
* @link https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-origin-request-policies.html
|
|
470
|
+
* @link https://registry.terraform.io/providers/hashicorp/aws/5.60.0/docs/data-sources/cloudfront_origin_request_policy#aws-managed-policies
|
|
471
|
+
*/
|
|
472
|
+
export declare enum ManagedOriginRequestPolicy {
|
|
473
|
+
/** This policy includes only the User-Agent and Referer headers. It doesn’t include any query strings or cookies. */
|
|
474
|
+
USER_AGENT_REFERER_HEADERS = "Managed-UserAgentRefererHeaders",
|
|
475
|
+
/** This policy includes the header that enables cross-origin resource sharing (CORS) requests when the origin is a custom origin. */
|
|
476
|
+
CORS_CUSTOM_ORIGIN = "Managed-CORS-CustomOrigin",
|
|
477
|
+
/** This policy includes the headers that enable cross-origin resource sharing (CORS) requests when the origin is an Amazon S3 bucket. */
|
|
478
|
+
CORS_S3_ORIGIN = "Managed-CORS-S3Origin",
|
|
479
|
+
/** This policy includes all values (query strings, headers, and cookies) in the viewer request. */
|
|
480
|
+
ALL_VIEWER = "Managed-AllViewer",
|
|
481
|
+
/** This policy is designed for use with an origin that is an AWS Elemental MediaTailor endpoint. */
|
|
482
|
+
ELEMENTAL_MEDIA_TAILOR = "Managed-Elemental-MediaTailor-PersonalizedManifests",
|
|
483
|
+
/** This policy includes all values (headers, cookies, and query strings) in the viewer request, and all CloudFront headers that were released through June 2022 (CloudFront headers released after June 2022 are not included). */
|
|
484
|
+
ALL_VIEWER_AND_CLOUDFRONT_2022 = "Managed-AllViewerAndCloudFrontHeaders-2022-06",
|
|
485
|
+
/** This policy includes all values (query strings, and cookies) except the header in the viewer request. */
|
|
486
|
+
ALL_VIEWER_EXCEPT_HOST_HEADER = "Managed-AllViewerExceptHostHeader"
|
|
487
|
+
}
|
|
488
|
+
/**
|
|
489
|
+
* A Response Headers Policy configuration
|
|
490
|
+
*
|
|
491
|
+
* @link https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-response-headers-policies.html
|
|
492
|
+
* @link https://registry.terraform.io/providers/hashicorp/aws/5.60.0/docs/data-sources/cloudfront_response_headers_policy#aws-managed-policies
|
|
493
|
+
*/
|
|
494
|
+
export declare enum ManagedResponseHeadersPolicy {
|
|
495
|
+
/** Use this managed policy to allow simple CORS requests from any origin. */
|
|
496
|
+
CORS_ALLOW_ALL_ORIGINS = "Managed-SimpleCORS",//60669652-455b-4ae9-85a4-c4c02393f86c
|
|
497
|
+
/** Use this managed policy to allow CORS requests from any origin, including preflight requests. */
|
|
498
|
+
CORS_ALLOW_ALL_ORIGINS_WITH_PREFLIGHT = "Managed-CORS-With-Preflight",//5cc3b908-e619-4b99-88e5-2cf7f45965bd
|
|
499
|
+
/** Use this managed policy to add a set of security headers to all responses that CloudFront sends to viewers. */
|
|
500
|
+
SECURITY_HEADERS = "Managed-SecurityHeadersPolicy",//67f7725c-6f97-4210-82d7-5512b31e9d03
|
|
501
|
+
/** Use this managed policy to allow simple CORS requests from any origin and add a set of security headers to all responses that CloudFront sends to viewers. */
|
|
502
|
+
CORS_ALLOW_ALL_ORIGINS_AND_SECURITY_HEADERS = "Managed-CORS-and-SecurityHeadersPolicy",//e61eb60c-9c35-4d20-a928-2b84e02af89c
|
|
503
|
+
/** Use this managed policy to allow CORS requests from any origin, including preflight requests, and add a set of security headers to all responses that CloudFront sends to viewers. */
|
|
504
|
+
CORS_ALLOW_ALL_ORIGINS_WITH_PREFLIGHT_AND_SECURITY_HEADERS = "Managed-CORS-with-preflight-and-SecurityHeadersPolicy"
|
|
505
|
+
}
|