@aws-sdk/client-ec2 3.425.0 → 3.428.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/EC2.js +4 -0
  3. package/dist-cjs/commands/DisableImageCommand.js +51 -0
  4. package/dist-cjs/commands/EnableImageCommand.js +51 -0
  5. package/dist-cjs/commands/index.js +2 -0
  6. package/dist-cjs/models/models_0.js +1 -0
  7. package/dist-cjs/models/models_3.js +1 -0
  8. package/dist-cjs/protocols/Aws_ec2.js +133 -17
  9. package/dist-es/EC2.js +4 -0
  10. package/dist-es/commands/DisableImageCommand.js +47 -0
  11. package/dist-es/commands/EnableImageCommand.js +47 -0
  12. package/dist-es/commands/index.js +2 -0
  13. package/dist-es/models/models_0.js +1 -0
  14. package/dist-es/models/models_3.js +1 -0
  15. package/dist-es/protocols/Aws_ec2.js +112 -0
  16. package/dist-types/EC2.d.ts +14 -0
  17. package/dist-types/EC2Client.d.ts +4 -2
  18. package/dist-types/commands/AssociateNatGatewayAddressCommand.d.ts +4 -0
  19. package/dist-types/commands/CreateCapacityReservationCommand.d.ts +2 -2
  20. package/dist-types/commands/CreateCapacityReservationFleetCommand.d.ts +2 -2
  21. package/dist-types/commands/CreateNatGatewayCommand.d.ts +4 -0
  22. package/dist-types/commands/DeleteVpcCommand.d.ts +1 -1
  23. package/dist-types/commands/DescribeCapacityReservationFleetsCommand.d.ts +1 -1
  24. package/dist-types/commands/DescribeCapacityReservationsCommand.d.ts +1 -1
  25. package/dist-types/commands/DescribeImagesCommand.d.ts +3 -1
  26. package/dist-types/commands/DescribeNetworkInterfacesCommand.d.ts +4 -0
  27. package/dist-types/commands/DisableImageCommand.d.ts +84 -0
  28. package/dist-types/commands/EnableImageCommand.d.ts +81 -0
  29. package/dist-types/commands/GetTransitGatewayRouteTablePropagationsCommand.d.ts +2 -1
  30. package/dist-types/commands/GetVerifiedAccessEndpointPolicyCommand.d.ts +1 -1
  31. package/dist-types/commands/index.d.ts +2 -0
  32. package/dist-types/models/models_0.d.ts +3 -3
  33. package/dist-types/models/models_1.d.ts +48 -7
  34. package/dist-types/models/models_3.d.ts +147 -28
  35. package/dist-types/models/models_4.d.ts +56 -35
  36. package/dist-types/models/models_5.d.ts +54 -78
  37. package/dist-types/models/models_6.d.ts +86 -105
  38. package/dist-types/models/models_7.d.ts +102 -2
  39. package/dist-types/protocols/Aws_ec2.d.ts +18 -0
  40. package/dist-types/ts3.4/EC2.d.ts +34 -0
  41. package/dist-types/ts3.4/EC2Client.d.ts +12 -0
  42. package/dist-types/ts3.4/commands/DisableImageCommand.d.ts +35 -0
  43. package/dist-types/ts3.4/commands/EnableImageCommand.d.ts +35 -0
  44. package/dist-types/ts3.4/commands/GetTransitGatewayRouteTablePropagationsCommand.d.ts +2 -4
  45. package/dist-types/ts3.4/commands/GetVerifiedAccessEndpointPolicyCommand.d.ts +1 -1
  46. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  47. package/dist-types/ts3.4/models/models_0.d.ts +1 -0
  48. package/dist-types/ts3.4/models/models_3.d.ts +3 -0
  49. package/dist-types/ts3.4/models/models_5.d.ts +14 -19
  50. package/dist-types/ts3.4/models/models_6.d.ts +21 -18
  51. package/dist-types/ts3.4/models/models_7.d.ts +20 -3
  52. package/dist-types/ts3.4/protocols/Aws_ec2.d.ts +24 -0
  53. package/package.json +33 -33
@@ -2777,6 +2777,33 @@ export interface DisableFastSnapshotRestoresResult {
2777
2777
  */
2778
2778
  Unsuccessful?: DisableFastSnapshotRestoreErrorItem[];
2779
2779
  }
2780
+ /**
2781
+ * @public
2782
+ */
2783
+ export interface DisableImageRequest {
2784
+ /**
2785
+ * @public
2786
+ * <p>The ID of the AMI.</p>
2787
+ */
2788
+ ImageId: string | undefined;
2789
+ /**
2790
+ * @public
2791
+ * <p>Checks whether you have the required permissions for the action, without actually making the request,
2792
+ * and provides an error response. If you have the required permissions, the error response is
2793
+ * <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>
2794
+ */
2795
+ DryRun?: boolean;
2796
+ }
2797
+ /**
2798
+ * @public
2799
+ */
2800
+ export interface DisableImageResult {
2801
+ /**
2802
+ * @public
2803
+ * <p>Returns <code>true</code> if the request succeeds; otherwise, it returns an error.</p>
2804
+ */
2805
+ Return?: boolean;
2806
+ }
2780
2807
  /**
2781
2808
  * @public
2782
2809
  */
@@ -3877,6 +3904,33 @@ export interface EnableFastSnapshotRestoresResult {
3877
3904
  */
3878
3905
  Unsuccessful?: EnableFastSnapshotRestoreErrorItem[];
3879
3906
  }
3907
+ /**
3908
+ * @public
3909
+ */
3910
+ export interface EnableImageRequest {
3911
+ /**
3912
+ * @public
3913
+ * <p>The ID of the AMI.</p>
3914
+ */
3915
+ ImageId: string | undefined;
3916
+ /**
3917
+ * @public
3918
+ * <p>Checks whether you have the required permissions for the action, without actually making the request,
3919
+ * and provides an error response. If you have the required permissions, the error response is
3920
+ * <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>
3921
+ */
3922
+ DryRun?: boolean;
3923
+ }
3924
+ /**
3925
+ * @public
3926
+ */
3927
+ export interface EnableImageResult {
3928
+ /**
3929
+ * @public
3930
+ * <p>Returns <code>true</code> if the request succeeds; otherwise, it returns an error.</p>
3931
+ */
3932
+ Return?: boolean;
3933
+ }
3880
3934
  /**
3881
3935
  * @public
3882
3936
  * @enum
@@ -7409,84 +7463,6 @@ export interface GetTransitGatewayRouteTablePropagationsRequest {
7409
7463
  */
7410
7464
  DryRun?: boolean;
7411
7465
  }
7412
- /**
7413
- * @public
7414
- * <p>Describes a route table propagation.</p>
7415
- */
7416
- export interface TransitGatewayRouteTablePropagation {
7417
- /**
7418
- * @public
7419
- * <p>The ID of the attachment.</p>
7420
- */
7421
- TransitGatewayAttachmentId?: string;
7422
- /**
7423
- * @public
7424
- * <p>The ID of the resource.</p>
7425
- */
7426
- ResourceId?: string;
7427
- /**
7428
- * @public
7429
- * <p>The type of resource. Note that the <code>tgw-peering</code> resource type has been deprecated.</p>
7430
- */
7431
- ResourceType?: TransitGatewayAttachmentResourceType | string;
7432
- /**
7433
- * @public
7434
- * <p>The state of the resource.</p>
7435
- */
7436
- State?: TransitGatewayPropagationState | string;
7437
- /**
7438
- * @public
7439
- * <p>The ID of the transit gateway route table announcement.</p>
7440
- */
7441
- TransitGatewayRouteTableAnnouncementId?: string;
7442
- }
7443
- /**
7444
- * @public
7445
- */
7446
- export interface GetTransitGatewayRouteTablePropagationsResult {
7447
- /**
7448
- * @public
7449
- * <p>Information about the route table propagations.</p>
7450
- */
7451
- TransitGatewayRouteTablePropagations?: TransitGatewayRouteTablePropagation[];
7452
- /**
7453
- * @public
7454
- * <p>The token to use to retrieve the next page of results. This value is <code>null</code> when there are no more results to return.</p>
7455
- */
7456
- NextToken?: string;
7457
- }
7458
- /**
7459
- * @public
7460
- */
7461
- export interface GetVerifiedAccessEndpointPolicyRequest {
7462
- /**
7463
- * @public
7464
- * <p>The ID of the Verified Access endpoint.</p>
7465
- */
7466
- VerifiedAccessEndpointId: string | undefined;
7467
- /**
7468
- * @public
7469
- * <p>Checks whether you have the required permissions for the action, without actually making the request,
7470
- * and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>.
7471
- * Otherwise, it is <code>UnauthorizedOperation</code>.</p>
7472
- */
7473
- DryRun?: boolean;
7474
- }
7475
- /**
7476
- * @public
7477
- */
7478
- export interface GetVerifiedAccessEndpointPolicyResult {
7479
- /**
7480
- * @public
7481
- * <p>The status of the Verified Access policy.</p>
7482
- */
7483
- PolicyEnabled?: boolean;
7484
- /**
7485
- * @public
7486
- * <p>The Verified Access policy document.</p>
7487
- */
7488
- PolicyDocument?: string;
7489
- }
7490
7466
  /**
7491
7467
  * @internal
7492
7468
  */
@@ -1,9 +1,87 @@
1
- import { _InstanceType, AddedPrincipal, AddIpamOperatingRegion, AddPrefixListEntry, AddressAttribute, AddressAttributeName, Affinity, ApplianceModeSupportValue, AutoPlacement, ByoipCidr, ClientVpnAuthorizationRuleStatus, CurrencyCodeValues, DnsSupportValue, EnaSrdSpecification, EndDateType, HostMaintenance, HostRecovery, IamInstanceProfileAssociation, IamInstanceProfileSpecification, InstanceEventWindow, IpPermission, Ipv6SupportValue, PortRange, RouteTableAssociationState, Tag, TagSpecification, TransitGatewayMulticastDomainAssociations, TransitGatewayPeeringAttachment, TransitGatewayVpcAttachment, UnsuccessfulItem, VerifiedAccessInstance, VerifiedAccessSseSpecificationResponse, VerifiedAccessTrustProvider } from "./models_0";
2
- import { AmdSevSnpSpecification, AttributeValue, BlockDeviceMapping, CapacityReservationPreference, CapacityReservationTarget, ClientConnectOptions, ClientLoginBannerOptions, ConnectionLogOptions, DiskImageFormat, FleetExcessCapacityTerminationPolicy, FleetLaunchTemplateConfigRequest, HostnameType, IcmpTypeCode, InstanceEventWindowTimeRangeRequest, InstanceInterruptionBehavior, Ipam, IpamPool, IpamResourceDiscovery, IpamScope, LaunchTemplate, LocalGatewayRoute, ManagedPrefixList, MarketType, Placement, PlatformValues, RequestIpamResourceTag, RuleAction, SelfServicePortal, ShutdownBehavior, SpotInstanceType, TargetCapacitySpecificationRequest, VolumeType } from "./models_1";
1
+ import { _InstanceType, AddedPrincipal, AddIpamOperatingRegion, AddPrefixListEntry, AddressAttribute, AddressAttributeName, Affinity, ApplianceModeSupportValue, AutoPlacement, ByoipCidr, ClientVpnAuthorizationRuleStatus, CurrencyCodeValues, DnsSupportValue, EnaSrdSpecification, EndDateType, HostMaintenance, HostRecovery, IamInstanceProfileAssociation, IamInstanceProfileSpecification, InstanceEventWindow, IpPermission, Ipv6SupportValue, PortRange, RouteTableAssociationState, Tag, TagSpecification, TransitGatewayAttachmentResourceType, TransitGatewayMulticastDomainAssociations, TransitGatewayPeeringAttachment, TransitGatewayVpcAttachment, UnsuccessfulItem, VerifiedAccessInstance, VerifiedAccessSseSpecificationResponse, VerifiedAccessTrustProvider } from "./models_0";
2
+ import { AmdSevSnpSpecification, AttributeValue, BlockDeviceMapping, CapacityReservationPreference, CapacityReservationTarget, ClientConnectOptions, ClientLoginBannerOptions, ConnectionLogOptions, DiskImageFormat, FleetExcessCapacityTerminationPolicy, FleetLaunchTemplateConfigRequest, HostnameType, IcmpTypeCode, InstanceEventWindowTimeRangeRequest, InstanceInterruptionBehavior, Ipam, IpamPool, IpamResourceDiscovery, IpamScope, LaunchTemplate, LocalGatewayRoute, ManagedPrefixList, Placement, PlatformValues, RequestIpamResourceTag, RuleAction, SelfServicePortal, ShutdownBehavior, SpotInstanceType, TargetCapacitySpecificationRequest, VolumeType } from "./models_1";
3
3
  import { AutoAcceptSharedAttachmentsValue, DefaultRouteTableAssociationValue, DefaultRouteTablePropagationValue, DnsOptionsSpecification, IKEVersionsRequestListValue, IpAddressType, PayerResponsibility, Phase1DHGroupNumbersRequestListValue, Phase1EncryptionAlgorithmsRequestListValue, Phase1IntegrityAlgorithmsRequestListValue, Phase2DHGroupNumbersRequestListValue, Phase2EncryptionAlgorithmsRequestListValue, Phase2IntegrityAlgorithmsRequestListValue, SnapshotState, SSEType, SubnetConfiguration, TrafficDirection, TrafficMirrorFilter, TrafficMirrorFilterRule, TrafficMirrorNetworkService, TrafficMirrorPortRangeRequest, TrafficMirrorRuleAction, TrafficMirrorSession, TransitGateway, TransitGatewayPrefixListReference, TransitGatewayRoute, VerifiedAccessEndpoint, VerifiedAccessEndpointProtocol, VerifiedAccessGroup, VerifiedAccessSseSpecificationRequest, VpnConnection, VpnEcmpSupportValue, VpnTunnelLogOptionsSpecification } from "./models_2";
4
4
  import { ArchitectureValues, AttributeBooleanValue, BootModeValues, ConversionTask, FpgaImageAttribute, FpgaImageAttributeName, ImdsSupportValues, ImportImageLicenseConfigurationResponse, InstanceAttributeName, InstanceTagNotificationAttribute, IpamPoolCidr, LaunchPermission, PermissionGroup, SnapshotDetail, SnapshotTaskDetail, TpmSupportValues } from "./models_3";
5
5
  import { CreateVolumePermission, ExcessCapacityTerminationPolicy, HttpTokensState, InstanceAutoRecoveryState, InstanceMetadataEndpointState, InstanceMetadataOptionsResponse, InstanceMetadataProtocolState, InstanceMetadataTagsState, InstanceNetworkInterfaceSpecification, InstanceStatusEvent, LaunchTemplateConfig, Monitoring, PublicIpv4PoolRange, ReservedInstancesConfiguration, RunInstancesMonitoringEnabled, ScheduledInstance, SnapshotAttributeName, SpotFleetRequestConfigData, SpotInstanceRequest, SpotPlacement } from "./models_4";
6
- import { InstanceFamilyCreditSpecification, IpamResourceCidr, Purchase, UnlimitedSupportedInstanceFamily, VerifiedAccessInstanceLoggingConfiguration, VolumeModification } from "./models_5";
6
+ import { InstanceFamilyCreditSpecification, IpamResourceCidr, Purchase, TransitGatewayPropagationState, UnlimitedSupportedInstanceFamily, VerifiedAccessInstanceLoggingConfiguration, VolumeModification } from "./models_5";
7
+ /**
8
+ * @public
9
+ * <p>Describes a route table propagation.</p>
10
+ */
11
+ export interface TransitGatewayRouteTablePropagation {
12
+ /**
13
+ * @public
14
+ * <p>The ID of the attachment.</p>
15
+ */
16
+ TransitGatewayAttachmentId?: string;
17
+ /**
18
+ * @public
19
+ * <p>The ID of the resource.</p>
20
+ */
21
+ ResourceId?: string;
22
+ /**
23
+ * @public
24
+ * <p>The type of resource. Note that the <code>tgw-peering</code> resource type has been deprecated.</p>
25
+ */
26
+ ResourceType?: TransitGatewayAttachmentResourceType | string;
27
+ /**
28
+ * @public
29
+ * <p>The state of the resource.</p>
30
+ */
31
+ State?: TransitGatewayPropagationState | string;
32
+ /**
33
+ * @public
34
+ * <p>The ID of the transit gateway route table announcement.</p>
35
+ */
36
+ TransitGatewayRouteTableAnnouncementId?: string;
37
+ }
38
+ /**
39
+ * @public
40
+ */
41
+ export interface GetTransitGatewayRouteTablePropagationsResult {
42
+ /**
43
+ * @public
44
+ * <p>Information about the route table propagations.</p>
45
+ */
46
+ TransitGatewayRouteTablePropagations?: TransitGatewayRouteTablePropagation[];
47
+ /**
48
+ * @public
49
+ * <p>The token to use to retrieve the next page of results. This value is <code>null</code> when there are no more results to return.</p>
50
+ */
51
+ NextToken?: string;
52
+ }
53
+ /**
54
+ * @public
55
+ */
56
+ export interface GetVerifiedAccessEndpointPolicyRequest {
57
+ /**
58
+ * @public
59
+ * <p>The ID of the Verified Access endpoint.</p>
60
+ */
61
+ VerifiedAccessEndpointId: string | undefined;
62
+ /**
63
+ * @public
64
+ * <p>Checks whether you have the required permissions for the action, without actually making the request,
65
+ * and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>.
66
+ * Otherwise, it is <code>UnauthorizedOperation</code>.</p>
67
+ */
68
+ DryRun?: boolean;
69
+ }
70
+ /**
71
+ * @public
72
+ */
73
+ export interface GetVerifiedAccessEndpointPolicyResult {
74
+ /**
75
+ * @public
76
+ * <p>The status of the Verified Access policy.</p>
77
+ */
78
+ PolicyEnabled?: boolean;
79
+ /**
80
+ * @public
81
+ * <p>The Verified Access policy document.</p>
82
+ */
83
+ PolicyDocument?: string;
84
+ }
7
85
  /**
8
86
  * @public
9
87
  */
@@ -483,6 +561,11 @@ export interface ImportImageRequest {
483
561
  /**
484
562
  * @public
485
563
  * <p>The boot mode of the virtual machine.</p>
564
+ * <note>
565
+ * <p>The <code>uefi-preferred</code> boot mode isn't supported for importing images. For more
566
+ * information, see <a href="https://docs.aws.amazon.com/vm-import/latest/userguide/prerequisites.html#vmimport-boot-modes">Boot modes</a> in
567
+ * the <i>VM Import/Export User Guide</i>.</p>
568
+ * </note>
486
569
  */
487
570
  BootMode?: BootModeValues | string;
488
571
  }
@@ -6456,8 +6539,6 @@ export interface ReleaseAddressRequest {
6456
6539
  * <p>The set of Availability Zones, Local Zones, or Wavelength Zones from which Amazon Web Services advertises
6457
6540
  * IP addresses.</p>
6458
6541
  * <p>If you provide an incorrect network border group, you receive an <code>InvalidAddress.NotFound</code> error.</p>
6459
- * <p>You cannot use a network border group with EC2 Classic. If you attempt this operation on EC2 classic, you
6460
- * receive an <code>InvalidParameterCombination</code> error.</p>
6461
6542
  */
6462
6543
  NetworkBorderGroup?: string;
6463
6544
  /**
@@ -7926,106 +8007,6 @@ export interface ElasticInferenceAccelerator {
7926
8007
  */
7927
8008
  Count?: number;
7928
8009
  }
7929
- /**
7930
- * @public
7931
- * <p>Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves. For
7932
- * more information, see <a href="https://docs.aws.amazon.com/enclaves/latest/user/nitro-enclave.html"> What is Amazon Web Services Nitro
7933
- * Enclaves?</a> in the <i>Amazon Web Services Nitro Enclaves User
7934
- * Guide</i>.</p>
7935
- */
7936
- export interface EnclaveOptionsRequest {
7937
- /**
7938
- * @public
7939
- * <p>To enable the instance for Amazon Web Services Nitro Enclaves, set this parameter to
7940
- * <code>true</code>.</p>
7941
- */
7942
- Enabled?: boolean;
7943
- }
7944
- /**
7945
- * @public
7946
- * <p>Indicates whether your instance is configured for hibernation. This parameter is valid
7947
- * only if the instance meets the <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/hibernating-prerequisites.html">hibernation
7948
- * prerequisites</a>. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html">Hibernate your instance</a> in the
7949
- * <i>Amazon EC2 User Guide</i>.</p>
7950
- */
7951
- export interface HibernationOptionsRequest {
7952
- /**
7953
- * @public
7954
- * <p>Set to <code>true</code> to enable your instance for hibernation.</p>
7955
- * <p>Default: <code>false</code>
7956
- * </p>
7957
- */
7958
- Configured?: boolean;
7959
- }
7960
- /**
7961
- * @public
7962
- * <p>The options for Spot Instances.</p>
7963
- */
7964
- export interface SpotMarketOptions {
7965
- /**
7966
- * @public
7967
- * <p>The maximum hourly price that you're willing to pay for a Spot Instance. We do not
7968
- * recommend using this parameter because it can lead to increased interruptions. If you do
7969
- * not specify this parameter, you will pay the current Spot price.</p>
7970
- * <important>
7971
- * <p>If you specify a maximum price, your Spot Instances will be interrupted more
7972
- * frequently than if you do not specify this parameter.</p>
7973
- * </important>
7974
- */
7975
- MaxPrice?: string;
7976
- /**
7977
- * @public
7978
- * <p>The Spot Instance request type. For <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances">RunInstances</a>, persistent
7979
- * Spot Instance requests are only supported when the instance interruption behavior is
7980
- * either <code>hibernate</code> or <code>stop</code>.</p>
7981
- */
7982
- SpotInstanceType?: SpotInstanceType | string;
7983
- /**
7984
- * @public
7985
- * <p>Deprecated.</p>
7986
- */
7987
- BlockDurationMinutes?: number;
7988
- /**
7989
- * @public
7990
- * <p>The end date of the request, in UTC format
7991
- * (<i>YYYY</i>-<i>MM</i>-<i>DD</i>T<i>HH</i>:<i>MM</i>:<i>SS</i>Z).
7992
- * Supported only for persistent requests.</p>
7993
- * <ul>
7994
- * <li>
7995
- * <p>For a persistent request, the request remains active until the
7996
- * <code>ValidUntil</code> date and time is reached. Otherwise, the request
7997
- * remains active until you cancel it.</p>
7998
- * </li>
7999
- * <li>
8000
- * <p>For a one-time request, <code>ValidUntil</code> is not supported. The request
8001
- * remains active until all instances launch or you cancel the request.</p>
8002
- * </li>
8003
- * </ul>
8004
- */
8005
- ValidUntil?: Date;
8006
- /**
8007
- * @public
8008
- * <p>The behavior when a Spot Instance is interrupted. The default is
8009
- * <code>terminate</code>.</p>
8010
- */
8011
- InstanceInterruptionBehavior?: InstanceInterruptionBehavior | string;
8012
- }
8013
- /**
8014
- * @public
8015
- * <p>Describes the market (purchasing) option for the instances.</p>
8016
- */
8017
- export interface InstanceMarketOptionsRequest {
8018
- /**
8019
- * @public
8020
- * <p>The market type.</p>
8021
- */
8022
- MarketType?: MarketType | string;
8023
- /**
8024
- * @public
8025
- * <p>The options for Spot Instances.</p>
8026
- */
8027
- SpotOptions?: SpotMarketOptions;
8028
- }
8029
8010
  /**
8030
8011
  * @internal
8031
8012
  */
@@ -1,9 +1,109 @@
1
1
  import { _InstanceType, ByoipCidr, IamInstanceProfileSpecification, IpPermission, NatGatewayAddress, TagSpecification, TransitGatewayAttachmentResourceType } from "./models_0";
2
- import { BlockDeviceMapping, CreditSpecificationRequest, ElasticGpuSpecification, HostnameType, InstanceIpv6Address, LocalGatewayRoute, Placement, ShutdownBehavior } from "./models_1";
2
+ import { BlockDeviceMapping, CreditSpecificationRequest, ElasticGpuSpecification, HostnameType, InstanceInterruptionBehavior, InstanceIpv6Address, LocalGatewayRoute, MarketType, Placement, ShutdownBehavior, SpotInstanceType } from "./models_1";
3
3
  import { TransitGatewayRoute } from "./models_2";
4
4
  import { ClientVpnConnectionStatus, Filter } from "./models_3";
5
5
  import { HttpTokensState, InstanceAutoRecoveryState, InstanceMetadataEndpointState, InstanceMetadataProtocolState, InstanceMetadataTagsState, InstanceNetworkInterfaceSpecification, InstanceState, NetworkInsightsAccessScopeAnalysis, NetworkInsightsAnalysis, RunInstancesMonitoringEnabled } from "./models_4";
6
- import { CapacityReservationSpecification, CpuOptionsRequest, ElasticInferenceAccelerator, EnclaveOptionsRequest, HibernationOptionsRequest, InstanceMarketOptionsRequest, InstanceMonitoring } from "./models_6";
6
+ import { CapacityReservationSpecification, CpuOptionsRequest, ElasticInferenceAccelerator, InstanceMonitoring } from "./models_6";
7
+ /**
8
+ * @public
9
+ * <p>Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves. For
10
+ * more information, see <a href="https://docs.aws.amazon.com/enclaves/latest/user/nitro-enclave.html"> What is Amazon Web Services Nitro
11
+ * Enclaves?</a> in the <i>Amazon Web Services Nitro Enclaves User
12
+ * Guide</i>.</p>
13
+ */
14
+ export interface EnclaveOptionsRequest {
15
+ /**
16
+ * @public
17
+ * <p>To enable the instance for Amazon Web Services Nitro Enclaves, set this parameter to
18
+ * <code>true</code>.</p>
19
+ */
20
+ Enabled?: boolean;
21
+ }
22
+ /**
23
+ * @public
24
+ * <p>Indicates whether your instance is configured for hibernation. This parameter is valid
25
+ * only if the instance meets the <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/hibernating-prerequisites.html">hibernation
26
+ * prerequisites</a>. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Hibernate.html">Hibernate your instance</a> in the
27
+ * <i>Amazon EC2 User Guide</i>.</p>
28
+ */
29
+ export interface HibernationOptionsRequest {
30
+ /**
31
+ * @public
32
+ * <p>Set to <code>true</code> to enable your instance for hibernation.</p>
33
+ * <p>Default: <code>false</code>
34
+ * </p>
35
+ */
36
+ Configured?: boolean;
37
+ }
38
+ /**
39
+ * @public
40
+ * <p>The options for Spot Instances.</p>
41
+ */
42
+ export interface SpotMarketOptions {
43
+ /**
44
+ * @public
45
+ * <p>The maximum hourly price that you're willing to pay for a Spot Instance. We do not
46
+ * recommend using this parameter because it can lead to increased interruptions. If you do
47
+ * not specify this parameter, you will pay the current Spot price.</p>
48
+ * <important>
49
+ * <p>If you specify a maximum price, your Spot Instances will be interrupted more
50
+ * frequently than if you do not specify this parameter.</p>
51
+ * </important>
52
+ */
53
+ MaxPrice?: string;
54
+ /**
55
+ * @public
56
+ * <p>The Spot Instance request type. For <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances">RunInstances</a>, persistent
57
+ * Spot Instance requests are only supported when the instance interruption behavior is
58
+ * either <code>hibernate</code> or <code>stop</code>.</p>
59
+ */
60
+ SpotInstanceType?: SpotInstanceType | string;
61
+ /**
62
+ * @public
63
+ * <p>Deprecated.</p>
64
+ */
65
+ BlockDurationMinutes?: number;
66
+ /**
67
+ * @public
68
+ * <p>The end date of the request, in UTC format
69
+ * (<i>YYYY</i>-<i>MM</i>-<i>DD</i>T<i>HH</i>:<i>MM</i>:<i>SS</i>Z).
70
+ * Supported only for persistent requests.</p>
71
+ * <ul>
72
+ * <li>
73
+ * <p>For a persistent request, the request remains active until the
74
+ * <code>ValidUntil</code> date and time is reached. Otherwise, the request
75
+ * remains active until you cancel it.</p>
76
+ * </li>
77
+ * <li>
78
+ * <p>For a one-time request, <code>ValidUntil</code> is not supported. The request
79
+ * remains active until all instances launch or you cancel the request.</p>
80
+ * </li>
81
+ * </ul>
82
+ */
83
+ ValidUntil?: Date;
84
+ /**
85
+ * @public
86
+ * <p>The behavior when a Spot Instance is interrupted. The default is
87
+ * <code>terminate</code>.</p>
88
+ */
89
+ InstanceInterruptionBehavior?: InstanceInterruptionBehavior | string;
90
+ }
91
+ /**
92
+ * @public
93
+ * <p>Describes the market (purchasing) option for the instances.</p>
94
+ */
95
+ export interface InstanceMarketOptionsRequest {
96
+ /**
97
+ * @public
98
+ * <p>The market type.</p>
99
+ */
100
+ MarketType?: MarketType | string;
101
+ /**
102
+ * @public
103
+ * <p>The options for Spot Instances.</p>
104
+ */
105
+ SpotOptions?: SpotMarketOptions;
106
+ }
7
107
  /**
8
108
  * @public
9
109
  * <p>The launch template to use. You must specify either the launch template ID or launch
@@ -374,6 +374,7 @@ import { DisableEbsEncryptionByDefaultCommandInput, DisableEbsEncryptionByDefaul
374
374
  import { DisableFastLaunchCommandInput, DisableFastLaunchCommandOutput } from "../commands/DisableFastLaunchCommand";
375
375
  import { DisableFastSnapshotRestoresCommandInput, DisableFastSnapshotRestoresCommandOutput } from "../commands/DisableFastSnapshotRestoresCommand";
376
376
  import { DisableImageBlockPublicAccessCommandInput, DisableImageBlockPublicAccessCommandOutput } from "../commands/DisableImageBlockPublicAccessCommand";
377
+ import { DisableImageCommandInput, DisableImageCommandOutput } from "../commands/DisableImageCommand";
377
378
  import { DisableImageDeprecationCommandInput, DisableImageDeprecationCommandOutput } from "../commands/DisableImageDeprecationCommand";
378
379
  import { DisableIpamOrganizationAdminAccountCommandInput, DisableIpamOrganizationAdminAccountCommandOutput } from "../commands/DisableIpamOrganizationAdminAccountCommand";
379
380
  import { DisableSerialConsoleAccessCommandInput, DisableSerialConsoleAccessCommandOutput } from "../commands/DisableSerialConsoleAccessCommand";
@@ -401,6 +402,7 @@ import { EnableEbsEncryptionByDefaultCommandInput, EnableEbsEncryptionByDefaultC
401
402
  import { EnableFastLaunchCommandInput, EnableFastLaunchCommandOutput } from "../commands/EnableFastLaunchCommand";
402
403
  import { EnableFastSnapshotRestoresCommandInput, EnableFastSnapshotRestoresCommandOutput } from "../commands/EnableFastSnapshotRestoresCommand";
403
404
  import { EnableImageBlockPublicAccessCommandInput, EnableImageBlockPublicAccessCommandOutput } from "../commands/EnableImageBlockPublicAccessCommand";
405
+ import { EnableImageCommandInput, EnableImageCommandOutput } from "../commands/EnableImageCommand";
404
406
  import { EnableImageDeprecationCommandInput, EnableImageDeprecationCommandOutput } from "../commands/EnableImageDeprecationCommand";
405
407
  import { EnableIpamOrganizationAdminAccountCommandInput, EnableIpamOrganizationAdminAccountCommandOutput } from "../commands/EnableIpamOrganizationAdminAccountCommand";
406
408
  import { EnableReachabilityAnalyzerOrganizationSharingCommandInput, EnableReachabilityAnalyzerOrganizationSharingCommandOutput } from "../commands/EnableReachabilityAnalyzerOrganizationSharingCommand";
@@ -2089,6 +2091,10 @@ export declare const se_DisableFastLaunchCommand: (input: DisableFastLaunchComma
2089
2091
  * serializeAws_ec2DisableFastSnapshotRestoresCommand
2090
2092
  */
2091
2093
  export declare const se_DisableFastSnapshotRestoresCommand: (input: DisableFastSnapshotRestoresCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
2094
+ /**
2095
+ * serializeAws_ec2DisableImageCommand
2096
+ */
2097
+ export declare const se_DisableImageCommand: (input: DisableImageCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
2092
2098
  /**
2093
2099
  * serializeAws_ec2DisableImageBlockPublicAccessCommand
2094
2100
  */
@@ -2197,6 +2203,10 @@ export declare const se_EnableFastLaunchCommand: (input: EnableFastLaunchCommand
2197
2203
  * serializeAws_ec2EnableFastSnapshotRestoresCommand
2198
2204
  */
2199
2205
  export declare const se_EnableFastSnapshotRestoresCommand: (input: EnableFastSnapshotRestoresCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
2206
+ /**
2207
+ * serializeAws_ec2EnableImageCommand
2208
+ */
2209
+ export declare const se_EnableImageCommand: (input: EnableImageCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
2200
2210
  /**
2201
2211
  * serializeAws_ec2EnableImageBlockPublicAccessCommand
2202
2212
  */
@@ -4477,6 +4487,10 @@ export declare const de_DisableFastLaunchCommand: (output: __HttpResponse, conte
4477
4487
  * deserializeAws_ec2DisableFastSnapshotRestoresCommand
4478
4488
  */
4479
4489
  export declare const de_DisableFastSnapshotRestoresCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DisableFastSnapshotRestoresCommandOutput>;
4490
+ /**
4491
+ * deserializeAws_ec2DisableImageCommand
4492
+ */
4493
+ export declare const de_DisableImageCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DisableImageCommandOutput>;
4480
4494
  /**
4481
4495
  * deserializeAws_ec2DisableImageBlockPublicAccessCommand
4482
4496
  */
@@ -4585,6 +4599,10 @@ export declare const de_EnableFastLaunchCommand: (output: __HttpResponse, contex
4585
4599
  * deserializeAws_ec2EnableFastSnapshotRestoresCommand
4586
4600
  */
4587
4601
  export declare const de_EnableFastSnapshotRestoresCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<EnableFastSnapshotRestoresCommandOutput>;
4602
+ /**
4603
+ * deserializeAws_ec2EnableImageCommand
4604
+ */
4605
+ export declare const de_EnableImageCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<EnableImageCommandOutput>;
4588
4606
  /**
4589
4607
  * deserializeAws_ec2EnableImageBlockPublicAccessCommand
4590
4608
  */
@@ -1495,6 +1495,10 @@ import {
1495
1495
  DisableImageBlockPublicAccessCommandInput,
1496
1496
  DisableImageBlockPublicAccessCommandOutput,
1497
1497
  } from "./commands/DisableImageBlockPublicAccessCommand";
1498
+ import {
1499
+ DisableImageCommandInput,
1500
+ DisableImageCommandOutput,
1501
+ } from "./commands/DisableImageCommand";
1498
1502
  import {
1499
1503
  DisableImageDeprecationCommandInput,
1500
1504
  DisableImageDeprecationCommandOutput,
@@ -1603,6 +1607,10 @@ import {
1603
1607
  EnableImageBlockPublicAccessCommandInput,
1604
1608
  EnableImageBlockPublicAccessCommandOutput,
1605
1609
  } from "./commands/EnableImageBlockPublicAccessCommand";
1610
+ import {
1611
+ EnableImageCommandInput,
1612
+ EnableImageCommandOutput,
1613
+ } from "./commands/EnableImageCommand";
1606
1614
  import {
1607
1615
  EnableImageDeprecationCommandInput,
1608
1616
  EnableImageDeprecationCommandOutput,
@@ -7658,6 +7666,19 @@ export interface EC2 {
7658
7666
  options: __HttpHandlerOptions,
7659
7667
  cb: (err: any, data?: DisableFastSnapshotRestoresCommandOutput) => void
7660
7668
  ): void;
7669
+ disableImage(
7670
+ args: DisableImageCommandInput,
7671
+ options?: __HttpHandlerOptions
7672
+ ): Promise<DisableImageCommandOutput>;
7673
+ disableImage(
7674
+ args: DisableImageCommandInput,
7675
+ cb: (err: any, data?: DisableImageCommandOutput) => void
7676
+ ): void;
7677
+ disableImage(
7678
+ args: DisableImageCommandInput,
7679
+ options: __HttpHandlerOptions,
7680
+ cb: (err: any, data?: DisableImageCommandOutput) => void
7681
+ ): void;
7661
7682
  disableImageBlockPublicAccess(
7662
7683
  args: DisableImageBlockPublicAccessCommandInput,
7663
7684
  options?: __HttpHandlerOptions
@@ -8063,6 +8084,19 @@ export interface EC2 {
8063
8084
  options: __HttpHandlerOptions,
8064
8085
  cb: (err: any, data?: EnableFastSnapshotRestoresCommandOutput) => void
8065
8086
  ): void;
8087
+ enableImage(
8088
+ args: EnableImageCommandInput,
8089
+ options?: __HttpHandlerOptions
8090
+ ): Promise<EnableImageCommandOutput>;
8091
+ enableImage(
8092
+ args: EnableImageCommandInput,
8093
+ cb: (err: any, data?: EnableImageCommandOutput) => void
8094
+ ): void;
8095
+ enableImage(
8096
+ args: EnableImageCommandInput,
8097
+ options: __HttpHandlerOptions,
8098
+ cb: (err: any, data?: EnableImageCommandOutput) => void
8099
+ ): void;
8066
8100
  enableImageBlockPublicAccess(
8067
8101
  args: EnableImageBlockPublicAccessCommandInput,
8068
8102
  options?: __HttpHandlerOptions
@@ -1541,6 +1541,10 @@ import {
1541
1541
  DisableImageBlockPublicAccessCommandInput,
1542
1542
  DisableImageBlockPublicAccessCommandOutput,
1543
1543
  } from "./commands/DisableImageBlockPublicAccessCommand";
1544
+ import {
1545
+ DisableImageCommandInput,
1546
+ DisableImageCommandOutput,
1547
+ } from "./commands/DisableImageCommand";
1544
1548
  import {
1545
1549
  DisableImageDeprecationCommandInput,
1546
1550
  DisableImageDeprecationCommandOutput,
@@ -1649,6 +1653,10 @@ import {
1649
1653
  EnableImageBlockPublicAccessCommandInput,
1650
1654
  EnableImageBlockPublicAccessCommandOutput,
1651
1655
  } from "./commands/EnableImageBlockPublicAccessCommand";
1656
+ import {
1657
+ EnableImageCommandInput,
1658
+ EnableImageCommandOutput,
1659
+ } from "./commands/EnableImageCommand";
1652
1660
  import {
1653
1661
  EnableImageDeprecationCommandInput,
1654
1662
  EnableImageDeprecationCommandOutput,
@@ -2815,6 +2823,7 @@ export type ServiceInputTypes =
2815
2823
  | DisableFastLaunchCommandInput
2816
2824
  | DisableFastSnapshotRestoresCommandInput
2817
2825
  | DisableImageBlockPublicAccessCommandInput
2826
+ | DisableImageCommandInput
2818
2827
  | DisableImageDeprecationCommandInput
2819
2828
  | DisableIpamOrganizationAdminAccountCommandInput
2820
2829
  | DisableSerialConsoleAccessCommandInput
@@ -2842,6 +2851,7 @@ export type ServiceInputTypes =
2842
2851
  | EnableFastLaunchCommandInput
2843
2852
  | EnableFastSnapshotRestoresCommandInput
2844
2853
  | EnableImageBlockPublicAccessCommandInput
2854
+ | EnableImageCommandInput
2845
2855
  | EnableImageDeprecationCommandInput
2846
2856
  | EnableIpamOrganizationAdminAccountCommandInput
2847
2857
  | EnableReachabilityAnalyzerOrganizationSharingCommandInput
@@ -3413,6 +3423,7 @@ export type ServiceOutputTypes =
3413
3423
  | DisableFastLaunchCommandOutput
3414
3424
  | DisableFastSnapshotRestoresCommandOutput
3415
3425
  | DisableImageBlockPublicAccessCommandOutput
3426
+ | DisableImageCommandOutput
3416
3427
  | DisableImageDeprecationCommandOutput
3417
3428
  | DisableIpamOrganizationAdminAccountCommandOutput
3418
3429
  | DisableSerialConsoleAccessCommandOutput
@@ -3440,6 +3451,7 @@ export type ServiceOutputTypes =
3440
3451
  | EnableFastLaunchCommandOutput
3441
3452
  | EnableFastSnapshotRestoresCommandOutput
3442
3453
  | EnableImageBlockPublicAccessCommandOutput
3454
+ | EnableImageCommandOutput
3443
3455
  | EnableImageDeprecationCommandOutput
3444
3456
  | EnableIpamOrganizationAdminAccountCommandOutput
3445
3457
  | EnableReachabilityAnalyzerOrganizationSharingCommandOutput