diff --git a/clients/client-lambda/README.md b/clients/client-lambda/README.md index f29e02171dc0..a240ccafa293 100644 --- a/clients/client-lambda/README.md +++ b/clients/client-lambda/README.md @@ -75,7 +75,7 @@ up-to-date is the more straightforward solution. To learn more about ACM-provide ## Installing -To install the this package, simply type add or install @aws-sdk/client-lambda +To install this package, simply type add or install @aws-sdk/client-lambda using your favorite package manager: - `npm install @aws-sdk/client-lambda` diff --git a/clients/client-lambda/src/commands/GetFunctionCommand.ts b/clients/client-lambda/src/commands/GetFunctionCommand.ts index b19bbd60a1af..3e841152b540 100644 --- a/clients/client-lambda/src/commands/GetFunctionCommand.ts +++ b/clients/client-lambda/src/commands/GetFunctionCommand.ts @@ -156,6 +156,10 @@ export interface GetFunctionCommandOutput extends GetFunctionResponse, __Metadat * // Tags: { // Tags * // "": "STRING_VALUE", * // }, + * // TagsError: { // TagsError + * // ErrorCode: "STRING_VALUE", // required + * // Message: "STRING_VALUE", // required + * // }, * // Concurrency: { // Concurrency * // ReservedConcurrentExecutions: Number("int"), * // }, diff --git a/clients/client-lambda/src/models/models_0.ts b/clients/client-lambda/src/models/models_0.ts index cf472b500ed5..cfab2f5f0f02 100644 --- a/clients/client-lambda/src/models/models_0.ts +++ b/clients/client-lambda/src/models/models_0.ts @@ -3363,6 +3363,24 @@ export interface Concurrency { ReservedConcurrentExecutions?: number; } +/** + *

An object that contains details about an error related to retrieving tags.

+ * @public + */ +export interface TagsError { + /** + *

The error code.

+ * @public + */ + ErrorCode: string | undefined; + + /** + *

The error message.

+ * @public + */ + Message: string | undefined; +} + /** * @public */ @@ -3380,11 +3398,18 @@ export interface GetFunctionResponse { Code?: FunctionCodeLocation; /** - *

The function's tags.

+ *

The function's tags. Lambda + * returns tag data only if you have explicit allow permissions for lambda:ListTags.

* @public */ Tags?: Record; + /** + *

An object that contains details about an error related to retrieving tags.

+ * @public + */ + TagsError?: TagsError; + /** *

The function's reserved * concurrency.

diff --git a/clients/client-lambda/src/protocols/Aws_restJson1.ts b/clients/client-lambda/src/protocols/Aws_restJson1.ts index 42756c47e505..92622a289949 100644 --- a/clients/client-lambda/src/protocols/Aws_restJson1.ts +++ b/clients/client-lambda/src/protocols/Aws_restJson1.ts @@ -2394,6 +2394,7 @@ export const de_GetFunctionCommand = async ( Concurrency: _json, Configuration: _json, Tags: _json, + TagsError: _json, }); Object.assign(contents, doc); return contents; @@ -4962,6 +4963,8 @@ const de_FunctionEventInvokeConfigList = (output: any, context: __SerdeContext): // de_Tags omitted. +// de_TagsError omitted. + // de_Topics omitted. // de_TracingConfigResponse omitted. diff --git a/codegen/sdk-codegen/aws-models/lambda.json b/codegen/sdk-codegen/aws-models/lambda.json index 44b2967b1165..19f1685a55cb 100644 --- a/codegen/sdk-codegen/aws-models/lambda.json +++ b/codegen/sdk-codegen/aws-models/lambda.json @@ -5926,7 +5926,13 @@ "Tags": { "target": "com.amazonaws.lambda#Tags", "traits": { - "smithy.api#documentation": "

The function's tags.

" + "smithy.api#documentation": "

The function's tags. Lambda\n returns tag data only if you have explicit allow permissions for lambda:ListTags.

" + } + }, + "TagsError": { + "target": "com.amazonaws.lambda#TagsError", + "traits": { + "smithy.api#documentation": "

An object that contains details about an error related to retrieving tags.

" } }, "Concurrency": { @@ -11963,6 +11969,48 @@ "target": "com.amazonaws.lambda#TagValue" } }, + "com.amazonaws.lambda#TagsError": { + "type": "structure", + "members": { + "ErrorCode": { + "target": "com.amazonaws.lambda#TagsErrorCode", + "traits": { + "smithy.api#documentation": "

The error code.

", + "smithy.api#required": {} + } + }, + "Message": { + "target": "com.amazonaws.lambda#TagsErrorMessage", + "traits": { + "smithy.api#documentation": "

The error message.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

An object that contains details about an error related to retrieving tags.

" + } + }, + "com.amazonaws.lambda#TagsErrorCode": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 10, + "max": 21 + }, + "smithy.api#pattern": "^[A-Za-z]+Exception$" + } + }, + "com.amazonaws.lambda#TagsErrorMessage": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 84, + "max": 1000 + }, + "smithy.api#pattern": "^.*$" + } + }, "com.amazonaws.lambda#ThrottleReason": { "type": "enum", "members": {