@aws-sdk/client-securityhub 3.1042.0 → 3.1044.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 (59) hide show
  1. package/README.md +14 -0
  2. package/dist-cjs/index.js +47 -0
  3. package/dist-cjs/schemas/schemas_0.js +72 -11
  4. package/dist-es/SecurityHub.js +6 -0
  5. package/dist-es/commands/GenerateRecommendedPolicyV2Command.js +16 -0
  6. package/dist-es/commands/GetRecommendedPolicyV2Command.js +16 -0
  7. package/dist-es/commands/index.js +2 -0
  8. package/dist-es/models/enums.js +12 -0
  9. package/dist-es/pagination/GetRecommendedPolicyV2Paginator.js +4 -0
  10. package/dist-es/pagination/index.js +1 -0
  11. package/dist-es/schemas/schemas_0.js +63 -2
  12. package/dist-types/SecurityHub.d.ts +21 -0
  13. package/dist-types/SecurityHubClient.d.ts +4 -2
  14. package/dist-types/commands/BatchGetAutomationRulesCommand.d.ts +5 -0
  15. package/dist-types/commands/BatchUpdateAutomationRulesCommand.d.ts +5 -0
  16. package/dist-types/commands/CreateAutomationRuleCommand.d.ts +5 -0
  17. package/dist-types/commands/CreateAutomationRuleV2Command.d.ts +2 -0
  18. package/dist-types/commands/CreateInsightCommand.d.ts +5 -0
  19. package/dist-types/commands/GenerateRecommendedPolicyV2Command.d.ts +96 -0
  20. package/dist-types/commands/GetAutomationRuleV2Command.d.ts +2 -0
  21. package/dist-types/commands/GetFindingStatisticsV2Command.d.ts +2 -0
  22. package/dist-types/commands/GetFindingsCommand.d.ts +5 -0
  23. package/dist-types/commands/GetFindingsV2Command.d.ts +2 -0
  24. package/dist-types/commands/GetInsightsCommand.d.ts +5 -0
  25. package/dist-types/commands/GetRecommendedPolicyV2Command.d.ts +118 -0
  26. package/dist-types/commands/GetResourcesStatisticsV2Command.d.ts +2 -0
  27. package/dist-types/commands/GetResourcesV2Command.d.ts +2 -0
  28. package/dist-types/commands/ListMembersCommand.d.ts +1 -1
  29. package/dist-types/commands/ListOrganizationAdminAccountsCommand.d.ts +1 -1
  30. package/dist-types/commands/ListSecurityControlDefinitionsCommand.d.ts +1 -1
  31. package/dist-types/commands/ListStandardsControlAssociationsCommand.d.ts +1 -2
  32. package/dist-types/commands/UpdateAutomationRuleV2Command.d.ts +2 -0
  33. package/dist-types/commands/UpdateFindingsCommand.d.ts +5 -0
  34. package/dist-types/commands/UpdateInsightCommand.d.ts +5 -0
  35. package/dist-types/commands/index.d.ts +2 -0
  36. package/dist-types/models/enums.d.ts +36 -0
  37. package/dist-types/models/models_0.d.ts +9 -4
  38. package/dist-types/models/models_2.d.ts +157 -168
  39. package/dist-types/models/models_3.d.ts +169 -3
  40. package/dist-types/pagination/GetRecommendedPolicyV2Paginator.d.ts +7 -0
  41. package/dist-types/pagination/index.d.ts +1 -0
  42. package/dist-types/schemas/schemas_0.d.ts +9 -0
  43. package/dist-types/ts3.4/SecurityHub.d.ts +41 -0
  44. package/dist-types/ts3.4/SecurityHubClient.d.ts +12 -0
  45. package/dist-types/ts3.4/commands/GenerateRecommendedPolicyV2Command.d.ts +51 -0
  46. package/dist-types/ts3.4/commands/GetRecommendedPolicyV2Command.d.ts +51 -0
  47. package/dist-types/ts3.4/commands/ListMembersCommand.d.ts +1 -1
  48. package/dist-types/ts3.4/commands/ListOrganizationAdminAccountsCommand.d.ts +1 -1
  49. package/dist-types/ts3.4/commands/ListSecurityControlDefinitionsCommand.d.ts +1 -1
  50. package/dist-types/ts3.4/commands/ListStandardsControlAssociationsCommand.d.ts +4 -2
  51. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  52. package/dist-types/ts3.4/models/enums.d.ts +18 -0
  53. package/dist-types/ts3.4/models/models_0.d.ts +2 -0
  54. package/dist-types/ts3.4/models/models_2.d.ts +47 -34
  55. package/dist-types/ts3.4/models/models_3.d.ts +37 -1
  56. package/dist-types/ts3.4/pagination/GetRecommendedPolicyV2Paginator.d.ts +11 -0
  57. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  58. package/dist-types/ts3.4/schemas/schemas_0.d.ts +9 -0
  59. package/package.json +1 -1
@@ -64,6 +64,7 @@ declare const GetFindingsV2Command_base: {
64
64
  * DateRange: { // DateRange
65
65
  * Value: Number("int"),
66
66
  * Unit: "DAYS",
67
+ * Comparison: "WITHIN" || "OLDER_THAN",
67
68
  * },
68
69
  * },
69
70
  * },
@@ -126,6 +127,7 @@ declare const GetFindingsV2Command_base: {
126
127
  * DateRange: {
127
128
  * Value: Number("int"),
128
129
  * Unit: "DAYS",
130
+ * Comparison: "WITHIN" || "OLDER_THAN",
129
131
  * },
130
132
  * },
131
133
  * },
@@ -89,6 +89,7 @@ declare const GetInsightsCommand_base: {
89
89
  * // DateRange: { // DateRange
90
90
  * // Value: Number("int"),
91
91
  * // Unit: "DAYS",
92
+ * // Comparison: "WITHIN" || "OLDER_THAN",
92
93
  * // },
93
94
  * // },
94
95
  * // ],
@@ -99,6 +100,7 @@ declare const GetInsightsCommand_base: {
99
100
  * // DateRange: {
100
101
  * // Value: Number("int"),
101
102
  * // Unit: "DAYS",
103
+ * // Comparison: "WITHIN" || "OLDER_THAN",
102
104
  * // },
103
105
  * // },
104
106
  * // ],
@@ -109,6 +111,7 @@ declare const GetInsightsCommand_base: {
109
111
  * // DateRange: {
110
112
  * // Value: Number("int"),
111
113
  * // Unit: "DAYS",
114
+ * // Comparison: "WITHIN" || "OLDER_THAN",
112
115
  * // },
113
116
  * // },
114
117
  * // ],
@@ -119,6 +122,7 @@ declare const GetInsightsCommand_base: {
119
122
  * // DateRange: {
120
123
  * // Value: Number("int"),
121
124
  * // Unit: "DAYS",
125
+ * // Comparison: "WITHIN" || "OLDER_THAN",
122
126
  * // },
123
127
  * // },
124
128
  * // ],
@@ -229,6 +233,7 @@ declare const GetInsightsCommand_base: {
229
233
  * // DateRange: {
230
234
  * // Value: Number("int"),
231
235
  * // Unit: "DAYS",
236
+ * // Comparison: "WITHIN" || "OLDER_THAN",
232
237
  * // },
233
238
  * // },
234
239
  * // ],
@@ -0,0 +1,118 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { GetRecommendedPolicyV2Request, GetRecommendedPolicyV2Response } from "../models/models_2";
4
+ import type { SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecurityHubClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetRecommendedPolicyV2Command}.
14
+ */
15
+ export interface GetRecommendedPolicyV2CommandInput extends GetRecommendedPolicyV2Request {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetRecommendedPolicyV2Command}.
21
+ */
22
+ export interface GetRecommendedPolicyV2CommandOutput extends GetRecommendedPolicyV2Response, __MetadataBearer {
23
+ }
24
+ declare const GetRecommendedPolicyV2Command_base: {
25
+ new (input: GetRecommendedPolicyV2CommandInput): import("@smithy/smithy-client").CommandImpl<GetRecommendedPolicyV2CommandInput, GetRecommendedPolicyV2CommandOutput, SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: GetRecommendedPolicyV2CommandInput): import("@smithy/smithy-client").CommandImpl<GetRecommendedPolicyV2CommandInput, GetRecommendedPolicyV2CommandOutput, SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Retrieves the recommended policy to remediate a Security Hub finding.
31
+ * <code>GetRecommendedPolicyV2</code> only supports findings for unused permissions.</p>
32
+ * @example
33
+ * Use a bare-bones client and the command you need to make an API call.
34
+ * ```javascript
35
+ * import { SecurityHubClient, GetRecommendedPolicyV2Command } from "@aws-sdk/client-securityhub"; // ES Modules import
36
+ * // const { SecurityHubClient, GetRecommendedPolicyV2Command } = 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 = { // GetRecommendedPolicyV2Request
41
+ * MetadataUid: "STRING_VALUE", // required
42
+ * NextToken: "STRING_VALUE",
43
+ * MaxResults: Number("int"),
44
+ * };
45
+ * const command = new GetRecommendedPolicyV2Command(input);
46
+ * const response = await client.send(command);
47
+ * // { // GetRecommendedPolicyV2Response
48
+ * // NextToken: "STRING_VALUE",
49
+ * // RecommendationType: "UNUSED_PERMISSION_RECOMMENDATION",
50
+ * // RecommendationSteps: [ // RecommendationSteps
51
+ * // { // RecommendationStep Union: only one key present
52
+ * // UnusedPermissions: { // UnusedPermissionsRecommendationStep
53
+ * // RecommendedAction: "STRING_VALUE",
54
+ * // ExistingPolicy: "STRING_VALUE",
55
+ * // ExistingPolicyId: "STRING_VALUE",
56
+ * // PolicyUpdatedAt: new Date("TIMESTAMP"),
57
+ * // RecommendedPolicy: "STRING_VALUE",
58
+ * // },
59
+ * // },
60
+ * // ],
61
+ * // Error: { // RecommendationError
62
+ * // Code: "STRING_VALUE",
63
+ * // Message: "STRING_VALUE",
64
+ * // },
65
+ * // Status: "IN_PROGRESS" || "SUCCEEDED" || "FAILED",
66
+ * // ResourceArn: "STRING_VALUE",
67
+ * // };
68
+ *
69
+ * ```
70
+ *
71
+ * @param GetRecommendedPolicyV2CommandInput - {@link GetRecommendedPolicyV2CommandInput}
72
+ * @returns {@link GetRecommendedPolicyV2CommandOutput}
73
+ * @see {@link GetRecommendedPolicyV2CommandInput} for command's `input` shape.
74
+ * @see {@link GetRecommendedPolicyV2CommandOutput} for command's `response` shape.
75
+ * @see {@link SecurityHubClientResolvedConfig | config} for SecurityHubClient's `config` shape.
76
+ *
77
+ * @throws {@link AccessDeniedException} (client fault)
78
+ * <p>You don't have permission to perform the action specified in the request.</p>
79
+ *
80
+ * @throws {@link InternalServerException} (server fault)
81
+ * <p>
82
+ * The request has failed due to an internal failure of the service.
83
+ * </p>
84
+ *
85
+ * @throws {@link InvalidInputException} (client fault)
86
+ * <p>The request was rejected because you supplied an invalid or out-of-range value for an
87
+ * input parameter.</p>
88
+ *
89
+ * @throws {@link ResourceNotFoundException} (client fault)
90
+ * <p>The request was rejected because we can't find the specified resource.</p>
91
+ *
92
+ * @throws {@link ThrottlingException} (client fault)
93
+ * <p>
94
+ * The limit on the number of requests per second was exceeded.
95
+ * </p>
96
+ *
97
+ * @throws {@link ValidationException} (client fault)
98
+ * <p>The request has failed validation because it's missing required fields or has invalid inputs.</p>
99
+ *
100
+ * @throws {@link SecurityHubServiceException}
101
+ * <p>Base exception class for all service exceptions from SecurityHub service.</p>
102
+ *
103
+ *
104
+ * @public
105
+ */
106
+ export declare class GetRecommendedPolicyV2Command extends GetRecommendedPolicyV2Command_base {
107
+ /** @internal type navigation helper, not in runtime. */
108
+ protected static __types: {
109
+ api: {
110
+ input: GetRecommendedPolicyV2Request;
111
+ output: GetRecommendedPolicyV2Response;
112
+ };
113
+ sdk: {
114
+ input: GetRecommendedPolicyV2CommandInput;
115
+ output: GetRecommendedPolicyV2CommandOutput;
116
+ };
117
+ };
118
+ }
@@ -63,6 +63,7 @@ declare const GetResourcesStatisticsV2Command_base: {
63
63
  * DateRange: { // DateRange
64
64
  * Value: Number("int"),
65
65
  * Unit: "DAYS",
66
+ * Comparison: "WITHIN" || "OLDER_THAN",
66
67
  * },
67
68
  * },
68
69
  * },
@@ -109,6 +110,7 @@ declare const GetResourcesStatisticsV2Command_base: {
109
110
  * DateRange: {
110
111
  * Value: Number("int"),
111
112
  * Unit: "DAYS",
113
+ * Comparison: "WITHIN" || "OLDER_THAN",
112
114
  * },
113
115
  * },
114
116
  * },
@@ -61,6 +61,7 @@ declare const GetResourcesV2Command_base: {
61
61
  * DateRange: { // DateRange
62
62
  * Value: Number("int"),
63
63
  * Unit: "DAYS",
64
+ * Comparison: "WITHIN" || "OLDER_THAN",
64
65
  * },
65
66
  * },
66
67
  * },
@@ -107,6 +108,7 @@ declare const GetResourcesV2Command_base: {
107
108
  * DateRange: {
108
109
  * Value: Number("int"),
109
110
  * Unit: "DAYS",
111
+ * Comparison: "WITHIN" || "OLDER_THAN",
110
112
  * },
111
113
  * },
112
114
  * },
@@ -1,6 +1,6 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { ListMembersRequest, ListMembersResponse } from "../models/models_2";
3
+ import type { ListMembersRequest, ListMembersResponse } from "../models/models_3";
4
4
  import type { 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 type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { ListOrganizationAdminAccountsRequest, ListOrganizationAdminAccountsResponse } from "../models/models_2";
3
+ import type { ListOrganizationAdminAccountsRequest, ListOrganizationAdminAccountsResponse } from "../models/models_3";
4
4
  import type { 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 type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { ListSecurityControlDefinitionsRequest, ListSecurityControlDefinitionsResponse } from "../models/models_2";
3
+ import type { ListSecurityControlDefinitionsRequest, ListSecurityControlDefinitionsResponse } from "../models/models_3";
4
4
  import type { SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecurityHubClient";
5
5
  /**
6
6
  * @public
@@ -1,7 +1,6 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { ListStandardsControlAssociationsRequest } from "../models/models_2";
4
- import type { ListStandardsControlAssociationsResponse } from "../models/models_3";
3
+ import type { ListStandardsControlAssociationsRequest, ListStandardsControlAssociationsResponse } from "../models/models_3";
5
4
  import type { SecurityHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecurityHubClient";
6
5
  /**
7
6
  * @public
@@ -64,6 +64,7 @@ declare const UpdateAutomationRuleV2Command_base: {
64
64
  * DateRange: { // DateRange
65
65
  * Value: Number("int"),
66
66
  * Unit: "DAYS",
67
+ * Comparison: "WITHIN" || "OLDER_THAN",
67
68
  * },
68
69
  * },
69
70
  * },
@@ -126,6 +127,7 @@ declare const UpdateAutomationRuleV2Command_base: {
126
127
  * DateRange: {
127
128
  * Value: Number("int"),
128
129
  * Unit: "DAYS",
130
+ * Comparison: "WITHIN" || "OLDER_THAN",
129
131
  * },
130
132
  * },
131
133
  * },
@@ -84,6 +84,7 @@ declare const UpdateFindingsCommand_base: {
84
84
  * DateRange: { // DateRange
85
85
  * Value: Number("int"),
86
86
  * Unit: "DAYS",
87
+ * Comparison: "WITHIN" || "OLDER_THAN",
87
88
  * },
88
89
  * },
89
90
  * ],
@@ -94,6 +95,7 @@ declare const UpdateFindingsCommand_base: {
94
95
  * DateRange: {
95
96
  * Value: Number("int"),
96
97
  * Unit: "DAYS",
98
+ * Comparison: "WITHIN" || "OLDER_THAN",
97
99
  * },
98
100
  * },
99
101
  * ],
@@ -104,6 +106,7 @@ declare const UpdateFindingsCommand_base: {
104
106
  * DateRange: {
105
107
  * Value: Number("int"),
106
108
  * Unit: "DAYS",
109
+ * Comparison: "WITHIN" || "OLDER_THAN",
107
110
  * },
108
111
  * },
109
112
  * ],
@@ -114,6 +117,7 @@ declare const UpdateFindingsCommand_base: {
114
117
  * DateRange: {
115
118
  * Value: Number("int"),
116
119
  * Unit: "DAYS",
120
+ * Comparison: "WITHIN" || "OLDER_THAN",
117
121
  * },
118
122
  * },
119
123
  * ],
@@ -224,6 +228,7 @@ declare const UpdateFindingsCommand_base: {
224
228
  * DateRange: {
225
229
  * Value: Number("int"),
226
230
  * Unit: "DAYS",
231
+ * Comparison: "WITHIN" || "OLDER_THAN",
227
232
  * },
228
233
  * },
229
234
  * ],
@@ -78,6 +78,7 @@ declare const UpdateInsightCommand_base: {
78
78
  * DateRange: { // DateRange
79
79
  * Value: Number("int"),
80
80
  * Unit: "DAYS",
81
+ * Comparison: "WITHIN" || "OLDER_THAN",
81
82
  * },
82
83
  * },
83
84
  * ],
@@ -88,6 +89,7 @@ declare const UpdateInsightCommand_base: {
88
89
  * DateRange: {
89
90
  * Value: Number("int"),
90
91
  * Unit: "DAYS",
92
+ * Comparison: "WITHIN" || "OLDER_THAN",
91
93
  * },
92
94
  * },
93
95
  * ],
@@ -98,6 +100,7 @@ declare const UpdateInsightCommand_base: {
98
100
  * DateRange: {
99
101
  * Value: Number("int"),
100
102
  * Unit: "DAYS",
103
+ * Comparison: "WITHIN" || "OLDER_THAN",
101
104
  * },
102
105
  * },
103
106
  * ],
@@ -108,6 +111,7 @@ declare const UpdateInsightCommand_base: {
108
111
  * DateRange: {
109
112
  * Value: Number("int"),
110
113
  * Unit: "DAYS",
114
+ * Comparison: "WITHIN" || "OLDER_THAN",
111
115
  * },
112
116
  * },
113
117
  * ],
@@ -218,6 +222,7 @@ declare const UpdateInsightCommand_base: {
218
222
  * DateRange: {
219
223
  * Value: Number("int"),
220
224
  * Unit: "DAYS",
225
+ * Comparison: "WITHIN" || "OLDER_THAN",
221
226
  * },
222
227
  * },
223
228
  * ],
@@ -51,6 +51,7 @@ export * from "./EnableImportFindingsForProductCommand";
51
51
  export * from "./EnableOrganizationAdminAccountCommand";
52
52
  export * from "./EnableSecurityHubCommand";
53
53
  export * from "./EnableSecurityHubV2Command";
54
+ export * from "./GenerateRecommendedPolicyV2Command";
54
55
  export * from "./GetAdministratorAccountCommand";
55
56
  export * from "./GetAggregatorV2Command";
56
57
  export * from "./GetAutomationRuleV2Command";
@@ -69,6 +70,7 @@ export * from "./GetInsightsCommand";
69
70
  export * from "./GetInvitationsCountCommand";
70
71
  export * from "./GetMasterAccountCommand";
71
72
  export * from "./GetMembersCommand";
73
+ export * from "./GetRecommendedPolicyV2Command";
72
74
  export * from "./GetResourcesStatisticsV2Command";
73
75
  export * from "./GetResourcesTrendsV2Command";
74
76
  export * from "./GetResourcesV2Command";
@@ -166,6 +166,18 @@ export declare const StringFilterComparison: {
166
166
  * @public
167
167
  */
168
168
  export type StringFilterComparison = (typeof StringFilterComparison)[keyof typeof StringFilterComparison];
169
+ /**
170
+ * @public
171
+ * @enum
172
+ */
173
+ export declare const DateRangeComparison: {
174
+ readonly OLDER_THAN: "OLDER_THAN";
175
+ readonly WITHIN: "WITHIN";
176
+ };
177
+ /**
178
+ * @public
179
+ */
180
+ export type DateRangeComparison = (typeof DateRangeComparison)[keyof typeof DateRangeComparison];
169
181
  /**
170
182
  * @public
171
183
  * @enum
@@ -937,6 +949,30 @@ export declare const GranularityField: {
937
949
  * @public
938
950
  */
939
951
  export type GranularityField = (typeof GranularityField)[keyof typeof GranularityField];
952
+ /**
953
+ * @public
954
+ * @enum
955
+ */
956
+ export declare const RecommendationType: {
957
+ readonly UNUSED_PERMISSION_RECOMMENDATION: "UNUSED_PERMISSION_RECOMMENDATION";
958
+ };
959
+ /**
960
+ * @public
961
+ */
962
+ export type RecommendationType = (typeof RecommendationType)[keyof typeof RecommendationType];
963
+ /**
964
+ * @public
965
+ * @enum
966
+ */
967
+ export declare const RecommendationStatus: {
968
+ readonly FAILED: "FAILED";
969
+ readonly IN_PROGRESS: "IN_PROGRESS";
970
+ readonly SUCCEEDED: "SUCCEEDED";
971
+ };
972
+ /**
973
+ * @public
974
+ */
975
+ export type RecommendationStatus = (typeof RecommendationStatus)[keyof typeof RecommendationStatus];
940
976
  /**
941
977
  * @public
942
978
  * @enum
@@ -1,4 +1,4 @@
1
- import type { ActorSessionMfaStatus, AdminStatus, AssociationType, AutomationRulesActionType, AutomationRulesActionTypeV2, ConfigurationPolicyAssociationStatus, DateRangeUnit, MapFilterComparison, RuleStatus, RuleStatusV2, SeverityLabel, StringFilterComparison, VerificationState, WorkflowStatus } from "./enums";
1
+ import type { ActorSessionMfaStatus, AdminStatus, AssociationType, AutomationRulesActionType, AutomationRulesActionTypeV2, ConfigurationPolicyAssociationStatus, DateRangeComparison, DateRangeUnit, MapFilterComparison, RuleStatus, RuleStatusV2, SeverityLabel, StringFilterComparison, VerificationState, WorkflowStatus } from "./enums";
2
2
  /**
3
3
  * @public
4
4
  */
@@ -1161,9 +1161,9 @@ export interface StringFilter {
1161
1161
  * </p>
1162
1162
  * </li>
1163
1163
  * </ul>
1164
- * <p>
1165
- * <code>CONTAINS</code> and <code>NOT_CONTAINS</code> operators can be used only with automation rules V1.
1166
- * <code>CONTAINS_WORD</code> operator is only supported in <code>GetFindingsV2</code>, <code>GetFindingStatisticsV2</code>, <code>GetResourcesV2</code>, and <code>GetResourcesStatisticsV2</code> APIs.
1164
+ * <p>The <code>CONTAINS</code> operator works with automation rules V1 and V2.
1165
+ * The <code>NOT_CONTAINS</code> operator works only with automation rules V1.
1166
+ * The <code>CONTAINS_WORD</code> operator works only in the <code>GetFindingsV2</code>, <code>GetFindingStatisticsV2</code>, <code>GetResourcesV2</code>, and <code>GetResourcesStatisticsV2</code> APIs.
1167
1167
  * For more information, see <a href="https://docs.aws.amazon.com/securityhub/latest/userguide/automation-rules.html">Automation rules</a> in the <i>Security Hub CSPM User Guide</i>.</p>
1168
1168
  * @public
1169
1169
  */
@@ -1222,6 +1222,11 @@ export interface DateRange {
1222
1222
  * @public
1223
1223
  */
1224
1224
  Unit?: DateRangeUnit | undefined;
1225
+ /**
1226
+ * <p>The condition to apply to a date range filter. If you specify <code>WITHIN</code>, Security Hub filters for dates within the specified date range. If you specify <code>OLDER_THAN</code>, Security Hub filters for dates before the specified date range. If you don't specify a value, the default is <code>WITHIN</code>.</p>
1227
+ * @public
1228
+ */
1229
+ Comparison?: DateRangeComparison | undefined;
1225
1230
  }
1226
1231
  /**
1227
1232
  * <p>A date filter for querying findings.</p>