Skip to content

Commit

Permalink
fix(examples): Fix Python method name that changed
Browse files Browse the repository at this point in the history
  • Loading branch information
ansgarm committed Nov 24, 2023
1 parent 0593b30 commit 74d5b06
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions examples/python/documentation/iterators.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def __init__(self, scope: Construct, id: str):
AcmCertificateValidation(self, "validation",
certificate_arn=cert.arn,
validation_record_fqdns=Token.as_list(
records_iterator.map_to_value_property(
records_iterator.pluck_property(
"fqdn")
),
)
Expand Down Expand Up @@ -202,7 +202,10 @@ def __init__(self, scope: Construct, id: str):
)
TerraformLocal(self, "list-of-keys", mapIterator.keys())
TerraformLocal(self, "list-of-values", mapIterator.values())
TerraformLocal(self, "list-of-names", mapIterator.pluck_property("name"))
TerraformLocal(self, "list-of-names-of-included", mapIterator.for_expression_for_list("val.name if val.included"))
TerraformLocal(self, "map-with-names-as-key-and-tags-as-value-of-included", mapIterator.for_expression_for_map("val.name", "val.tags if val.included"))
TerraformLocal(self, "list-of-names",
mapIterator.pluck_property("name"))
TerraformLocal(self, "list-of-names-of-included",
mapIterator.for_expression_for_list("val.name if val.included"))
TerraformLocal(self, "map-with-names-as-key-and-tags-as-value-of-included",
mapIterator.for_expression_for_map("val.name", "val.tags if val.included"))
# DOCS_BLOCK_END:iterators-for-expression

0 comments on commit 74d5b06

Please sign in to comment.