@aws-sdk/client-inspector2 3.928.0 → 3.929.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 +4098 -3922
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/Inspector2Client.js +2 -0
- package/dist-es/commands/AssociateMemberCommand.js +3 -9
- package/dist-es/commands/BatchAssociateCodeSecurityScanConfigurationCommand.js +3 -9
- package/dist-es/commands/BatchDisassociateCodeSecurityScanConfigurationCommand.js +3 -9
- package/dist-es/commands/BatchGetAccountStatusCommand.js +3 -9
- package/dist-es/commands/BatchGetCodeSnippetCommand.js +3 -9
- package/dist-es/commands/BatchGetFindingDetailsCommand.js +3 -9
- package/dist-es/commands/BatchGetFreeTrialInfoCommand.js +3 -9
- package/dist-es/commands/BatchGetMemberEc2DeepInspectionStatusCommand.js +3 -9
- package/dist-es/commands/BatchUpdateMemberEc2DeepInspectionStatusCommand.js +3 -9
- package/dist-es/commands/CancelFindingsReportCommand.js +3 -9
- package/dist-es/commands/CancelSbomExportCommand.js +3 -9
- package/dist-es/commands/CreateCisScanConfigurationCommand.js +3 -9
- package/dist-es/commands/CreateCodeSecurityIntegrationCommand.js +3 -10
- package/dist-es/commands/CreateCodeSecurityScanConfigurationCommand.js +3 -9
- package/dist-es/commands/CreateFilterCommand.js +3 -9
- package/dist-es/commands/CreateFindingsReportCommand.js +3 -9
- package/dist-es/commands/CreateSbomExportCommand.js +3 -9
- package/dist-es/commands/DeleteCisScanConfigurationCommand.js +3 -9
- package/dist-es/commands/DeleteCodeSecurityIntegrationCommand.js +3 -9
- package/dist-es/commands/DeleteCodeSecurityScanConfigurationCommand.js +3 -9
- package/dist-es/commands/DeleteFilterCommand.js +3 -9
- package/dist-es/commands/DescribeOrganizationConfigurationCommand.js +3 -9
- package/dist-es/commands/DisableCommand.js +3 -9
- package/dist-es/commands/DisableDelegatedAdminAccountCommand.js +3 -9
- package/dist-es/commands/DisassociateMemberCommand.js +3 -9
- package/dist-es/commands/EnableCommand.js +3 -9
- package/dist-es/commands/EnableDelegatedAdminAccountCommand.js +3 -9
- package/dist-es/commands/GetCisScanReportCommand.js +3 -9
- package/dist-es/commands/GetCisScanResultDetailsCommand.js +3 -9
- package/dist-es/commands/GetClustersForImageCommand.js +3 -9
- package/dist-es/commands/GetCodeSecurityIntegrationCommand.js +3 -10
- package/dist-es/commands/GetCodeSecurityScanCommand.js +3 -9
- package/dist-es/commands/GetCodeSecurityScanConfigurationCommand.js +3 -9
- package/dist-es/commands/GetConfigurationCommand.js +3 -9
- package/dist-es/commands/GetDelegatedAdminAccountCommand.js +3 -9
- package/dist-es/commands/GetEc2DeepInspectionConfigurationCommand.js +3 -9
- package/dist-es/commands/GetEncryptionKeyCommand.js +3 -9
- package/dist-es/commands/GetFindingsReportStatusCommand.js +3 -9
- package/dist-es/commands/GetMemberCommand.js +3 -9
- package/dist-es/commands/GetSbomExportCommand.js +3 -9
- package/dist-es/commands/ListAccountPermissionsCommand.js +3 -9
- package/dist-es/commands/ListCisScanConfigurationsCommand.js +3 -9
- package/dist-es/commands/ListCisScanResultsAggregatedByChecksCommand.js +3 -9
- package/dist-es/commands/ListCisScanResultsAggregatedByTargetResourceCommand.js +3 -9
- package/dist-es/commands/ListCisScansCommand.js +3 -9
- package/dist-es/commands/ListCodeSecurityIntegrationsCommand.js +3 -9
- package/dist-es/commands/ListCodeSecurityScanConfigurationAssociationsCommand.js +3 -9
- package/dist-es/commands/ListCodeSecurityScanConfigurationsCommand.js +3 -9
- package/dist-es/commands/ListCoverageCommand.js +3 -9
- package/dist-es/commands/ListCoverageStatisticsCommand.js +3 -9
- package/dist-es/commands/ListDelegatedAdminAccountsCommand.js +3 -9
- package/dist-es/commands/ListFiltersCommand.js +3 -9
- package/dist-es/commands/ListFindingAggregationsCommand.js +3 -9
- package/dist-es/commands/ListFindingsCommand.js +3 -9
- package/dist-es/commands/ListMembersCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/ListUsageTotalsCommand.js +3 -9
- package/dist-es/commands/ResetEncryptionKeyCommand.js +3 -9
- package/dist-es/commands/SearchVulnerabilitiesCommand.js +3 -9
- package/dist-es/commands/SendCisSessionHealthCommand.js +3 -9
- package/dist-es/commands/SendCisSessionTelemetryCommand.js +3 -9
- package/dist-es/commands/StartCisSessionCommand.js +3 -9
- package/dist-es/commands/StartCodeSecurityScanCommand.js +3 -9
- package/dist-es/commands/StopCisSessionCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateCisScanConfigurationCommand.js +3 -9
- package/dist-es/commands/UpdateCodeSecurityIntegrationCommand.js +3 -10
- package/dist-es/commands/UpdateCodeSecurityScanConfigurationCommand.js +3 -9
- package/dist-es/commands/UpdateConfigurationCommand.js +3 -9
- package/dist-es/commands/UpdateEc2DeepInspectionConfigurationCommand.js +3 -9
- package/dist-es/commands/UpdateEncryptionKeyCommand.js +3 -9
- package/dist-es/commands/UpdateFilterCommand.js +3 -9
- package/dist-es/commands/UpdateOrgEc2DeepInspectionConfigurationCommand.js +3 -9
- package/dist-es/commands/UpdateOrganizationConfigurationCommand.js +3 -9
- package/dist-es/models/models_0.js +0 -20
- package/dist-es/models/models_1.js +0 -25
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +3848 -0
- package/dist-types/Inspector2Client.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -16
- package/dist-types/models/models_1.d.ts +0 -20
- 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 +1 -0
- package/dist-types/schemas/schemas_0.d.ts +550 -0
- package/dist-types/ts3.4/Inspector2Client.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -12
- package/dist-types/ts3.4/models/models_1.d.ts +0 -15
- 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 +557 -0
- package/package.json +2 -3
- package/dist-es/protocols/Aws_restJson1.js +0 -3204
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -677
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -905
|
@@ -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 { UpdateCodeSecurityScanConfiguration } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class UpdateCodeSecurityScanConfigurationCommand 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("Inspector2", "UpdateCodeSecurityScanConfiguration", {})
|
|
17
13
|
.n("Inspector2Client", "UpdateCodeSecurityScanConfigurationCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_UpdateCodeSecurityScanConfigurationCommand)
|
|
20
|
-
.de(de_UpdateCodeSecurityScanConfigurationCommand)
|
|
14
|
+
.sc(UpdateCodeSecurityScanConfiguration)
|
|
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 { UpdateConfiguration } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class UpdateConfigurationCommand 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("Inspector2", "UpdateConfiguration", {})
|
|
17
13
|
.n("Inspector2Client", "UpdateConfigurationCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_UpdateConfigurationCommand)
|
|
20
|
-
.de(de_UpdateConfigurationCommand)
|
|
14
|
+
.sc(UpdateConfiguration)
|
|
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 { UpdateEc2DeepInspectionConfiguration } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class UpdateEc2DeepInspectionConfigurationCommand 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("Inspector2", "UpdateEc2DeepInspectionConfiguration", {})
|
|
17
13
|
.n("Inspector2Client", "UpdateEc2DeepInspectionConfigurationCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_UpdateEc2DeepInspectionConfigurationCommand)
|
|
20
|
-
.de(de_UpdateEc2DeepInspectionConfigurationCommand)
|
|
14
|
+
.sc(UpdateEc2DeepInspectionConfiguration)
|
|
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 { UpdateEncryptionKey } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class UpdateEncryptionKeyCommand 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("Inspector2", "UpdateEncryptionKey", {})
|
|
17
13
|
.n("Inspector2Client", "UpdateEncryptionKeyCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_UpdateEncryptionKeyCommand)
|
|
20
|
-
.de(de_UpdateEncryptionKeyCommand)
|
|
14
|
+
.sc(UpdateEncryptionKey)
|
|
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 { UpdateFilter } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class UpdateFilterCommand 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("Inspector2", "UpdateFilter", {})
|
|
17
13
|
.n("Inspector2Client", "UpdateFilterCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_UpdateFilterCommand)
|
|
20
|
-
.de(de_UpdateFilterCommand)
|
|
14
|
+
.sc(UpdateFilter)
|
|
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 { UpdateOrgEc2DeepInspectionConfiguration } from "../schemas/schemas_0";
|
|
6
5
|
export { $Command };
|
|
7
6
|
export class UpdateOrgEc2DeepInspectionConfigurationCommand 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("Inspector2", "UpdateOrgEc2DeepInspectionConfiguration", {})
|
|
17
13
|
.n("Inspector2Client", "UpdateOrgEc2DeepInspectionConfigurationCommand")
|
|
18
|
-
.
|
|
19
|
-
.ser(se_UpdateOrgEc2DeepInspectionConfigurationCommand)
|
|
20
|
-
.de(de_UpdateOrgEc2DeepInspectionConfigurationCommand)
|
|
14
|
+
.sc(UpdateOrgEc2DeepInspectionConfiguration)
|
|
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("Inspector2", "UpdateOrganizationConfiguration", {})
|
|
17
13
|
.n("Inspector2Client", "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 { Inspector2ServiceException as __BaseException } from "./Inspector2ServiceException";
|
|
3
2
|
export class AccessDeniedException extends __BaseException {
|
|
4
3
|
name = "AccessDeniedException";
|
|
@@ -724,22 +723,3 @@ export const EcrRescanDurationStatus = {
|
|
|
724
723
|
PENDING: "PENDING",
|
|
725
724
|
SUCCESS: "SUCCESS",
|
|
726
725
|
};
|
|
727
|
-
export const CreateGitLabSelfManagedIntegrationDetailFilterSensitiveLog = (obj) => ({
|
|
728
|
-
...obj,
|
|
729
|
-
...(obj.instanceUrl && { instanceUrl: SENSITIVE_STRING }),
|
|
730
|
-
...(obj.accessToken && { accessToken: SENSITIVE_STRING }),
|
|
731
|
-
});
|
|
732
|
-
export const CreateIntegrationDetailFilterSensitiveLog = (obj) => {
|
|
733
|
-
if (obj.gitlabSelfManaged !== undefined)
|
|
734
|
-
return { gitlabSelfManaged: CreateGitLabSelfManagedIntegrationDetailFilterSensitiveLog(obj.gitlabSelfManaged) };
|
|
735
|
-
if (obj.$unknown !== undefined)
|
|
736
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
737
|
-
};
|
|
738
|
-
export const CreateCodeSecurityIntegrationRequestFilterSensitiveLog = (obj) => ({
|
|
739
|
-
...obj,
|
|
740
|
-
...(obj.details && { details: CreateIntegrationDetailFilterSensitiveLog(obj.details) }),
|
|
741
|
-
});
|
|
742
|
-
export const CreateCodeSecurityIntegrationResponseFilterSensitiveLog = (obj) => ({
|
|
743
|
-
...obj,
|
|
744
|
-
...(obj.authorizationUrl && { authorizationUrl: SENSITIVE_STRING }),
|
|
745
|
-
});
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
1
|
export const ExploitAvailable = {
|
|
3
2
|
NO: "NO",
|
|
4
3
|
YES: "YES",
|
|
@@ -141,27 +140,3 @@ export var UpdateIntegrationDetails;
|
|
|
141
140
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
142
141
|
};
|
|
143
142
|
})(UpdateIntegrationDetails || (UpdateIntegrationDetails = {}));
|
|
144
|
-
export const GetCodeSecurityIntegrationResponseFilterSensitiveLog = (obj) => ({
|
|
145
|
-
...obj,
|
|
146
|
-
...(obj.authorizationUrl && { authorizationUrl: SENSITIVE_STRING }),
|
|
147
|
-
});
|
|
148
|
-
export const UpdateGitHubIntegrationDetailFilterSensitiveLog = (obj) => ({
|
|
149
|
-
...obj,
|
|
150
|
-
...(obj.code && { code: SENSITIVE_STRING }),
|
|
151
|
-
});
|
|
152
|
-
export const UpdateGitLabSelfManagedIntegrationDetailFilterSensitiveLog = (obj) => ({
|
|
153
|
-
...obj,
|
|
154
|
-
...(obj.authCode && { authCode: SENSITIVE_STRING }),
|
|
155
|
-
});
|
|
156
|
-
export const UpdateIntegrationDetailsFilterSensitiveLog = (obj) => {
|
|
157
|
-
if (obj.gitlabSelfManaged !== undefined)
|
|
158
|
-
return { gitlabSelfManaged: UpdateGitLabSelfManagedIntegrationDetailFilterSensitiveLog(obj.gitlabSelfManaged) };
|
|
159
|
-
if (obj.github !== undefined)
|
|
160
|
-
return { github: UpdateGitHubIntegrationDetailFilterSensitiveLog(obj.github) };
|
|
161
|
-
if (obj.$unknown !== undefined)
|
|
162
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
163
|
-
};
|
|
164
|
-
export const UpdateCodeSecurityIntegrationRequestFilterSensitiveLog = (obj) => ({
|
|
165
|
-
...obj,
|
|
166
|
-
...(obj.details && { details: UpdateIntegrationDetailsFilterSensitiveLog(obj.details) }),
|
|
167
|
-
});
|
|
@@ -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.inspector2" }),
|
|
25
27
|
serviceId: config?.serviceId ?? "Inspector2",
|
|
26
28
|
urlParser: config?.urlParser ?? parseUrl,
|
|
27
29
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|