@aws-sdk/client-ec2 3.355.0 → 3.357.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 (52) hide show
  1. package/dist-cjs/commands/CreateVpnConnectionCommand.js +3 -2
  2. package/dist-cjs/commands/DescribeVpnConnectionsCommand.js +2 -1
  3. package/dist-cjs/commands/ModifyVpnConnectionCommand.js +2 -1
  4. package/dist-cjs/commands/ModifyVpnConnectionOptionsCommand.js +2 -1
  5. package/dist-cjs/commands/ModifyVpnTunnelCertificateCommand.js +2 -1
  6. package/dist-cjs/commands/ModifyVpnTunnelOptionsCommand.js +3 -2
  7. package/dist-cjs/models/models_2.js +39 -1
  8. package/dist-cjs/models/models_5.js +9 -1
  9. package/dist-cjs/models/models_6.js +32 -1
  10. package/dist-cjs/protocols/Aws_ec2.js +82 -63
  11. package/dist-es/commands/CreateVpnConnectionCommand.js +3 -2
  12. package/dist-es/commands/DescribeVpnConnectionsCommand.js +2 -1
  13. package/dist-es/commands/ModifyVpnConnectionCommand.js +2 -1
  14. package/dist-es/commands/ModifyVpnConnectionOptionsCommand.js +2 -1
  15. package/dist-es/commands/ModifyVpnTunnelCertificateCommand.js +2 -1
  16. package/dist-es/commands/ModifyVpnTunnelOptionsCommand.js +3 -2
  17. package/dist-es/models/models_2.js +31 -0
  18. package/dist-es/models/models_5.js +7 -0
  19. package/dist-es/models/models_6.js +25 -0
  20. package/dist-es/protocols/Aws_ec2.js +26 -7
  21. package/dist-types/EC2Client.d.ts +1 -1
  22. package/dist-types/commands/AllocateAddressCommand.d.ts +6 -21
  23. package/dist-types/commands/AllocateHostsCommand.d.ts +4 -1
  24. package/dist-types/commands/AssociateAddressCommand.d.ts +2 -14
  25. package/dist-types/commands/CreateFleetCommand.d.ts +4 -3
  26. package/dist-types/commands/DescribeAddressesCommand.d.ts +0 -63
  27. package/dist-types/commands/DescribeHostsCommand.d.ts +1 -0
  28. package/dist-types/commands/DescribeInternetGatewaysCommand.d.ts +1 -1
  29. package/dist-types/commands/DescribeMovingAddressesCommand.d.ts +1 -1
  30. package/dist-types/commands/DescribeScheduledInstanceAvailabilityCommand.d.ts +0 -49
  31. package/dist-types/commands/DescribeScheduledInstancesCommand.d.ts +0 -43
  32. package/dist-types/commands/DescribeSpotPriceHistoryCommand.d.ts +2 -2
  33. package/dist-types/commands/DisassociateAddressCommand.d.ts +2 -13
  34. package/dist-types/commands/PurchaseScheduledInstancesCommand.d.ts +0 -46
  35. package/dist-types/commands/ReleaseAddressCommand.d.ts +2 -13
  36. package/dist-types/commands/RequestSpotFleetCommand.d.ts +1 -1
  37. package/dist-types/commands/RequestSpotInstancesCommand.d.ts +1 -1
  38. package/dist-types/commands/RestoreAddressToClassicCommand.d.ts +0 -17
  39. package/dist-types/commands/RunScheduledInstancesCommand.d.ts +0 -70
  40. package/dist-types/models/models_0.d.ts +30 -4
  41. package/dist-types/models/models_1.d.ts +6 -2
  42. package/dist-types/models/models_2.d.ts +28 -0
  43. package/dist-types/models/models_3.d.ts +6 -1
  44. package/dist-types/models/models_4.d.ts +14 -2
  45. package/dist-types/models/models_5.d.ts +4 -0
  46. package/dist-types/models/models_6.d.ts +37 -6
  47. package/dist-types/ts3.4/models/models_0.d.ts +2 -1
  48. package/dist-types/ts3.4/models/models_2.d.ts +19 -0
  49. package/dist-types/ts3.4/models/models_3.d.ts +1 -0
  50. package/dist-types/ts3.4/models/models_5.d.ts +3 -0
  51. package/dist-types/ts3.4/models/models_6.d.ts +18 -0
  52. package/package.json +30 -30
@@ -304,3 +304,34 @@ export const CreateVerifiedAccessTrustProviderResultFilterSensitiveLog = (obj) =
304
304
  VerifiedAccessTrustProvider: VerifiedAccessTrustProviderFilterSensitiveLog(obj.VerifiedAccessTrustProvider),
305
305
  }),
306
306
  });
307
+ export const VpnTunnelOptionsSpecificationFilterSensitiveLog = (obj) => ({
308
+ ...obj,
309
+ ...(obj.PreSharedKey && { PreSharedKey: SENSITIVE_STRING }),
310
+ });
311
+ export const VpnConnectionOptionsSpecificationFilterSensitiveLog = (obj) => ({
312
+ ...obj,
313
+ ...(obj.TunnelOptions && {
314
+ TunnelOptions: obj.TunnelOptions.map((item) => VpnTunnelOptionsSpecificationFilterSensitiveLog(item)),
315
+ }),
316
+ });
317
+ export const CreateVpnConnectionRequestFilterSensitiveLog = (obj) => ({
318
+ ...obj,
319
+ ...(obj.Options && { Options: VpnConnectionOptionsSpecificationFilterSensitiveLog(obj.Options) }),
320
+ });
321
+ export const TunnelOptionFilterSensitiveLog = (obj) => ({
322
+ ...obj,
323
+ ...(obj.PreSharedKey && { PreSharedKey: SENSITIVE_STRING }),
324
+ });
325
+ export const VpnConnectionOptionsFilterSensitiveLog = (obj) => ({
326
+ ...obj,
327
+ ...(obj.TunnelOptions && { TunnelOptions: obj.TunnelOptions.map((item) => TunnelOptionFilterSensitiveLog(item)) }),
328
+ });
329
+ export const VpnConnectionFilterSensitiveLog = (obj) => ({
330
+ ...obj,
331
+ ...(obj.CustomerGatewayConfiguration && { CustomerGatewayConfiguration: SENSITIVE_STRING }),
332
+ ...(obj.Options && { Options: VpnConnectionOptionsFilterSensitiveLog(obj.Options) }),
333
+ });
334
+ export const CreateVpnConnectionResultFilterSensitiveLog = (obj) => ({
335
+ ...obj,
336
+ ...(obj.VpnConnection && { VpnConnection: VpnConnectionFilterSensitiveLog(obj.VpnConnection) }),
337
+ });
@@ -1,6 +1,7 @@
1
1
  import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
2
2
  import { VerifiedAccessTrustProviderFilterSensitiveLog, } from "./models_0";
3
3
  import { ResponseLaunchTemplateDataFilterSensitiveLog, } from "./models_1";
4
+ import { VpnConnectionFilterSensitiveLog, } from "./models_2";
4
5
  export const VolumeAttributeName = {
5
6
  autoEnableIO: "autoEnableIO",
6
7
  productCodes: "productCodes",
@@ -88,6 +89,12 @@ export const DescribeVerifiedAccessTrustProvidersResultFilterSensitiveLog = (obj
88
89
  VerifiedAccessTrustProviders: obj.VerifiedAccessTrustProviders.map((item) => VerifiedAccessTrustProviderFilterSensitiveLog(item)),
89
90
  }),
90
91
  });
92
+ export const DescribeVpnConnectionsResultFilterSensitiveLog = (obj) => ({
93
+ ...obj,
94
+ ...(obj.VpnConnections && {
95
+ VpnConnections: obj.VpnConnections.map((item) => VpnConnectionFilterSensitiveLog(item)),
96
+ }),
97
+ });
91
98
  export const DetachVerifiedAccessTrustProviderResultFilterSensitiveLog = (obj) => ({
92
99
  ...obj,
93
100
  ...(obj.VerifiedAccessTrustProvider && {
@@ -1,5 +1,6 @@
1
1
  import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
2
2
  import { VerifiedAccessTrustProviderFilterSensitiveLog, } from "./models_0";
3
+ import { VpnConnectionFilterSensitiveLog, } from "./models_2";
3
4
  import { ConversionTaskFilterSensitiveLog, SnapshotDetailFilterSensitiveLog, SnapshotTaskDetailFilterSensitiveLog, } from "./models_3";
4
5
  import { SpotFleetRequestConfigDataFilterSensitiveLog, SpotInstanceRequestFilterSensitiveLog, } from "./models_4";
5
6
  export const ModifyAvailabilityZoneOptInStatus = {
@@ -131,6 +132,30 @@ export const ModifyVerifiedAccessTrustProviderResultFilterSensitiveLog = (obj) =
131
132
  VerifiedAccessTrustProvider: VerifiedAccessTrustProviderFilterSensitiveLog(obj.VerifiedAccessTrustProvider),
132
133
  }),
133
134
  });
135
+ export const ModifyVpnConnectionResultFilterSensitiveLog = (obj) => ({
136
+ ...obj,
137
+ ...(obj.VpnConnection && { VpnConnection: VpnConnectionFilterSensitiveLog(obj.VpnConnection) }),
138
+ });
139
+ export const ModifyVpnConnectionOptionsResultFilterSensitiveLog = (obj) => ({
140
+ ...obj,
141
+ ...(obj.VpnConnection && { VpnConnection: VpnConnectionFilterSensitiveLog(obj.VpnConnection) }),
142
+ });
143
+ export const ModifyVpnTunnelCertificateResultFilterSensitiveLog = (obj) => ({
144
+ ...obj,
145
+ ...(obj.VpnConnection && { VpnConnection: VpnConnectionFilterSensitiveLog(obj.VpnConnection) }),
146
+ });
147
+ export const ModifyVpnTunnelOptionsSpecificationFilterSensitiveLog = (obj) => ({
148
+ ...obj,
149
+ ...(obj.PreSharedKey && { PreSharedKey: SENSITIVE_STRING }),
150
+ });
151
+ export const ModifyVpnTunnelOptionsRequestFilterSensitiveLog = (obj) => ({
152
+ ...obj,
153
+ ...(obj.TunnelOptions && { TunnelOptions: SENSITIVE_STRING }),
154
+ });
155
+ export const ModifyVpnTunnelOptionsResultFilterSensitiveLog = (obj) => ({
156
+ ...obj,
157
+ ...(obj.VpnConnection && { VpnConnection: VpnConnectionFilterSensitiveLog(obj.VpnConnection) }),
158
+ });
134
159
  export const RequestSpotFleetRequestFilterSensitiveLog = (obj) => ({
135
160
  ...obj,
136
161
  ...(obj.SpotFleetRequestConfig && {
@@ -1,4 +1,4 @@
1
- import { expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeFloat as __serializeFloat, strictParseFloat as __strictParseFloat, strictParseInt32 as __strictParseInt32, strictParseLong as __strictParseLong, withBaseException, } from "@aws-sdk/smithy-client";
1
+ import { collectBody, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeFloat as __serializeFloat, strictParseFloat as __strictParseFloat, strictParseInt32 as __strictParseInt32, strictParseLong as __strictParseLong, withBaseException, } from "@aws-sdk/smithy-client";
2
2
  import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
3
  import { XMLParser } from "fast-xml-parser";
4
4
  import { v4 as generateIdempotencyToken } from "uuid";
@@ -21598,6 +21598,16 @@ const se_AllocateHostsRequest = (input, context) => {
21598
21598
  if (input.HostMaintenance != null) {
21599
21599
  entries["HostMaintenance"] = input.HostMaintenance;
21600
21600
  }
21601
+ if (input.AssetIds != null) {
21602
+ const memberEntries = se_AssetIdList(input.AssetIds, context);
21603
+ if (input.AssetIds?.length === 0) {
21604
+ entries.AssetId = [];
21605
+ }
21606
+ Object.entries(memberEntries).forEach(([key, value]) => {
21607
+ const loc = `AssetId.${key.substring(key.indexOf(".") + 1)}`;
21608
+ entries[loc] = value;
21609
+ });
21610
+ }
21601
21611
  return entries;
21602
21612
  };
21603
21613
  const se_AllocateIpamPoolCidrRequest = (input, context) => {
@@ -21721,6 +21731,18 @@ const se_ArnList = (input, context) => {
21721
21731
  }
21722
21732
  return entries;
21723
21733
  };
21734
+ const se_AssetIdList = (input, context) => {
21735
+ const entries = {};
21736
+ let counter = 1;
21737
+ for (const entry of input) {
21738
+ if (entry === null) {
21739
+ continue;
21740
+ }
21741
+ entries[`Member.${counter}`] = entry;
21742
+ counter++;
21743
+ }
21744
+ return entries;
21745
+ };
21724
21746
  const se_AssignIpv6AddressesRequest = (input, context) => {
21725
21747
  const entries = {};
21726
21748
  if (input.Ipv6AddressCount != null) {
@@ -52010,6 +52032,9 @@ const de_Host = (output, context) => {
52010
52032
  if (output["hostMaintenance"] !== undefined) {
52011
52033
  contents.HostMaintenance = __expectString(output["hostMaintenance"]);
52012
52034
  }
52035
+ if (output["assetId"] !== undefined) {
52036
+ contents.AssetId = __expectString(output["assetId"]);
52037
+ }
52013
52038
  return contents;
52014
52039
  };
52015
52040
  const de_HostInstance = (output, context) => {
@@ -63863,12 +63888,6 @@ const deserializeMetadata = (output) => ({
63863
63888
  extendedRequestId: output.headers["x-amz-id-2"],
63864
63889
  cfId: output.headers["x-amz-cf-id"],
63865
63890
  });
63866
- const collectBody = (streamBody = new Uint8Array(), context) => {
63867
- if (streamBody instanceof Uint8Array) {
63868
- return Promise.resolve(streamBody);
63869
- }
63870
- return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
63871
- };
63872
63891
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
63873
63892
  const throwDefaultError = withBaseException(__BaseException);
63874
63893
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
@@ -667,7 +667,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
667
667
  */
668
668
  runtime?: string;
669
669
  /**
670
- * Disable dyanamically changing the endpoint of the client based on the hostPrefix
670
+ * Disable dynamically changing the endpoint of the client based on the hostPrefix
671
671
  * trait of an operation.
672
672
  */
673
673
  disableHostPrefix?: boolean;
@@ -84,39 +84,24 @@ export interface AllocateAddressCommandOutput extends AllocateAddressResult, __M
84
84
  * @throws {@link EC2ServiceException}
85
85
  * <p>Base exception class for all service exceptions from EC2 service.</p>
86
86
  *
87
- * @example To allocate an Elastic IP address for EC2-VPC
87
+ * @example To allocate an Elastic IP address
88
88
  * ```javascript
89
- * // This example allocates an Elastic IP address to use with an instance in a VPC.
90
- * const input = {
91
- * "Domain": "vpc"
92
- * };
89
+ * // This example allocates an Elastic IP address.
90
+ * const input = undefined;
93
91
  * const command = new AllocateAddressCommand(input);
94
92
  * const response = await client.send(command);
95
93
  * /* response ==
96
94
  * {
97
95
  * "AllocationId": "eipalloc-64d5890a",
98
96
  * "Domain": "vpc",
99
- * "PublicIp": "203.0.113.0"
97
+ * "NetworkBorderGroup": "us-east-1",
98
+ * "PublicIp": "203.0.113.0",
99
+ * "PublicIpv4Pool": "amazon"
100
100
  * }
101
101
  * *\/
102
102
  * // example id: ec2-allocate-address-1
103
103
  * ```
104
104
  *
105
- * @example To allocate an Elastic IP address for EC2-Classic
106
- * ```javascript
107
- * // This example allocates an Elastic IP address to use with an instance in EC2-Classic.
108
- * const input = undefined;
109
- * const command = new AllocateAddressCommand(input);
110
- * const response = await client.send(command);
111
- * /* response ==
112
- * {
113
- * "Domain": "standard",
114
- * "PublicIp": "198.51.100.0"
115
- * }
116
- * *\/
117
- * // example id: ec2-allocate-address-2
118
- * ```
119
- *
120
105
  */
121
106
  export declare class AllocateAddressCommand extends $Command<AllocateAddressCommandInput, AllocateAddressCommandOutput, EC2ClientResolvedConfig> {
122
107
  readonly input: AllocateAddressCommandInput;
@@ -38,7 +38,7 @@ export interface AllocateHostsCommandOutput extends AllocateHostsResult, __Metad
38
38
  * ClientToken: "STRING_VALUE",
39
39
  * InstanceType: "STRING_VALUE",
40
40
  * InstanceFamily: "STRING_VALUE",
41
- * Quantity: Number("int"), // required
41
+ * Quantity: Number("int"),
42
42
  * TagSpecifications: [ // TagSpecificationList
43
43
  * { // TagSpecification
44
44
  * ResourceType: "capacity-reservation" || "client-vpn-endpoint" || "customer-gateway" || "carrier-gateway" || "coip-pool" || "dedicated-host" || "dhcp-options" || "egress-only-internet-gateway" || "elastic-ip" || "elastic-gpu" || "export-image-task" || "export-instance-task" || "fleet" || "fpga-image" || "host-reservation" || "image" || "import-image-task" || "import-snapshot-task" || "instance" || "instance-event-window" || "internet-gateway" || "ipam" || "ipam-pool" || "ipam-scope" || "ipv4pool-ec2" || "ipv6pool-ec2" || "key-pair" || "launch-template" || "local-gateway" || "local-gateway-route-table" || "local-gateway-virtual-interface" || "local-gateway-virtual-interface-group" || "local-gateway-route-table-vpc-association" || "local-gateway-route-table-virtual-interface-group-association" || "natgateway" || "network-acl" || "network-interface" || "network-insights-analysis" || "network-insights-path" || "network-insights-access-scope" || "network-insights-access-scope-analysis" || "placement-group" || "prefix-list" || "replace-root-volume-task" || "reserved-instances" || "route-table" || "security-group" || "security-group-rule" || "snapshot" || "spot-fleet-request" || "spot-instances-request" || "subnet" || "subnet-cidr-reservation" || "traffic-mirror-filter" || "traffic-mirror-session" || "traffic-mirror-target" || "transit-gateway" || "transit-gateway-attachment" || "transit-gateway-connect-peer" || "transit-gateway-multicast-domain" || "transit-gateway-policy-table" || "transit-gateway-route-table" || "transit-gateway-route-table-announcement" || "volume" || "vpc" || "vpc-endpoint" || "vpc-endpoint-connection" || "vpc-endpoint-service" || "vpc-endpoint-service-permission" || "vpc-peering-connection" || "vpn-connection" || "vpn-gateway" || "vpc-flow-log" || "capacity-reservation-fleet" || "traffic-mirror-filter-rule" || "vpc-endpoint-connection-device-type" || "verified-access-instance" || "verified-access-group" || "verified-access-endpoint" || "verified-access-policy" || "verified-access-trust-provider" || "vpn-connection-device-type" || "vpc-block-public-access-exclusion" || "ipam-resource-discovery" || "ipam-resource-discovery-association" || "instance-connect-endpoint",
@@ -53,6 +53,9 @@ export interface AllocateHostsCommandOutput extends AllocateHostsResult, __Metad
53
53
  * HostRecovery: "on" || "off",
54
54
  * OutpostArn: "STRING_VALUE",
55
55
  * HostMaintenance: "on" || "off",
56
+ * AssetIds: [ // AssetIdList
57
+ * "STRING_VALUE",
58
+ * ],
56
59
  * };
57
60
  * const command = new AllocateHostsCommand(input);
58
61
  * const response = await client.send(command);
@@ -73,9 +73,9 @@ export interface AssociateAddressCommandOutput extends AssociateAddressResult, _
73
73
  * @throws {@link EC2ServiceException}
74
74
  * <p>Base exception class for all service exceptions from EC2 service.</p>
75
75
  *
76
- * @example To associate an Elastic IP address in EC2-VPC
76
+ * @example To associate an Elastic IP address
77
77
  * ```javascript
78
- * // This example associates the specified Elastic IP address with the specified instance in a VPC.
78
+ * // This example associates the specified Elastic IP address with the specified instance.
79
79
  * const input = {
80
80
  * "AllocationId": "eipalloc-64d5890a",
81
81
  * "InstanceId": "i-0b263919b6498b123"
@@ -107,18 +107,6 @@ export interface AssociateAddressCommandOutput extends AssociateAddressResult, _
107
107
  * // example id: ec2-associate-address-2
108
108
  * ```
109
109
  *
110
- * @example To associate an Elastic IP address in EC2-Classic
111
- * ```javascript
112
- * // This example associates an Elastic IP address with an instance in EC2-Classic.
113
- * const input = {
114
- * "InstanceId": "i-07ffe74c7330ebf53",
115
- * "PublicIp": "198.51.100.0"
116
- * };
117
- * const command = new AssociateAddressCommand(input);
118
- * await client.send(command);
119
- * // example id: ec2-associate-address-3
120
- * ```
121
- *
122
110
  */
123
111
  export declare class AssociateAddressCommand extends $Command<AssociateAddressCommandInput, AssociateAddressCommandOutput, EC2ClientResolvedConfig> {
124
112
  readonly input: AssociateAddressCommandInput;
@@ -23,9 +23,10 @@ export interface CreateFleetCommandOutput extends CreateFleetResult, __MetadataB
23
23
  }
24
24
  /**
25
25
  * @public
26
- * <p>Launches an EC2 Fleet.</p>
27
- * <p>You can create a single EC2 Fleet that includes multiple launch specifications that vary by
28
- * instance type, AMI, Availability Zone, or subnet.</p>
26
+ * <p>Creates an EC2 Fleet that contains the configuration information for On-Demand Instances and Spot Instances.
27
+ * Instances are launched immediately if there is available capacity.</p>
28
+ * <p>A single EC2 Fleet can include multiple launch specifications that vary by instance type,
29
+ * AMI, Availability Zone, or subnet.</p>
29
30
  * <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet.html">EC2 Fleet</a> in the <i>Amazon EC2 User Guide</i>.</p>
30
31
  * @example
31
32
  * Use a bare-bones client and the command you need to make an API call.
@@ -116,69 +116,6 @@ export interface DescribeAddressesCommandOutput extends DescribeAddressesResult,
116
116
  * // example id: ec2-describe-addresses-1
117
117
  * ```
118
118
  *
119
- * @example To describe your Elastic IP addresses for EC2-VPC
120
- * ```javascript
121
- * // This example describes your Elastic IP addresses for use with instances in a VPC.
122
- * const input = {
123
- * "Filters": [
124
- * {
125
- * "Name": "domain",
126
- * "Values": [
127
- * "vpc"
128
- * ]
129
- * }
130
- * ]
131
- * };
132
- * const command = new DescribeAddressesCommand(input);
133
- * const response = await client.send(command);
134
- * /* response ==
135
- * {
136
- * "Addresses": [
137
- * {
138
- * "AllocationId": "eipalloc-12345678",
139
- * "AssociationId": "eipassoc-12345678",
140
- * "Domain": "vpc",
141
- * "InstanceId": "i-1234567890abcdef0",
142
- * "NetworkInterfaceId": "eni-12345678",
143
- * "NetworkInterfaceOwnerId": "123456789012",
144
- * "PrivateIpAddress": "10.0.1.241",
145
- * "PublicIp": "203.0.113.0"
146
- * }
147
- * ]
148
- * }
149
- * *\/
150
- * // example id: ec2-describe-addresses-2
151
- * ```
152
- *
153
- * @example To describe your Elastic IP addresses for EC2-Classic
154
- * ```javascript
155
- * // This example describes your Elastic IP addresses for use with instances in EC2-Classic.
156
- * const input = {
157
- * "Filters": [
158
- * {
159
- * "Name": "domain",
160
- * "Values": [
161
- * "standard"
162
- * ]
163
- * }
164
- * ]
165
- * };
166
- * const command = new DescribeAddressesCommand(input);
167
- * const response = await client.send(command);
168
- * /* response ==
169
- * {
170
- * "Addresses": [
171
- * {
172
- * "Domain": "standard",
173
- * "InstanceId": "i-1234567890abcdef0",
174
- * "PublicIp": "198.51.100.0"
175
- * }
176
- * ]
177
- * }
178
- * *\/
179
- * // example id: ec2-describe-addresses-3
180
- * ```
181
- *
182
119
  */
183
120
  export declare class DescribeAddressesCommand extends $Command<DescribeAddressesCommandInput, DescribeAddressesCommandOutput, EC2ClientResolvedConfig> {
184
121
  readonly input: DescribeAddressesCommandInput;
@@ -98,6 +98,7 @@ export interface DescribeHostsCommandOutput extends DescribeHostsResult, __Metad
98
98
  * // MemberOfServiceLinkedResourceGroup: true || false,
99
99
  * // OutpostArn: "STRING_VALUE",
100
100
  * // HostMaintenance: "on" || "off",
101
+ * // AssetId: "STRING_VALUE",
101
102
  * // },
102
103
  * // ],
103
104
  * // NextToken: "STRING_VALUE",
@@ -102,7 +102,7 @@ export interface DescribeInternetGatewaysCommandOutput extends DescribeInternetG
102
102
  * {
103
103
  * "Attachments": [
104
104
  * {
105
- * "State": "available",
105
+ * "State": "attached",
106
106
  * "VpcId": "vpc-a01106c2"
107
107
  * }
108
108
  * ],
@@ -83,7 +83,7 @@ export interface DescribeMovingAddressesCommandOutput extends DescribeMovingAddr
83
83
  * {
84
84
  * "MovingAddressStatuses": [
85
85
  * {
86
- * "MoveStatus": "MovingToVpc",
86
+ * "MoveStatus": "movingToVpc",
87
87
  * "PublicIp": "198.51.100.0"
88
88
  * }
89
89
  * ]
@@ -103,55 +103,6 @@ export interface DescribeScheduledInstanceAvailabilityCommandOutput extends Desc
103
103
  * @throws {@link EC2ServiceException}
104
104
  * <p>Base exception class for all service exceptions from EC2 service.</p>
105
105
  *
106
- * @example To describe an available schedule
107
- * ```javascript
108
- * // This example describes a schedule that occurs every week on Sunday, starting on the specified date. Note that the output contains a single schedule as an example.
109
- * const input = {
110
- * "FirstSlotStartTimeRange": {
111
- * "EarliestTime": "2016-01-31T00:00:00Z",
112
- * "LatestTime": "2016-01-31T04:00:00Z"
113
- * },
114
- * "Recurrence": {
115
- * "Frequency": "Weekly",
116
- * "Interval": 1,
117
- * "OccurrenceDays": [
118
- * 1
119
- * ]
120
- * }
121
- * };
122
- * const command = new DescribeScheduledInstanceAvailabilityCommand(input);
123
- * const response = await client.send(command);
124
- * /* response ==
125
- * {
126
- * "ScheduledInstanceAvailabilitySet": [
127
- * {
128
- * "AvailabilityZone": "us-west-2b",
129
- * "AvailableInstanceCount": 20,
130
- * "FirstSlotStartTime": "2016-01-31T00:00:00Z",
131
- * "HourlyPrice": "0.095",
132
- * "InstanceType": "c4.large",
133
- * "MaxTermDurationInDays": 366,
134
- * "MinTermDurationInDays": 366,
135
- * "NetworkPlatform": "EC2-VPC",
136
- * "Platform": "Linux/UNIX",
137
- * "PurchaseToken": "eyJ2IjoiMSIsInMiOjEsImMiOi...",
138
- * "Recurrence": {
139
- * "Frequency": "Weekly",
140
- * "Interval": 1,
141
- * "OccurrenceDaySet": [
142
- * 1
143
- * ],
144
- * "OccurrenceRelativeToEnd": false
145
- * },
146
- * "SlotDurationInHours": 23,
147
- * "TotalScheduledInstanceHours": 1219
148
- * }
149
- * ]
150
- * }
151
- * *\/
152
- * // example id: ec2-describe-scheduled-instance-availability-1
153
- * ```
154
- *
155
106
  */
156
107
  export declare class DescribeScheduledInstanceAvailabilityCommand extends $Command<DescribeScheduledInstanceAvailabilityCommandInput, DescribeScheduledInstanceAvailabilityCommandOutput, EC2ClientResolvedConfig> {
157
108
  readonly input: DescribeScheduledInstanceAvailabilityCommandInput;
@@ -94,49 +94,6 @@ export interface DescribeScheduledInstancesCommandOutput extends DescribeSchedul
94
94
  * @throws {@link EC2ServiceException}
95
95
  * <p>Base exception class for all service exceptions from EC2 service.</p>
96
96
  *
97
- * @example To describe your Scheduled Instances
98
- * ```javascript
99
- * // This example describes the specified Scheduled Instance.
100
- * const input = {
101
- * "ScheduledInstanceIds": [
102
- * "sci-1234-1234-1234-1234-123456789012"
103
- * ]
104
- * };
105
- * const command = new DescribeScheduledInstancesCommand(input);
106
- * const response = await client.send(command);
107
- * /* response ==
108
- * {
109
- * "ScheduledInstanceSet": [
110
- * {
111
- * "AvailabilityZone": "us-west-2b",
112
- * "CreateDate": "2016-01-25T21:43:38.612Z",
113
- * "HourlyPrice": "0.095",
114
- * "InstanceCount": 1,
115
- * "InstanceType": "c4.large",
116
- * "NetworkPlatform": "EC2-VPC",
117
- * "NextSlotStartTime": "2016-01-31T09:00:00Z",
118
- * "Platform": "Linux/UNIX",
119
- * "Recurrence": {
120
- * "Frequency": "Weekly",
121
- * "Interval": 1,
122
- * "OccurrenceDaySet": [
123
- * 1
124
- * ],
125
- * "OccurrenceRelativeToEnd": false,
126
- * "OccurrenceUnit": ""
127
- * },
128
- * "ScheduledInstanceId": "sci-1234-1234-1234-1234-123456789012",
129
- * "SlotDurationInHours": 32,
130
- * "TermEndDate": "2017-01-31T09:00:00Z",
131
- * "TermStartDate": "2016-01-31T09:00:00Z",
132
- * "TotalScheduledInstanceHours": 1696
133
- * }
134
- * ]
135
- * }
136
- * *\/
137
- * // example id: ec2-describe-scheduled-instances-1
138
- * ```
139
- *
140
97
  */
141
98
  export declare class DescribeScheduledInstancesCommand extends $Command<DescribeScheduledInstancesCommandInput, DescribeScheduledInstancesCommandOutput, EC2ClientResolvedConfig> {
142
99
  readonly input: DescribeScheduledInstancesCommandInput;
@@ -86,14 +86,14 @@ export interface DescribeSpotPriceHistoryCommandOutput extends DescribeSpotPrice
86
86
  * ```javascript
87
87
  * // This example returns the Spot Price history for m1.xlarge, Linux/UNIX (Amazon VPC) instances for a particular day in January.
88
88
  * const input = {
89
- * "EndTime": "2014-01-06T08:09:10",
89
+ * "EndTime": "2014-01-06T08:09:10.05Z",
90
90
  * "InstanceTypes": [
91
91
  * "m1.xlarge"
92
92
  * ],
93
93
  * "ProductDescriptions": [
94
94
  * "Linux/UNIX (Amazon VPC)"
95
95
  * ],
96
- * "StartTime": "2014-01-06T07:08:09"
96
+ * "StartTime": "2014-01-06T07:08:09.05Z"
97
97
  * };
98
98
  * const command = new DescribeSpotPriceHistoryCommand(input);
99
99
  * const response = await client.send(command);
@@ -51,9 +51,9 @@ export interface DisassociateAddressCommandOutput extends __MetadataBearer {
51
51
  * @throws {@link EC2ServiceException}
52
52
  * <p>Base exception class for all service exceptions from EC2 service.</p>
53
53
  *
54
- * @example To disassociate an Elastic IP address in EC2-VPC
54
+ * @example To disassociate an Elastic IP address
55
55
  * ```javascript
56
- * // This example disassociates an Elastic IP address from an instance in a VPC.
56
+ * // This example disassociates an Elastic IP address from an instance.
57
57
  * const input = {
58
58
  * "AssociationId": "eipassoc-2bebb745"
59
59
  * };
@@ -62,17 +62,6 @@ export interface DisassociateAddressCommandOutput extends __MetadataBearer {
62
62
  * // example id: ec2-disassociate-address-1
63
63
  * ```
64
64
  *
65
- * @example To disassociate an Elastic IP addresses in EC2-Classic
66
- * ```javascript
67
- * // This example disassociates an Elastic IP address from an instance in EC2-Classic.
68
- * const input = {
69
- * "PublicIp": "198.51.100.0"
70
- * };
71
- * const command = new DisassociateAddressCommand(input);
72
- * await client.send(command);
73
- * // example id: ec2-disassociate-address-2
74
- * ```
75
- *
76
65
  */
77
66
  export declare class DisassociateAddressCommand extends $Command<DisassociateAddressCommandInput, DisassociateAddressCommandOutput, EC2ClientResolvedConfig> {
78
67
  readonly input: DisassociateAddressCommandInput;
@@ -91,52 +91,6 @@ export interface PurchaseScheduledInstancesCommandOutput extends PurchaseSchedul
91
91
  * @throws {@link EC2ServiceException}
92
92
  * <p>Base exception class for all service exceptions from EC2 service.</p>
93
93
  *
94
- * @example To purchase a Scheduled Instance
95
- * ```javascript
96
- * // This example purchases a Scheduled Instance.
97
- * const input = {
98
- * "PurchaseRequests": [
99
- * {
100
- * "InstanceCount": 1,
101
- * "PurchaseToken": "eyJ2IjoiMSIsInMiOjEsImMiOi..."
102
- * }
103
- * ]
104
- * };
105
- * const command = new PurchaseScheduledInstancesCommand(input);
106
- * const response = await client.send(command);
107
- * /* response ==
108
- * {
109
- * "ScheduledInstanceSet": [
110
- * {
111
- * "AvailabilityZone": "us-west-2b",
112
- * "CreateDate": "2016-01-25T21:43:38.612Z",
113
- * "HourlyPrice": "0.095",
114
- * "InstanceCount": 1,
115
- * "InstanceType": "c4.large",
116
- * "NetworkPlatform": "EC2-VPC",
117
- * "NextSlotStartTime": "2016-01-31T09:00:00Z",
118
- * "Platform": "Linux/UNIX",
119
- * "Recurrence": {
120
- * "Frequency": "Weekly",
121
- * "Interval": 1,
122
- * "OccurrenceDaySet": [
123
- * 1
124
- * ],
125
- * "OccurrenceRelativeToEnd": false,
126
- * "OccurrenceUnit": ""
127
- * },
128
- * "ScheduledInstanceId": "sci-1234-1234-1234-1234-123456789012",
129
- * "SlotDurationInHours": 32,
130
- * "TermEndDate": "2017-01-31T09:00:00Z",
131
- * "TermStartDate": "2016-01-31T09:00:00Z",
132
- * "TotalScheduledInstanceHours": 1696
133
- * }
134
- * ]
135
- * }
136
- * *\/
137
- * // example id: ec2-purchase-scheduled-instances-1
138
- * ```
139
- *
140
94
  */
141
95
  export declare class PurchaseScheduledInstancesCommand extends $Command<PurchaseScheduledInstancesCommandInput, PurchaseScheduledInstancesCommandOutput, EC2ClientResolvedConfig> {
142
96
  readonly input: PurchaseScheduledInstancesCommandInput;
@@ -62,9 +62,9 @@ export interface ReleaseAddressCommandOutput extends __MetadataBearer {
62
62
  * @throws {@link EC2ServiceException}
63
63
  * <p>Base exception class for all service exceptions from EC2 service.</p>
64
64
  *
65
- * @example To release an Elastic IP address for EC2-VPC
65
+ * @example To release an Elastic IP address
66
66
  * ```javascript
67
- * // This example releases an Elastic IP address for use with instances in a VPC.
67
+ * // This example releases the specified Elastic IP address.
68
68
  * const input = {
69
69
  * "AllocationId": "eipalloc-64d5890a"
70
70
  * };
@@ -73,17 +73,6 @@ export interface ReleaseAddressCommandOutput extends __MetadataBearer {
73
73
  * // example id: ec2-release-address-1
74
74
  * ```
75
75
  *
76
- * @example To release an Elastic IP addresses for EC2-Classic
77
- * ```javascript
78
- * // This example releases an Elastic IP address for use with instances in EC2-Classic.
79
- * const input = {
80
- * "PublicIp": "198.51.100.0"
81
- * };
82
- * const command = new ReleaseAddressCommand(input);
83
- * await client.send(command);
84
- * // example id: ec2-release-address-2
85
- * ```
86
- *
87
76
  */
88
77
  export declare class ReleaseAddressCommand extends $Command<ReleaseAddressCommandInput, ReleaseAddressCommandOutput, EC2ClientResolvedConfig> {
89
78
  readonly input: ReleaseAddressCommandInput;
@@ -429,7 +429,7 @@ export interface RequestSpotFleetCommandOutput extends RequestSpotFleetResponse,
429
429
  *
430
430
  * @example To request a Spot fleet in the Availability Zone with the lowest price
431
431
  * ```javascript
432
- * // This example creates a Spot fleet request with two launch specifications that differ only by Availability Zone. The Spot fleet launches the instances in the specified Availability Zone with the lowest price. If your account supports EC2-VPC only, Amazon EC2 launches the Spot instances in the default subnet of the Availability Zone. If your account supports EC2-Classic, Amazon EC2 launches the instances in EC2-Classic in the Availability Zone.
432
+ * // This example creates a Spot fleet request with two launch specifications that differ only by Availability Zone. The Spot fleet launches the instances in the specified Availability Zone with the lowest price. If your account supports EC2-VPC only, Amazon EC2 launches the Spot instances in the default subnet of the Availability Zone.
433
433
  * const input = {
434
434
  * "SpotFleetRequestConfig": {
435
435
  * "IamFleetRole": "arn:aws:iam::123456789012:role/my-spot-fleet-role",
@@ -293,7 +293,7 @@ export interface RequestSpotInstancesCommandOutput extends RequestSpotInstancesR
293
293
  *
294
294
  * @example To create a one-time Spot Instance request
295
295
  * ```javascript
296
- * // This example creates a one-time Spot Instance request for five instances in the specified Availability Zone. If your account supports EC2-VPC only, Amazon EC2 launches the instances in the default subnet of the specified Availability Zone. If your account supports EC2-Classic, Amazon EC2 launches the instances in EC2-Classic in the specified Availability Zone.
296
+ * // This example creates a one-time Spot Instance request for five instances in the specified Availability Zone. If your account supports EC2-VPC only, Amazon EC2 launches the instances in the default subnet of the specified Availability Zone.
297
297
  * const input = {
298
298
  * "InstanceCount": 5,
299
299
  * "LaunchSpecification": {