@aws-sdk/client-inspector2 3.830.0 → 3.831.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/README.md +120 -0
- package/dist-cjs/index.js +1297 -313
- package/dist-es/Inspector2.js +30 -0
- package/dist-es/commands/BatchAssociateCodeSecurityScanConfigurationCommand.js +22 -0
- package/dist-es/commands/BatchDisassociateCodeSecurityScanConfigurationCommand.js +22 -0
- package/dist-es/commands/CreateCodeSecurityIntegrationCommand.js +23 -0
- package/dist-es/commands/CreateCodeSecurityScanConfigurationCommand.js +22 -0
- package/dist-es/commands/DeleteCodeSecurityIntegrationCommand.js +22 -0
- package/dist-es/commands/DeleteCodeSecurityScanConfigurationCommand.js +22 -0
- package/dist-es/commands/GetCodeSecurityIntegrationCommand.js +23 -0
- package/dist-es/commands/GetCodeSecurityScanCommand.js +22 -0
- package/dist-es/commands/GetCodeSecurityScanConfigurationCommand.js +22 -0
- package/dist-es/commands/ListCodeSecurityIntegrationsCommand.js +22 -0
- package/dist-es/commands/ListCodeSecurityScanConfigurationAssociationsCommand.js +22 -0
- package/dist-es/commands/ListCodeSecurityScanConfigurationsCommand.js +22 -0
- package/dist-es/commands/StartCodeSecurityScanCommand.js +22 -0
- package/dist-es/commands/UpdateCodeSecurityIntegrationCommand.js +23 -0
- package/dist-es/commands/UpdateCodeSecurityScanConfigurationCommand.js +22 -0
- package/dist-es/commands/index.js +15 -0
- package/dist-es/models/models_0.js +153 -120
- package/dist-es/models/models_1.js +110 -0
- package/dist-es/protocols/Aws_restJson1.js +509 -3
- package/dist-types/Inspector2.d.ts +107 -0
- package/dist-types/Inspector2Client.d.ts +17 -2
- package/dist-types/commands/AssociateMemberCommand.d.ts +6 -1
- package/dist-types/commands/BatchAssociateCodeSecurityScanConfigurationCommand.d.ts +120 -0
- package/dist-types/commands/BatchDisassociateCodeSecurityScanConfigurationCommand.d.ts +120 -0
- package/dist-types/commands/BatchGetAccountStatusCommand.d.ts +6 -1
- package/dist-types/commands/BatchGetCodeSnippetCommand.d.ts +4 -1
- package/dist-types/commands/BatchGetFindingDetailsCommand.d.ts +2 -0
- package/dist-types/commands/BatchGetFreeTrialInfoCommand.d.ts +2 -0
- package/dist-types/commands/BatchGetMemberEc2DeepInspectionStatusCommand.d.ts +5 -1
- package/dist-types/commands/BatchUpdateMemberEc2DeepInspectionStatusCommand.d.ts +5 -1
- package/dist-types/commands/CancelFindingsReportCommand.d.ts +4 -1
- package/dist-types/commands/CancelSbomExportCommand.d.ts +4 -1
- package/dist-types/commands/CreateCisScanConfigurationCommand.d.ts +2 -0
- package/dist-types/commands/CreateCodeSecurityIntegrationCommand.d.ts +111 -0
- package/dist-types/commands/CreateCodeSecurityScanConfigurationCommand.d.ts +116 -0
- package/dist-types/commands/CreateFilterCommand.d.ts +6 -1
- package/dist-types/commands/CreateFindingsReportCommand.d.ts +9 -2
- package/dist-types/commands/CreateSbomExportCommand.d.ts +4 -1
- package/dist-types/commands/DeleteCisScanConfigurationCommand.d.ts +4 -1
- package/dist-types/commands/DeleteCodeSecurityIntegrationCommand.d.ts +91 -0
- package/dist-types/commands/DeleteCodeSecurityScanConfigurationCommand.d.ts +91 -0
- package/dist-types/commands/DeleteFilterCommand.d.ts +4 -1
- package/dist-types/commands/DescribeOrganizationConfigurationCommand.d.ts +3 -0
- package/dist-types/commands/DisableCommand.d.ts +8 -3
- package/dist-types/commands/DisableDelegatedAdminAccountCommand.d.ts +6 -2
- package/dist-types/commands/DisassociateMemberCommand.d.ts +2 -0
- package/dist-types/commands/EnableCommand.d.ts +6 -1
- package/dist-types/commands/EnableDelegatedAdminAccountCommand.d.ts +6 -2
- package/dist-types/commands/GetCisScanReportCommand.d.ts +5 -2
- package/dist-types/commands/GetCisScanResultDetailsCommand.d.ts +3 -1
- package/dist-types/commands/GetClustersForImageCommand.d.ts +3 -1
- package/dist-types/commands/GetCodeSecurityIntegrationCommand.d.ts +104 -0
- package/dist-types/commands/GetCodeSecurityScanCommand.d.ts +107 -0
- package/dist-types/commands/GetCodeSecurityScanConfigurationCommand.d.ts +115 -0
- package/dist-types/commands/GetConfigurationCommand.d.ts +3 -2
- package/dist-types/commands/GetDelegatedAdminAccountCommand.d.ts +5 -2
- package/dist-types/commands/GetEc2DeepInspectionConfigurationCommand.d.ts +7 -4
- package/dist-types/commands/GetEncryptionKeyCommand.d.ts +5 -2
- package/dist-types/commands/GetFindingsReportStatusCommand.d.ts +7 -2
- package/dist-types/commands/GetMemberCommand.d.ts +5 -2
- package/dist-types/commands/GetSbomExportCommand.d.ts +5 -3
- package/dist-types/commands/ListAccountPermissionsCommand.d.ts +2 -0
- package/dist-types/commands/ListCisScanConfigurationsCommand.d.ts +2 -0
- package/dist-types/commands/ListCisScanResultsAggregatedByChecksCommand.d.ts +2 -0
- package/dist-types/commands/ListCisScanResultsAggregatedByTargetResourceCommand.d.ts +2 -0
- package/dist-types/commands/ListCisScansCommand.d.ts +2 -0
- package/dist-types/commands/ListCodeSecurityIntegrationsCommand.d.ts +102 -0
- package/dist-types/commands/ListCodeSecurityScanConfigurationAssociationsCommand.d.ts +101 -0
- package/dist-types/commands/ListCodeSecurityScanConfigurationsCommand.d.ts +113 -0
- package/dist-types/commands/ListCoverageCommand.d.ts +37 -0
- package/dist-types/commands/ListCoverageStatisticsCommand.d.ts +4 -0
- package/dist-types/commands/ListDelegatedAdminAccountsCommand.d.ts +3 -2
- package/dist-types/commands/ListFiltersCommand.d.ts +4 -0
- package/dist-types/commands/ListFindingAggregationsCommand.d.ts +16 -0
- package/dist-types/commands/ListFindingsCommand.d.ts +7 -0
- package/dist-types/commands/ListMembersCommand.d.ts +2 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -1
- package/dist-types/commands/ListUsageTotalsCommand.d.ts +2 -0
- package/dist-types/commands/ResetEncryptionKeyCommand.d.ts +6 -2
- package/dist-types/commands/SearchVulnerabilitiesCommand.d.ts +2 -0
- package/dist-types/commands/SendCisSessionHealthCommand.d.ts +7 -6
- package/dist-types/commands/SendCisSessionTelemetryCommand.d.ts +7 -6
- package/dist-types/commands/StartCisSessionCommand.d.ts +7 -6
- package/dist-types/commands/StartCodeSecurityScanCommand.d.ts +99 -0
- package/dist-types/commands/StopCisSessionCommand.d.ts +7 -6
- package/dist-types/commands/TagResourceCommand.d.ts +2 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +2 -1
- package/dist-types/commands/UpdateCisScanConfigurationCommand.d.ts +4 -1
- package/dist-types/commands/UpdateCodeSecurityIntegrationCommand.d.ts +109 -0
- package/dist-types/commands/UpdateCodeSecurityScanConfigurationCommand.d.ts +109 -0
- package/dist-types/commands/UpdateConfigurationCommand.d.ts +5 -1
- package/dist-types/commands/UpdateEc2DeepInspectionConfigurationCommand.d.ts +4 -1
- package/dist-types/commands/UpdateEncryptionKeyCommand.d.ts +6 -2
- package/dist-types/commands/UpdateFilterCommand.d.ts +6 -1
- package/dist-types/commands/UpdateOrgEc2DeepInspectionConfigurationCommand.d.ts +4 -1
- package/dist-types/commands/UpdateOrganizationConfigurationCommand.d.ts +4 -0
- package/dist-types/commands/index.d.ts +15 -0
- package/dist-types/models/models_0.d.ts +2059 -1859
- package/dist-types/models/models_1.d.ts +1582 -49
- package/dist-types/protocols/Aws_restJson1.d.ts +135 -0
- package/dist-types/ts3.4/Inspector2.d.ts +299 -0
- package/dist-types/ts3.4/Inspector2Client.d.ts +90 -0
- package/dist-types/ts3.4/commands/BatchAssociateCodeSecurityScanConfigurationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/BatchDisassociateCodeSecurityScanConfigurationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateCodeSecurityIntegrationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateCodeSecurityScanConfigurationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteCodeSecurityIntegrationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteCodeSecurityScanConfigurationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetCisScanReportCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetCisScanResultDetailsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetClustersForImageCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetCodeSecurityIntegrationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetCodeSecurityScanCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetCodeSecurityScanConfigurationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetConfigurationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetDelegatedAdminAccountCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetEc2DeepInspectionConfigurationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetEncryptionKeyCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetFindingsReportStatusCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetMemberCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetSbomExportCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/ListCodeSecurityIntegrationsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListCodeSecurityScanConfigurationAssociationsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListCodeSecurityScanConfigurationsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/StartCodeSecurityScanCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateCodeSecurityIntegrationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateCodeSecurityScanConfigurationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +15 -0
- package/dist-types/ts3.4/models/models_0.d.ts +420 -328
- package/dist-types/ts3.4/models/models_1.d.ts +445 -6
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +180 -0
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
1
2
|
import { Inspector2ServiceException as __BaseException } from "./Inspector2ServiceException";
|
|
2
3
|
export class AccessDeniedException extends __BaseException {
|
|
3
4
|
name = "AccessDeniedException";
|
|
@@ -77,6 +78,11 @@ export const AwsEcrContainerSortBy = {
|
|
|
77
78
|
CRITICAL: "CRITICAL",
|
|
78
79
|
HIGH: "HIGH",
|
|
79
80
|
};
|
|
81
|
+
export const CodeRepositorySortBy = {
|
|
82
|
+
ALL: "ALL",
|
|
83
|
+
CRITICAL: "CRITICAL",
|
|
84
|
+
HIGH: "HIGH",
|
|
85
|
+
};
|
|
80
86
|
export const MapComparison = {
|
|
81
87
|
EQUALS: "EQUALS",
|
|
82
88
|
};
|
|
@@ -147,6 +153,8 @@ export var AggregationRequest;
|
|
|
147
153
|
return visitor.lambdaLayerAggregation(value.lambdaLayerAggregation);
|
|
148
154
|
if (value.lambdaFunctionAggregation !== undefined)
|
|
149
155
|
return visitor.lambdaFunctionAggregation(value.lambdaFunctionAggregation);
|
|
156
|
+
if (value.codeRepositoryAggregation !== undefined)
|
|
157
|
+
return visitor.codeRepositoryAggregation(value.codeRepositoryAggregation);
|
|
150
158
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
151
159
|
};
|
|
152
160
|
})(AggregationRequest || (AggregationRequest = {}));
|
|
@@ -175,6 +183,8 @@ export var AggregationResponse;
|
|
|
175
183
|
return visitor.lambdaLayerAggregation(value.lambdaLayerAggregation);
|
|
176
184
|
if (value.lambdaFunctionAggregation !== undefined)
|
|
177
185
|
return visitor.lambdaFunctionAggregation(value.lambdaFunctionAggregation);
|
|
186
|
+
if (value.codeRepositoryAggregation !== undefined)
|
|
187
|
+
return visitor.codeRepositoryAggregation(value.codeRepositoryAggregation);
|
|
178
188
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
179
189
|
};
|
|
180
190
|
})(AggregationResponse || (AggregationResponse = {}));
|
|
@@ -184,6 +194,7 @@ export const AggregationType = {
|
|
|
184
194
|
AWS_EC2_INSTANCE: "AWS_EC2_INSTANCE",
|
|
185
195
|
AWS_ECR_CONTAINER: "AWS_ECR_CONTAINER",
|
|
186
196
|
AWS_LAMBDA_FUNCTION: "AWS_LAMBDA_FUNCTION",
|
|
197
|
+
CODE_REPOSITORY: "CODE_REPOSITORY",
|
|
187
198
|
FINDING_TYPE: "FINDING_TYPE",
|
|
188
199
|
IMAGE_LAYER: "IMAGE_LAYER",
|
|
189
200
|
LAMBDA_LAYER: "LAMBDA_LAYER",
|
|
@@ -195,6 +206,14 @@ export const Architecture = {
|
|
|
195
206
|
ARM64: "ARM64",
|
|
196
207
|
X86_64: "X86_64",
|
|
197
208
|
};
|
|
209
|
+
export var CodeSecurityResource;
|
|
210
|
+
(function (CodeSecurityResource) {
|
|
211
|
+
CodeSecurityResource.visit = (value, visitor) => {
|
|
212
|
+
if (value.projectId !== undefined)
|
|
213
|
+
return visitor.projectId(value.projectId);
|
|
214
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
215
|
+
};
|
|
216
|
+
})(CodeSecurityResource || (CodeSecurityResource = {}));
|
|
198
217
|
export class InternalServerException extends __BaseException {
|
|
199
218
|
name = "InternalServerException";
|
|
200
219
|
$fault = "server";
|
|
@@ -262,6 +281,14 @@ export class ValidationException extends __BaseException {
|
|
|
262
281
|
this.fields = opts.fields;
|
|
263
282
|
}
|
|
264
283
|
}
|
|
284
|
+
export const AssociationResultStatusCode = {
|
|
285
|
+
ACCESS_DENIED: "ACCESS_DENIED",
|
|
286
|
+
INTERNAL_ERROR: "INTERNAL_ERROR",
|
|
287
|
+
INVALID_INPUT: "INVALID_INPUT",
|
|
288
|
+
QUOTA_EXCEEDED: "QUOTA_EXCEEDED",
|
|
289
|
+
RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND",
|
|
290
|
+
SCAN_CONFIGURATION_NOT_FOUND: "SCAN_CONFIGURATION_NOT_FOUND",
|
|
291
|
+
};
|
|
265
292
|
export const PackageType = {
|
|
266
293
|
IMAGE: "IMAGE",
|
|
267
294
|
ZIP: "ZIP",
|
|
@@ -301,6 +328,22 @@ export class BadRequestException extends __BaseException {
|
|
|
301
328
|
Object.setPrototypeOf(this, BadRequestException.prototype);
|
|
302
329
|
}
|
|
303
330
|
}
|
|
331
|
+
export class ConflictException extends __BaseException {
|
|
332
|
+
name = "ConflictException";
|
|
333
|
+
$fault = "client";
|
|
334
|
+
resourceId;
|
|
335
|
+
resourceType;
|
|
336
|
+
constructor(opts) {
|
|
337
|
+
super({
|
|
338
|
+
name: "ConflictException",
|
|
339
|
+
$fault: "client",
|
|
340
|
+
...opts,
|
|
341
|
+
});
|
|
342
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
343
|
+
this.resourceId = opts.resourceId;
|
|
344
|
+
this.resourceType = opts.resourceType;
|
|
345
|
+
}
|
|
346
|
+
}
|
|
304
347
|
export class ResourceNotFoundException extends __BaseException {
|
|
305
348
|
name = "ResourceNotFoundException";
|
|
306
349
|
$fault = "client";
|
|
@@ -330,6 +373,7 @@ export const FreeTrialStatus = {
|
|
|
330
373
|
INACTIVE: "INACTIVE",
|
|
331
374
|
};
|
|
332
375
|
export const FreeTrialType = {
|
|
376
|
+
CODE_REPOSITORY: "CODE_REPOSITORY",
|
|
333
377
|
EC2: "EC2",
|
|
334
378
|
ECR: "ECR",
|
|
335
379
|
LAMBDA: "LAMBDA",
|
|
@@ -471,22 +515,86 @@ export var ClusterMetadata;
|
|
|
471
515
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
472
516
|
};
|
|
473
517
|
})(ClusterMetadata || (ClusterMetadata = {}));
|
|
474
|
-
export
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
518
|
+
export const CodeRepositoryProviderType = {
|
|
519
|
+
GITHUB: "GITHUB",
|
|
520
|
+
GITLAB_SELF_MANAGED: "GITLAB_SELF_MANAGED",
|
|
521
|
+
};
|
|
522
|
+
export const ScanStatusReason = {
|
|
523
|
+
ACCESS_DENIED: "ACCESS_DENIED",
|
|
524
|
+
ACCESS_DENIED_TO_ENCRYPTION_KEY: "ACCESS_DENIED_TO_ENCRYPTION_KEY",
|
|
525
|
+
AGENTLESS_INSTANCE_COLLECTION_TIME_LIMIT_EXCEEDED: "AGENTLESS_INSTANCE_COLLECTION_TIME_LIMIT_EXCEEDED",
|
|
526
|
+
AGENTLESS_INSTANCE_STORAGE_LIMIT_EXCEEDED: "AGENTLESS_INSTANCE_STORAGE_LIMIT_EXCEEDED",
|
|
527
|
+
DEEP_INSPECTION_COLLECTION_TIME_LIMIT_EXCEEDED: "DEEP_INSPECTION_COLLECTION_TIME_LIMIT_EXCEEDED",
|
|
528
|
+
DEEP_INSPECTION_DAILY_SSM_INVENTORY_LIMIT_EXCEEDED: "DEEP_INSPECTION_DAILY_SSM_INVENTORY_LIMIT_EXCEEDED",
|
|
529
|
+
DEEP_INSPECTION_NO_INVENTORY: "DEEP_INSPECTION_NO_INVENTORY",
|
|
530
|
+
DEEP_INSPECTION_PACKAGE_COLLECTION_LIMIT_EXCEEDED: "DEEP_INSPECTION_PACKAGE_COLLECTION_LIMIT_EXCEEDED",
|
|
531
|
+
EC2_INSTANCE_STOPPED: "EC2_INSTANCE_STOPPED",
|
|
532
|
+
EXCLUDED_BY_TAG: "EXCLUDED_BY_TAG",
|
|
533
|
+
IMAGE_SIZE_EXCEEDED: "IMAGE_SIZE_EXCEEDED",
|
|
534
|
+
INTEGRATION_CONNECTION_LOST: "INTEGRATION_CONNECTION_LOST",
|
|
535
|
+
INTERNAL_ERROR: "INTERNAL_ERROR",
|
|
536
|
+
NO_INVENTORY: "NO_INVENTORY",
|
|
537
|
+
NO_RESOURCES_FOUND: "NO_RESOURCES_FOUND",
|
|
538
|
+
NO_SCAN_CONFIGURATION_ASSOCIATED: "NO_SCAN_CONFIGURATION_ASSOCIATED",
|
|
539
|
+
PENDING_DISABLE: "PENDING_DISABLE",
|
|
540
|
+
PENDING_INITIAL_SCAN: "PENDING_INITIAL_SCAN",
|
|
541
|
+
PENDING_REVIVAL_SCAN: "PENDING_REVIVAL_SCAN",
|
|
542
|
+
RESOURCE_TERMINATED: "RESOURCE_TERMINATED",
|
|
543
|
+
SCAN_ELIGIBILITY_EXPIRED: "SCAN_ELIGIBILITY_EXPIRED",
|
|
544
|
+
SCAN_FREQUENCY_MANUAL: "SCAN_FREQUENCY_MANUAL",
|
|
545
|
+
SCAN_FREQUENCY_SCAN_ON_PUSH: "SCAN_FREQUENCY_SCAN_ON_PUSH",
|
|
546
|
+
SCAN_IN_PROGRESS: "SCAN_IN_PROGRESS",
|
|
547
|
+
STALE_INVENTORY: "STALE_INVENTORY",
|
|
548
|
+
SUCCESSFUL: "SUCCESSFUL",
|
|
549
|
+
UNMANAGED_EC2_INSTANCE: "UNMANAGED_EC2_INSTANCE",
|
|
550
|
+
UNSUPPORTED_CONFIG_FILE: "UNSUPPORTED_CONFIG_FILE",
|
|
551
|
+
UNSUPPORTED_LANGUAGE: "UNSUPPORTED_LANGUAGE",
|
|
552
|
+
UNSUPPORTED_MEDIA_TYPE: "UNSUPPORTED_MEDIA_TYPE",
|
|
553
|
+
UNSUPPORTED_OS: "UNSUPPORTED_OS",
|
|
554
|
+
UNSUPPORTED_RUNTIME: "UNSUPPORTED_RUNTIME",
|
|
555
|
+
};
|
|
556
|
+
export const ScanStatusCode = {
|
|
557
|
+
ACTIVE: "ACTIVE",
|
|
558
|
+
INACTIVE: "INACTIVE",
|
|
559
|
+
};
|
|
560
|
+
export const RuleSetCategory = {
|
|
561
|
+
IAC: "IAC",
|
|
562
|
+
SAST: "SAST",
|
|
563
|
+
SCA: "SCA",
|
|
564
|
+
};
|
|
565
|
+
export const ContinuousIntegrationScanEvent = {
|
|
566
|
+
PULL_REQUEST: "PULL_REQUEST",
|
|
567
|
+
PUSH: "PUSH",
|
|
568
|
+
};
|
|
569
|
+
export const CodeScanStatus = {
|
|
570
|
+
FAILED: "FAILED",
|
|
571
|
+
IN_PROGRESS: "IN_PROGRESS",
|
|
572
|
+
SKIPPED: "SKIPPED",
|
|
573
|
+
SUCCESSFUL: "SUCCESSFUL",
|
|
574
|
+
};
|
|
575
|
+
export const IntegrationStatus = {
|
|
576
|
+
ACTIVE: "ACTIVE",
|
|
577
|
+
DISABLING: "DISABLING",
|
|
578
|
+
INACTIVE: "INACTIVE",
|
|
579
|
+
IN_PROGRESS: "IN_PROGRESS",
|
|
580
|
+
PENDING: "PENDING",
|
|
581
|
+
};
|
|
582
|
+
export const IntegrationType = {
|
|
583
|
+
GITHUB: "GITHUB",
|
|
584
|
+
GITLAB_SELF_MANAGED: "GITLAB_SELF_MANAGED",
|
|
585
|
+
};
|
|
586
|
+
export const PeriodicScanFrequency = {
|
|
587
|
+
MONTHLY: "MONTHLY",
|
|
588
|
+
NEVER: "NEVER",
|
|
589
|
+
WEEKLY: "WEEKLY",
|
|
590
|
+
};
|
|
591
|
+
export const ProjectSelectionScope = {
|
|
592
|
+
ALL: "ALL",
|
|
593
|
+
};
|
|
594
|
+
export const ConfigurationLevel = {
|
|
595
|
+
ACCOUNT: "ACCOUNT",
|
|
596
|
+
ORGANIZATION: "ORGANIZATION",
|
|
597
|
+
};
|
|
490
598
|
export const GroupKey = {
|
|
491
599
|
ACCOUNT_ID: "ACCOUNT_ID",
|
|
492
600
|
ECR_REPOSITORY_NAME: "ECR_REPOSITORY_NAME",
|
|
@@ -506,6 +614,7 @@ export const CoverageResourceType = {
|
|
|
506
614
|
AWS_ECR_CONTAINER_IMAGE: "AWS_ECR_CONTAINER_IMAGE",
|
|
507
615
|
AWS_ECR_REPOSITORY: "AWS_ECR_REPOSITORY",
|
|
508
616
|
AWS_LAMBDA_FUNCTION: "AWS_LAMBDA_FUNCTION",
|
|
617
|
+
CODE_REPOSITORY: "CODE_REPOSITORY",
|
|
509
618
|
};
|
|
510
619
|
export const Ec2Platform = {
|
|
511
620
|
LINUX: "LINUX",
|
|
@@ -522,44 +631,19 @@ export const ScanMode = {
|
|
|
522
631
|
EC2_AGENTLESS: "EC2_AGENTLESS",
|
|
523
632
|
EC2_SSM_AGENT_BASED: "EC2_SSM_AGENT_BASED",
|
|
524
633
|
};
|
|
525
|
-
export const ScanStatusReason = {
|
|
526
|
-
ACCESS_DENIED: "ACCESS_DENIED",
|
|
527
|
-
AGENTLESS_INSTANCE_COLLECTION_TIME_LIMIT_EXCEEDED: "AGENTLESS_INSTANCE_COLLECTION_TIME_LIMIT_EXCEEDED",
|
|
528
|
-
AGENTLESS_INSTANCE_STORAGE_LIMIT_EXCEEDED: "AGENTLESS_INSTANCE_STORAGE_LIMIT_EXCEEDED",
|
|
529
|
-
DEEP_INSPECTION_COLLECTION_TIME_LIMIT_EXCEEDED: "DEEP_INSPECTION_COLLECTION_TIME_LIMIT_EXCEEDED",
|
|
530
|
-
DEEP_INSPECTION_DAILY_SSM_INVENTORY_LIMIT_EXCEEDED: "DEEP_INSPECTION_DAILY_SSM_INVENTORY_LIMIT_EXCEEDED",
|
|
531
|
-
DEEP_INSPECTION_NO_INVENTORY: "DEEP_INSPECTION_NO_INVENTORY",
|
|
532
|
-
DEEP_INSPECTION_PACKAGE_COLLECTION_LIMIT_EXCEEDED: "DEEP_INSPECTION_PACKAGE_COLLECTION_LIMIT_EXCEEDED",
|
|
533
|
-
EC2_INSTANCE_STOPPED: "EC2_INSTANCE_STOPPED",
|
|
534
|
-
EXCLUDED_BY_TAG: "EXCLUDED_BY_TAG",
|
|
535
|
-
IMAGE_SIZE_EXCEEDED: "IMAGE_SIZE_EXCEEDED",
|
|
536
|
-
INTERNAL_ERROR: "INTERNAL_ERROR",
|
|
537
|
-
NO_INVENTORY: "NO_INVENTORY",
|
|
538
|
-
NO_RESOURCES_FOUND: "NO_RESOURCES_FOUND",
|
|
539
|
-
PENDING_DISABLE: "PENDING_DISABLE",
|
|
540
|
-
PENDING_INITIAL_SCAN: "PENDING_INITIAL_SCAN",
|
|
541
|
-
PENDING_REVIVAL_SCAN: "PENDING_REVIVAL_SCAN",
|
|
542
|
-
RESOURCE_TERMINATED: "RESOURCE_TERMINATED",
|
|
543
|
-
SCAN_ELIGIBILITY_EXPIRED: "SCAN_ELIGIBILITY_EXPIRED",
|
|
544
|
-
SCAN_FREQUENCY_MANUAL: "SCAN_FREQUENCY_MANUAL",
|
|
545
|
-
SCAN_FREQUENCY_SCAN_ON_PUSH: "SCAN_FREQUENCY_SCAN_ON_PUSH",
|
|
546
|
-
STALE_INVENTORY: "STALE_INVENTORY",
|
|
547
|
-
SUCCESSFUL: "SUCCESSFUL",
|
|
548
|
-
UNMANAGED_EC2_INSTANCE: "UNMANAGED_EC2_INSTANCE",
|
|
549
|
-
UNSUPPORTED_CONFIG_FILE: "UNSUPPORTED_CONFIG_FILE",
|
|
550
|
-
UNSUPPORTED_MEDIA_TYPE: "UNSUPPORTED_MEDIA_TYPE",
|
|
551
|
-
UNSUPPORTED_OS: "UNSUPPORTED_OS",
|
|
552
|
-
UNSUPPORTED_RUNTIME: "UNSUPPORTED_RUNTIME",
|
|
553
|
-
};
|
|
554
|
-
export const ScanStatusCode = {
|
|
555
|
-
ACTIVE: "ACTIVE",
|
|
556
|
-
INACTIVE: "INACTIVE",
|
|
557
|
-
};
|
|
558
634
|
export const ScanType = {
|
|
559
635
|
CODE: "CODE",
|
|
560
636
|
NETWORK: "NETWORK",
|
|
561
637
|
PACKAGE: "PACKAGE",
|
|
562
638
|
};
|
|
639
|
+
export var CreateIntegrationDetail;
|
|
640
|
+
(function (CreateIntegrationDetail) {
|
|
641
|
+
CreateIntegrationDetail.visit = (value, visitor) => {
|
|
642
|
+
if (value.gitlabSelfManaged !== undefined)
|
|
643
|
+
return visitor.gitlabSelfManaged(value.gitlabSelfManaged);
|
|
644
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
645
|
+
};
|
|
646
|
+
})(CreateIntegrationDetail || (CreateIntegrationDetail = {}));
|
|
563
647
|
export const FilterAction = {
|
|
564
648
|
NONE: "NONE",
|
|
565
649
|
SUPPRESS: "SUPPRESS",
|
|
@@ -601,6 +685,7 @@ export const DelegatedAdminStatus = {
|
|
|
601
685
|
ENABLED: "ENABLED",
|
|
602
686
|
};
|
|
603
687
|
export const ResourceScanType = {
|
|
688
|
+
CODE_REPOSITORY: "CODE_REPOSITORY",
|
|
604
689
|
EC2: "EC2",
|
|
605
690
|
ECR: "ECR",
|
|
606
691
|
LAMBDA: "LAMBDA",
|
|
@@ -638,74 +723,22 @@ export const EcrRescanDurationStatus = {
|
|
|
638
723
|
PENDING: "PENDING",
|
|
639
724
|
SUCCESS: "SUCCESS",
|
|
640
725
|
};
|
|
641
|
-
export const
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
}
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
};
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
};
|
|
656
|
-
export const
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
};
|
|
660
|
-
export const PackageManager = {
|
|
661
|
-
BUNDLER: "BUNDLER",
|
|
662
|
-
CARGO: "CARGO",
|
|
663
|
-
COMPOSER: "COMPOSER",
|
|
664
|
-
DOTNET_CORE: "DOTNET_CORE",
|
|
665
|
-
GEMSPEC: "GEMSPEC",
|
|
666
|
-
GOBINARY: "GOBINARY",
|
|
667
|
-
GOMOD: "GOMOD",
|
|
668
|
-
JAR: "JAR",
|
|
669
|
-
NODEPKG: "NODEPKG",
|
|
670
|
-
NPM: "NPM",
|
|
671
|
-
NUGET: "NUGET",
|
|
672
|
-
OS: "OS",
|
|
673
|
-
PIP: "PIP",
|
|
674
|
-
PIPENV: "PIPENV",
|
|
675
|
-
POETRY: "POETRY",
|
|
676
|
-
POM: "POM",
|
|
677
|
-
PYTHONPKG: "PYTHONPKG",
|
|
678
|
-
YARN: "YARN",
|
|
679
|
-
};
|
|
680
|
-
export const ResourceType = {
|
|
681
|
-
AWS_EC2_INSTANCE: "AWS_EC2_INSTANCE",
|
|
682
|
-
AWS_ECR_CONTAINER_IMAGE: "AWS_ECR_CONTAINER_IMAGE",
|
|
683
|
-
AWS_ECR_REPOSITORY: "AWS_ECR_REPOSITORY",
|
|
684
|
-
AWS_LAMBDA_FUNCTION: "AWS_LAMBDA_FUNCTION",
|
|
685
|
-
};
|
|
686
|
-
export const Severity = {
|
|
687
|
-
CRITICAL: "CRITICAL",
|
|
688
|
-
HIGH: "HIGH",
|
|
689
|
-
INFORMATIONAL: "INFORMATIONAL",
|
|
690
|
-
LOW: "LOW",
|
|
691
|
-
MEDIUM: "MEDIUM",
|
|
692
|
-
UNTRIAGED: "UNTRIAGED",
|
|
693
|
-
};
|
|
694
|
-
export const FindingStatus = {
|
|
695
|
-
ACTIVE: "ACTIVE",
|
|
696
|
-
CLOSED: "CLOSED",
|
|
697
|
-
SUPPRESSED: "SUPPRESSED",
|
|
698
|
-
};
|
|
699
|
-
export const FindingType = {
|
|
700
|
-
CODE_VULNERABILITY: "CODE_VULNERABILITY",
|
|
701
|
-
NETWORK_REACHABILITY: "NETWORK_REACHABILITY",
|
|
702
|
-
PACKAGE_VULNERABILITY: "PACKAGE_VULNERABILITY",
|
|
703
|
-
};
|
|
704
|
-
export const ReportingErrorCode = {
|
|
705
|
-
BUCKET_NOT_FOUND: "BUCKET_NOT_FOUND",
|
|
706
|
-
INCOMPATIBLE_BUCKET_REGION: "INCOMPATIBLE_BUCKET_REGION",
|
|
707
|
-
INTERNAL_ERROR: "INTERNAL_ERROR",
|
|
708
|
-
INVALID_PERMISSIONS: "INVALID_PERMISSIONS",
|
|
709
|
-
MALFORMED_KMS_KEY: "MALFORMED_KMS_KEY",
|
|
710
|
-
NO_FINDINGS_FOUND: "NO_FINDINGS_FOUND",
|
|
711
|
-
};
|
|
726
|
+
export const CreateGitLabSelfManagedIntegrationDetailFilterSensitiveLog = (obj) => ({
|
|
727
|
+
...obj,
|
|
728
|
+
...(obj.instanceUrl && { instanceUrl: SENSITIVE_STRING }),
|
|
729
|
+
...(obj.accessToken && { accessToken: SENSITIVE_STRING }),
|
|
730
|
+
});
|
|
731
|
+
export const CreateIntegrationDetailFilterSensitiveLog = (obj) => {
|
|
732
|
+
if (obj.gitlabSelfManaged !== undefined)
|
|
733
|
+
return { gitlabSelfManaged: CreateGitLabSelfManagedIntegrationDetailFilterSensitiveLog(obj.gitlabSelfManaged) };
|
|
734
|
+
if (obj.$unknown !== undefined)
|
|
735
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
736
|
+
};
|
|
737
|
+
export const CreateCodeSecurityIntegrationRequestFilterSensitiveLog = (obj) => ({
|
|
738
|
+
...obj,
|
|
739
|
+
...(obj.details && { details: CreateIntegrationDetailFilterSensitiveLog(obj.details) }),
|
|
740
|
+
});
|
|
741
|
+
export const CreateCodeSecurityIntegrationResponseFilterSensitiveLog = (obj) => ({
|
|
742
|
+
...obj,
|
|
743
|
+
...(obj.authorizationUrl && { authorizationUrl: SENSITIVE_STRING }),
|
|
744
|
+
});
|
|
@@ -1,3 +1,76 @@
|
|
|
1
|
+
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
|
+
export const ExploitAvailable = {
|
|
3
|
+
NO: "NO",
|
|
4
|
+
YES: "YES",
|
|
5
|
+
};
|
|
6
|
+
export const ExternalReportStatus = {
|
|
7
|
+
CANCELLED: "CANCELLED",
|
|
8
|
+
FAILED: "FAILED",
|
|
9
|
+
IN_PROGRESS: "IN_PROGRESS",
|
|
10
|
+
SUCCEEDED: "SUCCEEDED",
|
|
11
|
+
};
|
|
12
|
+
export const FixAvailable = {
|
|
13
|
+
NO: "NO",
|
|
14
|
+
PARTIAL: "PARTIAL",
|
|
15
|
+
YES: "YES",
|
|
16
|
+
};
|
|
17
|
+
export const NetworkProtocol = {
|
|
18
|
+
TCP: "TCP",
|
|
19
|
+
UDP: "UDP",
|
|
20
|
+
};
|
|
21
|
+
export const PackageManager = {
|
|
22
|
+
BUNDLER: "BUNDLER",
|
|
23
|
+
CARGO: "CARGO",
|
|
24
|
+
COMPOSER: "COMPOSER",
|
|
25
|
+
DOTNET_CORE: "DOTNET_CORE",
|
|
26
|
+
GEMSPEC: "GEMSPEC",
|
|
27
|
+
GOBINARY: "GOBINARY",
|
|
28
|
+
GOMOD: "GOMOD",
|
|
29
|
+
JAR: "JAR",
|
|
30
|
+
NODEPKG: "NODEPKG",
|
|
31
|
+
NPM: "NPM",
|
|
32
|
+
NUGET: "NUGET",
|
|
33
|
+
OS: "OS",
|
|
34
|
+
PIP: "PIP",
|
|
35
|
+
PIPENV: "PIPENV",
|
|
36
|
+
POETRY: "POETRY",
|
|
37
|
+
POM: "POM",
|
|
38
|
+
PYTHONPKG: "PYTHONPKG",
|
|
39
|
+
YARN: "YARN",
|
|
40
|
+
};
|
|
41
|
+
export const ResourceType = {
|
|
42
|
+
AWS_EC2_INSTANCE: "AWS_EC2_INSTANCE",
|
|
43
|
+
AWS_ECR_CONTAINER_IMAGE: "AWS_ECR_CONTAINER_IMAGE",
|
|
44
|
+
AWS_ECR_REPOSITORY: "AWS_ECR_REPOSITORY",
|
|
45
|
+
AWS_LAMBDA_FUNCTION: "AWS_LAMBDA_FUNCTION",
|
|
46
|
+
CODE_REPOSITORY: "CODE_REPOSITORY",
|
|
47
|
+
};
|
|
48
|
+
export const Severity = {
|
|
49
|
+
CRITICAL: "CRITICAL",
|
|
50
|
+
HIGH: "HIGH",
|
|
51
|
+
INFORMATIONAL: "INFORMATIONAL",
|
|
52
|
+
LOW: "LOW",
|
|
53
|
+
MEDIUM: "MEDIUM",
|
|
54
|
+
UNTRIAGED: "UNTRIAGED",
|
|
55
|
+
};
|
|
56
|
+
export const FindingStatus = {
|
|
57
|
+
ACTIVE: "ACTIVE",
|
|
58
|
+
CLOSED: "CLOSED",
|
|
59
|
+
SUPPRESSED: "SUPPRESSED",
|
|
60
|
+
};
|
|
61
|
+
export const FindingType = {
|
|
62
|
+
CODE_VULNERABILITY: "CODE_VULNERABILITY",
|
|
63
|
+
NETWORK_REACHABILITY: "NETWORK_REACHABILITY",
|
|
64
|
+
PACKAGE_VULNERABILITY: "PACKAGE_VULNERABILITY",
|
|
65
|
+
};
|
|
66
|
+
export const ReportingErrorCode = {
|
|
67
|
+
BUCKET_NOT_FOUND: "BUCKET_NOT_FOUND",
|
|
68
|
+
INCOMPATIBLE_BUCKET_REGION: "INCOMPATIBLE_BUCKET_REGION",
|
|
69
|
+
INTERNAL_ERROR: "INTERNAL_ERROR",
|
|
70
|
+
INVALID_PERMISSIONS: "INVALID_PERMISSIONS",
|
|
71
|
+
MALFORMED_KMS_KEY: "MALFORMED_KMS_KEY",
|
|
72
|
+
NO_FINDINGS_FOUND: "NO_FINDINGS_FOUND",
|
|
73
|
+
};
|
|
1
74
|
export const Service = {
|
|
2
75
|
EC2: "EC2",
|
|
3
76
|
ECR: "ECR",
|
|
@@ -39,6 +112,9 @@ export const SortField = {
|
|
|
39
112
|
VULNERABILITY_SOURCE: "VULNERABILITY_SOURCE",
|
|
40
113
|
};
|
|
41
114
|
export const UsageType = {
|
|
115
|
+
CODE_REPOSITORY_IAC: "CODE_REPOSITORY_IAC",
|
|
116
|
+
CODE_REPOSITORY_SAST: "CODE_REPOSITORY_SAST",
|
|
117
|
+
CODE_REPOSITORY_SCA: "CODE_REPOSITORY_SCA",
|
|
42
118
|
EC2_INSTANCE_HOURS: "EC2_INSTANCE_HOURS",
|
|
43
119
|
ECR_INITIAL_SCAN: "ECR_INITIAL_SCAN",
|
|
44
120
|
ECR_RESCAN: "ECR_RESCAN",
|
|
@@ -54,3 +130,37 @@ export const StopCisSessionStatus = {
|
|
|
54
130
|
SUCCESS: "SUCCESS",
|
|
55
131
|
UNSUPPORTED_OS: "UNSUPPORTED_OS",
|
|
56
132
|
};
|
|
133
|
+
export var UpdateIntegrationDetails;
|
|
134
|
+
(function (UpdateIntegrationDetails) {
|
|
135
|
+
UpdateIntegrationDetails.visit = (value, visitor) => {
|
|
136
|
+
if (value.gitlabSelfManaged !== undefined)
|
|
137
|
+
return visitor.gitlabSelfManaged(value.gitlabSelfManaged);
|
|
138
|
+
if (value.github !== undefined)
|
|
139
|
+
return visitor.github(value.github);
|
|
140
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
141
|
+
};
|
|
142
|
+
})(UpdateIntegrationDetails || (UpdateIntegrationDetails = {}));
|
|
143
|
+
export const GetCodeSecurityIntegrationResponseFilterSensitiveLog = (obj) => ({
|
|
144
|
+
...obj,
|
|
145
|
+
...(obj.authorizationUrl && { authorizationUrl: SENSITIVE_STRING }),
|
|
146
|
+
});
|
|
147
|
+
export const UpdateGitHubIntegrationDetailFilterSensitiveLog = (obj) => ({
|
|
148
|
+
...obj,
|
|
149
|
+
...(obj.code && { code: SENSITIVE_STRING }),
|
|
150
|
+
});
|
|
151
|
+
export const UpdateGitLabSelfManagedIntegrationDetailFilterSensitiveLog = (obj) => ({
|
|
152
|
+
...obj,
|
|
153
|
+
...(obj.authCode && { authCode: SENSITIVE_STRING }),
|
|
154
|
+
});
|
|
155
|
+
export const UpdateIntegrationDetailsFilterSensitiveLog = (obj) => {
|
|
156
|
+
if (obj.gitlabSelfManaged !== undefined)
|
|
157
|
+
return { gitlabSelfManaged: UpdateGitLabSelfManagedIntegrationDetailFilterSensitiveLog(obj.gitlabSelfManaged) };
|
|
158
|
+
if (obj.github !== undefined)
|
|
159
|
+
return { github: UpdateGitHubIntegrationDetailFilterSensitiveLog(obj.github) };
|
|
160
|
+
if (obj.$unknown !== undefined)
|
|
161
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
162
|
+
};
|
|
163
|
+
export const UpdateCodeSecurityIntegrationRequestFilterSensitiveLog = (obj) => ({
|
|
164
|
+
...obj,
|
|
165
|
+
...(obj.details && { details: UpdateIntegrationDetailsFilterSensitiveLog(obj.details) }),
|
|
166
|
+
});
|