@aws-sdk/client-inspector2 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.
Files changed (102) hide show
  1. package/dist-cjs/index.js +4089 -4023
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/Inspector2Client.js +2 -0
  4. package/dist-es/commands/AssociateMemberCommand.js +3 -9
  5. package/dist-es/commands/BatchAssociateCodeSecurityScanConfigurationCommand.js +3 -9
  6. package/dist-es/commands/BatchDisassociateCodeSecurityScanConfigurationCommand.js +3 -9
  7. package/dist-es/commands/BatchGetAccountStatusCommand.js +3 -9
  8. package/dist-es/commands/BatchGetCodeSnippetCommand.js +3 -9
  9. package/dist-es/commands/BatchGetFindingDetailsCommand.js +3 -9
  10. package/dist-es/commands/BatchGetFreeTrialInfoCommand.js +3 -9
  11. package/dist-es/commands/BatchGetMemberEc2DeepInspectionStatusCommand.js +3 -9
  12. package/dist-es/commands/BatchUpdateMemberEc2DeepInspectionStatusCommand.js +3 -9
  13. package/dist-es/commands/CancelFindingsReportCommand.js +3 -9
  14. package/dist-es/commands/CancelSbomExportCommand.js +3 -9
  15. package/dist-es/commands/CreateCisScanConfigurationCommand.js +3 -9
  16. package/dist-es/commands/CreateCodeSecurityIntegrationCommand.js +3 -10
  17. package/dist-es/commands/CreateCodeSecurityScanConfigurationCommand.js +3 -9
  18. package/dist-es/commands/CreateFilterCommand.js +3 -9
  19. package/dist-es/commands/CreateFindingsReportCommand.js +3 -9
  20. package/dist-es/commands/CreateSbomExportCommand.js +3 -9
  21. package/dist-es/commands/DeleteCisScanConfigurationCommand.js +3 -9
  22. package/dist-es/commands/DeleteCodeSecurityIntegrationCommand.js +3 -9
  23. package/dist-es/commands/DeleteCodeSecurityScanConfigurationCommand.js +3 -9
  24. package/dist-es/commands/DeleteFilterCommand.js +3 -9
  25. package/dist-es/commands/DescribeOrganizationConfigurationCommand.js +3 -9
  26. package/dist-es/commands/DisableCommand.js +3 -9
  27. package/dist-es/commands/DisableDelegatedAdminAccountCommand.js +3 -9
  28. package/dist-es/commands/DisassociateMemberCommand.js +3 -9
  29. package/dist-es/commands/EnableCommand.js +3 -9
  30. package/dist-es/commands/EnableDelegatedAdminAccountCommand.js +3 -9
  31. package/dist-es/commands/GetCisScanReportCommand.js +3 -9
  32. package/dist-es/commands/GetCisScanResultDetailsCommand.js +3 -9
  33. package/dist-es/commands/GetClustersForImageCommand.js +3 -9
  34. package/dist-es/commands/GetCodeSecurityIntegrationCommand.js +3 -10
  35. package/dist-es/commands/GetCodeSecurityScanCommand.js +3 -9
  36. package/dist-es/commands/GetCodeSecurityScanConfigurationCommand.js +3 -9
  37. package/dist-es/commands/GetConfigurationCommand.js +3 -9
  38. package/dist-es/commands/GetDelegatedAdminAccountCommand.js +3 -9
  39. package/dist-es/commands/GetEc2DeepInspectionConfigurationCommand.js +3 -9
  40. package/dist-es/commands/GetEncryptionKeyCommand.js +3 -9
  41. package/dist-es/commands/GetFindingsReportStatusCommand.js +3 -9
  42. package/dist-es/commands/GetMemberCommand.js +3 -9
  43. package/dist-es/commands/GetSbomExportCommand.js +3 -9
  44. package/dist-es/commands/ListAccountPermissionsCommand.js +3 -9
  45. package/dist-es/commands/ListCisScanConfigurationsCommand.js +3 -9
  46. package/dist-es/commands/ListCisScanResultsAggregatedByChecksCommand.js +3 -9
  47. package/dist-es/commands/ListCisScanResultsAggregatedByTargetResourceCommand.js +3 -9
  48. package/dist-es/commands/ListCisScansCommand.js +3 -9
  49. package/dist-es/commands/ListCodeSecurityIntegrationsCommand.js +3 -9
  50. package/dist-es/commands/ListCodeSecurityScanConfigurationAssociationsCommand.js +3 -9
  51. package/dist-es/commands/ListCodeSecurityScanConfigurationsCommand.js +3 -9
  52. package/dist-es/commands/ListCoverageCommand.js +3 -9
  53. package/dist-es/commands/ListCoverageStatisticsCommand.js +3 -9
  54. package/dist-es/commands/ListDelegatedAdminAccountsCommand.js +3 -9
  55. package/dist-es/commands/ListFiltersCommand.js +3 -9
  56. package/dist-es/commands/ListFindingAggregationsCommand.js +3 -9
  57. package/dist-es/commands/ListFindingsCommand.js +3 -9
  58. package/dist-es/commands/ListMembersCommand.js +3 -9
  59. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  60. package/dist-es/commands/ListUsageTotalsCommand.js +3 -9
  61. package/dist-es/commands/ResetEncryptionKeyCommand.js +3 -9
  62. package/dist-es/commands/SearchVulnerabilitiesCommand.js +3 -9
  63. package/dist-es/commands/SendCisSessionHealthCommand.js +3 -9
  64. package/dist-es/commands/SendCisSessionTelemetryCommand.js +3 -9
  65. package/dist-es/commands/StartCisSessionCommand.js +3 -9
  66. package/dist-es/commands/StartCodeSecurityScanCommand.js +3 -9
  67. package/dist-es/commands/StopCisSessionCommand.js +3 -9
  68. package/dist-es/commands/TagResourceCommand.js +3 -9
  69. package/dist-es/commands/UntagResourceCommand.js +3 -9
  70. package/dist-es/commands/UpdateCisScanConfigurationCommand.js +3 -9
  71. package/dist-es/commands/UpdateCodeSecurityIntegrationCommand.js +3 -10
  72. package/dist-es/commands/UpdateCodeSecurityScanConfigurationCommand.js +3 -9
  73. package/dist-es/commands/UpdateConfigurationCommand.js +3 -9
  74. package/dist-es/commands/UpdateEc2DeepInspectionConfigurationCommand.js +3 -9
  75. package/dist-es/commands/UpdateEncryptionKeyCommand.js +3 -9
  76. package/dist-es/commands/UpdateFilterCommand.js +3 -9
  77. package/dist-es/commands/UpdateOrgEc2DeepInspectionConfigurationCommand.js +3 -9
  78. package/dist-es/commands/UpdateOrganizationConfigurationCommand.js +3 -9
  79. package/dist-es/models/models_0.js +0 -120
  80. package/dist-es/models/models_1.js +0 -35
  81. package/dist-es/runtimeConfig.shared.js +2 -0
  82. package/dist-es/schemas/schemas_0.js +3848 -0
  83. package/dist-types/Inspector2Client.d.ts +10 -1
  84. package/dist-types/models/models_0.d.ts +24 -22
  85. package/dist-types/models/models_1.d.ts +4 -21
  86. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  87. package/dist-types/runtimeConfig.d.ts +1 -0
  88. package/dist-types/runtimeConfig.native.d.ts +1 -0
  89. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  90. package/dist-types/schemas/schemas_0.d.ts +550 -0
  91. package/dist-types/ts3.4/Inspector2Client.d.ts +4 -0
  92. package/dist-types/ts3.4/models/models_0.d.ts +0 -18
  93. package/dist-types/ts3.4/models/models_1.d.ts +0 -16
  94. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  95. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  96. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  97. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  98. package/dist-types/ts3.4/schemas/schemas_0.d.ts +557 -0
  99. package/package.json +33 -34
  100. package/dist-es/protocols/Aws_restJson1.js +0 -3204
  101. package/dist-types/protocols/Aws_restJson1.d.ts +0 -677
  102. 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 { de_UpdateCodeSecurityScanConfigurationCommand, se_UpdateCodeSecurityScanConfigurationCommand, } from "../protocols/Aws_restJson1";
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
- .f(void 0, void 0)
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 { de_UpdateConfigurationCommand, se_UpdateConfigurationCommand } from "../protocols/Aws_restJson1";
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
- .f(void 0, void 0)
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 { de_UpdateEc2DeepInspectionConfigurationCommand, se_UpdateEc2DeepInspectionConfigurationCommand, } from "../protocols/Aws_restJson1";
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
- .f(void 0, void 0)
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 { de_UpdateEncryptionKeyCommand, se_UpdateEncryptionKeyCommand } from "../protocols/Aws_restJson1";
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
- .f(void 0, void 0)
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 { de_UpdateFilterCommand, se_UpdateFilterCommand } from "../protocols/Aws_restJson1";
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
- .f(void 0, void 0)
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 { de_UpdateOrgEc2DeepInspectionConfigurationCommand, se_UpdateOrgEc2DeepInspectionConfigurationCommand, } from "../protocols/Aws_restJson1";
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
- .f(void 0, void 0)
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 { de_UpdateOrganizationConfigurationCommand, se_UpdateOrganizationConfigurationCommand, } from "../protocols/Aws_restJson1";
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
- .f(void 0, void 0)
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";
@@ -129,66 +128,6 @@ export const TitleSortBy = {
129
128
  CRITICAL: "CRITICAL",
130
129
  HIGH: "HIGH",
131
130
  };
132
- export var AggregationRequest;
133
- (function (AggregationRequest) {
134
- AggregationRequest.visit = (value, visitor) => {
135
- if (value.accountAggregation !== undefined)
136
- return visitor.accountAggregation(value.accountAggregation);
137
- if (value.amiAggregation !== undefined)
138
- return visitor.amiAggregation(value.amiAggregation);
139
- if (value.awsEcrContainerAggregation !== undefined)
140
- return visitor.awsEcrContainerAggregation(value.awsEcrContainerAggregation);
141
- if (value.ec2InstanceAggregation !== undefined)
142
- return visitor.ec2InstanceAggregation(value.ec2InstanceAggregation);
143
- if (value.findingTypeAggregation !== undefined)
144
- return visitor.findingTypeAggregation(value.findingTypeAggregation);
145
- if (value.imageLayerAggregation !== undefined)
146
- return visitor.imageLayerAggregation(value.imageLayerAggregation);
147
- if (value.packageAggregation !== undefined)
148
- return visitor.packageAggregation(value.packageAggregation);
149
- if (value.repositoryAggregation !== undefined)
150
- return visitor.repositoryAggregation(value.repositoryAggregation);
151
- if (value.titleAggregation !== undefined)
152
- return visitor.titleAggregation(value.titleAggregation);
153
- if (value.lambdaLayerAggregation !== undefined)
154
- return visitor.lambdaLayerAggregation(value.lambdaLayerAggregation);
155
- if (value.lambdaFunctionAggregation !== undefined)
156
- return visitor.lambdaFunctionAggregation(value.lambdaFunctionAggregation);
157
- if (value.codeRepositoryAggregation !== undefined)
158
- return visitor.codeRepositoryAggregation(value.codeRepositoryAggregation);
159
- return visitor._(value.$unknown[0], value.$unknown[1]);
160
- };
161
- })(AggregationRequest || (AggregationRequest = {}));
162
- export var AggregationResponse;
163
- (function (AggregationResponse) {
164
- AggregationResponse.visit = (value, visitor) => {
165
- if (value.accountAggregation !== undefined)
166
- return visitor.accountAggregation(value.accountAggregation);
167
- if (value.amiAggregation !== undefined)
168
- return visitor.amiAggregation(value.amiAggregation);
169
- if (value.awsEcrContainerAggregation !== undefined)
170
- return visitor.awsEcrContainerAggregation(value.awsEcrContainerAggregation);
171
- if (value.ec2InstanceAggregation !== undefined)
172
- return visitor.ec2InstanceAggregation(value.ec2InstanceAggregation);
173
- if (value.findingTypeAggregation !== undefined)
174
- return visitor.findingTypeAggregation(value.findingTypeAggregation);
175
- if (value.imageLayerAggregation !== undefined)
176
- return visitor.imageLayerAggregation(value.imageLayerAggregation);
177
- if (value.packageAggregation !== undefined)
178
- return visitor.packageAggregation(value.packageAggregation);
179
- if (value.repositoryAggregation !== undefined)
180
- return visitor.repositoryAggregation(value.repositoryAggregation);
181
- if (value.titleAggregation !== undefined)
182
- return visitor.titleAggregation(value.titleAggregation);
183
- if (value.lambdaLayerAggregation !== undefined)
184
- return visitor.lambdaLayerAggregation(value.lambdaLayerAggregation);
185
- if (value.lambdaFunctionAggregation !== undefined)
186
- return visitor.lambdaFunctionAggregation(value.lambdaFunctionAggregation);
187
- if (value.codeRepositoryAggregation !== undefined)
188
- return visitor.codeRepositoryAggregation(value.codeRepositoryAggregation);
189
- return visitor._(value.$unknown[0], value.$unknown[1]);
190
- };
191
- })(AggregationResponse || (AggregationResponse = {}));
192
131
  export const AggregationType = {
193
132
  ACCOUNT: "ACCOUNT",
194
133
  AMI: "AMI",
@@ -207,14 +146,6 @@ export const Architecture = {
207
146
  ARM64: "ARM64",
208
147
  X86_64: "X86_64",
209
148
  };
210
- export var CodeSecurityResource;
211
- (function (CodeSecurityResource) {
212
- CodeSecurityResource.visit = (value, visitor) => {
213
- if (value.projectId !== undefined)
214
- return visitor.projectId(value.projectId);
215
- return visitor._(value.$unknown[0], value.$unknown[1]);
216
- };
217
- })(CodeSecurityResource || (CodeSecurityResource = {}));
218
149
  export class InternalServerException extends __BaseException {
219
150
  name = "InternalServerException";
220
151
  $fault = "server";
@@ -443,20 +374,6 @@ export const Day = {
443
374
  TUE: "TUE",
444
375
  WED: "WED",
445
376
  };
446
- export var Schedule;
447
- (function (Schedule) {
448
- Schedule.visit = (value, visitor) => {
449
- if (value.oneTime !== undefined)
450
- return visitor.oneTime(value.oneTime);
451
- if (value.daily !== undefined)
452
- return visitor.daily(value.daily);
453
- if (value.weekly !== undefined)
454
- return visitor.weekly(value.weekly);
455
- if (value.monthly !== undefined)
456
- return visitor.monthly(value.monthly);
457
- return visitor._(value.$unknown[0], value.$unknown[1]);
458
- };
459
- })(Schedule || (Schedule = {}));
460
377
  export const CisScanConfigurationsSortBy = {
461
378
  SCAN_CONFIGURATION_ARN: "SCAN_CONFIGURATION_ARN",
462
379
  SCAN_NAME: "SCAN_NAME",
@@ -506,16 +423,6 @@ export const CisSortOrder = {
506
423
  ASC: "ASC",
507
424
  DESC: "DESC",
508
425
  };
509
- export var ClusterMetadata;
510
- (function (ClusterMetadata) {
511
- ClusterMetadata.visit = (value, visitor) => {
512
- if (value.awsEcsMetadataDetails !== undefined)
513
- return visitor.awsEcsMetadataDetails(value.awsEcsMetadataDetails);
514
- if (value.awsEksMetadataDetails !== undefined)
515
- return visitor.awsEksMetadataDetails(value.awsEksMetadataDetails);
516
- return visitor._(value.$unknown[0], value.$unknown[1]);
517
- };
518
- })(ClusterMetadata || (ClusterMetadata = {}));
519
426
  export const CodeRepositoryProviderType = {
520
427
  GITHUB: "GITHUB",
521
428
  GITLAB_SELF_MANAGED: "GITLAB_SELF_MANAGED",
@@ -637,14 +544,6 @@ export const ScanType = {
637
544
  NETWORK: "NETWORK",
638
545
  PACKAGE: "PACKAGE",
639
546
  };
640
- export var CreateIntegrationDetail;
641
- (function (CreateIntegrationDetail) {
642
- CreateIntegrationDetail.visit = (value, visitor) => {
643
- if (value.gitlabSelfManaged !== undefined)
644
- return visitor.gitlabSelfManaged(value.gitlabSelfManaged);
645
- return visitor._(value.$unknown[0], value.$unknown[1]);
646
- };
647
- })(CreateIntegrationDetail || (CreateIntegrationDetail = {}));
648
547
  export const FilterAction = {
649
548
  NONE: "NONE",
650
549
  SUPPRESS: "SUPPRESS",
@@ -724,22 +623,3 @@ export const EcrRescanDurationStatus = {
724
623
  PENDING: "PENDING",
725
624
  SUCCESS: "SUCCESS",
726
625
  };
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",
@@ -131,37 +130,3 @@ export const StopCisSessionStatus = {
131
130
  SUCCESS: "SUCCESS",
132
131
  UNSUPPORTED_OS: "UNSUPPORTED_OS",
133
132
  };
134
- export var UpdateIntegrationDetails;
135
- (function (UpdateIntegrationDetails) {
136
- UpdateIntegrationDetails.visit = (value, visitor) => {
137
- if (value.gitlabSelfManaged !== undefined)
138
- return visitor.gitlabSelfManaged(value.gitlabSelfManaged);
139
- if (value.github !== undefined)
140
- return visitor.github(value.github);
141
- return visitor._(value.$unknown[0], value.$unknown[1]);
142
- };
143
- })(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,