@aws-sdk/client-securityhub 3.1161.0 → 3.1163.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 +21 -0
- package/dist-cjs/index.js +191 -6
- package/dist-es/SecurityHub.js +10 -0
- package/dist-es/commands/GetSoftwareResourcesV2Command.js +4 -0
- package/dist-es/commands/GetSoftwareStatisticsV2Command.js +4 -0
- package/dist-es/commands/GetSoftwareV2Command.js +4 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/enums.js +28 -0
- package/dist-es/pagination/GetSoftwareResourcesV2Paginator.js +4 -0
- package/dist-es/pagination/GetSoftwareV2Paginator.js +4 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/runtimeConfig.js +2 -1
- package/dist-es/schemas/schemas_0.js +119 -4
- package/dist-types/SecurityHub.d.ts +36 -0
- package/dist-types/SecurityHubClient.d.ts +5 -2
- package/dist-types/commands/GetSoftwareResourcesV2Command.d.ts +164 -0
- package/dist-types/commands/GetSoftwareStatisticsV2Command.d.ts +158 -0
- package/dist-types/commands/GetSoftwareV2Command.d.ts +157 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/enums.d.ts +44 -0
- package/dist-types/models/models_3.d.ts +318 -1
- package/dist-types/pagination/GetSoftwareResourcesV2Paginator.d.ts +7 -0
- package/dist-types/pagination/GetSoftwareV2Paginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +16 -0
- package/dist-types/ts3.4/SecurityHub.d.ts +66 -0
- package/dist-types/ts3.4/SecurityHubClient.d.ts +18 -0
- package/dist-types/ts3.4/commands/GetSoftwareResourcesV2Command.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetSoftwareStatisticsV2Command.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetSoftwareV2Command.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/enums.d.ts +30 -0
- package/dist-types/ts3.4/models/models_3.d.ts +73 -0
- package/dist-types/ts3.4/pagination/GetSoftwareResourcesV2Paginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/GetSoftwareV2Paginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +16 -0
- package/package.json +3 -3
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import { GetSoftwareV2Request, GetSoftwareV2Response } from "../models/models_3";
|
|
3
|
+
export { __MetadataBearer };
|
|
4
|
+
export interface GetSoftwareV2CommandInput extends GetSoftwareV2Request {}
|
|
5
|
+
export interface GetSoftwareV2CommandOutput extends GetSoftwareV2Response, __MetadataBearer {}
|
|
6
|
+
declare const GetSoftwareV2Command_base: {
|
|
7
|
+
new (
|
|
8
|
+
input: GetSoftwareV2CommandInput,
|
|
9
|
+
): import("@smithy/core/client").CommandImpl<
|
|
10
|
+
GetSoftwareV2CommandInput,
|
|
11
|
+
GetSoftwareV2CommandOutput,
|
|
12
|
+
import("..").SecurityHubClientResolvedConfig,
|
|
13
|
+
import("..").ServiceInputTypes,
|
|
14
|
+
import("..").ServiceOutputTypes
|
|
15
|
+
>;
|
|
16
|
+
new (
|
|
17
|
+
...[input]: [] | [GetSoftwareV2CommandInput]
|
|
18
|
+
): import("@smithy/core/client").CommandImpl<
|
|
19
|
+
GetSoftwareV2CommandInput,
|
|
20
|
+
GetSoftwareV2CommandOutput,
|
|
21
|
+
import("..").SecurityHubClientResolvedConfig,
|
|
22
|
+
import("..").ServiceInputTypes,
|
|
23
|
+
import("..").ServiceOutputTypes
|
|
24
|
+
>;
|
|
25
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
26
|
+
};
|
|
27
|
+
export declare class GetSoftwareV2Command extends GetSoftwareV2Command_base {
|
|
28
|
+
protected static __types: {
|
|
29
|
+
api: {
|
|
30
|
+
input: GetSoftwareV2Request;
|
|
31
|
+
output: GetSoftwareV2Response;
|
|
32
|
+
};
|
|
33
|
+
sdk: {
|
|
34
|
+
input: GetSoftwareV2CommandInput;
|
|
35
|
+
output: GetSoftwareV2CommandOutput;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
}
|
|
@@ -83,6 +83,9 @@ export * from "./GetResourcesStatisticsV2Command";
|
|
|
83
83
|
export * from "./GetResourcesTrendsV2Command";
|
|
84
84
|
export * from "./GetResourcesV2Command";
|
|
85
85
|
export * from "./GetSecurityControlDefinitionCommand";
|
|
86
|
+
export * from "./GetSoftwareResourcesV2Command";
|
|
87
|
+
export * from "./GetSoftwareStatisticsV2Command";
|
|
88
|
+
export * from "./GetSoftwareV2Command";
|
|
86
89
|
export * from "./InviteMembersCommand";
|
|
87
90
|
export * from "./ListAggregatorsV2Command";
|
|
88
91
|
export * from "./ListAutomationRulesCommand";
|
|
@@ -961,3 +961,33 @@ export declare const RegionAvailabilityStatus: {
|
|
|
961
961
|
};
|
|
962
962
|
export type RegionAvailabilityStatus =
|
|
963
963
|
(typeof RegionAvailabilityStatus)[keyof typeof RegionAvailabilityStatus];
|
|
964
|
+
export declare const SoftwareStringField: {
|
|
965
|
+
readonly ACCOUNT_ID: "AccountId";
|
|
966
|
+
readonly PACKAGE_NAME: "PackageName";
|
|
967
|
+
readonly PACKAGE_TYPE: "PackageType";
|
|
968
|
+
readonly PACKAGE_VERSION: "PackageVersion";
|
|
969
|
+
readonly REGION: "Region";
|
|
970
|
+
readonly RESOURCE_CLOUD_PARTITION: "ResourceCloudPartition";
|
|
971
|
+
readonly RESOURCE_ID: "ResourceId";
|
|
972
|
+
readonly RESOURCE_OWNER_ACCOUNT_ID: "ResourceOwnerAccountId";
|
|
973
|
+
readonly RESOURCE_OWNER_ORG_ID: "ResourceOwnerOrgId";
|
|
974
|
+
readonly RESOURCE_PROVIDER: "ResourceProvider";
|
|
975
|
+
readonly RESOURCE_REGION: "ResourceRegion";
|
|
976
|
+
readonly RESOURCE_TYPE: "ResourceType";
|
|
977
|
+
};
|
|
978
|
+
export type SoftwareStringField = (typeof SoftwareStringField)[keyof typeof SoftwareStringField];
|
|
979
|
+
export declare const SoftwareGroupByField: {
|
|
980
|
+
readonly ACCOUNT_ID: "AccountId";
|
|
981
|
+
readonly PACKAGE_NAME: "PackageName";
|
|
982
|
+
readonly PACKAGE_TYPE: "PackageType";
|
|
983
|
+
readonly PACKAGE_VERSION: "PackageVersion";
|
|
984
|
+
readonly REGION: "Region";
|
|
985
|
+
readonly RESOURCE_CLOUD_PARTITION: "ResourceCloudPartition";
|
|
986
|
+
readonly RESOURCE_ID: "ResourceId";
|
|
987
|
+
readonly RESOURCE_OWNER_ACCOUNT_ID: "ResourceOwnerAccountId";
|
|
988
|
+
readonly RESOURCE_OWNER_ORG_ID: "ResourceOwnerOrgId";
|
|
989
|
+
readonly RESOURCE_PROVIDER: "ResourceProvider";
|
|
990
|
+
readonly RESOURCE_REGION: "ResourceRegion";
|
|
991
|
+
readonly RESOURCE_TYPE: "ResourceType";
|
|
992
|
+
};
|
|
993
|
+
export type SoftwareGroupByField = (typeof SoftwareGroupByField)[keyof typeof SoftwareGroupByField];
|
|
@@ -41,6 +41,8 @@ import {
|
|
|
41
41
|
SecurityControlsProvider,
|
|
42
42
|
SecurityHubFeature,
|
|
43
43
|
SeverityRating,
|
|
44
|
+
SoftwareGroupByField,
|
|
45
|
+
SoftwareStringField,
|
|
44
46
|
SortOrder,
|
|
45
47
|
TargetType,
|
|
46
48
|
} from "./enums";
|
|
@@ -352,6 +354,41 @@ export interface SecurityControlDefinition {
|
|
|
352
354
|
export interface GetSecurityControlDefinitionResponse {
|
|
353
355
|
SecurityControlDefinition: SecurityControlDefinition | undefined;
|
|
354
356
|
}
|
|
357
|
+
export interface SoftwareStringFilter {
|
|
358
|
+
FieldName?: SoftwareStringField | undefined;
|
|
359
|
+
Filter?: StringFilter | undefined;
|
|
360
|
+
}
|
|
361
|
+
export interface SoftwareScopes {
|
|
362
|
+
AwsOrganizations?: AwsOrganizationScope[] | undefined;
|
|
363
|
+
}
|
|
364
|
+
export interface SoftwareResourceResult {
|
|
365
|
+
AccountId: string | undefined;
|
|
366
|
+
ResourceType: string | undefined;
|
|
367
|
+
Region: string | undefined;
|
|
368
|
+
ResourceId: string | undefined;
|
|
369
|
+
ResourceProvider?: string | undefined;
|
|
370
|
+
ResourceOwnerOrgId?: string | undefined;
|
|
371
|
+
ResourceOwnerAccountId?: string | undefined;
|
|
372
|
+
ResourceCloudPartition?: string | undefined;
|
|
373
|
+
ResourceRegion?: string | undefined;
|
|
374
|
+
}
|
|
375
|
+
export interface GetSoftwareResourcesV2Response {
|
|
376
|
+
SoftwareResources: SoftwareResourceResult[] | undefined;
|
|
377
|
+
NextToken?: string | undefined;
|
|
378
|
+
}
|
|
379
|
+
export interface GetSoftwareStatisticsV2Response {
|
|
380
|
+
GroupByResults: GroupByResult[] | undefined;
|
|
381
|
+
}
|
|
382
|
+
export interface SoftwareResult {
|
|
383
|
+
PackageName: string | undefined;
|
|
384
|
+
PackageVersion?: string | undefined;
|
|
385
|
+
PackageType: string | undefined;
|
|
386
|
+
ResourceCount: number | undefined;
|
|
387
|
+
}
|
|
388
|
+
export interface GetSoftwareV2Response {
|
|
389
|
+
Software: SoftwareResult[] | undefined;
|
|
390
|
+
NextToken?: string | undefined;
|
|
391
|
+
}
|
|
355
392
|
export interface InviteMembersRequest {
|
|
356
393
|
AccountIds: string[] | undefined;
|
|
357
394
|
}
|
|
@@ -742,6 +779,11 @@ export interface ResourcesTrendsCompositeFilter {
|
|
|
742
779
|
NestedCompositeFilters?: ResourcesTrendsCompositeFilter[] | undefined;
|
|
743
780
|
Operator?: AllowedOperators | undefined;
|
|
744
781
|
}
|
|
782
|
+
export interface SoftwareCompositeFilter {
|
|
783
|
+
StringFilters?: SoftwareStringFilter[] | undefined;
|
|
784
|
+
NestedCompositeFilters?: SoftwareCompositeFilter[] | undefined;
|
|
785
|
+
Operator?: AllowedOperators | undefined;
|
|
786
|
+
}
|
|
745
787
|
export interface FindingsTrendsFilters {
|
|
746
788
|
CompositeFilters?: FindingsTrendsCompositeFilter[] | undefined;
|
|
747
789
|
CompositeOperator?: AllowedOperators | undefined;
|
|
@@ -758,6 +800,10 @@ export interface ResourcesTrendsFilters {
|
|
|
758
800
|
CompositeFilters?: ResourcesTrendsCompositeFilter[] | undefined;
|
|
759
801
|
CompositeOperator?: AllowedOperators | undefined;
|
|
760
802
|
}
|
|
803
|
+
export interface SoftwareFilters {
|
|
804
|
+
CompositeFilters?: SoftwareCompositeFilter[] | undefined;
|
|
805
|
+
CompositeOperator?: AllowedOperators | undefined;
|
|
806
|
+
}
|
|
761
807
|
export interface FindingsOutput {
|
|
762
808
|
Format: FindingsExportFormat | undefined;
|
|
763
809
|
Filters?: OcsfFindingFilters | undefined;
|
|
@@ -791,6 +837,23 @@ export interface GetResourcesV2Request {
|
|
|
791
837
|
NextToken?: string | undefined;
|
|
792
838
|
MaxResults?: number | undefined;
|
|
793
839
|
}
|
|
840
|
+
export interface GetSoftwareResourcesV2Request {
|
|
841
|
+
PackageName: string | undefined;
|
|
842
|
+
PackageType: string | undefined;
|
|
843
|
+
PackageVersion?: string | undefined;
|
|
844
|
+
Filters?: SoftwareFilters | undefined;
|
|
845
|
+
Scopes?: SoftwareScopes | undefined;
|
|
846
|
+
SortCriteria?: SortCriterion[] | undefined;
|
|
847
|
+
NextToken?: string | undefined;
|
|
848
|
+
MaxResults?: number | undefined;
|
|
849
|
+
}
|
|
850
|
+
export interface GetSoftwareV2Request {
|
|
851
|
+
Filters?: SoftwareFilters | undefined;
|
|
852
|
+
Scopes?: SoftwareScopes | undefined;
|
|
853
|
+
SortCriteria?: SortCriterion[] | undefined;
|
|
854
|
+
NextToken?: string | undefined;
|
|
855
|
+
MaxResults?: number | undefined;
|
|
856
|
+
}
|
|
794
857
|
export interface GroupByRule {
|
|
795
858
|
Filters?: OcsfFindingFilters | undefined;
|
|
796
859
|
GroupByField: GroupByField | undefined;
|
|
@@ -799,6 +862,10 @@ export interface ResourceGroupByRule {
|
|
|
799
862
|
GroupByField: ResourceGroupByField | undefined;
|
|
800
863
|
Filters?: ResourcesFilters | undefined;
|
|
801
864
|
}
|
|
865
|
+
export interface SoftwareGroupByRule {
|
|
866
|
+
GroupByField: SoftwareGroupByField | undefined;
|
|
867
|
+
Filters?: SoftwareFilters | undefined;
|
|
868
|
+
}
|
|
802
869
|
export type ExportOutput = ExportOutput.FindingsMember | ExportOutput.$UnknownMember;
|
|
803
870
|
export declare namespace ExportOutput {
|
|
804
871
|
interface FindingsMember {
|
|
@@ -839,6 +906,12 @@ export interface GetResourcesStatisticsV2Request {
|
|
|
839
906
|
SortOrder?: SortOrder | undefined;
|
|
840
907
|
MaxStatisticResults?: number | undefined;
|
|
841
908
|
}
|
|
909
|
+
export interface GetSoftwareStatisticsV2Request {
|
|
910
|
+
GroupByRules: SoftwareGroupByRule[] | undefined;
|
|
911
|
+
Scopes?: SoftwareScopes | undefined;
|
|
912
|
+
SortOrder?: SortOrder | undefined;
|
|
913
|
+
MaxStatisticResults?: number | undefined;
|
|
914
|
+
}
|
|
842
915
|
export interface StartExportJobV2Request {
|
|
843
916
|
Name?: string | undefined;
|
|
844
917
|
Destination: ExportDestination | undefined;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Paginator } from "@smithy/types";
|
|
2
|
+
import {
|
|
3
|
+
GetSoftwareResourcesV2CommandInput,
|
|
4
|
+
GetSoftwareResourcesV2CommandOutput,
|
|
5
|
+
} from "../commands/GetSoftwareResourcesV2Command";
|
|
6
|
+
import { SecurityHubPaginationConfiguration } from "./Interfaces";
|
|
7
|
+
export declare const paginateGetSoftwareResourcesV2: (
|
|
8
|
+
config: SecurityHubPaginationConfiguration,
|
|
9
|
+
input: GetSoftwareResourcesV2CommandInput,
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<GetSoftwareResourcesV2CommandOutput>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Paginator } from "@smithy/types";
|
|
2
|
+
import {
|
|
3
|
+
GetSoftwareV2CommandInput,
|
|
4
|
+
GetSoftwareV2CommandOutput,
|
|
5
|
+
} from "../commands/GetSoftwareV2Command";
|
|
6
|
+
import { SecurityHubPaginationConfiguration } from "./Interfaces";
|
|
7
|
+
export declare const paginateGetSoftwareV2: (
|
|
8
|
+
config: SecurityHubPaginationConfiguration,
|
|
9
|
+
input: GetSoftwareV2CommandInput,
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<GetSoftwareV2CommandOutput>;
|
|
@@ -14,6 +14,8 @@ export * from "./GetRecommendedPolicyV2Paginator";
|
|
|
14
14
|
export * from "./GetRemediationsV2Paginator";
|
|
15
15
|
export * from "./GetResourcesTrendsV2Paginator";
|
|
16
16
|
export * from "./GetResourcesV2Paginator";
|
|
17
|
+
export * from "./GetSoftwareResourcesV2Paginator";
|
|
18
|
+
export * from "./GetSoftwareV2Paginator";
|
|
17
19
|
export * from "./ListAggregatorsV2Paginator";
|
|
18
20
|
export * from "./ListConfigurationPoliciesPaginator";
|
|
19
21
|
export * from "./ListConfigurationPolicyAssociationsPaginator";
|
|
@@ -78,6 +78,7 @@ export declare const getRuntimeConfig: (config: SecurityHubClientConfig) => {
|
|
|
78
78
|
init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit,
|
|
79
79
|
) => import("@aws-sdk/credential-provider-node").MemoizedRuntimeConfigAwsCredentialIdentityProvider)
|
|
80
80
|
| ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider);
|
|
81
|
+
defaultSocketTimeout: number | undefined;
|
|
81
82
|
defaultUserAgentProvider: (
|
|
82
83
|
config?: import("@aws-sdk/core/client").PreviouslyResolved,
|
|
83
84
|
) => Promise<import("@smithy/types").UserAgent>;
|
|
@@ -784,6 +784,12 @@ export declare var GetResourcesV2Request$: StaticStructureSchema;
|
|
|
784
784
|
export declare var GetResourcesV2Response$: StaticStructureSchema;
|
|
785
785
|
export declare var GetSecurityControlDefinitionRequest$: StaticStructureSchema;
|
|
786
786
|
export declare var GetSecurityControlDefinitionResponse$: StaticStructureSchema;
|
|
787
|
+
export declare var GetSoftwareResourcesV2Request$: StaticStructureSchema;
|
|
788
|
+
export declare var GetSoftwareResourcesV2Response$: StaticStructureSchema;
|
|
789
|
+
export declare var GetSoftwareStatisticsV2Request$: StaticStructureSchema;
|
|
790
|
+
export declare var GetSoftwareStatisticsV2Response$: StaticStructureSchema;
|
|
791
|
+
export declare var GetSoftwareV2Request$: StaticStructureSchema;
|
|
792
|
+
export declare var GetSoftwareV2Response$: StaticStructureSchema;
|
|
787
793
|
export declare var GroupByResult$: StaticStructureSchema;
|
|
788
794
|
export declare var GroupByRule$: StaticStructureSchema;
|
|
789
795
|
export declare var GroupByValue$: StaticStructureSchema;
|
|
@@ -969,7 +975,14 @@ export declare var Severity$: StaticStructureSchema;
|
|
|
969
975
|
export declare var SeverityTrendsCount$: StaticStructureSchema;
|
|
970
976
|
export declare var SeverityUpdate$: StaticStructureSchema;
|
|
971
977
|
export declare var Signal$: StaticStructureSchema;
|
|
978
|
+
export declare var SoftwareCompositeFilter$: StaticStructureSchema;
|
|
979
|
+
export declare var SoftwareFilters$: StaticStructureSchema;
|
|
980
|
+
export declare var SoftwareGroupByRule$: StaticStructureSchema;
|
|
972
981
|
export declare var SoftwarePackage$: StaticStructureSchema;
|
|
982
|
+
export declare var SoftwareResourceResult$: StaticStructureSchema;
|
|
983
|
+
export declare var SoftwareResult$: StaticStructureSchema;
|
|
984
|
+
export declare var SoftwareScopes$: StaticStructureSchema;
|
|
985
|
+
export declare var SoftwareStringFilter$: StaticStructureSchema;
|
|
973
986
|
export declare var SortCriterion$: StaticStructureSchema;
|
|
974
987
|
export declare var Standard$: StaticStructureSchema;
|
|
975
988
|
export declare var StandardsControl$: StaticStructureSchema;
|
|
@@ -1148,6 +1161,9 @@ export declare var GetResourcesStatisticsV2$: StaticOperationSchema;
|
|
|
1148
1161
|
export declare var GetResourcesTrendsV2$: StaticOperationSchema;
|
|
1149
1162
|
export declare var GetResourcesV2$: StaticOperationSchema;
|
|
1150
1163
|
export declare var GetSecurityControlDefinition$: StaticOperationSchema;
|
|
1164
|
+
export declare var GetSoftwareResourcesV2$: StaticOperationSchema;
|
|
1165
|
+
export declare var GetSoftwareStatisticsV2$: StaticOperationSchema;
|
|
1166
|
+
export declare var GetSoftwareV2$: StaticOperationSchema;
|
|
1151
1167
|
export declare var InviteMembers$: StaticOperationSchema;
|
|
1152
1168
|
export declare var ListAggregatorsV2$: StaticOperationSchema;
|
|
1153
1169
|
export declare var ListAutomationRules$: StaticOperationSchema;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-securityhub",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1163.0",
|
|
4
4
|
"description": "AWS SDK for JavaScript Securityhub Client for Node.js, Browser and React Native",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-securityhub",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@aws-sdk/core": "^3.
|
|
50
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
49
|
+
"@aws-sdk/core": "^3.980.0",
|
|
50
|
+
"@aws-sdk/credential-provider-node": "^3.972.93",
|
|
51
51
|
"@aws-sdk/types": "^3.975.0",
|
|
52
52
|
"@smithy/core": "^3.38.0",
|
|
53
53
|
"@smithy/fetch-http-handler": "^5.8.0",
|