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,792 @@
|
|
|
1
|
+
import { Construct } from "constructs";
|
|
2
|
+
import { IAlarm } from "./alarm-base";
|
|
3
|
+
import { IMetric } from "./metric-types";
|
|
4
|
+
import { ConcreteWidget } from "./widget";
|
|
5
|
+
import { Duration } from "../../duration";
|
|
6
|
+
/**
|
|
7
|
+
* Basic properties for widgets that display metrics
|
|
8
|
+
*/
|
|
9
|
+
export interface MetricWidgetProps {
|
|
10
|
+
/**
|
|
11
|
+
* Title for the graph
|
|
12
|
+
*
|
|
13
|
+
* @default - None
|
|
14
|
+
*/
|
|
15
|
+
readonly title?: string;
|
|
16
|
+
/**
|
|
17
|
+
* The region the metrics of this graph should be taken from
|
|
18
|
+
*
|
|
19
|
+
* @default - Current region
|
|
20
|
+
*/
|
|
21
|
+
readonly region?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Width of the widget, in a grid of 24 units wide
|
|
24
|
+
*
|
|
25
|
+
* @default 6
|
|
26
|
+
*/
|
|
27
|
+
readonly width?: number;
|
|
28
|
+
/**
|
|
29
|
+
* Height of the widget
|
|
30
|
+
*
|
|
31
|
+
* @default - 6 for Alarm and Graph widgets.
|
|
32
|
+
* 3 for single value widgets where most recent value of a metric is displayed.
|
|
33
|
+
*/
|
|
34
|
+
readonly height?: number;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Properties for a Y-Axis
|
|
38
|
+
*/
|
|
39
|
+
export interface YAxisProps {
|
|
40
|
+
/**
|
|
41
|
+
* The min value
|
|
42
|
+
*
|
|
43
|
+
* @default 0
|
|
44
|
+
*/
|
|
45
|
+
readonly min?: number;
|
|
46
|
+
/**
|
|
47
|
+
* The max value
|
|
48
|
+
*
|
|
49
|
+
* @default - No maximum value
|
|
50
|
+
*/
|
|
51
|
+
readonly max?: number;
|
|
52
|
+
/**
|
|
53
|
+
* The label
|
|
54
|
+
*
|
|
55
|
+
* @default - No label
|
|
56
|
+
*/
|
|
57
|
+
readonly label?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Whether to show units
|
|
60
|
+
*
|
|
61
|
+
* @default true
|
|
62
|
+
*/
|
|
63
|
+
readonly showUnits?: boolean;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Properties for an AlarmWidget
|
|
67
|
+
*/
|
|
68
|
+
export interface AlarmWidgetProps extends MetricWidgetProps {
|
|
69
|
+
/**
|
|
70
|
+
* The alarm to show
|
|
71
|
+
*/
|
|
72
|
+
readonly alarm: IAlarm;
|
|
73
|
+
/**
|
|
74
|
+
* Left Y axis
|
|
75
|
+
*
|
|
76
|
+
* @default - No minimum or maximum values for the left Y-axis
|
|
77
|
+
*/
|
|
78
|
+
readonly leftYAxis?: YAxisProps;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Display the metric associated with an alarm, including the alarm line
|
|
82
|
+
*/
|
|
83
|
+
export declare class AlarmWidget extends ConcreteWidget {
|
|
84
|
+
private readonly props;
|
|
85
|
+
constructor(scope: Construct, props: AlarmWidgetProps);
|
|
86
|
+
toJson(): any[];
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Types of view
|
|
90
|
+
*/
|
|
91
|
+
export declare enum GraphWidgetView {
|
|
92
|
+
/**
|
|
93
|
+
* Display as a line graph.
|
|
94
|
+
*/
|
|
95
|
+
TIME_SERIES = "timeSeries",
|
|
96
|
+
/**
|
|
97
|
+
* Display as a bar graph.
|
|
98
|
+
*/
|
|
99
|
+
BAR = "bar",
|
|
100
|
+
/**
|
|
101
|
+
* Display as a pie graph.
|
|
102
|
+
*/
|
|
103
|
+
PIE = "pie"
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Properties for a GaugeWidget
|
|
107
|
+
*/
|
|
108
|
+
export interface GaugeWidgetProps extends MetricWidgetProps {
|
|
109
|
+
/**
|
|
110
|
+
* Metrics to display on left Y axis
|
|
111
|
+
*
|
|
112
|
+
* @default - No metrics
|
|
113
|
+
*/
|
|
114
|
+
readonly metrics?: IMetric[];
|
|
115
|
+
/**
|
|
116
|
+
* Annotations for the left Y axis
|
|
117
|
+
*
|
|
118
|
+
* @default - No annotations
|
|
119
|
+
*/
|
|
120
|
+
readonly annotations?: HorizontalAnnotation[];
|
|
121
|
+
/**
|
|
122
|
+
* Left Y axis
|
|
123
|
+
*
|
|
124
|
+
* @default - None
|
|
125
|
+
*/
|
|
126
|
+
readonly leftYAxis?: YAxisProps;
|
|
127
|
+
/**
|
|
128
|
+
* Position of the legend
|
|
129
|
+
*
|
|
130
|
+
* @default - bottom
|
|
131
|
+
*/
|
|
132
|
+
readonly legendPosition?: LegendPosition;
|
|
133
|
+
/**
|
|
134
|
+
* Whether the graph should show live data
|
|
135
|
+
*
|
|
136
|
+
* @default false
|
|
137
|
+
*/
|
|
138
|
+
readonly liveData?: boolean;
|
|
139
|
+
/**
|
|
140
|
+
* Whether to show the value from the entire time range. Only applicable for Bar and Pie charts.
|
|
141
|
+
*
|
|
142
|
+
* If false, values will be from the most recent period of your chosen time range;
|
|
143
|
+
* if true, shows the value from the entire time range.
|
|
144
|
+
*
|
|
145
|
+
* @default false
|
|
146
|
+
*/
|
|
147
|
+
readonly setPeriodToTimeRange?: boolean;
|
|
148
|
+
/**
|
|
149
|
+
* The default period for all metrics in this widget.
|
|
150
|
+
* The period is the length of time represented by one data point on the graph.
|
|
151
|
+
* This default can be overridden within each metric definition.
|
|
152
|
+
*
|
|
153
|
+
* @default Duration.seconds(300)
|
|
154
|
+
*/
|
|
155
|
+
readonly period?: Duration;
|
|
156
|
+
/**
|
|
157
|
+
* The default statistic to be displayed for each metric.
|
|
158
|
+
* This default can be overridden within the definition of each individual metric
|
|
159
|
+
*
|
|
160
|
+
* @default - The statistic for each metric is used
|
|
161
|
+
*/
|
|
162
|
+
readonly statistic?: string;
|
|
163
|
+
/**
|
|
164
|
+
* The start of the time range to use for each widget independently from those of the dashboard.
|
|
165
|
+
* You can specify start without specifying end to specify a relative time range that ends with the current time.
|
|
166
|
+
* In this case, the value of start must begin with -P, and you can use M, H, D, W and M as abbreviations for
|
|
167
|
+
* minutes, hours, days, weeks and months. For example, -PT8H shows the last 8 hours and -P3M shows the last three months.
|
|
168
|
+
* You can also use start along with an end field, to specify an absolute time range.
|
|
169
|
+
* When specifying an absolute time range, use the ISO 8601 format. For example, 2018-12-17T06:00:00.000Z.
|
|
170
|
+
*
|
|
171
|
+
* @default When the dashboard loads, the start time will be the default time range.
|
|
172
|
+
*/
|
|
173
|
+
readonly start?: string;
|
|
174
|
+
/**
|
|
175
|
+
* The end of the time range to use for each widget independently from those of the dashboard.
|
|
176
|
+
* If you specify a value for end, you must also specify a value for start.
|
|
177
|
+
* Specify an absolute time in the ISO 8601 format. For example, 2018-12-17T06:00:00.000Z.
|
|
178
|
+
*
|
|
179
|
+
* @default When the dashboard loads, the end date will be the current time.
|
|
180
|
+
*/
|
|
181
|
+
readonly end?: string;
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* A dashboard gauge widget that displays metrics
|
|
185
|
+
*/
|
|
186
|
+
export declare class GaugeWidget extends ConcreteWidget {
|
|
187
|
+
private readonly props;
|
|
188
|
+
private readonly metrics;
|
|
189
|
+
constructor(scope: Construct, props: GaugeWidgetProps);
|
|
190
|
+
/**
|
|
191
|
+
* Add another metric to the left Y axis of the GaugeWidget
|
|
192
|
+
*
|
|
193
|
+
* @param metric the metric to add
|
|
194
|
+
*/
|
|
195
|
+
addMetric(metric: IMetric): void;
|
|
196
|
+
toJson(): any[];
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* Properties for a GraphWidget
|
|
200
|
+
*/
|
|
201
|
+
export interface GraphWidgetProps extends MetricWidgetProps {
|
|
202
|
+
/**
|
|
203
|
+
* Metrics to display on left Y axis
|
|
204
|
+
*
|
|
205
|
+
* @default - No metrics
|
|
206
|
+
*/
|
|
207
|
+
readonly left?: IMetric[];
|
|
208
|
+
/**
|
|
209
|
+
* Metrics to display on right Y axis
|
|
210
|
+
*
|
|
211
|
+
* @default - No metrics
|
|
212
|
+
*/
|
|
213
|
+
readonly right?: IMetric[];
|
|
214
|
+
/**
|
|
215
|
+
* Annotations for the left Y axis
|
|
216
|
+
*
|
|
217
|
+
* @default - No annotations
|
|
218
|
+
*/
|
|
219
|
+
readonly leftAnnotations?: HorizontalAnnotation[];
|
|
220
|
+
/**
|
|
221
|
+
* Annotations for the right Y axis
|
|
222
|
+
*
|
|
223
|
+
* @default - No annotations
|
|
224
|
+
*/
|
|
225
|
+
readonly rightAnnotations?: HorizontalAnnotation[];
|
|
226
|
+
/**
|
|
227
|
+
* Annotations for the X axis
|
|
228
|
+
*
|
|
229
|
+
* @default - No annotations
|
|
230
|
+
*/
|
|
231
|
+
readonly verticalAnnotations?: VerticalAnnotation[];
|
|
232
|
+
/**
|
|
233
|
+
* Whether the graph should be shown as stacked lines
|
|
234
|
+
*
|
|
235
|
+
* @default false
|
|
236
|
+
*/
|
|
237
|
+
readonly stacked?: boolean;
|
|
238
|
+
/**
|
|
239
|
+
* Left Y axis
|
|
240
|
+
*
|
|
241
|
+
* @default - None
|
|
242
|
+
*/
|
|
243
|
+
readonly leftYAxis?: YAxisProps;
|
|
244
|
+
/**
|
|
245
|
+
* Right Y axis
|
|
246
|
+
*
|
|
247
|
+
* @default - None
|
|
248
|
+
*/
|
|
249
|
+
readonly rightYAxis?: YAxisProps;
|
|
250
|
+
/**
|
|
251
|
+
* Position of the legend
|
|
252
|
+
*
|
|
253
|
+
* @default - bottom
|
|
254
|
+
*/
|
|
255
|
+
readonly legendPosition?: LegendPosition;
|
|
256
|
+
/**
|
|
257
|
+
* Whether the graph should show live data
|
|
258
|
+
*
|
|
259
|
+
* @default false
|
|
260
|
+
*/
|
|
261
|
+
readonly liveData?: boolean;
|
|
262
|
+
/**
|
|
263
|
+
* Display this metric
|
|
264
|
+
*
|
|
265
|
+
* @default TimeSeries
|
|
266
|
+
*/
|
|
267
|
+
readonly view?: GraphWidgetView;
|
|
268
|
+
/**
|
|
269
|
+
* Whether to show the value from the entire time range. Only applicable for Bar and Pie charts.
|
|
270
|
+
*
|
|
271
|
+
* If false, values will be from the most recent period of your chosen time range;
|
|
272
|
+
* if true, shows the value from the entire time range.
|
|
273
|
+
*
|
|
274
|
+
* @default false
|
|
275
|
+
*/
|
|
276
|
+
readonly setPeriodToTimeRange?: boolean;
|
|
277
|
+
/**
|
|
278
|
+
* The default period for all metrics in this widget.
|
|
279
|
+
* The period is the length of time represented by one data point on the graph.
|
|
280
|
+
* This default can be overridden within each metric definition.
|
|
281
|
+
*
|
|
282
|
+
* @default Duration.seconds(300)
|
|
283
|
+
*/
|
|
284
|
+
readonly period?: Duration;
|
|
285
|
+
/**
|
|
286
|
+
* The default statistic to be displayed for each metric.
|
|
287
|
+
* This default can be overridden within the definition of each individual metric
|
|
288
|
+
*
|
|
289
|
+
* @default - The statistic for each metric is used
|
|
290
|
+
*/
|
|
291
|
+
readonly statistic?: string;
|
|
292
|
+
/**
|
|
293
|
+
* The start of the time range to use for each widget independently from those of the dashboard.
|
|
294
|
+
* You can specify start without specifying end to specify a relative time range that ends with the current time.
|
|
295
|
+
* In this case, the value of start must begin with -P, and you can use M, H, D, W and M as abbreviations for
|
|
296
|
+
* minutes, hours, days, weeks and months. For example, -PT8H shows the last 8 hours and -P3M shows the last three months.
|
|
297
|
+
* You can also use start along with an end field, to specify an absolute time range.
|
|
298
|
+
* When specifying an absolute time range, use the ISO 8601 format. For example, 2018-12-17T06:00:00.000Z.
|
|
299
|
+
*
|
|
300
|
+
* @default When the dashboard loads, the start time will be the default time range.
|
|
301
|
+
*/
|
|
302
|
+
readonly start?: string;
|
|
303
|
+
/**
|
|
304
|
+
* The end of the time range to use for each widget independently from those of the dashboard.
|
|
305
|
+
* If you specify a value for end, you must also specify a value for start.
|
|
306
|
+
* Specify an absolute time in the ISO 8601 format. For example, 2018-12-17T06:00:00.000Z.
|
|
307
|
+
*
|
|
308
|
+
* @default When the dashboard loads, the end date will be the current time.
|
|
309
|
+
*/
|
|
310
|
+
readonly end?: string;
|
|
311
|
+
}
|
|
312
|
+
/**
|
|
313
|
+
* A dashboard widget that displays metrics
|
|
314
|
+
*/
|
|
315
|
+
export declare class GraphWidget extends ConcreteWidget {
|
|
316
|
+
private static readonly ISO8601_REGEX;
|
|
317
|
+
private static isIso8601;
|
|
318
|
+
private readonly props;
|
|
319
|
+
private readonly leftMetrics;
|
|
320
|
+
private readonly rightMetrics;
|
|
321
|
+
constructor(scope: Construct, props: GraphWidgetProps);
|
|
322
|
+
/**
|
|
323
|
+
* Add another metric to the left Y axis of the GraphWidget
|
|
324
|
+
*
|
|
325
|
+
* @param metric the metric to add
|
|
326
|
+
*/
|
|
327
|
+
addLeftMetric(metric: IMetric): void;
|
|
328
|
+
/**
|
|
329
|
+
* Add another metric to the right Y axis of the GraphWidget
|
|
330
|
+
*
|
|
331
|
+
* @param metric the metric to add
|
|
332
|
+
*/
|
|
333
|
+
addRightMetric(metric: IMetric): void;
|
|
334
|
+
toJson(): any[];
|
|
335
|
+
}
|
|
336
|
+
/**
|
|
337
|
+
* Layout for TableWidget
|
|
338
|
+
*/
|
|
339
|
+
export declare enum TableLayout {
|
|
340
|
+
/**
|
|
341
|
+
* Data points are laid out in columns
|
|
342
|
+
*/
|
|
343
|
+
HORIZONTAL = "horizontal",
|
|
344
|
+
/**
|
|
345
|
+
* Data points are laid out in rows
|
|
346
|
+
*/
|
|
347
|
+
VERTICAL = "vertical"
|
|
348
|
+
}
|
|
349
|
+
/**
|
|
350
|
+
* Standard table summary columns
|
|
351
|
+
*/
|
|
352
|
+
export declare enum TableSummaryColumn {
|
|
353
|
+
/**
|
|
354
|
+
* Minimum of all data points
|
|
355
|
+
*/
|
|
356
|
+
MINIMUM = "MIN",
|
|
357
|
+
/**
|
|
358
|
+
* Maximum of all data points
|
|
359
|
+
*/
|
|
360
|
+
MAXIMUM = "MAX",
|
|
361
|
+
/**
|
|
362
|
+
* Sum of all data points
|
|
363
|
+
*/
|
|
364
|
+
SUM = "SUM",
|
|
365
|
+
/**
|
|
366
|
+
* Average of all data points
|
|
367
|
+
*/
|
|
368
|
+
AVERAGE = "AVG"
|
|
369
|
+
}
|
|
370
|
+
/**
|
|
371
|
+
* Properties for TableWidget's summary columns
|
|
372
|
+
*/
|
|
373
|
+
export interface TableSummaryProps {
|
|
374
|
+
/**
|
|
375
|
+
* Summary columns
|
|
376
|
+
*
|
|
377
|
+
* @default - No summary columns will be shown
|
|
378
|
+
*/
|
|
379
|
+
readonly columns?: TableSummaryColumn[];
|
|
380
|
+
/**
|
|
381
|
+
* Make the summary columns sticky, so that they remain in view while scrolling
|
|
382
|
+
*
|
|
383
|
+
* @default - false
|
|
384
|
+
*/
|
|
385
|
+
readonly sticky?: boolean;
|
|
386
|
+
/**
|
|
387
|
+
* Prevent the columns of datapoints from being displayed, so that only the label and summary columns are displayed
|
|
388
|
+
*
|
|
389
|
+
* @default - false
|
|
390
|
+
*/
|
|
391
|
+
readonly hideNonSummaryColumns?: boolean;
|
|
392
|
+
}
|
|
393
|
+
/**
|
|
394
|
+
* Thresholds for highlighting cells in TableWidget
|
|
395
|
+
*/
|
|
396
|
+
export declare class TableThreshold {
|
|
397
|
+
/**
|
|
398
|
+
* A threshold for highlighting and coloring cells above the specified value
|
|
399
|
+
*
|
|
400
|
+
* @param value lower bound of threshold range
|
|
401
|
+
* @param color cell color for values within threshold range
|
|
402
|
+
*/
|
|
403
|
+
static above(value: number, color?: string): TableThreshold;
|
|
404
|
+
/**
|
|
405
|
+
* A threshold for highlighting and coloring cells below the specified value
|
|
406
|
+
*
|
|
407
|
+
* @param value upper bound of threshold range
|
|
408
|
+
* @param color cell color for values within threshold range
|
|
409
|
+
*/
|
|
410
|
+
static below(value: number, color?: string): TableThreshold;
|
|
411
|
+
/**
|
|
412
|
+
* A threshold for highlighting and coloring cells within the specified values
|
|
413
|
+
*
|
|
414
|
+
* @param lowerBound lower bound of threshold range
|
|
415
|
+
* @param upperBound upper bound of threshold range
|
|
416
|
+
* @param color cell color for values within threshold range
|
|
417
|
+
*/
|
|
418
|
+
static between(lowerBound: number, upperBound: number, color?: string): TableThreshold;
|
|
419
|
+
private readonly lowerBound;
|
|
420
|
+
private readonly upperBound?;
|
|
421
|
+
private readonly color?;
|
|
422
|
+
private readonly comparator?;
|
|
423
|
+
private constructor();
|
|
424
|
+
toJson(): any;
|
|
425
|
+
}
|
|
426
|
+
/**
|
|
427
|
+
* Properties for a TableWidget
|
|
428
|
+
*/
|
|
429
|
+
export interface TableWidgetProps extends MetricWidgetProps {
|
|
430
|
+
/**
|
|
431
|
+
* Table layout
|
|
432
|
+
*
|
|
433
|
+
* @default - TableLayout.HORIZONTAL
|
|
434
|
+
*/
|
|
435
|
+
readonly layout?: TableLayout;
|
|
436
|
+
/**
|
|
437
|
+
* Properties for displaying summary columns
|
|
438
|
+
*
|
|
439
|
+
* @default - no summary columns are shown
|
|
440
|
+
*/
|
|
441
|
+
readonly summary?: TableSummaryProps;
|
|
442
|
+
/**
|
|
443
|
+
* Thresholds for highlighting table cells
|
|
444
|
+
*
|
|
445
|
+
* @default - No thresholds
|
|
446
|
+
*/
|
|
447
|
+
readonly thresholds?: TableThreshold[];
|
|
448
|
+
/**
|
|
449
|
+
* Show the metrics units in the label column
|
|
450
|
+
*
|
|
451
|
+
* @default - false
|
|
452
|
+
*/
|
|
453
|
+
readonly showUnitsInLabel?: boolean;
|
|
454
|
+
/**
|
|
455
|
+
* Metrics to display in the table
|
|
456
|
+
*
|
|
457
|
+
* @default - No metrics
|
|
458
|
+
*/
|
|
459
|
+
readonly metrics?: IMetric[];
|
|
460
|
+
/**
|
|
461
|
+
* Whether the graph should show live data
|
|
462
|
+
*
|
|
463
|
+
* @default false
|
|
464
|
+
*/
|
|
465
|
+
readonly liveData?: boolean;
|
|
466
|
+
/**
|
|
467
|
+
* Whether to show as many digits as can fit, before rounding.
|
|
468
|
+
*
|
|
469
|
+
* @default false
|
|
470
|
+
*/
|
|
471
|
+
readonly fullPrecision?: boolean;
|
|
472
|
+
/**
|
|
473
|
+
* Whether to show the value from the entire time range. Only applicable for Bar and Pie charts.
|
|
474
|
+
*
|
|
475
|
+
* If false, values will be from the most recent period of your chosen time range;
|
|
476
|
+
* if true, shows the value from the entire time range.
|
|
477
|
+
*
|
|
478
|
+
* @default false
|
|
479
|
+
*/
|
|
480
|
+
readonly setPeriodToTimeRange?: boolean;
|
|
481
|
+
/**
|
|
482
|
+
* The default period for all metrics in this widget.
|
|
483
|
+
* The period is the length of time represented by one data point on the graph.
|
|
484
|
+
* This default can be overridden within each metric definition.
|
|
485
|
+
*
|
|
486
|
+
* @default Duration.seconds(300)
|
|
487
|
+
*/
|
|
488
|
+
readonly period?: Duration;
|
|
489
|
+
/**
|
|
490
|
+
* The default statistic to be displayed for each metric.
|
|
491
|
+
* This default can be overridden within the definition of each individual metric
|
|
492
|
+
*
|
|
493
|
+
* @default - The statistic for each metric is used
|
|
494
|
+
*/
|
|
495
|
+
readonly statistic?: string;
|
|
496
|
+
/**
|
|
497
|
+
* The start of the time range to use for each widget independently from those of the dashboard.
|
|
498
|
+
* You can specify start without specifying end to specify a relative time range that ends with the current time.
|
|
499
|
+
* In this case, the value of start must begin with -P, and you can use M, H, D, W and M as abbreviations for
|
|
500
|
+
* minutes, hours, days, weeks and months. For example, -PT8H shows the last 8 hours and -P3M shows the last three months.
|
|
501
|
+
* You can also use start along with an end field, to specify an absolute time range.
|
|
502
|
+
* When specifying an absolute time range, use the ISO 8601 format. For example, 2018-12-17T06:00:00.000Z.
|
|
503
|
+
*
|
|
504
|
+
* @default When the dashboard loads, the start time will be the default time range.
|
|
505
|
+
*/
|
|
506
|
+
readonly start?: string;
|
|
507
|
+
/**
|
|
508
|
+
* The end of the time range to use for each widget independently from those of the dashboard.
|
|
509
|
+
* If you specify a value for end, you must also specify a value for start.
|
|
510
|
+
* Specify an absolute time in the ISO 8601 format. For example, 2018-12-17T06:00:00.000Z.
|
|
511
|
+
*
|
|
512
|
+
* @default When the dashboard loads, the end date will be the current time.
|
|
513
|
+
*/
|
|
514
|
+
readonly end?: string;
|
|
515
|
+
}
|
|
516
|
+
/**
|
|
517
|
+
* A dashboard widget that displays metrics
|
|
518
|
+
*/
|
|
519
|
+
export declare class TableWidget extends ConcreteWidget {
|
|
520
|
+
private readonly props;
|
|
521
|
+
private readonly metrics;
|
|
522
|
+
constructor(scope: Construct, props: TableWidgetProps);
|
|
523
|
+
/**
|
|
524
|
+
* Add another metric
|
|
525
|
+
*
|
|
526
|
+
* @param metric the metric to add
|
|
527
|
+
*/
|
|
528
|
+
addMetric(metric: IMetric): void;
|
|
529
|
+
toJson(): any[];
|
|
530
|
+
}
|
|
531
|
+
/**
|
|
532
|
+
* Properties for a SingleValueWidget
|
|
533
|
+
*/
|
|
534
|
+
export interface SingleValueWidgetProps extends MetricWidgetProps {
|
|
535
|
+
/**
|
|
536
|
+
* Metrics to display
|
|
537
|
+
*/
|
|
538
|
+
readonly metrics: IMetric[];
|
|
539
|
+
/**
|
|
540
|
+
* The default period for all metrics in this widget.
|
|
541
|
+
* The period is the length of time represented by one data point on the graph.
|
|
542
|
+
* This default can be overridden within each metric definition.
|
|
543
|
+
*
|
|
544
|
+
* @default Duration.seconds(300)
|
|
545
|
+
*/
|
|
546
|
+
readonly period?: Duration;
|
|
547
|
+
/**
|
|
548
|
+
* Whether to show the value from the entire time range.
|
|
549
|
+
*
|
|
550
|
+
* @default false
|
|
551
|
+
*/
|
|
552
|
+
readonly setPeriodToTimeRange?: boolean;
|
|
553
|
+
/**
|
|
554
|
+
* Whether to show as many digits as can fit, before rounding.
|
|
555
|
+
*
|
|
556
|
+
* @default false
|
|
557
|
+
*/
|
|
558
|
+
readonly fullPrecision?: boolean;
|
|
559
|
+
/**
|
|
560
|
+
* Whether to show a graph below the value illustrating the value for the whole time range.
|
|
561
|
+
* Cannot be used in combination with `setPeriodToTimeRange`
|
|
562
|
+
*
|
|
563
|
+
* @default false
|
|
564
|
+
*/
|
|
565
|
+
readonly sparkline?: boolean;
|
|
566
|
+
/**
|
|
567
|
+
* The start of the time range to use for each widget independently from those of the dashboard.
|
|
568
|
+
* You can specify start without specifying end to specify a relative time range that ends with the current time.
|
|
569
|
+
* In this case, the value of start must begin with -P, and you can use M, H, D, W and M as abbreviations for
|
|
570
|
+
* minutes, hours, days, weeks and months. For example, -PT8H shows the last 8 hours and -P3M shows the last three months.
|
|
571
|
+
* You can also use start along with an end field, to specify an absolute time range.
|
|
572
|
+
* When specifying an absolute time range, use the ISO 8601 format. For example, 2018-12-17T06:00:00.000Z.
|
|
573
|
+
*
|
|
574
|
+
* @default When the dashboard loads, the start time will be the default time range.
|
|
575
|
+
*/
|
|
576
|
+
readonly start?: string;
|
|
577
|
+
/**
|
|
578
|
+
* The end of the time range to use for each widget independently from those of the dashboard.
|
|
579
|
+
* If you specify a value for end, you must also specify a value for start.
|
|
580
|
+
* Specify an absolute time in the ISO 8601 format. For example, 2018-12-17T06:00:00.000Z.
|
|
581
|
+
*
|
|
582
|
+
* @default When the dashboard loads, the end date will be the current time.
|
|
583
|
+
*/
|
|
584
|
+
readonly end?: string;
|
|
585
|
+
}
|
|
586
|
+
/**
|
|
587
|
+
* A dashboard widget that displays the most recent value for every metric
|
|
588
|
+
*/
|
|
589
|
+
export declare class SingleValueWidget extends ConcreteWidget {
|
|
590
|
+
private readonly props;
|
|
591
|
+
constructor(scope: Construct, props: SingleValueWidgetProps);
|
|
592
|
+
toJson(): any[];
|
|
593
|
+
}
|
|
594
|
+
/**
|
|
595
|
+
* The properties for a CustomWidget
|
|
596
|
+
*/
|
|
597
|
+
export interface CustomWidgetProps {
|
|
598
|
+
/**
|
|
599
|
+
* The Arn of the AWS Lambda function that returns HTML or JSON that will be displayed in the widget
|
|
600
|
+
*/
|
|
601
|
+
readonly functionArn: string;
|
|
602
|
+
/**
|
|
603
|
+
* Width of the widget, in a grid of 24 units wide
|
|
604
|
+
*
|
|
605
|
+
* @default 6
|
|
606
|
+
*/
|
|
607
|
+
readonly width?: number;
|
|
608
|
+
/**
|
|
609
|
+
* Height of the widget
|
|
610
|
+
*
|
|
611
|
+
* @default - 6 for Alarm and Graph widgets.
|
|
612
|
+
* 3 for single value widgets where most recent value of a metric is displayed.
|
|
613
|
+
*/
|
|
614
|
+
readonly height?: number;
|
|
615
|
+
/**
|
|
616
|
+
* The title of the widget
|
|
617
|
+
*/
|
|
618
|
+
readonly title: string;
|
|
619
|
+
/**
|
|
620
|
+
* Update the widget on refresh
|
|
621
|
+
*
|
|
622
|
+
* @default true
|
|
623
|
+
*/
|
|
624
|
+
readonly updateOnRefresh?: boolean;
|
|
625
|
+
/**
|
|
626
|
+
* Update the widget on resize
|
|
627
|
+
*
|
|
628
|
+
* @default true
|
|
629
|
+
*/
|
|
630
|
+
readonly updateOnResize?: boolean;
|
|
631
|
+
/**
|
|
632
|
+
* Update the widget on time range change
|
|
633
|
+
*
|
|
634
|
+
* @default true
|
|
635
|
+
*/
|
|
636
|
+
readonly updateOnTimeRangeChange?: boolean;
|
|
637
|
+
/**
|
|
638
|
+
* Parameters passed to the lambda function
|
|
639
|
+
*
|
|
640
|
+
* @default - no parameters are passed to the lambda function
|
|
641
|
+
*/
|
|
642
|
+
readonly params?: any;
|
|
643
|
+
}
|
|
644
|
+
/**
|
|
645
|
+
* A CustomWidget shows the result of a AWS lambda function
|
|
646
|
+
*/
|
|
647
|
+
export declare class CustomWidget extends ConcreteWidget {
|
|
648
|
+
private readonly props;
|
|
649
|
+
constructor(scope: Construct, props: CustomWidgetProps);
|
|
650
|
+
toJson(): any[];
|
|
651
|
+
}
|
|
652
|
+
/**
|
|
653
|
+
* Horizontal annotation to be added to a graph
|
|
654
|
+
*/
|
|
655
|
+
export interface HorizontalAnnotation {
|
|
656
|
+
/**
|
|
657
|
+
* The value of the annotation
|
|
658
|
+
*/
|
|
659
|
+
readonly value: number;
|
|
660
|
+
/**
|
|
661
|
+
* Label for the annotation
|
|
662
|
+
*
|
|
663
|
+
* @default - No label
|
|
664
|
+
*/
|
|
665
|
+
readonly label?: string;
|
|
666
|
+
/**
|
|
667
|
+
* The hex color code, prefixed with '#' (e.g. '#00ff00'), to be used for the annotation.
|
|
668
|
+
* The `Color` class has a set of standard colors that can be used here.
|
|
669
|
+
*
|
|
670
|
+
* @default - Automatic color
|
|
671
|
+
*/
|
|
672
|
+
readonly color?: string;
|
|
673
|
+
/**
|
|
674
|
+
* Add shading above or below the annotation
|
|
675
|
+
*
|
|
676
|
+
* @default No shading
|
|
677
|
+
*/
|
|
678
|
+
readonly fill?: Shading;
|
|
679
|
+
/**
|
|
680
|
+
* Whether the annotation is visible
|
|
681
|
+
*
|
|
682
|
+
* @default true
|
|
683
|
+
*/
|
|
684
|
+
readonly visible?: boolean;
|
|
685
|
+
}
|
|
686
|
+
/**
|
|
687
|
+
* Vertical annotation to be added to a graph
|
|
688
|
+
*/
|
|
689
|
+
export interface VerticalAnnotation {
|
|
690
|
+
/**
|
|
691
|
+
* The date and time (in ISO 8601 format) in the graph where the vertical annotation line is to appear
|
|
692
|
+
*/
|
|
693
|
+
readonly date: string;
|
|
694
|
+
/**
|
|
695
|
+
* Label for the annotation
|
|
696
|
+
*
|
|
697
|
+
* @default - No label
|
|
698
|
+
*/
|
|
699
|
+
readonly label?: string;
|
|
700
|
+
/**
|
|
701
|
+
* The hex color code, prefixed with '#' (e.g. '#00ff00'), to be used for the annotation.
|
|
702
|
+
* The `Color` class has a set of standard colors that can be used here.
|
|
703
|
+
*
|
|
704
|
+
* @default - Automatic color
|
|
705
|
+
*/
|
|
706
|
+
readonly color?: string;
|
|
707
|
+
/**
|
|
708
|
+
* Add shading before or after the annotation
|
|
709
|
+
*
|
|
710
|
+
* @default No shading
|
|
711
|
+
*/
|
|
712
|
+
readonly fill?: VerticalShading;
|
|
713
|
+
/**
|
|
714
|
+
* Whether the annotation is visible
|
|
715
|
+
*
|
|
716
|
+
* @default true
|
|
717
|
+
*/
|
|
718
|
+
readonly visible?: boolean;
|
|
719
|
+
}
|
|
720
|
+
/**
|
|
721
|
+
* Fill shading options that will be used with a horizontal annotation
|
|
722
|
+
*/
|
|
723
|
+
export declare enum Shading {
|
|
724
|
+
/**
|
|
725
|
+
* Don't add shading
|
|
726
|
+
*/
|
|
727
|
+
NONE = "none",
|
|
728
|
+
/**
|
|
729
|
+
* Add shading above the annotation
|
|
730
|
+
*/
|
|
731
|
+
ABOVE = "above",
|
|
732
|
+
/**
|
|
733
|
+
* Add shading below the annotation
|
|
734
|
+
*/
|
|
735
|
+
BELOW = "below"
|
|
736
|
+
}
|
|
737
|
+
/**
|
|
738
|
+
* Fill shading options that will be used with a vertical annotation
|
|
739
|
+
*/
|
|
740
|
+
export declare enum VerticalShading {
|
|
741
|
+
/**
|
|
742
|
+
* Don't add shading
|
|
743
|
+
*/
|
|
744
|
+
NONE = "none",
|
|
745
|
+
/**
|
|
746
|
+
* Add shading before the annotation
|
|
747
|
+
*/
|
|
748
|
+
BEFORE = "before",
|
|
749
|
+
/**
|
|
750
|
+
* Add shading after the annotation
|
|
751
|
+
*/
|
|
752
|
+
AFTER = "after"
|
|
753
|
+
}
|
|
754
|
+
/**
|
|
755
|
+
* A set of standard colours that can be used in annotations in a GraphWidget.
|
|
756
|
+
*/
|
|
757
|
+
export declare class Color {
|
|
758
|
+
/** blue - hex #1f77b4 */
|
|
759
|
+
static readonly BLUE = "#1f77b4";
|
|
760
|
+
/** brown - hex #8c564b */
|
|
761
|
+
static readonly BROWN = "#8c564b";
|
|
762
|
+
/** green - hex #2ca02c */
|
|
763
|
+
static readonly GREEN = "#2ca02c";
|
|
764
|
+
/** grey - hex #7f7f7f */
|
|
765
|
+
static readonly GREY = "#7f7f7f";
|
|
766
|
+
/** orange - hex #ff7f0e */
|
|
767
|
+
static readonly ORANGE = "#ff7f0e";
|
|
768
|
+
/** pink - hex #e377c2 */
|
|
769
|
+
static readonly PINK = "#e377c2";
|
|
770
|
+
/** purple - hex #9467bd */
|
|
771
|
+
static readonly PURPLE = "#9467bd";
|
|
772
|
+
/** red - hex #d62728 */
|
|
773
|
+
static readonly RED = "#d62728";
|
|
774
|
+
private constructor();
|
|
775
|
+
}
|
|
776
|
+
/**
|
|
777
|
+
* The position of the legend on a GraphWidget.
|
|
778
|
+
*/
|
|
779
|
+
export declare enum LegendPosition {
|
|
780
|
+
/**
|
|
781
|
+
* Legend appears below the graph (default).
|
|
782
|
+
*/
|
|
783
|
+
BOTTOM = "bottom",
|
|
784
|
+
/**
|
|
785
|
+
* Add shading above the annotation
|
|
786
|
+
*/
|
|
787
|
+
RIGHT = "right",
|
|
788
|
+
/**
|
|
789
|
+
* Add shading below the annotation
|
|
790
|
+
*/
|
|
791
|
+
HIDDEN = "hidden"
|
|
792
|
+
}
|