@aws-sdk/client-guardduty 3.110.0 → 3.118.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 (42) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/README.md +15 -13
  3. package/dist-cjs/GuardDuty.js +60 -0
  4. package/dist-cjs/commands/AcceptAdministratorInvitationCommand.js +36 -0
  5. package/dist-cjs/commands/DisassociateFromAdministratorAccountCommand.js +36 -0
  6. package/dist-cjs/commands/GetAdministratorAccountCommand.js +36 -0
  7. package/dist-cjs/commands/GetRemainingFreeTrialDaysCommand.js +36 -0
  8. package/dist-cjs/commands/index.js +4 -0
  9. package/dist-cjs/models/models_0.js +97 -13
  10. package/dist-cjs/protocols/Aws_restJson1.js +364 -5
  11. package/dist-es/GuardDuty.js +60 -0
  12. package/dist-es/commands/AcceptAdministratorInvitationCommand.js +39 -0
  13. package/dist-es/commands/DisassociateFromAdministratorAccountCommand.js +39 -0
  14. package/dist-es/commands/GetAdministratorAccountCommand.js +39 -0
  15. package/dist-es/commands/GetRemainingFreeTrialDaysCommand.js +39 -0
  16. package/dist-es/commands/index.js +4 -0
  17. package/dist-es/models/models_0.js +64 -8
  18. package/dist-es/protocols/Aws_restJson1.js +451 -2
  19. package/dist-types/GuardDuty.d.ts +47 -11
  20. package/dist-types/GuardDutyClient.d.ts +14 -8
  21. package/dist-types/commands/AcceptAdministratorInvitationCommand.d.ts +35 -0
  22. package/dist-types/commands/AcceptInvitationCommand.d.ts +2 -0
  23. package/dist-types/commands/DisassociateFromAdministratorAccountCommand.d.ts +35 -0
  24. package/dist-types/commands/DisassociateFromMasterAccountCommand.d.ts +2 -0
  25. package/dist-types/commands/DisassociateMembersCommand.d.ts +1 -2
  26. package/dist-types/commands/GetAdministratorAccountCommand.d.ts +36 -0
  27. package/dist-types/commands/GetMasterAccountCommand.d.ts +2 -0
  28. package/dist-types/commands/GetRemainingFreeTrialDaysCommand.d.ts +35 -0
  29. package/dist-types/commands/GetUsageStatisticsCommand.d.ts +3 -3
  30. package/dist-types/commands/index.d.ts +4 -0
  31. package/dist-types/models/models_0.d.ts +258 -8
  32. package/dist-types/protocols/Aws_restJson1.d.ts +12 -0
  33. package/dist-types/ts3.4/GuardDuty.d.ts +20 -0
  34. package/dist-types/ts3.4/GuardDutyClient.d.ts +6 -2
  35. package/dist-types/ts3.4/commands/AcceptAdministratorInvitationCommand.d.ts +17 -0
  36. package/dist-types/ts3.4/commands/DisassociateFromAdministratorAccountCommand.d.ts +17 -0
  37. package/dist-types/ts3.4/commands/GetAdministratorAccountCommand.d.ts +17 -0
  38. package/dist-types/ts3.4/commands/GetRemainingFreeTrialDaysCommand.d.ts +17 -0
  39. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  40. package/dist-types/ts3.4/models/models_0.d.ts +157 -7
  41. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
  42. package/package.json +4 -4
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { DisassociateFromAdministratorAccountRequest, DisassociateFromAdministratorAccountResponse, } from "../models/models_0";
5
+ import { deserializeAws_restJson1DisassociateFromAdministratorAccountCommand, serializeAws_restJson1DisassociateFromAdministratorAccountCommand, } from "../protocols/Aws_restJson1";
6
+ var DisassociateFromAdministratorAccountCommand = (function (_super) {
7
+ __extends(DisassociateFromAdministratorAccountCommand, _super);
8
+ function DisassociateFromAdministratorAccountCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ DisassociateFromAdministratorAccountCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "GuardDutyClient";
18
+ var commandName = "DisassociateFromAdministratorAccountCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: DisassociateFromAdministratorAccountRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: DisassociateFromAdministratorAccountResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DisassociateFromAdministratorAccountCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1DisassociateFromAdministratorAccountCommand(input, context);
33
+ };
34
+ DisassociateFromAdministratorAccountCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1DisassociateFromAdministratorAccountCommand(output, context);
36
+ };
37
+ return DisassociateFromAdministratorAccountCommand;
38
+ }($Command));
39
+ export { DisassociateFromAdministratorAccountCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { GetAdministratorAccountRequest, GetAdministratorAccountResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1GetAdministratorAccountCommand, serializeAws_restJson1GetAdministratorAccountCommand, } from "../protocols/Aws_restJson1";
6
+ var GetAdministratorAccountCommand = (function (_super) {
7
+ __extends(GetAdministratorAccountCommand, _super);
8
+ function GetAdministratorAccountCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ GetAdministratorAccountCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "GuardDutyClient";
18
+ var commandName = "GetAdministratorAccountCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: GetAdministratorAccountRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: GetAdministratorAccountResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ GetAdministratorAccountCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1GetAdministratorAccountCommand(input, context);
33
+ };
34
+ GetAdministratorAccountCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1GetAdministratorAccountCommand(output, context);
36
+ };
37
+ return GetAdministratorAccountCommand;
38
+ }($Command));
39
+ export { GetAdministratorAccountCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { GetRemainingFreeTrialDaysRequest, GetRemainingFreeTrialDaysResponse } from "../models/models_0";
5
+ import { deserializeAws_restJson1GetRemainingFreeTrialDaysCommand, serializeAws_restJson1GetRemainingFreeTrialDaysCommand, } from "../protocols/Aws_restJson1";
6
+ var GetRemainingFreeTrialDaysCommand = (function (_super) {
7
+ __extends(GetRemainingFreeTrialDaysCommand, _super);
8
+ function GetRemainingFreeTrialDaysCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ GetRemainingFreeTrialDaysCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "GuardDutyClient";
18
+ var commandName = "GetRemainingFreeTrialDaysCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: GetRemainingFreeTrialDaysRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: GetRemainingFreeTrialDaysResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ GetRemainingFreeTrialDaysCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_restJson1GetRemainingFreeTrialDaysCommand(input, context);
33
+ };
34
+ GetRemainingFreeTrialDaysCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_restJson1GetRemainingFreeTrialDaysCommand(output, context);
36
+ };
37
+ return GetRemainingFreeTrialDaysCommand;
38
+ }($Command));
39
+ export { GetRemainingFreeTrialDaysCommand };
@@ -1,3 +1,4 @@
1
+ export * from "./AcceptAdministratorInvitationCommand";
1
2
  export * from "./AcceptInvitationCommand";
2
3
  export * from "./ArchiveFindingsCommand";
3
4
  export * from "./CreateDetectorCommand";
@@ -18,9 +19,11 @@ export * from "./DeleteThreatIntelSetCommand";
18
19
  export * from "./DescribeOrganizationConfigurationCommand";
19
20
  export * from "./DescribePublishingDestinationCommand";
20
21
  export * from "./DisableOrganizationAdminAccountCommand";
22
+ export * from "./DisassociateFromAdministratorAccountCommand";
21
23
  export * from "./DisassociateFromMasterAccountCommand";
22
24
  export * from "./DisassociateMembersCommand";
23
25
  export * from "./EnableOrganizationAdminAccountCommand";
26
+ export * from "./GetAdministratorAccountCommand";
24
27
  export * from "./GetDetectorCommand";
25
28
  export * from "./GetFilterCommand";
26
29
  export * from "./GetFindingsCommand";
@@ -30,6 +33,7 @@ export * from "./GetInvitationsCountCommand";
30
33
  export * from "./GetMasterAccountCommand";
31
34
  export * from "./GetMemberDetectorsCommand";
32
35
  export * from "./GetMembersCommand";
36
+ export * from "./GetRemainingFreeTrialDaysCommand";
33
37
  export * from "./GetThreatIntelSetCommand";
34
38
  export * from "./GetUsageStatisticsCommand";
35
39
  export * from "./InviteMembersCommand";
@@ -1,13 +1,13 @@
1
1
  import { __assign, __extends } from "tslib";
2
2
  import { GuardDutyServiceException as __BaseException } from "./GuardDutyServiceException";
3
- export var AcceptInvitationRequest;
4
- (function (AcceptInvitationRequest) {
5
- AcceptInvitationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
6
- })(AcceptInvitationRequest || (AcceptInvitationRequest = {}));
7
- export var AcceptInvitationResponse;
8
- (function (AcceptInvitationResponse) {
9
- AcceptInvitationResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
10
- })(AcceptInvitationResponse || (AcceptInvitationResponse = {}));
3
+ export var AcceptAdministratorInvitationRequest;
4
+ (function (AcceptAdministratorInvitationRequest) {
5
+ AcceptAdministratorInvitationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
6
+ })(AcceptAdministratorInvitationRequest || (AcceptAdministratorInvitationRequest = {}));
7
+ export var AcceptAdministratorInvitationResponse;
8
+ (function (AcceptAdministratorInvitationResponse) {
9
+ AcceptAdministratorInvitationResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
10
+ })(AcceptAdministratorInvitationResponse || (AcceptAdministratorInvitationResponse = {}));
11
11
  var BadRequestException = (function (_super) {
12
12
  __extends(BadRequestException, _super);
13
13
  function BadRequestException(opts) {
@@ -36,6 +36,14 @@ var InternalServerErrorException = (function (_super) {
36
36
  return InternalServerErrorException;
37
37
  }(__BaseException));
38
38
  export { InternalServerErrorException };
39
+ export var AcceptInvitationRequest;
40
+ (function (AcceptInvitationRequest) {
41
+ AcceptInvitationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
42
+ })(AcceptInvitationRequest || (AcceptInvitationRequest = {}));
43
+ export var AcceptInvitationResponse;
44
+ (function (AcceptInvitationResponse) {
45
+ AcceptInvitationResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
46
+ })(AcceptInvitationResponse || (AcceptInvitationResponse = {}));
39
47
  export var AccessControlList;
40
48
  (function (AccessControlList) {
41
49
  AccessControlList.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -48,6 +56,22 @@ export var AccountDetail;
48
56
  (function (AccountDetail) {
49
57
  AccountDetail.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
50
58
  })(AccountDetail || (AccountDetail = {}));
59
+ export var DataSourceFreeTrial;
60
+ (function (DataSourceFreeTrial) {
61
+ DataSourceFreeTrial.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
62
+ })(DataSourceFreeTrial || (DataSourceFreeTrial = {}));
63
+ export var KubernetesDataSourceFreeTrial;
64
+ (function (KubernetesDataSourceFreeTrial) {
65
+ KubernetesDataSourceFreeTrial.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
66
+ })(KubernetesDataSourceFreeTrial || (KubernetesDataSourceFreeTrial = {}));
67
+ export var DataSourcesFreeTrial;
68
+ (function (DataSourcesFreeTrial) {
69
+ DataSourcesFreeTrial.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
70
+ })(DataSourcesFreeTrial || (DataSourcesFreeTrial = {}));
71
+ export var AccountFreeTrialInfo;
72
+ (function (AccountFreeTrialInfo) {
73
+ AccountFreeTrialInfo.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
74
+ })(AccountFreeTrialInfo || (AccountFreeTrialInfo = {}));
51
75
  export var BlockPublicAccess;
52
76
  (function (BlockPublicAccess) {
53
77
  BlockPublicAccess.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -133,6 +157,10 @@ export var AdminAccount;
133
157
  (function (AdminAccount) {
134
158
  AdminAccount.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
135
159
  })(AdminAccount || (AdminAccount = {}));
160
+ export var Administrator;
161
+ (function (Administrator) {
162
+ Administrator.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
163
+ })(Administrator || (Administrator = {}));
136
164
  export var ArchiveFindingsRequest;
137
165
  (function (ArchiveFindingsRequest) {
138
166
  ArchiveFindingsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -447,6 +475,14 @@ export var DisableOrganizationAdminAccountResponse;
447
475
  (function (DisableOrganizationAdminAccountResponse) {
448
476
  DisableOrganizationAdminAccountResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
449
477
  })(DisableOrganizationAdminAccountResponse || (DisableOrganizationAdminAccountResponse = {}));
478
+ export var DisassociateFromAdministratorAccountRequest;
479
+ (function (DisassociateFromAdministratorAccountRequest) {
480
+ DisassociateFromAdministratorAccountRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
481
+ })(DisassociateFromAdministratorAccountRequest || (DisassociateFromAdministratorAccountRequest = {}));
482
+ export var DisassociateFromAdministratorAccountResponse;
483
+ (function (DisassociateFromAdministratorAccountResponse) {
484
+ DisassociateFromAdministratorAccountResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
485
+ })(DisassociateFromAdministratorAccountResponse || (DisassociateFromAdministratorAccountResponse = {}));
450
486
  export var DisassociateFromMasterAccountRequest;
451
487
  (function (DisassociateFromMasterAccountRequest) {
452
488
  DisassociateFromMasterAccountRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -556,6 +592,10 @@ export var Resource;
556
592
  (function (Resource) {
557
593
  Resource.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
558
594
  })(Resource || (Resource = {}));
595
+ export var ServiceAdditionalInfo;
596
+ (function (ServiceAdditionalInfo) {
597
+ ServiceAdditionalInfo.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
598
+ })(ServiceAdditionalInfo || (ServiceAdditionalInfo = {}));
559
599
  export var Service;
560
600
  (function (Service) {
561
601
  Service.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -572,6 +612,14 @@ export var FindingStatisticType;
572
612
  (function (FindingStatisticType) {
573
613
  FindingStatisticType["COUNT_BY_SEVERITY"] = "COUNT_BY_SEVERITY";
574
614
  })(FindingStatisticType || (FindingStatisticType = {}));
615
+ export var GetAdministratorAccountRequest;
616
+ (function (GetAdministratorAccountRequest) {
617
+ GetAdministratorAccountRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
618
+ })(GetAdministratorAccountRequest || (GetAdministratorAccountRequest = {}));
619
+ export var GetAdministratorAccountResponse;
620
+ (function (GetAdministratorAccountResponse) {
621
+ GetAdministratorAccountResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
622
+ })(GetAdministratorAccountResponse || (GetAdministratorAccountResponse = {}));
575
623
  export var GetDetectorRequest;
576
624
  (function (GetDetectorRequest) {
577
625
  GetDetectorRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -675,6 +723,14 @@ export var GetMembersResponse;
675
723
  (function (GetMembersResponse) {
676
724
  GetMembersResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
677
725
  })(GetMembersResponse || (GetMembersResponse = {}));
726
+ export var GetRemainingFreeTrialDaysRequest;
727
+ (function (GetRemainingFreeTrialDaysRequest) {
728
+ GetRemainingFreeTrialDaysRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
729
+ })(GetRemainingFreeTrialDaysRequest || (GetRemainingFreeTrialDaysRequest = {}));
730
+ export var GetRemainingFreeTrialDaysResponse;
731
+ (function (GetRemainingFreeTrialDaysResponse) {
732
+ GetRemainingFreeTrialDaysResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
733
+ })(GetRemainingFreeTrialDaysResponse || (GetRemainingFreeTrialDaysResponse = {}));
678
734
  export var GetThreatIntelSetRequest;
679
735
  (function (GetThreatIntelSetRequest) {
680
736
  GetThreatIntelSetRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };