Skip to content

Commit

Permalink
feat(client-lambda): Add TagsError field in Lambda GetFunctionRespons…
Browse files Browse the repository at this point in the history
…e. The TagsError field contains details related to errors retrieving tags.
  • Loading branch information
awstools committed Oct 25, 2024
1 parent 0642ee5 commit cc7f367
Show file tree
Hide file tree
Showing 5 changed files with 83 additions and 3 deletions.
2 changes: 1 addition & 1 deletion clients/client-lambda/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
4 changes: 4 additions & 0 deletions clients/client-lambda/src/commands/GetFunctionCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@ export interface GetFunctionCommandOutput extends GetFunctionResponse, __Metadat
* // Tags: { // Tags
* // "<keys>": "STRING_VALUE",
* // },
* // TagsError: { // TagsError
* // ErrorCode: "STRING_VALUE", // required
* // Message: "STRING_VALUE", // required
* // },
* // Concurrency: { // Concurrency
* // ReservedConcurrentExecutions: Number("int"),
* // },
Expand Down
27 changes: 26 additions & 1 deletion clients/client-lambda/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3363,6 +3363,24 @@ export interface Concurrency {
ReservedConcurrentExecutions?: number;
}

/**
* <p>An object that contains details about an error related to retrieving tags.</p>
* @public
*/
export interface TagsError {
/**
* <p>The error code.</p>
* @public
*/
ErrorCode: string | undefined;

/**
* <p>The error message.</p>
* @public
*/
Message: string | undefined;
}

/**
* @public
*/
Expand All @@ -3380,11 +3398,18 @@ export interface GetFunctionResponse {
Code?: FunctionCodeLocation;

/**
* <p>The function's <a href="https://docs.aws.amazon.com/lambda/latest/dg/tagging.html">tags</a>.</p>
* <p>The function's <a href="https://docs.aws.amazon.com/lambda/latest/dg/tagging.html">tags</a>. Lambda
* 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>
* @public
*/
Tags?: Record<string, string>;

/**
* <p>An object that contains details about an error related to retrieving tags.</p>
* @public
*/
TagsError?: TagsError;

/**
* <p>The function's <a href="https://docs.aws.amazon.com/lambda/latest/dg/concurrent-executions.html">reserved
* concurrency</a>.</p>
Expand Down
3 changes: 3 additions & 0 deletions clients/client-lambda/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2394,6 +2394,7 @@ export const de_GetFunctionCommand = async (
Concurrency: _json,
Configuration: _json,
Tags: _json,
TagsError: _json,
});
Object.assign(contents, doc);
return contents;
Expand Down Expand Up @@ -4962,6 +4963,8 @@ const de_FunctionEventInvokeConfigList = (output: any, context: __SerdeContext):

// de_Tags omitted.

// de_TagsError omitted.

// de_Topics omitted.

// de_TracingConfigResponse omitted.
Expand Down
50 changes: 49 additions & 1 deletion codegen/sdk-codegen/aws-models/lambda.json
Original file line number Diff line number Diff line change
Expand Up @@ -5926,7 +5926,13 @@
"Tags": {
"target": "com.amazonaws.lambda#Tags",
"traits": {
"smithy.api#documentation": "<p>The function's <a href=\"https://docs.aws.amazon.com/lambda/latest/dg/tagging.html\">tags</a>.</p>"
"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>"
}
},
"TagsError": {
"target": "com.amazonaws.lambda#TagsError",
"traits": {
"smithy.api#documentation": "<p>An object that contains details about an error related to retrieving tags.</p>"
}
},
"Concurrency": {
Expand Down Expand Up @@ -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": "<p>The error code.</p>",
"smithy.api#required": {}
}
},
"Message": {
"target": "com.amazonaws.lambda#TagsErrorMessage",
"traits": {
"smithy.api#documentation": "<p>The error message.</p>",
"smithy.api#required": {}
}
}
},
"traits": {
"smithy.api#documentation": "<p>An object that contains details about an error related to retrieving tags.</p>"
}
},
"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": {
Expand Down

0 comments on commit cc7f367

Please sign in to comment.