@aws-sdk/client-guardduty 3.46.0 → 3.48.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.
- package/CHANGELOG.md +38 -0
- package/README.md +4 -4
- package/dist-cjs/endpoints.js +0 -24
- package/dist-cjs/models/models_0.js +11 -17
- package/dist-cjs/protocols/Aws_restJson1.js +9 -0
- package/dist-cjs/runtimeConfig.browser.js +7 -2
- package/dist-cjs/runtimeConfig.js +10 -2
- package/dist-es/endpoints.js +0 -24
- package/dist-es/models/models_0.js +4 -8
- package/dist-es/protocols/Aws_restJson1.js +9 -0
- package/dist-es/runtimeConfig.browser.js +12 -3
- package/dist-es/runtimeConfig.js +13 -4
- package/dist-types/GuardDuty.d.ts +14 -14
- package/dist-types/GuardDutyClient.d.ts +9 -5
- package/dist-types/commands/CreateIPSetCommand.d.ts +1 -1
- package/dist-types/commands/CreateMembersCommand.d.ts +1 -1
- package/dist-types/commands/DeclineInvitationsCommand.d.ts +1 -1
- package/dist-types/commands/DeleteInvitationsCommand.d.ts +1 -1
- package/dist-types/commands/DisableOrganizationAdminAccountCommand.d.ts +1 -1
- package/dist-types/commands/EnableOrganizationAdminAccountCommand.d.ts +1 -1
- package/dist-types/commands/InviteMembersCommand.d.ts +2 -2
- package/dist-types/commands/ListInvitationsCommand.d.ts +1 -1
- package/dist-types/commands/ListPublishingDestinationsCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +66 -45
- package/dist-types/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/runtimeConfig.d.ts +4 -3
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/GuardDutyClient.d.ts +3 -1
- package/dist-types/ts3.4/models/models_0.d.ts +13 -8
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +35 -35
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,44 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.48.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.2...v3.48.0) (2022-01-22)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** update clients as of 2022/01/21 ([#3228](https://github.com/aws/aws-sdk-js-v3/issues/3228)) ([fa713ef](https://github.com/aws/aws-sdk-js-v3/commit/fa713efca6b2f424c27535d000359f08830960b1))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [3.47.2](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.1...v3.47.2) (2022-01-21)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/client-guardduty
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## [3.47.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.0-release-test-1...v3.47.1) (2022-01-20)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @aws-sdk/client-guardduty
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
# [3.47.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### Features
|
|
37
|
+
|
|
38
|
+
* **clients:** update clients to use default values inferred from defaults mode ([#3192](https://github.com/aws/aws-sdk-js-v3/issues/3192)) ([9152e21](https://github.com/aws/aws-sdk-js-v3/commit/9152e210c6ec29f34bb070eaf2874039022e6ab7))
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
6
44
|
# [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
|
|
7
45
|
|
|
8
46
|
|
package/README.md
CHANGED
|
@@ -8,17 +8,17 @@
|
|
|
8
8
|
AWS SDK for JavaScript GuardDuty Client for Node.js, Browser and React Native.
|
|
9
9
|
|
|
10
10
|
<p>Amazon GuardDuty is a continuous security monitoring service that analyzes and processes
|
|
11
|
-
the following data sources: VPC Flow Logs,
|
|
11
|
+
the following data sources: VPC Flow Logs, Amazon Web Services CloudTrail event logs, and DNS logs. It uses
|
|
12
12
|
threat intelligence feeds (such as lists of malicious IPs and domains) and machine learning to
|
|
13
|
-
identify unexpected, potentially unauthorized, and malicious activity within your
|
|
13
|
+
identify unexpected, potentially unauthorized, and malicious activity within your Amazon Web Services
|
|
14
14
|
environment. This can include issues like escalations of privileges, uses of exposed
|
|
15
15
|
credentials, or communication with malicious IPs, URLs, or domains. For example, GuardDuty can
|
|
16
16
|
detect compromised EC2 instances that serve malware or mine bitcoin. </p>
|
|
17
|
-
<p>GuardDuty also monitors
|
|
17
|
+
<p>GuardDuty also monitors Amazon Web Services account access behavior for signs of compromise. Some examples
|
|
18
18
|
of this are unauthorized infrastructure deployments such as EC2 instances deployed in a Region
|
|
19
19
|
that has never been used, or unusual API calls like a password policy change to reduce
|
|
20
20
|
password strength. </p>
|
|
21
|
-
<p>GuardDuty informs you of the status of your
|
|
21
|
+
<p>GuardDuty informs you of the status of your Amazon Web Services environment by producing security findings
|
|
22
22
|
that you can view in the GuardDuty console or through Amazon CloudWatch events. For more
|
|
23
23
|
information, see the <i>
|
|
24
24
|
<a href="https://docs.aws.amazon.com/guardduty/latest/ug/what-is-guardduty.html">Amazon
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -5,10 +5,6 @@ const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
|
5
5
|
const regionHash = {
|
|
6
6
|
"us-east-1": {
|
|
7
7
|
variants: [
|
|
8
|
-
{
|
|
9
|
-
hostname: "guardduty.us-east-1.amazonaws.com",
|
|
10
|
-
tags: [],
|
|
11
|
-
},
|
|
12
8
|
{
|
|
13
9
|
hostname: "guardduty-fips.us-east-1.amazonaws.com",
|
|
14
10
|
tags: ["fips"],
|
|
@@ -17,10 +13,6 @@ const regionHash = {
|
|
|
17
13
|
},
|
|
18
14
|
"us-east-2": {
|
|
19
15
|
variants: [
|
|
20
|
-
{
|
|
21
|
-
hostname: "guardduty.us-east-2.amazonaws.com",
|
|
22
|
-
tags: [],
|
|
23
|
-
},
|
|
24
16
|
{
|
|
25
17
|
hostname: "guardduty-fips.us-east-2.amazonaws.com",
|
|
26
18
|
tags: ["fips"],
|
|
@@ -29,10 +21,6 @@ const regionHash = {
|
|
|
29
21
|
},
|
|
30
22
|
"us-gov-east-1": {
|
|
31
23
|
variants: [
|
|
32
|
-
{
|
|
33
|
-
hostname: "guardduty.us-gov-east-1.amazonaws.com",
|
|
34
|
-
tags: [],
|
|
35
|
-
},
|
|
36
24
|
{
|
|
37
25
|
hostname: "guardduty.us-gov-east-1.amazonaws.com",
|
|
38
26
|
tags: ["fips"],
|
|
@@ -41,10 +29,6 @@ const regionHash = {
|
|
|
41
29
|
},
|
|
42
30
|
"us-gov-west-1": {
|
|
43
31
|
variants: [
|
|
44
|
-
{
|
|
45
|
-
hostname: "guardduty.us-gov-west-1.amazonaws.com",
|
|
46
|
-
tags: [],
|
|
47
|
-
},
|
|
48
32
|
{
|
|
49
33
|
hostname: "guardduty.us-gov-west-1.amazonaws.com",
|
|
50
34
|
tags: ["fips"],
|
|
@@ -53,10 +37,6 @@ const regionHash = {
|
|
|
53
37
|
},
|
|
54
38
|
"us-west-1": {
|
|
55
39
|
variants: [
|
|
56
|
-
{
|
|
57
|
-
hostname: "guardduty.us-west-1.amazonaws.com",
|
|
58
|
-
tags: [],
|
|
59
|
-
},
|
|
60
40
|
{
|
|
61
41
|
hostname: "guardduty-fips.us-west-1.amazonaws.com",
|
|
62
42
|
tags: ["fips"],
|
|
@@ -65,10 +45,6 @@ const regionHash = {
|
|
|
65
45
|
},
|
|
66
46
|
"us-west-2": {
|
|
67
47
|
variants: [
|
|
68
|
-
{
|
|
69
|
-
hostname: "guardduty.us-west-2.amazonaws.com",
|
|
70
|
-
tags: [],
|
|
71
|
-
},
|
|
72
48
|
{
|
|
73
49
|
hostname: "guardduty-fips.us-west-2.amazonaws.com",
|
|
74
50
|
tags: ["fips"],
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DestinationType = exports.DestinationProperties = exports.CreateMembersResponse = exports.UnprocessedAccount = exports.CreateMembersRequest = exports.CreateIPSetResponse = exports.CreateIPSetRequest = exports.IpSetFormat = exports.CreateFilterResponse = exports.CreateFilterRequest = exports.FindingCriteria = exports.FilterAction = exports.CreateDetectorResponse = exports.CreateDetectorRequest = exports.FindingPublishingFrequency = exports.DataSourceConfigurations = exports.S3LogsConfiguration = exports.Condition = exports.CloudTrailConfigurationResult = exports.DataSourceStatus = exports.BucketLevelPermissions = exports.BucketPolicy = exports.ArchiveFindingsResponse = exports.ArchiveFindingsRequest = exports.AdminAccount = exports.AdminStatus = exports.Action = exports.PortProbeAction = exports.PortProbeDetail = exports.NetworkConnectionAction = exports.RemotePortDetails = exports.LocalPortDetails = exports.LocalIpDetails = exports.DnsRequestAction = exports.AwsApiCallAction = exports.RemoteIpDetails = exports.Organization = exports.GeoLocation = exports.Country = exports.City = exports.DomainDetails = exports.AccountLevelPermissions = exports.BlockPublicAccess = exports.AccountDetail = exports.AccessKeyDetails = exports.AccessControlList = exports.
|
|
4
|
-
exports.IamInstanceProfile = exports.Feedback = exports.Evidence = exports.ThreatIntelligenceDetail = exports.EnableOrganizationAdminAccountResponse = exports.EnableOrganizationAdminAccountRequest = exports.DisassociateMembersResponse = exports.DisassociateMembersRequest = exports.DisassociateFromMasterAccountResponse = exports.DisassociateFromMasterAccountRequest = exports.DisableOrganizationAdminAccountResponse = exports.DisableOrganizationAdminAccountRequest = exports.DetectorStatus = exports.Destination = exports.DescribePublishingDestinationResponse = exports.PublishingStatus = exports.DescribePublishingDestinationRequest = exports.DescribeOrganizationConfigurationResponse = exports.OrganizationDataSourceConfigurationsResult = exports.OrganizationS3LogsConfigurationResult = exports.DescribeOrganizationConfigurationRequest = exports.DeleteThreatIntelSetResponse = exports.DeleteThreatIntelSetRequest = exports.DeletePublishingDestinationResponse = exports.DeletePublishingDestinationRequest = exports.DeleteMembersResponse = exports.DeleteMembersRequest = exports.DeleteIPSetResponse = exports.DeleteIPSetRequest = exports.DeleteInvitationsResponse = exports.DeleteInvitationsRequest = exports.DeleteFilterResponse = exports.DeleteFilterRequest = exports.DeleteDetectorResponse = exports.DeleteDetectorRequest = exports.DefaultServerSideEncryption = exports.DeclineInvitationsResponse = exports.DeclineInvitationsRequest = exports.DataSourceConfigurationsResult = exports.S3LogsConfigurationResult = exports.FlowLogsConfigurationResult = exports.DNSLogsConfigurationResult = exports.DataSource = exports.CreateThreatIntelSetResponse = exports.CreateThreatIntelSetRequest = exports.ThreatIntelSetFormat = exports.CreateSampleFindingsResponse = exports.CreateSampleFindingsRequest = exports.CreatePublishingDestinationResponse =
|
|
5
|
-
exports.UsageStatistics = exports.UsageResourceResult = exports.UsageDataSourceResult = exports.UsageAccountResult = exports.Total = exports.GetUsageStatisticsRequest = exports.UsageStatisticType = exports.UsageCriteria = exports.GetThreatIntelSetResponse = exports.ThreatIntelSetStatus = exports.GetThreatIntelSetRequest = exports.GetMembersResponse = exports.Member = exports.GetMembersRequest = exports.GetMemberDetectorsResponse = exports.MemberDataSourceConfiguration = exports.GetMemberDetectorsRequest = exports.GetMasterAccountResponse = exports.Master = exports.GetMasterAccountRequest = exports.GetIPSetResponse = exports.IpSetStatus = exports.GetIPSetRequest = exports.GetInvitationsCountResponse = exports.GetInvitationsCountRequest = exports.GetFindingsStatisticsResponse = exports.GetFindingsStatisticsRequest = exports.GetFindingsResponse = exports.GetFindingsRequest = exports.SortCriteria = exports.OrderBy = exports.GetFilterResponse = exports.GetFilterRequest = exports.GetDetectorResponse = exports.GetDetectorRequest = exports.FindingStatisticType = exports.FindingStatistics = exports.Finding = exports.Service = exports.Resource = exports.S3BucketDetail = exports.PublicAccess = exports.PermissionConfiguration = exports.Owner = exports.InstanceDetails = exports.Tag = exports.ProductCode = exports.NetworkInterface = exports.SecurityGroup =
|
|
6
|
-
exports.UpdatePublishingDestinationResponse = exports.UpdatePublishingDestinationRequest = exports.UpdateOrganizationConfigurationResponse = exports.UpdateOrganizationConfigurationRequest = exports.OrganizationDataSourceConfigurations = exports.OrganizationS3LogsConfiguration = exports.UpdateMemberDetectorsResponse = exports.UpdateMemberDetectorsRequest = exports.UpdateIPSetResponse = exports.UpdateIPSetRequest = exports.UpdateFindingsFeedbackResponse = exports.UpdateFindingsFeedbackRequest = exports.UpdateFilterResponse = exports.UpdateFilterRequest = exports.UpdateDetectorResponse = exports.UpdateDetectorRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.UnarchiveFindingsResponse = exports.UnarchiveFindingsRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.StopMonitoringMembersResponse = exports.StopMonitoringMembersRequest = exports.StartMonitoringMembersResponse = exports.StartMonitoringMembersRequest = exports.ListThreatIntelSetsResponse = exports.ListThreatIntelSetsRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListPublishingDestinationsResponse = exports.ListPublishingDestinationsRequest = exports.ListOrganizationAdminAccountsResponse = exports.ListOrganizationAdminAccountsRequest = exports.ListMembersResponse = exports.ListMembersRequest = exports.ListIPSetsResponse = exports.ListIPSetsRequest = exports.ListInvitationsResponse = exports.Invitation = exports.ListInvitationsRequest = exports.ListFindingsResponse = exports.ListFindingsRequest = exports.ListFiltersResponse = exports.ListFiltersRequest = exports.ListDetectorsResponse = exports.ListDetectorsRequest = exports.InviteMembersResponse = exports.InviteMembersRequest =
|
|
7
|
-
exports.UpdateThreatIntelSetResponse =
|
|
3
|
+
exports.CreatePublishingDestinationRequest = exports.DestinationType = exports.DestinationProperties = exports.CreateMembersResponse = exports.UnprocessedAccount = exports.CreateMembersRequest = exports.CreateIPSetResponse = exports.CreateIPSetRequest = exports.IpSetFormat = exports.CreateFilterResponse = exports.CreateFilterRequest = exports.FindingCriteria = exports.FilterAction = exports.CreateDetectorResponse = exports.CreateDetectorRequest = exports.FindingPublishingFrequency = exports.DataSourceConfigurations = exports.S3LogsConfiguration = exports.Condition = exports.CloudTrailConfigurationResult = exports.DataSourceStatus = exports.BucketLevelPermissions = exports.BucketPolicy = exports.ArchiveFindingsResponse = exports.ArchiveFindingsRequest = exports.AdminAccount = exports.AdminStatus = exports.Action = exports.PortProbeAction = exports.PortProbeDetail = exports.NetworkConnectionAction = exports.RemotePortDetails = exports.LocalPortDetails = exports.LocalIpDetails = exports.DnsRequestAction = exports.AwsApiCallAction = exports.RemoteIpDetails = exports.Organization = exports.GeoLocation = exports.Country = exports.City = exports.RemoteAccountDetails = exports.DomainDetails = exports.AccountLevelPermissions = exports.BlockPublicAccess = exports.AccountDetail = exports.AccessKeyDetails = exports.AccessControlList = exports.AcceptInvitationResponse = exports.AcceptInvitationRequest = void 0;
|
|
4
|
+
exports.PrivateIpAddressDetails = exports.IamInstanceProfile = exports.Feedback = exports.Evidence = exports.ThreatIntelligenceDetail = exports.EnableOrganizationAdminAccountResponse = exports.EnableOrganizationAdminAccountRequest = exports.DisassociateMembersResponse = exports.DisassociateMembersRequest = exports.DisassociateFromMasterAccountResponse = exports.DisassociateFromMasterAccountRequest = exports.DisableOrganizationAdminAccountResponse = exports.DisableOrganizationAdminAccountRequest = exports.DetectorStatus = exports.Destination = exports.DescribePublishingDestinationResponse = exports.PublishingStatus = exports.DescribePublishingDestinationRequest = exports.DescribeOrganizationConfigurationResponse = exports.OrganizationDataSourceConfigurationsResult = exports.OrganizationS3LogsConfigurationResult = exports.DescribeOrganizationConfigurationRequest = exports.DeleteThreatIntelSetResponse = exports.DeleteThreatIntelSetRequest = exports.DeletePublishingDestinationResponse = exports.DeletePublishingDestinationRequest = exports.DeleteMembersResponse = exports.DeleteMembersRequest = exports.DeleteIPSetResponse = exports.DeleteIPSetRequest = exports.DeleteInvitationsResponse = exports.DeleteInvitationsRequest = exports.DeleteFilterResponse = exports.DeleteFilterRequest = exports.DeleteDetectorResponse = exports.DeleteDetectorRequest = exports.DefaultServerSideEncryption = exports.DeclineInvitationsResponse = exports.DeclineInvitationsRequest = exports.DataSourceConfigurationsResult = exports.S3LogsConfigurationResult = exports.FlowLogsConfigurationResult = exports.DNSLogsConfigurationResult = exports.DataSource = exports.CreateThreatIntelSetResponse = exports.CreateThreatIntelSetRequest = exports.ThreatIntelSetFormat = exports.CreateSampleFindingsResponse = exports.CreateSampleFindingsRequest = exports.CreatePublishingDestinationResponse = void 0;
|
|
5
|
+
exports.GetUsageStatisticsResponse = exports.UsageStatistics = exports.UsageResourceResult = exports.UsageDataSourceResult = exports.UsageAccountResult = exports.Total = exports.GetUsageStatisticsRequest = exports.UsageStatisticType = exports.UsageCriteria = exports.GetThreatIntelSetResponse = exports.ThreatIntelSetStatus = exports.GetThreatIntelSetRequest = exports.GetMembersResponse = exports.Member = exports.GetMembersRequest = exports.GetMemberDetectorsResponse = exports.MemberDataSourceConfiguration = exports.GetMemberDetectorsRequest = exports.GetMasterAccountResponse = exports.Master = exports.GetMasterAccountRequest = exports.GetIPSetResponse = exports.IpSetStatus = exports.GetIPSetRequest = exports.GetInvitationsCountResponse = exports.GetInvitationsCountRequest = exports.GetFindingsStatisticsResponse = exports.GetFindingsStatisticsRequest = exports.GetFindingsResponse = exports.GetFindingsRequest = exports.SortCriteria = exports.OrderBy = exports.GetFilterResponse = exports.GetFilterRequest = exports.GetDetectorResponse = exports.GetDetectorRequest = exports.FindingStatisticType = exports.FindingStatistics = exports.Finding = exports.Service = exports.Resource = exports.S3BucketDetail = exports.PublicAccess = exports.PermissionConfiguration = exports.Owner = exports.InstanceDetails = exports.Tag = exports.ProductCode = exports.NetworkInterface = exports.SecurityGroup = void 0;
|
|
6
|
+
exports.UpdateThreatIntelSetRequest = exports.UpdatePublishingDestinationResponse = exports.UpdatePublishingDestinationRequest = exports.UpdateOrganizationConfigurationResponse = exports.UpdateOrganizationConfigurationRequest = exports.OrganizationDataSourceConfigurations = exports.OrganizationS3LogsConfiguration = exports.UpdateMemberDetectorsResponse = exports.UpdateMemberDetectorsRequest = exports.UpdateIPSetResponse = exports.UpdateIPSetRequest = exports.UpdateFindingsFeedbackResponse = exports.UpdateFindingsFeedbackRequest = exports.UpdateFilterResponse = exports.UpdateFilterRequest = exports.UpdateDetectorResponse = exports.UpdateDetectorRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.UnarchiveFindingsResponse = exports.UnarchiveFindingsRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.StopMonitoringMembersResponse = exports.StopMonitoringMembersRequest = exports.StartMonitoringMembersResponse = exports.StartMonitoringMembersRequest = exports.ListThreatIntelSetsResponse = exports.ListThreatIntelSetsRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListPublishingDestinationsResponse = exports.ListPublishingDestinationsRequest = exports.ListOrganizationAdminAccountsResponse = exports.ListOrganizationAdminAccountsRequest = exports.ListMembersResponse = exports.ListMembersRequest = exports.ListIPSetsResponse = exports.ListIPSetsRequest = exports.ListInvitationsResponse = exports.Invitation = exports.ListInvitationsRequest = exports.ListFindingsResponse = exports.ListFindingsRequest = exports.ListFiltersResponse = exports.ListFiltersRequest = exports.ListDetectorsResponse = exports.ListDetectorsRequest = exports.InviteMembersResponse = exports.InviteMembersRequest = void 0;
|
|
7
|
+
exports.UpdateThreatIntelSetResponse = void 0;
|
|
8
8
|
var AcceptInvitationRequest;
|
|
9
9
|
(function (AcceptInvitationRequest) {
|
|
10
10
|
AcceptInvitationRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -17,18 +17,6 @@ var AcceptInvitationResponse;
|
|
|
17
17
|
...obj,
|
|
18
18
|
});
|
|
19
19
|
})(AcceptInvitationResponse = exports.AcceptInvitationResponse || (exports.AcceptInvitationResponse = {}));
|
|
20
|
-
var BadRequestException;
|
|
21
|
-
(function (BadRequestException) {
|
|
22
|
-
BadRequestException.filterSensitiveLog = (obj) => ({
|
|
23
|
-
...obj,
|
|
24
|
-
});
|
|
25
|
-
})(BadRequestException = exports.BadRequestException || (exports.BadRequestException = {}));
|
|
26
|
-
var InternalServerErrorException;
|
|
27
|
-
(function (InternalServerErrorException) {
|
|
28
|
-
InternalServerErrorException.filterSensitiveLog = (obj) => ({
|
|
29
|
-
...obj,
|
|
30
|
-
});
|
|
31
|
-
})(InternalServerErrorException = exports.InternalServerErrorException || (exports.InternalServerErrorException = {}));
|
|
32
20
|
var AccessControlList;
|
|
33
21
|
(function (AccessControlList) {
|
|
34
22
|
AccessControlList.filterSensitiveLog = (obj) => ({
|
|
@@ -65,6 +53,12 @@ var DomainDetails;
|
|
|
65
53
|
...obj,
|
|
66
54
|
});
|
|
67
55
|
})(DomainDetails = exports.DomainDetails || (exports.DomainDetails = {}));
|
|
56
|
+
var RemoteAccountDetails;
|
|
57
|
+
(function (RemoteAccountDetails) {
|
|
58
|
+
RemoteAccountDetails.filterSensitiveLog = (obj) => ({
|
|
59
|
+
...obj,
|
|
60
|
+
});
|
|
61
|
+
})(RemoteAccountDetails = exports.RemoteAccountDetails || (exports.RemoteAccountDetails = {}));
|
|
68
62
|
var City;
|
|
69
63
|
(function (City) {
|
|
70
64
|
City.filterSensitiveLog = (obj) => ({
|
|
@@ -5516,6 +5516,9 @@ const deserializeAws_restJson1AwsApiCallAction = (output, context) => {
|
|
|
5516
5516
|
? deserializeAws_restJson1DomainDetails(output.domainDetails, context)
|
|
5517
5517
|
: undefined,
|
|
5518
5518
|
ErrorCode: smithy_client_1.expectString(output.errorCode),
|
|
5519
|
+
RemoteAccountDetails: output.remoteAccountDetails !== undefined && output.remoteAccountDetails !== null
|
|
5520
|
+
? deserializeAws_restJson1RemoteAccountDetails(output.remoteAccountDetails, context)
|
|
5521
|
+
: undefined,
|
|
5519
5522
|
RemoteIpDetails: output.remoteIpDetails !== undefined && output.remoteIpDetails !== null
|
|
5520
5523
|
? deserializeAws_restJson1RemoteIpDetails(output.remoteIpDetails, context)
|
|
5521
5524
|
: undefined,
|
|
@@ -6084,6 +6087,12 @@ const deserializeAws_restJson1PublicAccess = (output, context) => {
|
|
|
6084
6087
|
: undefined,
|
|
6085
6088
|
};
|
|
6086
6089
|
};
|
|
6090
|
+
const deserializeAws_restJson1RemoteAccountDetails = (output, context) => {
|
|
6091
|
+
return {
|
|
6092
|
+
AccountId: smithy_client_1.expectString(output.accountId),
|
|
6093
|
+
Affiliated: smithy_client_1.expectBoolean(output.affiliated),
|
|
6094
|
+
};
|
|
6095
|
+
};
|
|
6087
6096
|
const deserializeAws_restJson1RemoteIpDetails = (output, context) => {
|
|
6088
6097
|
return {
|
|
6089
6098
|
City: output.city !== undefined && output.city !== null
|
|
@@ -13,13 +13,18 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
|
|
|
13
13
|
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
14
14
|
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
|
15
15
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
16
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
17
|
+
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
16
18
|
const getRuntimeConfig = (config) => {
|
|
17
19
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
20
|
+
const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
|
|
21
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
18
22
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
19
23
|
return {
|
|
20
24
|
...clientSharedValues,
|
|
21
25
|
...config,
|
|
22
26
|
runtime: "browser",
|
|
27
|
+
defaultsMode,
|
|
23
28
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
|
|
24
29
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
|
|
25
30
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
|
|
@@ -27,8 +32,8 @@ const getRuntimeConfig = (config) => {
|
|
|
27
32
|
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
28
33
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
29
34
|
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
|
|
30
|
-
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(),
|
|
31
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() =>
|
|
35
|
+
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
36
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
|
|
32
37
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
|
|
33
38
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
|
|
34
39
|
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
@@ -15,13 +15,18 @@ const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
|
|
|
15
15
|
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
16
16
|
const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
17
17
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
18
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
19
|
+
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
18
20
|
const getRuntimeConfig = (config) => {
|
|
19
21
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
22
|
+
const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
|
|
23
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
20
24
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
21
25
|
return {
|
|
22
26
|
...clientSharedValues,
|
|
23
27
|
...config,
|
|
24
28
|
runtime: "node",
|
|
29
|
+
defaultsMode,
|
|
25
30
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
|
|
26
31
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
|
|
27
32
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
|
|
@@ -29,8 +34,11 @@ const getRuntimeConfig = (config) => {
|
|
|
29
34
|
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
30
35
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
31
36
|
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
32
|
-
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(),
|
|
33
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(
|
|
37
|
+
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
38
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
|
|
39
|
+
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
40
|
+
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
41
|
+
}),
|
|
34
42
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
35
43
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
36
44
|
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
package/dist-es/endpoints.js
CHANGED
|
@@ -3,10 +3,6 @@ import { getRegionInfo } from "@aws-sdk/config-resolver";
|
|
|
3
3
|
var regionHash = {
|
|
4
4
|
"us-east-1": {
|
|
5
5
|
variants: [
|
|
6
|
-
{
|
|
7
|
-
hostname: "guardduty.us-east-1.amazonaws.com",
|
|
8
|
-
tags: [],
|
|
9
|
-
},
|
|
10
6
|
{
|
|
11
7
|
hostname: "guardduty-fips.us-east-1.amazonaws.com",
|
|
12
8
|
tags: ["fips"],
|
|
@@ -15,10 +11,6 @@ var regionHash = {
|
|
|
15
11
|
},
|
|
16
12
|
"us-east-2": {
|
|
17
13
|
variants: [
|
|
18
|
-
{
|
|
19
|
-
hostname: "guardduty.us-east-2.amazonaws.com",
|
|
20
|
-
tags: [],
|
|
21
|
-
},
|
|
22
14
|
{
|
|
23
15
|
hostname: "guardduty-fips.us-east-2.amazonaws.com",
|
|
24
16
|
tags: ["fips"],
|
|
@@ -27,10 +19,6 @@ var regionHash = {
|
|
|
27
19
|
},
|
|
28
20
|
"us-gov-east-1": {
|
|
29
21
|
variants: [
|
|
30
|
-
{
|
|
31
|
-
hostname: "guardduty.us-gov-east-1.amazonaws.com",
|
|
32
|
-
tags: [],
|
|
33
|
-
},
|
|
34
22
|
{
|
|
35
23
|
hostname: "guardduty.us-gov-east-1.amazonaws.com",
|
|
36
24
|
tags: ["fips"],
|
|
@@ -39,10 +27,6 @@ var regionHash = {
|
|
|
39
27
|
},
|
|
40
28
|
"us-gov-west-1": {
|
|
41
29
|
variants: [
|
|
42
|
-
{
|
|
43
|
-
hostname: "guardduty.us-gov-west-1.amazonaws.com",
|
|
44
|
-
tags: [],
|
|
45
|
-
},
|
|
46
30
|
{
|
|
47
31
|
hostname: "guardduty.us-gov-west-1.amazonaws.com",
|
|
48
32
|
tags: ["fips"],
|
|
@@ -51,10 +35,6 @@ var regionHash = {
|
|
|
51
35
|
},
|
|
52
36
|
"us-west-1": {
|
|
53
37
|
variants: [
|
|
54
|
-
{
|
|
55
|
-
hostname: "guardduty.us-west-1.amazonaws.com",
|
|
56
|
-
tags: [],
|
|
57
|
-
},
|
|
58
38
|
{
|
|
59
39
|
hostname: "guardduty-fips.us-west-1.amazonaws.com",
|
|
60
40
|
tags: ["fips"],
|
|
@@ -63,10 +43,6 @@ var regionHash = {
|
|
|
63
43
|
},
|
|
64
44
|
"us-west-2": {
|
|
65
45
|
variants: [
|
|
66
|
-
{
|
|
67
|
-
hostname: "guardduty.us-west-2.amazonaws.com",
|
|
68
|
-
tags: [],
|
|
69
|
-
},
|
|
70
46
|
{
|
|
71
47
|
hostname: "guardduty-fips.us-west-2.amazonaws.com",
|
|
72
48
|
tags: ["fips"],
|
|
@@ -7,14 +7,6 @@ export var AcceptInvitationResponse;
|
|
|
7
7
|
(function (AcceptInvitationResponse) {
|
|
8
8
|
AcceptInvitationResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
9
9
|
})(AcceptInvitationResponse || (AcceptInvitationResponse = {}));
|
|
10
|
-
export var BadRequestException;
|
|
11
|
-
(function (BadRequestException) {
|
|
12
|
-
BadRequestException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
13
|
-
})(BadRequestException || (BadRequestException = {}));
|
|
14
|
-
export var InternalServerErrorException;
|
|
15
|
-
(function (InternalServerErrorException) {
|
|
16
|
-
InternalServerErrorException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
17
|
-
})(InternalServerErrorException || (InternalServerErrorException = {}));
|
|
18
10
|
export var AccessControlList;
|
|
19
11
|
(function (AccessControlList) {
|
|
20
12
|
AccessControlList.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -39,6 +31,10 @@ export var DomainDetails;
|
|
|
39
31
|
(function (DomainDetails) {
|
|
40
32
|
DomainDetails.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
41
33
|
})(DomainDetails || (DomainDetails = {}));
|
|
34
|
+
export var RemoteAccountDetails;
|
|
35
|
+
(function (RemoteAccountDetails) {
|
|
36
|
+
RemoteAccountDetails.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
37
|
+
})(RemoteAccountDetails || (RemoteAccountDetails = {}));
|
|
42
38
|
export var City;
|
|
43
39
|
(function (City) {
|
|
44
40
|
City.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -6400,6 +6400,9 @@ var deserializeAws_restJson1AwsApiCallAction = function (output, context) {
|
|
|
6400
6400
|
? deserializeAws_restJson1DomainDetails(output.domainDetails, context)
|
|
6401
6401
|
: undefined,
|
|
6402
6402
|
ErrorCode: __expectString(output.errorCode),
|
|
6403
|
+
RemoteAccountDetails: output.remoteAccountDetails !== undefined && output.remoteAccountDetails !== null
|
|
6404
|
+
? deserializeAws_restJson1RemoteAccountDetails(output.remoteAccountDetails, context)
|
|
6405
|
+
: undefined,
|
|
6403
6406
|
RemoteIpDetails: output.remoteIpDetails !== undefined && output.remoteIpDetails !== null
|
|
6404
6407
|
? deserializeAws_restJson1RemoteIpDetails(output.remoteIpDetails, context)
|
|
6405
6408
|
: undefined,
|
|
@@ -6966,6 +6969,12 @@ var deserializeAws_restJson1PublicAccess = function (output, context) {
|
|
|
6966
6969
|
: undefined,
|
|
6967
6970
|
};
|
|
6968
6971
|
};
|
|
6972
|
+
var deserializeAws_restJson1RemoteAccountDetails = function (output, context) {
|
|
6973
|
+
return {
|
|
6974
|
+
AccountId: __expectString(output.accountId),
|
|
6975
|
+
Affiliated: __expectBoolean(output.affiliated),
|
|
6976
|
+
};
|
|
6977
|
+
};
|
|
6969
6978
|
var deserializeAws_restJson1RemoteIpDetails = function (output, context) {
|
|
6970
6979
|
return {
|
|
6971
6980
|
City: output.city !== undefined && output.city !== null
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
4
4
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
|
|
5
|
-
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
5
|
+
import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
6
6
|
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
7
7
|
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
|
|
8
8
|
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
|
|
@@ -10,8 +10,17 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
|
|
|
10
10
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
11
11
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
12
12
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
13
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
14
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
|
|
13
15
|
export var getRuntimeConfig = function (config) {
|
|
14
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); };
|
|
15
19
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
16
|
-
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", 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
|
|
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 });
|
|
17
26
|
};
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,19 +1,28 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
4
4
|
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";
|
|
5
5
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
6
6
|
import { Hash } from "@aws-sdk/hash-node";
|
|
7
|
-
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
|
|
7
|
+
import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
|
|
8
8
|
import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
|
|
9
|
-
import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
9
|
+
import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
10
10
|
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
|
|
11
11
|
import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
|
|
12
12
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
13
13
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
14
14
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
15
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
16
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
|
|
15
17
|
export var getRuntimeConfig = function (config) {
|
|
16
18
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
19
|
+
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
20
|
+
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
17
21
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
18
|
-
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", 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
|
|
22
|
+
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) {
|
|
23
|
+
switch (_a.label) {
|
|
24
|
+
case 0: return [4, defaultConfigProvider()];
|
|
25
|
+
case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
|
|
26
|
+
}
|
|
27
|
+
}); }); } })), 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
28
|
};
|
|
@@ -60,17 +60,17 @@ import { UpdateThreatIntelSetCommandInput, UpdateThreatIntelSetCommandOutput } f
|
|
|
60
60
|
import { GuardDutyClient } from "./GuardDutyClient";
|
|
61
61
|
/**
|
|
62
62
|
* <p>Amazon GuardDuty is a continuous security monitoring service that analyzes and processes
|
|
63
|
-
* the following data sources: VPC Flow Logs,
|
|
63
|
+
* the following data sources: VPC Flow Logs, Amazon Web Services CloudTrail event logs, and DNS logs. It uses
|
|
64
64
|
* threat intelligence feeds (such as lists of malicious IPs and domains) and machine learning to
|
|
65
|
-
* identify unexpected, potentially unauthorized, and malicious activity within your
|
|
65
|
+
* identify unexpected, potentially unauthorized, and malicious activity within your Amazon Web Services
|
|
66
66
|
* environment. This can include issues like escalations of privileges, uses of exposed
|
|
67
67
|
* credentials, or communication with malicious IPs, URLs, or domains. For example, GuardDuty can
|
|
68
68
|
* detect compromised EC2 instances that serve malware or mine bitcoin. </p>
|
|
69
|
-
* <p>GuardDuty also monitors
|
|
69
|
+
* <p>GuardDuty also monitors Amazon Web Services account access behavior for signs of compromise. Some examples
|
|
70
70
|
* of this are unauthorized infrastructure deployments such as EC2 instances deployed in a Region
|
|
71
71
|
* that has never been used, or unusual API calls like a password policy change to reduce
|
|
72
72
|
* password strength. </p>
|
|
73
|
-
* <p>GuardDuty informs you of the status of your
|
|
73
|
+
* <p>GuardDuty informs you of the status of your Amazon Web Services environment by producing security findings
|
|
74
74
|
* that you can view in the GuardDuty console or through Amazon CloudWatch events. For more
|
|
75
75
|
* information, see the <i>
|
|
76
76
|
* <a href="https://docs.aws.amazon.com/guardduty/latest/ug/what-is-guardduty.html">Amazon
|
|
@@ -111,7 +111,7 @@ export declare class GuardDuty extends GuardDutyClient {
|
|
|
111
111
|
createFilter(args: CreateFilterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateFilterCommandOutput) => void): void;
|
|
112
112
|
/**
|
|
113
113
|
* <p>Creates a new IPSet, which is called a trusted IP list in the console user interface. An
|
|
114
|
-
* IPSet is a list of IP addresses that are trusted for secure communication with
|
|
114
|
+
* IPSet is a list of IP addresses that are trusted for secure communication with Amazon Web Services
|
|
115
115
|
* infrastructure and applications. GuardDuty doesn't generate findings for IP addresses that are
|
|
116
116
|
* included in IPSets. Only users from the administrator account can use this operation.</p>
|
|
117
117
|
*/
|
|
@@ -119,7 +119,7 @@ export declare class GuardDuty extends GuardDutyClient {
|
|
|
119
119
|
createIPSet(args: CreateIPSetCommandInput, cb: (err: any, data?: CreateIPSetCommandOutput) => void): void;
|
|
120
120
|
createIPSet(args: CreateIPSetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateIPSetCommandOutput) => void): void;
|
|
121
121
|
/**
|
|
122
|
-
* <p>Creates member accounts of the current
|
|
122
|
+
* <p>Creates member accounts of the current Amazon Web Services account by specifying a list of Amazon Web Services account
|
|
123
123
|
* IDs. This step is a prerequisite for managing the associated member accounts either by
|
|
124
124
|
* invitation or through an organization.</p>
|
|
125
125
|
* <p>When using <code>Create Members</code> as an organizations delegated administrator this
|
|
@@ -159,7 +159,7 @@ export declare class GuardDuty extends GuardDutyClient {
|
|
|
159
159
|
createThreatIntelSet(args: CreateThreatIntelSetCommandInput, cb: (err: any, data?: CreateThreatIntelSetCommandOutput) => void): void;
|
|
160
160
|
createThreatIntelSet(args: CreateThreatIntelSetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateThreatIntelSetCommandOutput) => void): void;
|
|
161
161
|
/**
|
|
162
|
-
* <p>Declines invitations sent to the current member account by
|
|
162
|
+
* <p>Declines invitations sent to the current member account by Amazon Web Services accounts specified by their
|
|
163
163
|
* account IDs.</p>
|
|
164
164
|
*/
|
|
165
165
|
declineInvitations(args: DeclineInvitationsCommandInput, options?: __HttpHandlerOptions): Promise<DeclineInvitationsCommandOutput>;
|
|
@@ -178,7 +178,7 @@ export declare class GuardDuty extends GuardDutyClient {
|
|
|
178
178
|
deleteFilter(args: DeleteFilterCommandInput, cb: (err: any, data?: DeleteFilterCommandOutput) => void): void;
|
|
179
179
|
deleteFilter(args: DeleteFilterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteFilterCommandOutput) => void): void;
|
|
180
180
|
/**
|
|
181
|
-
* <p>Deletes invitations sent to the current member account by
|
|
181
|
+
* <p>Deletes invitations sent to the current member account by Amazon Web Services accounts specified by their
|
|
182
182
|
* account IDs.</p>
|
|
183
183
|
*/
|
|
184
184
|
deleteInvitations(args: DeleteInvitationsCommandInput, options?: __HttpHandlerOptions): Promise<DeleteInvitationsCommandOutput>;
|
|
@@ -225,7 +225,7 @@ export declare class GuardDuty extends GuardDutyClient {
|
|
|
225
225
|
describePublishingDestination(args: DescribePublishingDestinationCommandInput, cb: (err: any, data?: DescribePublishingDestinationCommandOutput) => void): void;
|
|
226
226
|
describePublishingDestination(args: DescribePublishingDestinationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribePublishingDestinationCommandOutput) => void): void;
|
|
227
227
|
/**
|
|
228
|
-
* <p>Disables an
|
|
228
|
+
* <p>Disables an Amazon Web Services account within the Organization as the GuardDuty delegated
|
|
229
229
|
* administrator.</p>
|
|
230
230
|
*/
|
|
231
231
|
disableOrganizationAdminAccount(args: DisableOrganizationAdminAccountCommandInput, options?: __HttpHandlerOptions): Promise<DisableOrganizationAdminAccountCommandOutput>;
|
|
@@ -245,7 +245,7 @@ export declare class GuardDuty extends GuardDutyClient {
|
|
|
245
245
|
disassociateMembers(args: DisassociateMembersCommandInput, cb: (err: any, data?: DisassociateMembersCommandOutput) => void): void;
|
|
246
246
|
disassociateMembers(args: DisassociateMembersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisassociateMembersCommandOutput) => void): void;
|
|
247
247
|
/**
|
|
248
|
-
* <p>Enables an
|
|
248
|
+
* <p>Enables an Amazon Web Services account within the organization as the GuardDuty delegated
|
|
249
249
|
* administrator.</p>
|
|
250
250
|
*/
|
|
251
251
|
enableOrganizationAdminAccount(args: EnableOrganizationAdminAccountCommandInput, options?: __HttpHandlerOptions): Promise<EnableOrganizationAdminAccountCommandOutput>;
|
|
@@ -324,8 +324,8 @@ export declare class GuardDuty extends GuardDutyClient {
|
|
|
324
324
|
getUsageStatistics(args: GetUsageStatisticsCommandInput, cb: (err: any, data?: GetUsageStatisticsCommandOutput) => void): void;
|
|
325
325
|
getUsageStatistics(args: GetUsageStatisticsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetUsageStatisticsCommandOutput) => void): void;
|
|
326
326
|
/**
|
|
327
|
-
* <p>Invites other
|
|
328
|
-
* CreateMembers) to enable GuardDuty, and allow the current
|
|
327
|
+
* <p>Invites other Amazon Web Services accounts (created as members of the current Amazon Web Services account by
|
|
328
|
+
* CreateMembers) to enable GuardDuty, and allow the current Amazon Web Services account to view and manage these
|
|
329
329
|
* accounts' findings on their behalf as the GuardDuty administrator account.</p>
|
|
330
330
|
*/
|
|
331
331
|
inviteMembers(args: InviteMembersCommandInput, options?: __HttpHandlerOptions): Promise<InviteMembersCommandOutput>;
|
|
@@ -350,7 +350,7 @@ export declare class GuardDuty extends GuardDutyClient {
|
|
|
350
350
|
listFindings(args: ListFindingsCommandInput, cb: (err: any, data?: ListFindingsCommandOutput) => void): void;
|
|
351
351
|
listFindings(args: ListFindingsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListFindingsCommandOutput) => void): void;
|
|
352
352
|
/**
|
|
353
|
-
* <p>Lists all GuardDuty membership invitations that were sent to the current
|
|
353
|
+
* <p>Lists all GuardDuty membership invitations that were sent to the current Amazon Web Services
|
|
354
354
|
* account.</p>
|
|
355
355
|
*/
|
|
356
356
|
listInvitations(args: ListInvitationsCommandInput, options?: __HttpHandlerOptions): Promise<ListInvitationsCommandOutput>;
|
|
@@ -378,7 +378,7 @@ export declare class GuardDuty extends GuardDutyClient {
|
|
|
378
378
|
listOrganizationAdminAccounts(args: ListOrganizationAdminAccountsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListOrganizationAdminAccountsCommandOutput) => void): void;
|
|
379
379
|
/**
|
|
380
380
|
* <p>Returns a list of publishing destinations associated with the specified
|
|
381
|
-
* <code>
|
|
381
|
+
* <code>detectorId</code>.</p>
|
|
382
382
|
*/
|
|
383
383
|
listPublishingDestinations(args: ListPublishingDestinationsCommandInput, options?: __HttpHandlerOptions): Promise<ListPublishingDestinationsCommandOutput>;
|
|
384
384
|
listPublishingDestinations(args: ListPublishingDestinationsCommandInput, cb: (err: any, data?: ListPublishingDestinationsCommandOutput) => void): void;
|