@aws-sdk/client-ec2 3.354.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.
- package/dist-cjs/commands/CreateVpnConnectionCommand.js +3 -2
- package/dist-cjs/commands/DescribeVpnConnectionsCommand.js +2 -1
- package/dist-cjs/commands/ModifyVpnConnectionCommand.js +2 -1
- package/dist-cjs/commands/ModifyVpnConnectionOptionsCommand.js +2 -1
- package/dist-cjs/commands/ModifyVpnTunnelCertificateCommand.js +2 -1
- package/dist-cjs/commands/ModifyVpnTunnelOptionsCommand.js +3 -2
- package/dist-cjs/models/models_2.js +39 -1
- package/dist-cjs/models/models_5.js +9 -1
- package/dist-cjs/models/models_6.js +32 -1
- package/dist-cjs/protocols/Aws_ec2.js +37 -0
- package/dist-es/commands/CreateVpnConnectionCommand.js +3 -2
- package/dist-es/commands/DescribeVpnConnectionsCommand.js +2 -1
- package/dist-es/commands/ModifyVpnConnectionCommand.js +2 -1
- package/dist-es/commands/ModifyVpnConnectionOptionsCommand.js +2 -1
- package/dist-es/commands/ModifyVpnTunnelCertificateCommand.js +2 -1
- package/dist-es/commands/ModifyVpnTunnelOptionsCommand.js +3 -2
- package/dist-es/models/models_2.js +31 -0
- package/dist-es/models/models_5.js +7 -0
- package/dist-es/models/models_6.js +25 -0
- package/dist-es/protocols/Aws_ec2.js +37 -0
- package/dist-types/commands/AllocateAddressCommand.d.ts +6 -21
- package/dist-types/commands/AllocateHostsCommand.d.ts +4 -1
- package/dist-types/commands/AssociateAddressCommand.d.ts +2 -14
- package/dist-types/commands/CreateFleetCommand.d.ts +4 -3
- package/dist-types/commands/DescribeAccountAttributesCommand.d.ts +9 -16
- package/dist-types/commands/DescribeAddressesCommand.d.ts +0 -63
- package/dist-types/commands/DescribeHostsCommand.d.ts +1 -0
- package/dist-types/commands/DescribeInternetGatewaysCommand.d.ts +1 -1
- package/dist-types/commands/DescribeMovingAddressesCommand.d.ts +1 -1
- package/dist-types/commands/DescribeScheduledInstanceAvailabilityCommand.d.ts +0 -49
- package/dist-types/commands/DescribeScheduledInstancesCommand.d.ts +0 -43
- package/dist-types/commands/DescribeSpotPriceHistoryCommand.d.ts +2 -2
- package/dist-types/commands/DescribeVerifiedAccessInstanceLoggingConfigurationsCommand.d.ts +2 -0
- package/dist-types/commands/DisassociateAddressCommand.d.ts +2 -13
- package/dist-types/commands/ModifyVerifiedAccessInstanceLoggingConfigurationCommand.d.ts +4 -0
- package/dist-types/commands/PurchaseScheduledInstancesCommand.d.ts +0 -46
- package/dist-types/commands/ReleaseAddressCommand.d.ts +2 -13
- package/dist-types/commands/RequestSpotFleetCommand.d.ts +1 -1
- package/dist-types/commands/RequestSpotInstancesCommand.d.ts +1 -1
- package/dist-types/commands/RestoreAddressToClassicCommand.d.ts +0 -17
- package/dist-types/commands/RunScheduledInstancesCommand.d.ts +0 -70
- package/dist-types/models/models_0.d.ts +30 -4
- package/dist-types/models/models_1.d.ts +6 -2
- package/dist-types/models/models_2.d.ts +28 -0
- package/dist-types/models/models_3.d.ts +6 -1
- package/dist-types/models/models_4.d.ts +27 -3
- package/dist-types/models/models_5.d.ts +4 -0
- package/dist-types/models/models_6.d.ts +52 -7
- package/dist-types/ts3.4/models/models_0.d.ts +2 -1
- package/dist-types/ts3.4/models/models_2.d.ts +19 -0
- package/dist-types/ts3.4/models/models_3.d.ts +1 -0
- package/dist-types/ts3.4/models/models_4.d.ts +2 -0
- package/dist-types/ts3.4/models/models_5.d.ts +3 -0
- package/dist-types/ts3.4/models/models_6.d.ts +20 -0
- package/package.json +1 -1
|
@@ -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"),
|
|
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
|
|
76
|
+
* @example To associate an Elastic IP address
|
|
77
77
|
* ```javascript
|
|
78
|
-
* // This example associates the specified Elastic IP address with the specified instance
|
|
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>
|
|
27
|
-
*
|
|
28
|
-
*
|
|
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.
|
|
@@ -27,13 +27,7 @@ export interface DescribeAccountAttributesCommandOutput extends DescribeAccountA
|
|
|
27
27
|
* <ul>
|
|
28
28
|
* <li>
|
|
29
29
|
* <p>
|
|
30
|
-
* <code>
|
|
31
|
-
* into EC2-Classic and EC2-VPC, or only into EC2-VPC.</p>
|
|
32
|
-
* </li>
|
|
33
|
-
* <li>
|
|
34
|
-
* <p>
|
|
35
|
-
* <code>default-vpc</code>: The ID of the default VPC for your account, or
|
|
36
|
-
* <code>none</code>.</p>
|
|
30
|
+
* <code>default-vpc</code>: The ID of the default VPC for your account, or <code>none</code>.</p>
|
|
37
31
|
* </li>
|
|
38
32
|
* <li>
|
|
39
33
|
* <p>
|
|
@@ -44,23 +38,22 @@ export interface DescribeAccountAttributesCommandOutput extends DescribeAccountA
|
|
|
44
38
|
* </li>
|
|
45
39
|
* <li>
|
|
46
40
|
* <p>
|
|
47
|
-
* <code>
|
|
48
|
-
* that you can assign to a network interface.</p>
|
|
41
|
+
* <code>max-elastic-ips</code>: The maximum number of Elastic IP addresses that you can allocate.</p>
|
|
49
42
|
* </li>
|
|
50
43
|
* <li>
|
|
51
44
|
* <p>
|
|
52
|
-
* <code>
|
|
53
|
-
* allocate for use with EC2-Classic. </p>
|
|
45
|
+
* <code>supported-platforms</code>: This attribute is deprecated.</p>
|
|
54
46
|
* </li>
|
|
55
47
|
* <li>
|
|
56
48
|
* <p>
|
|
57
|
-
* <code>vpc-max-elastic-ips</code>: The maximum number of Elastic IP addresses that you can
|
|
58
|
-
*
|
|
49
|
+
* <code>vpc-max-elastic-ips</code>: The maximum number of Elastic IP addresses that you can allocate.</p>
|
|
50
|
+
* </li>
|
|
51
|
+
* <li>
|
|
52
|
+
* <p>
|
|
53
|
+
* <code>vpc-max-security-groups-per-interface</code>: The maximum number of security groups
|
|
54
|
+
* that you can assign to a network interface.</p>
|
|
59
55
|
* </li>
|
|
60
56
|
* </ul>
|
|
61
|
-
* <note>
|
|
62
|
-
* <p>We are retiring EC2-Classic on August 15, 2022. We recommend that you migrate from EC2-Classic to a VPC. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-migrate.html">Migrate from EC2-Classic to a VPC</a> in the <i>Amazon EC2 User Guide</i>.</p>
|
|
63
|
-
* </note>
|
|
64
57
|
* @example
|
|
65
58
|
* Use a bare-bones client and the command you need to make an API call.
|
|
66
59
|
* ```javascript
|
|
@@ -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",
|
|
@@ -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
|
|
54
|
+
* @example To disassociate an Elastic IP address
|
|
55
55
|
* ```javascript
|
|
56
|
-
* // This example disassociates an Elastic IP address from an instance
|
|
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;
|
|
@@ -47,6 +47,8 @@ export interface ModifyVerifiedAccessInstanceLoggingConfigurationCommandOutput e
|
|
|
47
47
|
* Enabled: true || false, // required
|
|
48
48
|
* DeliveryStream: "STRING_VALUE",
|
|
49
49
|
* },
|
|
50
|
+
* LogVersion: "STRING_VALUE",
|
|
51
|
+
* IncludeTrustContext: true || false,
|
|
50
52
|
* },
|
|
51
53
|
* DryRun: true || false,
|
|
52
54
|
* ClientToken: "STRING_VALUE",
|
|
@@ -83,6 +85,8 @@ export interface ModifyVerifiedAccessInstanceLoggingConfigurationCommandOutput e
|
|
|
83
85
|
* // },
|
|
84
86
|
* // DeliveryStream: "STRING_VALUE",
|
|
85
87
|
* // },
|
|
88
|
+
* // LogVersion: "STRING_VALUE",
|
|
89
|
+
* // IncludeTrustContext: true || false,
|
|
86
90
|
* // },
|
|
87
91
|
* // },
|
|
88
92
|
* // };
|
|
@@ -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
|
|
65
|
+
* @example To release an Elastic IP address
|
|
66
66
|
* ```javascript
|
|
67
|
-
* // This example releases
|
|
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.
|
|
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.
|
|
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;
|