@cdktn/provider-schema 0.26.0-pre.20 → 0.26.0-pre.21

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.
Files changed (30) hide show
  1. package/build/provider-schema.d.ts.map +1 -1
  2. package/build/provider-schema.js +11 -16
  3. package/jest.config.js +0 -1
  4. package/package.json +5 -4
  5. package/build/__tests__/cache.test.d.ts +0 -2
  6. package/build/__tests__/cache.test.d.ts.map +0 -1
  7. package/build/__tests__/cache.test.js +0 -87
  8. package/build/__tests__/emission-check.test.d.ts +0 -2
  9. package/build/__tests__/emission-check.test.d.ts.map +0 -1
  10. package/build/__tests__/emission-check.test.js +0 -96
  11. package/build/__tests__/provider-schema.test.d.ts +0 -2
  12. package/build/__tests__/provider-schema.test.d.ts.map +0 -1
  13. package/build/__tests__/provider-schema.test.js +0 -272
  14. package/build/__tests__/provider-schema.unit.test.d.ts +0 -2
  15. package/build/__tests__/provider-schema.unit.test.d.ts.map +0 -1
  16. package/build/__tests__/provider-schema.unit.test.js +0 -394
  17. package/build/__tests__/read-emission-gap-warning.unit.test.d.ts +0 -2
  18. package/build/__tests__/read-emission-gap-warning.unit.test.d.ts.map +0 -1
  19. package/build/__tests__/read-emission-gap-warning.unit.test.js +0 -90
  20. package/build/__tests__/warn-schema-emission-gaps.unit.test.d.ts +0 -2
  21. package/build/__tests__/warn-schema-emission-gaps.unit.test.d.ts.map +0 -1
  22. package/build/__tests__/warn-schema-emission-gaps.unit.test.js +0 -55
  23. package/src/__tests__/__snapshots__/provider-schema.test.ts.snap +0 -972
  24. package/src/__tests__/fixtures/local-json-module/module.tf.json +0 -17
  25. package/src/__tests__/fixtures/local-json-module-provider-aliases/module.tf.json +0 -21
  26. package/src/__tests__/fixtures/local-mixed-module-provider-aliases/aliases.tf.json +0 -10
  27. package/src/__tests__/fixtures/local-mixed-module-provider-aliases/module.tf +0 -22
  28. package/src/__tests__/fixtures/local-module/module.tf +0 -33
  29. package/src/__tests__/fixtures/local-module-inline-comments/module.tf +0 -22
  30. package/src/__tests__/fixtures/local-module-provider-aliases/module.tf +0 -24
@@ -1,17 +0,0 @@
1
- {
2
- "output": {
3
- "uri": {
4
- "value": "${digitalocean_app.static_site}"
5
- }
6
- },
7
- "variable": {
8
- "name": {
9
- "default": "module",
10
- "description": "Name of the DigitalOcean static site"
11
- },
12
- "region": {
13
- "default": "ams",
14
- "description": "Region to deploy the app to"
15
- }
16
- }
17
- }
@@ -1,21 +0,0 @@
1
- {
2
- "terraform": {
3
- "required_providers": {
4
- "null": {
5
- "source": "hashicorp/null",
6
- "configuration_aliases": ["null.extra"]
7
- }
8
- }
9
- },
10
- "variable": {
11
- "name": {
12
- "default": "module",
13
- "description": "Name of the DigitalOcean static site"
14
- }
15
- },
16
- "output": {
17
- "uri": {
18
- "value": "${digitalocean_app.static_site}"
19
- }
20
- }
21
- }
@@ -1,10 +0,0 @@
1
- {
2
- "terraform": {
3
- "required_providers": {
4
- "null": {
5
- "source": "hashicorp/null",
6
- "configuration_aliases": ["null.extra"]
7
- }
8
- }
9
- }
10
- }
@@ -1,22 +0,0 @@
1
- # Copyright (c) HashiCorp, Inc.
2
- # SPDX-License-Identifier: MPL-2.0
3
-
4
- # One half of a module that spreads its terraform settings across .tf and
5
- # .tf.json files. Terraform allows several terraform blocks but only one
6
- # required_providers configuration, so the provider requirements live in the
7
- # .tf.json half - which hcl2json merges into a shape that hides them from a
8
- # plain walk over the parsed terraform blocks.
9
-
10
- terraform {
11
- required_version = ">= 1.0"
12
- }
13
-
14
- variable "bucket_name" {
15
- description = "Name of the s3 bucket. Must be unique."
16
- type = string
17
- }
18
-
19
- output "arn" {
20
- description = "ARN of the bucket"
21
- value = aws_s3_bucket.s3_bucket.arn
22
- }
@@ -1,33 +0,0 @@
1
- # Copyright (c) HashiCorp, Inc.
2
- # SPDX-License-Identifier: MPL-2.0
3
-
4
- # https://learn.hashicorp.com/tutorials/terraform/module-create
5
-
6
- # Input variable definitions
7
-
8
- variable "bucket_name" {
9
- description = "Name of the s3 bucket. Must be unique."
10
- type = string
11
- }
12
-
13
- variable "tags" {
14
- description = "Tags to set on the bucket."
15
- type = map(string)
16
- default = {}
17
- }
18
- # Output variable definitions
19
-
20
- output "arn" {
21
- description = "ARN of the bucket"
22
- value = aws_s3_bucket.s3_bucket.arn
23
- }
24
-
25
- output "name" {
26
- description = "Name (id) of the bucket"
27
- value = aws_s3_bucket.s3_bucket.id
28
- }
29
-
30
- output "domain" {
31
- description = "Domain name of the bucket"
32
- value = aws_s3_bucket_website_configuration.s3_bucket.website_domain
33
- }
@@ -1,22 +0,0 @@
1
- # Copyright (c) HashiCorp, Inc.
2
- # SPDX-License-Identifier: MPL-2.0
3
-
4
- variable "iam_policy_statements" {
5
- description = "A list of IAM policy statements"
6
- type = list(object({ # TODO - change to map(object({...})) in next major version
7
- sid = optional(string)
8
- actions = optional(list(string))
9
- effect = optional(string)
10
- resources = optional(list(string))
11
- }))
12
- default = null
13
- }
14
-
15
- variable "name" {
16
- description = "The name"
17
- type = string
18
- }
19
-
20
- output "result" {
21
- value = "result"
22
- }
@@ -1,24 +0,0 @@
1
- # Copyright (c) HashiCorp, Inc.
2
- # SPDX-License-Identifier: MPL-2.0
3
-
4
- # A module that expects its caller to hand it extra provider configurations,
5
- # the way multi-region AWS modules do.
6
-
7
- terraform {
8
- required_providers {
9
- aws = {
10
- source = "hashicorp/aws"
11
- configuration_aliases = [aws.global_region, aws.secondary_region]
12
- }
13
- }
14
- }
15
-
16
- variable "bucket_name" {
17
- description = "Name of the s3 bucket. Must be unique."
18
- type = string
19
- }
20
-
21
- output "arn" {
22
- description = "ARN of the bucket"
23
- value = aws_s3_bucket.s3_bucket.arn
24
- }