Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix typo in aws certifacate iterator key #3592

Merged
merged 1 commit into from
Apr 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/csharp/documentation/IteratorStack.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public IteratorStack(Construct scope, string name) : base(scope, name)
ForEach = exampleForEachIterator,
AllowOverwrite = true,
Name = exampleForEachIterator.GetString("resource_record_name"),
Records = new string[] { exampleForEachIterator.GetString("resource_record_record") },
Records = new string[] { exampleForEachIterator.GetString("resource_record_value") },
Ttl = 60,
Type = exampleForEachIterator.GetString("resource_record_type"),
ZoneId = dataAwsRoute53ZoneExample.ZoneId
Expand Down
2 changes: 1 addition & 1 deletion examples/go/documentation/iterators.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func NewIteratorsStack(scope constructs.Construct, name string) cdktf.TerraformS
ForEach: exampleForEachIterator,
AllowOverwrite: jsii.Bool(true),
Name: exampleForEachIterator.GetString(jsii.String("resource_record_name")),
Records: jsii.Strings(*exampleForEachIterator.GetString(jsii.String("resource_record_record"))),
Records: jsii.Strings(*exampleForEachIterator.GetString(jsii.String("resource_record_value"))),
Ttl: jsii.Number(60),
Type: exampleForEachIterator.GetString(jsii.String("resource_record_type")),
ZoneId: dataAwsRoute53ZoneExample.ZoneId(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public MainIterator2(Construct scope, String id) {
.domainName("example.com")
.validationMethod("DNS")
.build());

DataAwsRoute53Zone dataAwsRoute53ZoneExample = new DataAwsRoute53Zone(this, "dns_zone", DataAwsRoute53ZoneConfig.builder()
.name("example.com")
.privateZone(false)
Expand All @@ -69,7 +69,7 @@ public MainIterator2(Construct scope, String id) {
.forEach(exampleForEachIterator)
.allowOverwrite(true)
.name(exampleForEachIterator.getString("resource_record_name"))
.records(Arrays.asList(exampleForEachIterator.getString("resource_record_record")))
.records(Arrays.asList(exampleForEachIterator.getString("resource_record_value")))
.ttl(60)
.type(exampleForEachIterator.getString("resource_record_type"))
.zoneId(dataAwsRoute53ZoneExample.getZoneId())
Expand Down Expand Up @@ -117,7 +117,7 @@ public MainIterator2(Construct scope, String id) {
.bucket(s3BucketConfigurationIterator.getString("name"))
.tags(s3BucketConfigurationIterator.getStringMap("tags"))
.build());

TerraformAsset asset = new TerraformAsset(this, "help", TerraformAssetConfig.builder()
.path(Paths.get(System.getProperty("user.dir"), "help").toString())
.build()
Expand Down
2 changes: 1 addition & 1 deletion examples/python/documentation/iterators.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def __init__(self, scope: Construct, id: str):
name=example_for_each_iterator.get_string(
"resource_record_name"),
records=[
example_for_each_iterator.get_string("resource_record_record")],
example_for_each_iterator.get_string("resource_record_value")],
ttl=60,
type=example_for_each_iterator.get_string(
"resource_record_type"),
Expand Down
2 changes: 1 addition & 1 deletion examples/typescript/documentation/iterators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export class IteratorsStack extends TerraformStack {
forEach: exampleForEachIterator,
allowOverwrite: true,
name: exampleForEachIterator.getString("resource_record_name"),
records: [exampleForEachIterator.getString("resource_record_record")],
records: [exampleForEachIterator.getString("resource_record_value")],
ttl: 60,
type: exampleForEachIterator.getString("resource_record_type"),
zoneId: dataAwsRoute53ZoneExample.zoneId,
Expand Down
83 changes: 45 additions & 38 deletions tools/documentation-generation/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
# yarn lockfile v1


"@jsii/check-node@1.93.0":
version "1.93.0"
resolved "https://registry.yarnpkg.com/@jsii/check-node/-/check-node-1.93.0.tgz#3adcc6012654bb69fb8dc508e757b83ea9cd1708"
integrity sha512-NLn1Js6wEG2hYjH7gE5Q8s/hPlp3I+KhK/T8ykGdYVod7iODnk/0QVSZsk2iEyuw8NzvvgXUDBWreadUIWSz+g==
"@jsii/check-node@1.97.0":
version "1.97.0"
resolved "https://registry.yarnpkg.com/@jsii/check-node/-/check-node-1.97.0.tgz#aeeb3fd1a9f4d5c7a2f24faeb106f31e6015cc4f"
integrity sha512-n7t4p2JNyr6iBkAv/+9pDPU6hV/sa3Kqdp6oPw5v4/TqNyopGSGtxyOtNXtsBcN6zMibAVXmvhzZA+OBaX1FiQ==
dependencies:
chalk "^4.1.2"
semver "^7.5.4"

"@jsii/spec@^1.93.0":
version "1.93.0"
resolved "https://registry.yarnpkg.com/@jsii/spec/-/spec-1.93.0.tgz#e56c5971efbd349592de86081b3cbfd04fc0bb77"
integrity sha512-PIXcTHUsFOoxSE7KMpJ3iJ3iYGSo2x46ZX4bHDDD6C7M3ij+7Z3Ujumg/OsIrESCHKWXGXlgl9EmkNJraeYkRQ==
"@jsii/spec@^1.97.0":
version "1.97.0"
resolved "https://registry.yarnpkg.com/@jsii/spec/-/spec-1.97.0.tgz#951109ad43bdd7c1ea2de96a74e4fa645bd9a413"
integrity sha512-5YIq1fgOtToH6eUyTNlqAXuZzUzTD6wBukE7m5DpsxHjQlbR7TVP750FcPqH9qCitCwaePPl5IdCZJ/AS0IwEA==
dependencies:
ajv "^8.12.0"

Expand Down Expand Up @@ -69,10 +69,10 @@ archiver-utils@^4.0.1:
normalize-path "^3.0.0"
readable-stream "^3.6.0"

[email protected].1:
version "6.0.1"
resolved "https://registry.npmjs.org/archiver/-/archiver-6.0.1.tgz#d56968d4c09df309435adb5a1bbfc370dae48133"
integrity sha512-CXGy4poOLBKptiZH//VlWdFuUC1RESbdZjGjILwBuZ73P7WkAUN0htfSfBq/7k6FRFlpu7bg4JOkj1vU9G6jcQ==
[email protected].2:
version "6.0.2"
resolved "https://registry.yarnpkg.com/archiver/-/archiver-6.0.2.tgz#f45e7598dfe48e834ac8c7a0c37033f826f5a639"
integrity sha512-UQ/2nW7NMl1G+1UnrLypQw1VdT9XZg/ECcKPq7l+STzStrSivFIXIp34D8M5zeNGW5NoOupdYCHv6VySCPNNlw==
dependencies:
archiver-utils "^4.0.1"
async "^3.2.4"
Expand Down Expand Up @@ -126,9 +126,9 @@ case@^1.6.3:
"cdktf@file:../../packages/cdktf":
version "0.0.0"
dependencies:
archiver "6.0.1"
json-stable-stringify "1.1.0"
semver "7.5.4"
archiver "6.0.2"
json-stable-stringify "1.1.1"
semver "7.6.0"

chalk@^4, chalk@^4.1.2:
version "4.1.2"
Expand Down Expand Up @@ -342,41 +342,41 @@ isarray@~1.0.0:
resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11"
integrity sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==

jsii-docgen@^10.3.3:
version "10.3.3"
resolved "https://registry.yarnpkg.com/jsii-docgen/-/jsii-docgen-10.3.3.tgz#69c6e5e9510ea835b6372e03e236f8ebe66574dc"
integrity sha512-BG52Tq8+t6w8vTYHszC88L1iJiiNJDyTME5V+ZTVkm2U+EVkMLk3Cm3ynL/ZNj7+0f32sQPqwKGJJOVaasaZMw==
jsii-docgen@^10.3.23:
version "10.4.1"
resolved "https://registry.yarnpkg.com/jsii-docgen/-/jsii-docgen-10.4.1.tgz#e3ecfef4bddaa617a0f5ab4e23f90fef7198166e"
integrity sha512-y0S2GdvcKOghR/AdJUy58CWBn5UfvzM8MYCYB27SrbHRNPdJFiPhZiCFFQ9Ll4aCZsMEFfECf1qS9eS+1B3k/A==
dependencies:
"@jsii/spec" "^1.93.0"
"@jsii/spec" "^1.97.0"
case "^1.6.3"
fs-extra "^10.1.0"
glob "^8.1.0"
glob-promise "^6.0.5"
jsii-reflect "^1.93.0"
semver "^7.5.4"
jsii-reflect "^1.97.0"
semver "^7.6.0"
yargs "^16.2.0"

jsii-reflect@^1.93.0:
version "1.93.0"
resolved "https://registry.yarnpkg.com/jsii-reflect/-/jsii-reflect-1.93.0.tgz#5b2dcb964a25e5886b3d5d23020485d02630d301"
integrity sha512-obf74y7RFXFNfPmgJYMQoRVPeR40czub0MM+rKfyEape5+qqvTU1pyUN384kVzpEzUfFIRsFMWqfxrW4zqwuPQ==
jsii-reflect@^1.97.0:
version "1.97.0"
resolved "https://registry.yarnpkg.com/jsii-reflect/-/jsii-reflect-1.97.0.tgz#8a68dab8f6d418fc3669aba6ec56b06e5fac3de9"
integrity sha512-E1oV/kliliFiqR9TxX2H5jgUObtq300Jk0kXBJKq06A/kXQk1rmCIoxnV5VFAxyhnPkmhgudpUIuzWh6STUdJg==
dependencies:
"@jsii/check-node" "1.93.0"
"@jsii/spec" "^1.93.0"
"@jsii/check-node" "1.97.0"
"@jsii/spec" "^1.97.0"
chalk "^4"
fs-extra "^10.1.0"
oo-ascii-tree "^1.93.0"
oo-ascii-tree "^1.97.0"
yargs "^16.2.0"

json-schema-traverse@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz#ae7bcb3656ab77a73ba5c49bf654f38e6b6860e2"
integrity sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==

[email protected].0:
version "1.1.0"
resolved "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-1.1.0.tgz#43d39c7c8da34bfaf785a61a56808b0def9f747d"
integrity sha512-zfA+5SuwYN2VWqN1/5HZaDzQKLJHaBVMZIIM+wuYjdptkaQsqzDdqjqf+lZZJUuJq1aanHiY8LhH8LmH+qBYJA==
[email protected].1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/json-stable-stringify/-/json-stable-stringify-1.1.1.tgz#52d4361b47d49168bcc4e564189a42e5a7439454"
integrity sha512-SU/971Kt5qVQfJpyDveVhQ/vya+5hvrjClFOcr8c0Fq5aODJjMwutrOfCU+eCnVD5gpx1Q3fEqkyom77zH1iIg==
dependencies:
call-bind "^1.0.5"
isarray "^2.0.5"
Expand Down Expand Up @@ -447,10 +447,10 @@ once@^1.3.0:
dependencies:
wrappy "1"

oo-ascii-tree@^1.93.0:
version "1.93.0"
resolved "https://registry.yarnpkg.com/oo-ascii-tree/-/oo-ascii-tree-1.93.0.tgz#fbe47cd5d188353e6d4cc7cad8520ac790bd3ef4"
integrity sha512-zbmrGCL/UsvxV2WlnsSrqdkdxEggxH7eA1HOk+hmimLQu+eLO4Y3VGqwt0VK04Nfe6iG6GnzRL5/XjH0j1v8bQ==
oo-ascii-tree@^1.97.0:
version "1.97.0"
resolved "https://registry.yarnpkg.com/oo-ascii-tree/-/oo-ascii-tree-1.97.0.tgz#f9cb274f649a52046d234dec77f6b269df4320ae"
integrity sha512-LVwQ1J6icSJ2buccnLCWdDtxxTwB0HXoB7PLPap4u90T9pAs2HqE35DpV6nV/6O1aVEO4OzwDeE2gLCUCkoGWQ==

process-nextick-args@~2.0.0:
version "2.0.1"
Expand Down Expand Up @@ -516,7 +516,14 @@ safe-buffer@~5.2.0:
resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6"
integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==

[email protected], semver@^7.5.4:
[email protected], semver@^7.6.0:
version "7.6.0"
resolved "https://registry.yarnpkg.com/semver/-/semver-7.6.0.tgz#1a46a4db4bffcccd97b743b5005c8325f23d4e2d"
integrity sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==
dependencies:
lru-cache "^6.0.0"

semver@^7.5.4:
version "7.5.4"
resolved "https://registry.yarnpkg.com/semver/-/semver-7.5.4.tgz#483986ec4ed38e1c6c48c34894a9182dbff68a6e"
integrity sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==
Expand Down
10 changes: 5 additions & 5 deletions website/docs/cdktf/concepts/iterators.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ const records = new Route53Record(this, "record", {
forEach: exampleForEachIterator,
allowOverwrite: true,
name: exampleForEachIterator.getString("resource_record_name"),
records: [exampleForEachIterator.getString("resource_record_record")],
records: [exampleForEachIterator.getString("resource_record_value")],
ttl: 60,
type: exampleForEachIterator.getString("resource_record_type"),
zoneId: dataAwsRoute53ZoneExample.zoneId,
Expand Down Expand Up @@ -359,7 +359,7 @@ new AcmCertificateValidation(this, "validation", {
name=example_for_each_iterator.get_string(
"resource_record_name"),
records=[
example_for_each_iterator.get_string("resource_record_record")],
example_for_each_iterator.get_string("resource_record_value")],
ttl=60,
type=example_for_each_iterator.get_string(
"resource_record_type"),
Expand Down Expand Up @@ -397,7 +397,7 @@ new AcmCertificateValidation(this, "validation", {
.forEach(exampleForEachIterator)
.allowOverwrite(true)
.name(exampleForEachIterator.getString("resource_record_name"))
.records(Arrays.asList(exampleForEachIterator.getString("resource_record_record")))
.records(Arrays.asList(exampleForEachIterator.getString("resource_record_value")))
.ttl(60)
.type(exampleForEachIterator.getString("resource_record_type"))
.zoneId(dataAwsRoute53ZoneExample.getZoneId())
Expand Down Expand Up @@ -433,7 +433,7 @@ new AcmCertificateValidation(this, "validation", {
ForEach = exampleForEachIterator,
AllowOverwrite = true,
Name = exampleForEachIterator.GetString("resource_record_name"),
Records = new string[] { exampleForEachIterator.GetString("resource_record_record") },
Records = new string[] { exampleForEachIterator.GetString("resource_record_value") },
Ttl = 60,
Type = exampleForEachIterator.GetString("resource_record_type"),
ZoneId = dataAwsRoute53ZoneExample.ZoneId
Expand Down Expand Up @@ -465,7 +465,7 @@ records := route53record.NewRoute53Record(stack, jsii.String("record"), &route53
ForEach: exampleForEachIterator,
AllowOverwrite: jsii.Bool(true),
Name: exampleForEachIterator.GetString(jsii.String("resource_record_name")),
Records: jsii.Strings(*exampleForEachIterator.GetString(jsii.String("resource_record_record"))),
Records: jsii.Strings(*exampleForEachIterator.GetString(jsii.String("resource_record_value"))),
Ttl: jsii.Number(60),
Type: exampleForEachIterator.GetString(jsii.String("resource_record_type")),
ZoneId: dataAwsRoute53ZoneExample.ZoneId(),
Expand Down
Loading