@aws-sdk/client-ec2 3.1083.0 → 3.1085.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 (61) hide show
  1. package/dist-cjs/index.js +229 -8
  2. package/dist-es/models/enums.js +201 -0
  3. package/dist-es/schemas/schemas_0.js +23 -7
  4. package/dist-types/commands/CreateCapacityReservationFleetCommand.d.ts +2 -2
  5. package/dist-types/commands/CreateFleetCommand.d.ts +18 -4
  6. package/dist-types/commands/CreateLaunchTemplateCommand.d.ts +1 -1
  7. package/dist-types/commands/CreateLaunchTemplateVersionCommand.d.ts +2 -2
  8. package/dist-types/commands/CreateRouteServerPeerCommand.d.ts +1 -2
  9. package/dist-types/commands/DeleteRouteTableCommand.d.ts +1 -1
  10. package/dist-types/commands/DeleteSecondaryNetworkCommand.d.ts +1 -2
  11. package/dist-types/commands/DescribeCapacityReservationFleetsCommand.d.ts +1 -1
  12. package/dist-types/commands/DescribeFleetsCommand.d.ts +4 -4
  13. package/dist-types/commands/DescribeInstanceImageMetadataCommand.d.ts +1 -1
  14. package/dist-types/commands/DescribeInstanceTypeOfferingsCommand.d.ts +1 -1
  15. package/dist-types/commands/DescribeInstanceTypesCommand.d.ts +2 -2
  16. package/dist-types/commands/DescribeInstancesCommand.d.ts +1 -1
  17. package/dist-types/commands/DescribeLaunchTemplateVersionsCommand.d.ts +1 -1
  18. package/dist-types/commands/DescribeReservedInstancesCommand.d.ts +1 -1
  19. package/dist-types/commands/DescribeReservedInstancesModificationsCommand.d.ts +1 -1
  20. package/dist-types/commands/DescribeReservedInstancesOfferingsCommand.d.ts +2 -2
  21. package/dist-types/commands/DescribeSpotFleetRequestsCommand.d.ts +2 -2
  22. package/dist-types/commands/DescribeSpotInstanceRequestsCommand.d.ts +1 -1
  23. package/dist-types/commands/DescribeSpotPriceHistoryCommand.d.ts +2 -2
  24. package/dist-types/commands/GetAssociatedEnclaveCertificateIamRolesCommand.d.ts +2 -1
  25. package/dist-types/commands/GetLaunchTemplateDataCommand.d.ts +1 -1
  26. package/dist-types/commands/ImportInstanceCommand.d.ts +1 -1
  27. package/dist-types/commands/ModifyFleetCommand.d.ts +12 -1
  28. package/dist-types/commands/ModifyIpamPoolAllocationCommand.d.ts +1 -1
  29. package/dist-types/commands/ModifyReservedInstancesCommand.d.ts +1 -1
  30. package/dist-types/commands/ModifySpotFleetRequestCommand.d.ts +1 -1
  31. package/dist-types/commands/RequestSpotFleetCommand.d.ts +2 -2
  32. package/dist-types/commands/RequestSpotInstancesCommand.d.ts +2 -2
  33. package/dist-types/commands/RunInstancesCommand.d.ts +2 -2
  34. package/dist-types/commands/UpdateCapacityManagerOrganizationsAccessCommand.d.ts +1 -1
  35. package/dist-types/models/enums.d.ts +217 -0
  36. package/dist-types/models/models_1.d.ts +121 -62
  37. package/dist-types/models/models_2.d.ts +59 -37
  38. package/dist-types/models/models_3.d.ts +37 -86
  39. package/dist-types/models/models_4.d.ts +89 -310
  40. package/dist-types/models/models_5.d.ts +309 -40
  41. package/dist-types/models/models_6.d.ts +38 -32
  42. package/dist-types/models/models_7.d.ts +36 -50
  43. package/dist-types/models/models_8.d.ts +47 -1
  44. package/dist-types/schemas/schemas_0.d.ts +2 -0
  45. package/dist-types/ts3.4/commands/CreateRouteServerPeerCommand.d.ts +4 -2
  46. package/dist-types/ts3.4/commands/DeleteRouteTableCommand.d.ts +1 -1
  47. package/dist-types/ts3.4/commands/DeleteSecondaryNetworkCommand.d.ts +4 -2
  48. package/dist-types/ts3.4/commands/GetAssociatedEnclaveCertificateIamRolesCommand.d.ts +2 -4
  49. package/dist-types/ts3.4/commands/ModifyIpamPoolAllocationCommand.d.ts +1 -1
  50. package/dist-types/ts3.4/commands/UpdateCapacityManagerOrganizationsAccessCommand.d.ts +1 -1
  51. package/dist-types/ts3.4/models/enums.d.ts +205 -0
  52. package/dist-types/ts3.4/models/models_1.d.ts +18 -12
  53. package/dist-types/ts3.4/models/models_2.d.ts +11 -9
  54. package/dist-types/ts3.4/models/models_3.d.ts +9 -15
  55. package/dist-types/ts3.4/models/models_4.d.ts +16 -39
  56. package/dist-types/ts3.4/models/models_5.d.ts +40 -10
  57. package/dist-types/ts3.4/models/models_6.d.ts +9 -8
  58. package/dist-types/ts3.4/models/models_7.d.ts +10 -11
  59. package/dist-types/ts3.4/models/models_8.d.ts +10 -0
  60. package/dist-types/ts3.4/schemas/schemas_0.d.ts +2 -0
  61. package/package.json +1 -1
@@ -1,8 +1,94 @@
1
- import type { _InstanceType, AllocationStrategy, AmdSevSnpSpecification, AnalysisStatus, ArchitectureType, ArchitectureValues, AttachmentLimitType, AttachmentStatus, BandwidthWeightingType, BootModeType, BootModeValues, CapacityReservationPreference, CurrencyCodeValues, DeviceType, DiskType, EbsEncryptionSupport, EbsNvmeSupport, EbsOptimizedSupport, EnaSupport, EphemeralNvmeSupport, EventCode, EventType, ExcessCapacityTerminationPolicy, FindingsFound, FleetType, FlexibleEnaQueuesSupport, HaStatus, HostnameType, HttpTokensState, HypervisorType, ImageState, InstanceAttributeName, InstanceAutoRecoveryState, InstanceBandwidthWeighting, InstanceBootModeValues, InstanceInterruptionBehavior, InstanceLifecycleType, InstanceMetadataEndpointState, InstanceMetadataOptionsState, InstanceMetadataProtocolState, InstanceMetadataTagsState, InstanceRebootMigrationState, InstanceStateName, InstanceStorageEncryptionSupport, InstanceTypeHypervisor, KeyType, LocationType, LockState, MonitoringState, MoveStatus, NestedVirtualizationSpecification, NetworkInterfaceAttribute, NetworkInterfaceStatus, NitroEnclavesSupport, NitroTpmSupport, OfferingClassType, OfferingTypeValues, OnDemandAllocationStrategy, PermissionGroup, PhcSupport, PlacementGroupStrategy, PlatformValues, RebootMigrationSupport, RecurringChargeFrequency, ReplacementStrategy, ReservedInstanceState, ResourceType, RIProductDescription, RootDeviceType, Scope, SecondaryInterfaceStatus, SecondaryInterfaceType, SecondaryNetworkType, SecurityGroupVpcAssociationState, ServiceLinkVirtualInterfaceConfigurationState, SnapshotAttributeName, SnapshotState, SqlServerLicenseUsage, StatusName, StatusType, StorageTier, SummaryStatus, SupportedAdditionalProcessorFeature, TargetCapacityUnitType, Tenancy, TieringOperationStatus, UsageClassType, VirtualizationType } from "./enums";
2
- import type { ActiveInstance, AlternatePathHint, Explanation, IamInstanceProfile, IamInstanceProfileSpecification, InstanceEventWindow, IpamPoolAllocation, IpamResourceDiscoveryAssociation, IpPermission, OperatorResponse, PathComponent, ReservedInstancesListing, SecurityGroupRule, Tag, TagSpecification } from "./models_0";
1
+ import type { _InstanceType, AmdSevSnpSpecification, AnalysisStatus, ArchitectureType, ArchitectureValues, AttachmentLimitType, AttachmentStatus, BandwidthWeightingType, BootModeType, BootModeValues, CapacityReservationPreference, CurrencyCodeValues, DeviceType, DiskType, EbsEncryptionSupport, EbsNvmeSupport, EbsOptimizedSupport, EnaSupport, EphemeralNvmeSupport, EventCode, EventType, FindingsFound, FlexibleEnaQueuesSupport, HaStatus, HostnameType, HttpTokensState, HypervisorType, ImageState, InstanceAttributeName, InstanceAutoRecoveryState, InstanceBandwidthWeighting, InstanceBootModeValues, InstanceLifecycleType, InstanceMetadataEndpointState, InstanceMetadataOptionsState, InstanceMetadataProtocolState, InstanceMetadataTagsState, InstanceRebootMigrationState, InstanceStateName, InstanceStorageEncryptionSupport, InstanceTypeHypervisor, KeyType, LocationType, LockState, MonitoringState, MoveStatus, NestedVirtualizationSpecification, NetworkInterfaceAttribute, NetworkInterfaceStatus, NitroEnclavesSupport, NitroTpmSupport, OfferingClassType, OfferingTypeValues, PermissionGroup, PhcSupport, PlacementGroupStrategy, PlatformValues, RebootMigrationSupport, RecurringChargeFrequency, ReplacementStrategy, ReservedInstanceState, ResourceType, RIProductDescription, RootDeviceType, Scope, SecondaryInterfaceStatus, SecondaryInterfaceType, SecondaryNetworkType, SecurityGroupVpcAssociationState, ServiceLinkVirtualInterfaceConfigurationState, SnapshotAttributeName, SnapshotState, SqlServerLicenseUsage, StatusName, StatusType, StorageTier, SummaryStatus, SupportedAdditionalProcessorFeature, Tenancy, TieringOperationStatus, UsageClassType, VirtualizationType } from "./enums";
2
+ import type { ActiveInstance, AlternatePathHint, Explanation, IamInstanceProfile, IamInstanceProfileSpecification, InstanceEventWindow, IpamPoolAllocation, IpamResourceDiscoveryAssociation, IpPermission, OperatorResponse, PathComponent, ReservedInstancesListing, SecurityGroupRule, Tag } from "./models_0";
3
3
  import type { AttributeValue, BlockDeviceMapping, CapacityReservationTargetResponse, ConnectionTrackingSpecificationRequest, Ec2InstanceConnectEndpoint, EnaSrdSpecificationRequest, FleetLaunchTemplateSpecification, GroupIdentifier, InstanceIpv6Address, InstanceRequirements, InternetGateway, Ipam, IpamExternalResourceVerificationToken, IpamPolicy, IpamPool, IpamPrefixListResolver, IpamPrefixListResolverTarget, IpamResourceDiscovery, IpamScope, Ipv4PrefixSpecificationRequest, Ipv6PrefixSpecificationRequest, LaunchTemplate, LaunchTemplateVersion, LocalGatewayRouteTable, LocalGatewayRouteTableVirtualInterfaceGroupAssociation, LocalGatewayRouteTableVpcAssociation, LocalGatewayVirtualInterface, LocalGatewayVirtualInterfaceGroup, MacModificationTask, ManagedPrefixList, NatGateway, NetworkAcl, NetworkInsightsAccessScope, NetworkInsightsPath, NetworkInterface, NetworkInterfaceAttachment, NetworkInterfacePermission, Placement, PlacementGroup, PrivateIpAddressSpecification, ReplaceRootVolumeTask, RouteServer, RouteServerEndpoint, StateReason } from "./models_1";
4
4
  import type { RouteServerPeer, RouteTable, SecondaryNetwork, SecondarySubnet, Snapshot, SpotDatafeedSubscription } from "./models_2";
5
- import type { Byoasn, EventInformation, Filter, IdFormat, ImageUsageReport, ImageWatermark, InstanceTagNotificationAttribute, ProductCode } from "./models_3";
5
+ import type { Byoasn, EventInformation, Filter, IdFormat, ImageUsageResourceTypeOption, ImageWatermark, InstanceTagNotificationAttribute, ProductCode } from "./models_3";
6
+ /**
7
+ * <p>A resource type to include in the report. Associated options can also be specified if the
8
+ * resource type is a launch template.</p>
9
+ * @public
10
+ */
11
+ export interface ImageUsageResourceType {
12
+ /**
13
+ * <p>The resource type.</p>
14
+ * <p>Valid values: <code>ec2:Instance</code> | <code>ec2:LaunchTemplate</code>
15
+ * </p>
16
+ * @public
17
+ */
18
+ ResourceType?: string | undefined;
19
+ /**
20
+ * <p>The options that affect the scope of the report. Valid only when <code>ResourceType</code>
21
+ * is <code>ec2:LaunchTemplate</code>.</p>
22
+ * @public
23
+ */
24
+ ResourceTypeOptions?: ImageUsageResourceTypeOption[] | undefined;
25
+ }
26
+ /**
27
+ * <p>The configuration and status of an image usage report.</p>
28
+ * @public
29
+ */
30
+ export interface ImageUsageReport {
31
+ /**
32
+ * <p>The ID of the image that was specified when the report was created.</p>
33
+ * @public
34
+ */
35
+ ImageId?: string | undefined;
36
+ /**
37
+ * <p>The ID of the report.</p>
38
+ * @public
39
+ */
40
+ ReportId?: string | undefined;
41
+ /**
42
+ * <p>The resource types that were specified when the report was created.</p>
43
+ * @public
44
+ */
45
+ ResourceTypes?: ImageUsageResourceType[] | undefined;
46
+ /**
47
+ * <p>The IDs of the Amazon Web Services accounts that were specified when the report was created.</p>
48
+ * @public
49
+ */
50
+ AccountIds?: string[] | undefined;
51
+ /**
52
+ * <p>The current state of the report. Possible values:</p>
53
+ * <ul>
54
+ * <li>
55
+ * <p>
56
+ * <code>available</code> - The report is available to view.</p>
57
+ * </li>
58
+ * <li>
59
+ * <p>
60
+ * <code>pending</code> - The report is being created and not available to view.</p>
61
+ * </li>
62
+ * <li>
63
+ * <p>
64
+ * <code>error</code> - The report could not be created.</p>
65
+ * </li>
66
+ * </ul>
67
+ * @public
68
+ */
69
+ State?: string | undefined;
70
+ /**
71
+ * <p>Provides additional details when the report is in an <code>error</code> state.</p>
72
+ * @public
73
+ */
74
+ StateReason?: string | undefined;
75
+ /**
76
+ * <p>The date and time when the report was created.</p>
77
+ * @public
78
+ */
79
+ CreationTime?: Date | undefined;
80
+ /**
81
+ * <p>The date and time when Amazon EC2 will delete the report (30 days after the report was
82
+ * created).</p>
83
+ * @public
84
+ */
85
+ ExpirationTime?: Date | undefined;
86
+ /**
87
+ * <p>Any tags assigned to the report.</p>
88
+ * @public
89
+ */
90
+ Tags?: Tag[] | undefined;
91
+ }
6
92
  /**
7
93
  * @public
8
94
  */
@@ -12551,310 +12637,3 @@ export interface SpotCapacityRebalance {
12551
12637
  */
12552
12638
  TerminationDelay?: number | undefined;
12553
12639
  }
12554
- /**
12555
- * <p>The strategies for managing your Spot Instances that are at an elevated risk of being
12556
- * interrupted.</p>
12557
- * @public
12558
- */
12559
- export interface SpotMaintenanceStrategies {
12560
- /**
12561
- * <p>The Spot Instance replacement strategy to use when Amazon EC2 emits a signal that your
12562
- * Spot Instance is at an elevated risk of being interrupted. For more information, see
12563
- * <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-fleet-capacity-rebalance.html">Capacity
12564
- * rebalancing</a> in the <i>Amazon EC2 User Guide</i>.</p>
12565
- * @public
12566
- */
12567
- CapacityRebalance?: SpotCapacityRebalance | undefined;
12568
- }
12569
- /**
12570
- * <p>Describes the configuration of a Spot Fleet request.</p>
12571
- * @public
12572
- */
12573
- export interface SpotFleetRequestConfigData {
12574
- /**
12575
- * <p>The strategy that determines how to allocate the target Spot Instance capacity across the Spot Instance
12576
- * pools specified by the Spot Fleet launch configuration. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-fleet-allocation-strategy.html">Allocation
12577
- * strategies for Spot Instances</a> in the <i>Amazon EC2 User Guide</i>.</p>
12578
- * <dl>
12579
- * <dt>priceCapacityOptimized (recommended)</dt>
12580
- * <dd>
12581
- * <p>Spot Fleet identifies the pools with
12582
- * the highest capacity availability for the number of instances that are launching. This means
12583
- * that we will request Spot Instances from the pools that we believe have the lowest chance of interruption
12584
- * in the near term. Spot Fleet then requests Spot Instances from the lowest priced of these pools.</p>
12585
- * </dd>
12586
- * <dt>capacityOptimized</dt>
12587
- * <dd>
12588
- * <p>Spot Fleet identifies the pools with
12589
- * the highest capacity availability for the number of instances that are launching. This means
12590
- * that we will request Spot Instances from the pools that we believe have the lowest chance of interruption
12591
- * in the near term. To give certain
12592
- * instance types a higher chance of launching first, use
12593
- * <code>capacityOptimizedPrioritized</code>. Set a priority for each instance type by
12594
- * using the <code>Priority</code> parameter for <code>LaunchTemplateOverrides</code>. You can
12595
- * assign the same priority to different <code>LaunchTemplateOverrides</code>. EC2 implements
12596
- * the priorities on a best-effort basis, but optimizes for capacity first.
12597
- * <code>capacityOptimizedPrioritized</code> is supported only if your Spot Fleet uses a
12598
- * launch template. Note that if the <code>OnDemandAllocationStrategy</code> is set to
12599
- * <code>prioritized</code>, the same priority is applied when fulfilling On-Demand
12600
- * capacity.</p>
12601
- * </dd>
12602
- * <dt>diversified</dt>
12603
- * <dd>
12604
- * <p>Spot Fleet requests instances from all of the Spot Instance pools that you
12605
- * specify.</p>
12606
- * </dd>
12607
- * <dt>lowestPrice (not recommended)</dt>
12608
- * <dd>
12609
- * <important>
12610
- * <p>We don't recommend the <code>lowestPrice</code> allocation strategy because
12611
- * it has the highest risk of interruption for your Spot Instances.</p>
12612
- * </important>
12613
- * <p>Spot Fleet requests instances from the lowest priced Spot Instance pool that has available
12614
- * capacity. If the lowest priced pool doesn't have available capacity, the Spot Instances
12615
- * come from the next lowest priced pool that has available capacity. If a pool runs
12616
- * out of capacity before fulfilling your desired capacity, Spot Fleet will continue to
12617
- * fulfill your request by drawing from the next lowest priced pool. To ensure that
12618
- * your desired capacity is met, you might receive Spot Instances from several pools. Because
12619
- * this strategy only considers instance price and not capacity availability, it
12620
- * might lead to high interruption rates.</p>
12621
- * </dd>
12622
- * </dl>
12623
- * <p>Default: <code>lowestPrice</code>
12624
- * </p>
12625
- * @public
12626
- */
12627
- AllocationStrategy?: AllocationStrategy | undefined;
12628
- /**
12629
- * <p>The order of the launch template overrides to use in fulfilling On-Demand capacity. If
12630
- * you specify <code>lowestPrice</code>, Spot Fleet uses price to determine the order, launching
12631
- * the lowest price first. If you specify <code>prioritized</code>, Spot Fleet uses the priority
12632
- * that you assign to each Spot Fleet launch template override, launching the highest priority
12633
- * first. If you do not specify a value, Spot Fleet defaults to <code>lowestPrice</code>.</p>
12634
- * @public
12635
- */
12636
- OnDemandAllocationStrategy?: OnDemandAllocationStrategy | undefined;
12637
- /**
12638
- * <p>The strategies for managing your Spot Instances that are at an elevated risk of being
12639
- * interrupted.</p>
12640
- * @public
12641
- */
12642
- SpotMaintenanceStrategies?: SpotMaintenanceStrategies | undefined;
12643
- /**
12644
- * <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of your
12645
- * listings. This helps to avoid duplicate listings. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">Ensuring Idempotency</a>.</p>
12646
- * @public
12647
- */
12648
- ClientToken?: string | undefined;
12649
- /**
12650
- * <p>Indicates whether running instances should be terminated if you decrease the
12651
- * target capacity of the Spot Fleet request below the current size of the Spot Fleet.</p>
12652
- * <p>Supported only for fleets of type <code>maintain</code>.</p>
12653
- * @public
12654
- */
12655
- ExcessCapacityTerminationPolicy?: ExcessCapacityTerminationPolicy | undefined;
12656
- /**
12657
- * <p>The number of units fulfilled by this request compared to the set target capacity. You
12658
- * cannot set this value.</p>
12659
- * @public
12660
- */
12661
- FulfilledCapacity?: number | undefined;
12662
- /**
12663
- * <p>The number of On-Demand units fulfilled by this request compared to the set target
12664
- * On-Demand capacity.</p>
12665
- * @public
12666
- */
12667
- OnDemandFulfilledCapacity?: number | undefined;
12668
- /**
12669
- * <p>The Amazon Resource Name (ARN) of an Identity and Access Management (IAM) role
12670
- * that grants the Spot Fleet the permission to request, launch, terminate, and tag instances
12671
- * on your behalf. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-fleet-requests.html#spot-fleet-prerequisites">Spot
12672
- * Fleet prerequisites</a> in the <i>Amazon EC2 User Guide</i>. Spot Fleet can
12673
- * terminate Spot Instances on your behalf when you cancel its Spot Fleet request using <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CancelSpotFleetRequests">CancelSpotFleetRequests</a> or when the Spot Fleet request expires, if you set
12674
- * <code>TerminateInstancesWithExpiration</code>.</p>
12675
- * @public
12676
- */
12677
- IamFleetRole: string | undefined;
12678
- /**
12679
- * <p>The launch specifications for the Spot Fleet request. If you specify
12680
- * <code>LaunchSpecifications</code>, you can't specify
12681
- * <code>LaunchTemplateConfigs</code>. If you include On-Demand capacity in your
12682
- * request, you must use <code>LaunchTemplateConfigs</code>.</p>
12683
- * <note>
12684
- * <p>If an AMI specified in a launch specification is deregistered or disabled, no new
12685
- * instances can be launched from the AMI. For fleets of type <code>maintain</code>, the
12686
- * target capacity will not be maintained.</p>
12687
- * </note>
12688
- * @public
12689
- */
12690
- LaunchSpecifications?: SpotFleetLaunchSpecification[] | undefined;
12691
- /**
12692
- * <p>The launch template and overrides. If you specify <code>LaunchTemplateConfigs</code>,
12693
- * you can't specify <code>LaunchSpecifications</code>. If you include On-Demand capacity
12694
- * in your request, you must use <code>LaunchTemplateConfigs</code>.</p>
12695
- * @public
12696
- */
12697
- LaunchTemplateConfigs?: LaunchTemplateConfig[] | undefined;
12698
- /**
12699
- * <p>The maximum price per unit hour that you are willing to pay for a Spot Instance. We do not recommend
12700
- * using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price.</p>
12701
- * <important>
12702
- * <p>If you specify a maximum price, your instances will be interrupted more frequently than if you do not specify this parameter.</p>
12703
- * </important>
12704
- * @public
12705
- */
12706
- SpotPrice?: string | undefined;
12707
- /**
12708
- * <p>The number of units to request for the Spot Fleet. You can choose to set the target
12709
- * capacity in terms of instances or a performance characteristic that is important to your
12710
- * application workload, such as vCPUs, memory, or I/O. If the request type is
12711
- * <code>maintain</code>, you can specify a target capacity of 0 and add capacity
12712
- * later.</p>
12713
- * @public
12714
- */
12715
- TargetCapacity: number | undefined;
12716
- /**
12717
- * <p>The number of On-Demand units to request. You can choose to set the target capacity in
12718
- * terms of instances or a performance characteristic that is important to your application
12719
- * workload, such as vCPUs, memory, or I/O. If the request type is <code>maintain</code>,
12720
- * you can specify a target capacity of 0 and add capacity later.</p>
12721
- * @public
12722
- */
12723
- OnDemandTargetCapacity?: number | undefined;
12724
- /**
12725
- * <p>The maximum amount per hour for On-Demand Instances that you're willing to pay. You
12726
- * can use the <code>onDemandMaxTotalPrice</code> parameter, the
12727
- * <code>spotMaxTotalPrice</code> parameter, or both parameters to ensure that your
12728
- * fleet cost does not exceed your budget. If you set a maximum price per hour for the
12729
- * On-Demand Instances and Spot Instances in your request, Spot Fleet will launch instances until it reaches the
12730
- * maximum amount you're willing to pay. When the maximum amount you're willing to pay is
12731
- * reached, the fleet stops launching instances even if it hasn’t met the target
12732
- * capacity.</p>
12733
- * <note>
12734
- * <p>If your fleet includes T instances that are configured as <code>unlimited</code>,
12735
- * and if their average CPU usage exceeds the baseline utilization, you will incur a charge
12736
- * for surplus credits. The <code>onDemandMaxTotalPrice</code> does not account for surplus
12737
- * credits, and, if you use surplus credits, your final cost might be higher than what you
12738
- * specified for <code>onDemandMaxTotalPrice</code>. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances-unlimited-mode-concepts.html#unlimited-mode-surplus-credits">Surplus credits can incur charges</a> in the
12739
- * <i>Amazon EC2 User Guide</i>.</p>
12740
- * </note>
12741
- * @public
12742
- */
12743
- OnDemandMaxTotalPrice?: string | undefined;
12744
- /**
12745
- * <p>The maximum amount per hour for Spot Instances that you're willing to pay. You can use
12746
- * the <code>spotMaxTotalPrice</code> parameter, the <code>onDemandMaxTotalPrice</code>
12747
- * parameter, or both parameters to ensure that your fleet cost does not exceed your budget.
12748
- * If you set a maximum price per hour for the On-Demand Instances and Spot Instances in your request, Spot Fleet will
12749
- * launch instances until it reaches the maximum amount you're willing to pay. When the
12750
- * maximum amount you're willing to pay is reached, the fleet stops launching instances even
12751
- * if it hasn’t met the target capacity.</p>
12752
- * <note>
12753
- * <p>If your fleet includes T instances that are configured as <code>unlimited</code>,
12754
- * and if their average CPU usage exceeds the baseline utilization, you will incur a charge
12755
- * for surplus credits. The <code>spotMaxTotalPrice</code> does not account for surplus
12756
- * credits, and, if you use surplus credits, your final cost might be higher than what you
12757
- * specified for <code>spotMaxTotalPrice</code>. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances-unlimited-mode-concepts.html#unlimited-mode-surplus-credits">Surplus credits can incur charges</a> in the
12758
- * <i>Amazon EC2 User Guide</i>.</p>
12759
- * </note>
12760
- * @public
12761
- */
12762
- SpotMaxTotalPrice?: string | undefined;
12763
- /**
12764
- * <p>Indicates whether running Spot Instances are terminated when the Spot Fleet request
12765
- * expires.</p>
12766
- * @public
12767
- */
12768
- TerminateInstancesWithExpiration?: boolean | undefined;
12769
- /**
12770
- * <p>The type of request. Indicates whether the Spot Fleet only requests the target
12771
- * capacity or also attempts to maintain it. When this value is <code>request</code>, the
12772
- * Spot Fleet only places the required requests. It does not attempt to replenish Spot
12773
- * Instances if capacity is diminished, nor does it submit requests in alternative Spot
12774
- * pools if capacity is not available. When this value is <code>maintain</code>, the Spot
12775
- * Fleet maintains the target capacity. The Spot Fleet places the required requests to meet
12776
- * capacity and automatically replenishes any interrupted instances. Default:
12777
- * <code>maintain</code>. <code>instant</code> is listed but is not used by Spot
12778
- * Fleet.</p>
12779
- * @public
12780
- */
12781
- Type?: FleetType | undefined;
12782
- /**
12783
- * <p>The start date and time of the request, in UTC format
12784
- * (<i>YYYY</i>-<i>MM</i>-<i>DD</i>T<i>HH</i>:<i>MM</i>:<i>SS</i>Z).
12785
- * By default, Amazon EC2 starts fulfilling the request immediately.</p>
12786
- * @public
12787
- */
12788
- ValidFrom?: Date | undefined;
12789
- /**
12790
- * <p>The end date and time of the request, in UTC format
12791
- * (<i>YYYY</i>-<i>MM</i>-<i>DD</i>T<i>HH</i>:<i>MM</i>:<i>SS</i>Z).
12792
- * After the end date and time, no new Spot Instance requests are placed or able to fulfill
12793
- * the request. If no value is specified, the Spot Fleet request remains until you cancel
12794
- * it.</p>
12795
- * @public
12796
- */
12797
- ValidUntil?: Date | undefined;
12798
- /**
12799
- * <p>Indicates whether Spot Fleet should replace unhealthy instances.</p>
12800
- * @public
12801
- */
12802
- ReplaceUnhealthyInstances?: boolean | undefined;
12803
- /**
12804
- * <p>The behavior when a Spot Instance is interrupted. The default is
12805
- * <code>terminate</code>.</p>
12806
- * @public
12807
- */
12808
- InstanceInterruptionBehavior?: InstanceInterruptionBehavior | undefined;
12809
- /**
12810
- * <p>One or more Classic Load Balancers and target groups to attach to the Spot Fleet
12811
- * request. Spot Fleet registers the running Spot Instances with the specified Classic Load
12812
- * Balancers and target groups.</p>
12813
- * <p>With Network Load Balancers, Spot Fleet cannot register instances that have the
12814
- * following instance types: C1, CC1, CC2, CG1, CG2, CR1, CS1, G1, G2, HI1, HS1, M1, M2,
12815
- * M3, and T1.</p>
12816
- * @public
12817
- */
12818
- LoadBalancersConfig?: LoadBalancersConfig | undefined;
12819
- /**
12820
- * <p>The number of Spot pools across which to allocate your target Spot capacity. Valid
12821
- * only when Spot <b>AllocationStrategy</b> is set to
12822
- * <code>lowest-price</code>. Spot Fleet selects the cheapest Spot pools and evenly
12823
- * allocates your target Spot capacity across the number of Spot pools that you
12824
- * specify.</p>
12825
- * <p>Note that Spot Fleet attempts to draw Spot Instances from the number of pools that you specify on a
12826
- * best effort basis. If a pool runs out of Spot capacity before fulfilling your target
12827
- * capacity, Spot Fleet will continue to fulfill your request by drawing from the next cheapest
12828
- * pool. To ensure that your target capacity is met, you might receive Spot Instances from more than
12829
- * the number of pools that you specified. Similarly, if most of the pools have no Spot
12830
- * capacity, you might receive your full target capacity from fewer than the number of
12831
- * pools that you specified.</p>
12832
- * @public
12833
- */
12834
- InstancePoolsToUseCount?: number | undefined;
12835
- /**
12836
- * <p>Reserved.</p>
12837
- * @public
12838
- */
12839
- Context?: string | undefined;
12840
- /**
12841
- * <p>The unit for the target capacity. You can specify this parameter only when
12842
- * using attribute-based instance type selection.</p>
12843
- * <p>Default: <code>units</code> (the number of instances)</p>
12844
- * @public
12845
- */
12846
- TargetCapacityUnitType?: TargetCapacityUnitType | undefined;
12847
- /**
12848
- * <p>The key-value pair for tagging the Spot Fleet request on creation. The value for
12849
- * <code>ResourceType</code> must be <code>spot-fleet-request</code>, otherwise the
12850
- * Spot Fleet request fails. To tag instances at launch, specify the tags in the <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html#create-launch-template">launch
12851
- * template</a> (valid only if you use <code>LaunchTemplateConfigs</code>) or in
12852
- * the <code>
12853
- * <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_SpotFleetTagSpecification.html">SpotFleetTagSpecification</a>
12854
- * </code> (valid only if you use
12855
- * <code>LaunchSpecifications</code>). For information about tagging after launch, see
12856
- * <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Using_Tags.html#tag-resources">Tag your resources</a>.</p>
12857
- * @public
12858
- */
12859
- TagSpecifications?: TagSpecification[] | undefined;
12860
- }