From 374abd3465fc2a1238a8b33de151a1b1851edd45 Mon Sep 17 00:00:00 2001 From: Daniel Schmidt Date: Fri, 24 Nov 2023 16:36:57 +0100 Subject: [PATCH] chore: binary search c# issue --- .../csharp/documentation/IteratorStack.cs | 92 +++++++++---------- 1 file changed, 46 insertions(+), 46 deletions(-) diff --git a/examples/csharp/documentation/IteratorStack.cs b/examples/csharp/documentation/IteratorStack.cs index dfd7fc8d71..488610e634 100644 --- a/examples/csharp/documentation/IteratorStack.cs +++ b/examples/csharp/documentation/IteratorStack.cs @@ -119,26 +119,26 @@ public IteratorStack(Construct scope, string name) : base(scope, name) // DOCS_BLOCK_START:iterators-chain // We need a local to be able to pass the list to the iterator - // TerraformLocal configuration = new TerraformLocal(this, "configuration", new Dictionary { - // { - // "website ", - // new Dictionary { - // { "name", "website-static-files" }, - // { "tags", new Dictionary { - // { "app", "website" } - // }} - // } - // }, - // { - // "images", - // new Dictionary { - // { "name", "images" }, - // { "tags", new Dictionary { - // { "app", "image-converter" } - // }} - // } - // } - // }); + TerraformLocal configuration = new TerraformLocal(this, "configuration", new Dictionary { + { + "website ", + new Dictionary { + { "name", "website-static-files" }, + { "tags", new Dictionary { + { "app", "website" } + }} + } + }, + { + "images", + new Dictionary { + { "name", "images" }, + { "tags", new Dictionary { + { "app", "image-converter" } + }} + } + } + }); // MapTerraformIterator s3BucketConfigurationIterator = MapTerraformIterator.FromMap(configuration.AsAnyMap); // S3Bucket s3Buckets = new S3Bucket(this, "complex-iterator-buckets", new S3BucketConfig // { @@ -163,32 +163,32 @@ public IteratorStack(Construct scope, string name) : base(scope, name) // DOCS_BLOCK_END:iterators-chain // DOCS_BLOCK_START:iterators-for-expression - TerraformLocal values = new TerraformLocal(this, "values", new Dictionary { - { - "website", - new Dictionary { - { "name", "website-static-files" }, - { "tags", new Dictionary { - { "app", "website" } - }} - } - }, - { - "images", - new Dictionary { - { "name", "images" }, - { "tags", new Dictionary { - { "app", "image-converter" } - }} - } - } - }); - MapTerraformIterator mapIterator = MapTerraformIterator.FromMap(values.AsAnyMap); - new TerraformLocal(this, "list-of-keys", mapIterator.Keys()); - new TerraformLocal(this, "list-of-values", mapIterator.Values()); - new TerraformLocal(this, "list-of-names", mapIterator.PluckProperty("name")); - new TerraformLocal(this, "list-of-names-of-included", mapIterator.ForExpressionForList("val.name if val.included")); - new TerraformLocal(this, "map-with-names-as-key-and-tags-as-value-of-included", mapIterator.ForExpressionForMap("val.name", "val.tags if val.included")); + // TerraformLocal values = new TerraformLocal(this, "values", new Dictionary { + // { + // "website", + // new Dictionary { + // { "name", "website-static-files" }, + // { "tags", new Dictionary { + // { "app", "website" } + // }} + // } + // }, + // { + // "images", + // new Dictionary { + // { "name", "images" }, + // { "tags", new Dictionary { + // { "app", "image-converter" } + // }} + // } + // } + // }); + // MapTerraformIterator mapIterator = MapTerraformIterator.FromMap(values.AsAnyMap); + // new TerraformLocal(this, "list-of-keys", mapIterator.Keys()); + // new TerraformLocal(this, "list-of-values", mapIterator.Values()); + // new TerraformLocal(this, "list-of-names", mapIterator.PluckProperty("name")); + // new TerraformLocal(this, "list-of-names-of-included", mapIterator.ForExpressionForList("val.name if val.included")); + // new TerraformLocal(this, "map-with-names-as-key-and-tags-as-value-of-included", mapIterator.ForExpressionForMap("val.name", "val.tags if val.included")); // DOCS_BLOCK_END:iterators-for-expression } }