@aws-sdk/client-ec2 3.301.0 → 3.304.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 (66) hide show
  1. package/README.md +16 -0
  2. package/dist-cjs/EC2.js +30 -0
  3. package/dist-cjs/commands/GetVpnTunnelReplacementStatusCommand.js +45 -0
  4. package/dist-cjs/commands/ReplaceVpnTunnelCommand.js +45 -0
  5. package/dist-cjs/commands/index.js +2 -0
  6. package/dist-cjs/endpoint/ruleset.js +3 -3
  7. package/dist-cjs/models/models_0.js +1126 -1192
  8. package/dist-cjs/models/models_1.js +397 -469
  9. package/dist-cjs/models/models_2.js +280 -336
  10. package/dist-cjs/models/models_3.js +241 -286
  11. package/dist-cjs/models/models_4.js +197 -235
  12. package/dist-cjs/models/models_5.js +77 -91
  13. package/dist-cjs/models/models_6.js +65 -79
  14. package/dist-cjs/protocols/Aws_ec2.js +180 -15
  15. package/dist-es/EC2.js +30 -0
  16. package/dist-es/commands/GetVpnTunnelReplacementStatusCommand.js +41 -0
  17. package/dist-es/commands/ReplaceVpnTunnelCommand.js +41 -0
  18. package/dist-es/commands/index.js +2 -0
  19. package/dist-es/endpoint/ruleset.js +3 -3
  20. package/dist-es/models/models_0.js +1126 -1192
  21. package/dist-es/models/models_1.js +397 -469
  22. package/dist-es/models/models_2.js +280 -336
  23. package/dist-es/models/models_3.js +241 -286
  24. package/dist-es/models/models_4.js +197 -235
  25. package/dist-es/models/models_5.js +77 -91
  26. package/dist-es/models/models_6.js +65 -79
  27. package/dist-es/protocols/Aws_ec2.js +161 -0
  28. package/dist-types/EC2.d.ts +16 -0
  29. package/dist-types/EC2Client.d.ts +4 -2
  30. package/dist-types/commands/CreateVpnConnectionCommand.d.ts +1 -0
  31. package/dist-types/commands/GetVpnTunnelReplacementStatusCommand.d.ts +65 -0
  32. package/dist-types/commands/ImportSnapshotCommand.d.ts +1 -1
  33. package/dist-types/commands/ModifyVpnTunnelOptionsCommand.d.ts +2 -0
  34. package/dist-types/commands/ReplaceVpnTunnelCommand.d.ts +66 -0
  35. package/dist-types/commands/StartInstancesCommand.d.ts +2 -1
  36. package/dist-types/commands/StartNetworkInsightsAccessScopeAnalysisCommand.d.ts +1 -1
  37. package/dist-types/commands/StartNetworkInsightsAnalysisCommand.d.ts +1 -2
  38. package/dist-types/commands/index.d.ts +2 -0
  39. package/dist-types/models/models_0.d.ts +1464 -1134
  40. package/dist-types/models/models_1.d.ts +757 -397
  41. package/dist-types/models/models_2.d.ts +568 -280
  42. package/dist-types/models/models_3.d.ts +466 -241
  43. package/dist-types/models/models_4.d.ts +388 -198
  44. package/dist-types/models/models_5.d.ts +214 -192
  45. package/dist-types/models/models_6.d.ts +299 -159
  46. package/dist-types/models/models_7.d.ts +95 -3
  47. package/dist-types/protocols/Aws_ec2.d.ts +6 -0
  48. package/dist-types/ts3.4/EC2.d.ts +34 -0
  49. package/dist-types/ts3.4/EC2Client.d.ts +12 -0
  50. package/dist-types/ts3.4/commands/GetVpnTunnelReplacementStatusCommand.d.ts +41 -0
  51. package/dist-types/ts3.4/commands/ImportSnapshotCommand.d.ts +1 -1
  52. package/dist-types/ts3.4/commands/ReplaceVpnTunnelCommand.d.ts +37 -0
  53. package/dist-types/ts3.4/commands/StartInstancesCommand.d.ts +2 -4
  54. package/dist-types/ts3.4/commands/StartNetworkInsightsAccessScopeAnalysisCommand.d.ts +1 -1
  55. package/dist-types/ts3.4/commands/StartNetworkInsightsAnalysisCommand.d.ts +4 -2
  56. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  57. package/dist-types/ts3.4/models/models_0.d.ts +1244 -1126
  58. package/dist-types/ts3.4/models/models_1.d.ts +523 -397
  59. package/dist-types/ts3.4/models/models_2.d.ts +381 -280
  60. package/dist-types/ts3.4/models/models_3.d.ts +324 -241
  61. package/dist-types/ts3.4/models/models_4.d.ts +261 -197
  62. package/dist-types/ts3.4/models/models_5.d.ts +123 -101
  63. package/dist-types/ts3.4/models/models_6.d.ts +126 -91
  64. package/dist-types/ts3.4/models/models_7.d.ts +37 -3
  65. package/dist-types/ts3.4/protocols/Aws_ec2.d.ts +24 -0
  66. package/package.json +36 -36
@@ -76,7 +76,6 @@ import {
76
76
  PaymentOption,
77
77
  PeriodType,
78
78
  SnapshotDetail,
79
- SnapshotTaskDetail,
80
79
  StatisticType,
81
80
  VirtualizationType,
82
81
  } from "./models_3";
@@ -92,12 +91,14 @@ export interface DescribeVolumesModificationsRequest {
92
91
  NextToken?: string;
93
92
  MaxResults?: number;
94
93
  }
95
- export declare enum VolumeModificationState {
96
- completed = "completed",
97
- failed = "failed",
98
- modifying = "modifying",
99
- optimizing = "optimizing",
100
- }
94
+ export declare const VolumeModificationState: {
95
+ readonly completed: "completed";
96
+ readonly failed: "failed";
97
+ readonly modifying: "modifying";
98
+ readonly optimizing: "optimizing";
99
+ };
100
+ export type VolumeModificationState =
101
+ (typeof VolumeModificationState)[keyof typeof VolumeModificationState];
101
102
  export interface VolumeModification {
102
103
  VolumeId?: string;
103
104
  ModificationState?: VolumeModificationState | string;
@@ -145,19 +146,23 @@ export interface VolumeStatusEvent {
145
146
  NotBefore?: Date;
146
147
  InstanceId?: string;
147
148
  }
148
- export declare enum VolumeStatusName {
149
- io_enabled = "io-enabled",
150
- io_performance = "io-performance",
151
- }
149
+ export declare const VolumeStatusName: {
150
+ readonly io_enabled: "io-enabled";
151
+ readonly io_performance: "io-performance";
152
+ };
153
+ export type VolumeStatusName =
154
+ (typeof VolumeStatusName)[keyof typeof VolumeStatusName];
152
155
  export interface VolumeStatusDetails {
153
156
  Name?: VolumeStatusName | string;
154
157
  Status?: string;
155
158
  }
156
- export declare enum VolumeStatusInfoStatus {
157
- impaired = "impaired",
158
- insufficient_data = "insufficient-data",
159
- ok = "ok",
160
- }
159
+ export declare const VolumeStatusInfoStatus: {
160
+ readonly impaired: "impaired";
161
+ readonly insufficient_data: "insufficient-data";
162
+ readonly ok: "ok";
163
+ };
164
+ export type VolumeStatusInfoStatus =
165
+ (typeof VolumeStatusInfoStatus)[keyof typeof VolumeStatusInfoStatus];
161
166
  export interface VolumeStatusInfo {
162
167
  Details?: VolumeStatusDetails[];
163
168
  Status?: VolumeStatusInfoStatus | string;
@@ -175,11 +180,13 @@ export interface DescribeVolumeStatusResult {
175
180
  NextToken?: string;
176
181
  VolumeStatuses?: VolumeStatusItem[];
177
182
  }
178
- export declare enum VpcAttributeName {
179
- enableDnsHostnames = "enableDnsHostnames",
180
- enableDnsSupport = "enableDnsSupport",
181
- enableNetworkAddressUsageMetrics = "enableNetworkAddressUsageMetrics",
182
- }
183
+ export declare const VpcAttributeName: {
184
+ readonly enableDnsHostnames: "enableDnsHostnames";
185
+ readonly enableDnsSupport: "enableDnsSupport";
186
+ readonly enableNetworkAddressUsageMetrics: "enableNetworkAddressUsageMetrics";
187
+ };
188
+ export type VpcAttributeName =
189
+ (typeof VpcAttributeName)[keyof typeof VpcAttributeName];
183
190
  export interface DescribeVpcAttributeRequest {
184
191
  Attribute: VpcAttributeName | string | undefined;
185
192
  VpcId: string | undefined;
@@ -493,12 +500,14 @@ export interface DisableTransitGatewayRouteTablePropagationRequest {
493
500
  DryRun?: boolean;
494
501
  TransitGatewayRouteTableAnnouncementId?: string;
495
502
  }
496
- export declare enum TransitGatewayPropagationState {
497
- disabled = "disabled",
498
- disabling = "disabling",
499
- enabled = "enabled",
500
- enabling = "enabling",
501
- }
503
+ export declare const TransitGatewayPropagationState: {
504
+ readonly disabled: "disabled";
505
+ readonly disabling: "disabling";
506
+ readonly enabled: "enabled";
507
+ readonly enabling: "enabling";
508
+ };
509
+ export type TransitGatewayPropagationState =
510
+ (typeof TransitGatewayPropagationState)[keyof typeof TransitGatewayPropagationState];
502
511
  export interface TransitGatewayPropagation {
503
512
  TransitGatewayAttachmentId?: string;
504
513
  ResourceId?: string;
@@ -786,10 +795,12 @@ export interface ExportClientVpnClientCertificateRevocationListRequest {
786
795
  ClientVpnEndpointId: string | undefined;
787
796
  DryRun?: boolean;
788
797
  }
789
- export declare enum ClientCertificateRevocationListStatusCode {
790
- active = "active",
791
- pending = "pending",
792
- }
798
+ export declare const ClientCertificateRevocationListStatusCode: {
799
+ readonly active: "active";
800
+ readonly pending: "pending";
801
+ };
802
+ export type ClientCertificateRevocationListStatusCode =
803
+ (typeof ClientCertificateRevocationListStatusCode)[keyof typeof ClientCertificateRevocationListStatusCode];
793
804
  export interface ClientCertificateRevocationListStatus {
794
805
  Code?: ClientCertificateRevocationListStatusCode | string;
795
806
  Message?: string;
@@ -958,12 +969,14 @@ export interface GetConsoleScreenshotResult {
958
969
  ImageData?: string;
959
970
  InstanceId?: string;
960
971
  }
961
- export declare enum UnlimitedSupportedInstanceFamily {
962
- t2 = "t2",
963
- t3 = "t3",
964
- t3a = "t3a",
965
- t4g = "t4g",
966
- }
972
+ export declare const UnlimitedSupportedInstanceFamily: {
973
+ readonly t2: "t2";
974
+ readonly t3: "t3";
975
+ readonly t3a: "t3a";
976
+ readonly t4g: "t4g";
977
+ };
978
+ export type UnlimitedSupportedInstanceFamily =
979
+ (typeof UnlimitedSupportedInstanceFamily)[keyof typeof UnlimitedSupportedInstanceFamily];
967
980
  export interface GetDefaultCreditSpecificationRequest {
968
981
  DryRun?: boolean;
969
982
  InstanceFamily: UnlimitedSupportedInstanceFamily | string | undefined;
@@ -987,12 +1000,14 @@ export interface GetEbsEncryptionByDefaultRequest {
987
1000
  export interface GetEbsEncryptionByDefaultResult {
988
1001
  EbsEncryptionByDefault?: boolean;
989
1002
  }
990
- export declare enum PartitionLoadFrequency {
991
- DAILY = "daily",
992
- MONTHLY = "monthly",
993
- NONE = "none",
994
- WEEKLY = "weekly",
995
- }
1003
+ export declare const PartitionLoadFrequency: {
1004
+ readonly DAILY: "daily";
1005
+ readonly MONTHLY: "monthly";
1006
+ readonly NONE: "none";
1007
+ readonly WEEKLY: "weekly";
1008
+ };
1009
+ export type PartitionLoadFrequency =
1010
+ (typeof PartitionLoadFrequency)[keyof typeof PartitionLoadFrequency];
996
1011
  export interface AthenaIntegration {
997
1012
  IntegrationResultS3DestinationArn: string | undefined;
998
1013
  PartitionLoadFrequency: PartitionLoadFrequency | string | undefined;
@@ -1078,24 +1093,30 @@ export interface GetIpamAddressHistoryRequest {
1078
1093
  MaxResults?: number;
1079
1094
  NextToken?: string;
1080
1095
  }
1081
- export declare enum IpamComplianceStatus {
1082
- compliant = "compliant",
1083
- ignored = "ignored",
1084
- noncompliant = "noncompliant",
1085
- unmanaged = "unmanaged",
1086
- }
1087
- export declare enum IpamOverlapStatus {
1088
- ignored = "ignored",
1089
- nonoverlapping = "nonoverlapping",
1090
- overlapping = "overlapping",
1091
- }
1092
- export declare enum IpamAddressHistoryResourceType {
1093
- eip = "eip",
1094
- instance = "instance",
1095
- network_interface = "network-interface",
1096
- subnet = "subnet",
1097
- vpc = "vpc",
1098
- }
1096
+ export declare const IpamComplianceStatus: {
1097
+ readonly compliant: "compliant";
1098
+ readonly ignored: "ignored";
1099
+ readonly noncompliant: "noncompliant";
1100
+ readonly unmanaged: "unmanaged";
1101
+ };
1102
+ export type IpamComplianceStatus =
1103
+ (typeof IpamComplianceStatus)[keyof typeof IpamComplianceStatus];
1104
+ export declare const IpamOverlapStatus: {
1105
+ readonly ignored: "ignored";
1106
+ readonly nonoverlapping: "nonoverlapping";
1107
+ readonly overlapping: "overlapping";
1108
+ };
1109
+ export type IpamOverlapStatus =
1110
+ (typeof IpamOverlapStatus)[keyof typeof IpamOverlapStatus];
1111
+ export declare const IpamAddressHistoryResourceType: {
1112
+ readonly eip: "eip";
1113
+ readonly instance: "instance";
1114
+ readonly network_interface: "network-interface";
1115
+ readonly subnet: "subnet";
1116
+ readonly vpc: "vpc";
1117
+ };
1118
+ export type IpamAddressHistoryResourceType =
1119
+ (typeof IpamAddressHistoryResourceType)[keyof typeof IpamAddressHistoryResourceType];
1099
1120
  export interface IpamAddressHistoryRecord {
1100
1121
  ResourceOwnerId?: string;
1101
1122
  ResourceRegion?: string;
@@ -1121,11 +1142,13 @@ export interface GetIpamDiscoveredAccountsRequest {
1121
1142
  NextToken?: string;
1122
1143
  MaxResults?: number;
1123
1144
  }
1124
- export declare enum IpamDiscoveryFailureCode {
1125
- assume_role_failure = "assume-role-failure",
1126
- throttling_failure = "throttling-failure",
1127
- unauthorized_failure = "unauthorized-failure",
1128
- }
1145
+ export declare const IpamDiscoveryFailureCode: {
1146
+ readonly assume_role_failure: "assume-role-failure";
1147
+ readonly throttling_failure: "throttling-failure";
1148
+ readonly unauthorized_failure: "unauthorized-failure";
1149
+ };
1150
+ export type IpamDiscoveryFailureCode =
1151
+ (typeof IpamDiscoveryFailureCode)[keyof typeof IpamDiscoveryFailureCode];
1129
1152
  export interface IpamDiscoveryFailureReason {
1130
1153
  Code?: IpamDiscoveryFailureCode | string;
1131
1154
  Message?: string;
@@ -1149,13 +1172,15 @@ export interface GetIpamDiscoveredResourceCidrsRequest {
1149
1172
  NextToken?: string;
1150
1173
  MaxResults?: number;
1151
1174
  }
1152
- export declare enum IpamResourceType {
1153
- eip = "eip",
1154
- ipv6_pool = "ipv6-pool",
1155
- public_ipv4_pool = "public-ipv4-pool",
1156
- subnet = "subnet",
1157
- vpc = "vpc",
1158
- }
1175
+ export declare const IpamResourceType: {
1176
+ readonly eip: "eip";
1177
+ readonly ipv6_pool: "ipv6-pool";
1178
+ readonly public_ipv4_pool: "public-ipv4-pool";
1179
+ readonly subnet: "subnet";
1180
+ readonly vpc: "vpc";
1181
+ };
1182
+ export type IpamResourceType =
1183
+ (typeof IpamResourceType)[keyof typeof IpamResourceType];
1159
1184
  export interface IpamDiscoveredResourceCidr {
1160
1185
  IpamResourceDiscoveryId?: string;
1161
1186
  ResourceRegion?: string;
@@ -1207,11 +1232,13 @@ export interface GetIpamResourceCidrsRequest {
1207
1232
  ResourceTag?: RequestIpamResourceTag;
1208
1233
  ResourceOwner?: string;
1209
1234
  }
1210
- export declare enum IpamManagementState {
1211
- ignored = "ignored",
1212
- managed = "managed",
1213
- unmanaged = "unmanaged",
1214
- }
1235
+ export declare const IpamManagementState: {
1236
+ readonly ignored: "ignored";
1237
+ readonly managed: "managed";
1238
+ readonly unmanaged: "unmanaged";
1239
+ };
1240
+ export type IpamManagementState =
1241
+ (typeof IpamManagementState)[keyof typeof IpamManagementState];
1215
1242
  export interface IpamResourceCidr {
1216
1243
  IpamId?: string;
1217
1244
  IpamScopeId?: string;
@@ -1530,6 +1557,24 @@ export interface GetVpnConnectionDeviceTypesResult {
1530
1557
  VpnConnectionDeviceTypes?: VpnConnectionDeviceType[];
1531
1558
  NextToken?: string;
1532
1559
  }
1560
+ export interface GetVpnTunnelReplacementStatusRequest {
1561
+ VpnConnectionId: string | undefined;
1562
+ VpnTunnelOutsideIpAddress: string | undefined;
1563
+ DryRun?: boolean;
1564
+ }
1565
+ export interface MaintenanceDetails {
1566
+ PendingMaintenance?: string;
1567
+ MaintenanceAutoAppliedAfter?: Date;
1568
+ LastMaintenanceApplied?: Date;
1569
+ }
1570
+ export interface GetVpnTunnelReplacementStatusResult {
1571
+ VpnConnectionId?: string;
1572
+ TransitGatewayId?: string;
1573
+ CustomerGatewayId?: string;
1574
+ VpnGatewayId?: string;
1575
+ VpnTunnelOutsideIpAddress?: string;
1576
+ MaintenanceDetails?: MaintenanceDetails;
1577
+ }
1533
1578
  export interface ImportClientVpnClientCertificateRevocationListRequest {
1534
1579
  ClientVpnEndpointId: string | undefined;
1535
1580
  CertificateRevocationList: string | undefined;
@@ -1646,29 +1691,6 @@ export interface ImportKeyPairResult {
1646
1691
  KeyPairId?: string;
1647
1692
  Tags?: Tag[];
1648
1693
  }
1649
- export interface SnapshotDiskContainer {
1650
- Description?: string;
1651
- Format?: string;
1652
- Url?: string;
1653
- UserBucket?: UserBucket;
1654
- }
1655
- export interface ImportSnapshotRequest {
1656
- ClientData?: ClientData;
1657
- ClientToken?: string;
1658
- Description?: string;
1659
- DiskContainer?: SnapshotDiskContainer;
1660
- DryRun?: boolean;
1661
- Encrypted?: boolean;
1662
- KmsKeyId?: string;
1663
- RoleName?: string;
1664
- TagSpecifications?: TagSpecification[];
1665
- }
1666
- export interface ImportSnapshotResult {
1667
- Description?: string;
1668
- ImportTaskId?: string;
1669
- SnapshotTaskDetail?: SnapshotTaskDetail;
1670
- Tags?: Tag[];
1671
- }
1672
1694
  export declare const GetLaunchTemplateDataResultFilterSensitiveLog: (
1673
1695
  obj: GetLaunchTemplateDataResult
1674
1696
  ) => any;