Skip to content

Commit

Permalink
feat(client-guardduty): Add support for user.extra.sessionName in Kub…
Browse files Browse the repository at this point in the history
…ernetes Audit Logs Findings.
  • Loading branch information
awstools committed Jun 26, 2023
1 parent b441cef commit bdf8f40
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 2 deletions.
3 changes: 3 additions & 0 deletions clients/client-guardduty/src/commands/GetFindingsCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,9 @@ export interface GetFindingsCommandOutput extends GetFindingsResponse, __Metadat
* // Groups: [ // Groups
* // "STRING_VALUE",
* // ],
* // SessionName: [ // SessionNameList
* // "STRING_VALUE",
* // ],
* // },
* // KubernetesWorkloadDetails: { // KubernetesWorkloadDetails
* // Name: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceRes
/**
* @public
* <p>Lists tags for a resource. Tagging is currently supported for detectors, finding filters,
* IP sets, and threat intel sets, with a limit of 50 tags per resource. When invoked, this
* IP sets, threat intel sets, publishing destination, with a limit of 50 tags per resource. When invoked, this
* operation returns all assigned tags for a given resource.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
Expand Down
6 changes: 6 additions & 0 deletions clients/client-guardduty/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4145,6 +4145,12 @@ export interface KubernetesUserDetails {
* <p>The groups that include the user who called the Kubernetes API.</p>
*/
Groups?: string[];

/**
* <p>Entity that assumes the IAM role
* when Kubernetes RBAC permissions are assigned to that role.</p>
*/
SessionName?: string[];
}

/**
Expand Down
3 changes: 3 additions & 0 deletions clients/client-guardduty/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7287,6 +7287,7 @@ const de_KubernetesDetails = (output: any, context: __SerdeContext): KubernetesD
const de_KubernetesUserDetails = (output: any, context: __SerdeContext): KubernetesUserDetails => {
return take(output, {
Groups: [, _json, `groups`],
SessionName: [, _json, `sessionName`],
Uid: [, __expectString, `uid`],
Username: [, __expectString, `username`],
}) as any;
Expand Down Expand Up @@ -8310,6 +8311,8 @@ const de_ServiceAdditionalInfo = (output: any, context: __SerdeContext): Service
}) as any;
};

// de_SessionNameList omitted.

// de_SourceIps omitted.

// de_Sources omitted.
Expand Down
15 changes: 14 additions & 1 deletion codegen/sdk-codegen/aws-models/guardduty.json
Original file line number Diff line number Diff line change
Expand Up @@ -7902,6 +7902,13 @@
"smithy.api#documentation": "<p>The groups that include the user who called the Kubernetes API.</p>",
"smithy.api#jsonName": "groups"
}
},
"SessionName": {
"target": "com.amazonaws.guardduty#SessionNameList",
"traits": {
"smithy.api#documentation": "<p>Entity that assumes the IAM role \n when Kubernetes RBAC permissions are assigned to that role.</p>",
"smithy.api#jsonName": "sessionName"
}
}
},
"traits": {
Expand Down Expand Up @@ -8931,7 +8938,7 @@
}
],
"traits": {
"smithy.api#documentation": "<p>Lists tags for a resource. Tagging is currently supported for detectors, finding filters,\n IP sets, and threat intel sets, with a limit of 50 tags per resource. When invoked, this\n operation returns all assigned tags for a given resource.</p>",
"smithy.api#documentation": "<p>Lists tags for a resource. Tagging is currently supported for detectors, finding filters,\n IP sets, threat intel sets, publishing destination, with a limit of 50 tags per resource. When invoked, this\n operation returns all assigned tags for a given resource.</p>",
"smithy.api#http": {
"method": "GET",
"uri": "/tags/{ResourceArn}",
Expand Down Expand Up @@ -11772,6 +11779,12 @@
"smithy.api#documentation": "<p>Additional information about the generated finding.</p>"
}
},
"com.amazonaws.guardduty#SessionNameList": {
"type": "list",
"member": {
"target": "com.amazonaws.guardduty#String"
}
},
"com.amazonaws.guardduty#SortCriteria": {
"type": "structure",
"members": {
Expand Down

0 comments on commit bdf8f40

Please sign in to comment.