Skip to content

Commit 0251678

Browse files
author
awstools
committed
feat(client-guardduty): Added default pagination value for ListMalwareProtectionPlans API and updated UpdateFindingsFeedback API
1 parent 4487485 commit 0251678

File tree

4 files changed

+23
-11
lines changed

4 files changed

+23
-11
lines changed

clients/client-guardduty/src/commands/UpdateFindingsFeedbackCommand.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
66

77
import { commonParams } from "../endpoint/EndpointParameters";
88
import { GuardDutyClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GuardDutyClient";
9-
import { UpdateFindingsFeedbackRequest, UpdateFindingsFeedbackResponse } from "../models/models_1";
9+
import {
10+
UpdateFindingsFeedbackRequest,
11+
UpdateFindingsFeedbackRequestFilterSensitiveLog,
12+
UpdateFindingsFeedbackResponse,
13+
} from "../models/models_1";
1014
import { de_UpdateFindingsFeedbackCommand, se_UpdateFindingsFeedbackCommand } from "../protocols/Aws_restJson1";
1115

1216
/**
@@ -86,7 +90,7 @@ export class UpdateFindingsFeedbackCommand extends $Command
8690
})
8791
.s("GuardDutyAPIService", "UpdateFindingsFeedback", {})
8892
.n("GuardDutyClient", "UpdateFindingsFeedbackCommand")
89-
.f(void 0, void 0)
93+
.f(UpdateFindingsFeedbackRequestFilterSensitiveLog, void 0)
9094
.ser(se_UpdateFindingsFeedbackCommand)
9195
.de(de_UpdateFindingsFeedbackCommand)
9296
.build() {

clients/client-guardduty/src/endpoint/ruleset.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ e="endpoint",
1818
f="tree",
1919
g="PartitionResult",
2020
h="getAttr",
21-
i={[u]:false,"type":"String"},
22-
j={[u]:true,"default":false,"type":"Boolean"},
21+
i={[u]:false,"type":"string"},
22+
j={[u]:true,"default":false,"type":"boolean"},
2323
k={[x]:"Endpoint"},
2424
l={[v]:c,[w]:[{[x]:"UseFIPS"},true]},
2525
m={[v]:c,[w]:[{[x]:"UseDualStack"},true]},

clients/client-guardduty/src/models/models_1.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2220,7 +2220,7 @@ export interface ListMalwareProtectionPlansRequest {
22202220
* of this parameter to null on your first call to the list action.
22212221
* For subsequent calls to the action, fill nextToken in the request
22222222
* with the value of <code>NextToken</code> from the previous response to
2223-
* continue listing data.</p>
2223+
* continue listing data. The default page size is 100 plans.</p>
22242224
* @public
22252225
*/
22262226
NextToken?: string | undefined;
@@ -3591,3 +3591,11 @@ export const ListMembersResponseFilterSensitiveLog = (obj: ListMembersResponse):
35913591
...obj,
35923592
...(obj.Members && { Members: obj.Members.map((item) => MemberFilterSensitiveLog(item)) }),
35933593
});
3594+
3595+
/**
3596+
* @internal
3597+
*/
3598+
export const UpdateFindingsFeedbackRequestFilterSensitiveLog = (obj: UpdateFindingsFeedbackRequest): any => ({
3599+
...obj,
3600+
...(obj.Comments && { Comments: SENSITIVE_STRING }),
3601+
});

codegen/sdk-codegen/aws-models/guardduty.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8464,27 +8464,27 @@
84648464
"builtIn": "AWS::Region",
84658465
"required": false,
84668466
"documentation": "The AWS region used to dispatch the request.",
8467-
"type": "String"
8467+
"type": "string"
84688468
},
84698469
"UseDualStack": {
84708470
"builtIn": "AWS::UseDualStack",
84718471
"required": true,
84728472
"default": false,
84738473
"documentation": "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",
8474-
"type": "Boolean"
8474+
"type": "boolean"
84758475
},
84768476
"UseFIPS": {
84778477
"builtIn": "AWS::UseFIPS",
84788478
"required": true,
84798479
"default": false,
84808480
"documentation": "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",
8481-
"type": "Boolean"
8481+
"type": "boolean"
84828482
},
84838483
"Endpoint": {
84848484
"builtIn": "SDK::Endpoint",
84858485
"required": false,
84868486
"documentation": "Override the endpoint used to send this request",
8487-
"type": "String"
8487+
"type": "string"
84888488
}
84898489
},
84908490
"rules": [
@@ -11330,7 +11330,7 @@
1133011330
"NextToken": {
1133111331
"target": "com.amazonaws.guardduty#String",
1133211332
"traits": {
11333-
"smithy.api#documentation": "<p>You can use this parameter when paginating results. Set the value \n of this parameter to null on your first call to the list action. \n For subsequent calls to the action, fill nextToken in the request \n with the value of <code>NextToken</code> from the previous response to \n continue listing data.</p>",
11333+
"smithy.api#documentation": "<p>You can use this parameter when paginating results. Set the value \n of this parameter to null on your first call to the list action. \n For subsequent calls to the action, fill nextToken in the request \n with the value of <code>NextToken</code> from the previous response to \n continue listing data. The default page size is 100 plans.</p>",
1133411334
"smithy.api#httpQuery": "nextToken",
1133511335
"smithy.api#jsonName": "nextToken"
1133611336
}
@@ -17500,7 +17500,7 @@
1750017500
}
1750117501
},
1750217502
"Comments": {
17503-
"target": "com.amazonaws.guardduty#String",
17503+
"target": "com.amazonaws.guardduty#SensitiveString",
1750417504
"traits": {
1750517505
"smithy.api#documentation": "<p>Additional feedback about the GuardDuty findings.</p>",
1750617506
"smithy.api#jsonName": "comments"

0 commit comments

Comments
 (0)