Skip to content

Commit cc7f367

Browse files
author
awstools
committed
feat(client-lambda): Add TagsError field in Lambda GetFunctionResponse. The TagsError field contains details related to errors retrieving tags.
1 parent 0642ee5 commit cc7f367

File tree

5 files changed

+83
-3
lines changed

5 files changed

+83
-3
lines changed

clients/client-lambda/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ up-to-date is the more straightforward solution. To learn more about ACM-provide
7575

7676
## Installing
7777

78-
To install the this package, simply type add or install @aws-sdk/client-lambda
78+
To install this package, simply type add or install @aws-sdk/client-lambda
7979
using your favorite package manager:
8080

8181
- `npm install @aws-sdk/client-lambda`

clients/client-lambda/src/commands/GetFunctionCommand.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,10 @@ export interface GetFunctionCommandOutput extends GetFunctionResponse, __Metadat
156156
* // Tags: { // Tags
157157
* // "<keys>": "STRING_VALUE",
158158
* // },
159+
* // TagsError: { // TagsError
160+
* // ErrorCode: "STRING_VALUE", // required
161+
* // Message: "STRING_VALUE", // required
162+
* // },
159163
* // Concurrency: { // Concurrency
160164
* // ReservedConcurrentExecutions: Number("int"),
161165
* // },

clients/client-lambda/src/models/models_0.ts

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3363,6 +3363,24 @@ export interface Concurrency {
33633363
ReservedConcurrentExecutions?: number;
33643364
}
33653365

3366+
/**
3367+
* <p>An object that contains details about an error related to retrieving tags.</p>
3368+
* @public
3369+
*/
3370+
export interface TagsError {
3371+
/**
3372+
* <p>The error code.</p>
3373+
* @public
3374+
*/
3375+
ErrorCode: string | undefined;
3376+
3377+
/**
3378+
* <p>The error message.</p>
3379+
* @public
3380+
*/
3381+
Message: string | undefined;
3382+
}
3383+
33663384
/**
33673385
* @public
33683386
*/
@@ -3380,11 +3398,18 @@ export interface GetFunctionResponse {
33803398
Code?: FunctionCodeLocation;
33813399

33823400
/**
3383-
* <p>The function's <a href="https://docs.aws.amazon.com/lambda/latest/dg/tagging.html">tags</a>.</p>
3401+
* <p>The function's <a href="https://docs.aws.amazon.com/lambda/latest/dg/tagging.html">tags</a>. Lambda
3402+
* returns tag data only if you have explicit allow permissions for <a href="https://docs.aws.amazon.com/https:/docs.aws.amazon.com/lambda/latest/api/API_ListTags.html">lambda:ListTags</a>.</p>
33843403
* @public
33853404
*/
33863405
Tags?: Record<string, string>;
33873406

3407+
/**
3408+
* <p>An object that contains details about an error related to retrieving tags.</p>
3409+
* @public
3410+
*/
3411+
TagsError?: TagsError;
3412+
33883413
/**
33893414
* <p>The function's <a href="https://docs.aws.amazon.com/lambda/latest/dg/concurrent-executions.html">reserved
33903415
* concurrency</a>.</p>

clients/client-lambda/src/protocols/Aws_restJson1.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2394,6 +2394,7 @@ export const de_GetFunctionCommand = async (
23942394
Concurrency: _json,
23952395
Configuration: _json,
23962396
Tags: _json,
2397+
TagsError: _json,
23972398
});
23982399
Object.assign(contents, doc);
23992400
return contents;
@@ -4962,6 +4963,8 @@ const de_FunctionEventInvokeConfigList = (output: any, context: __SerdeContext):
49624963

49634964
// de_Tags omitted.
49644965

4966+
// de_TagsError omitted.
4967+
49654968
// de_Topics omitted.
49664969

49674970
// de_TracingConfigResponse omitted.

codegen/sdk-codegen/aws-models/lambda.json

Lines changed: 49 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5926,7 +5926,13 @@
59265926
"Tags": {
59275927
"target": "com.amazonaws.lambda#Tags",
59285928
"traits": {
5929-
"smithy.api#documentation": "<p>The function's <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/tagging.html\">tags</a>.</p>"
5929+
"smithy.api#documentation": "<p>The function's <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/tagging.html\">tags</a>. Lambda\n returns tag data only if you have explicit allow permissions for <a href=\"https://docs.aws.amazon.com/https:/docs.aws.amazon.com/lambda/latest/api/API_ListTags.html\">lambda:ListTags</a>.</p>"
5930+
}
5931+
},
5932+
"TagsError": {
5933+
"target": "com.amazonaws.lambda#TagsError",
5934+
"traits": {
5935+
"smithy.api#documentation": "<p>An object that contains details about an error related to retrieving tags.</p>"
59305936
}
59315937
},
59325938
"Concurrency": {
@@ -11963,6 +11969,48 @@
1196311969
"target": "com.amazonaws.lambda#TagValue"
1196411970
}
1196511971
},
11972+
"com.amazonaws.lambda#TagsError": {
11973+
"type": "structure",
11974+
"members": {
11975+
"ErrorCode": {
11976+
"target": "com.amazonaws.lambda#TagsErrorCode",
11977+
"traits": {
11978+
"smithy.api#documentation": "<p>The error code.</p>",
11979+
"smithy.api#required": {}
11980+
}
11981+
},
11982+
"Message": {
11983+
"target": "com.amazonaws.lambda#TagsErrorMessage",
11984+
"traits": {
11985+
"smithy.api#documentation": "<p>The error message.</p>",
11986+
"smithy.api#required": {}
11987+
}
11988+
}
11989+
},
11990+
"traits": {
11991+
"smithy.api#documentation": "<p>An object that contains details about an error related to retrieving tags.</p>"
11992+
}
11993+
},
11994+
"com.amazonaws.lambda#TagsErrorCode": {
11995+
"type": "string",
11996+
"traits": {
11997+
"smithy.api#length": {
11998+
"min": 10,
11999+
"max": 21
12000+
},
12001+
"smithy.api#pattern": "^[A-Za-z]+Exception$"
12002+
}
12003+
},
12004+
"com.amazonaws.lambda#TagsErrorMessage": {
12005+
"type": "string",
12006+
"traits": {
12007+
"smithy.api#length": {
12008+
"min": 84,
12009+
"max": 1000
12010+
},
12011+
"smithy.api#pattern": "^.*$"
12012+
}
12013+
},
1196612014
"com.amazonaws.lambda#ThrottleReason": {
1196712015
"type": "enum",
1196812016
"members": {

0 commit comments

Comments
 (0)