@aws-sdk/client-detective 3.928.0 → 3.930.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/dist-cjs/index.js +933 -1345
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/DetectiveClient.js +2 -0
- package/dist-es/commands/AcceptInvitationCommand.js +3 -9
- package/dist-es/commands/BatchGetGraphMemberDatasourcesCommand.js +3 -9
- package/dist-es/commands/BatchGetMembershipDatasourcesCommand.js +3 -9
- package/dist-es/commands/CreateGraphCommand.js +3 -9
- package/dist-es/commands/CreateMembersCommand.js +3 -10
- package/dist-es/commands/DeleteGraphCommand.js +3 -9
- package/dist-es/commands/DeleteMembersCommand.js +3 -9
- package/dist-es/commands/DescribeOrganizationConfigurationCommand.js +3 -9
- package/dist-es/commands/DisableOrganizationAdminAccountCommand.js +3 -9
- package/dist-es/commands/DisassociateMembershipCommand.js +3 -9
- package/dist-es/commands/EnableOrganizationAdminAccountCommand.js +3 -9
- package/dist-es/commands/GetInvestigationCommand.js +3 -9
- package/dist-es/commands/GetMembersCommand.js +3 -10
- package/dist-es/commands/ListDatasourcePackagesCommand.js +3 -9
- package/dist-es/commands/ListGraphsCommand.js +3 -9
- package/dist-es/commands/ListIndicatorsCommand.js +3 -9
- package/dist-es/commands/ListInvestigationsCommand.js +3 -9
- package/dist-es/commands/ListInvitationsCommand.js +3 -10
- package/dist-es/commands/ListMembersCommand.js +3 -10
- package/dist-es/commands/ListOrganizationAdminAccountsCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/RejectInvitationCommand.js +3 -9
- package/dist-es/commands/StartInvestigationCommand.js +3 -9
- package/dist-es/commands/StartMonitoringMemberCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateDatasourcePackagesCommand.js +3 -9
- package/dist-es/commands/UpdateInvestigationStateCommand.js +3 -9
- package/dist-es/commands/UpdateOrganizationConfigurationCommand.js +3 -9
- package/dist-es/models/models_0.js +0 -30
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +862 -0
- package/dist-types/DetectiveClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -28
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +2 -5
- package/dist-types/schemas/schemas_0.d.ts +134 -0
- package/dist-types/ts3.4/DetectiveClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -17
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +141 -0
- package/package.json +33 -33
- package/dist-es/protocols/Aws_restJson1.js +0 -1088
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -263
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -353
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { StartInvestigation } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class StartInvestigationCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("AmazonDetective", "StartInvestigation", {})
|
|
17
13
|
.n("DetectiveClient", "StartInvestigationCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_StartInvestigationCommand)
|
|
20
|
-
.de(de_StartInvestigationCommand)
|
|
14
|
+
.sc(StartInvestigation)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { StartMonitoringMember } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class StartMonitoringMemberCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("AmazonDetective", "StartMonitoringMember", {})
|
|
17
13
|
.n("DetectiveClient", "StartMonitoringMemberCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_StartMonitoringMemberCommand)
|
|
20
|
-
.de(de_StartMonitoringMemberCommand)
|
|
14
|
+
.sc(StartMonitoringMember)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { TagResource } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class TagResourceCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("AmazonDetective", "TagResource", {})
|
|
17
13
|
.n("DetectiveClient", "TagResourceCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_TagResourceCommand)
|
|
20
|
-
.de(de_TagResourceCommand)
|
|
14
|
+
.sc(TagResource)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { UntagResource } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class UntagResourceCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("AmazonDetective", "UntagResource", {})
|
|
17
13
|
.n("DetectiveClient", "UntagResourceCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_UntagResourceCommand)
|
|
20
|
-
.de(de_UntagResourceCommand)
|
|
14
|
+
.sc(UntagResource)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { UpdateDatasourcePackages } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class UpdateDatasourcePackagesCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("AmazonDetective", "UpdateDatasourcePackages", {})
|
|
17
13
|
.n("DetectiveClient", "UpdateDatasourcePackagesCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_UpdateDatasourcePackagesCommand)
|
|
20
|
-
.de(de_UpdateDatasourcePackagesCommand)
|
|
14
|
+
.sc(UpdateDatasourcePackages)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { UpdateInvestigationState } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class UpdateInvestigationStateCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("AmazonDetective", "UpdateInvestigationState", {})
|
|
17
13
|
.n("DetectiveClient", "UpdateInvestigationStateCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_UpdateInvestigationStateCommand)
|
|
20
|
-
.de(de_UpdateInvestigationStateCommand)
|
|
14
|
+
.sc(UpdateInvestigationState)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
-
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
3
|
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
-
import {
|
|
4
|
+
import { UpdateOrganizationConfiguration } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class UpdateOrganizationConfigurationCommand extends $Command
|
|
8
7
|
.classBuilder()
|
|
9
8
|
.ep(commonParams)
|
|
10
9
|
.m(function (Command, cs, config, o) {
|
|
11
|
-
return [
|
|
12
|
-
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
-
];
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
15
11
|
})
|
|
16
12
|
.s("AmazonDetective", "UpdateOrganizationConfiguration", {})
|
|
17
13
|
.n("DetectiveClient", "UpdateOrganizationConfigurationCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_UpdateOrganizationConfigurationCommand)
|
|
20
|
-
.de(de_UpdateOrganizationConfigurationCommand)
|
|
14
|
+
.sc(UpdateOrganizationConfiguration)
|
|
21
15
|
.build() {
|
|
22
16
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
1
|
import { DetectiveServiceException as __BaseException } from "./DetectiveServiceException";
|
|
3
2
|
export const ErrorCode = {
|
|
4
3
|
InternalError: "INTERNAL_ERROR",
|
|
@@ -184,32 +183,3 @@ export const SortOrder = {
|
|
|
184
183
|
ASC: "ASC",
|
|
185
184
|
DESC: "DESC",
|
|
186
185
|
};
|
|
187
|
-
export const AccountFilterSensitiveLog = (obj) => ({
|
|
188
|
-
...obj,
|
|
189
|
-
...(obj.EmailAddress && { EmailAddress: SENSITIVE_STRING }),
|
|
190
|
-
});
|
|
191
|
-
export const CreateMembersRequestFilterSensitiveLog = (obj) => ({
|
|
192
|
-
...obj,
|
|
193
|
-
...(obj.Message && { Message: SENSITIVE_STRING }),
|
|
194
|
-
...(obj.Accounts && { Accounts: obj.Accounts.map((item) => AccountFilterSensitiveLog(item)) }),
|
|
195
|
-
});
|
|
196
|
-
export const MemberDetailFilterSensitiveLog = (obj) => ({
|
|
197
|
-
...obj,
|
|
198
|
-
...(obj.EmailAddress && { EmailAddress: SENSITIVE_STRING }),
|
|
199
|
-
});
|
|
200
|
-
export const CreateMembersResponseFilterSensitiveLog = (obj) => ({
|
|
201
|
-
...obj,
|
|
202
|
-
...(obj.Members && { Members: obj.Members.map((item) => MemberDetailFilterSensitiveLog(item)) }),
|
|
203
|
-
});
|
|
204
|
-
export const GetMembersResponseFilterSensitiveLog = (obj) => ({
|
|
205
|
-
...obj,
|
|
206
|
-
...(obj.MemberDetails && { MemberDetails: obj.MemberDetails.map((item) => MemberDetailFilterSensitiveLog(item)) }),
|
|
207
|
-
});
|
|
208
|
-
export const ListInvitationsResponseFilterSensitiveLog = (obj) => ({
|
|
209
|
-
...obj,
|
|
210
|
-
...(obj.Invitations && { Invitations: obj.Invitations.map((item) => MemberDetailFilterSensitiveLog(item)) }),
|
|
211
|
-
});
|
|
212
|
-
export const ListMembersResponseFilterSensitiveLog = (obj) => ({
|
|
213
|
-
...obj,
|
|
214
|
-
...(obj.MemberDetails && { MemberDetails: obj.MemberDetails.map((item) => MemberDetailFilterSensitiveLog(item)) }),
|
|
215
|
-
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
|
2
|
+
import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
|
|
2
3
|
import { NoOpLogger } from "@smithy/smithy-client";
|
|
3
4
|
import { parseUrl } from "@smithy/url-parser";
|
|
4
5
|
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
@@ -22,6 +23,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
22
23
|
},
|
|
23
24
|
],
|
|
24
25
|
logger: config?.logger ?? new NoOpLogger(),
|
|
26
|
+
protocol: config?.protocol ?? new AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.detective" }),
|
|
25
27
|
serviceId: config?.serviceId ?? "Detective",
|
|
26
28
|
urlParser: config?.urlParser ?? parseUrl,
|
|
27
29
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|