From aaec7f4901842a74d2719eb8acde345d395d64ce Mon Sep 17 00:00:00 2001 From: Peter Song Date: Wed, 29 Oct 2025 15:34:05 -0700 Subject: [PATCH 1/3] Make ForceAliasCreation nullable --- .../Amazon.Lambda.CognitoEvents/CognitoMigrateUserResponse.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Libraries/src/Amazon.Lambda.CognitoEvents/CognitoMigrateUserResponse.cs b/Libraries/src/Amazon.Lambda.CognitoEvents/CognitoMigrateUserResponse.cs index 5f58e4677..7babcd417 100644 --- a/Libraries/src/Amazon.Lambda.CognitoEvents/CognitoMigrateUserResponse.cs +++ b/Libraries/src/Amazon.Lambda.CognitoEvents/CognitoMigrateUserResponse.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using System.Runtime.Serialization; namespace Amazon.Lambda.CognitoEvents @@ -51,6 +51,6 @@ public class CognitoMigrateUserResponse : CognitoTriggerResponse #if NETCOREAPP3_1_OR_GREATER [System.Text.Json.Serialization.JsonPropertyName("forceAliasCreation")] #endif - public bool ForceAliasCreation { get; set; } + public bool? ForceAliasCreation { get; set; } } } From b3fa4e86f35a4479d98542f5b226d751f51ed88d Mon Sep 17 00:00:00 2001 From: Peter Song Date: Wed, 29 Oct 2025 15:37:25 -0700 Subject: [PATCH 2/3] add autover change file --- .../changes/1916e292-d131-4c9a-8036-0d7b68f0ce7a.json | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .autover/changes/1916e292-d131-4c9a-8036-0d7b68f0ce7a.json diff --git a/.autover/changes/1916e292-d131-4c9a-8036-0d7b68f0ce7a.json b/.autover/changes/1916e292-d131-4c9a-8036-0d7b68f0ce7a.json new file mode 100644 index 000000000..8be77eccd --- /dev/null +++ b/.autover/changes/1916e292-d131-4c9a-8036-0d7b68f0ce7a.json @@ -0,0 +1,11 @@ +{ + "Projects": [ + { + "Name": "Amazon.Lambda.CognitoEvents", + "Type": "Patch", + "ChangelogMessages": [ + "Make ForceAliasCreation nullable to allow proper serialization" + ] + } + ] +} \ No newline at end of file From fc5799d30f4e6a316da70c1bcad9a62a34e3f2fb Mon Sep 17 00:00:00 2001 From: Peter Song Date: Wed, 29 Oct 2025 16:04:27 -0700 Subject: [PATCH 3/3] update autover change message --- .autover/changes/1916e292-d131-4c9a-8036-0d7b68f0ce7a.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.autover/changes/1916e292-d131-4c9a-8036-0d7b68f0ce7a.json b/.autover/changes/1916e292-d131-4c9a-8036-0d7b68f0ce7a.json index 8be77eccd..5cd1858c2 100644 --- a/.autover/changes/1916e292-d131-4c9a-8036-0d7b68f0ce7a.json +++ b/.autover/changes/1916e292-d131-4c9a-8036-0d7b68f0ce7a.json @@ -4,7 +4,7 @@ "Name": "Amazon.Lambda.CognitoEvents", "Type": "Patch", "ChangelogMessages": [ - "Make ForceAliasCreation nullable to allow proper serialization" + "[Breaking Change] Fix issue around not handling null value during deserialization for `ForceAliasCreation` by making it nullable." ] } ]