@aws-sdk/client-securityhub 3.1144.0 → 3.1145.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 (41) hide show
  1. package/README.md +14 -0
  2. package/dist-cjs/index.js +343 -32
  3. package/dist-es/SecurityHub.js +8 -0
  4. package/dist-es/commands/GetRemediationsV2Command.js +4 -0
  5. package/dist-es/commands/ListExposuresByRemediationV2Command.js +4 -0
  6. package/dist-es/commands/index.js +2 -0
  7. package/dist-es/models/enums.js +42 -0
  8. package/dist-es/pagination/GetRemediationsV2Paginator.js +4 -0
  9. package/dist-es/pagination/ListExposuresByRemediationV2Paginator.js +4 -0
  10. package/dist-es/pagination/index.js +2 -0
  11. package/dist-es/schemas/schemas_0.js +253 -31
  12. package/dist-types/SecurityHub.d.ts +29 -0
  13. package/dist-types/SecurityHubClient.d.ts +4 -2
  14. package/dist-types/commands/GetRemediationsV2Command.d.ts +218 -0
  15. package/dist-types/commands/GetResourcesStatisticsV2Command.d.ts +1 -2
  16. package/dist-types/commands/GetResourcesTrendsV2Command.d.ts +1 -2
  17. package/dist-types/commands/ListExposuresByRemediationV2Command.d.ts +120 -0
  18. package/dist-types/commands/index.d.ts +2 -0
  19. package/dist-types/models/enums.d.ts +90 -0
  20. package/dist-types/models/models_0.d.ts +7 -2
  21. package/dist-types/models/models_2.d.ts +286 -137
  22. package/dist-types/models/models_3.d.ts +563 -3
  23. package/dist-types/pagination/GetRemediationsV2Paginator.d.ts +7 -0
  24. package/dist-types/pagination/ListExposuresByRemediationV2Paginator.d.ts +7 -0
  25. package/dist-types/pagination/index.d.ts +2 -0
  26. package/dist-types/schemas/schemas_0.d.ts +24 -0
  27. package/dist-types/ts3.4/SecurityHub.d.ts +49 -0
  28. package/dist-types/ts3.4/SecurityHubClient.d.ts +12 -0
  29. package/dist-types/ts3.4/commands/GetRemediationsV2Command.d.ts +40 -0
  30. package/dist-types/ts3.4/commands/GetResourcesStatisticsV2Command.d.ts +4 -2
  31. package/dist-types/ts3.4/commands/GetResourcesTrendsV2Command.d.ts +1 -2
  32. package/dist-types/ts3.4/commands/ListExposuresByRemediationV2Command.d.ts +42 -0
  33. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  34. package/dist-types/ts3.4/models/enums.d.ts +49 -0
  35. package/dist-types/ts3.4/models/models_2.d.ts +84 -55
  36. package/dist-types/ts3.4/models/models_3.d.ts +134 -7
  37. package/dist-types/ts3.4/pagination/GetRemediationsV2Paginator.d.ts +11 -0
  38. package/dist-types/ts3.4/pagination/ListExposuresByRemediationV2Paginator.d.ts +11 -0
  39. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  40. package/dist-types/ts3.4/schemas/schemas_0.d.ts +24 -0
  41. package/package.json +1 -1
@@ -304,6 +304,10 @@ import {
304
304
  GetRecommendedPolicyV2CommandInput,
305
305
  GetRecommendedPolicyV2CommandOutput,
306
306
  } from "./commands/GetRecommendedPolicyV2Command";
307
+ import {
308
+ GetRemediationsV2CommandInput,
309
+ GetRemediationsV2CommandOutput,
310
+ } from "./commands/GetRemediationsV2Command";
307
311
  import {
308
312
  GetResourcesStatisticsV2CommandInput,
309
313
  GetResourcesStatisticsV2CommandOutput,
@@ -356,6 +360,10 @@ import {
356
360
  ListEnabledProductsForImportCommandInput,
357
361
  ListEnabledProductsForImportCommandOutput,
358
362
  } from "./commands/ListEnabledProductsForImportCommand";
363
+ import {
364
+ ListExposuresByRemediationV2CommandInput,
365
+ ListExposuresByRemediationV2CommandOutput,
366
+ } from "./commands/ListExposuresByRemediationV2Command";
359
367
  import {
360
368
  ListFindingAggregatorsCommandInput,
361
369
  ListFindingAggregatorsCommandOutput,
@@ -1494,6 +1502,20 @@ export interface SecurityHub {
1494
1502
  options: SecurityHubRequestOptions,
1495
1503
  cb: (err: any, data?: GetRecommendedPolicyV2CommandOutput) => void,
1496
1504
  ): void;
1505
+ getRemediationsV2(): Promise<GetRemediationsV2CommandOutput>;
1506
+ getRemediationsV2(
1507
+ args: GetRemediationsV2CommandInput,
1508
+ options?: SecurityHubRequestOptions,
1509
+ ): Promise<GetRemediationsV2CommandOutput>;
1510
+ getRemediationsV2(
1511
+ args: GetRemediationsV2CommandInput,
1512
+ cb: (err: any, data?: GetRemediationsV2CommandOutput) => void,
1513
+ ): void;
1514
+ getRemediationsV2(
1515
+ args: GetRemediationsV2CommandInput,
1516
+ options: SecurityHubRequestOptions,
1517
+ cb: (err: any, data?: GetRemediationsV2CommandOutput) => void,
1518
+ ): void;
1497
1519
  getResourcesStatisticsV2(
1498
1520
  args: GetResourcesStatisticsV2CommandInput,
1499
1521
  options?: SecurityHubRequestOptions,
@@ -1672,6 +1694,19 @@ export interface SecurityHub {
1672
1694
  options: SecurityHubRequestOptions,
1673
1695
  cb: (err: any, data?: ListEnabledProductsForImportCommandOutput) => void,
1674
1696
  ): void;
1697
+ listExposuresByRemediationV2(
1698
+ args: ListExposuresByRemediationV2CommandInput,
1699
+ options?: SecurityHubRequestOptions,
1700
+ ): Promise<ListExposuresByRemediationV2CommandOutput>;
1701
+ listExposuresByRemediationV2(
1702
+ args: ListExposuresByRemediationV2CommandInput,
1703
+ cb: (err: any, data?: ListExposuresByRemediationV2CommandOutput) => void,
1704
+ ): void;
1705
+ listExposuresByRemediationV2(
1706
+ args: ListExposuresByRemediationV2CommandInput,
1707
+ options: SecurityHubRequestOptions,
1708
+ cb: (err: any, data?: ListExposuresByRemediationV2CommandOutput) => void,
1709
+ ): void;
1675
1710
  listFindingAggregators(): Promise<ListFindingAggregatorsCommandOutput>;
1676
1711
  listFindingAggregators(
1677
1712
  args: ListFindingAggregatorsCommandInput,
@@ -2101,6 +2136,13 @@ export interface SecurityHub {
2101
2136
  Exclude<keyof PaginationConfiguration, "client">
2102
2137
  >,
2103
2138
  ): Paginator<GetRecommendedPolicyV2CommandOutput>;
2139
+ paginateGetRemediationsV2(
2140
+ args?: GetRemediationsV2CommandInput,
2141
+ paginationConfig?: Pick<
2142
+ PaginationConfiguration,
2143
+ Exclude<keyof PaginationConfiguration, "client">
2144
+ >,
2145
+ ): Paginator<GetRemediationsV2CommandOutput>;
2104
2146
  paginateGetResourcesTrendsV2(
2105
2147
  args: GetResourcesTrendsV2CommandInput,
2106
2148
  paginationConfig?: Pick<
@@ -2143,6 +2185,13 @@ export interface SecurityHub {
2143
2185
  Exclude<keyof PaginationConfiguration, "client">
2144
2186
  >,
2145
2187
  ): Paginator<ListEnabledProductsForImportCommandOutput>;
2188
+ paginateListExposuresByRemediationV2(
2189
+ args: ListExposuresByRemediationV2CommandInput,
2190
+ paginationConfig?: Pick<
2191
+ PaginationConfiguration,
2192
+ Exclude<keyof PaginationConfiguration, "client">
2193
+ >,
2194
+ ): Paginator<ListExposuresByRemediationV2CommandOutput>;
2146
2195
  paginateListFindingAggregators(
2147
2196
  args?: ListFindingAggregatorsCommandInput,
2148
2197
  paginationConfig?: Pick<
@@ -333,6 +333,10 @@ import {
333
333
  GetRecommendedPolicyV2CommandInput,
334
334
  GetRecommendedPolicyV2CommandOutput,
335
335
  } from "./commands/GetRecommendedPolicyV2Command";
336
+ import {
337
+ GetRemediationsV2CommandInput,
338
+ GetRemediationsV2CommandOutput,
339
+ } from "./commands/GetRemediationsV2Command";
336
340
  import {
337
341
  GetResourcesStatisticsV2CommandInput,
338
342
  GetResourcesStatisticsV2CommandOutput,
@@ -385,6 +389,10 @@ import {
385
389
  ListEnabledProductsForImportCommandInput,
386
390
  ListEnabledProductsForImportCommandOutput,
387
391
  } from "./commands/ListEnabledProductsForImportCommand";
392
+ import {
393
+ ListExposuresByRemediationV2CommandInput,
394
+ ListExposuresByRemediationV2CommandOutput,
395
+ } from "./commands/ListExposuresByRemediationV2Command";
388
396
  import {
389
397
  ListFindingAggregatorsCommandInput,
390
398
  ListFindingAggregatorsCommandOutput,
@@ -569,6 +577,7 @@ export type ServiceInputTypes =
569
577
  | GetMasterAccountCommandInput
570
578
  | GetMembersCommandInput
571
579
  | GetRecommendedPolicyV2CommandInput
580
+ | GetRemediationsV2CommandInput
572
581
  | GetResourcesStatisticsV2CommandInput
573
582
  | GetResourcesTrendsV2CommandInput
574
583
  | GetResourcesV2CommandInput
@@ -582,6 +591,7 @@ export type ServiceInputTypes =
582
591
  | ListConnectorsCommandInput
583
592
  | ListConnectorsV2CommandInput
584
593
  | ListEnabledProductsForImportCommandInput
594
+ | ListExposuresByRemediationV2CommandInput
585
595
  | ListFindingAggregatorsCommandInput
586
596
  | ListFreeTrialStatusesV2CommandInput
587
597
  | ListInvitationsCommandInput
@@ -687,6 +697,7 @@ export type ServiceOutputTypes =
687
697
  | GetMasterAccountCommandOutput
688
698
  | GetMembersCommandOutput
689
699
  | GetRecommendedPolicyV2CommandOutput
700
+ | GetRemediationsV2CommandOutput
690
701
  | GetResourcesStatisticsV2CommandOutput
691
702
  | GetResourcesTrendsV2CommandOutput
692
703
  | GetResourcesV2CommandOutput
@@ -700,6 +711,7 @@ export type ServiceOutputTypes =
700
711
  | ListConnectorsCommandOutput
701
712
  | ListConnectorsV2CommandOutput
702
713
  | ListEnabledProductsForImportCommandOutput
714
+ | ListExposuresByRemediationV2CommandOutput
703
715
  | ListFindingAggregatorsCommandOutput
704
716
  | ListFreeTrialStatusesV2CommandOutput
705
717
  | ListInvitationsCommandOutput
@@ -0,0 +1,40 @@
1
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import { GetRemediationsV2Request } from "../models/models_2";
3
+ import { GetRemediationsV2Response } from "../models/models_3";
4
+ export { __MetadataBearer };
5
+ export interface GetRemediationsV2CommandInput extends GetRemediationsV2Request {}
6
+ export interface GetRemediationsV2CommandOutput
7
+ extends GetRemediationsV2Response, __MetadataBearer {}
8
+ declare const GetRemediationsV2Command_base: {
9
+ new (
10
+ input: GetRemediationsV2CommandInput,
11
+ ): import("@smithy/core/client").CommandImpl<
12
+ GetRemediationsV2CommandInput,
13
+ GetRemediationsV2CommandOutput,
14
+ import("..").SecurityHubClientResolvedConfig,
15
+ import("..").ServiceInputTypes,
16
+ import("..").ServiceOutputTypes
17
+ >;
18
+ new (
19
+ ...[input]: [] | [GetRemediationsV2CommandInput]
20
+ ): import("@smithy/core/client").CommandImpl<
21
+ GetRemediationsV2CommandInput,
22
+ GetRemediationsV2CommandOutput,
23
+ import("..").SecurityHubClientResolvedConfig,
24
+ import("..").ServiceInputTypes,
25
+ import("..").ServiceOutputTypes
26
+ >;
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
+ };
29
+ export declare class GetRemediationsV2Command extends GetRemediationsV2Command_base {
30
+ protected static __types: {
31
+ api: {
32
+ input: GetRemediationsV2Request;
33
+ output: GetRemediationsV2Response;
34
+ };
35
+ sdk: {
36
+ input: GetRemediationsV2CommandInput;
37
+ output: GetRemediationsV2CommandOutput;
38
+ };
39
+ };
40
+ }
@@ -1,6 +1,8 @@
1
1
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
- import { GetResourcesStatisticsV2Response } from "../models/models_2";
3
- import { GetResourcesStatisticsV2Request } from "../models/models_3";
2
+ import {
3
+ GetResourcesStatisticsV2Request,
4
+ GetResourcesStatisticsV2Response,
5
+ } from "../models/models_3";
4
6
  export { __MetadataBearer };
5
7
  export interface GetResourcesStatisticsV2CommandInput extends GetResourcesStatisticsV2Request {}
6
8
  export interface GetResourcesStatisticsV2CommandOutput
@@ -1,6 +1,5 @@
1
1
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
- import { GetResourcesTrendsV2Response } from "../models/models_2";
3
- import { GetResourcesTrendsV2Request } from "../models/models_3";
2
+ import { GetResourcesTrendsV2Request, GetResourcesTrendsV2Response } from "../models/models_3";
4
3
  export { __MetadataBearer };
5
4
  export interface GetResourcesTrendsV2CommandInput extends GetResourcesTrendsV2Request {}
6
5
  export interface GetResourcesTrendsV2CommandOutput
@@ -0,0 +1,42 @@
1
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import {
3
+ ListExposuresByRemediationV2Request,
4
+ ListExposuresByRemediationV2Response,
5
+ } from "../models/models_3";
6
+ export { __MetadataBearer };
7
+ export interface ListExposuresByRemediationV2CommandInput extends ListExposuresByRemediationV2Request {}
8
+ export interface ListExposuresByRemediationV2CommandOutput
9
+ extends ListExposuresByRemediationV2Response, __MetadataBearer {}
10
+ declare const ListExposuresByRemediationV2Command_base: {
11
+ new (
12
+ input: ListExposuresByRemediationV2CommandInput,
13
+ ): import("@smithy/core/client").CommandImpl<
14
+ ListExposuresByRemediationV2CommandInput,
15
+ ListExposuresByRemediationV2CommandOutput,
16
+ import("..").SecurityHubClientResolvedConfig,
17
+ import("..").ServiceInputTypes,
18
+ import("..").ServiceOutputTypes
19
+ >;
20
+ new (
21
+ input: ListExposuresByRemediationV2CommandInput,
22
+ ): import("@smithy/core/client").CommandImpl<
23
+ ListExposuresByRemediationV2CommandInput,
24
+ ListExposuresByRemediationV2CommandOutput,
25
+ import("..").SecurityHubClientResolvedConfig,
26
+ import("..").ServiceInputTypes,
27
+ import("..").ServiceOutputTypes
28
+ >;
29
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
+ };
31
+ export declare class ListExposuresByRemediationV2Command extends ListExposuresByRemediationV2Command_base {
32
+ protected static __types: {
33
+ api: {
34
+ input: ListExposuresByRemediationV2Request;
35
+ output: ListExposuresByRemediationV2Response;
36
+ };
37
+ sdk: {
38
+ input: ListExposuresByRemediationV2CommandInput;
39
+ output: ListExposuresByRemediationV2CommandOutput;
40
+ };
41
+ };
42
+ }
@@ -76,6 +76,7 @@ export * from "./GetInvitationsCountCommand";
76
76
  export * from "./GetMasterAccountCommand";
77
77
  export * from "./GetMembersCommand";
78
78
  export * from "./GetRecommendedPolicyV2Command";
79
+ export * from "./GetRemediationsV2Command";
79
80
  export * from "./GetResourcesStatisticsV2Command";
80
81
  export * from "./GetResourcesTrendsV2Command";
81
82
  export * from "./GetResourcesV2Command";
@@ -89,6 +90,7 @@ export * from "./ListConfigurationPolicyAssociationsCommand";
89
90
  export * from "./ListConnectorsCommand";
90
91
  export * from "./ListConnectorsV2Command";
91
92
  export * from "./ListEnabledProductsForImportCommand";
93
+ export * from "./ListExposuresByRemediationV2Command";
92
94
  export * from "./ListFindingAggregatorsCommand";
93
95
  export * from "./ListFreeTrialStatusesV2Command";
94
96
  export * from "./ListInvitationsCommand";
@@ -559,6 +559,20 @@ export declare const DiscoveryType: {
559
559
  readonly SELF_HOSTED: "SelfHosted";
560
560
  };
561
561
  export type DiscoveryType = (typeof DiscoveryType)[keyof typeof DiscoveryType];
562
+ export declare const ExposureImpact: {
563
+ readonly REDUCES: "Reduces";
564
+ readonly RESOLVES: "Resolves";
565
+ readonly UNCHANGED: "Unchanged";
566
+ };
567
+ export type ExposureImpact = (typeof ExposureImpact)[keyof typeof ExposureImpact];
568
+ export declare const ExposureSeverity: {
569
+ readonly CRITICAL: "Critical";
570
+ readonly HIGH: "High";
571
+ readonly INFORMATIONAL: "Informational";
572
+ readonly LOW: "Low";
573
+ readonly MEDIUM: "Medium";
574
+ };
575
+ export type ExposureSeverity = (typeof ExposureSeverity)[keyof typeof ExposureSeverity];
562
576
  export declare const FindingHistoryUpdateSourceType: {
563
577
  readonly BATCH_IMPORT_FINDINGS: "BATCH_IMPORT_FINDINGS";
564
578
  readonly BATCH_UPDATE_FINDINGS: "BATCH_UPDATE_FINDINGS";
@@ -638,6 +652,41 @@ export declare const RecommendationStatus: {
638
652
  readonly SUCCEEDED: "SUCCEEDED";
639
653
  };
640
654
  export type RecommendationStatus = (typeof RecommendationStatus)[keyof typeof RecommendationStatus];
655
+ export declare const RemediationStringField: {
656
+ readonly PRIORITY: "Priority";
657
+ readonly RESOURCE_CLOUD_PROVIDER: "Resource.CloudProvider";
658
+ readonly RESOURCE_ID: "Resource.Id";
659
+ readonly RESOURCE_OWNER_ACCOUNT_ID: "Resource.ResourceOwnerAccountId";
660
+ readonly RESOURCE_TYPE: "Resource.Type";
661
+ readonly STATUS: "Status";
662
+ };
663
+ export type RemediationStringField =
664
+ (typeof RemediationStringField)[keyof typeof RemediationStringField];
665
+ export declare const GuidanceFormat: {
666
+ readonly ALL: "All";
667
+ readonly AWS_CLI: "AwsCli";
668
+ readonly CDK: "Cdk";
669
+ readonly CLI: "Cli";
670
+ readonly CLOUDFORMATION: "CloudFormation";
671
+ readonly IAC: "IaC";
672
+ readonly PYTHON: "Python";
673
+ readonly TEMPLATE: "Template";
674
+ readonly TERRAFORM: "Terraform";
675
+ };
676
+ export type GuidanceFormat = (typeof GuidanceFormat)[keyof typeof GuidanceFormat];
677
+ export declare const RemediationPriority: {
678
+ readonly CRITICAL: "Critical";
679
+ readonly HIGH: "High";
680
+ readonly LOW: "Low";
681
+ readonly MEDIUM: "Medium";
682
+ };
683
+ export type RemediationPriority = (typeof RemediationPriority)[keyof typeof RemediationPriority];
684
+ export declare const RemediationStatus: {
685
+ readonly NEW: "New";
686
+ readonly RESOLVED: "Resolved";
687
+ readonly UPDATED: "Updated";
688
+ };
689
+ export type RemediationStatus = (typeof RemediationStatus)[keyof typeof RemediationStatus];
641
690
  export declare const ResourcesDateField: {
642
691
  readonly RESOURCE_CREATION_TIME_DT: "ResourceCreationTime";
643
692
  readonly RESOURCE_DETAIL_CAPTURE_TIME_DT: "ResourceDetailCaptureTime";
@@ -15,11 +15,14 @@ import {
15
15
  CspmConnectorStatus,
16
16
  CspmEnablementStatus,
17
17
  EnablementStatus,
18
+ ExposureImpact,
19
+ ExposureSeverity,
18
20
  FeatureName,
19
21
  FeatureStatus,
20
22
  FindingHistoryUpdateSourceType,
21
23
  FindingsTrendsStringField,
22
24
  GranularityField,
25
+ GuidanceFormat,
23
26
  HealthIssueCode,
24
27
  IntegrationType,
25
28
  IntegrationV2Type,
@@ -36,11 +39,7 @@ import {
36
39
  RecommendationStatus,
37
40
  RecommendationType,
38
41
  RecordState,
39
- ResourcesDateField,
40
- ResourcesMapField,
41
- ResourcesNumberField,
42
- ResourcesStringField,
43
- ResourcesTrendsStringField,
42
+ RemediationStringField,
44
43
  RuleStatus,
45
44
  ScopeType,
46
45
  SecurityControlsProvider,
@@ -1855,6 +1854,13 @@ export interface EnableSecurityHubV2Request {
1855
1854
  export interface EnableSecurityHubV2Response {
1856
1855
  HubV2Arn?: string | undefined;
1857
1856
  }
1857
+ export interface ExposureFinding {
1858
+ MetadataUid: string | undefined;
1859
+ Title: string | undefined;
1860
+ PreviousSeverity: ExposureSeverity | undefined;
1861
+ ProjectedSeverity: ExposureSeverity | undefined;
1862
+ Impact: ExposureImpact | undefined;
1863
+ }
1858
1864
  export interface FindingAggregator {
1859
1865
  FindingAggregatorArn?: string | undefined;
1860
1866
  }
@@ -2145,60 +2151,83 @@ export interface GetRecommendedPolicyV2Response {
2145
2151
  Status?: RecommendationStatus | undefined;
2146
2152
  ResourceArn?: string | undefined;
2147
2153
  }
2148
- export interface ResourcesDateFilter {
2149
- FieldName?: ResourcesDateField | undefined;
2150
- Filter?: DateFilter | undefined;
2151
- }
2152
- export interface ResourcesMapFilter {
2153
- FieldName?: ResourcesMapField | undefined;
2154
- Filter?: MapFilter | undefined;
2155
- }
2156
- export interface ResourcesNumberFilter {
2157
- FieldName?: ResourcesNumberField | undefined;
2158
- Filter?: NumberFilter | undefined;
2159
- }
2160
- export interface ResourcesStringFilter {
2161
- FieldName?: ResourcesStringField | undefined;
2162
- Filter?: StringFilter | undefined;
2163
- }
2164
- export interface ResourceScopes {
2165
- AwsOrganizations?: AwsOrganizationScope[] | undefined;
2166
- }
2167
- export interface GetResourcesStatisticsV2Response {
2168
- GroupByResults: GroupByResult[] | undefined;
2169
- }
2170
- export interface ResourcesTrendsStringFilter {
2171
- FieldName?: ResourcesTrendsStringField | undefined;
2172
- Filter?: StringFilter | undefined;
2154
+ export interface RemediationStringFilterCondition {
2155
+ Value: string | undefined;
2173
2156
  }
2174
- export interface ResourcesCount {
2175
- AllResources: number | undefined;
2157
+ export interface RemediationStringFilter {
2158
+ FieldName: RemediationStringField | undefined;
2159
+ Filter: RemediationStringFilterCondition | undefined;
2176
2160
  }
2177
- export interface ResourcesTrendsValues {
2178
- ResourcesCount: ResourcesCount | undefined;
2161
+ export interface RemediationCompositeFilter {
2162
+ StringFilters?: RemediationStringFilter[] | undefined;
2179
2163
  }
2180
- export interface ResourcesTrendsMetricsResult {
2181
- Timestamp: Date | undefined;
2182
- TrendsValues: ResourcesTrendsValues | undefined;
2164
+ export interface RemediationFilters {
2165
+ CompositeFilters?: RemediationCompositeFilter[] | undefined;
2183
2166
  }
2184
- export interface GetResourcesTrendsV2Response {
2185
- Granularity: GranularityField | undefined;
2186
- TrendsMetrics: ResourcesTrendsMetricsResult[] | undefined;
2167
+ export interface GetRemediationsV2Request {
2168
+ TargetUid?: string | undefined;
2169
+ MetadataUid?: string | undefined;
2170
+ Filters?: RemediationFilters | undefined;
2171
+ ShowGuidance?: boolean | undefined;
2172
+ GuidanceFormat?: GuidanceFormat | undefined;
2173
+ MaxResults?: number | undefined;
2187
2174
  NextToken?: string | undefined;
2188
2175
  }
2189
- export interface ResourceSeverityBreakdown {
2190
- Other?: number | undefined;
2191
- Fatal?: number | undefined;
2192
- Critical?: number | undefined;
2193
- High?: number | undefined;
2194
- Medium?: number | undefined;
2195
- Low?: number | undefined;
2196
- Informational?: number | undefined;
2197
- Unknown?: number | undefined;
2198
- }
2199
- export interface ResourceFindingsSummary {
2200
- FindingType: string | undefined;
2201
- ProductName: string | undefined;
2202
- TotalFindings: number | undefined;
2203
- Severities?: ResourceSeverityBreakdown | undefined;
2176
+ export interface RemediationGuidanceContext {
2177
+ ProblemStatement?: string | undefined;
2178
+ RiskAssessment?: string | undefined;
2179
+ AffectedScope?: string | undefined;
2180
+ Prerequisites?: string[] | undefined;
2181
+ }
2182
+ export interface RemediationGuidanceExamples {
2183
+ AwsCli?: string | undefined;
2184
+ Cli?: string | undefined;
2185
+ Python?: string | undefined;
2186
+ Terraform?: string | undefined;
2187
+ Cdk?: string | undefined;
2188
+ CloudFormation?: string | undefined;
2189
+ IaC?: string | undefined;
2190
+ Template?: string | undefined;
2191
+ }
2192
+ export interface RemediationGuidanceMetadata {
2193
+ ResourceType: string | undefined;
2194
+ ExposureType: string | undefined;
2195
+ TraitTitles: string[] | undefined;
2196
+ Reversibility: string | undefined;
2197
+ FixEffect: string | undefined;
2198
+ RiskLevel: string | undefined;
2199
+ AutomationLevel?: string | undefined;
2200
+ HumanReviewRequired?: boolean | undefined;
2201
+ GeneratedAt?: Date | undefined;
2202
+ VerificationStatus?: string | undefined;
2203
+ }
2204
+ export interface RemediationParameter {
2205
+ Name: string | undefined;
2206
+ Type: string | undefined;
2207
+ Description: string | undefined;
2208
+ Required?: boolean | undefined;
2209
+ }
2210
+ export interface RemediationStep {
2211
+ Phase: string | undefined;
2212
+ Description: string | undefined;
2213
+ Service: string | undefined;
2214
+ Action: string | undefined;
2215
+ Logic?: string | undefined;
2216
+ Inverse?: string | undefined;
2217
+ VerifyAfter?: string | undefined;
2218
+ }
2219
+ export interface RemediationGuidanceSpecification {
2220
+ Parameters?: RemediationParameter[] | undefined;
2221
+ Steps?: RemediationStep[] | undefined;
2222
+ ExpectedEndState?: string | undefined;
2223
+ RequiredPermissions?: string[] | undefined;
2224
+ }
2225
+ export interface RemediationGuidance {
2226
+ TargetTypeName: string | undefined;
2227
+ Pattern: string | undefined;
2228
+ Version: string | undefined;
2229
+ Context: RemediationGuidanceContext | undefined;
2230
+ Specification: RemediationGuidanceSpecification | undefined;
2231
+ Examples: RemediationGuidanceExamples | undefined;
2232
+ Metadata: RemediationGuidanceMetadata | undefined;
2204
2233
  }