@aws-sdk/client-securityhub 3.936.0 → 3.939.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 (53) hide show
  1. package/README.md +16 -0
  2. package/dist-cjs/index.js +226 -0
  3. package/dist-es/SecurityHub.js +4 -0
  4. package/dist-es/commands/GetFindingsTrendsV2Command.js +16 -0
  5. package/dist-es/commands/GetResourcesTrendsV2Command.js +16 -0
  6. package/dist-es/commands/index.js +2 -0
  7. package/dist-es/models/enums.js +23 -0
  8. package/dist-es/pagination/GetFindingsTrendsV2Paginator.js +4 -0
  9. package/dist-es/pagination/GetResourcesTrendsV2Paginator.js +4 -0
  10. package/dist-es/pagination/index.js +3 -1
  11. package/dist-es/schemas/schemas_0.js +166 -0
  12. package/dist-types/SecurityHub.d.ts +14 -0
  13. package/dist-types/SecurityHubClient.d.ts +4 -2
  14. package/dist-types/commands/ConnectorRegistrationsV2Command.d.ts +1 -1
  15. package/dist-types/commands/CreateConnectorV2Command.d.ts +1 -1
  16. package/dist-types/commands/CreateTicketV2Command.d.ts +1 -1
  17. package/dist-types/commands/DeleteConnectorV2Command.d.ts +1 -1
  18. package/dist-types/commands/GetConnectorV2Command.d.ts +1 -1
  19. package/dist-types/commands/GetFindingsTrendsV2Command.d.ts +144 -0
  20. package/dist-types/commands/GetResourcesTrendsV2Command.d.ts +137 -0
  21. package/dist-types/commands/ListConnectorsV2Command.d.ts +1 -1
  22. package/dist-types/commands/ListStandardsControlAssociationsCommand.d.ts +2 -1
  23. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  24. package/dist-types/commands/StartConfigurationPolicyAssociationCommand.d.ts +1 -1
  25. package/dist-types/commands/StartConfigurationPolicyDisassociationCommand.d.ts +1 -1
  26. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  27. package/dist-types/commands/UpdateConnectorV2Command.d.ts +1 -1
  28. package/dist-types/commands/index.d.ts +2 -0
  29. package/dist-types/models/enums.d.ts +47 -0
  30. package/dist-types/models/models_2.d.ts +184 -191
  31. package/dist-types/models/models_3.d.ts +326 -2
  32. package/dist-types/pagination/GetFindingsTrendsV2Paginator.d.ts +7 -0
  33. package/dist-types/pagination/GetResourcesTrendsV2Paginator.d.ts +7 -0
  34. package/dist-types/pagination/index.d.ts +3 -1
  35. package/dist-types/schemas/schemas_0.d.ts +24 -0
  36. package/dist-types/ts3.4/SecurityHub.d.ts +34 -0
  37. package/dist-types/ts3.4/SecurityHubClient.d.ts +12 -0
  38. package/dist-types/ts3.4/commands/GetFindingsTrendsV2Command.d.ts +49 -0
  39. package/dist-types/ts3.4/commands/GetResourcesTrendsV2Command.d.ts +49 -0
  40. package/dist-types/ts3.4/commands/ListStandardsControlAssociationsCommand.d.ts +2 -4
  41. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +1 -1
  42. package/dist-types/ts3.4/commands/StartConfigurationPolicyAssociationCommand.d.ts +1 -1
  43. package/dist-types/ts3.4/commands/StartConfigurationPolicyDisassociationCommand.d.ts +1 -1
  44. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
  45. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  46. package/dist-types/ts3.4/models/enums.d.ts +29 -0
  47. package/dist-types/ts3.4/models/models_2.d.ts +48 -52
  48. package/dist-types/ts3.4/models/models_3.d.ts +92 -1
  49. package/dist-types/ts3.4/pagination/GetFindingsTrendsV2Paginator.d.ts +11 -0
  50. package/dist-types/ts3.4/pagination/GetResourcesTrendsV2Paginator.d.ts +11 -0
  51. package/dist-types/ts3.4/pagination/index.d.ts +3 -1
  52. package/dist-types/ts3.4/schemas/schemas_0.d.ts +24 -0
  53. package/package.json +2 -2
@@ -0,0 +1,137 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { GetResourcesTrendsV2Response } from "../models/models_2";
4
+ import { GetResourcesTrendsV2Request } from "../models/models_3";
5
+ import { SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecurityHubClient";
6
+ /**
7
+ * @public
8
+ */
9
+ export type { __MetadataBearer };
10
+ export { $Command };
11
+ /**
12
+ * @public
13
+ *
14
+ * The input for {@link GetResourcesTrendsV2Command}.
15
+ */
16
+ export interface GetResourcesTrendsV2CommandInput extends GetResourcesTrendsV2Request {
17
+ }
18
+ /**
19
+ * @public
20
+ *
21
+ * The output of {@link GetResourcesTrendsV2Command}.
22
+ */
23
+ export interface GetResourcesTrendsV2CommandOutput extends GetResourcesTrendsV2Response, __MetadataBearer {
24
+ }
25
+ declare const GetResourcesTrendsV2Command_base: {
26
+ new (input: GetResourcesTrendsV2CommandInput): import("@smithy/smithy-client").CommandImpl<GetResourcesTrendsV2CommandInput, GetResourcesTrendsV2CommandOutput, SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ new (input: GetResourcesTrendsV2CommandInput): import("@smithy/smithy-client").CommandImpl<GetResourcesTrendsV2CommandInput, GetResourcesTrendsV2CommandOutput, SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
28
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
29
+ };
30
+ /**
31
+ * <p>Returns resource trend data based on the specified criteria. This operation helps you analyze patterns and changes in resource compliance over time. This API is in public preview and subject to change.</p>
32
+ * @example
33
+ * Use a bare-bones client and the command you need to make an API call.
34
+ * ```javascript
35
+ * import { SecurityHubClient, GetResourcesTrendsV2Command } from "@aws-sdk/client-securityhub"; // ES Modules import
36
+ * // const { SecurityHubClient, GetResourcesTrendsV2Command } = require("@aws-sdk/client-securityhub"); // CommonJS import
37
+ * // import type { SecurityHubClientConfig } from "@aws-sdk/client-securityhub";
38
+ * const config = {}; // type is SecurityHubClientConfig
39
+ * const client = new SecurityHubClient(config);
40
+ * const input = { // GetResourcesTrendsV2Request
41
+ * Filters: { // ResourcesTrendsFilters
42
+ * CompositeFilters: [ // ResourcesTrendsCompositeFilterList
43
+ * { // ResourcesTrendsCompositeFilter
44
+ * StringFilters: [ // ResourcesTrendsStringFilterList
45
+ * { // ResourcesTrendsStringFilter
46
+ * FieldName: "account_id" || "region" || "resource_type" || "resource_category",
47
+ * Filter: { // StringFilter
48
+ * Value: "STRING_VALUE",
49
+ * Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS" || "CONTAINS_WORD",
50
+ * },
51
+ * },
52
+ * ],
53
+ * NestedCompositeFilters: [
54
+ * {
55
+ * StringFilters: [
56
+ * {
57
+ * FieldName: "account_id" || "region" || "resource_type" || "resource_category",
58
+ * Filter: {
59
+ * Value: "STRING_VALUE",
60
+ * Comparison: "EQUALS" || "PREFIX" || "NOT_EQUALS" || "PREFIX_NOT_EQUALS" || "CONTAINS" || "NOT_CONTAINS" || "CONTAINS_WORD",
61
+ * },
62
+ * },
63
+ * ],
64
+ * NestedCompositeFilters: "<ResourcesTrendsCompositeFilterList>",
65
+ * Operator: "AND" || "OR",
66
+ * },
67
+ * ],
68
+ * Operator: "AND" || "OR",
69
+ * },
70
+ * ],
71
+ * CompositeOperator: "AND" || "OR",
72
+ * },
73
+ * StartTime: new Date("TIMESTAMP"), // required
74
+ * EndTime: new Date("TIMESTAMP"), // required
75
+ * NextToken: "STRING_VALUE",
76
+ * MaxResults: Number("int"),
77
+ * };
78
+ * const command = new GetResourcesTrendsV2Command(input);
79
+ * const response = await client.send(command);
80
+ * // { // GetResourcesTrendsV2Response
81
+ * // Granularity: "Daily" || "Weekly" || "Monthly", // required
82
+ * // TrendsMetrics: [ // ResourcesTrendsMetrics // required
83
+ * // { // ResourcesTrendsMetricsResult
84
+ * // Timestamp: new Date("TIMESTAMP"), // required
85
+ * // TrendsValues: { // ResourcesTrendsValues
86
+ * // ResourcesCount: { // ResourcesCount
87
+ * // AllResources: Number("long"), // required
88
+ * // },
89
+ * // },
90
+ * // },
91
+ * // ],
92
+ * // NextToken: "STRING_VALUE",
93
+ * // };
94
+ *
95
+ * ```
96
+ *
97
+ * @param GetResourcesTrendsV2CommandInput - {@link GetResourcesTrendsV2CommandInput}
98
+ * @returns {@link GetResourcesTrendsV2CommandOutput}
99
+ * @see {@link GetResourcesTrendsV2CommandInput} for command's `input` shape.
100
+ * @see {@link GetResourcesTrendsV2CommandOutput} for command's `response` shape.
101
+ * @see {@link SecurityHubClientResolvedConfig | config} for SecurityHubClient's `config` shape.
102
+ *
103
+ * @throws {@link AccessDeniedException} (client fault)
104
+ * <p>You don't have permission to perform the action specified in the request.</p>
105
+ *
106
+ * @throws {@link InternalServerException} (server fault)
107
+ * <p>
108
+ * The request has failed due to an internal failure of the service.
109
+ * </p>
110
+ *
111
+ * @throws {@link ThrottlingException} (client fault)
112
+ * <p>
113
+ * The limit on the number of requests per second was exceeded.
114
+ * </p>
115
+ *
116
+ * @throws {@link ValidationException} (client fault)
117
+ * <p>The request has failed validation because it's missing required fields or has invalid inputs.</p>
118
+ *
119
+ * @throws {@link SecurityHubServiceException}
120
+ * <p>Base exception class for all service exceptions from SecurityHub service.</p>
121
+ *
122
+ *
123
+ * @public
124
+ */
125
+ export declare class GetResourcesTrendsV2Command extends GetResourcesTrendsV2Command_base {
126
+ /** @internal type navigation helper, not in runtime. */
127
+ protected static __types: {
128
+ api: {
129
+ input: GetResourcesTrendsV2Request;
130
+ output: GetResourcesTrendsV2Response;
131
+ };
132
+ sdk: {
133
+ input: GetResourcesTrendsV2CommandInput;
134
+ output: GetResourcesTrendsV2CommandOutput;
135
+ };
136
+ };
137
+ }
@@ -27,7 +27,7 @@ declare const ListConnectorsV2Command_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Grants permission to retrieve a list of connectorsV2 and their metadata for the calling account. This API is in preview release and subject to change.</p>
30
+ * <p>Grants permission to retrieve a list of connectorsV2 and their metadata for the calling account. This API is in public preview and subject to change.</p>
31
31
  * @example
32
32
  * Use a bare-bones client and the command you need to make an API call.
33
33
  * ```javascript
@@ -1,6 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import { ListStandardsControlAssociationsRequest, ListStandardsControlAssociationsResponse } from "../models/models_2";
3
+ import { ListStandardsControlAssociationsRequest } from "../models/models_2";
4
+ import { ListStandardsControlAssociationsResponse } from "../models/models_3";
4
5
  import { SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecurityHubClient";
5
6
  /**
6
7
  * @public
@@ -1,6 +1,6 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_2";
3
+ import { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_3";
4
4
  import { SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecurityHubClient";
5
5
  /**
6
6
  * @public
@@ -1,6 +1,6 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import { StartConfigurationPolicyAssociationRequest, StartConfigurationPolicyAssociationResponse } from "../models/models_2";
3
+ import { StartConfigurationPolicyAssociationRequest, StartConfigurationPolicyAssociationResponse } from "../models/models_3";
4
4
  import { SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecurityHubClient";
5
5
  /**
6
6
  * @public
@@ -1,6 +1,6 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import { StartConfigurationPolicyDisassociationRequest, StartConfigurationPolicyDisassociationResponse } from "../models/models_2";
3
+ import { StartConfigurationPolicyDisassociationRequest, StartConfigurationPolicyDisassociationResponse } from "../models/models_3";
4
4
  import { SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecurityHubClient";
5
5
  /**
6
6
  * @public
@@ -1,6 +1,6 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import { TagResourceRequest, TagResourceResponse } from "../models/models_2";
3
+ import { TagResourceRequest, TagResourceResponse } from "../models/models_3";
4
4
  import { SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecurityHubClient";
5
5
  /**
6
6
  * @public
@@ -27,7 +27,7 @@ declare const UpdateConnectorV2Command_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Grants permission to update a connectorV2 based on its id and input parameters. This API is in preview release and subject to change.</p>
30
+ * <p>Grants permission to update a connectorV2 based on its id and input parameters. This API is in public preview and subject to change.</p>
31
31
  * @example
32
32
  * Use a bare-bones client and the command you need to make an API call.
33
33
  * ```javascript
@@ -63,6 +63,7 @@ export * from "./GetFindingAggregatorCommand";
63
63
  export * from "./GetFindingHistoryCommand";
64
64
  export * from "./GetFindingStatisticsV2Command";
65
65
  export * from "./GetFindingsCommand";
66
+ export * from "./GetFindingsTrendsV2Command";
66
67
  export * from "./GetFindingsV2Command";
67
68
  export * from "./GetInsightResultsCommand";
68
69
  export * from "./GetInsightsCommand";
@@ -70,6 +71,7 @@ export * from "./GetInvitationsCountCommand";
70
71
  export * from "./GetMasterAccountCommand";
71
72
  export * from "./GetMembersCommand";
72
73
  export * from "./GetResourcesStatisticsV2Command";
74
+ export * from "./GetResourcesTrendsV2Command";
73
75
  export * from "./GetResourcesV2Command";
74
76
  export * from "./GetSecurityControlDefinitionCommand";
75
77
  export * from "./InviteMembersCommand";
@@ -842,6 +842,26 @@ export declare const FindingHistoryUpdateSourceType: {
842
842
  * @public
843
843
  */
844
844
  export type FindingHistoryUpdateSourceType = (typeof FindingHistoryUpdateSourceType)[keyof typeof FindingHistoryUpdateSourceType];
845
+ /**
846
+ * @public
847
+ * @enum
848
+ */
849
+ export declare const FindingsTrendsStringField: {
850
+ readonly ACCOUNT_ID: "account_id";
851
+ readonly COMPLIANCE_CONTROL: "finding_control_id";
852
+ readonly COMPLIANCE_STATUS: "finding_compliance_status";
853
+ readonly CVE_ID: "finding_cve_ids";
854
+ readonly FINDING_ACTIVITY_NAME: "finding_activity_name";
855
+ readonly FINDING_CLASS: "finding_class_name";
856
+ readonly FINDING_STATUS: "finding_status";
857
+ readonly FINDING_TYPE: "finding_types";
858
+ readonly PROVIDER_NAME: "finding_provider";
859
+ readonly REGION: "region";
860
+ };
861
+ /**
862
+ * @public
863
+ */
864
+ export type FindingsTrendsStringField = (typeof FindingsTrendsStringField)[keyof typeof FindingsTrendsStringField];
845
865
  /**
846
866
  * @public
847
867
  * @enum
@@ -885,6 +905,19 @@ export declare const GroupByField: {
885
905
  * @public
886
906
  */
887
907
  export type GroupByField = (typeof GroupByField)[keyof typeof GroupByField];
908
+ /**
909
+ * @public
910
+ * @enum
911
+ */
912
+ export declare const GranularityField: {
913
+ readonly DAILY: "Daily";
914
+ readonly MONTHLY: "Monthly";
915
+ readonly WEEKLY: "Weekly";
916
+ };
917
+ /**
918
+ * @public
919
+ */
920
+ export type GranularityField = (typeof GranularityField)[keyof typeof GranularityField];
888
921
  /**
889
922
  * @public
890
923
  * @enum
@@ -962,6 +995,20 @@ export declare const ResourceGroupByField: {
962
995
  * @public
963
996
  */
964
997
  export type ResourceGroupByField = (typeof ResourceGroupByField)[keyof typeof ResourceGroupByField];
998
+ /**
999
+ * @public
1000
+ * @enum
1001
+ */
1002
+ export declare const ResourcesTrendsStringField: {
1003
+ readonly ACCOUNT_ID: "account_id";
1004
+ readonly REGION: "region";
1005
+ readonly RESOURCE_CATEGORY: "resource_category";
1006
+ readonly RESOURCE_TYPE: "resource_type";
1007
+ };
1008
+ /**
1009
+ * @public
1010
+ */
1011
+ export type ResourcesTrendsStringField = (typeof ResourcesTrendsStringField)[keyof typeof ResourcesTrendsStringField];
965
1012
  /**
966
1013
  * @public
967
1014
  * @enum