diff --git a/examples/csharp/documentation/IteratorStack.cs b/examples/csharp/documentation/IteratorStack.cs index 9481591257..96385666ae 100644 --- a/examples/csharp/documentation/IteratorStack.cs +++ b/examples/csharp/documentation/IteratorStack.cs @@ -126,10 +126,10 @@ public IteratorStack(Construct scope, string name) : base(scope, name) { ForEach = exampleForEachIterator, AllowOverwrite = true, - Name = exampleForEachIterator.GetString("name"), - Records = new string[] { exampleForEachIterator.GetString("record") }, + Name = exampleForEachIterator.GetString("resource_record_name"), + Records = new string[] { exampleForEachIterator.GetString("resource_record_record") }, Ttl = 60, - Type = exampleForEachIterator.GetString("type"), + Type = exampleForEachIterator.GetString("resource_record_type"), ZoneId = dataAwsRoute53ZoneExample.ZoneId }); diff --git a/examples/go/documentation/iterators.go b/examples/go/documentation/iterators.go index 5b525266a2..d7f12d1106 100644 --- a/examples/go/documentation/iterators.go +++ b/examples/go/documentation/iterators.go @@ -121,10 +121,10 @@ func NewIteratorsStack(scope constructs.Construct, name string) cdktf.TerraformS records := route53record.NewRoute53Record(stack, jsii.String("record"), &route53record.Route53RecordConfig{ ForEach: exampleForEachIterator, AllowOverwrite: jsii.Bool(true), - Name: exampleForEachIterator.GetString(jsii.String("name")), - Records: jsii.Strings(*exampleForEachIterator.GetString(jsii.String("record"))), + Name: exampleForEachIterator.GetString(jsii.String("resource_record_name")), + Records: jsii.Strings(*exampleForEachIterator.GetString(jsii.String("resource_record_record"))), Ttl: jsii.Number(60), - Type: exampleForEachIterator.GetString(jsii.String("type")), + Type: exampleForEachIterator.GetString(jsii.String("resource_record_type")), ZoneId: dataAwsRoute53ZoneExample.ZoneId(), }) diff --git a/examples/java/documentation/src/main/java/com/mycompany/app/MainIterator2.java b/examples/java/documentation/src/main/java/com/mycompany/app/MainIterator2.java index a755f72cfd..ae40e8003d 100644 --- a/examples/java/documentation/src/main/java/com/mycompany/app/MainIterator2.java +++ b/examples/java/documentation/src/main/java/com/mycompany/app/MainIterator2.java @@ -68,10 +68,10 @@ public MainIterator2(Construct scope, String id) { Route53Record records = new Route53Record(this, "record", Route53RecordConfig.builder() .forEach(exampleForEachIterator) .allowOverwrite(true) - .name(exampleForEachIterator.getString("name")) - .records(Arrays.asList(exampleForEachIterator.getString("record"))) + .name(exampleForEachIterator.getString("resource_record_name")) + .records(Arrays.asList(exampleForEachIterator.getString("resource_record_record"))) .ttl(60) - .type(exampleForEachIterator.getString("type")) + .type(exampleForEachIterator.getString("resource_record_type")) .zoneId(dataAwsRoute53ZoneExample.getZoneId()) .build()); diff --git a/examples/python/documentation/iterators.py b/examples/python/documentation/iterators.py index 86ed7f2469..e44a9763e6 100644 --- a/examples/python/documentation/iterators.py +++ b/examples/python/documentation/iterators.py @@ -131,12 +131,12 @@ def __init__(self, scope: Construct, id: str): for_each=example_for_each_iterator, allow_overwrite=True, name=example_for_each_iterator.get_string( - "name"), + "resource_record_name"), records=[ - example_for_each_iterator.get_string("record")], + example_for_each_iterator.get_string("resource_record_record")], ttl=60, type=example_for_each_iterator.get_string( - "type"), + "resource_record_type"), zone_id=data_aws_route53_zone_example.zone_id, ) diff --git a/examples/typescript/documentation/iterators.ts b/examples/typescript/documentation/iterators.ts index a9cfe190fd..2a2cf02bb1 100644 --- a/examples/typescript/documentation/iterators.ts +++ b/examples/typescript/documentation/iterators.ts @@ -109,10 +109,10 @@ export class IteratorsStack extends TerraformStack { const records = new Route53Record(this, "record", { forEach: exampleForEachIterator, allowOverwrite: true, - name: exampleForEachIterator.getString("name"), - records: [exampleForEachIterator.getString("record")], + name: exampleForEachIterator.getString("resource_record_name"), + records: [exampleForEachIterator.getString("resource_record_record")], ttl: 60, - type: exampleForEachIterator.getString("type"), + type: exampleForEachIterator.getString("resource_record_type"), zoneId: dataAwsRoute53ZoneExample.zoneId, }); diff --git a/website/docs/cdktf/concepts/iterators.mdx b/website/docs/cdktf/concepts/iterators.mdx index b4da649dc8..9826ccae05 100644 --- a/website/docs/cdktf/concepts/iterators.mdx +++ b/website/docs/cdktf/concepts/iterators.mdx @@ -321,10 +321,10 @@ const exampleForEachIterator = TerraformIterator.fromComplexList( const records = new Route53Record(this, "record", { forEach: exampleForEachIterator, allowOverwrite: true, - name: exampleForEachIterator.getString("name"), - records: [exampleForEachIterator.getString("record")], + name: exampleForEachIterator.getString("resource_record_name"), + records: [exampleForEachIterator.getString("resource_record_record")], ttl: 60, - type: exampleForEachIterator.getString("type"), + type: exampleForEachIterator.getString("resource_record_type"), zoneId: dataAwsRoute53ZoneExample.zoneId, }); @@ -355,12 +355,12 @@ new AcmCertificateValidation(this, "validation", { for_each=example_for_each_iterator, allow_overwrite=True, name=example_for_each_iterator.get_string( - "name"), + "resource_record_name"), records=[ - example_for_each_iterator.get_string("record")], + example_for_each_iterator.get_string("resource_record_record")], ttl=60, type=example_for_each_iterator.get_string( - "type"), + "resource_record_type"), zone_id=data_aws_route53_zone_example.zone_id, ) @@ -394,10 +394,10 @@ new AcmCertificateValidation(this, "validation", { Route53Record records = new Route53Record(this, "record", Route53RecordConfig.builder() .forEach(exampleForEachIterator) .allowOverwrite(true) - .name(exampleForEachIterator.getString("name")) - .records(Arrays.asList(exampleForEachIterator.getString("record"))) + .name(exampleForEachIterator.getString("resource_record_name")) + .records(Arrays.asList(exampleForEachIterator.getString("resource_record_record"))) .ttl(60) - .type(exampleForEachIterator.getString("type")) + .type(exampleForEachIterator.getString("resource_record_type")) .zoneId(dataAwsRoute53ZoneExample.getZoneId()) .build()); @@ -430,10 +430,10 @@ new AcmCertificateValidation(this, "validation", { { ForEach = exampleForEachIterator, AllowOverwrite = true, - Name = exampleForEachIterator.GetString("name"), - Records = new string[] { exampleForEachIterator.GetString("record") }, + Name = exampleForEachIterator.GetString("resource_record_name"), + Records = new string[] { exampleForEachIterator.GetString("resource_record_record") }, Ttl = 60, - Type = exampleForEachIterator.GetString("type"), + Type = exampleForEachIterator.GetString("resource_record_type"), ZoneId = dataAwsRoute53ZoneExample.ZoneId }); @@ -462,10 +462,10 @@ exampleForEachIterator := cdktf.TerraformIterator_FromComplexList(cert.DomainVal records := route53record.NewRoute53Record(stack, jsii.String("record"), &route53record.Route53RecordConfig{ ForEach: exampleForEachIterator, AllowOverwrite: jsii.Bool(true), - Name: exampleForEachIterator.GetString(jsii.String("name")), - Records: jsii.Strings(*exampleForEachIterator.GetString(jsii.String("record"))), + Name: exampleForEachIterator.GetString(jsii.String("resource_record_name")), + Records: jsii.Strings(*exampleForEachIterator.GetString(jsii.String("resource_record_record"))), Ttl: jsii.Number(60), - Type: exampleForEachIterator.GetString(jsii.String("type")), + Type: exampleForEachIterator.GetString(jsii.String("resource_record_type")), ZoneId: dataAwsRoute53ZoneExample.ZoneId(), })