From c08bfa48cb9f5f0ddd62c48a540a6755888d007e Mon Sep 17 00:00:00 2001 From: AWS <> Date: Tue, 16 Mar 2021 18:10:45 +0000 Subject: [PATCH] AWS Lambda Update: Allow empty list for function response types --- .changes/next-release/feature-AWSLambda-ad9e3dc.json | 6 ++++++ .../src/main/resources/codegen-resources/service-2.json | 7 ++----- 2 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 .changes/next-release/feature-AWSLambda-ad9e3dc.json diff --git a/.changes/next-release/feature-AWSLambda-ad9e3dc.json b/.changes/next-release/feature-AWSLambda-ad9e3dc.json new file mode 100644 index 000000000000..e5ab2d495c79 --- /dev/null +++ b/.changes/next-release/feature-AWSLambda-ad9e3dc.json @@ -0,0 +1,6 @@ +{ + "type": "feature", + "category": "AWS Lambda", + "contributor": "", + "description": "Allow empty list for function response types" +} diff --git a/services/lambda/src/main/resources/codegen-resources/service-2.json b/services/lambda/src/main/resources/codegen-resources/service-2.json index bb9557206b96..9333eb288402 100644 --- a/services/lambda/src/main/resources/codegen-resources/service-2.json +++ b/services/lambda/src/main/resources/codegen-resources/service-2.json @@ -2358,7 +2358,7 @@ "type":"list", "member":{"shape":"FunctionResponseType"}, "max":1, - "min":1 + "min":0 }, "FunctionVersion":{ "type":"string", @@ -3105,7 +3105,6 @@ }, "LayerPermissionAllowedAction":{ "type":"string", - "max":22, "pattern":"lambda:GetLayerVersion" }, "LayerPermissionAllowedPrincipal":{ @@ -3746,7 +3745,6 @@ }, "OrganizationId":{ "type":"string", - "max":34, "pattern":"o-[a-z0-9]{10,32}" }, "PackageType":{ @@ -3793,7 +3791,7 @@ }, "Principal":{ "type":"string", - "pattern":"[^\\s]+" + "pattern":".*" }, "ProvisionedConcurrencyConfigList":{ "type":"list", @@ -4355,7 +4353,6 @@ }, "SourceOwner":{ "type":"string", - "max":12, "pattern":"\\d{12}" }, "State":{