From 74d5b064d2ebcc402e50af258c1e9e2aef9e7bac Mon Sep 17 00:00:00 2001 From: Ansgar Mertens Date: Fri, 24 Nov 2023 16:37:00 +0100 Subject: [PATCH] fix(examples): Fix Python method name that changed --- examples/python/documentation/iterators.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/examples/python/documentation/iterators.py b/examples/python/documentation/iterators.py index 7272fa651f..86ed7f2469 100644 --- a/examples/python/documentation/iterators.py +++ b/examples/python/documentation/iterators.py @@ -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") ), ) @@ -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