@aws-sdk/client-guardduty 3.910.0 → 3.911.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,6 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
4
  const u = "required", v = "fn", w = "argv", x = "ref";
5
- const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "getAttr", i = { [u]: false, "type": "String" }, j = { [u]: true, "default": false, "type": "Boolean" }, k = { [x]: "Endpoint" }, l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] }, m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] }, n = {}, o = { [v]: h, [w]: [{ [x]: g }, "supportsFIPS"] }, p = { [x]: g }, q = { [v]: c, [w]: [true, { [v]: h, [w]: [p, "supportsDualStack"] }] }, r = [l], s = [m], t = [{ [x]: "Region" }];
5
+ const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "getAttr", i = { [u]: false, "type": "string" }, j = { [u]: true, "default": false, "type": "boolean" }, k = { [x]: "Endpoint" }, l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] }, m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] }, n = {}, o = { [v]: h, [w]: [{ [x]: g }, "supportsFIPS"] }, p = { [x]: g }, q = { [v]: c, [w]: [true, { [v]: h, [w]: [p, "supportsDualStack"] }] }, r = [l], s = [m], t = [{ [x]: "Region" }];
6
6
  const _data = { version: "1.0", parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i }, rules: [{ conditions: [{ [v]: b, [w]: [k] }], rules: [{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: k, properties: n, headers: n }, type: e }], type: f }, { conditions: [{ [v]: b, [w]: t }], rules: [{ conditions: [{ [v]: "aws.partition", [w]: t, assign: g }], rules: [{ conditions: [l, m], rules: [{ conditions: [{ [v]: c, [w]: [a, o] }, q], rules: [{ endpoint: { url: "https://guardduty-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: r, rules: [{ conditions: [{ [v]: c, [w]: [o, a] }], rules: [{ conditions: [{ [v]: "stringEquals", [w]: [{ [v]: h, [w]: [p, "name"] }, "aws-us-gov"] }], endpoint: { url: "https://guardduty.{Region}.amazonaws.com", properties: n, headers: n }, type: e }, { endpoint: { url: "https://guardduty-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: s, rules: [{ conditions: [q], rules: [{ endpoint: { url: "https://guardduty.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://guardduty.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
7
7
  exports.ruleSet = _data;
package/dist-cjs/index.js CHANGED
@@ -6118,6 +6118,10 @@ const ListMembersResponseFilterSensitiveLog = (obj) => ({
6118
6118
  ...obj,
6119
6119
  ...(obj.Members && { Members: obj.Members.map((item) => MemberFilterSensitiveLog(item)) }),
6120
6120
  });
6121
+ const UpdateFindingsFeedbackRequestFilterSensitiveLog = (obj) => ({
6122
+ ...obj,
6123
+ ...(obj.Comments && { Comments: smithyClient.SENSITIVE_STRING }),
6124
+ });
6121
6125
 
6122
6126
  class GetFindingsCommand extends smithyClient.Command
6123
6127
  .classBuilder()
@@ -6776,7 +6780,7 @@ class UpdateFindingsFeedbackCommand extends smithyClient.Command
6776
6780
  })
6777
6781
  .s("GuardDutyAPIService", "UpdateFindingsFeedback", {})
6778
6782
  .n("GuardDutyClient", "UpdateFindingsFeedbackCommand")
6779
- .f(void 0, void 0)
6783
+ .f(UpdateFindingsFeedbackRequestFilterSensitiveLog, void 0)
6780
6784
  .ser(se_UpdateFindingsFeedbackCommand)
6781
6785
  .de(de_UpdateFindingsFeedbackCommand)
6782
6786
  .build() {
@@ -7227,6 +7231,7 @@ exports.UntagResourceCommand = UntagResourceCommand;
7227
7231
  exports.UpdateDetectorCommand = UpdateDetectorCommand;
7228
7232
  exports.UpdateFilterCommand = UpdateFilterCommand;
7229
7233
  exports.UpdateFindingsFeedbackCommand = UpdateFindingsFeedbackCommand;
7234
+ exports.UpdateFindingsFeedbackRequestFilterSensitiveLog = UpdateFindingsFeedbackRequestFilterSensitiveLog;
7230
7235
  exports.UpdateIPSetCommand = UpdateIPSetCommand;
7231
7236
  exports.UpdateMalwareProtectionPlanCommand = UpdateMalwareProtectionPlanCommand;
7232
7237
  exports.UpdateMalwareScanSettingsCommand = UpdateMalwareScanSettingsCommand;
@@ -2,6 +2,7 @@ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@smithy/middleware-serde";
3
3
  import { Command as $Command } from "@smithy/smithy-client";
4
4
  import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { UpdateFindingsFeedbackRequestFilterSensitiveLog, } from "../models/models_1";
5
6
  import { de_UpdateFindingsFeedbackCommand, se_UpdateFindingsFeedbackCommand } from "../protocols/Aws_restJson1";
6
7
  export { $Command };
7
8
  export class UpdateFindingsFeedbackCommand extends $Command
@@ -15,7 +16,7 @@ export class UpdateFindingsFeedbackCommand extends $Command
15
16
  })
16
17
  .s("GuardDutyAPIService", "UpdateFindingsFeedback", {})
17
18
  .n("GuardDutyClient", "UpdateFindingsFeedbackCommand")
18
- .f(void 0, void 0)
19
+ .f(UpdateFindingsFeedbackRequestFilterSensitiveLog, void 0)
19
20
  .ser(se_UpdateFindingsFeedbackCommand)
20
21
  .de(de_UpdateFindingsFeedbackCommand)
21
22
  .build() {
@@ -1,4 +1,4 @@
1
1
  const u = "required", v = "fn", w = "argv", x = "ref";
2
- const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "getAttr", i = { [u]: false, "type": "String" }, j = { [u]: true, "default": false, "type": "Boolean" }, k = { [x]: "Endpoint" }, l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] }, m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] }, n = {}, o = { [v]: h, [w]: [{ [x]: g }, "supportsFIPS"] }, p = { [x]: g }, q = { [v]: c, [w]: [true, { [v]: h, [w]: [p, "supportsDualStack"] }] }, r = [l], s = [m], t = [{ [x]: "Region" }];
2
+ const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "getAttr", i = { [u]: false, "type": "string" }, j = { [u]: true, "default": false, "type": "boolean" }, k = { [x]: "Endpoint" }, l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] }, m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] }, n = {}, o = { [v]: h, [w]: [{ [x]: g }, "supportsFIPS"] }, p = { [x]: g }, q = { [v]: c, [w]: [true, { [v]: h, [w]: [p, "supportsDualStack"] }] }, r = [l], s = [m], t = [{ [x]: "Region" }];
3
3
  const _data = { version: "1.0", parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i }, rules: [{ conditions: [{ [v]: b, [w]: [k] }], rules: [{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: k, properties: n, headers: n }, type: e }], type: f }, { conditions: [{ [v]: b, [w]: t }], rules: [{ conditions: [{ [v]: "aws.partition", [w]: t, assign: g }], rules: [{ conditions: [l, m], rules: [{ conditions: [{ [v]: c, [w]: [a, o] }, q], rules: [{ endpoint: { url: "https://guardduty-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: r, rules: [{ conditions: [{ [v]: c, [w]: [o, a] }], rules: [{ conditions: [{ [v]: "stringEquals", [w]: [{ [v]: h, [w]: [p, "name"] }, "aws-us-gov"] }], endpoint: { url: "https://guardduty.{Region}.amazonaws.com", properties: n, headers: n }, type: e }, { endpoint: { url: "https://guardduty-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: s, rules: [{ conditions: [q], rules: [{ endpoint: { url: "https://guardduty.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://guardduty.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] };
4
4
  export const ruleSet = _data;
@@ -93,3 +93,7 @@ export const ListMembersResponseFilterSensitiveLog = (obj) => ({
93
93
  ...obj,
94
94
  ...(obj.Members && { Members: obj.Members.map((item) => MemberFilterSensitiveLog(item)) }),
95
95
  });
96
+ export const UpdateFindingsFeedbackRequestFilterSensitiveLog = (obj) => ({
97
+ ...obj,
98
+ ...(obj.Comments && { Comments: SENSITIVE_STRING }),
99
+ });
@@ -1941,7 +1941,7 @@ export interface ListMalwareProtectionPlansRequest {
1941
1941
  * of this parameter to null on your first call to the list action.
1942
1942
  * For subsequent calls to the action, fill nextToken in the request
1943
1943
  * with the value of <code>NextToken</code> from the previous response to
1944
- * continue listing data.</p>
1944
+ * continue listing data. The default page size is 100 plans.</p>
1945
1945
  * @public
1946
1946
  */
1947
1947
  NextToken?: string | undefined;
@@ -3166,3 +3166,7 @@ export declare const GetMembersResponseFilterSensitiveLog: (obj: GetMembersRespo
3166
3166
  * @internal
3167
3167
  */
3168
3168
  export declare const ListMembersResponseFilterSensitiveLog: (obj: ListMembersResponse) => any;
3169
+ /**
3170
+ * @internal
3171
+ */
3172
+ export declare const UpdateFindingsFeedbackRequestFilterSensitiveLog: (obj: UpdateFindingsFeedbackRequest) => any;
@@ -756,3 +756,6 @@ export declare const GetMembersResponseFilterSensitiveLog: (
756
756
  export declare const ListMembersResponseFilterSensitiveLog: (
757
757
  obj: ListMembersResponse
758
758
  ) => any;
759
+ export declare const UpdateFindingsFeedbackRequestFilterSensitiveLog: (
760
+ obj: UpdateFindingsFeedbackRequest
761
+ ) => any;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-guardduty",
3
3
  "description": "AWS SDK for JavaScript Guardduty Client for Node.js, Browser and React Native",
4
- "version": "3.910.0",
4
+ "version": "3.911.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-guardduty",
@@ -20,17 +20,17 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.910.0",
24
- "@aws-sdk/credential-provider-node": "3.910.0",
23
+ "@aws-sdk/core": "3.911.0",
24
+ "@aws-sdk/credential-provider-node": "3.911.0",
25
25
  "@aws-sdk/middleware-host-header": "3.910.0",
26
26
  "@aws-sdk/middleware-logger": "3.910.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.910.0",
28
- "@aws-sdk/middleware-user-agent": "3.910.0",
28
+ "@aws-sdk/middleware-user-agent": "3.911.0",
29
29
  "@aws-sdk/region-config-resolver": "3.910.0",
30
30
  "@aws-sdk/types": "3.910.0",
31
31
  "@aws-sdk/util-endpoints": "3.910.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.910.0",
33
- "@aws-sdk/util-user-agent-node": "3.910.0",
33
+ "@aws-sdk/util-user-agent-node": "3.911.0",
34
34
  "@smithy/config-resolver": "^4.3.2",
35
35
  "@smithy/core": "^3.16.1",
36
36
  "@smithy/fetch-http-handler": "^5.3.3",