@aws-sdk/client-ec2 3.627.0 → 3.631.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/README.md +16 -0
  2. package/dist-cjs/index.js +238 -69
  3. package/dist-es/EC2.js +4 -0
  4. package/dist-es/commands/CreateCapacityReservationBySplittingCommand.js +24 -0
  5. package/dist-es/commands/ModifyVpnTunnelCertificateCommand.js +1 -1
  6. package/dist-es/commands/MoveCapacityReservationInstancesCommand.js +24 -0
  7. package/dist-es/commands/index.js +2 -0
  8. package/dist-es/models/models_0.js +0 -3
  9. package/dist-es/models/models_1.js +3 -5
  10. package/dist-es/models/models_2.js +5 -0
  11. package/dist-es/models/models_3.js +0 -13
  12. package/dist-es/models/models_4.js +13 -4
  13. package/dist-es/models/models_5.js +4 -4
  14. package/dist-es/models/models_6.js +4 -8
  15. package/dist-es/models/models_7.js +8 -0
  16. package/dist-es/protocols/Aws_ec2.js +139 -8
  17. package/dist-types/EC2.d.ts +14 -0
  18. package/dist-types/EC2Client.d.ts +4 -2
  19. package/dist-types/commands/CreateCapacityReservationBySplittingCommand.d.ts +148 -0
  20. package/dist-types/commands/CreateCapacityReservationFleetCommand.d.ts +1 -2
  21. package/dist-types/commands/CreateNetworkInterfaceCommand.d.ts +1 -2
  22. package/dist-types/commands/DeleteLaunchTemplateVersionsCommand.d.ts +2 -1
  23. package/dist-types/commands/DeleteLocalGatewayRouteCommand.d.ts +1 -2
  24. package/dist-types/commands/DescribeAddressTransfersCommand.d.ts +1 -1
  25. package/dist-types/commands/GetInstanceMetadataDefaultsCommand.d.ts +2 -1
  26. package/dist-types/commands/ModifyCapacityReservationCommand.d.ts +5 -5
  27. package/dist-types/commands/ModifyVpnTunnelCertificateCommand.d.ts +2 -1
  28. package/dist-types/commands/MoveCapacityReservationInstancesCommand.d.ts +157 -0
  29. package/dist-types/commands/index.d.ts +2 -0
  30. package/dist-types/models/models_0.d.ts +63 -99
  31. package/dist-types/models/models_1.d.ts +99 -150
  32. package/dist-types/models/models_2.d.ts +153 -49
  33. package/dist-types/models/models_3.d.ts +48 -32
  34. package/dist-types/models/models_4.d.ts +34 -52
  35. package/dist-types/models/models_5.d.ts +48 -23
  36. package/dist-types/models/models_6.d.ts +35 -237
  37. package/dist-types/models/models_7.d.ts +299 -4
  38. package/dist-types/protocols/Aws_ec2.d.ts +18 -0
  39. package/dist-types/ts3.4/EC2.d.ts +40 -0
  40. package/dist-types/ts3.4/EC2Client.d.ts +12 -0
  41. package/dist-types/ts3.4/commands/CreateCapacityReservationBySplittingCommand.d.ts +40 -0
  42. package/dist-types/ts3.4/commands/CreateCapacityReservationFleetCommand.d.ts +4 -2
  43. package/dist-types/ts3.4/commands/CreateNetworkInterfaceCommand.d.ts +4 -2
  44. package/dist-types/ts3.4/commands/DeleteLaunchTemplateVersionsCommand.d.ts +2 -4
  45. package/dist-types/ts3.4/commands/DeleteLocalGatewayRouteCommand.d.ts +4 -2
  46. package/dist-types/ts3.4/commands/GetInstanceMetadataDefaultsCommand.d.ts +2 -4
  47. package/dist-types/ts3.4/commands/ModifyVpnTunnelCertificateCommand.d.ts +2 -4
  48. package/dist-types/ts3.4/commands/MoveCapacityReservationInstancesCommand.d.ts +40 -0
  49. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  50. package/dist-types/ts3.4/models/models_0.d.ts +12 -18
  51. package/dist-types/ts3.4/models/models_1.d.ts +19 -28
  52. package/dist-types/ts3.4/models/models_2.d.ts +32 -10
  53. package/dist-types/ts3.4/models/models_3.d.ts +13 -17
  54. package/dist-types/ts3.4/models/models_4.d.ts +16 -12
  55. package/dist-types/ts3.4/models/models_5.d.ts +10 -10
  56. package/dist-types/ts3.4/models/models_6.d.ts +12 -40
  57. package/dist-types/ts3.4/models/models_7.d.ts +53 -5
  58. package/dist-types/ts3.4/protocols/Aws_ec2.d.ts +24 -0
  59. package/package.json +7 -7
@@ -1,9 +1,31 @@
1
- import { _InstanceType, AccessScopeAnalysisFinding, AddedPrincipal, AddIpamOperatingRegion, AddPrefixListEntry, AddressAttribute, Affinity, ApplianceModeSupportValue, AutoPlacement, DnsSupportValue, EnaSrdSpecification, EndDateType, HostMaintenance, HostRecovery, InstanceEventWindow, IpamPoolAllocation, Ipv6SupportValue, SecurityGroupReferencingSupportValue, SubnetAssociation, Tag, TagSpecification, TargetConfigurationRequest, TransitGatewayAssociationState, TransitGatewayAttachmentResourceType, TransitGatewayPolicyTableAssociation, TransitGatewayVpcAttachment, UnsuccessfulItem, VerifiedAccessInstance, VerifiedAccessSseSpecificationResponse, VerifiedAccessTrustProvider } from "./models_0";
1
+ import { _InstanceType, AccessScopeAnalysisFinding, AddedPrincipal, AddIpamOperatingRegion, AddPrefixListEntry, AddressAttribute, Affinity, ApplianceModeSupportValue, AutoPlacement, DnsSupportValue, EnaSrdSpecification, EndDateType, HostMaintenance, HostRecovery, InstanceEventWindow, InstanceMatchCriteria, IpamPoolAllocation, Ipv6SupportValue, SecurityGroupReferencingSupportValue, SubnetAssociation, Tag, TagSpecification, TargetConfigurationRequest, TransitGatewayAssociationState, TransitGatewayAttachmentResourceType, TransitGatewayPolicyTableAssociation, TransitGatewayVpcAttachment, UnsuccessfulItem, VerifiedAccessInstance, VerifiedAccessSseSpecificationResponse, VerifiedAccessTrustProvider } from "./models_0";
2
2
  import { AttributeValue, CapacityReservationPreference, CapacityReservationTarget, ClientConnectOptions, ClientLoginBannerOptions, ConnectionLogOptions, ConnectionTrackingSpecificationRequest, DiskImageFormat, FleetExcessCapacityTerminationPolicy, FleetLaunchTemplateConfigRequest, HostnameType, InstanceEventWindowTimeRangeRequest, InstanceRequirementsRequest, Ipam, IpamPool, IpamResourceDiscovery, IpamResourceTag, IpamScope, IpamTier, LaunchTemplate, LocalGatewayRoute, ManagedPrefixList, NetworkInsightsAccessScopeContent, Placement, PlatformValues, RequestIpamResourceTag, ResponseLaunchTemplateData, SelfServicePortal, ShutdownBehavior, TargetCapacitySpecificationRequest, TargetCapacityUnitType, VolumeType } from "./models_1";
3
- import { AutoAcceptSharedAttachmentsValue, DefaultRouteTableAssociationValue, DefaultRouteTablePropagationValue, DnsOptionsSpecification, IKEVersionsRequestListValue, IpAddressType, PayerResponsibility, Phase1DHGroupNumbersRequestListValue, Phase1EncryptionAlgorithmsRequestListValue, Phase1IntegrityAlgorithmsRequestListValue, Phase2DHGroupNumbersRequestListValue, Phase2EncryptionAlgorithmsRequestListValue, Phase2IntegrityAlgorithmsRequestListValue, SubnetCidrReservation, SubnetConfiguration, TrafficDirection, TrafficMirrorFilter, TrafficMirrorFilterRule, TrafficMirrorNetworkService, TrafficMirrorPortRangeRequest, TrafficMirrorRuleAction, TrafficMirrorSession, TransitGateway, TransitGatewayPrefixListReference, VerifiedAccessEndpoint, VerifiedAccessEndpointProtocol, VerifiedAccessGroup, VerifiedAccessSseSpecificationRequest, VpnConnection, VpnEcmpSupportValue, VpnTunnelLogOptionsSpecification } from "./models_2";
3
+ import { AutoAcceptSharedAttachmentsValue, DefaultRouteTableAssociationValue, DefaultRouteTablePropagationValue, DnsOptionsSpecification, IpAddressType, PayerResponsibility, SubnetCidrReservation, SubnetConfiguration, TrafficDirection, TrafficMirrorFilter, TrafficMirrorFilterRule, TrafficMirrorNetworkService, TrafficMirrorPortRangeRequest, TrafficMirrorRuleAction, TrafficMirrorSession, TransitGateway, TransitGatewayPrefixListReference, VerifiedAccessEndpoint, VerifiedAccessEndpointProtocol, VerifiedAccessGroup, VerifiedAccessSseSpecificationRequest, VpnConnection, VpnEcmpSupportValue } from "./models_2";
4
4
  import { ArchitectureValues, BootModeValues, ConversionTask, Filter, FpgaImageAttribute, FpgaImageAttributeName, IpamPoolCidr, LaunchPermission, PermissionGroup } from "./models_3";
5
5
  import { AnalysisStatus, ArchitectureType, AttributeBooleanValue, CreateVolumePermission, ExcessCapacityTerminationPolicy, HttpTokensState, ImportImageLicenseConfigurationResponse, InstanceAttributeName, InstanceAutoRecoveryState, InstanceMetadataEndpointState, InstanceMetadataOptionsResponse, InstanceMetadataProtocolState, InstanceMetadataTagsState, InstanceStatusEvent, LaunchTemplateConfig, LockState, ReservedInstancesConfiguration, SnapshotAttributeName, SnapshotDetail, SnapshotTaskDetail, VirtualizationType } from "./models_4";
6
- import { EkPubKeyFormat, InstanceFamilyCreditSpecification, SnapshotBlockPublicAccessState, TransitGatewayPropagationState, UnlimitedSupportedInstanceFamily, VerifiedAccessInstanceLoggingConfiguration, VolumeModification } from "./models_5";
6
+ import { InstanceFamilyCreditSpecification, InstanceMetadataDefaultsResponse, SnapshotBlockPublicAccessState, TransitGatewayPropagationState, UnlimitedSupportedInstanceFamily, VerifiedAccessInstanceLoggingConfiguration, VolumeModification } from "./models_5";
7
+ /**
8
+ * @public
9
+ */
10
+ export interface GetInstanceMetadataDefaultsResult {
11
+ /**
12
+ * <p>The account-level default IMDS settings.</p>
13
+ * @public
14
+ */
15
+ AccountLevel?: InstanceMetadataDefaultsResponse;
16
+ }
17
+ /**
18
+ * @public
19
+ * @enum
20
+ */
21
+ export declare const EkPubKeyFormat: {
22
+ readonly der: "der";
23
+ readonly tpmt: "tpmt";
24
+ };
25
+ /**
26
+ * @public
27
+ */
28
+ export type EkPubKeyFormat = (typeof EkPubKeyFormat)[keyof typeof EkPubKeyFormat];
7
29
  /**
8
30
  * @public
9
31
  * @enum
@@ -4068,6 +4090,16 @@ export interface ModifyCapacityReservationRequest {
4068
4090
  * @public
4069
4091
  */
4070
4092
  AdditionalInfo?: string;
4093
+ /**
4094
+ * <p>
4095
+ * The matching criteria (instance eligibility) that you want to use in the modified Capacity Reservation. If you change the instance eligibility of an existing Capacity Reservation from <code>targeted</code> to <code>open</code>,
4096
+ * any running instances that match the attributes of the Capacity Reservation, have the <code>CapacityReservationPreference</code> set to <code>open</code>, and
4097
+ * are not yet running in the Capacity Reservation, will automatically use the modified Capacity Reservation.
4098
+ * </p>
4099
+ * <p>To modify the instance eligibility, the Capacity Reservation must be completely idle (zero usage).</p>
4100
+ * @public
4101
+ */
4102
+ InstanceMatchCriteria?: InstanceMatchCriteria;
4071
4103
  }
4072
4104
  /**
4073
4105
  * @public
@@ -8166,232 +8198,6 @@ export interface ModifyVpnTunnelCertificateRequest {
8166
8198
  */
8167
8199
  DryRun?: boolean;
8168
8200
  }
8169
- /**
8170
- * @public
8171
- */
8172
- export interface ModifyVpnTunnelCertificateResult {
8173
- /**
8174
- * <p>Information about the VPN connection.</p>
8175
- * @public
8176
- */
8177
- VpnConnection?: VpnConnection;
8178
- }
8179
- /**
8180
- * <p>The Amazon Web Services Site-to-Site VPN tunnel options to modify.</p>
8181
- * @public
8182
- */
8183
- export interface ModifyVpnTunnelOptionsSpecification {
8184
- /**
8185
- * <p>The range of inside IPv4 addresses for the tunnel. Any specified CIDR blocks must be
8186
- * unique across all VPN connections that use the same virtual private gateway. </p>
8187
- * <p>Constraints: A size /30 CIDR block from the <code>169.254.0.0/16</code> range. The
8188
- * following CIDR blocks are reserved and cannot be used:</p>
8189
- * <ul>
8190
- * <li>
8191
- * <p>
8192
- * <code>169.254.0.0/30</code>
8193
- * </p>
8194
- * </li>
8195
- * <li>
8196
- * <p>
8197
- * <code>169.254.1.0/30</code>
8198
- * </p>
8199
- * </li>
8200
- * <li>
8201
- * <p>
8202
- * <code>169.254.2.0/30</code>
8203
- * </p>
8204
- * </li>
8205
- * <li>
8206
- * <p>
8207
- * <code>169.254.3.0/30</code>
8208
- * </p>
8209
- * </li>
8210
- * <li>
8211
- * <p>
8212
- * <code>169.254.4.0/30</code>
8213
- * </p>
8214
- * </li>
8215
- * <li>
8216
- * <p>
8217
- * <code>169.254.5.0/30</code>
8218
- * </p>
8219
- * </li>
8220
- * <li>
8221
- * <p>
8222
- * <code>169.254.169.252/30</code>
8223
- * </p>
8224
- * </li>
8225
- * </ul>
8226
- * @public
8227
- */
8228
- TunnelInsideCidr?: string;
8229
- /**
8230
- * <p>The range of inside IPv6 addresses for the tunnel. Any specified CIDR blocks must be
8231
- * unique across all VPN connections that use the same transit gateway.</p>
8232
- * <p>Constraints: A size /126 CIDR block from the local <code>fd00::/8</code> range.</p>
8233
- * @public
8234
- */
8235
- TunnelInsideIpv6Cidr?: string;
8236
- /**
8237
- * <p>The pre-shared key (PSK) to establish initial authentication between the virtual
8238
- * private gateway and the customer gateway.</p>
8239
- * <p>Constraints: Allowed characters are alphanumeric characters, periods (.), and
8240
- * underscores (_). Must be between 8 and 64 characters in length and cannot start with
8241
- * zero (0).</p>
8242
- * @public
8243
- */
8244
- PreSharedKey?: string;
8245
- /**
8246
- * <p>The lifetime for phase 1 of the IKE negotiation, in seconds.</p>
8247
- * <p>Constraints: A value between 900 and 28,800.</p>
8248
- * <p>Default: <code>28800</code>
8249
- * </p>
8250
- * @public
8251
- */
8252
- Phase1LifetimeSeconds?: number;
8253
- /**
8254
- * <p>The lifetime for phase 2 of the IKE negotiation, in seconds.</p>
8255
- * <p>Constraints: A value between 900 and 3,600. The value must be less than the value for
8256
- * <code>Phase1LifetimeSeconds</code>.</p>
8257
- * <p>Default: <code>3600</code>
8258
- * </p>
8259
- * @public
8260
- */
8261
- Phase2LifetimeSeconds?: number;
8262
- /**
8263
- * <p>The margin time, in seconds, before the phase 2 lifetime expires, during which the
8264
- * Amazon Web Services side of the VPN connection performs an IKE rekey. The exact time
8265
- * of the rekey is randomly selected based on the value for
8266
- * <code>RekeyFuzzPercentage</code>.</p>
8267
- * <p>Constraints: A value between 60 and half of <code>Phase2LifetimeSeconds</code>.</p>
8268
- * <p>Default: <code>270</code>
8269
- * </p>
8270
- * @public
8271
- */
8272
- RekeyMarginTimeSeconds?: number;
8273
- /**
8274
- * <p>The percentage of the rekey window (determined by <code>RekeyMarginTimeSeconds</code>)
8275
- * during which the rekey time is randomly selected.</p>
8276
- * <p>Constraints: A value between 0 and 100.</p>
8277
- * <p>Default: <code>100</code>
8278
- * </p>
8279
- * @public
8280
- */
8281
- RekeyFuzzPercentage?: number;
8282
- /**
8283
- * <p>The number of packets in an IKE replay window.</p>
8284
- * <p>Constraints: A value between 64 and 2048.</p>
8285
- * <p>Default: <code>1024</code>
8286
- * </p>
8287
- * @public
8288
- */
8289
- ReplayWindowSize?: number;
8290
- /**
8291
- * <p>The number of seconds after which a DPD timeout occurs. A DPD timeout of 40 seconds means that the VPN endpoint will consider the peer dead 30 seconds after the first failed keep-alive.</p>
8292
- * <p>Constraints: A value greater than or equal to 30.</p>
8293
- * <p>Default: <code>40</code>
8294
- * </p>
8295
- * @public
8296
- */
8297
- DPDTimeoutSeconds?: number;
8298
- /**
8299
- * <p>The action to take after DPD timeout occurs. Specify <code>restart</code> to restart
8300
- * the IKE initiation. Specify <code>clear</code> to end the IKE session.</p>
8301
- * <p>Valid Values: <code>clear</code> | <code>none</code> | <code>restart</code>
8302
- * </p>
8303
- * <p>Default: <code>clear</code>
8304
- * </p>
8305
- * @public
8306
- */
8307
- DPDTimeoutAction?: string;
8308
- /**
8309
- * <p>One or more encryption algorithms that are permitted for the VPN tunnel for phase 1
8310
- * IKE negotiations.</p>
8311
- * <p>Valid values: <code>AES128</code> | <code>AES256</code> | <code>AES128-GCM-16</code> |
8312
- * <code>AES256-GCM-16</code>
8313
- * </p>
8314
- * @public
8315
- */
8316
- Phase1EncryptionAlgorithms?: Phase1EncryptionAlgorithmsRequestListValue[];
8317
- /**
8318
- * <p>One or more encryption algorithms that are permitted for the VPN tunnel for phase 2
8319
- * IKE negotiations.</p>
8320
- * <p>Valid values: <code>AES128</code> | <code>AES256</code> | <code>AES128-GCM-16</code> |
8321
- * <code>AES256-GCM-16</code>
8322
- * </p>
8323
- * @public
8324
- */
8325
- Phase2EncryptionAlgorithms?: Phase2EncryptionAlgorithmsRequestListValue[];
8326
- /**
8327
- * <p>One or more integrity algorithms that are permitted for the VPN tunnel for phase 1 IKE
8328
- * negotiations.</p>
8329
- * <p>Valid values: <code>SHA1</code> | <code>SHA2-256</code> | <code>SHA2-384</code> |
8330
- * <code>SHA2-512</code>
8331
- * </p>
8332
- * @public
8333
- */
8334
- Phase1IntegrityAlgorithms?: Phase1IntegrityAlgorithmsRequestListValue[];
8335
- /**
8336
- * <p>One or more integrity algorithms that are permitted for the VPN tunnel for phase 2 IKE
8337
- * negotiations.</p>
8338
- * <p>Valid values: <code>SHA1</code> | <code>SHA2-256</code> | <code>SHA2-384</code> |
8339
- * <code>SHA2-512</code>
8340
- * </p>
8341
- * @public
8342
- */
8343
- Phase2IntegrityAlgorithms?: Phase2IntegrityAlgorithmsRequestListValue[];
8344
- /**
8345
- * <p>One or more Diffie-Hellman group numbers that are permitted for the VPN tunnel for
8346
- * phase 1 IKE negotiations.</p>
8347
- * <p>Valid values: <code>2</code> | <code>14</code> | <code>15</code> | <code>16</code> |
8348
- * <code>17</code> | <code>18</code> | <code>19</code> | <code>20</code> |
8349
- * <code>21</code> | <code>22</code> | <code>23</code> | <code>24</code>
8350
- * </p>
8351
- * @public
8352
- */
8353
- Phase1DHGroupNumbers?: Phase1DHGroupNumbersRequestListValue[];
8354
- /**
8355
- * <p>One or more Diffie-Hellman group numbers that are permitted for the VPN tunnel for
8356
- * phase 2 IKE negotiations.</p>
8357
- * <p>Valid values: <code>2</code> | <code>5</code> | <code>14</code> | <code>15</code> |
8358
- * <code>16</code> | <code>17</code> | <code>18</code> | <code>19</code> |
8359
- * <code>20</code> | <code>21</code> | <code>22</code> | <code>23</code> |
8360
- * <code>24</code>
8361
- * </p>
8362
- * @public
8363
- */
8364
- Phase2DHGroupNumbers?: Phase2DHGroupNumbersRequestListValue[];
8365
- /**
8366
- * <p>The IKE versions that are permitted for the VPN tunnel.</p>
8367
- * <p>Valid values: <code>ikev1</code> | <code>ikev2</code>
8368
- * </p>
8369
- * @public
8370
- */
8371
- IKEVersions?: IKEVersionsRequestListValue[];
8372
- /**
8373
- * <p>The action to take when the establishing the tunnel for the VPN connection. By
8374
- * default, your customer gateway device must initiate the IKE negotiation and bring up the
8375
- * tunnel. Specify <code>start</code> for Amazon Web Services to initiate the IKE
8376
- * negotiation.</p>
8377
- * <p>Valid Values: <code>add</code> | <code>start</code>
8378
- * </p>
8379
- * <p>Default: <code>add</code>
8380
- * </p>
8381
- * @public
8382
- */
8383
- StartupAction?: string;
8384
- /**
8385
- * <p>Options for logging VPN tunnel activity.</p>
8386
- * @public
8387
- */
8388
- LogOptions?: VpnTunnelLogOptionsSpecification;
8389
- /**
8390
- * <p>Turn on or off tunnel endpoint lifecycle control feature.</p>
8391
- * @public
8392
- */
8393
- EnableTunnelLifecycleControl?: boolean;
8394
- }
8395
8201
  /**
8396
8202
  * @internal
8397
8203
  */
@@ -8484,11 +8290,3 @@ export declare const ModifyVpnConnectionResultFilterSensitiveLog: (obj: ModifyVp
8484
8290
  * @internal
8485
8291
  */
8486
8292
  export declare const ModifyVpnConnectionOptionsResultFilterSensitiveLog: (obj: ModifyVpnConnectionOptionsResult) => any;
8487
- /**
8488
- * @internal
8489
- */
8490
- export declare const ModifyVpnTunnelCertificateResultFilterSensitiveLog: (obj: ModifyVpnTunnelCertificateResult) => any;
8491
- /**
8492
- * @internal
8493
- */
8494
- export declare const ModifyVpnTunnelOptionsSpecificationFilterSensitiveLog: (obj: ModifyVpnTunnelOptionsSpecification) => any;
@@ -1,10 +1,236 @@
1
1
  import { _InstanceType, AddressAttribute, AddressAttributeName, ByoipCidr, CapacityReservation, CapacityReservationInstancePlatform, ClientVpnAuthorizationRuleStatus, CurrencyCodeValues, IamInstanceProfileAssociation, IamInstanceProfileSpecification, IpPermission, NatGatewayAddress, PortRange, RouteTableAssociationState, TagSpecification, TransitGatewayAttachmentResourceType, TransitGatewayMulticastDomainAssociations, TransitGatewayPeeringAttachment, TransitGatewayVpcAttachment, UnsuccessfulItem } from "./models_0";
2
2
  import { AmdSevSnpSpecification, BlockDeviceMapping, CreditSpecificationRequest, ElasticGpuSpecification, HostnameType, IcmpTypeCode, InstanceInterruptionBehavior, InstanceIpv6Address, LocalGatewayRoute, ManagedPrefixList, MarketType, Placement, RuleAction, ShutdownBehavior, SpotInstanceType } from "./models_1";
3
- import { SnapshotState, SSEType, TransitGatewayRoute, VpnConnection } from "./models_2";
4
- import { ArchitectureValues, BootModeValues, Byoasn, ClientVpnConnectionStatus, Filter, ImdsSupportValues, InstanceTagNotificationAttribute, IpamPoolCidr, TpmSupportValues } from "./models_3";
5
- import { HttpTokensState, InstanceAttributeName, InstanceAutoRecoveryState, InstanceMetadataEndpointState, InstanceMetadataProtocolState, InstanceMetadataTagsState, InstanceNetworkInterfaceSpecification, InstanceState, Monitoring, NetworkInsightsAccessScopeAnalysis, NetworkInsightsAnalysis, PublicIpv4PoolRange, ScheduledInstance, SnapshotAttributeName, SpotPlacement } from "./models_4";
3
+ import { IKEVersionsRequestListValue, Phase1DHGroupNumbersRequestListValue, Phase1EncryptionAlgorithmsRequestListValue, Phase1IntegrityAlgorithmsRequestListValue, Phase2DHGroupNumbersRequestListValue, Phase2EncryptionAlgorithmsRequestListValue, Phase2IntegrityAlgorithmsRequestListValue, SnapshotState, SSEType, TransitGatewayRoute, VpnConnection, VpnTunnelLogOptionsSpecification } from "./models_2";
4
+ import { ArchitectureValues, BootModeValues, Byoasn, ClientVpnConnectionStatus, Filter, ImdsSupportValues, InstanceTagNotificationAttribute, IpamPoolCidr } from "./models_3";
5
+ import { HttpTokensState, InstanceAttributeName, InstanceAutoRecoveryState, InstanceMetadataEndpointState, InstanceMetadataProtocolState, InstanceMetadataTagsState, InstanceNetworkInterfaceSpecification, InstanceState, Monitoring, NetworkInsightsAccessScopeAnalysis, NetworkInsightsAnalysis, PublicIpv4PoolRange, ScheduledInstance, SnapshotAttributeName, SpotPlacement, TpmSupportValues } from "./models_4";
6
6
  import { Purchase, RunInstancesMonitoringEnabled, SpotFleetRequestConfigData, SpotInstanceRequest } from "./models_5";
7
- import { CapacityReservationSpecification, ModifyVpnTunnelOptionsSpecification } from "./models_6";
7
+ import { CapacityReservationSpecification } from "./models_6";
8
+ /**
9
+ * @public
10
+ */
11
+ export interface ModifyVpnTunnelCertificateResult {
12
+ /**
13
+ * <p>Information about the VPN connection.</p>
14
+ * @public
15
+ */
16
+ VpnConnection?: VpnConnection;
17
+ }
18
+ /**
19
+ * <p>The Amazon Web Services Site-to-Site VPN tunnel options to modify.</p>
20
+ * @public
21
+ */
22
+ export interface ModifyVpnTunnelOptionsSpecification {
23
+ /**
24
+ * <p>The range of inside IPv4 addresses for the tunnel. Any specified CIDR blocks must be
25
+ * unique across all VPN connections that use the same virtual private gateway. </p>
26
+ * <p>Constraints: A size /30 CIDR block from the <code>169.254.0.0/16</code> range. The
27
+ * following CIDR blocks are reserved and cannot be used:</p>
28
+ * <ul>
29
+ * <li>
30
+ * <p>
31
+ * <code>169.254.0.0/30</code>
32
+ * </p>
33
+ * </li>
34
+ * <li>
35
+ * <p>
36
+ * <code>169.254.1.0/30</code>
37
+ * </p>
38
+ * </li>
39
+ * <li>
40
+ * <p>
41
+ * <code>169.254.2.0/30</code>
42
+ * </p>
43
+ * </li>
44
+ * <li>
45
+ * <p>
46
+ * <code>169.254.3.0/30</code>
47
+ * </p>
48
+ * </li>
49
+ * <li>
50
+ * <p>
51
+ * <code>169.254.4.0/30</code>
52
+ * </p>
53
+ * </li>
54
+ * <li>
55
+ * <p>
56
+ * <code>169.254.5.0/30</code>
57
+ * </p>
58
+ * </li>
59
+ * <li>
60
+ * <p>
61
+ * <code>169.254.169.252/30</code>
62
+ * </p>
63
+ * </li>
64
+ * </ul>
65
+ * @public
66
+ */
67
+ TunnelInsideCidr?: string;
68
+ /**
69
+ * <p>The range of inside IPv6 addresses for the tunnel. Any specified CIDR blocks must be
70
+ * unique across all VPN connections that use the same transit gateway.</p>
71
+ * <p>Constraints: A size /126 CIDR block from the local <code>fd00::/8</code> range.</p>
72
+ * @public
73
+ */
74
+ TunnelInsideIpv6Cidr?: string;
75
+ /**
76
+ * <p>The pre-shared key (PSK) to establish initial authentication between the virtual
77
+ * private gateway and the customer gateway.</p>
78
+ * <p>Constraints: Allowed characters are alphanumeric characters, periods (.), and
79
+ * underscores (_). Must be between 8 and 64 characters in length and cannot start with
80
+ * zero (0).</p>
81
+ * @public
82
+ */
83
+ PreSharedKey?: string;
84
+ /**
85
+ * <p>The lifetime for phase 1 of the IKE negotiation, in seconds.</p>
86
+ * <p>Constraints: A value between 900 and 28,800.</p>
87
+ * <p>Default: <code>28800</code>
88
+ * </p>
89
+ * @public
90
+ */
91
+ Phase1LifetimeSeconds?: number;
92
+ /**
93
+ * <p>The lifetime for phase 2 of the IKE negotiation, in seconds.</p>
94
+ * <p>Constraints: A value between 900 and 3,600. The value must be less than the value for
95
+ * <code>Phase1LifetimeSeconds</code>.</p>
96
+ * <p>Default: <code>3600</code>
97
+ * </p>
98
+ * @public
99
+ */
100
+ Phase2LifetimeSeconds?: number;
101
+ /**
102
+ * <p>The margin time, in seconds, before the phase 2 lifetime expires, during which the
103
+ * Amazon Web Services side of the VPN connection performs an IKE rekey. The exact time
104
+ * of the rekey is randomly selected based on the value for
105
+ * <code>RekeyFuzzPercentage</code>.</p>
106
+ * <p>Constraints: A value between 60 and half of <code>Phase2LifetimeSeconds</code>.</p>
107
+ * <p>Default: <code>270</code>
108
+ * </p>
109
+ * @public
110
+ */
111
+ RekeyMarginTimeSeconds?: number;
112
+ /**
113
+ * <p>The percentage of the rekey window (determined by <code>RekeyMarginTimeSeconds</code>)
114
+ * during which the rekey time is randomly selected.</p>
115
+ * <p>Constraints: A value between 0 and 100.</p>
116
+ * <p>Default: <code>100</code>
117
+ * </p>
118
+ * @public
119
+ */
120
+ RekeyFuzzPercentage?: number;
121
+ /**
122
+ * <p>The number of packets in an IKE replay window.</p>
123
+ * <p>Constraints: A value between 64 and 2048.</p>
124
+ * <p>Default: <code>1024</code>
125
+ * </p>
126
+ * @public
127
+ */
128
+ ReplayWindowSize?: number;
129
+ /**
130
+ * <p>The number of seconds after which a DPD timeout occurs. A DPD timeout of 40 seconds means that the VPN endpoint will consider the peer dead 30 seconds after the first failed keep-alive.</p>
131
+ * <p>Constraints: A value greater than or equal to 30.</p>
132
+ * <p>Default: <code>40</code>
133
+ * </p>
134
+ * @public
135
+ */
136
+ DPDTimeoutSeconds?: number;
137
+ /**
138
+ * <p>The action to take after DPD timeout occurs. Specify <code>restart</code> to restart
139
+ * the IKE initiation. Specify <code>clear</code> to end the IKE session.</p>
140
+ * <p>Valid Values: <code>clear</code> | <code>none</code> | <code>restart</code>
141
+ * </p>
142
+ * <p>Default: <code>clear</code>
143
+ * </p>
144
+ * @public
145
+ */
146
+ DPDTimeoutAction?: string;
147
+ /**
148
+ * <p>One or more encryption algorithms that are permitted for the VPN tunnel for phase 1
149
+ * IKE negotiations.</p>
150
+ * <p>Valid values: <code>AES128</code> | <code>AES256</code> | <code>AES128-GCM-16</code> |
151
+ * <code>AES256-GCM-16</code>
152
+ * </p>
153
+ * @public
154
+ */
155
+ Phase1EncryptionAlgorithms?: Phase1EncryptionAlgorithmsRequestListValue[];
156
+ /**
157
+ * <p>One or more encryption algorithms that are permitted for the VPN tunnel for phase 2
158
+ * IKE negotiations.</p>
159
+ * <p>Valid values: <code>AES128</code> | <code>AES256</code> | <code>AES128-GCM-16</code> |
160
+ * <code>AES256-GCM-16</code>
161
+ * </p>
162
+ * @public
163
+ */
164
+ Phase2EncryptionAlgorithms?: Phase2EncryptionAlgorithmsRequestListValue[];
165
+ /**
166
+ * <p>One or more integrity algorithms that are permitted for the VPN tunnel for phase 1 IKE
167
+ * negotiations.</p>
168
+ * <p>Valid values: <code>SHA1</code> | <code>SHA2-256</code> | <code>SHA2-384</code> |
169
+ * <code>SHA2-512</code>
170
+ * </p>
171
+ * @public
172
+ */
173
+ Phase1IntegrityAlgorithms?: Phase1IntegrityAlgorithmsRequestListValue[];
174
+ /**
175
+ * <p>One or more integrity algorithms that are permitted for the VPN tunnel for phase 2 IKE
176
+ * negotiations.</p>
177
+ * <p>Valid values: <code>SHA1</code> | <code>SHA2-256</code> | <code>SHA2-384</code> |
178
+ * <code>SHA2-512</code>
179
+ * </p>
180
+ * @public
181
+ */
182
+ Phase2IntegrityAlgorithms?: Phase2IntegrityAlgorithmsRequestListValue[];
183
+ /**
184
+ * <p>One or more Diffie-Hellman group numbers that are permitted for the VPN tunnel for
185
+ * phase 1 IKE negotiations.</p>
186
+ * <p>Valid values: <code>2</code> | <code>14</code> | <code>15</code> | <code>16</code> |
187
+ * <code>17</code> | <code>18</code> | <code>19</code> | <code>20</code> |
188
+ * <code>21</code> | <code>22</code> | <code>23</code> | <code>24</code>
189
+ * </p>
190
+ * @public
191
+ */
192
+ Phase1DHGroupNumbers?: Phase1DHGroupNumbersRequestListValue[];
193
+ /**
194
+ * <p>One or more Diffie-Hellman group numbers that are permitted for the VPN tunnel for
195
+ * phase 2 IKE negotiations.</p>
196
+ * <p>Valid values: <code>2</code> | <code>5</code> | <code>14</code> | <code>15</code> |
197
+ * <code>16</code> | <code>17</code> | <code>18</code> | <code>19</code> |
198
+ * <code>20</code> | <code>21</code> | <code>22</code> | <code>23</code> |
199
+ * <code>24</code>
200
+ * </p>
201
+ * @public
202
+ */
203
+ Phase2DHGroupNumbers?: Phase2DHGroupNumbersRequestListValue[];
204
+ /**
205
+ * <p>The IKE versions that are permitted for the VPN tunnel.</p>
206
+ * <p>Valid values: <code>ikev1</code> | <code>ikev2</code>
207
+ * </p>
208
+ * @public
209
+ */
210
+ IKEVersions?: IKEVersionsRequestListValue[];
211
+ /**
212
+ * <p>The action to take when the establishing the tunnel for the VPN connection. By
213
+ * default, your customer gateway device must initiate the IKE negotiation and bring up the
214
+ * tunnel. Specify <code>start</code> for Amazon Web Services to initiate the IKE
215
+ * negotiation.</p>
216
+ * <p>Valid Values: <code>add</code> | <code>start</code>
217
+ * </p>
218
+ * <p>Default: <code>add</code>
219
+ * </p>
220
+ * @public
221
+ */
222
+ StartupAction?: string;
223
+ /**
224
+ * <p>Options for logging VPN tunnel activity.</p>
225
+ * @public
226
+ */
227
+ LogOptions?: VpnTunnelLogOptionsSpecification;
228
+ /**
229
+ * <p>Turn on or off tunnel endpoint lifecycle control feature.</p>
230
+ * @public
231
+ */
232
+ EnableTunnelLifecycleControl?: boolean;
233
+ }
8
234
  /**
9
235
  * @public
10
236
  */
@@ -175,6 +401,67 @@ export interface MoveByoipCidrToIpamResult {
175
401
  */
176
402
  ByoipCidr?: ByoipCidr;
177
403
  }
404
+ /**
405
+ * @public
406
+ */
407
+ export interface MoveCapacityReservationInstancesRequest {
408
+ /**
409
+ * <p>Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>
410
+ * @public
411
+ */
412
+ DryRun?: boolean;
413
+ /**
414
+ * <p>Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">Ensure Idempotency</a>.</p>
415
+ * @public
416
+ */
417
+ ClientToken?: string;
418
+ /**
419
+ * <p>
420
+ * The ID of the Capacity Reservation from which you want to move capacity.
421
+ * </p>
422
+ * @public
423
+ */
424
+ SourceCapacityReservationId: string | undefined;
425
+ /**
426
+ * <p>
427
+ * The ID of the Capacity Reservation that you want to move capacity into.
428
+ * </p>
429
+ * @public
430
+ */
431
+ DestinationCapacityReservationId: string | undefined;
432
+ /**
433
+ * <p>The number of instances that you want to move from the source Capacity Reservation.
434
+ * </p>
435
+ * @public
436
+ */
437
+ InstanceCount: number | undefined;
438
+ }
439
+ /**
440
+ * @public
441
+ */
442
+ export interface MoveCapacityReservationInstancesResult {
443
+ /**
444
+ * <p>
445
+ * Information about the source Capacity Reservation.
446
+ * </p>
447
+ * @public
448
+ */
449
+ SourceCapacityReservation?: CapacityReservation;
450
+ /**
451
+ * <p>
452
+ * Information about the destination Capacity Reservation.
453
+ * </p>
454
+ * @public
455
+ */
456
+ DestinationCapacityReservation?: CapacityReservation;
457
+ /**
458
+ * <p>
459
+ * The number of instances that were moved from the source Capacity Reservation to the destination Capacity Reservation.
460
+ * </p>
461
+ * @public
462
+ */
463
+ InstanceCount?: number;
464
+ }
178
465
  /**
179
466
  * <p>Provides authorization for Amazon to bring a specific IP address range to a specific
180
467
  * Amazon Web Services account using bring your own IP addresses (BYOIP). For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-byoip.html#prepare-for-byoip">Configuring your BYOIP address range</a> in the <i>Amazon EC2 User Guide</i>.</p>
@@ -4570,6 +4857,14 @@ export interface WithdrawByoipCidrResult {
4570
4857
  */
4571
4858
  ByoipCidr?: ByoipCidr;
4572
4859
  }
4860
+ /**
4861
+ * @internal
4862
+ */
4863
+ export declare const ModifyVpnTunnelCertificateResultFilterSensitiveLog: (obj: ModifyVpnTunnelCertificateResult) => any;
4864
+ /**
4865
+ * @internal
4866
+ */
4867
+ export declare const ModifyVpnTunnelOptionsSpecificationFilterSensitiveLog: (obj: ModifyVpnTunnelOptionsSpecification) => any;
4573
4868
  /**
4574
4869
  * @internal
4575
4870
  */