@aws-sdk/client-ec2 3.1157.0 → 3.1158.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 +7 -0
  2. package/dist-cjs/index.js +169 -27
  3. package/dist-es/EC2.js +4 -0
  4. package/dist-es/commands/GetImageFindingsCommand.js +4 -0
  5. package/dist-es/commands/index.js +1 -0
  6. package/dist-es/models/enums.js +7 -0
  7. package/dist-es/pagination/GetImageFindingsPaginator.js +4 -0
  8. package/dist-es/pagination/index.js +1 -0
  9. package/dist-es/schemas/schemas_0.js +144 -26
  10. package/dist-types/EC2.d.ts +14 -0
  11. package/dist-types/EC2Client.d.ts +3 -2
  12. package/dist-types/commands/DescribeImagesCommand.d.ts +9 -0
  13. package/dist-types/commands/DisassociateTransitGatewayPolicyTableCommand.d.ts +1 -2
  14. package/dist-types/commands/GetAllowedImagesSettingsCommand.d.ts +9 -0
  15. package/dist-types/commands/GetImageFindingsCommand.d.ts +90 -0
  16. package/dist-types/commands/GetVerifiedAccessGroupPolicyCommand.d.ts +2 -1
  17. package/dist-types/commands/GetVpcResourcesBlockingEncryptionEnforcementCommand.d.ts +1 -1
  18. package/dist-types/commands/GetVpnConnectionDeviceSampleConfigurationCommand.d.ts +1 -2
  19. package/dist-types/commands/RejectTransitGatewayVpcAttachmentCommand.d.ts +2 -1
  20. package/dist-types/commands/RejectVpcEndpointConnectionsCommand.d.ts +1 -1
  21. package/dist-types/commands/RejectVpcPeeringConnectionCommand.d.ts +1 -1
  22. package/dist-types/commands/ReplaceImageCriteriaInAllowedImagesSettingsCommand.d.ts +9 -0
  23. package/dist-types/commands/index.d.ts +1 -0
  24. package/dist-types/models/enums.d.ts +15 -0
  25. package/dist-types/models/models_4.d.ts +175 -55
  26. package/dist-types/models/models_5.d.ts +55 -23
  27. package/dist-types/models/models_6.d.ts +259 -123
  28. package/dist-types/models/models_7.d.ts +122 -69
  29. package/dist-types/models/models_8.d.ts +186 -2
  30. package/dist-types/pagination/GetImageFindingsPaginator.d.ts +7 -0
  31. package/dist-types/pagination/index.d.ts +1 -0
  32. package/dist-types/schemas/schemas_0.d.ts +7 -0
  33. package/dist-types/ts3.4/EC2.d.ts +24 -0
  34. package/dist-types/ts3.4/EC2Client.d.ts +6 -0
  35. package/dist-types/ts3.4/commands/DisassociateTransitGatewayPolicyTableCommand.d.ts +4 -2
  36. package/dist-types/ts3.4/commands/GetImageFindingsCommand.d.ts +38 -0
  37. package/dist-types/ts3.4/commands/GetVerifiedAccessGroupPolicyCommand.d.ts +2 -4
  38. package/dist-types/ts3.4/commands/GetVpcResourcesBlockingEncryptionEnforcementCommand.d.ts +1 -1
  39. package/dist-types/ts3.4/commands/GetVpnConnectionDeviceSampleConfigurationCommand.d.ts +4 -2
  40. package/dist-types/ts3.4/commands/RejectTransitGatewayVpcAttachmentCommand.d.ts +2 -4
  41. package/dist-types/ts3.4/commands/RejectVpcEndpointConnectionsCommand.d.ts +1 -1
  42. package/dist-types/ts3.4/commands/RejectVpcPeeringConnectionCommand.d.ts +1 -1
  43. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  44. package/dist-types/ts3.4/models/enums.d.ts +8 -0
  45. package/dist-types/ts3.4/models/models_4.d.ts +11 -11
  46. package/dist-types/ts3.4/models/models_5.d.ts +13 -6
  47. package/dist-types/ts3.4/models/models_6.d.ts +36 -27
  48. package/dist-types/ts3.4/models/models_7.d.ts +27 -18
  49. package/dist-types/ts3.4/models/models_8.d.ts +30 -0
  50. package/dist-types/ts3.4/pagination/GetImageFindingsPaginator.d.ts +11 -0
  51. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  52. package/dist-types/ts3.4/schemas/schemas_0.d.ts +7 -0
  53. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- import type { _InstanceType, AddressAttributeName, AmdSevSnpSpecification, CapacityManagerStatus, HostnameType, HttpTokensState, InstanceAttributeName, InstanceAutoRecoveryState, InstanceBandwidthWeighting, InstanceInterruptionBehavior, InstanceMetadataEndpointState, InstanceMetadataProtocolState, InstanceMetadataTagsState, InterruptibleCapacityReservationAllocationStatus, InterruptionType, MarketType, MembershipType, NestedVirtualizationSpecification, ReportInstanceReasonCodes, ReportStatusType, ResetFpgaImageAttributeName, ResetImageAttributeName, RuleAction, SecondaryInterfaceType, ShutdownBehavior, SnapshotAttributeName, SnapshotState, SpotInstanceType, SSEType, Status, TransitGatewayAttachmentResourceType, ZeroSizePreference } from "./enums";
2
- import type { AddressAttribute, ByoipCidr, ClientVpnAuthorizationRuleStatus, IamInstanceProfileAssociation, IamInstanceProfileSpecification, IpPermission, NatGatewayAddress, PortRange, RouteTableAssociationState, TagSpecification, UnsuccessfulItem } from "./models_0";
1
+ import type { _InstanceType, AddressAttributeName, AmdSevSnpSpecification, CapacityManagerStatus, HostnameType, HttpTokensState, InstanceAttributeName, InstanceAutoRecoveryState, InstanceBandwidthWeighting, InstanceInterruptionBehavior, InstanceMetadataEndpointState, InstanceMetadataProtocolState, InstanceMetadataTagsState, InterruptibleCapacityReservationAllocationStatus, InterruptionType, MarketType, MembershipType, NestedVirtualizationSpecification, ReportInstanceReasonCodes, ReportStatusType, ResetFpgaImageAttributeName, ResetImageAttributeName, RuleAction, SecondaryInterfaceType, SeverityLabel, ShutdownBehavior, SnapshotAttributeName, SnapshotState, SpotInstanceType, SSEType, Status, TransitGatewayAttachmentResourceType, ZeroSizePreference } from "./enums";
2
+ import type { AddressAttribute, ByoipCidr, ClientVpnAuthorizationRuleStatus, IamInstanceProfileAssociation, IamInstanceProfileSpecification, IpPermission, NatGatewayAddress, PortRange, RouteTableAssociationState, TagSpecification, TransitGatewayVpcAttachment, UnsuccessfulItem } from "./models_0";
3
3
  import type { BlockDeviceMapping, CreditSpecificationRequest, ElasticGpuSpecification, IcmpTypeCode, InstanceIpv6Address, LocalGatewayRoute, ManagedPrefixList, OperatorRequest, Placement } from "./models_1";
4
4
  import type { TransitGatewayRoute } from "./models_2";
5
5
  import type { ClientVpnConnectionStatus, Filter } from "./models_3";
@@ -7,6 +7,75 @@ import type { InstanceState, NetworkInsightsAccessScopeAnalysis, NetworkInsights
7
7
  import type { InstanceNetworkInterfaceSpecification, RunInstancesMonitoringEnabled, SpotFleetRequestConfigData, SpotInstanceRequest, SpotPlacement } from "./models_5";
8
8
  import type { CapacityManagerMonitoredTagKey } from "./models_6";
9
9
  import type { CapacityReservationSpecification, EnclaveOptionsRequest, InstanceMonitoring } from "./models_7";
10
+ /**
11
+ * @public
12
+ */
13
+ export interface RejectTransitGatewayVpcAttachmentResult {
14
+ /**
15
+ * <p>Information about the attachment.</p>
16
+ * @public
17
+ */
18
+ TransitGatewayVpcAttachment?: TransitGatewayVpcAttachment | undefined;
19
+ }
20
+ /**
21
+ * @public
22
+ */
23
+ export interface RejectVpcEndpointConnectionsRequest {
24
+ /**
25
+ * <p>Checks whether you have the required permissions for the action, without actually making the request,
26
+ * and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>.
27
+ * Otherwise, it is <code>UnauthorizedOperation</code>.</p>
28
+ * @public
29
+ */
30
+ DryRun?: boolean | undefined;
31
+ /**
32
+ * <p>The ID of the service.</p>
33
+ * @public
34
+ */
35
+ ServiceId: string | undefined;
36
+ /**
37
+ * <p>The IDs of the VPC endpoints.</p>
38
+ * @public
39
+ */
40
+ VpcEndpointIds: string[] | undefined;
41
+ }
42
+ /**
43
+ * @public
44
+ */
45
+ export interface RejectVpcEndpointConnectionsResult {
46
+ /**
47
+ * <p>Information about the endpoints that were not rejected, if applicable.</p>
48
+ * @public
49
+ */
50
+ Unsuccessful?: UnsuccessfulItem[] | undefined;
51
+ }
52
+ /**
53
+ * @public
54
+ */
55
+ export interface RejectVpcPeeringConnectionRequest {
56
+ /**
57
+ * <p>Checks whether you have the required permissions for the action, without actually making the request,
58
+ * and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>.
59
+ * Otherwise, it is <code>UnauthorizedOperation</code>.</p>
60
+ * @public
61
+ */
62
+ DryRun?: boolean | undefined;
63
+ /**
64
+ * <p>The ID of the VPC peering connection.</p>
65
+ * @public
66
+ */
67
+ VpcPeeringConnectionId: string | undefined;
68
+ }
69
+ /**
70
+ * @public
71
+ */
72
+ export interface RejectVpcPeeringConnectionResult {
73
+ /**
74
+ * <p>Returns <code>true</code> if the request succeeds; otherwise, it returns an error.</p>
75
+ * @public
76
+ */
77
+ Return?: boolean | undefined;
78
+ }
10
79
  /**
11
80
  * @public
12
81
  */
@@ -181,6 +250,113 @@ export interface ImageWatermarkFilterRequest {
181
250
  */
182
251
  MaximumDaysSinceWatermarkCreated?: number | undefined;
183
252
  }
253
+ /**
254
+ * <p>The Amazon Inspector scan-result criteria that an AMI must meet to be allowed. The
255
+ * criteria can limit the highest finding severity. They can also limit, for each severity, the
256
+ * days since Amazon Inspector reported a fix as available.</p>
257
+ * <p>The severity limit applies to all findings, whether or not a fix is available. The day
258
+ * limits for each severity apply only to findings that have a fix available. A scanned AMI that
259
+ * has no fix-available finding of a given severity meets that severity's day limit. AMIs that
260
+ * Amazon Inspector has not scanned are not allowed when you specify this condition.</p>
261
+ * @public
262
+ */
263
+ export interface ScanResultConditionRequest {
264
+ /**
265
+ * <p>The maximum number of days that have elapsed since Amazon Inspector last scanned the AMI.
266
+ * For example, a value of <code>7</code> allows AMIs that were scanned within the last 7 days.
267
+ * AMIs that Amazon Inspector has not scanned are not allowed.</p>
268
+ * <p>Constraints: Minimum value of 0. Maximum value of 2147483647.</p>
269
+ * @public
270
+ */
271
+ MaxDaysSinceLastFindingScan?: number | undefined;
272
+ /**
273
+ * <p>The maximum severity that an AMI's Amazon Inspector findings can have for the AMI to be
274
+ * allowed. Findings count whether or not a fix is available. For example, a value of
275
+ * <code>medium</code> allows AMIs whose highest severity is <code>informational</code>,
276
+ * <code>low</code>, or <code>medium</code>.</p>
277
+ * <p>The valid values are the following Amazon Inspector severity levels, which correspond to
278
+ * CVSS score ranges:</p>
279
+ * <ul>
280
+ * <li>
281
+ * <p>
282
+ * <code>informational</code> - CVSS score of 0.</p>
283
+ * </li>
284
+ * <li>
285
+ * <p>
286
+ * <code>low</code> - CVSS score of 0.1 to 3.9.</p>
287
+ * </li>
288
+ * <li>
289
+ * <p>
290
+ * <code>medium</code> - CVSS score of 4.0 to 6.9.</p>
291
+ * </li>
292
+ * <li>
293
+ * <p>
294
+ * <code>high</code> - CVSS score of 7.0 to 8.9.</p>
295
+ * </li>
296
+ * <li>
297
+ * <p>
298
+ * <code>critical</code> - CVSS score of 9.0 to 10.0.</p>
299
+ * </li>
300
+ * </ul>
301
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/inspector/latest/user/findings-understanding-severity.html#findings-understanding-package-score">Software
302
+ * package vulnerability severity</a> in the <i>Amazon Inspector User Guide</i>.</p>
303
+ * <p>A scanned AMI that has no findings meets this limit.</p>
304
+ * <p>AMIs that Amazon Inspector has not scanned are not allowed when you specify this
305
+ * condition.</p>
306
+ * @public
307
+ */
308
+ MaximumSeverityLabel?: SeverityLabel | undefined;
309
+ /**
310
+ * <p>The maximum number of days since Amazon Inspector reported a fix as available for an
311
+ * <code>informational</code> severity finding on the AMI. For example, a value of <code>7</code>
312
+ * does not allow an AMI if Amazon Inspector reported such a fix more than 7 days ago.</p>
313
+ * <p>A scanned AMI that has no <code>informational</code> severity finding with a fix available meets
314
+ * this limit. AMIs that Amazon Inspector has not scanned are not allowed.</p>
315
+ * <p>Constraints: Minimum value of 0. Maximum value of 2147483647.</p>
316
+ * @public
317
+ */
318
+ MaxDaysSinceInformationalFixAvailable?: number | undefined;
319
+ /**
320
+ * <p>The maximum number of days since Amazon Inspector reported a fix as available for a
321
+ * <code>low</code> severity finding on the AMI. For example, a value of <code>7</code> does not
322
+ * allow an AMI if Amazon Inspector reported such a fix more than 7 days ago.</p>
323
+ * <p>A scanned AMI that has no <code>low</code> severity finding with a fix available meets
324
+ * this limit. AMIs that Amazon Inspector has not scanned are not allowed.</p>
325
+ * <p>Constraints: Minimum value of 0. Maximum value of 2147483647.</p>
326
+ * @public
327
+ */
328
+ MaxDaysSinceLowFixAvailable?: number | undefined;
329
+ /**
330
+ * <p>The maximum number of days since Amazon Inspector reported a fix as available for a
331
+ * <code>medium</code> severity finding on the AMI. For example, a value of <code>7</code> does
332
+ * not allow an AMI if Amazon Inspector reported such a fix more than 7 days ago.</p>
333
+ * <p>A scanned AMI that has no <code>medium</code> severity finding with a fix available meets
334
+ * this limit. AMIs that Amazon Inspector has not scanned are not allowed.</p>
335
+ * <p>Constraints: Minimum value of 0. Maximum value of 2147483647.</p>
336
+ * @public
337
+ */
338
+ MaxDaysSinceMediumFixAvailable?: number | undefined;
339
+ /**
340
+ * <p>The maximum number of days since Amazon Inspector reported a fix as available for a
341
+ * <code>high</code> severity finding on the AMI. For example, a value of <code>7</code> does not
342
+ * allow an AMI if Amazon Inspector reported such a fix more than 7 days ago.</p>
343
+ * <p>A scanned AMI that has no <code>high</code> severity finding with a fix available meets
344
+ * this limit. AMIs that Amazon Inspector has not scanned are not allowed.</p>
345
+ * <p>Constraints: Minimum value of 0. Maximum value of 2147483647.</p>
346
+ * @public
347
+ */
348
+ MaxDaysSinceHighFixAvailable?: number | undefined;
349
+ /**
350
+ * <p>The maximum number of days since Amazon Inspector reported a fix as available for a
351
+ * <code>critical</code> severity finding on the AMI. For example, a value of <code>7</code> does
352
+ * not allow an AMI if Amazon Inspector reported such a fix more than 7 days ago.</p>
353
+ * <p>A scanned AMI that has no <code>critical</code> severity finding with a fix available meets
354
+ * this limit. AMIs that Amazon Inspector has not scanned are not allowed.</p>
355
+ * <p>Constraints: Minimum value of 0. Maximum value of 2147483647.</p>
356
+ * @public
357
+ */
358
+ MaxDaysSinceCriticalFixAvailable?: number | undefined;
359
+ }
184
360
  /**
185
361
  * <p>The criteria that are evaluated to determine which AMIs are discoverable and usable in
186
362
  * your account for the specified Amazon Web Services Region.</p>
@@ -299,6 +475,14 @@ export interface ImageCriterionRequest {
299
475
  * @public
300
476
  */
301
477
  ImageWatermarks?: ImageWatermarkFilterRequest[] | undefined;
478
+ /**
479
+ * <p>The Amazon Inspector scan-result criteria that an AMI must meet to be allowed. The
480
+ * criteria can limit the highest finding severity, the number of days since Amazon Inspector
481
+ * last scanned the AMI, and the number of days since Amazon Inspector reported a fix as
482
+ * available.</p>
483
+ * @public
484
+ */
485
+ ScanResultCondition?: ScanResultConditionRequest | undefined;
302
486
  }
303
487
  /**
304
488
  * @public
@@ -0,0 +1,7 @@
1
+ import type { Paginator } from "@smithy/types";
2
+ import { GetImageFindingsCommandInput, GetImageFindingsCommandOutput } from "../commands/GetImageFindingsCommand";
3
+ import type { EC2PaginationConfiguration } from "./Interfaces";
4
+ /**
5
+ * @public
6
+ */
7
+ export declare const paginateGetImageFindings: (config: EC2PaginationConfiguration, input: GetImageFindingsCommandInput, ...rest: any[]) => Paginator<GetImageFindingsCommandOutput>;
@@ -142,6 +142,7 @@ export * from "./GetCapacityManagerMetricDataPaginator";
142
142
  export * from "./GetCapacityManagerMetricDimensionsPaginator";
143
143
  export * from "./GetCapacityManagerMonitoredTagKeysPaginator";
144
144
  export * from "./GetGroupsForCapacityReservationPaginator";
145
+ export * from "./GetImageFindingsPaginator";
145
146
  export * from "./GetInstanceTypesFromInstanceRequirementsPaginator";
146
147
  export * from "./GetIpamAddressHistoryPaginator";
147
148
  export * from "./GetIpamDiscoveredAccountsPaginator";
@@ -1409,6 +1409,8 @@ export declare var GetImageAncestryRequest$: StaticStructureSchema;
1409
1409
  export declare var GetImageAncestryResult$: StaticStructureSchema;
1410
1410
  export declare var GetImageBlockPublicAccessStateRequest$: StaticStructureSchema;
1411
1411
  export declare var GetImageBlockPublicAccessStateResult$: StaticStructureSchema;
1412
+ export declare var GetImageFindingsRequest$: StaticStructureSchema;
1413
+ export declare var GetImageFindingsResult$: StaticStructureSchema;
1412
1414
  export declare var GetInstanceMetadataDefaultsRequest$: StaticStructureSchema;
1413
1415
  export declare var GetInstanceMetadataDefaultsResult$: StaticStructureSchema;
1414
1416
  export declare var GetInstanceTpmEkPubRequest$: StaticStructureSchema;
@@ -1553,6 +1555,7 @@ export declare var ImageAttribute$: StaticStructureSchema;
1553
1555
  export declare var ImageCriterion$: StaticStructureSchema;
1554
1556
  export declare var ImageCriterionRequest$: StaticStructureSchema;
1555
1557
  export declare var ImageDiskContainer$: StaticStructureSchema;
1558
+ export declare var ImageFinding$: StaticStructureSchema;
1556
1559
  export declare var ImageMetadata$: StaticStructureSchema;
1557
1560
  export declare var ImageRecycleBinInfo$: StaticStructureSchema;
1558
1561
  export declare var ImageReference$: StaticStructureSchema;
@@ -2254,6 +2257,9 @@ export declare var RunScheduledInstancesRequest$: StaticStructureSchema;
2254
2257
  export declare var RunScheduledInstancesResult$: StaticStructureSchema;
2255
2258
  export declare var S3ObjectTag$: StaticStructureSchema;
2256
2259
  export declare var S3Storage$: StaticStructureSchema;
2260
+ export declare var ScanResultCondition$: StaticStructureSchema;
2261
+ export declare var ScanResultConditionRequest$: StaticStructureSchema;
2262
+ export declare var ScanResults$: StaticStructureSchema;
2257
2263
  export declare var ScheduledInstance$: StaticStructureSchema;
2258
2264
  export declare var ScheduledInstanceAvailability$: StaticStructureSchema;
2259
2265
  export declare var ScheduledInstanceRecurrence$: StaticStructureSchema;
@@ -3119,6 +3125,7 @@ export declare var GetGroupsForCapacityReservation$: StaticOperationSchema;
3119
3125
  export declare var GetHostReservationPurchasePreview$: StaticOperationSchema;
3120
3126
  export declare var GetImageAncestry$: StaticOperationSchema;
3121
3127
  export declare var GetImageBlockPublicAccessState$: StaticOperationSchema;
3128
+ export declare var GetImageFindings$: StaticOperationSchema;
3122
3129
  export declare var GetInstanceMetadataDefaults$: StaticOperationSchema;
3123
3130
  export declare var GetInstanceTpmEkPub$: StaticOperationSchema;
3124
3131
  export declare var GetInstanceTypesFromInstanceRequirements$: StaticOperationSchema;
@@ -2268,6 +2268,10 @@ import {
2268
2268
  GetImageBlockPublicAccessStateCommandInput,
2269
2269
  GetImageBlockPublicAccessStateCommandOutput,
2270
2270
  } from "./commands/GetImageBlockPublicAccessStateCommand";
2271
+ import {
2272
+ GetImageFindingsCommandInput,
2273
+ GetImageFindingsCommandOutput,
2274
+ } from "./commands/GetImageFindingsCommand";
2271
2275
  import {
2272
2276
  GetInstanceMetadataDefaultsCommandInput,
2273
2277
  GetInstanceMetadataDefaultsCommandOutput,
@@ -10921,6 +10925,19 @@ export interface EC2 {
10921
10925
  options: EC2RequestOptions,
10922
10926
  cb: (err: any, data?: GetImageBlockPublicAccessStateCommandOutput) => void,
10923
10927
  ): void;
10928
+ getImageFindings(
10929
+ args: GetImageFindingsCommandInput,
10930
+ options?: EC2RequestOptions,
10931
+ ): Promise<GetImageFindingsCommandOutput>;
10932
+ getImageFindings(
10933
+ args: GetImageFindingsCommandInput,
10934
+ cb: (err: any, data?: GetImageFindingsCommandOutput) => void,
10935
+ ): void;
10936
+ getImageFindings(
10937
+ args: GetImageFindingsCommandInput,
10938
+ options: EC2RequestOptions,
10939
+ cb: (err: any, data?: GetImageFindingsCommandOutput) => void,
10940
+ ): void;
10924
10941
  getInstanceMetadataDefaults(): Promise<GetInstanceMetadataDefaultsCommandOutput>;
10925
10942
  getInstanceMetadataDefaults(
10926
10943
  args: GetInstanceMetadataDefaultsCommandInput,
@@ -14973,6 +14990,13 @@ export interface EC2 {
14973
14990
  Exclude<keyof PaginationConfiguration, "client">
14974
14991
  >,
14975
14992
  ): Paginator<GetGroupsForCapacityReservationCommandOutput>;
14993
+ paginateGetImageFindings(
14994
+ args: GetImageFindingsCommandInput,
14995
+ paginationConfig?: Pick<
14996
+ PaginationConfiguration,
14997
+ Exclude<keyof PaginationConfiguration, "client">
14998
+ >,
14999
+ ): Paginator<GetImageFindingsCommandOutput>;
14976
15000
  paginateGetInstanceTypesFromInstanceRequirements(
14977
15001
  args: GetInstanceTypesFromInstanceRequirementsCommandInput,
14978
15002
  paginationConfig?: Pick<
@@ -2295,6 +2295,10 @@ import {
2295
2295
  GetImageBlockPublicAccessStateCommandInput,
2296
2296
  GetImageBlockPublicAccessStateCommandOutput,
2297
2297
  } from "./commands/GetImageBlockPublicAccessStateCommand";
2298
+ import {
2299
+ GetImageFindingsCommandInput,
2300
+ GetImageFindingsCommandOutput,
2301
+ } from "./commands/GetImageFindingsCommand";
2298
2302
  import {
2299
2303
  GetInstanceMetadataDefaultsCommandInput,
2300
2304
  GetInstanceMetadataDefaultsCommandOutput,
@@ -3799,6 +3803,7 @@ export type ServiceInputTypes =
3799
3803
  | GetHostReservationPurchasePreviewCommandInput
3800
3804
  | GetImageAncestryCommandInput
3801
3805
  | GetImageBlockPublicAccessStateCommandInput
3806
+ | GetImageFindingsCommandInput
3802
3807
  | GetInstanceMetadataDefaultsCommandInput
3803
3808
  | GetInstanceTpmEkPubCommandInput
3804
3809
  | GetInstanceTypesFromInstanceRequirementsCommandInput
@@ -4609,6 +4614,7 @@ export type ServiceOutputTypes =
4609
4614
  | GetHostReservationPurchasePreviewCommandOutput
4610
4615
  | GetImageAncestryCommandOutput
4611
4616
  | GetImageBlockPublicAccessStateCommandOutput
4617
+ | GetImageFindingsCommandOutput
4612
4618
  | GetInstanceMetadataDefaultsCommandOutput
4613
4619
  | GetInstanceTpmEkPubCommandOutput
4614
4620
  | GetInstanceTypesFromInstanceRequirementsCommandOutput
@@ -1,6 +1,8 @@
1
1
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
- import { DisassociateTransitGatewayPolicyTableRequest } from "../models/models_5";
3
- import { DisassociateTransitGatewayPolicyTableResult } from "../models/models_6";
2
+ import {
3
+ DisassociateTransitGatewayPolicyTableRequest,
4
+ DisassociateTransitGatewayPolicyTableResult,
5
+ } from "../models/models_6";
4
6
  export { __MetadataBearer };
5
7
  export interface DisassociateTransitGatewayPolicyTableCommandInput extends DisassociateTransitGatewayPolicyTableRequest {}
6
8
  export interface DisassociateTransitGatewayPolicyTableCommandOutput
@@ -0,0 +1,38 @@
1
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import { GetImageFindingsRequest, GetImageFindingsResult } from "../models/models_6";
3
+ export { __MetadataBearer };
4
+ export interface GetImageFindingsCommandInput extends GetImageFindingsRequest {}
5
+ export interface GetImageFindingsCommandOutput extends GetImageFindingsResult, __MetadataBearer {}
6
+ declare const GetImageFindingsCommand_base: {
7
+ new (
8
+ input: GetImageFindingsCommandInput,
9
+ ): import("@smithy/core/client").CommandImpl<
10
+ GetImageFindingsCommandInput,
11
+ GetImageFindingsCommandOutput,
12
+ import("..").EC2ClientResolvedConfig,
13
+ import("..").ServiceInputTypes,
14
+ import("..").ServiceOutputTypes
15
+ >;
16
+ new (
17
+ input: GetImageFindingsCommandInput,
18
+ ): import("@smithy/core/client").CommandImpl<
19
+ GetImageFindingsCommandInput,
20
+ GetImageFindingsCommandOutput,
21
+ import("..").EC2ClientResolvedConfig,
22
+ import("..").ServiceInputTypes,
23
+ import("..").ServiceOutputTypes
24
+ >;
25
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
26
+ };
27
+ export declare class GetImageFindingsCommand extends GetImageFindingsCommand_base {
28
+ protected static __types: {
29
+ api: {
30
+ input: GetImageFindingsRequest;
31
+ output: GetImageFindingsResult;
32
+ };
33
+ sdk: {
34
+ input: GetImageFindingsCommandInput;
35
+ output: GetImageFindingsCommandOutput;
36
+ };
37
+ };
38
+ }
@@ -1,8 +1,6 @@
1
1
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
- import {
3
- GetVerifiedAccessGroupPolicyRequest,
4
- GetVerifiedAccessGroupPolicyResult,
5
- } from "../models/models_6";
2
+ import { GetVerifiedAccessGroupPolicyRequest } from "../models/models_6";
3
+ import { GetVerifiedAccessGroupPolicyResult } from "../models/models_7";
6
4
  export { __MetadataBearer };
7
5
  export interface GetVerifiedAccessGroupPolicyCommandInput extends GetVerifiedAccessGroupPolicyRequest {}
8
6
  export interface GetVerifiedAccessGroupPolicyCommandOutput
@@ -2,7 +2,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
2
  import {
3
3
  GetVpcResourcesBlockingEncryptionEnforcementRequest,
4
4
  GetVpcResourcesBlockingEncryptionEnforcementResult,
5
- } from "../models/models_6";
5
+ } from "../models/models_7";
6
6
  export { __MetadataBearer };
7
7
  export interface GetVpcResourcesBlockingEncryptionEnforcementCommandInput extends GetVpcResourcesBlockingEncryptionEnforcementRequest {}
8
8
  export interface GetVpcResourcesBlockingEncryptionEnforcementCommandOutput
@@ -1,6 +1,8 @@
1
1
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
- import { GetVpnConnectionDeviceSampleConfigurationRequest } from "../models/models_6";
3
- import { GetVpnConnectionDeviceSampleConfigurationResult } from "../models/models_7";
2
+ import {
3
+ GetVpnConnectionDeviceSampleConfigurationRequest,
4
+ GetVpnConnectionDeviceSampleConfigurationResult,
5
+ } from "../models/models_7";
4
6
  export { __MetadataBearer };
5
7
  export interface GetVpnConnectionDeviceSampleConfigurationCommandInput extends GetVpnConnectionDeviceSampleConfigurationRequest {}
6
8
  export interface GetVpnConnectionDeviceSampleConfigurationCommandOutput
@@ -1,8 +1,6 @@
1
1
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
- import {
3
- RejectTransitGatewayVpcAttachmentRequest,
4
- RejectTransitGatewayVpcAttachmentResult,
5
- } from "../models/models_7";
2
+ import { RejectTransitGatewayVpcAttachmentRequest } from "../models/models_7";
3
+ import { RejectTransitGatewayVpcAttachmentResult } from "../models/models_8";
6
4
  export { __MetadataBearer };
7
5
  export interface RejectTransitGatewayVpcAttachmentCommandInput extends RejectTransitGatewayVpcAttachmentRequest {}
8
6
  export interface RejectTransitGatewayVpcAttachmentCommandOutput
@@ -2,7 +2,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
2
  import {
3
3
  RejectVpcEndpointConnectionsRequest,
4
4
  RejectVpcEndpointConnectionsResult,
5
- } from "../models/models_7";
5
+ } from "../models/models_8";
6
6
  export { __MetadataBearer };
7
7
  export interface RejectVpcEndpointConnectionsCommandInput extends RejectVpcEndpointConnectionsRequest {}
8
8
  export interface RejectVpcEndpointConnectionsCommandOutput
@@ -2,7 +2,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
2
  import {
3
3
  RejectVpcPeeringConnectionRequest,
4
4
  RejectVpcPeeringConnectionResult,
5
- } from "../models/models_7";
5
+ } from "../models/models_8";
6
6
  export { __MetadataBearer };
7
7
  export interface RejectVpcPeeringConnectionCommandInput extends RejectVpcPeeringConnectionRequest {}
8
8
  export interface RejectVpcPeeringConnectionCommandOutput
@@ -574,6 +574,7 @@ export * from "./GetGroupsForCapacityReservationCommand";
574
574
  export * from "./GetHostReservationPurchasePreviewCommand";
575
575
  export * from "./GetImageAncestryCommand";
576
576
  export * from "./GetImageBlockPublicAccessStateCommand";
577
+ export * from "./GetImageFindingsCommand";
577
578
  export * from "./GetInstanceMetadataDefaultsCommand";
578
579
  export * from "./GetInstanceTpmEkPubCommand";
579
580
  export * from "./GetInstanceTypesFromInstanceRequirementsCommand";
@@ -4065,6 +4065,14 @@ export declare const DeviceType: {
4065
4065
  readonly instance_store: "instance-store";
4066
4066
  };
4067
4067
  export type DeviceType = (typeof DeviceType)[keyof typeof DeviceType];
4068
+ export declare const SeverityLabel: {
4069
+ readonly critical: "critical";
4070
+ readonly high: "high";
4071
+ readonly informational: "informational";
4072
+ readonly low: "low";
4073
+ readonly medium: "medium";
4074
+ };
4075
+ export type SeverityLabel = (typeof SeverityLabel)[keyof typeof SeverityLabel];
4068
4076
  export declare const ImageState: {
4069
4077
  readonly available: "available";
4070
4078
  readonly deregistered: "deregistered";
@@ -94,6 +94,7 @@ import {
94
94
  Scope,
95
95
  SecondaryInterfaceStatus,
96
96
  SecondaryInterfaceType,
97
+ SeverityLabel,
97
98
  SpotAllocationStrategy,
98
99
  SpotInstanceInterruptionBehavior,
99
100
  SqlServerLicenseUsage,
@@ -593,6 +594,15 @@ export interface InstanceTypeSpecification {
593
594
  SupportedInstanceTypes?: InstanceTypeItem[] | undefined;
594
595
  UnsupportedInstanceTypes?: InstanceTypeItem[] | undefined;
595
596
  }
597
+ export interface ScanResults {
598
+ HighestFindingSeverityLabel?: SeverityLabel | undefined;
599
+ FindingScanDate?: Date | undefined;
600
+ InformationalFixAvailableSince?: Date | undefined;
601
+ LowFixAvailableSince?: Date | undefined;
602
+ MediumFixAvailableSince?: Date | undefined;
603
+ HighFixAvailableSince?: Date | undefined;
604
+ CriticalFixAvailableSince?: Date | undefined;
605
+ }
596
606
  export interface Image {
597
607
  PlatformDetails?: string | undefined;
598
608
  UsageOperation?: string | undefined;
@@ -621,6 +631,7 @@ export interface Image {
621
631
  FreeTierEligible?: boolean | undefined;
622
632
  PublicSsmParameterName?: string | undefined;
623
633
  ImageWatermarks?: ImageWatermark[] | undefined;
634
+ ScanResults?: ScanResults | undefined;
624
635
  InstanceTypeSpecification?: InstanceTypeSpecification | undefined;
625
636
  ImageId?: string | undefined;
626
637
  ImageLocation?: string | undefined;
@@ -2139,14 +2150,3 @@ export interface ReservedInstancesModificationResult {
2139
2150
  export interface ReservedInstancesId {
2140
2151
  ReservedInstancesId?: string | undefined;
2141
2152
  }
2142
- export interface ReservedInstancesModification {
2143
- ClientToken?: string | undefined;
2144
- CreateDate?: Date | undefined;
2145
- EffectiveDate?: Date | undefined;
2146
- ModificationResults?: ReservedInstancesModificationResult[] | undefined;
2147
- ReservedInstancesIds?: ReservedInstancesId[] | undefined;
2148
- ReservedInstancesModificationId?: string | undefined;
2149
- Status?: string | undefined;
2150
- StatusMessage?: string | undefined;
2151
- UpdateDate?: Date | undefined;
2152
- }
@@ -155,8 +155,20 @@ import {
155
155
  ProductCode,
156
156
  RecurringCharge,
157
157
  RegisteredInstance,
158
- ReservedInstancesModification,
158
+ ReservedInstancesId,
159
+ ReservedInstancesModificationResult,
159
160
  } from "./models_4";
161
+ export interface ReservedInstancesModification {
162
+ ClientToken?: string | undefined;
163
+ CreateDate?: Date | undefined;
164
+ EffectiveDate?: Date | undefined;
165
+ ModificationResults?: ReservedInstancesModificationResult[] | undefined;
166
+ ReservedInstancesIds?: ReservedInstancesId[] | undefined;
167
+ ReservedInstancesModificationId?: string | undefined;
168
+ Status?: string | undefined;
169
+ StatusMessage?: string | undefined;
170
+ UpdateDate?: Date | undefined;
171
+ }
160
172
  export interface DescribeReservedInstancesModificationsResult {
161
173
  NextToken?: string | undefined;
162
174
  ReservedInstancesModifications?: ReservedInstancesModification[] | undefined;
@@ -1902,8 +1914,3 @@ export interface DisassociateTransitGatewayMulticastDomainRequest {
1902
1914
  export interface DisassociateTransitGatewayMulticastDomainResult {
1903
1915
  Associations?: TransitGatewayMulticastDomainAssociations | undefined;
1904
1916
  }
1905
- export interface DisassociateTransitGatewayPolicyTableRequest {
1906
- TransitGatewayPolicyTableId: string | undefined;
1907
- TransitGatewayAttachmentId: string | undefined;
1908
- DryRun?: boolean | undefined;
1909
- }
@@ -59,6 +59,7 @@ import {
59
59
  ReservationType,
60
60
  RouteServerRouteInstallationStatus,
61
61
  RouteServerRouteStatus,
62
+ SeverityLabel,
62
63
  SnapshotBlockPublicAccessState,
63
64
  SSEType,
64
65
  StatisticType,
@@ -119,6 +120,11 @@ import {
119
120
  TransitGatewayPropagation,
120
121
  UnsuccessfulSuppressionResponseObject,
121
122
  } from "./models_5";
123
+ export interface DisassociateTransitGatewayPolicyTableRequest {
124
+ TransitGatewayPolicyTableId: string | undefined;
125
+ TransitGatewayAttachmentId: string | undefined;
126
+ DryRun?: boolean | undefined;
127
+ }
122
128
  export interface DisassociateTransitGatewayPolicyTableResult {
123
129
  Association?: TransitGatewayPolicyTableAssociation | undefined;
124
130
  }
@@ -493,6 +499,15 @@ export interface ImageWatermarkFilterResponse {
493
499
  MaximumDaysSinceSourceImageCreated?: number | undefined;
494
500
  MaximumDaysSinceWatermarkCreated?: number | undefined;
495
501
  }
502
+ export interface ScanResultCondition {
503
+ MaxDaysSinceLastFindingScan?: number | undefined;
504
+ MaximumSeverityLabel?: SeverityLabel | undefined;
505
+ MaxDaysSinceInformationalFixAvailable?: number | undefined;
506
+ MaxDaysSinceLowFixAvailable?: number | undefined;
507
+ MaxDaysSinceMediumFixAvailable?: number | undefined;
508
+ MaxDaysSinceHighFixAvailable?: number | undefined;
509
+ MaxDaysSinceCriticalFixAvailable?: number | undefined;
510
+ }
496
511
  export interface ImageCriterion {
497
512
  ImageProviders?: string[] | undefined;
498
513
  MarketplaceProductCodes?: string[] | undefined;
@@ -500,6 +515,7 @@ export interface ImageCriterion {
500
515
  DeprecationTimeCondition?: DeprecationTimeCondition | undefined;
501
516
  CreationDateCondition?: CreationDateCondition | undefined;
502
517
  ImageWatermarks?: ImageWatermarkFilterResponse[] | undefined;
518
+ ScanResultCondition?: ScanResultCondition | undefined;
503
519
  }
504
520
  export interface GetAllowedImagesSettingsResult {
505
521
  State?: string | undefined;
@@ -870,6 +886,26 @@ export interface GetImageBlockPublicAccessStateResult {
870
886
  ImageBlockPublicAccessState?: string | undefined;
871
887
  ManagedBy?: ManagedBy | undefined;
872
888
  }
889
+ export interface GetImageFindingsRequest {
890
+ ImageId: string | undefined;
891
+ MaxResults?: number | undefined;
892
+ NextToken?: string | undefined;
893
+ DryRun?: boolean | undefined;
894
+ }
895
+ export interface ImageFinding {
896
+ FixAvailable?: boolean | undefined;
897
+ Score?: number | undefined;
898
+ FirstObservedAt?: Date | undefined;
899
+ UpdatedAt?: Date | undefined;
900
+ Title?: string | undefined;
901
+ Paths?: string[] | undefined;
902
+ SeverityLabel?: SeverityLabel | undefined;
903
+ SnapshotId?: string | undefined;
904
+ }
905
+ export interface GetImageFindingsResult {
906
+ ImageFindings?: ImageFinding[] | undefined;
907
+ NextToken?: string | undefined;
908
+ }
873
909
  export interface GetInstanceMetadataDefaultsRequest {
874
910
  DryRun?: boolean | undefined;
875
911
  }
@@ -1714,30 +1750,3 @@ export interface GetVerifiedAccessGroupPolicyRequest {
1714
1750
  VerifiedAccessGroupId: string | undefined;
1715
1751
  DryRun?: boolean | undefined;
1716
1752
  }
1717
- export interface GetVerifiedAccessGroupPolicyResult {
1718
- PolicyEnabled?: boolean | undefined;
1719
- PolicyDocument?: string | undefined;
1720
- }
1721
- export interface GetVpcResourcesBlockingEncryptionEnforcementRequest {
1722
- VpcId: string | undefined;
1723
- MaxResults?: number | undefined;
1724
- NextToken?: string | undefined;
1725
- DryRun?: boolean | undefined;
1726
- }
1727
- export interface VpcEncryptionNonCompliantResource {
1728
- Id?: string | undefined;
1729
- Type?: string | undefined;
1730
- Description?: string | undefined;
1731
- IsExcludable?: boolean | undefined;
1732
- }
1733
- export interface GetVpcResourcesBlockingEncryptionEnforcementResult {
1734
- NonCompliantResources?: VpcEncryptionNonCompliantResource[] | undefined;
1735
- NextToken?: string | undefined;
1736
- }
1737
- export interface GetVpnConnectionDeviceSampleConfigurationRequest {
1738
- VpnConnectionId: string | undefined;
1739
- VpnConnectionDeviceTypeId: string | undefined;
1740
- InternetKeyExchangeVersion?: string | undefined;
1741
- SampleType?: string | undefined;
1742
- DryRun?: boolean | undefined;
1743
- }