Skip to content

Commit 44048ce

Browse files
author
awstools
committed
feat(client-elastic-beanstalk): As part of this release, Beanstalk introduce a new info type - analyze for request environment info and retrieve environment info operations. When customers request an Al analysis, Elastic Beanstalk runs a script on an instance in their environment and returns an analysis of events, health and logs.
1 parent b79a4db commit 44048ce

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
lines changed

clients/client-elastic-beanstalk/src/commands/RequestEnvironmentInfoCommand.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ export interface RequestEnvironmentInfoCommandOutput extends __MetadataBearer {}
3838
* <p> Setting the <code>InfoType</code> to <code>bundle</code> compresses the application
3939
* server log files for every Amazon EC2 instance into a <code>.zip</code> file. Legacy and .NET
4040
* containers do not support bundle logs. </p>
41+
* <p> Setting the <code>InfoType</code> to <code>analyze</code> collects recent events,
42+
* instance health, and logs from your environment and sends them to Amazon Bedrock in your
43+
* account to generate diagnostic insights and recommended next steps. </p>
4144
* <p> Use <a>RetrieveEnvironmentInfo</a> to obtain the set of logs. </p>
4245
* <p>Related Topics</p>
4346
* <ul>
@@ -58,7 +61,7 @@ export interface RequestEnvironmentInfoCommandOutput extends __MetadataBearer {}
5861
* const input = { // RequestEnvironmentInfoMessage
5962
* EnvironmentId: "STRING_VALUE",
6063
* EnvironmentName: "STRING_VALUE",
61-
* InfoType: "tail" || "bundle", // required
64+
* InfoType: "tail" || "bundle" || "analyze", // required
6265
* };
6366
* const command = new RequestEnvironmentInfoCommand(input);
6467
* const response = await client.send(command);

clients/client-elastic-beanstalk/src/commands/RetrieveEnvironmentInfoCommand.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,14 @@ export interface RetrieveEnvironmentInfoCommandOutput extends RetrieveEnvironmen
5252
* const input = { // RetrieveEnvironmentInfoMessage
5353
* EnvironmentId: "STRING_VALUE",
5454
* EnvironmentName: "STRING_VALUE",
55-
* InfoType: "tail" || "bundle", // required
55+
* InfoType: "tail" || "bundle" || "analyze", // required
5656
* };
5757
* const command = new RetrieveEnvironmentInfoCommand(input);
5858
* const response = await client.send(command);
5959
* // { // RetrieveEnvironmentInfoResultMessage
6060
* // EnvironmentInfo: [ // EnvironmentInfoDescriptionList
6161
* // { // EnvironmentInfoDescription
62-
* // InfoType: "tail" || "bundle",
62+
* // InfoType: "tail" || "bundle" || "analyze",
6363
* // Ec2InstanceId: "STRING_VALUE",
6464
* // SampleTimestamp: new Date("TIMESTAMP"),
6565
* // Message: "STRING_VALUE",

clients/client-elastic-beanstalk/src/models/enums.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,7 @@ export type InstancesHealthAttribute = (typeof InstancesHealthAttribute)[keyof t
278278
* @enum
279279
*/
280280
export const EnvironmentInfoType = {
281+
analyze: "analyze",
281282
bundle: "bundle",
282283
tail: "tail",
283284
} as const;

codegen/sdk-codegen/aws-models/elastic-beanstalk.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4996,6 +4996,12 @@
49964996
"traits": {
49974997
"smithy.api#enumValue": "bundle"
49984998
}
4999+
},
5000+
"analyze": {
5001+
"target": "smithy.api#Unit",
5002+
"traits": {
5003+
"smithy.api#enumValue": "analyze"
5004+
}
49995005
}
50005006
}
50015007
},
@@ -6973,7 +6979,7 @@
69736979
"target": "smithy.api#Unit"
69746980
},
69756981
"traits": {
6976-
"smithy.api#documentation": "<p>Initiates a request to compile the specified type of information of the deployed\n environment.</p>\n <p> Setting the <code>InfoType</code> to <code>tail</code> compiles the last lines from\n the application server log files of every Amazon EC2 instance in your environment. </p>\n <p> Setting the <code>InfoType</code> to <code>bundle</code> compresses the application\n server log files for every Amazon EC2 instance into a <code>.zip</code> file. Legacy and .NET\n containers do not support bundle logs. </p>\n <p> Use <a>RetrieveEnvironmentInfo</a> to obtain the set of logs. </p>\n <p>Related Topics</p>\n <ul>\n <li>\n <p>\n <a>RetrieveEnvironmentInfo</a>\n </p>\n </li>\n </ul>",
6982+
"smithy.api#documentation": "<p>Initiates a request to compile the specified type of information of the deployed\n environment.</p>\n <p> Setting the <code>InfoType</code> to <code>tail</code> compiles the last lines from\n the application server log files of every Amazon EC2 instance in your environment. </p>\n <p> Setting the <code>InfoType</code> to <code>bundle</code> compresses the application\n server log files for every Amazon EC2 instance into a <code>.zip</code> file. Legacy and .NET\n containers do not support bundle logs. </p>\n <p> Setting the <code>InfoType</code> to <code>analyze</code> collects recent events,\n instance health, and logs from your environment and sends them to Amazon Bedrock in your\n account to generate diagnostic insights and recommended next steps. </p>\n <p> Use <a>RetrieveEnvironmentInfo</a> to obtain the set of logs. </p>\n <p>Related Topics</p>\n <ul>\n <li>\n <p>\n <a>RetrieveEnvironmentInfo</a>\n </p>\n </li>\n </ul>",
69776983
"smithy.api#examples": [
69786984
{
69796985
"title": "To request tailed logs",

0 commit comments

Comments
 (0)