@aws-sdk/client-guardduty 3.185.0 → 3.188.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.
Files changed (97) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +1 -1
  3. package/dist-cjs/models/models_0.js +21 -17
  4. package/dist-cjs/protocols/Aws_restJson1.js +11 -0
  5. package/dist-es/GuardDuty.js +262 -269
  6. package/dist-es/GuardDutyClient.js +22 -28
  7. package/dist-es/commands/AcceptAdministratorInvitationCommand.js +21 -28
  8. package/dist-es/commands/AcceptInvitationCommand.js +21 -28
  9. package/dist-es/commands/ArchiveFindingsCommand.js +21 -28
  10. package/dist-es/commands/CreateDetectorCommand.js +21 -28
  11. package/dist-es/commands/CreateFilterCommand.js +21 -28
  12. package/dist-es/commands/CreateIPSetCommand.js +21 -28
  13. package/dist-es/commands/CreateMembersCommand.js +21 -28
  14. package/dist-es/commands/CreatePublishingDestinationCommand.js +21 -28
  15. package/dist-es/commands/CreateSampleFindingsCommand.js +21 -28
  16. package/dist-es/commands/CreateThreatIntelSetCommand.js +21 -28
  17. package/dist-es/commands/DeclineInvitationsCommand.js +21 -28
  18. package/dist-es/commands/DeleteDetectorCommand.js +21 -28
  19. package/dist-es/commands/DeleteFilterCommand.js +21 -28
  20. package/dist-es/commands/DeleteIPSetCommand.js +21 -28
  21. package/dist-es/commands/DeleteInvitationsCommand.js +21 -28
  22. package/dist-es/commands/DeleteMembersCommand.js +21 -28
  23. package/dist-es/commands/DeletePublishingDestinationCommand.js +21 -28
  24. package/dist-es/commands/DeleteThreatIntelSetCommand.js +21 -28
  25. package/dist-es/commands/DescribeMalwareScansCommand.js +21 -28
  26. package/dist-es/commands/DescribeOrganizationConfigurationCommand.js +21 -28
  27. package/dist-es/commands/DescribePublishingDestinationCommand.js +21 -28
  28. package/dist-es/commands/DisableOrganizationAdminAccountCommand.js +21 -28
  29. package/dist-es/commands/DisassociateFromAdministratorAccountCommand.js +21 -28
  30. package/dist-es/commands/DisassociateFromMasterAccountCommand.js +21 -28
  31. package/dist-es/commands/DisassociateMembersCommand.js +21 -28
  32. package/dist-es/commands/EnableOrganizationAdminAccountCommand.js +21 -28
  33. package/dist-es/commands/GetAdministratorAccountCommand.js +21 -28
  34. package/dist-es/commands/GetDetectorCommand.js +21 -28
  35. package/dist-es/commands/GetFilterCommand.js +21 -28
  36. package/dist-es/commands/GetFindingsCommand.js +21 -28
  37. package/dist-es/commands/GetFindingsStatisticsCommand.js +21 -28
  38. package/dist-es/commands/GetIPSetCommand.js +21 -28
  39. package/dist-es/commands/GetInvitationsCountCommand.js +21 -28
  40. package/dist-es/commands/GetMalwareScanSettingsCommand.js +21 -28
  41. package/dist-es/commands/GetMasterAccountCommand.js +21 -28
  42. package/dist-es/commands/GetMemberDetectorsCommand.js +21 -28
  43. package/dist-es/commands/GetMembersCommand.js +21 -28
  44. package/dist-es/commands/GetRemainingFreeTrialDaysCommand.js +21 -28
  45. package/dist-es/commands/GetThreatIntelSetCommand.js +21 -28
  46. package/dist-es/commands/GetUsageStatisticsCommand.js +21 -28
  47. package/dist-es/commands/InviteMembersCommand.js +21 -28
  48. package/dist-es/commands/ListDetectorsCommand.js +21 -28
  49. package/dist-es/commands/ListFiltersCommand.js +21 -28
  50. package/dist-es/commands/ListFindingsCommand.js +21 -28
  51. package/dist-es/commands/ListIPSetsCommand.js +21 -28
  52. package/dist-es/commands/ListInvitationsCommand.js +21 -28
  53. package/dist-es/commands/ListMembersCommand.js +21 -28
  54. package/dist-es/commands/ListOrganizationAdminAccountsCommand.js +21 -28
  55. package/dist-es/commands/ListPublishingDestinationsCommand.js +21 -28
  56. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  57. package/dist-es/commands/ListThreatIntelSetsCommand.js +21 -28
  58. package/dist-es/commands/StartMonitoringMembersCommand.js +21 -28
  59. package/dist-es/commands/StopMonitoringMembersCommand.js +21 -28
  60. package/dist-es/commands/TagResourceCommand.js +21 -28
  61. package/dist-es/commands/UnarchiveFindingsCommand.js +21 -28
  62. package/dist-es/commands/UntagResourceCommand.js +21 -28
  63. package/dist-es/commands/UpdateDetectorCommand.js +21 -28
  64. package/dist-es/commands/UpdateFilterCommand.js +21 -28
  65. package/dist-es/commands/UpdateFindingsFeedbackCommand.js +21 -28
  66. package/dist-es/commands/UpdateIPSetCommand.js +21 -28
  67. package/dist-es/commands/UpdateMalwareScanSettingsCommand.js +21 -28
  68. package/dist-es/commands/UpdateMemberDetectorsCommand.js +21 -28
  69. package/dist-es/commands/UpdateOrganizationConfigurationCommand.js +21 -28
  70. package/dist-es/commands/UpdatePublishingDestinationCommand.js +21 -28
  71. package/dist-es/commands/UpdateThreatIntelSetCommand.js +21 -28
  72. package/dist-es/endpoints.js +8 -8
  73. package/dist-es/models/GuardDutyServiceException.js +5 -10
  74. package/dist-es/models/models_0.js +800 -284
  75. package/dist-es/pagination/DescribeMalwareScansPaginator.js +25 -68
  76. package/dist-es/pagination/GetUsageStatisticsPaginator.js +25 -68
  77. package/dist-es/pagination/ListDetectorsPaginator.js +25 -68
  78. package/dist-es/pagination/ListFiltersPaginator.js +25 -68
  79. package/dist-es/pagination/ListFindingsPaginator.js +25 -68
  80. package/dist-es/pagination/ListIPSetsPaginator.js +25 -68
  81. package/dist-es/pagination/ListInvitationsPaginator.js +25 -68
  82. package/dist-es/pagination/ListMembersPaginator.js +25 -68
  83. package/dist-es/pagination/ListOrganizationAdminAccountsPaginator.js +25 -68
  84. package/dist-es/pagination/ListPublishingDestinationsPaginator.js +25 -68
  85. package/dist-es/pagination/ListThreatIntelSetsPaginator.js +25 -68
  86. package/dist-es/protocols/Aws_restJson1.js +4294 -6000
  87. package/dist-es/runtimeConfig.browser.js +26 -12
  88. package/dist-es/runtimeConfig.js +30 -12
  89. package/dist-es/runtimeConfig.native.js +8 -5
  90. package/dist-es/runtimeConfig.shared.js +8 -11
  91. package/dist-types/GuardDuty.d.ts +4 -4
  92. package/dist-types/GuardDutyClient.d.ts +1 -1
  93. package/dist-types/commands/DescribeMalwareScansCommand.d.ts +2 -1
  94. package/dist-types/commands/DisassociateMembersCommand.d.ts +1 -2
  95. package/dist-types/models/models_0.d.ts +78 -48
  96. package/dist-types/ts3.4/models/models_0.d.ts +27 -19
  97. package/package.json +33 -33
@@ -1,4 +1,3 @@
1
- import { __assign, __awaiter, __generator } from "tslib";
2
1
  import packageInfo from "../package.json";
3
2
  import { Sha256 } from "@aws-crypto/sha256-browser";
4
3
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
@@ -12,15 +11,30 @@ import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
12
11
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
13
12
  import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
14
13
  import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
15
- export var getRuntimeConfig = function (config) {
16
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
17
- var defaultsMode = resolveDefaultsModeConfig(config);
18
- var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
19
- var clientSharedValues = getSharedRuntimeConfig(config);
20
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
21
- switch (_a.label) {
22
- case 0: return [4, defaultConfigProvider()];
23
- case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
24
- }
25
- }); }); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
14
+ export const getRuntimeConfig = (config) => {
15
+ const defaultsMode = resolveDefaultsModeConfig(config);
16
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
17
+ const clientSharedValues = getSharedRuntimeConfig(config);
18
+ return {
19
+ ...clientSharedValues,
20
+ ...config,
21
+ runtime: "browser",
22
+ defaultsMode,
23
+ base64Decoder: config?.base64Decoder ?? fromBase64,
24
+ base64Encoder: config?.base64Encoder ?? toBase64,
25
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
26
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
27
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
28
+ defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
29
+ maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
30
+ region: config?.region ?? invalidProvider("Region is missing"),
31
+ requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
32
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
33
+ sha256: config?.sha256 ?? Sha256,
34
+ streamCollector: config?.streamCollector ?? streamCollector,
35
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
36
+ useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
37
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
38
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
39
+ };
26
40
  };
@@ -1,4 +1,3 @@
1
- import { __assign, __awaiter, __generator } from "tslib";
2
1
  import packageInfo from "../package.json";
3
2
  import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
4
3
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
@@ -15,16 +14,35 @@ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shar
15
14
  import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
16
15
  import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
17
16
  import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
18
- export var getRuntimeConfig = function (config) {
19
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
17
+ export const getRuntimeConfig = (config) => {
20
18
  emitWarningIfUnsupportedVersion(process.version);
21
- var defaultsMode = resolveDefaultsModeConfig(config);
22
- var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
23
- var clientSharedValues = getSharedRuntimeConfig(config);
24
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
25
- switch (_a.label) {
26
- case 0: return [4, defaultConfigProvider()];
27
- case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
28
- }
29
- }); }); } })), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
19
+ const defaultsMode = resolveDefaultsModeConfig(config);
20
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
21
+ const clientSharedValues = getSharedRuntimeConfig(config);
22
+ return {
23
+ ...clientSharedValues,
24
+ ...config,
25
+ runtime: "node",
26
+ defaultsMode,
27
+ base64Decoder: config?.base64Decoder ?? fromBase64,
28
+ base64Encoder: config?.base64Encoder ?? toBase64,
29
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
30
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider),
31
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
32
+ defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
33
+ maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
34
+ region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
35
+ requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
36
+ retryMode: config?.retryMode ??
37
+ loadNodeConfig({
38
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
39
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
40
+ }),
41
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
42
+ streamCollector: config?.streamCollector ?? streamCollector,
43
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
44
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
45
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
46
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
47
+ };
30
48
  };
@@ -1,8 +1,11 @@
1
- import { __assign } from "tslib";
2
1
  import { Sha256 } from "@aws-crypto/sha256-js";
3
2
  import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
4
- export var getRuntimeConfig = function (config) {
5
- var _a;
6
- var browserDefaults = getBrowserRuntimeConfig(config);
7
- return __assign(__assign(__assign({}, browserDefaults), config), { runtime: "react-native", sha256: (_a = config === null || config === void 0 ? void 0 : config.sha256) !== null && _a !== void 0 ? _a : Sha256 });
3
+ export const getRuntimeConfig = (config) => {
4
+ const browserDefaults = getBrowserRuntimeConfig(config);
5
+ return {
6
+ ...browserDefaults,
7
+ ...config,
8
+ runtime: "react-native",
9
+ sha256: config?.sha256 ?? Sha256,
10
+ };
8
11
  };
@@ -1,13 +1,10 @@
1
1
  import { parseUrl } from "@aws-sdk/url-parser";
2
2
  import { defaultRegionInfoProvider } from "./endpoints";
3
- export var getRuntimeConfig = function (config) {
4
- var _a, _b, _c, _d, _e;
5
- return ({
6
- apiVersion: "2017-11-28",
7
- disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false,
8
- logger: (_b = config === null || config === void 0 ? void 0 : config.logger) !== null && _b !== void 0 ? _b : {},
9
- regionInfoProvider: (_c = config === null || config === void 0 ? void 0 : config.regionInfoProvider) !== null && _c !== void 0 ? _c : defaultRegionInfoProvider,
10
- serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "GuardDuty",
11
- urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : parseUrl,
12
- });
13
- };
3
+ export const getRuntimeConfig = (config) => ({
4
+ apiVersion: "2017-11-28",
5
+ disableHostPrefix: config?.disableHostPrefix ?? false,
6
+ logger: config?.logger ?? {},
7
+ regionInfoProvider: config?.regionInfoProvider ?? defaultRegionInfoProvider,
8
+ serviceId: config?.serviceId ?? "GuardDuty",
9
+ urlParser: config?.urlParser ?? parseUrl,
10
+ });
@@ -67,7 +67,7 @@ import { UpdateThreatIntelSetCommandInput, UpdateThreatIntelSetCommandOutput } f
67
67
  import { GuardDutyClient } from "./GuardDutyClient";
68
68
  /**
69
69
  * <p>Amazon GuardDuty is a continuous security monitoring service that analyzes and processes
70
- * the following data sources: VPC Flow Logs, AWS CloudTrail management event logs, CloudTrail S3 data event
70
+ * the following data sources: VPC flow logs, Amazon Web Services CloudTrail management event logs, CloudTrail S3 data event
71
71
  * logs, EKS audit logs, and DNS logs.
72
72
  * It uses threat intelligence
73
73
  * feeds (such as lists of malicious IPs and domains) and machine learning to identify
@@ -228,7 +228,8 @@ export declare class GuardDuty extends GuardDutyClient {
228
228
  deleteThreatIntelSet(args: DeleteThreatIntelSetCommandInput, cb: (err: any, data?: DeleteThreatIntelSetCommandOutput) => void): void;
229
229
  deleteThreatIntelSet(args: DeleteThreatIntelSetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteThreatIntelSetCommandOutput) => void): void;
230
230
  /**
231
- * <p>Returns a list of malware scans.</p>
231
+ * <p>Returns a list of malware scans. Each member account can view the malware scans for their
232
+ * own accounts. An administrator can view the malware scans for all the member accounts.</p>
232
233
  */
233
234
  describeMalwareScans(args: DescribeMalwareScansCommandInput, options?: __HttpHandlerOptions): Promise<DescribeMalwareScansCommandOutput>;
234
235
  describeMalwareScans(args: DescribeMalwareScansCommandInput, cb: (err: any, data?: DescribeMalwareScansCommandOutput) => void): void;
@@ -269,8 +270,7 @@ export declare class GuardDuty extends GuardDutyClient {
269
270
  disassociateFromMasterAccount(args: DisassociateFromMasterAccountCommandInput, cb: (err: any, data?: DisassociateFromMasterAccountCommandOutput) => void): void;
270
271
  disassociateFromMasterAccount(args: DisassociateFromMasterAccountCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisassociateFromMasterAccountCommandOutput) => void): void;
271
272
  /**
272
- * <p>Disassociates GuardDuty member accounts (to the current GuardDuty administrator account)
273
- * specified by the account IDs.</p>
273
+ * <p>Disassociates GuardDuty member accounts (to the current administrator account) specified by the account IDs.</p>
274
274
  */
275
275
  disassociateMembers(args: DisassociateMembersCommandInput, options?: __HttpHandlerOptions): Promise<DisassociateMembersCommandOutput>;
276
276
  disassociateMembers(args: DisassociateMembersCommandInput, cb: (err: any, data?: DisassociateMembersCommandOutput) => void): void;
@@ -192,7 +192,7 @@ export interface GuardDutyClientResolvedConfig extends GuardDutyClientResolvedCo
192
192
  }
193
193
  /**
194
194
  * <p>Amazon GuardDuty is a continuous security monitoring service that analyzes and processes
195
- * the following data sources: VPC Flow Logs, AWS CloudTrail management event logs, CloudTrail S3 data event
195
+ * the following data sources: VPC flow logs, Amazon Web Services CloudTrail management event logs, CloudTrail S3 data event
196
196
  * logs, EKS audit logs, and DNS logs.
197
197
  * It uses threat intelligence
198
198
  * feeds (such as lists of malicious IPs and domains) and machine learning to identify
@@ -7,7 +7,8 @@ export interface DescribeMalwareScansCommandInput extends DescribeMalwareScansRe
7
7
  export interface DescribeMalwareScansCommandOutput extends DescribeMalwareScansResponse, __MetadataBearer {
8
8
  }
9
9
  /**
10
- * <p>Returns a list of malware scans.</p>
10
+ * <p>Returns a list of malware scans. Each member account can view the malware scans for their
11
+ * own accounts. An administrator can view the malware scans for all the member accounts.</p>
11
12
  * @example
12
13
  * Use a bare-bones client and the command you need to make an API call.
13
14
  * ```javascript
@@ -7,8 +7,7 @@ export interface DisassociateMembersCommandInput extends DisassociateMembersRequ
7
7
  export interface DisassociateMembersCommandOutput extends DisassociateMembersResponse, __MetadataBearer {
8
8
  }
9
9
  /**
10
- * <p>Disassociates GuardDuty member accounts (to the current GuardDuty administrator account)
11
- * specified by the account IDs.</p>
10
+ * <p>Disassociates GuardDuty member accounts (to the current administrator account) specified by the account IDs.</p>
12
11
  * @example
13
12
  * Use a bare-bones client and the command you need to make an API call.
14
13
  * ```javascript
@@ -151,7 +151,7 @@ export interface MalwareProtectionDataSourceFreeTrial {
151
151
  */
152
152
  export interface DataSourcesFreeTrial {
153
153
  /**
154
- * <p>Describes whether any AWS CloudTrail management event logs are enabled as data sources.</p>
154
+ * <p>Describes whether any Amazon Web Services CloudTrail management event logs are enabled as data sources.</p>
155
155
  */
156
156
  CloudTrail?: DataSourceFreeTrial;
157
157
  /**
@@ -863,11 +863,60 @@ export interface CreateDetectorRequest {
863
863
  */
864
864
  Tags?: Record<string, string>;
865
865
  }
866
+ /**
867
+ * <p>Describes the configuration of scanning EBS volumes as a data source.</p>
868
+ */
869
+ export interface EbsVolumesResult {
870
+ /**
871
+ * <p>Describes whether scanning EBS volumes is enabled as a data source.</p>
872
+ */
873
+ Status?: DataSourceStatus | string;
874
+ /**
875
+ * <p>Specifies the reason why scanning EBS volumes (Malware Protection) was not enabled as a data source.</p>
876
+ */
877
+ Reason?: string;
878
+ }
879
+ /**
880
+ * <p>An object that contains information on the status of whether Malware Protection for EC2 instances with findings will be enabled as a data source.</p>
881
+ */
882
+ export interface ScanEc2InstanceWithFindingsResult {
883
+ /**
884
+ * <p>Describes the configuration of scanning EBS volumes as a data source.</p>
885
+ */
886
+ EbsVolumes?: EbsVolumesResult;
887
+ }
888
+ /**
889
+ * <p>An object that contains information on the status of all Malware Protection data sources.</p>
890
+ */
891
+ export interface MalwareProtectionConfigurationResult {
892
+ /**
893
+ * <p>Describes the configuration of Malware Protection for EC2 instances with findings.</p>
894
+ */
895
+ ScanEc2InstanceWithFindings?: ScanEc2InstanceWithFindingsResult;
896
+ /**
897
+ * <p>The GuardDuty Malware Protection service role.</p>
898
+ */
899
+ ServiceRole?: string;
900
+ }
901
+ /**
902
+ * <p>Specifies the names of the data sources that couldn't be enabled.</p>
903
+ */
904
+ export interface UnprocessedDataSourcesResult {
905
+ /**
906
+ * <p>An object that contains information on the status of all Malware Protection data sources.</p>
907
+ */
908
+ MalwareProtection?: MalwareProtectionConfigurationResult;
909
+ }
866
910
  export interface CreateDetectorResponse {
867
911
  /**
868
912
  * <p>The unique ID of the created detector.</p>
869
913
  */
870
914
  DetectorId?: string;
915
+ /**
916
+ * <p>Specifies the data sources that couldn't be enabled when GuardDuty was enabled for the
917
+ * first time.</p>
918
+ */
919
+ UnprocessedDataSources?: UnprocessedDataSourcesResult;
871
920
  }
872
921
  export declare enum FilterAction {
873
922
  ARCHIVE = "ARCHIVE",
@@ -1340,37 +1389,6 @@ export interface KubernetesConfigurationResult {
1340
1389
  */
1341
1390
  AuditLogs: KubernetesAuditLogsConfigurationResult | undefined;
1342
1391
  }
1343
- /**
1344
- * <p>Describes the configuration of scanning EBS volumes as a data source.</p>
1345
- */
1346
- export interface EbsVolumesResult {
1347
- /**
1348
- * <p>Describes whether scanning EBS volumes is enabled as a data source.</p>
1349
- */
1350
- Status?: DataSourceStatus | string;
1351
- }
1352
- /**
1353
- * <p>An object that contains information on the status of whether Malware Protection for EC2 instances with findings will be enabled as a data source.</p>
1354
- */
1355
- export interface ScanEc2InstanceWithFindingsResult {
1356
- /**
1357
- * <p>Describes the configuration of scanning EBS volumes as a data source.</p>
1358
- */
1359
- EbsVolumes?: EbsVolumesResult;
1360
- }
1361
- /**
1362
- * <p>An object that contains information on the status of all Malware Protection data sources.</p>
1363
- */
1364
- export interface MalwareProtectionConfigurationResult {
1365
- /**
1366
- * <p>Describes the configuration of Malware Protection for EC2 instances with findings.</p>
1367
- */
1368
- ScanEc2InstanceWithFindings?: ScanEc2InstanceWithFindingsResult;
1369
- /**
1370
- * <p>The GuardDuty Malware Protection service role.</p>
1371
- */
1372
- ServiceRole?: string;
1373
- }
1374
1392
  /**
1375
1393
  * <p>Describes whether S3 data event logs will be enabled as a data source.</p>
1376
1394
  */
@@ -1551,7 +1569,10 @@ export interface FilterCondition {
1551
1569
  LessThan?: number;
1552
1570
  }
1553
1571
  /**
1554
- * <p>Represents a condition that when matched will be added to the response of the operation.</p>
1572
+ * <p>Represents a condition that when matched will be added to the response of the operation.
1573
+ * Irrespective of using any filter criteria, an administrator account can view the scan
1574
+ * entries for all of its member accounts.
1575
+ * However, each member account can view the scan entries only for their own account.</p>
1555
1576
  */
1556
1577
  export interface FilterCriterion {
1557
1578
  /**
@@ -3043,7 +3064,7 @@ export interface GetMalwareScanSettingsResponse {
3043
3064
  */
3044
3065
  ScanResourceCriteria?: ScanResourceCriteria;
3045
3066
  /**
3046
- * <p>An enum value representing possible snapshot preservations.</p>
3067
+ * <p>An enum value representing possible snapshot preservation settings.</p>
3047
3068
  */
3048
3069
  EbsSnapshotPreservation?: EbsSnapshotPreservation | string;
3049
3070
  }
@@ -3742,7 +3763,12 @@ export interface ListMembersRequest {
3742
3763
  NextToken?: string;
3743
3764
  /**
3744
3765
  * <p>Specifies whether to only return associated members or to return all members (including
3745
- * members who haven't been invited yet or have been disassociated).</p>
3766
+ * members who haven't been invited yet or have been disassociated).
3767
+ * Member accounts must have been previously associated with the GuardDuty administrator account using <a href="https://docs.aws.amazon.com/guardduty/latest/APIReference/API_CreateMembers.html">
3768
+ * <code>Create
3769
+ * Members</code>
3770
+ * </a>.
3771
+ * </p>
3746
3772
  */
3747
3773
  OnlyAssociated?: string;
3748
3774
  }
@@ -4036,7 +4062,7 @@ export interface UpdateMalwareScanSettingsRequest {
4036
4062
  */
4037
4063
  ScanResourceCriteria?: ScanResourceCriteria;
4038
4064
  /**
4039
- * <p>An enum value representing possible snapshot preservations.</p>
4065
+ * <p>An enum value representing possible snapshot preservation settings.</p>
4040
4066
  */
4041
4067
  EbsSnapshotPreservation?: EbsSnapshotPreservation | string;
4042
4068
  }
@@ -4394,6 +4420,22 @@ export declare const DataSourceConfigurationsFilterSensitiveLog: (obj: DataSourc
4394
4420
  * @internal
4395
4421
  */
4396
4422
  export declare const CreateDetectorRequestFilterSensitiveLog: (obj: CreateDetectorRequest) => any;
4423
+ /**
4424
+ * @internal
4425
+ */
4426
+ export declare const EbsVolumesResultFilterSensitiveLog: (obj: EbsVolumesResult) => any;
4427
+ /**
4428
+ * @internal
4429
+ */
4430
+ export declare const ScanEc2InstanceWithFindingsResultFilterSensitiveLog: (obj: ScanEc2InstanceWithFindingsResult) => any;
4431
+ /**
4432
+ * @internal
4433
+ */
4434
+ export declare const MalwareProtectionConfigurationResultFilterSensitiveLog: (obj: MalwareProtectionConfigurationResult) => any;
4435
+ /**
4436
+ * @internal
4437
+ */
4438
+ export declare const UnprocessedDataSourcesResultFilterSensitiveLog: (obj: UnprocessedDataSourcesResult) => any;
4397
4439
  /**
4398
4440
  * @internal
4399
4441
  */
@@ -4474,18 +4516,6 @@ export declare const KubernetesAuditLogsConfigurationResultFilterSensitiveLog: (
4474
4516
  * @internal
4475
4517
  */
4476
4518
  export declare const KubernetesConfigurationResultFilterSensitiveLog: (obj: KubernetesConfigurationResult) => any;
4477
- /**
4478
- * @internal
4479
- */
4480
- export declare const EbsVolumesResultFilterSensitiveLog: (obj: EbsVolumesResult) => any;
4481
- /**
4482
- * @internal
4483
- */
4484
- export declare const ScanEc2InstanceWithFindingsResultFilterSensitiveLog: (obj: ScanEc2InstanceWithFindingsResult) => any;
4485
- /**
4486
- * @internal
4487
- */
4488
- export declare const MalwareProtectionConfigurationResultFilterSensitiveLog: (obj: MalwareProtectionConfigurationResult) => any;
4489
4519
  /**
4490
4520
  * @internal
4491
4521
  */
@@ -264,8 +264,23 @@ export interface CreateDetectorRequest {
264
264
  DataSources?: DataSourceConfigurations;
265
265
  Tags?: Record<string, string>;
266
266
  }
267
+ export interface EbsVolumesResult {
268
+ Status?: DataSourceStatus | string;
269
+ Reason?: string;
270
+ }
271
+ export interface ScanEc2InstanceWithFindingsResult {
272
+ EbsVolumes?: EbsVolumesResult;
273
+ }
274
+ export interface MalwareProtectionConfigurationResult {
275
+ ScanEc2InstanceWithFindings?: ScanEc2InstanceWithFindingsResult;
276
+ ServiceRole?: string;
277
+ }
278
+ export interface UnprocessedDataSourcesResult {
279
+ MalwareProtection?: MalwareProtectionConfigurationResult;
280
+ }
267
281
  export interface CreateDetectorResponse {
268
282
  DetectorId?: string;
283
+ UnprocessedDataSources?: UnprocessedDataSourcesResult;
269
284
  }
270
285
  export declare enum FilterAction {
271
286
  ARCHIVE = "ARCHIVE",
@@ -387,16 +402,6 @@ export interface KubernetesAuditLogsConfigurationResult {
387
402
  export interface KubernetesConfigurationResult {
388
403
  AuditLogs: KubernetesAuditLogsConfigurationResult | undefined;
389
404
  }
390
- export interface EbsVolumesResult {
391
- Status?: DataSourceStatus | string;
392
- }
393
- export interface ScanEc2InstanceWithFindingsResult {
394
- EbsVolumes?: EbsVolumesResult;
395
- }
396
- export interface MalwareProtectionConfigurationResult {
397
- ScanEc2InstanceWithFindings?: ScanEc2InstanceWithFindingsResult;
398
- ServiceRole?: string;
399
- }
400
405
  export interface S3LogsConfigurationResult {
401
406
  Status: DataSourceStatus | string | undefined;
402
407
  }
@@ -1404,6 +1409,18 @@ export declare const DataSourceConfigurationsFilterSensitiveLog: (
1404
1409
  export declare const CreateDetectorRequestFilterSensitiveLog: (
1405
1410
  obj: CreateDetectorRequest
1406
1411
  ) => any;
1412
+ export declare const EbsVolumesResultFilterSensitiveLog: (
1413
+ obj: EbsVolumesResult
1414
+ ) => any;
1415
+ export declare const ScanEc2InstanceWithFindingsResultFilterSensitiveLog: (
1416
+ obj: ScanEc2InstanceWithFindingsResult
1417
+ ) => any;
1418
+ export declare const MalwareProtectionConfigurationResultFilterSensitiveLog: (
1419
+ obj: MalwareProtectionConfigurationResult
1420
+ ) => any;
1421
+ export declare const UnprocessedDataSourcesResultFilterSensitiveLog: (
1422
+ obj: UnprocessedDataSourcesResult
1423
+ ) => any;
1407
1424
  export declare const CreateDetectorResponseFilterSensitiveLog: (
1408
1425
  obj: CreateDetectorResponse
1409
1426
  ) => any;
@@ -1464,15 +1481,6 @@ export declare const KubernetesAuditLogsConfigurationResultFilterSensitiveLog: (
1464
1481
  export declare const KubernetesConfigurationResultFilterSensitiveLog: (
1465
1482
  obj: KubernetesConfigurationResult
1466
1483
  ) => any;
1467
- export declare const EbsVolumesResultFilterSensitiveLog: (
1468
- obj: EbsVolumesResult
1469
- ) => any;
1470
- export declare const ScanEc2InstanceWithFindingsResultFilterSensitiveLog: (
1471
- obj: ScanEc2InstanceWithFindingsResult
1472
- ) => any;
1473
- export declare const MalwareProtectionConfigurationResultFilterSensitiveLog: (
1474
- obj: MalwareProtectionConfigurationResult
1475
- ) => any;
1476
1484
  export declare const S3LogsConfigurationResultFilterSensitiveLog: (
1477
1485
  obj: S3LogsConfigurationResult
1478
1486
  ) => 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.185.0",
4
+ "version": "3.188.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -19,42 +19,42 @@
19
19
  "dependencies": {
20
20
  "@aws-crypto/sha256-browser": "2.0.0",
21
21
  "@aws-crypto/sha256-js": "2.0.0",
22
- "@aws-sdk/client-sts": "3.185.0",
23
- "@aws-sdk/config-resolver": "3.183.0",
24
- "@aws-sdk/credential-provider-node": "3.185.0",
25
- "@aws-sdk/fetch-http-handler": "3.183.0",
26
- "@aws-sdk/hash-node": "3.183.0",
27
- "@aws-sdk/invalid-dependency": "3.183.0",
28
- "@aws-sdk/middleware-content-length": "3.183.0",
29
- "@aws-sdk/middleware-host-header": "3.183.0",
30
- "@aws-sdk/middleware-logger": "3.183.0",
31
- "@aws-sdk/middleware-recursion-detection": "3.183.0",
32
- "@aws-sdk/middleware-retry": "3.185.0",
33
- "@aws-sdk/middleware-serde": "3.183.0",
34
- "@aws-sdk/middleware-signing": "3.183.0",
35
- "@aws-sdk/middleware-stack": "3.183.0",
36
- "@aws-sdk/middleware-user-agent": "3.183.0",
37
- "@aws-sdk/node-config-provider": "3.183.0",
38
- "@aws-sdk/node-http-handler": "3.185.0",
39
- "@aws-sdk/protocol-http": "3.183.0",
40
- "@aws-sdk/smithy-client": "3.183.0",
41
- "@aws-sdk/types": "3.183.0",
42
- "@aws-sdk/url-parser": "3.183.0",
43
- "@aws-sdk/util-base64-browser": "3.183.0",
44
- "@aws-sdk/util-base64-node": "3.183.0",
45
- "@aws-sdk/util-body-length-browser": "3.183.0",
46
- "@aws-sdk/util-body-length-node": "3.183.0",
47
- "@aws-sdk/util-defaults-mode-browser": "3.183.0",
48
- "@aws-sdk/util-defaults-mode-node": "3.183.0",
49
- "@aws-sdk/util-user-agent-browser": "3.183.0",
50
- "@aws-sdk/util-user-agent-node": "3.183.0",
51
- "@aws-sdk/util-utf8-browser": "3.183.0",
52
- "@aws-sdk/util-utf8-node": "3.183.0",
22
+ "@aws-sdk/client-sts": "3.188.0",
23
+ "@aws-sdk/config-resolver": "3.188.0",
24
+ "@aws-sdk/credential-provider-node": "3.188.0",
25
+ "@aws-sdk/fetch-http-handler": "3.188.0",
26
+ "@aws-sdk/hash-node": "3.188.0",
27
+ "@aws-sdk/invalid-dependency": "3.188.0",
28
+ "@aws-sdk/middleware-content-length": "3.188.0",
29
+ "@aws-sdk/middleware-host-header": "3.188.0",
30
+ "@aws-sdk/middleware-logger": "3.188.0",
31
+ "@aws-sdk/middleware-recursion-detection": "3.188.0",
32
+ "@aws-sdk/middleware-retry": "3.188.0",
33
+ "@aws-sdk/middleware-serde": "3.188.0",
34
+ "@aws-sdk/middleware-signing": "3.188.0",
35
+ "@aws-sdk/middleware-stack": "3.188.0",
36
+ "@aws-sdk/middleware-user-agent": "3.188.0",
37
+ "@aws-sdk/node-config-provider": "3.188.0",
38
+ "@aws-sdk/node-http-handler": "3.188.0",
39
+ "@aws-sdk/protocol-http": "3.188.0",
40
+ "@aws-sdk/smithy-client": "3.188.0",
41
+ "@aws-sdk/types": "3.188.0",
42
+ "@aws-sdk/url-parser": "3.188.0",
43
+ "@aws-sdk/util-base64-browser": "3.188.0",
44
+ "@aws-sdk/util-base64-node": "3.188.0",
45
+ "@aws-sdk/util-body-length-browser": "3.188.0",
46
+ "@aws-sdk/util-body-length-node": "3.188.0",
47
+ "@aws-sdk/util-defaults-mode-browser": "3.188.0",
48
+ "@aws-sdk/util-defaults-mode-node": "3.188.0",
49
+ "@aws-sdk/util-user-agent-browser": "3.188.0",
50
+ "@aws-sdk/util-user-agent-node": "3.188.0",
51
+ "@aws-sdk/util-utf8-browser": "3.188.0",
52
+ "@aws-sdk/util-utf8-node": "3.188.0",
53
53
  "tslib": "^2.3.1",
54
54
  "uuid": "^8.3.2"
55
55
  },
56
56
  "devDependencies": {
57
- "@aws-sdk/service-client-documentation-generator": "3.183.0",
57
+ "@aws-sdk/service-client-documentation-generator": "3.188.0",
58
58
  "@tsconfig/recommended": "1.0.1",
59
59
  "@types/node": "^12.7.5",
60
60
  "@types/uuid": "^8.3.0",