From 13c35828916459e84fbe5d397084fa4619349a25 Mon Sep 17 00:00:00 2001 From: awstools Date: Wed, 18 Sep 2024 18:19:00 +0000 Subject: [PATCH] feat(client-guardduty): Add `launchType` and `sourceIPs` fields to GuardDuty findings. --- .../client-guardduty/src/commands/GetFindingsCommand.ts | 1 + clients/client-guardduty/src/models/models_0.ts | 6 ++++++ clients/client-guardduty/src/protocols/Aws_restJson1.ts | 3 ++- codegen/sdk-codegen/aws-models/guardduty.json | 9 ++++++++- 4 files changed, 17 insertions(+), 2 deletions(-) diff --git a/clients/client-guardduty/src/commands/GetFindingsCommand.ts b/clients/client-guardduty/src/commands/GetFindingsCommand.ts index b044f85225a2..84c582451e00 100644 --- a/clients/client-guardduty/src/commands/GetFindingsCommand.ts +++ b/clients/client-guardduty/src/commands/GetFindingsCommand.ts @@ -324,6 +324,7 @@ export interface GetFindingsCommandOutput extends GetFindingsResponse, __Metadat * // }, * // ], * // Group: "STRING_VALUE", + * // LaunchType: "STRING_VALUE", * // }, * // }, * // ContainerDetails: { diff --git a/clients/client-guardduty/src/models/models_0.ts b/clients/client-guardduty/src/models/models_0.ts index 8c5bd6794dc2..f6340058f820 100644 --- a/clients/client-guardduty/src/models/models_0.ts +++ b/clients/client-guardduty/src/models/models_0.ts @@ -5087,6 +5087,12 @@ export interface EcsTaskDetails { * @public */ Group?: string; + + /** + *

A capacity on which the task is running. For example, Fargate and EC2.

+ * @public + */ + LaunchType?: string; } /** diff --git a/clients/client-guardduty/src/protocols/Aws_restJson1.ts b/clients/client-guardduty/src/protocols/Aws_restJson1.ts index 189d96dc57ae..009fab62adb4 100644 --- a/clients/client-guardduty/src/protocols/Aws_restJson1.ts +++ b/clients/client-guardduty/src/protocols/Aws_restJson1.ts @@ -5041,6 +5041,7 @@ const de_EcsTaskDetails = (output: any, context: __SerdeContext): EcsTaskDetails Containers: [, (_: any) => de_Containers(_, context), `containers`], DefinitionArn: [, __expectString, `definitionArn`], Group: [, __expectString, `group`], + LaunchType: [, __expectString, `launchType`], StartedAt: [, (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), `startedAt`], StartedBy: [, __expectString, `startedBy`], Tags: [, (_: any) => de_Tags(_, context), `tags`], @@ -5407,7 +5408,7 @@ const de_KubernetesApiCallAction = (output: any, context: __SerdeContext): Kuber RequestUri: [, __expectString, `requestUri`], Resource: [, __expectString, `resource`], ResourceName: [, __expectString, `resourceName`], - SourceIps: [, _json, `sourceIps`], + SourceIps: [, _json, `sourceIPs`], StatusCode: [, __expectInt32, `statusCode`], Subresource: [, __expectString, `subresource`], UserAgent: [, __expectString, `userAgent`], diff --git a/codegen/sdk-codegen/aws-models/guardduty.json b/codegen/sdk-codegen/aws-models/guardduty.json index a5a91da00f32..0bea544774fb 100644 --- a/codegen/sdk-codegen/aws-models/guardduty.json +++ b/codegen/sdk-codegen/aws-models/guardduty.json @@ -4674,6 +4674,13 @@ "smithy.api#documentation": "

The name of the task group that's associated with the task.

", "smithy.api#jsonName": "group" } + }, + "LaunchType": { + "target": "com.amazonaws.guardduty#String", + "traits": { + "smithy.api#documentation": "

A capacity on which the task is running. For example, Fargate and EC2.

", + "smithy.api#jsonName": "launchType" + } } }, "traits": { @@ -8774,7 +8781,7 @@ "target": "com.amazonaws.guardduty#SourceIps", "traits": { "smithy.api#documentation": "

The IP of the Kubernetes API caller and the IPs of any proxies or load balancers between\n the caller and the API endpoint.

", - "smithy.api#jsonName": "sourceIps" + "smithy.api#jsonName": "sourceIPs" } }, "UserAgent": {