@aws-sdk/client-ec2 3.355.0 → 3.356.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 (51) 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 +25 -0
  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 +25 -0
  21. package/dist-types/commands/AllocateAddressCommand.d.ts +6 -21
  22. package/dist-types/commands/AllocateHostsCommand.d.ts +4 -1
  23. package/dist-types/commands/AssociateAddressCommand.d.ts +2 -14
  24. package/dist-types/commands/CreateFleetCommand.d.ts +4 -3
  25. package/dist-types/commands/DescribeAddressesCommand.d.ts +0 -63
  26. package/dist-types/commands/DescribeHostsCommand.d.ts +1 -0
  27. package/dist-types/commands/DescribeInternetGatewaysCommand.d.ts +1 -1
  28. package/dist-types/commands/DescribeMovingAddressesCommand.d.ts +1 -1
  29. package/dist-types/commands/DescribeScheduledInstanceAvailabilityCommand.d.ts +0 -49
  30. package/dist-types/commands/DescribeScheduledInstancesCommand.d.ts +0 -43
  31. package/dist-types/commands/DescribeSpotPriceHistoryCommand.d.ts +2 -2
  32. package/dist-types/commands/DisassociateAddressCommand.d.ts +2 -13
  33. package/dist-types/commands/PurchaseScheduledInstancesCommand.d.ts +0 -46
  34. package/dist-types/commands/ReleaseAddressCommand.d.ts +2 -13
  35. package/dist-types/commands/RequestSpotFleetCommand.d.ts +1 -1
  36. package/dist-types/commands/RequestSpotInstancesCommand.d.ts +1 -1
  37. package/dist-types/commands/RestoreAddressToClassicCommand.d.ts +0 -17
  38. package/dist-types/commands/RunScheduledInstancesCommand.d.ts +0 -70
  39. package/dist-types/models/models_0.d.ts +30 -4
  40. package/dist-types/models/models_1.d.ts +6 -2
  41. package/dist-types/models/models_2.d.ts +28 -0
  42. package/dist-types/models/models_3.d.ts +6 -1
  43. package/dist-types/models/models_4.d.ts +14 -2
  44. package/dist-types/models/models_5.d.ts +4 -0
  45. package/dist-types/models/models_6.d.ts +37 -6
  46. package/dist-types/ts3.4/models/models_0.d.ts +2 -1
  47. package/dist-types/ts3.4/models/models_2.d.ts +19 -0
  48. package/dist-types/ts3.4/models/models_3.d.ts +1 -0
  49. package/dist-types/ts3.4/models/models_5.d.ts +3 -0
  50. package/dist-types/ts3.4/models/models_6.d.ts +18 -0
  51. package/package.json +1 -1
@@ -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": {
@@ -55,23 +55,6 @@ export interface RestoreAddressToClassicCommandOutput extends RestoreAddressToCl
55
55
  * @throws {@link EC2ServiceException}
56
56
  * <p>Base exception class for all service exceptions from EC2 service.</p>
57
57
  *
58
- * @example To restore an address to EC2-Classic
59
- * ```javascript
60
- * // This example restores the specified Elastic IP address to the EC2-Classic platform.
61
- * const input = {
62
- * "PublicIp": "198.51.100.0"
63
- * };
64
- * const command = new RestoreAddressToClassicCommand(input);
65
- * const response = await client.send(command);
66
- * /* response ==
67
- * {
68
- * "PublicIp": "198.51.100.0",
69
- * "Status": "MoveInProgress"
70
- * }
71
- * *\/
72
- * // example id: ec2-restore-address-to-classic-1
73
- * ```
74
- *
75
58
  */
76
59
  export declare class RestoreAddressToClassicCommand extends $Command<RestoreAddressToClassicCommandInput, RestoreAddressToClassicCommandOutput, EC2ClientResolvedConfig> {
77
60
  readonly input: RestoreAddressToClassicCommandInput;
@@ -126,76 +126,6 @@ export interface RunScheduledInstancesCommandOutput extends RunScheduledInstance
126
126
  * @throws {@link EC2ServiceException}
127
127
  * <p>Base exception class for all service exceptions from EC2 service.</p>
128
128
  *
129
- * @example To launch a Scheduled Instance in a VPC
130
- * ```javascript
131
- * // This example launches the specified Scheduled Instance in a VPC.
132
- * const input = {
133
- * "InstanceCount": 1,
134
- * "LaunchSpecification": {
135
- * "IamInstanceProfile": {
136
- * "Name": "my-iam-role"
137
- * },
138
- * "ImageId": "ami-12345678",
139
- * "InstanceType": "c4.large",
140
- * "KeyName": "my-key-pair",
141
- * "NetworkInterfaces": [
142
- * {
143
- * "AssociatePublicIpAddress": true,
144
- * "DeviceIndex": 0,
145
- * "Groups": [
146
- * "sg-12345678"
147
- * ],
148
- * "SubnetId": "subnet-12345678"
149
- * }
150
- * ]
151
- * },
152
- * "ScheduledInstanceId": "sci-1234-1234-1234-1234-123456789012"
153
- * };
154
- * const command = new RunScheduledInstancesCommand(input);
155
- * const response = await client.send(command);
156
- * /* response ==
157
- * {
158
- * "InstanceIdSet": [
159
- * "i-1234567890abcdef0"
160
- * ]
161
- * }
162
- * *\/
163
- * // example id: ec2-run-scheduled-instances-1
164
- * ```
165
- *
166
- * @example To launch a Scheduled Instance in EC2-Classic
167
- * ```javascript
168
- * // This example launches the specified Scheduled Instance in EC2-Classic.
169
- * const input = {
170
- * "InstanceCount": 1,
171
- * "LaunchSpecification": {
172
- * "IamInstanceProfile": {
173
- * "Name": "my-iam-role"
174
- * },
175
- * "ImageId": "ami-12345678",
176
- * "InstanceType": "c4.large",
177
- * "KeyName": "my-key-pair",
178
- * "Placement": {
179
- * "AvailabilityZone": "us-west-2b"
180
- * },
181
- * "SecurityGroupIds": [
182
- * "sg-12345678"
183
- * ]
184
- * },
185
- * "ScheduledInstanceId": "sci-1234-1234-1234-1234-123456789012"
186
- * };
187
- * const command = new RunScheduledInstancesCommand(input);
188
- * const response = await client.send(command);
189
- * /* response ==
190
- * {
191
- * "InstanceIdSet": [
192
- * "i-1234567890abcdef0"
193
- * ]
194
- * }
195
- * *\/
196
- * // example id: ec2-run-scheduled-instances-2
197
- * ```
198
- *
199
129
  */
200
130
  export declare class RunScheduledInstancesCommand extends $Command<RunScheduledInstancesCommandInput, RunScheduledInstancesCommandOutput, EC2ClientResolvedConfig> {
201
131
  readonly input: RunScheduledInstancesCommandInput;
@@ -2460,10 +2460,14 @@ export interface AllocateHostsRequest {
2460
2460
  */
2461
2461
  InstanceFamily?: string;
2462
2462
  /**
2463
- * <p>The number of Dedicated Hosts to allocate to your account with these
2464
- * parameters.</p>
2463
+ * <p>The number of Dedicated Hosts to allocate to your account with these parameters. If you are
2464
+ * allocating the Dedicated Hosts on an Outpost, and you specify <b>AssetIds</b>,
2465
+ * you can omit this parameter. In this case, Amazon EC2 allocates a Dedicated Host on each
2466
+ * specified hardware asset. If you specify both <b>AssetIds</b> and
2467
+ * <b>Quantity</b>, then the value that you specify for
2468
+ * <b>Quantity</b> must be equal to the number of asset IDs specified.</p>
2465
2469
  */
2466
- Quantity: number | undefined;
2470
+ Quantity?: number;
2467
2471
  /**
2468
2472
  * <p>The tags to apply to the Dedicated Host during creation.</p>
2469
2473
  */
@@ -2478,7 +2482,9 @@ export interface AllocateHostsRequest {
2478
2482
  HostRecovery?: HostRecovery | string;
2479
2483
  /**
2480
2484
  * <p>The Amazon Resource Name (ARN) of the Amazon Web Services Outpost on which to allocate
2481
- * the Dedicated Host.</p>
2485
+ * the Dedicated Host. If you specify <b>OutpostArn</b>, you can
2486
+ * optionally specify <b>AssetIds</b>.</p>
2487
+ * <p>If you are allocating the Dedicated Host in a Region, omit this parameter.</p>
2482
2488
  */
2483
2489
  OutpostArn?: string;
2484
2490
  /**
@@ -2487,6 +2493,26 @@ export interface AllocateHostsRequest {
2487
2493
  * maintenance</a> in the <i>Amazon EC2 User Guide</i>.</p>
2488
2494
  */
2489
2495
  HostMaintenance?: HostMaintenance | string;
2496
+ /**
2497
+ * <p>The IDs of the Outpost hardware assets on which to allocate the Dedicated Hosts. Targeting
2498
+ * specific hardware assets on an Outpost can help to minimize latency between your workloads.
2499
+ * This parameter is supported only if you specify <b>OutpostArn</b>.
2500
+ * If you are allocating the Dedicated Hosts in a Region, omit this parameter.</p>
2501
+ * <ul>
2502
+ * <li>
2503
+ * <p>If you specify this parameter, you can omit <b>Quantity</b>.
2504
+ * In this case, Amazon EC2 allocates a Dedicated Host on each specified hardware
2505
+ * asset.</p>
2506
+ * </li>
2507
+ * <li>
2508
+ * <p>If you specify both <b>AssetIds</b> and
2509
+ * <b>Quantity</b>, then the value for
2510
+ * <b>Quantity</b> must be equal to the number of asset IDs
2511
+ * specified.</p>
2512
+ * </li>
2513
+ * </ul>
2514
+ */
2515
+ AssetIds?: string[];
2490
2516
  }
2491
2517
  /**
2492
2518
  * @public
@@ -1709,7 +1709,9 @@ export interface FleetLaunchTemplateOverridesRequest {
1709
1709
  */
1710
1710
  InstanceRequirements?: InstanceRequirementsRequest;
1711
1711
  /**
1712
- * <p>The ID of the AMI. An AMI is required to launch an instance. The AMI ID must be specified here or in the launch template.</p>
1712
+ * <p>The ID of the AMI. An AMI is required to launch an instance. This parameter is only
1713
+ * available for fleets of type <code>instant</code>. For fleets of type <code>maintain</code>
1714
+ * and <code>request</code>, you must specify the AMI ID in the launch template.</p>
1713
1715
  */
1714
1716
  ImageId?: string;
1715
1717
  }
@@ -2751,7 +2753,9 @@ export interface FleetLaunchTemplateOverrides {
2751
2753
  */
2752
2754
  InstanceRequirements?: InstanceRequirements;
2753
2755
  /**
2754
- * <p>The ID of the AMI. An AMI is required to launch an instance. The AMI ID must be specified here or in the launch template.</p>
2756
+ * <p>The ID of the AMI. An AMI is required to launch an instance. This parameter is only
2757
+ * available for fleets of type <code>instant</code>. For fleets of type <code>maintain</code>
2758
+ * and <code>request</code>, you must specify the AMI ID in the launch template.</p>
2755
2759
  */
2756
2760
  ImageId?: string;
2757
2761
  }
@@ -6618,3 +6618,31 @@ export declare const CreateVerifiedAccessTrustProviderRequestFilterSensitiveLog:
6618
6618
  * @internal
6619
6619
  */
6620
6620
  export declare const CreateVerifiedAccessTrustProviderResultFilterSensitiveLog: (obj: CreateVerifiedAccessTrustProviderResult) => any;
6621
+ /**
6622
+ * @internal
6623
+ */
6624
+ export declare const VpnTunnelOptionsSpecificationFilterSensitiveLog: (obj: VpnTunnelOptionsSpecification) => any;
6625
+ /**
6626
+ * @internal
6627
+ */
6628
+ export declare const VpnConnectionOptionsSpecificationFilterSensitiveLog: (obj: VpnConnectionOptionsSpecification) => any;
6629
+ /**
6630
+ * @internal
6631
+ */
6632
+ export declare const CreateVpnConnectionRequestFilterSensitiveLog: (obj: CreateVpnConnectionRequest) => any;
6633
+ /**
6634
+ * @internal
6635
+ */
6636
+ export declare const TunnelOptionFilterSensitiveLog: (obj: TunnelOption) => any;
6637
+ /**
6638
+ * @internal
6639
+ */
6640
+ export declare const VpnConnectionOptionsFilterSensitiveLog: (obj: VpnConnectionOptions) => any;
6641
+ /**
6642
+ * @internal
6643
+ */
6644
+ export declare const VpnConnectionFilterSensitiveLog: (obj: VpnConnection) => any;
6645
+ /**
6646
+ * @internal
6647
+ */
6648
+ export declare const CreateVpnConnectionResultFilterSensitiveLog: (obj: CreateVpnConnectionResult) => any;
@@ -5892,6 +5892,10 @@ export interface Host {
5892
5892
  * Host.</p>
5893
5893
  */
5894
5894
  HostMaintenance?: HostMaintenance | string;
5895
+ /**
5896
+ * <p>The ID of the Outpost hardware asset on which the Dedicated Host is allocated.</p>
5897
+ */
5898
+ AssetId?: string;
5895
5899
  }
5896
5900
  /**
5897
5901
  * @public
@@ -7960,7 +7964,8 @@ export interface CpuOptions {
7960
7964
  */
7961
7965
  ThreadsPerCore?: number;
7962
7966
  /**
7963
- * <p>Indicates whether the instance is enabled for AMD SEV-SNP.</p>
7967
+ * <p>Indicates whether the instance is enabled for AMD SEV-SNP. For more information, see
7968
+ * <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/sev-snp.html">AMD SEV-SNP</a>.</p>
7964
7969
  */
7965
7970
  AmdSevSnp?: AmdSevSnpSpecification | string;
7966
7971
  }