@aws-sdk/client-inspector2 3.1169.0 → 3.1171.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 +76 -11
- package/dist-es/models/enums.js +20 -0
- package/dist-es/schemas/schemas_0.js +51 -10
- package/dist-types/commands/CreateConnectorCommand.d.ts +31 -4
- package/dist-types/commands/ListAccountPermissionsCommand.d.ts +2 -1
- package/dist-types/commands/ListCisScanConfigurationsCommand.d.ts +1 -1
- package/dist-types/commands/ListCisScanResultsAggregatedByChecksCommand.d.ts +1 -1
- package/dist-types/commands/ListConnectorsCommand.d.ts +34 -5
- package/dist-types/commands/UpdateConnectorCommand.d.ts +29 -3
- package/dist-types/models/enums.d.ts +20 -0
- package/dist-types/models/models_0.d.ts +201 -179
- package/dist-types/models/models_1.d.ts +149 -6
- package/dist-types/schemas/schemas_0.d.ts +6 -0
- package/dist-types/ts3.4/commands/ListAccountPermissionsCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/ListCisScanConfigurationsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListCisScanResultsAggregatedByChecksCommand.d.ts +1 -1
- package/dist-types/ts3.4/models/enums.d.ts +20 -0
- package/dist-types/ts3.4/models/models_0.d.ts +42 -34
- package/dist-types/ts3.4/models/models_1.d.ts +48 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +6 -0
- package/package.json +1 -1
|
@@ -1,5 +1,136 @@
|
|
|
1
|
-
import type { AggregationType, CisScanResultsAggregatedByTargetResourceSortBy, CisSecurityLevel, CisSortOrder, CloudProvider, CodeScanStatus, Currency, Ec2DeepInspectionStatus, FilterAction, GroupKey, InheritanceMode, IntegrationStatus, ListCisScansDetailLevel, ListCisScansSortBy, OnDemandResourceType, OnDemandScanStatus, OnDemandScanStatusReason, ResourceType, ScanType, SortField, SortOrder, StopCisSessionStatus, UsageType, VulnerabilitySource } from "./enums";
|
|
2
|
-
import type { AggregationRequest, AggregationResponse, AmiConfiguration, AtigData, AutoEnable, AzureProviderDetailUpdate, CisaData, CisDateFilter, CisNumberFilter, CisScan, CisScanResultsAggregatedByTargetResourceFilterCriteria, CisScanStatusFilter, CisSessionMessage, CisStringFilter, CisTargetResourceAggregation, CodeSecurityIntegrationSummary, CodeSecurityResource, CodeSecurityScanConfiguration, CodeSecurityScanConfigurationAssociationSummary, CodeSecurityScanConfigurationSummary, ComputePlatform, Connector, ConnectorFilterCriteria, ConnectorScanConfiguration, ConnectorScanConfigurationItem, Counts, CoverageFilterCriteria, CoveredResource, Cvss2, Cvss3, Cvss4, DelegatedAdminAccount, Ec2Configuration, EcrConfiguration, Epss, ExploitObserved, Filter, FilterCriteria, Finding, Member, Schedule, StringFilter, TagFilter } from "./models_0";
|
|
1
|
+
import type { AggregationType, CisScanConfigurationsSortBy, CisScanResultsAggregatedByChecksSortBy, CisScanResultsAggregatedByTargetResourceSortBy, CisSecurityLevel, CisSortOrder, CloudProvider, CodeScanStatus, Currency, Ec2DeepInspectionStatus, FilterAction, GroupKey, InheritanceMode, IntegrationStatus, ListCisScansDetailLevel, ListCisScansSortBy, OnDemandResourceType, OnDemandScanStatus, OnDemandScanStatusReason, ResourceType, ScanType, SortField, SortOrder, StopCisSessionStatus, UsageType, VulnerabilitySource } from "./enums";
|
|
2
|
+
import type { AggregationRequest, AggregationResponse, AmiConfiguration, AtigData, AutoEnable, AzureProviderDetailUpdate, CisaData, CisCheckAggregation, CisDateFilter, CisNumberFilter, CisScan, CisScanConfiguration, CisScanResultsAggregatedByChecksFilterCriteria, CisScanResultsAggregatedByTargetResourceFilterCriteria, CisScanStatusFilter, CisSessionMessage, CisStringFilter, CisTargetResourceAggregation, CodeSecurityIntegrationSummary, CodeSecurityResource, CodeSecurityScanConfiguration, CodeSecurityScanConfigurationAssociationSummary, CodeSecurityScanConfigurationSummary, ComputePlatform, Connector, ConnectorFilterCriteria, ConnectorScanConfiguration, ConnectorScanConfigurationItem, Counts, CoverageFilterCriteria, CoveredResource, Cvss2, Cvss3, Cvss4, DelegatedAdminAccount, Ec2Configuration, EcrConfiguration, Epss, ExploitObserved, Filter, FilterCriteria, Finding, GcpProviderDetailUpdate, Member, Permission, Schedule, StringFilter, TagFilter } from "./models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export interface ListAccountPermissionsResponse {
|
|
7
|
+
/**
|
|
8
|
+
* <p>Contains details on the permissions an account has to configure Amazon Inspector.</p>
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
permissions: Permission[] | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* <p>A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request to a list action. For subsequent calls, use the <code>NextToken</code> value returned from the previous request to continue listing results after the first page.</p>
|
|
14
|
+
* @public
|
|
15
|
+
*/
|
|
16
|
+
nextToken?: string | undefined;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* <p>A list of CIS scan configurations filter criteria.</p>
|
|
20
|
+
* @public
|
|
21
|
+
*/
|
|
22
|
+
export interface ListCisScanConfigurationsFilterCriteria {
|
|
23
|
+
/**
|
|
24
|
+
* <p>The list of scan name filters.</p>
|
|
25
|
+
* @public
|
|
26
|
+
*/
|
|
27
|
+
scanNameFilters?: CisStringFilter[] | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* <p>The list of target resource tag filters.</p>
|
|
30
|
+
* @public
|
|
31
|
+
*/
|
|
32
|
+
targetResourceTagFilters?: TagFilter[] | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* <p>The list of scan configuration ARN filters.</p>
|
|
35
|
+
* @public
|
|
36
|
+
*/
|
|
37
|
+
scanConfigurationArnFilters?: CisStringFilter[] | undefined;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* @public
|
|
41
|
+
*/
|
|
42
|
+
export interface ListCisScanConfigurationsRequest {
|
|
43
|
+
/**
|
|
44
|
+
* <p>The CIS scan configuration filter criteria.</p>
|
|
45
|
+
* @public
|
|
46
|
+
*/
|
|
47
|
+
filterCriteria?: ListCisScanConfigurationsFilterCriteria | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* <p>The CIS scan configuration sort by order.</p>
|
|
50
|
+
* @public
|
|
51
|
+
*/
|
|
52
|
+
sortBy?: CisScanConfigurationsSortBy | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* <p>The CIS scan configuration sort order order.</p>
|
|
55
|
+
* @public
|
|
56
|
+
*/
|
|
57
|
+
sortOrder?: CisSortOrder | undefined;
|
|
58
|
+
/**
|
|
59
|
+
* <p>The pagination token from a previous request that's used to retrieve the next page of results.</p>
|
|
60
|
+
* @public
|
|
61
|
+
*/
|
|
62
|
+
nextToken?: string | undefined;
|
|
63
|
+
/**
|
|
64
|
+
* <p>The maximum number of CIS scan configurations to be returned in a single page of results.</p>
|
|
65
|
+
* @public
|
|
66
|
+
*/
|
|
67
|
+
maxResults?: number | undefined;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* @public
|
|
71
|
+
*/
|
|
72
|
+
export interface ListCisScanConfigurationsResponse {
|
|
73
|
+
/**
|
|
74
|
+
* <p>The CIS scan configuration scan configurations.</p>
|
|
75
|
+
* @public
|
|
76
|
+
*/
|
|
77
|
+
scanConfigurations?: CisScanConfiguration[] | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* <p>The pagination token from a previous request that's used to retrieve the next page of results.</p>
|
|
80
|
+
* @public
|
|
81
|
+
*/
|
|
82
|
+
nextToken?: string | undefined;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* @public
|
|
86
|
+
*/
|
|
87
|
+
export interface ListCisScanResultsAggregatedByChecksRequest {
|
|
88
|
+
/**
|
|
89
|
+
* <p>The scan ARN.</p>
|
|
90
|
+
* @public
|
|
91
|
+
*/
|
|
92
|
+
scanArn: string | undefined;
|
|
93
|
+
/**
|
|
94
|
+
* <p>The filter criteria.</p>
|
|
95
|
+
* @public
|
|
96
|
+
*/
|
|
97
|
+
filterCriteria?: CisScanResultsAggregatedByChecksFilterCriteria | undefined;
|
|
98
|
+
/**
|
|
99
|
+
* <p>The sort by order.</p>
|
|
100
|
+
* @public
|
|
101
|
+
*/
|
|
102
|
+
sortBy?: CisScanResultsAggregatedByChecksSortBy | undefined;
|
|
103
|
+
/**
|
|
104
|
+
* <p>The sort order.</p>
|
|
105
|
+
* @public
|
|
106
|
+
*/
|
|
107
|
+
sortOrder?: CisSortOrder | undefined;
|
|
108
|
+
/**
|
|
109
|
+
* <p>The pagination token from a previous request that's used to retrieve the next page of results.</p>
|
|
110
|
+
* @public
|
|
111
|
+
*/
|
|
112
|
+
nextToken?: string | undefined;
|
|
113
|
+
/**
|
|
114
|
+
* <p>The maximum number of scan results aggregated by checks to be returned in a single page of results.</p>
|
|
115
|
+
* @public
|
|
116
|
+
*/
|
|
117
|
+
maxResults?: number | undefined;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* @public
|
|
121
|
+
*/
|
|
122
|
+
export interface ListCisScanResultsAggregatedByChecksResponse {
|
|
123
|
+
/**
|
|
124
|
+
* <p>The check aggregations.</p>
|
|
125
|
+
* @public
|
|
126
|
+
*/
|
|
127
|
+
checkAggregations?: CisCheckAggregation[] | undefined;
|
|
128
|
+
/**
|
|
129
|
+
* <p>The pagination token from a previous request that's used to retrieve the next page of results.</p>
|
|
130
|
+
* @public
|
|
131
|
+
*/
|
|
132
|
+
nextToken?: string | undefined;
|
|
133
|
+
}
|
|
3
134
|
/**
|
|
4
135
|
* @public
|
|
5
136
|
*/
|
|
@@ -366,7 +497,7 @@ export interface ListCoverageStatisticsRequest {
|
|
|
366
497
|
*/
|
|
367
498
|
filterCriteria?: CoverageFilterCriteria | undefined;
|
|
368
499
|
/**
|
|
369
|
-
* <p>The value to group the results by
|
|
500
|
+
* <p>The value to group the results by. For multi-cloud resources, use <code>PROVIDER</code>, <code>PROVIDER_ACCOUNT_ID</code> (Azure subscription ID or Google Cloud Platform (GCP) project ID), <code>PROVIDER_ORG_ID</code> (Azure tenant ID or Google Cloud Platform (GCP) organization ID), or <code>PROVIDER_REGION</code>.</p>
|
|
370
501
|
* @public
|
|
371
502
|
*/
|
|
372
503
|
groupBy?: GroupKey | undefined;
|
|
@@ -734,7 +865,7 @@ export interface ListUsageTotalsRequest {
|
|
|
734
865
|
*/
|
|
735
866
|
export interface Usage {
|
|
736
867
|
/**
|
|
737
|
-
* <p>The type scan.</p>
|
|
868
|
+
* <p>The type of scan. Valid values:</p> <ul> <li> <p>Amazon Web Services – <code>EC2_INSTANCE_HOURS</code>, <code>EC2_AGENTLESS_INSTANCE_HOURS</code>, <code>EC2_AMI_HOURS</code>, <code>EC2_AMI_ONE_SHOT_SCAN</code>, <code>ECR_INITIAL_SCAN</code>, <code>ECR_RESCAN</code>, <code>LAMBDA_FUNCTION_HOURS</code>, <code>LAMBDA_FUNCTION_CODE_HOURS</code>, <code>CODE_REPOSITORY_SAST</code>, <code>CODE_REPOSITORY_IAC</code>, or <code>CODE_REPOSITORY_SCA</code>.</p> </li> <li> <p>Microsoft Azure – <code>AZURE_VM_AGENT_BASED_INSTANCE_HOURS</code>, <code>AZURE_CONTAINER_IMAGE_INITIAL_SCAN</code>, <code>AZURE_CONTAINER_IMAGE_RESCAN</code>, or <code>AZURE_SERVERLESS_FUNCTION_HOURS</code>.</p> </li> <li> <p>Google Cloud Platform (GCP) – <code>GCP_VM_AGENT_BASED_INSTANCE_HOURS</code>, <code>GCP_CONTAINER_IMAGE_INITIAL_SCAN</code>, <code>GCP_CONTAINER_IMAGE_RESCAN</code>, or <code>GCP_CLOUD_RUN_HOURS</code> (Cloud Run functions).</p> </li> </ul>
|
|
738
869
|
* @public
|
|
739
870
|
*/
|
|
740
871
|
type?: UsageType | undefined;
|
|
@@ -754,7 +885,7 @@ export interface Usage {
|
|
|
754
885
|
*/
|
|
755
886
|
currency?: Currency | undefined;
|
|
756
887
|
/**
|
|
757
|
-
* <p>The cloud provider associated with the usage information.</p>
|
|
888
|
+
* <p>The cloud provider associated with the usage information. Valid values:</p> <ul> <li> <p> <code>AWS</code> – Amazon Web Services resources.</p> </li> <li> <p> <code>AZURE</code> – Microsoft Azure resources.</p> </li> <li> <p> <code>GCP</code> – Google Cloud Platform (GCP) resources.</p> </li> </ul>
|
|
758
889
|
* @public
|
|
759
890
|
*/
|
|
760
891
|
cloudProvider?: CloudProvider | undefined;
|
|
@@ -1473,7 +1604,7 @@ export interface UpdateConfigurationResponse {
|
|
|
1473
1604
|
* <p>The provider-specific configuration details for updating a connector.</p>
|
|
1474
1605
|
* @public
|
|
1475
1606
|
*/
|
|
1476
|
-
export type ProviderDetailUpdate = ProviderDetailUpdate.AzureMember | ProviderDetailUpdate.$UnknownMember;
|
|
1607
|
+
export type ProviderDetailUpdate = ProviderDetailUpdate.AzureMember | ProviderDetailUpdate.GcpMember | ProviderDetailUpdate.$UnknownMember;
|
|
1477
1608
|
/**
|
|
1478
1609
|
* @public
|
|
1479
1610
|
*/
|
|
@@ -1484,6 +1615,16 @@ export declare namespace ProviderDetailUpdate {
|
|
|
1484
1615
|
*/
|
|
1485
1616
|
interface AzureMember {
|
|
1486
1617
|
azure: AzureProviderDetailUpdate;
|
|
1618
|
+
gcp?: never;
|
|
1619
|
+
$unknown?: never;
|
|
1620
|
+
}
|
|
1621
|
+
/**
|
|
1622
|
+
* <p>The details specific to Google Cloud Platform (GCP) for updating a connector.</p>
|
|
1623
|
+
* @public
|
|
1624
|
+
*/
|
|
1625
|
+
interface GcpMember {
|
|
1626
|
+
azure?: never;
|
|
1627
|
+
gcp: GcpProviderDetailUpdate;
|
|
1487
1628
|
$unknown?: never;
|
|
1488
1629
|
}
|
|
1489
1630
|
/**
|
|
@@ -1491,6 +1632,7 @@ export declare namespace ProviderDetailUpdate {
|
|
|
1491
1632
|
*/
|
|
1492
1633
|
interface $UnknownMember {
|
|
1493
1634
|
azure?: never;
|
|
1635
|
+
gcp?: never;
|
|
1494
1636
|
$unknown: [string, any];
|
|
1495
1637
|
}
|
|
1496
1638
|
/**
|
|
@@ -1499,6 +1641,7 @@ export declare namespace ProviderDetailUpdate {
|
|
|
1499
1641
|
*/
|
|
1500
1642
|
interface Visitor<T> {
|
|
1501
1643
|
azure: (value: AzureProviderDetailUpdate) => T;
|
|
1644
|
+
gcp: (value: GcpProviderDetailUpdate) => T;
|
|
1502
1645
|
_: (name: string, value: any) => T;
|
|
1503
1646
|
}
|
|
1504
1647
|
}
|
|
@@ -201,6 +201,12 @@ export declare var FindingTypeAggregationResponse$: StaticStructureSchema;
|
|
|
201
201
|
export declare var FreeTrialAccountInfo$: StaticStructureSchema;
|
|
202
202
|
export declare var FreeTrialInfo$: StaticStructureSchema;
|
|
203
203
|
export declare var FreeTrialInfoError$: StaticStructureSchema;
|
|
204
|
+
export declare var GcpCapabilityScope$: StaticStructureSchema;
|
|
205
|
+
export declare var GcpCapabilityScopeInput$: StaticStructureSchema;
|
|
206
|
+
export declare var GcpProviderDetailCreate$: StaticStructureSchema;
|
|
207
|
+
export declare var GcpProviderDetailUpdate$: StaticStructureSchema;
|
|
208
|
+
export declare var GcpScopeConfiguration$: StaticStructureSchema;
|
|
209
|
+
export declare var GcpScopeConfigurationInput$: StaticStructureSchema;
|
|
204
210
|
export declare var GetCisScanReportRequest$: StaticStructureSchema;
|
|
205
211
|
export declare var GetCisScanReportResponse$: StaticStructureSchema;
|
|
206
212
|
export declare var GetCisScanResultDetailsRequest$: StaticStructureSchema;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
-
import { ListAccountPermissionsRequest
|
|
2
|
+
import { ListAccountPermissionsRequest } from "../models/models_0";
|
|
3
|
+
import { ListAccountPermissionsResponse } from "../models/models_1";
|
|
3
4
|
export { __MetadataBearer };
|
|
4
5
|
export interface ListAccountPermissionsCommandInput extends ListAccountPermissionsRequest {}
|
|
5
6
|
export interface ListAccountPermissionsCommandOutput
|
|
@@ -2,7 +2,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
|
2
2
|
import {
|
|
3
3
|
ListCisScanConfigurationsRequest,
|
|
4
4
|
ListCisScanConfigurationsResponse,
|
|
5
|
-
} from "../models/
|
|
5
|
+
} from "../models/models_1";
|
|
6
6
|
export { __MetadataBearer };
|
|
7
7
|
export interface ListCisScanConfigurationsCommandInput extends ListCisScanConfigurationsRequest {}
|
|
8
8
|
export interface ListCisScanConfigurationsCommandOutput
|
|
@@ -2,7 +2,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
|
2
2
|
import {
|
|
3
3
|
ListCisScanResultsAggregatedByChecksRequest,
|
|
4
4
|
ListCisScanResultsAggregatedByChecksResponse,
|
|
5
|
-
} from "../models/
|
|
5
|
+
} from "../models/models_1";
|
|
6
6
|
export { __MetadataBearer };
|
|
7
7
|
export interface ListCisScanResultsAggregatedByChecksCommandInput extends ListCisScanResultsAggregatedByChecksRequest {}
|
|
8
8
|
export interface ListCisScanResultsAggregatedByChecksCommandOutput
|
|
@@ -15,10 +15,13 @@ export declare const AggregationFindingType: {
|
|
|
15
15
|
export type AggregationFindingType =
|
|
16
16
|
(typeof AggregationFindingType)[keyof typeof AggregationFindingType];
|
|
17
17
|
export declare const AggregationResourceType: {
|
|
18
|
+
readonly ARTIFACTREGISTRY_GOOGLEAPIS_COM_DOCKER_IMAGE: "artifactregistry.googleapis.com/DockerImage";
|
|
18
19
|
readonly AWS_EC2_INSTANCE: "AWS_EC2_INSTANCE";
|
|
19
20
|
readonly AWS_ECR_CONTAINER_IMAGE: "AWS_ECR_CONTAINER_IMAGE";
|
|
20
21
|
readonly AWS_LAMBDA_FUNCTION: "AWS_LAMBDA_FUNCTION";
|
|
22
|
+
readonly CLOUDFUNCTIONS_GOOGLEAPIS_COM_FUNCTION: "cloudfunctions.googleapis.com/Function";
|
|
21
23
|
readonly CODE_REPOSITORY: "CODE_REPOSITORY";
|
|
24
|
+
readonly COMPUTE_GOOGLEAPIS_COM_INSTANCE: "compute.googleapis.com/Instance";
|
|
22
25
|
readonly MICROSOFT_COMPUTE_VIRTUAL_MACHINES: "Microsoft.Compute/virtualMachines";
|
|
23
26
|
readonly MICROSOFT_CONTAINER_REGISTRY_REGISTRY_CONTAINER_IMAGE: "Microsoft.ContainerRegistry/registry/containerImage";
|
|
24
27
|
readonly MICROSOFT_WEB_SITES: "Microsoft.Web/sites";
|
|
@@ -170,6 +173,7 @@ export type VmInstanceSortBy = (typeof VmInstanceSortBy)[keyof typeof VmInstance
|
|
|
170
173
|
export declare const Provider: {
|
|
171
174
|
readonly AWS: "AWS";
|
|
172
175
|
readonly AZURE: "AZURE";
|
|
176
|
+
readonly GCP: "GCP";
|
|
173
177
|
};
|
|
174
178
|
export type Provider = (typeof Provider)[keyof typeof Provider];
|
|
175
179
|
export declare const AggregationType: {
|
|
@@ -279,6 +283,8 @@ export declare const Runtime: {
|
|
|
279
283
|
};
|
|
280
284
|
export type Runtime = (typeof Runtime)[keyof typeof Runtime];
|
|
281
285
|
export declare const ScopeType: {
|
|
286
|
+
readonly ORGANIZATION: "ORGANIZATION";
|
|
287
|
+
readonly PROJECT: "PROJECT";
|
|
282
288
|
readonly SUBSCRIPTION: "SUBSCRIPTION";
|
|
283
289
|
readonly TENANT: "TENANT";
|
|
284
290
|
};
|
|
@@ -308,6 +314,7 @@ export type FindingDetailsErrorCode =
|
|
|
308
314
|
export declare const CloudProvider: {
|
|
309
315
|
readonly AWS: "AWS";
|
|
310
316
|
readonly AZURE: "AZURE";
|
|
317
|
+
readonly GCP: "GCP";
|
|
311
318
|
readonly NOT_APPLICABLE: "NOT_APPLICABLE";
|
|
312
319
|
};
|
|
313
320
|
export type CloudProvider = (typeof CloudProvider)[keyof typeof CloudProvider];
|
|
@@ -600,6 +607,7 @@ export type ConnectorHealthStatus =
|
|
|
600
607
|
(typeof ConnectorHealthStatus)[keyof typeof ConnectorHealthStatus];
|
|
601
608
|
export declare const ConnectorCloudProvider: {
|
|
602
609
|
readonly AZURE: "AZURE";
|
|
610
|
+
readonly GCP: "GCP";
|
|
603
611
|
};
|
|
604
612
|
export type ConnectorCloudProvider =
|
|
605
613
|
(typeof ConnectorCloudProvider)[keyof typeof ConnectorCloudProvider];
|
|
@@ -669,11 +677,15 @@ export declare const CoverageMapComparison: {
|
|
|
669
677
|
export type CoverageMapComparison =
|
|
670
678
|
(typeof CoverageMapComparison)[keyof typeof CoverageMapComparison];
|
|
671
679
|
export declare const CoverageResourceType: {
|
|
680
|
+
readonly ARTIFACTREGISTRY_GOOGLEAPIS_COM_DOCKER_IMAGE: "artifactregistry.googleapis.com/DockerImage";
|
|
681
|
+
readonly ARTIFACTREGISTRY_GOOGLEAPIS_COM_REPOSITORY: "artifactregistry.googleapis.com/Repository";
|
|
672
682
|
readonly AWS_EC2_INSTANCE: "AWS_EC2_INSTANCE";
|
|
673
683
|
readonly AWS_ECR_CONTAINER_IMAGE: "AWS_ECR_CONTAINER_IMAGE";
|
|
674
684
|
readonly AWS_ECR_REPOSITORY: "AWS_ECR_REPOSITORY";
|
|
675
685
|
readonly AWS_LAMBDA_FUNCTION: "AWS_LAMBDA_FUNCTION";
|
|
686
|
+
readonly CLOUDFUNCTIONS_GOOGLEAPIS_COM_FUNCTION: "cloudfunctions.googleapis.com/Function";
|
|
676
687
|
readonly CODE_REPOSITORY: "CODE_REPOSITORY";
|
|
688
|
+
readonly COMPUTE_GOOGLEAPIS_COM_INSTANCE: "compute.googleapis.com/Instance";
|
|
677
689
|
readonly MACHINE_IMAGE: "MACHINE_IMAGE";
|
|
678
690
|
readonly MICROSOFT_COMPUTE_VIRTUAL_MACHINES: "Microsoft.Compute/virtualMachines";
|
|
679
691
|
readonly MICROSOFT_CONTAINER_REGISTRY_REGISTRIES: "Microsoft.ContainerRegistry/registries";
|
|
@@ -874,11 +886,14 @@ export declare const PackageManager: {
|
|
|
874
886
|
};
|
|
875
887
|
export type PackageManager = (typeof PackageManager)[keyof typeof PackageManager];
|
|
876
888
|
export declare const ResourceType: {
|
|
889
|
+
readonly ARTIFACTREGISTRY_GOOGLEAPIS_COM_DOCKER_IMAGE: "artifactregistry.googleapis.com/DockerImage";
|
|
877
890
|
readonly AWS_EC2_INSTANCE: "AWS_EC2_INSTANCE";
|
|
878
891
|
readonly AWS_ECR_CONTAINER_IMAGE: "AWS_ECR_CONTAINER_IMAGE";
|
|
879
892
|
readonly AWS_ECR_REPOSITORY: "AWS_ECR_REPOSITORY";
|
|
880
893
|
readonly AWS_LAMBDA_FUNCTION: "AWS_LAMBDA_FUNCTION";
|
|
894
|
+
readonly CLOUDFUNCTIONS_GOOGLEAPIS_COM_FUNCTION: "cloudfunctions.googleapis.com/Function";
|
|
881
895
|
readonly CODE_REPOSITORY: "CODE_REPOSITORY";
|
|
896
|
+
readonly COMPUTE_GOOGLEAPIS_COM_INSTANCE: "compute.googleapis.com/Instance";
|
|
882
897
|
readonly MACHINE_IMAGE: "MACHINE_IMAGE";
|
|
883
898
|
readonly MICROSOFT_COMPUTE_VIRTUAL_MACHINES: "Microsoft.Compute/virtualMachines";
|
|
884
899
|
readonly MICROSOFT_CONTAINER_REGISTRY_REGISTRY_CONTAINER_IMAGE: "Microsoft.ContainerRegistry/registry/containerImage";
|
|
@@ -995,9 +1010,14 @@ export declare const UsageType: {
|
|
|
995
1010
|
readonly CODE_REPOSITORY_SCA: "CODE_REPOSITORY_SCA";
|
|
996
1011
|
readonly EC2_AGENTLESS_INSTANCE_HOURS: "EC2_AGENTLESS_INSTANCE_HOURS";
|
|
997
1012
|
readonly EC2_AMI_HOURS: "EC2_AMI_HOURS";
|
|
1013
|
+
readonly EC2_AMI_ONE_SHOT_SCAN: "EC2_AMI_ONE_SHOT_SCAN";
|
|
998
1014
|
readonly EC2_INSTANCE_HOURS: "EC2_INSTANCE_HOURS";
|
|
999
1015
|
readonly ECR_INITIAL_SCAN: "ECR_INITIAL_SCAN";
|
|
1000
1016
|
readonly ECR_RESCAN: "ECR_RESCAN";
|
|
1017
|
+
readonly GCP_CLOUD_RUN_HOURS: "GCP_CLOUD_RUN_HOURS";
|
|
1018
|
+
readonly GCP_CONTAINER_IMAGE_INITIAL_SCAN: "GCP_CONTAINER_IMAGE_INITIAL_SCAN";
|
|
1019
|
+
readonly GCP_CONTAINER_IMAGE_RESCAN: "GCP_CONTAINER_IMAGE_RESCAN";
|
|
1020
|
+
readonly GCP_VM_AGENT_BASED_INSTANCE_HOURS: "GCP_VM_AGENT_BASED_INSTANCE_HOURS";
|
|
1001
1021
|
readonly LAMBDA_FUNCTION_CODE_HOURS: "LAMBDA_FUNCTION_CODE_HOURS";
|
|
1002
1022
|
readonly LAMBDA_FUNCTION_HOURS: "LAMBDA_FUNCTION_HOURS";
|
|
1003
1023
|
};
|
|
@@ -17,9 +17,7 @@ import {
|
|
|
17
17
|
CisResultStatus,
|
|
18
18
|
CisResultStatusComparison,
|
|
19
19
|
CisRuleStatus,
|
|
20
|
-
CisScanConfigurationsSortBy,
|
|
21
20
|
CisScanResultDetailsSortBy,
|
|
22
|
-
CisScanResultsAggregatedByChecksSortBy,
|
|
23
21
|
CisScanStatus,
|
|
24
22
|
CisScanStatusComparison,
|
|
25
23
|
CisSecurityLevel,
|
|
@@ -1781,6 +1779,17 @@ export interface ComputePlatform {
|
|
|
1781
1779
|
product?: string | undefined;
|
|
1782
1780
|
version?: string | undefined;
|
|
1783
1781
|
}
|
|
1782
|
+
export interface GcpCapabilityScope {
|
|
1783
|
+
scopeType: ScopeType | undefined;
|
|
1784
|
+
scopeValues?: string[] | undefined;
|
|
1785
|
+
state?: ScopeState | undefined;
|
|
1786
|
+
stateReason?: string | undefined;
|
|
1787
|
+
}
|
|
1788
|
+
export interface GcpScopeConfiguration {
|
|
1789
|
+
vmScanning?: GcpCapabilityScope | undefined;
|
|
1790
|
+
containerImageScanning?: GcpCapabilityScope | undefined;
|
|
1791
|
+
serverlessScanning?: GcpCapabilityScope | undefined;
|
|
1792
|
+
}
|
|
1784
1793
|
export interface ConnectorHealth {
|
|
1785
1794
|
connectorStatus: ConnectorHealthStatus | undefined;
|
|
1786
1795
|
lastCheckedAt: Date | undefined;
|
|
@@ -1801,6 +1810,8 @@ export interface Connector {
|
|
|
1801
1810
|
scopeConfiguration?: AzureScopeConfiguration | undefined;
|
|
1802
1811
|
tags?: Record<string, string> | undefined;
|
|
1803
1812
|
autoInstallVMScanner?: boolean | undefined;
|
|
1813
|
+
gcpRegions?: string[] | undefined;
|
|
1814
|
+
gcpScopeConfiguration?: GcpScopeConfiguration | undefined;
|
|
1804
1815
|
}
|
|
1805
1816
|
export interface ConnectorArnFilter {
|
|
1806
1817
|
comparison: ConnectorArnComparison | undefined;
|
|
@@ -2022,20 +2033,44 @@ export interface CreateCodeSecurityScanConfigurationRequest {
|
|
|
2022
2033
|
export interface CreateCodeSecurityScanConfigurationResponse {
|
|
2023
2034
|
scanConfigurationArn: string | undefined;
|
|
2024
2035
|
}
|
|
2036
|
+
export interface GcpCapabilityScopeInput {
|
|
2037
|
+
scopeType: ScopeType | undefined;
|
|
2038
|
+
scopeValues?: string[] | undefined;
|
|
2039
|
+
}
|
|
2040
|
+
export interface GcpScopeConfigurationInput {
|
|
2041
|
+
vmScanning?: GcpCapabilityScopeInput | undefined;
|
|
2042
|
+
containerImageScanning?: GcpCapabilityScopeInput | undefined;
|
|
2043
|
+
serverlessScanning?: GcpCapabilityScopeInput | undefined;
|
|
2044
|
+
}
|
|
2045
|
+
export interface GcpProviderDetailCreate {
|
|
2046
|
+
awsConfigConnectorArn: string | undefined;
|
|
2047
|
+
scopeConfiguration: GcpScopeConfigurationInput | undefined;
|
|
2048
|
+
gcpRegions: string[] | undefined;
|
|
2049
|
+
autoInstallVMScanner?: boolean | undefined;
|
|
2050
|
+
}
|
|
2025
2051
|
export type ProviderDetailCreate =
|
|
2026
2052
|
| ProviderDetailCreate.AzureMember
|
|
2053
|
+
| ProviderDetailCreate.GcpMember
|
|
2027
2054
|
| ProviderDetailCreate.$UnknownMember;
|
|
2028
2055
|
export declare namespace ProviderDetailCreate {
|
|
2029
2056
|
interface AzureMember {
|
|
2030
2057
|
azure: AzureProviderDetailCreate;
|
|
2058
|
+
gcp?: never;
|
|
2059
|
+
$unknown?: never;
|
|
2060
|
+
}
|
|
2061
|
+
interface GcpMember {
|
|
2062
|
+
azure?: never;
|
|
2063
|
+
gcp: GcpProviderDetailCreate;
|
|
2031
2064
|
$unknown?: never;
|
|
2032
2065
|
}
|
|
2033
2066
|
interface $UnknownMember {
|
|
2034
2067
|
azure?: never;
|
|
2068
|
+
gcp?: never;
|
|
2035
2069
|
$unknown: [string, any];
|
|
2036
2070
|
}
|
|
2037
2071
|
interface Visitor<T> {
|
|
2038
2072
|
azure: (value: AzureProviderDetailCreate) => T;
|
|
2073
|
+
gcp: (value: GcpProviderDetailCreate) => T;
|
|
2039
2074
|
_: (name: string, value: any) => T;
|
|
2040
2075
|
}
|
|
2041
2076
|
}
|
|
@@ -2507,6 +2542,11 @@ export interface Finding {
|
|
|
2507
2542
|
codeVulnerabilityDetails?: CodeVulnerabilityDetails | undefined;
|
|
2508
2543
|
epss?: EpssDetails | undefined;
|
|
2509
2544
|
}
|
|
2545
|
+
export interface GcpProviderDetailUpdate {
|
|
2546
|
+
gcpRegions?: string[] | undefined;
|
|
2547
|
+
scopeConfiguration?: GcpScopeConfigurationInput | undefined;
|
|
2548
|
+
autoInstallVMScanner?: boolean | undefined;
|
|
2549
|
+
}
|
|
2510
2550
|
export interface GetCisScanReportRequest {
|
|
2511
2551
|
scanArn: string | undefined;
|
|
2512
2552
|
targetAccounts?: string[] | undefined;
|
|
@@ -2665,35 +2705,3 @@ export interface Permission {
|
|
|
2665
2705
|
service: Service | undefined;
|
|
2666
2706
|
operation: Operation | undefined;
|
|
2667
2707
|
}
|
|
2668
|
-
export interface ListAccountPermissionsResponse {
|
|
2669
|
-
permissions: Permission[] | undefined;
|
|
2670
|
-
nextToken?: string | undefined;
|
|
2671
|
-
}
|
|
2672
|
-
export interface ListCisScanConfigurationsFilterCriteria {
|
|
2673
|
-
scanNameFilters?: CisStringFilter[] | undefined;
|
|
2674
|
-
targetResourceTagFilters?: TagFilter[] | undefined;
|
|
2675
|
-
scanConfigurationArnFilters?: CisStringFilter[] | undefined;
|
|
2676
|
-
}
|
|
2677
|
-
export interface ListCisScanConfigurationsRequest {
|
|
2678
|
-
filterCriteria?: ListCisScanConfigurationsFilterCriteria | undefined;
|
|
2679
|
-
sortBy?: CisScanConfigurationsSortBy | undefined;
|
|
2680
|
-
sortOrder?: CisSortOrder | undefined;
|
|
2681
|
-
nextToken?: string | undefined;
|
|
2682
|
-
maxResults?: number | undefined;
|
|
2683
|
-
}
|
|
2684
|
-
export interface ListCisScanConfigurationsResponse {
|
|
2685
|
-
scanConfigurations?: CisScanConfiguration[] | undefined;
|
|
2686
|
-
nextToken?: string | undefined;
|
|
2687
|
-
}
|
|
2688
|
-
export interface ListCisScanResultsAggregatedByChecksRequest {
|
|
2689
|
-
scanArn: string | undefined;
|
|
2690
|
-
filterCriteria?: CisScanResultsAggregatedByChecksFilterCriteria | undefined;
|
|
2691
|
-
sortBy?: CisScanResultsAggregatedByChecksSortBy | undefined;
|
|
2692
|
-
sortOrder?: CisSortOrder | undefined;
|
|
2693
|
-
nextToken?: string | undefined;
|
|
2694
|
-
maxResults?: number | undefined;
|
|
2695
|
-
}
|
|
2696
|
-
export interface ListCisScanResultsAggregatedByChecksResponse {
|
|
2697
|
-
checkAggregations?: CisCheckAggregation[] | undefined;
|
|
2698
|
-
nextToken?: string | undefined;
|
|
2699
|
-
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AggregationType,
|
|
3
|
+
CisScanConfigurationsSortBy,
|
|
4
|
+
CisScanResultsAggregatedByChecksSortBy,
|
|
3
5
|
CisScanResultsAggregatedByTargetResourceSortBy,
|
|
4
6
|
CisSecurityLevel,
|
|
5
7
|
CisSortOrder,
|
|
@@ -32,9 +34,12 @@ import {
|
|
|
32
34
|
AutoEnable,
|
|
33
35
|
AzureProviderDetailUpdate,
|
|
34
36
|
CisaData,
|
|
37
|
+
CisCheckAggregation,
|
|
35
38
|
CisDateFilter,
|
|
36
39
|
CisNumberFilter,
|
|
37
40
|
CisScan,
|
|
41
|
+
CisScanConfiguration,
|
|
42
|
+
CisScanResultsAggregatedByChecksFilterCriteria,
|
|
38
43
|
CisScanResultsAggregatedByTargetResourceFilterCriteria,
|
|
39
44
|
CisScanStatusFilter,
|
|
40
45
|
CisSessionMessage,
|
|
@@ -64,11 +69,45 @@ import {
|
|
|
64
69
|
Filter,
|
|
65
70
|
FilterCriteria,
|
|
66
71
|
Finding,
|
|
72
|
+
GcpProviderDetailUpdate,
|
|
67
73
|
Member,
|
|
74
|
+
Permission,
|
|
68
75
|
Schedule,
|
|
69
76
|
StringFilter,
|
|
70
77
|
TagFilter,
|
|
71
78
|
} from "./models_0";
|
|
79
|
+
export interface ListAccountPermissionsResponse {
|
|
80
|
+
permissions: Permission[] | undefined;
|
|
81
|
+
nextToken?: string | undefined;
|
|
82
|
+
}
|
|
83
|
+
export interface ListCisScanConfigurationsFilterCriteria {
|
|
84
|
+
scanNameFilters?: CisStringFilter[] | undefined;
|
|
85
|
+
targetResourceTagFilters?: TagFilter[] | undefined;
|
|
86
|
+
scanConfigurationArnFilters?: CisStringFilter[] | undefined;
|
|
87
|
+
}
|
|
88
|
+
export interface ListCisScanConfigurationsRequest {
|
|
89
|
+
filterCriteria?: ListCisScanConfigurationsFilterCriteria | undefined;
|
|
90
|
+
sortBy?: CisScanConfigurationsSortBy | undefined;
|
|
91
|
+
sortOrder?: CisSortOrder | undefined;
|
|
92
|
+
nextToken?: string | undefined;
|
|
93
|
+
maxResults?: number | undefined;
|
|
94
|
+
}
|
|
95
|
+
export interface ListCisScanConfigurationsResponse {
|
|
96
|
+
scanConfigurations?: CisScanConfiguration[] | undefined;
|
|
97
|
+
nextToken?: string | undefined;
|
|
98
|
+
}
|
|
99
|
+
export interface ListCisScanResultsAggregatedByChecksRequest {
|
|
100
|
+
scanArn: string | undefined;
|
|
101
|
+
filterCriteria?: CisScanResultsAggregatedByChecksFilterCriteria | undefined;
|
|
102
|
+
sortBy?: CisScanResultsAggregatedByChecksSortBy | undefined;
|
|
103
|
+
sortOrder?: CisSortOrder | undefined;
|
|
104
|
+
nextToken?: string | undefined;
|
|
105
|
+
maxResults?: number | undefined;
|
|
106
|
+
}
|
|
107
|
+
export interface ListCisScanResultsAggregatedByChecksResponse {
|
|
108
|
+
checkAggregations?: CisCheckAggregation[] | undefined;
|
|
109
|
+
nextToken?: string | undefined;
|
|
110
|
+
}
|
|
72
111
|
export interface ListCisScanResultsAggregatedByTargetResourceRequest {
|
|
73
112
|
scanArn: string | undefined;
|
|
74
113
|
filterCriteria?: CisScanResultsAggregatedByTargetResourceFilterCriteria | undefined;
|
|
@@ -447,18 +486,27 @@ export interface UpdateConfigurationRequest {
|
|
|
447
486
|
export interface UpdateConfigurationResponse {}
|
|
448
487
|
export type ProviderDetailUpdate =
|
|
449
488
|
| ProviderDetailUpdate.AzureMember
|
|
489
|
+
| ProviderDetailUpdate.GcpMember
|
|
450
490
|
| ProviderDetailUpdate.$UnknownMember;
|
|
451
491
|
export declare namespace ProviderDetailUpdate {
|
|
452
492
|
interface AzureMember {
|
|
453
493
|
azure: AzureProviderDetailUpdate;
|
|
494
|
+
gcp?: never;
|
|
495
|
+
$unknown?: never;
|
|
496
|
+
}
|
|
497
|
+
interface GcpMember {
|
|
498
|
+
azure?: never;
|
|
499
|
+
gcp: GcpProviderDetailUpdate;
|
|
454
500
|
$unknown?: never;
|
|
455
501
|
}
|
|
456
502
|
interface $UnknownMember {
|
|
457
503
|
azure?: never;
|
|
504
|
+
gcp?: never;
|
|
458
505
|
$unknown: [string, any];
|
|
459
506
|
}
|
|
460
507
|
interface Visitor<T> {
|
|
461
508
|
azure: (value: AzureProviderDetailUpdate) => T;
|
|
509
|
+
gcp: (value: GcpProviderDetailUpdate) => T;
|
|
462
510
|
_: (name: string, value: any) => T;
|
|
463
511
|
}
|
|
464
512
|
}
|
|
@@ -201,6 +201,12 @@ export declare var FindingTypeAggregationResponse$: StaticStructureSchema;
|
|
|
201
201
|
export declare var FreeTrialAccountInfo$: StaticStructureSchema;
|
|
202
202
|
export declare var FreeTrialInfo$: StaticStructureSchema;
|
|
203
203
|
export declare var FreeTrialInfoError$: StaticStructureSchema;
|
|
204
|
+
export declare var GcpCapabilityScope$: StaticStructureSchema;
|
|
205
|
+
export declare var GcpCapabilityScopeInput$: StaticStructureSchema;
|
|
206
|
+
export declare var GcpProviderDetailCreate$: StaticStructureSchema;
|
|
207
|
+
export declare var GcpProviderDetailUpdate$: StaticStructureSchema;
|
|
208
|
+
export declare var GcpScopeConfiguration$: StaticStructureSchema;
|
|
209
|
+
export declare var GcpScopeConfigurationInput$: StaticStructureSchema;
|
|
204
210
|
export declare var GetCisScanReportRequest$: StaticStructureSchema;
|
|
205
211
|
export declare var GetCisScanReportResponse$: StaticStructureSchema;
|
|
206
212
|
export declare var GetCisScanResultDetailsRequest$: StaticStructureSchema;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-inspector2",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1171.0",
|
|
4
4
|
"description": "AWS SDK for JavaScript Inspector2 Client for Node.js, Browser and React Native",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-inspector2",
|
|
6
6
|
"license": "Apache-2.0",
|