From 6f6d4ac2b1a6bfb029389bc23b9a84337243277c Mon Sep 17 00:00:00 2001 From: awstools Date: Fri, 11 Oct 2024 18:28:31 +0000 Subject: [PATCH] feat(client-guardduty): Added a new field for network connection details. --- .../client-guardduty/src/commands/GetFindingsCommand.ts | 1 + clients/client-guardduty/src/models/models_0.ts | 6 ++++++ clients/client-guardduty/src/protocols/Aws_restJson1.ts | 1 + codegen/sdk-codegen/aws-models/guardduty.json | 7 +++++++ 4 files changed, 15 insertions(+) diff --git a/clients/client-guardduty/src/commands/GetFindingsCommand.ts b/clients/client-guardduty/src/commands/GetFindingsCommand.ts index 84c582451e005..a74ddcb9c68bf 100644 --- a/clients/client-guardduty/src/commands/GetFindingsCommand.ts +++ b/clients/client-guardduty/src/commands/GetFindingsCommand.ts @@ -442,6 +442,7 @@ export interface GetFindingsCommandOutput extends GetFindingsResponse, __Metadat * // IpAddressV4: "STRING_VALUE", * // IpAddressV6: "STRING_VALUE", * // }, + * // LocalNetworkInterface: "STRING_VALUE", * // RemoteIpDetails: { * // City: { * // CityName: "STRING_VALUE", diff --git a/clients/client-guardduty/src/models/models_0.ts b/clients/client-guardduty/src/models/models_0.ts index f6340058f8206..d6ac7cd630109 100644 --- a/clients/client-guardduty/src/models/models_0.ts +++ b/clients/client-guardduty/src/models/models_0.ts @@ -951,6 +951,12 @@ export interface NetworkConnectionAction { */ LocalIpDetails?: LocalIpDetails; + /** + *

The EC2 instance's local elastic network interface utilized for the connection.

+ * @public + */ + LocalNetworkInterface?: string; + /** *

The remote IP information of the connection.

* @public diff --git a/clients/client-guardduty/src/protocols/Aws_restJson1.ts b/clients/client-guardduty/src/protocols/Aws_restJson1.ts index 3d4754b77d616..b46e5e88db652 100644 --- a/clients/client-guardduty/src/protocols/Aws_restJson1.ts +++ b/clients/client-guardduty/src/protocols/Aws_restJson1.ts @@ -5873,6 +5873,7 @@ const de_NetworkConnectionAction = (output: any, context: __SerdeContext): Netwo Blocked: [, __expectBoolean, `blocked`], ConnectionDirection: [, __expectString, `connectionDirection`], LocalIpDetails: [, (_: any) => de_LocalIpDetails(_, context), `localIpDetails`], + LocalNetworkInterface: [, __expectString, `localNetworkInterface`], LocalPortDetails: [, (_: any) => de_LocalPortDetails(_, context), `localPortDetails`], Protocol: [, __expectString, `protocol`], RemoteIpDetails: [, (_: any) => de_RemoteIpDetails(_, context), `remoteIpDetails`], diff --git a/codegen/sdk-codegen/aws-models/guardduty.json b/codegen/sdk-codegen/aws-models/guardduty.json index 0bea544774fba..78a97a453aacd 100644 --- a/codegen/sdk-codegen/aws-models/guardduty.json +++ b/codegen/sdk-codegen/aws-models/guardduty.json @@ -11049,6 +11049,13 @@ "smithy.api#jsonName": "localIpDetails" } }, + "LocalNetworkInterface": { + "target": "com.amazonaws.guardduty#String", + "traits": { + "smithy.api#documentation": "

The EC2 instance's local elastic network interface utilized for the connection.

", + "smithy.api#jsonName": "localNetworkInterface" + } + }, "RemoteIpDetails": { "target": "com.amazonaws.guardduty#RemoteIpDetails", "traits": {