@aws-sdk/client-ec2 3.556.0 → 3.561.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/README.md +16 -0
  2. package/dist-cjs/index.js +164 -26
  3. package/dist-es/EC2.js +4 -0
  4. package/dist-es/commands/DisableImageDeregistrationProtectionCommand.js +24 -0
  5. package/dist-es/commands/EnableImageDeregistrationProtectionCommand.js +24 -0
  6. package/dist-es/commands/index.js +2 -0
  7. package/dist-es/models/models_3.js +1 -0
  8. package/dist-es/models/models_5.js +0 -11
  9. package/dist-es/models/models_6.js +11 -0
  10. package/dist-es/protocols/Aws_ec2.js +110 -13
  11. package/dist-types/EC2.d.ts +14 -0
  12. package/dist-types/EC2Client.d.ts +4 -2
  13. package/dist-types/commands/CancelSpotFleetRequestsCommand.d.ts +9 -0
  14. package/dist-types/commands/CreateDhcpOptionsCommand.d.ts +1 -1
  15. package/dist-types/commands/CreateLaunchTemplateCommand.d.ts +3 -3
  16. package/dist-types/commands/CreateLaunchTemplateVersionCommand.d.ts +6 -5
  17. package/dist-types/commands/DeleteFleetsCommand.d.ts +15 -8
  18. package/dist-types/commands/DescribeImageAttributeCommand.d.ts +2 -1
  19. package/dist-types/commands/DescribeImagesCommand.d.ts +6 -0
  20. package/dist-types/commands/DescribeInstanceTypeOfferingsCommand.d.ts +2 -2
  21. package/dist-types/commands/DescribeInstanceTypesCommand.d.ts +2 -2
  22. package/dist-types/commands/DescribeInstancesCommand.d.ts +4 -0
  23. package/dist-types/commands/DescribeNetworkInterfacesCommand.d.ts +4 -0
  24. package/dist-types/commands/DescribeSnapshotsCommand.d.ts +4 -0
  25. package/dist-types/commands/DescribeTagsCommand.d.ts +4 -0
  26. package/dist-types/commands/DescribeVolumesCommand.d.ts +4 -0
  27. package/dist-types/commands/DisableImageDeregistrationProtectionCommand.d.ts +66 -0
  28. package/dist-types/commands/EnableImageDeregistrationProtectionCommand.d.ts +66 -0
  29. package/dist-types/commands/GetConsoleScreenshotCommand.d.ts +1 -0
  30. package/dist-types/commands/GetIpamDiscoveredAccountsCommand.d.ts +2 -1
  31. package/dist-types/commands/GetIpamDiscoveredPublicAddressesCommand.d.ts +1 -2
  32. package/dist-types/commands/ModifyInstanceMetadataDefaultsCommand.d.ts +3 -2
  33. package/dist-types/commands/ProvisionPublicIpv4PoolCidrCommand.d.ts +2 -1
  34. package/dist-types/commands/PurchaseCapacityBlockCommand.d.ts +1 -1
  35. package/dist-types/commands/PurchaseHostReservationCommand.d.ts +1 -2
  36. package/dist-types/commands/index.d.ts +2 -0
  37. package/dist-types/models/models_0.d.ts +2 -1
  38. package/dist-types/models/models_1.d.ts +23 -20
  39. package/dist-types/models/models_2.d.ts +10 -8
  40. package/dist-types/models/models_3.d.ts +22 -0
  41. package/dist-types/models/models_4.d.ts +38 -16
  42. package/dist-types/models/models_5.d.ts +65 -83
  43. package/dist-types/models/models_6.d.ts +90 -104
  44. package/dist-types/models/models_7.d.ts +114 -37
  45. package/dist-types/protocols/Aws_ec2.d.ts +18 -0
  46. package/dist-types/ts3.4/EC2.d.ts +46 -0
  47. package/dist-types/ts3.4/EC2Client.d.ts +12 -0
  48. package/dist-types/ts3.4/commands/DisableImageDeregistrationProtectionCommand.d.ts +39 -0
  49. package/dist-types/ts3.4/commands/EnableImageDeregistrationProtectionCommand.d.ts +39 -0
  50. package/dist-types/ts3.4/commands/GetIpamDiscoveredAccountsCommand.d.ts +2 -4
  51. package/dist-types/ts3.4/commands/GetIpamDiscoveredPublicAddressesCommand.d.ts +4 -2
  52. package/dist-types/ts3.4/commands/ProvisionPublicIpv4PoolCidrCommand.d.ts +2 -4
  53. package/dist-types/ts3.4/commands/PurchaseCapacityBlockCommand.d.ts +1 -1
  54. package/dist-types/ts3.4/commands/PurchaseHostReservationCommand.d.ts +4 -2
  55. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  56. package/dist-types/ts3.4/models/models_3.d.ts +4 -0
  57. package/dist-types/ts3.4/models/models_5.d.ts +15 -27
  58. package/dist-types/ts3.4/models/models_6.d.ts +28 -27
  59. package/dist-types/ts3.4/models/models_7.d.ts +24 -0
  60. package/dist-types/ts3.4/protocols/Aws_ec2.d.ts +24 -0
  61. package/package.json +1 -1
@@ -880,6 +880,13 @@ export interface DisableImageDeprecationRequest {
880
880
  export interface DisableImageDeprecationResult {
881
881
  Return?: boolean;
882
882
  }
883
+ export interface DisableImageDeregistrationProtectionRequest {
884
+ ImageId: string | undefined;
885
+ DryRun?: boolean;
886
+ }
887
+ export interface DisableImageDeregistrationProtectionResult {
888
+ Return?: string;
889
+ }
883
890
  export interface DisableIpamOrganizationAdminAccountRequest {
884
891
  DryRun?: boolean;
885
892
  DelegatedAdminAccountId: string | undefined;
@@ -1180,6 +1187,14 @@ export interface EnableImageDeprecationRequest {
1180
1187
  export interface EnableImageDeprecationResult {
1181
1188
  Return?: boolean;
1182
1189
  }
1190
+ export interface EnableImageDeregistrationProtectionRequest {
1191
+ ImageId: string | undefined;
1192
+ WithCooldown?: boolean;
1193
+ DryRun?: boolean;
1194
+ }
1195
+ export interface EnableImageDeregistrationProtectionResult {
1196
+ Return?: string;
1197
+ }
1183
1198
  export interface EnableIpamOrganizationAdminAccountRequest {
1184
1199
  DryRun?: boolean;
1185
1200
  DelegatedAdminAccountId: string | undefined;
@@ -1626,33 +1641,6 @@ export interface IpamDiscoveredAccount {
1626
1641
  LastAttemptedDiscoveryTime?: Date;
1627
1642
  LastSuccessfulDiscoveryTime?: Date;
1628
1643
  }
1629
- export interface GetIpamDiscoveredAccountsResult {
1630
- IpamDiscoveredAccounts?: IpamDiscoveredAccount[];
1631
- NextToken?: string;
1632
- }
1633
- export interface GetIpamDiscoveredPublicAddressesRequest {
1634
- DryRun?: boolean;
1635
- IpamResourceDiscoveryId: string | undefined;
1636
- AddressRegion: string | undefined;
1637
- Filters?: Filter[];
1638
- NextToken?: string;
1639
- MaxResults?: number;
1640
- }
1641
- export declare const IpamPublicAddressType: {
1642
- readonly AMAZON_OWNED_EIP: "amazon-owned-eip";
1643
- readonly BYOIP: "byoip";
1644
- readonly EC2_PUBLIC_IP: "ec2-public-ip";
1645
- readonly SERVICE_MANAGED_BYOIP: "service-managed-byoip";
1646
- readonly SERVICE_MANAGED_IP: "service-managed-ip";
1647
- };
1648
- export type IpamPublicAddressType =
1649
- (typeof IpamPublicAddressType)[keyof typeof IpamPublicAddressType];
1650
- export declare const IpamPublicAddressAssociationStatus: {
1651
- readonly ASSOCIATED: "associated";
1652
- readonly DISASSOCIATED: "disassociated";
1653
- };
1654
- export type IpamPublicAddressAssociationStatus =
1655
- (typeof IpamPublicAddressAssociationStatus)[keyof typeof IpamPublicAddressAssociationStatus];
1656
1644
  export declare const DescribeVerifiedAccessTrustProvidersResultFilterSensitiveLog: (
1657
1645
  obj: DescribeVerifiedAccessTrustProvidersResult
1658
1646
  ) => any;
@@ -9,9 +9,6 @@ import {
9
9
  ApplianceModeSupportValue,
10
10
  AutoPlacement,
11
11
  ByoipCidr,
12
- CapacityReservation,
13
- CapacityReservationInstancePlatform,
14
- CurrencyCodeValues,
15
12
  DnsSupportValue,
16
13
  EnaSrdSpecification,
17
14
  EndDateType,
@@ -133,7 +130,6 @@ import {
133
130
  LaunchTemplateConfig,
134
131
  LockState,
135
132
  Monitoring,
136
- PublicIpv4PoolRange,
137
133
  ReservedInstancesConfiguration,
138
134
  SnapshotAttributeName,
139
135
  SnapshotTaskDetail,
@@ -141,15 +137,41 @@ import {
141
137
  import {
142
138
  InstanceFamilyCreditSpecification,
143
139
  IpamComplianceStatus,
140
+ IpamDiscoveredAccount,
144
141
  IpamOverlapStatus,
145
- IpamPublicAddressAssociationStatus,
146
- IpamPublicAddressType,
147
142
  SnapshotBlockPublicAccessState,
148
143
  TransitGatewayPropagationState,
149
144
  UnlimitedSupportedInstanceFamily,
150
145
  VerifiedAccessInstanceLoggingConfiguration,
151
146
  VolumeModification,
152
147
  } from "./models_5";
148
+ export interface GetIpamDiscoveredAccountsResult {
149
+ IpamDiscoveredAccounts?: IpamDiscoveredAccount[];
150
+ NextToken?: string;
151
+ }
152
+ export interface GetIpamDiscoveredPublicAddressesRequest {
153
+ DryRun?: boolean;
154
+ IpamResourceDiscoveryId: string | undefined;
155
+ AddressRegion: string | undefined;
156
+ Filters?: Filter[];
157
+ NextToken?: string;
158
+ MaxResults?: number;
159
+ }
160
+ export declare const IpamPublicAddressType: {
161
+ readonly AMAZON_OWNED_EIP: "amazon-owned-eip";
162
+ readonly BYOIP: "byoip";
163
+ readonly EC2_PUBLIC_IP: "ec2-public-ip";
164
+ readonly SERVICE_MANAGED_BYOIP: "service-managed-byoip";
165
+ readonly SERVICE_MANAGED_IP: "service-managed-ip";
166
+ };
167
+ export type IpamPublicAddressType =
168
+ (typeof IpamPublicAddressType)[keyof typeof IpamPublicAddressType];
169
+ export declare const IpamPublicAddressAssociationStatus: {
170
+ readonly ASSOCIATED: "associated";
171
+ readonly DISASSOCIATED: "disassociated";
172
+ };
173
+ export type IpamPublicAddressAssociationStatus =
174
+ (typeof IpamPublicAddressAssociationStatus)[keyof typeof IpamPublicAddressAssociationStatus];
153
175
  export interface IpamPublicAddressSecurityGroup {
154
176
  GroupName?: string;
155
177
  GroupId?: string;
@@ -1861,27 +1883,6 @@ export interface ProvisionPublicIpv4PoolCidrRequest {
1861
1883
  PoolId: string | undefined;
1862
1884
  NetmaskLength: number | undefined;
1863
1885
  }
1864
- export interface ProvisionPublicIpv4PoolCidrResult {
1865
- PoolId?: string;
1866
- PoolAddressRange?: PublicIpv4PoolRange;
1867
- }
1868
- export interface PurchaseCapacityBlockRequest {
1869
- DryRun?: boolean;
1870
- TagSpecifications?: TagSpecification[];
1871
- CapacityBlockOfferingId: string | undefined;
1872
- InstancePlatform: CapacityReservationInstancePlatform | undefined;
1873
- }
1874
- export interface PurchaseCapacityBlockResult {
1875
- CapacityReservation?: CapacityReservation;
1876
- }
1877
- export interface PurchaseHostReservationRequest {
1878
- ClientToken?: string;
1879
- CurrencyCode?: CurrencyCodeValues;
1880
- HostIdSet: string[] | undefined;
1881
- LimitPrice?: string;
1882
- OfferingId: string | undefined;
1883
- TagSpecifications?: TagSpecification[];
1884
- }
1885
1886
  export declare const GetLaunchTemplateDataResultFilterSensitiveLog: (
1886
1887
  obj: GetLaunchTemplateDataResult
1887
1888
  ) => any;
@@ -3,6 +3,8 @@ import {
3
3
  AddressAttribute,
4
4
  AddressAttributeName,
5
5
  ByoipCidr,
6
+ CapacityReservation,
7
+ CapacityReservationInstancePlatform,
6
8
  ClientVpnAuthorizationRuleStatus,
7
9
  CurrencyCodeValues,
8
10
  IamInstanceProfileAssociation,
@@ -56,6 +58,7 @@ import {
56
58
  InstanceState,
57
59
  NetworkInsightsAccessScopeAnalysis,
58
60
  NetworkInsightsAnalysis,
61
+ PublicIpv4PoolRange,
59
62
  RunInstancesMonitoringEnabled,
60
63
  ScheduledInstance,
61
64
  SnapshotAttributeName,
@@ -69,6 +72,27 @@ import {
69
72
  InstanceMonitoring,
70
73
  Status,
71
74
  } from "./models_6";
75
+ export interface ProvisionPublicIpv4PoolCidrResult {
76
+ PoolId?: string;
77
+ PoolAddressRange?: PublicIpv4PoolRange;
78
+ }
79
+ export interface PurchaseCapacityBlockRequest {
80
+ DryRun?: boolean;
81
+ TagSpecifications?: TagSpecification[];
82
+ CapacityBlockOfferingId: string | undefined;
83
+ InstancePlatform: CapacityReservationInstancePlatform | undefined;
84
+ }
85
+ export interface PurchaseCapacityBlockResult {
86
+ CapacityReservation?: CapacityReservation;
87
+ }
88
+ export interface PurchaseHostReservationRequest {
89
+ ClientToken?: string;
90
+ CurrencyCode?: CurrencyCodeValues;
91
+ HostIdSet: string[] | undefined;
92
+ LimitPrice?: string;
93
+ OfferingId: string | undefined;
94
+ TagSpecifications?: TagSpecification[];
95
+ }
72
96
  export interface PurchaseHostReservationResult {
73
97
  ClientToken?: string;
74
98
  CurrencyCode?: CurrencyCodeValues;
@@ -1535,6 +1535,10 @@ import {
1535
1535
  DisableImageDeprecationCommandInput,
1536
1536
  DisableImageDeprecationCommandOutput,
1537
1537
  } from "../commands/DisableImageDeprecationCommand";
1538
+ import {
1539
+ DisableImageDeregistrationProtectionCommandInput,
1540
+ DisableImageDeregistrationProtectionCommandOutput,
1541
+ } from "../commands/DisableImageDeregistrationProtectionCommand";
1538
1542
  import {
1539
1543
  DisableIpamOrganizationAdminAccountCommandInput,
1540
1544
  DisableIpamOrganizationAdminAccountCommandOutput,
@@ -1655,6 +1659,10 @@ import {
1655
1659
  EnableImageDeprecationCommandInput,
1656
1660
  EnableImageDeprecationCommandOutput,
1657
1661
  } from "../commands/EnableImageDeprecationCommand";
1662
+ import {
1663
+ EnableImageDeregistrationProtectionCommandInput,
1664
+ EnableImageDeregistrationProtectionCommandOutput,
1665
+ } from "../commands/EnableImageDeregistrationProtectionCommand";
1658
1666
  import {
1659
1667
  EnableIpamOrganizationAdminAccountCommandInput,
1660
1668
  EnableIpamOrganizationAdminAccountCommandOutput,
@@ -4007,6 +4015,10 @@ export declare const se_DisableImageDeprecationCommand: (
4007
4015
  input: DisableImageDeprecationCommandInput,
4008
4016
  context: __SerdeContext
4009
4017
  ) => Promise<__HttpRequest>;
4018
+ export declare const se_DisableImageDeregistrationProtectionCommand: (
4019
+ input: DisableImageDeregistrationProtectionCommandInput,
4020
+ context: __SerdeContext
4021
+ ) => Promise<__HttpRequest>;
4010
4022
  export declare const se_DisableIpamOrganizationAdminAccountCommand: (
4011
4023
  input: DisableIpamOrganizationAdminAccountCommandInput,
4012
4024
  context: __SerdeContext
@@ -4127,6 +4139,10 @@ export declare const se_EnableImageDeprecationCommand: (
4127
4139
  input: EnableImageDeprecationCommandInput,
4128
4140
  context: __SerdeContext
4129
4141
  ) => Promise<__HttpRequest>;
4142
+ export declare const se_EnableImageDeregistrationProtectionCommand: (
4143
+ input: EnableImageDeregistrationProtectionCommandInput,
4144
+ context: __SerdeContext
4145
+ ) => Promise<__HttpRequest>;
4130
4146
  export declare const se_EnableIpamOrganizationAdminAccountCommand: (
4131
4147
  input: EnableIpamOrganizationAdminAccountCommandInput,
4132
4148
  context: __SerdeContext
@@ -6479,6 +6495,10 @@ export declare const de_DisableImageDeprecationCommand: (
6479
6495
  output: __HttpResponse,
6480
6496
  context: __SerdeContext
6481
6497
  ) => Promise<DisableImageDeprecationCommandOutput>;
6498
+ export declare const de_DisableImageDeregistrationProtectionCommand: (
6499
+ output: __HttpResponse,
6500
+ context: __SerdeContext
6501
+ ) => Promise<DisableImageDeregistrationProtectionCommandOutput>;
6482
6502
  export declare const de_DisableIpamOrganizationAdminAccountCommand: (
6483
6503
  output: __HttpResponse,
6484
6504
  context: __SerdeContext
@@ -6599,6 +6619,10 @@ export declare const de_EnableImageDeprecationCommand: (
6599
6619
  output: __HttpResponse,
6600
6620
  context: __SerdeContext
6601
6621
  ) => Promise<EnableImageDeprecationCommandOutput>;
6622
+ export declare const de_EnableImageDeregistrationProtectionCommand: (
6623
+ output: __HttpResponse,
6624
+ context: __SerdeContext
6625
+ ) => Promise<EnableImageDeregistrationProtectionCommandOutput>;
6602
6626
  export declare const de_EnableIpamOrganizationAdminAccountCommand: (
6603
6627
  output: __HttpResponse,
6604
6628
  context: __SerdeContext
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-ec2",
3
3
  "description": "AWS SDK for JavaScript Ec2 Client for Node.js, Browser and React Native",
4
- "version": "3.556.0",
4
+ "version": "3.561.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-ec2",