From f311d86b2c7485df0096a9f7a9930a72c6fa6c25 Mon Sep 17 00:00:00 2001 From: Daniel Schmidt Date: Fri, 19 Jan 2024 14:30:28 +0100 Subject: [PATCH] chore: add CodeTabs component (#3443) Closes #3438 --- website/docs/cdktf/concepts/iterators.mdx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/website/docs/cdktf/concepts/iterators.mdx b/website/docs/cdktf/concepts/iterators.mdx index 9826ccae05..11dc509b8a 100644 --- a/website/docs/cdktf/concepts/iterators.mdx +++ b/website/docs/cdktf/concepts/iterators.mdx @@ -303,6 +303,9 @@ The following example validates an ACM certificate through DNS validation: + + + ```ts const cert = new AcmCertificate(this, "cert", { domainName: "example.com", @@ -477,6 +480,9 @@ acmcertificatevalidation.NewAcmCertificateValidation(stack, jsii.String("validat }) ``` + + + ## Using Iterators for List Attributes You can also use iterators to create a list of objects based on each item in a list and assign the result as a value to a property of a resource. This is equivalent to using `Array.map` in TypeScript and using [dynamic blocks](/terraform/language/expressions/dynamic-blocks) in a Terraform HCL configuration.