@aws-sdk/client-ec2 3.438.0 → 3.440.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/README.md +16 -0
- package/dist-cjs/EC2.js +4 -0
- package/dist-cjs/commands/DescribeCapacityBlockOfferingsCommand.js +51 -0
- package/dist-cjs/commands/PurchaseCapacityBlockCommand.js +51 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/models/models_0.js +8 -1
- package/dist-cjs/models/models_1.js +2 -0
- package/dist-cjs/models/models_3.js +2 -6
- package/dist-cjs/models/models_4.js +8 -2
- package/dist-cjs/pagination/DescribeCapacityBlockOfferingsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +2 -1
- package/dist-cjs/protocols/Aws_ec2.js +213 -20
- package/dist-es/EC2.js +4 -0
- package/dist-es/commands/DescribeCapacityBlockOfferingsCommand.js +47 -0
- package/dist-es/commands/PurchaseCapacityBlockCommand.js +47 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +7 -0
- package/dist-es/models/models_1.js +2 -0
- package/dist-es/models/models_3.js +0 -4
- package/dist-es/models/models_4.js +6 -0
- package/dist-es/pagination/DescribeCapacityBlockOfferingsPaginator.js +25 -0
- package/dist-es/pagination/index.js +2 -1
- package/dist-es/protocols/Aws_ec2.js +188 -0
- package/dist-types/EC2.d.ts +14 -0
- package/dist-types/EC2Client.d.ts +4 -2
- package/dist-types/commands/CreateCapacityReservationCommand.d.ts +2 -1
- package/dist-types/commands/CreateFleetCommand.d.ts +1 -1
- package/dist-types/commands/CreateLaunchTemplateCommand.d.ts +1 -1
- package/dist-types/commands/CreateLaunchTemplateVersionCommand.d.ts +2 -2
- package/dist-types/commands/DeletePublicIpv4PoolCommand.d.ts +1 -2
- package/dist-types/commands/DescribeCapacityBlockOfferingsCommand.d.ts +94 -0
- package/dist-types/commands/DescribeCapacityReservationsCommand.d.ts +2 -1
- package/dist-types/commands/DescribeFleetsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeInstanceTypesCommand.d.ts +1 -1
- package/dist-types/commands/DescribeInstancesCommand.d.ts +2 -3
- package/dist-types/commands/DescribeLaunchTemplateVersionsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeTrunkInterfaceAssociationsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeVerifiedAccessEndpointsCommand.d.ts +1 -1
- package/dist-types/commands/GetCapacityReservationUsageCommand.d.ts +1 -1
- package/dist-types/commands/GetLaunchTemplateDataCommand.d.ts +1 -1
- package/dist-types/commands/GetTransitGatewayPolicyTableEntriesCommand.d.ts +2 -1
- package/dist-types/commands/GetTransitGatewayPrefixListReferencesCommand.d.ts +1 -1
- package/dist-types/commands/GetTransitGatewayRouteTableAssociationsCommand.d.ts +1 -2
- package/dist-types/commands/ModifyFleetCommand.d.ts +1 -1
- package/dist-types/commands/PurchaseCapacityBlockCommand.d.ts +122 -0
- package/dist-types/commands/RestoreSnapshotTierCommand.d.ts +2 -1
- package/dist-types/commands/RevokeClientVpnIngressCommand.d.ts +1 -1
- package/dist-types/commands/RevokeSecurityGroupEgressCommand.d.ts +1 -1
- package/dist-types/commands/RevokeSecurityGroupIngressCommand.d.ts +1 -2
- package/dist-types/commands/RunInstancesCommand.d.ts +2 -2
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +20 -16
- package/dist-types/models/models_1.d.ts +22 -51
- package/dist-types/models/models_2.d.ts +49 -18
- package/dist-types/models/models_3.d.ts +135 -788
- package/dist-types/models/models_4.d.ts +792 -120
- package/dist-types/models/models_5.d.ts +118 -141
- package/dist-types/models/models_6.d.ts +176 -217
- package/dist-types/models/models_7.d.ts +216 -1
- package/dist-types/pagination/DescribeCapacityBlockOfferingsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -1
- package/dist-types/protocols/Aws_ec2.d.ts +18 -0
- package/dist-types/ts3.4/EC2.d.ts +34 -0
- package/dist-types/ts3.4/EC2Client.d.ts +12 -0
- package/dist-types/ts3.4/commands/DeletePublicIpv4PoolCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/DescribeCapacityBlockOfferingsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DescribeInstancesCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/DescribeTrunkInterfaceAssociationsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DescribeVerifiedAccessEndpointsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetTransitGatewayPolicyTableEntriesCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/GetTransitGatewayPrefixListReferencesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetTransitGatewayRouteTableAssociationsCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/PurchaseCapacityBlockCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/RestoreSnapshotTierCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/RevokeClientVpnIngressCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/RevokeSecurityGroupEgressCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/RevokeSecurityGroupIngressCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +10 -4
- package/dist-types/ts3.4/models/models_1.d.ts +6 -11
- package/dist-types/ts3.4/models/models_2.d.ts +13 -5
- package/dist-types/ts3.4/models/models_3.d.ts +31 -25
- package/dist-types/ts3.4/models/models_4.d.ts +28 -30
- package/dist-types/ts3.4/models/models_5.d.ts +26 -22
- package/dist-types/ts3.4/models/models_6.d.ts +33 -47
- package/dist-types/ts3.4/models/models_7.d.ts +46 -0
- package/dist-types/ts3.4/pagination/DescribeCapacityBlockOfferingsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -1
- package/dist-types/ts3.4/protocols/Aws_ec2.d.ts +24 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2036,6 +2036,14 @@ DescribeByoipCidrs
|
|
|
2036
2036
|
|
|
2037
2037
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2/classes/describebyoipcidrscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2/interfaces/describebyoipcidrscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2/interfaces/describebyoipcidrscommandoutput.html)
|
|
2038
2038
|
|
|
2039
|
+
</details>
|
|
2040
|
+
<details>
|
|
2041
|
+
<summary>
|
|
2042
|
+
DescribeCapacityBlockOfferings
|
|
2043
|
+
</summary>
|
|
2044
|
+
|
|
2045
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2/classes/describecapacityblockofferingscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2/interfaces/describecapacityblockofferingscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2/interfaces/describecapacityblockofferingscommandoutput.html)
|
|
2046
|
+
|
|
2039
2047
|
</details>
|
|
2040
2048
|
<details>
|
|
2041
2049
|
<summary>
|
|
@@ -4540,6 +4548,14 @@ ProvisionPublicIpv4PoolCidr
|
|
|
4540
4548
|
|
|
4541
4549
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2/classes/provisionpublicipv4poolcidrcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2/interfaces/provisionpublicipv4poolcidrcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2/interfaces/provisionpublicipv4poolcidrcommandoutput.html)
|
|
4542
4550
|
|
|
4551
|
+
</details>
|
|
4552
|
+
<details>
|
|
4553
|
+
<summary>
|
|
4554
|
+
PurchaseCapacityBlock
|
|
4555
|
+
</summary>
|
|
4556
|
+
|
|
4557
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2/classes/purchasecapacityblockcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2/interfaces/purchasecapacityblockcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ec2/interfaces/purchasecapacityblockcommandoutput.html)
|
|
4558
|
+
|
|
4543
4559
|
</details>
|
|
4544
4560
|
<details>
|
|
4545
4561
|
<summary>
|
package/dist-cjs/EC2.js
CHANGED
|
@@ -228,6 +228,7 @@ const DescribeAvailabilityZonesCommand_1 = require("./commands/DescribeAvailabil
|
|
|
228
228
|
const DescribeAwsNetworkPerformanceMetricSubscriptionsCommand_1 = require("./commands/DescribeAwsNetworkPerformanceMetricSubscriptionsCommand");
|
|
229
229
|
const DescribeBundleTasksCommand_1 = require("./commands/DescribeBundleTasksCommand");
|
|
230
230
|
const DescribeByoipCidrsCommand_1 = require("./commands/DescribeByoipCidrsCommand");
|
|
231
|
+
const DescribeCapacityBlockOfferingsCommand_1 = require("./commands/DescribeCapacityBlockOfferingsCommand");
|
|
231
232
|
const DescribeCapacityReservationFleetsCommand_1 = require("./commands/DescribeCapacityReservationFleetsCommand");
|
|
232
233
|
const DescribeCapacityReservationsCommand_1 = require("./commands/DescribeCapacityReservationsCommand");
|
|
233
234
|
const DescribeCarrierGatewaysCommand_1 = require("./commands/DescribeCarrierGatewaysCommand");
|
|
@@ -541,6 +542,7 @@ const MoveByoipCidrToIpamCommand_1 = require("./commands/MoveByoipCidrToIpamComm
|
|
|
541
542
|
const ProvisionByoipCidrCommand_1 = require("./commands/ProvisionByoipCidrCommand");
|
|
542
543
|
const ProvisionIpamPoolCidrCommand_1 = require("./commands/ProvisionIpamPoolCidrCommand");
|
|
543
544
|
const ProvisionPublicIpv4PoolCidrCommand_1 = require("./commands/ProvisionPublicIpv4PoolCidrCommand");
|
|
545
|
+
const PurchaseCapacityBlockCommand_1 = require("./commands/PurchaseCapacityBlockCommand");
|
|
544
546
|
const PurchaseHostReservationCommand_1 = require("./commands/PurchaseHostReservationCommand");
|
|
545
547
|
const PurchaseReservedInstancesOfferingCommand_1 = require("./commands/PurchaseReservedInstancesOfferingCommand");
|
|
546
548
|
const PurchaseScheduledInstancesCommand_1 = require("./commands/PurchaseScheduledInstancesCommand");
|
|
@@ -830,6 +832,7 @@ const commands = {
|
|
|
830
832
|
DescribeAwsNetworkPerformanceMetricSubscriptionsCommand: DescribeAwsNetworkPerformanceMetricSubscriptionsCommand_1.DescribeAwsNetworkPerformanceMetricSubscriptionsCommand,
|
|
831
833
|
DescribeBundleTasksCommand: DescribeBundleTasksCommand_1.DescribeBundleTasksCommand,
|
|
832
834
|
DescribeByoipCidrsCommand: DescribeByoipCidrsCommand_1.DescribeByoipCidrsCommand,
|
|
835
|
+
DescribeCapacityBlockOfferingsCommand: DescribeCapacityBlockOfferingsCommand_1.DescribeCapacityBlockOfferingsCommand,
|
|
833
836
|
DescribeCapacityReservationFleetsCommand: DescribeCapacityReservationFleetsCommand_1.DescribeCapacityReservationFleetsCommand,
|
|
834
837
|
DescribeCapacityReservationsCommand: DescribeCapacityReservationsCommand_1.DescribeCapacityReservationsCommand,
|
|
835
838
|
DescribeCarrierGatewaysCommand: DescribeCarrierGatewaysCommand_1.DescribeCarrierGatewaysCommand,
|
|
@@ -1143,6 +1146,7 @@ const commands = {
|
|
|
1143
1146
|
ProvisionByoipCidrCommand: ProvisionByoipCidrCommand_1.ProvisionByoipCidrCommand,
|
|
1144
1147
|
ProvisionIpamPoolCidrCommand: ProvisionIpamPoolCidrCommand_1.ProvisionIpamPoolCidrCommand,
|
|
1145
1148
|
ProvisionPublicIpv4PoolCidrCommand: ProvisionPublicIpv4PoolCidrCommand_1.ProvisionPublicIpv4PoolCidrCommand,
|
|
1149
|
+
PurchaseCapacityBlockCommand: PurchaseCapacityBlockCommand_1.PurchaseCapacityBlockCommand,
|
|
1146
1150
|
PurchaseHostReservationCommand: PurchaseHostReservationCommand_1.PurchaseHostReservationCommand,
|
|
1147
1151
|
PurchaseReservedInstancesOfferingCommand: PurchaseReservedInstancesOfferingCommand_1.PurchaseReservedInstancesOfferingCommand,
|
|
1148
1152
|
PurchaseScheduledInstancesCommand: PurchaseScheduledInstancesCommand_1.PurchaseScheduledInstancesCommand,
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DescribeCapacityBlockOfferingsCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const types_1 = require("@smithy/types");
|
|
9
|
+
const Aws_ec2_1 = require("../protocols/Aws_ec2");
|
|
10
|
+
class DescribeCapacityBlockOfferingsCommand extends smithy_client_1.Command {
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
constructor(input) {
|
|
20
|
+
super();
|
|
21
|
+
this.input = input;
|
|
22
|
+
}
|
|
23
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
24
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
25
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeCapacityBlockOfferingsCommand.getEndpointParameterInstructions()));
|
|
26
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
27
|
+
const { logger } = configuration;
|
|
28
|
+
const clientName = "EC2Client";
|
|
29
|
+
const commandName = "DescribeCapacityBlockOfferingsCommand";
|
|
30
|
+
const handlerExecutionContext = {
|
|
31
|
+
logger,
|
|
32
|
+
clientName,
|
|
33
|
+
commandName,
|
|
34
|
+
inputFilterSensitiveLog: (_) => _,
|
|
35
|
+
outputFilterSensitiveLog: (_) => _,
|
|
36
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
+
service: "AmazonEC2",
|
|
38
|
+
operation: "DescribeCapacityBlockOfferings",
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
const { requestHandler } = configuration;
|
|
42
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
43
|
+
}
|
|
44
|
+
serialize(input, context) {
|
|
45
|
+
return (0, Aws_ec2_1.se_DescribeCapacityBlockOfferingsCommand)(input, context);
|
|
46
|
+
}
|
|
47
|
+
deserialize(output, context) {
|
|
48
|
+
return (0, Aws_ec2_1.de_DescribeCapacityBlockOfferingsCommand)(output, context);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.DescribeCapacityBlockOfferingsCommand = DescribeCapacityBlockOfferingsCommand;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PurchaseCapacityBlockCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const types_1 = require("@smithy/types");
|
|
9
|
+
const Aws_ec2_1 = require("../protocols/Aws_ec2");
|
|
10
|
+
class PurchaseCapacityBlockCommand extends smithy_client_1.Command {
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
constructor(input) {
|
|
20
|
+
super();
|
|
21
|
+
this.input = input;
|
|
22
|
+
}
|
|
23
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
24
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
25
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, PurchaseCapacityBlockCommand.getEndpointParameterInstructions()));
|
|
26
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
27
|
+
const { logger } = configuration;
|
|
28
|
+
const clientName = "EC2Client";
|
|
29
|
+
const commandName = "PurchaseCapacityBlockCommand";
|
|
30
|
+
const handlerExecutionContext = {
|
|
31
|
+
logger,
|
|
32
|
+
clientName,
|
|
33
|
+
commandName,
|
|
34
|
+
inputFilterSensitiveLog: (_) => _,
|
|
35
|
+
outputFilterSensitiveLog: (_) => _,
|
|
36
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
37
|
+
service: "AmazonEC2",
|
|
38
|
+
operation: "PurchaseCapacityBlock",
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
const { requestHandler } = configuration;
|
|
42
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
43
|
+
}
|
|
44
|
+
serialize(input, context) {
|
|
45
|
+
return (0, Aws_ec2_1.se_PurchaseCapacityBlockCommand)(input, context);
|
|
46
|
+
}
|
|
47
|
+
deserialize(output, context) {
|
|
48
|
+
return (0, Aws_ec2_1.de_PurchaseCapacityBlockCommand)(output, context);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.PurchaseCapacityBlockCommand = PurchaseCapacityBlockCommand;
|
|
@@ -227,6 +227,7 @@ tslib_1.__exportStar(require("./DescribeAvailabilityZonesCommand"), exports);
|
|
|
227
227
|
tslib_1.__exportStar(require("./DescribeAwsNetworkPerformanceMetricSubscriptionsCommand"), exports);
|
|
228
228
|
tslib_1.__exportStar(require("./DescribeBundleTasksCommand"), exports);
|
|
229
229
|
tslib_1.__exportStar(require("./DescribeByoipCidrsCommand"), exports);
|
|
230
|
+
tslib_1.__exportStar(require("./DescribeCapacityBlockOfferingsCommand"), exports);
|
|
230
231
|
tslib_1.__exportStar(require("./DescribeCapacityReservationFleetsCommand"), exports);
|
|
231
232
|
tslib_1.__exportStar(require("./DescribeCapacityReservationsCommand"), exports);
|
|
232
233
|
tslib_1.__exportStar(require("./DescribeCarrierGatewaysCommand"), exports);
|
|
@@ -540,6 +541,7 @@ tslib_1.__exportStar(require("./MoveByoipCidrToIpamCommand"), exports);
|
|
|
540
541
|
tslib_1.__exportStar(require("./ProvisionByoipCidrCommand"), exports);
|
|
541
542
|
tslib_1.__exportStar(require("./ProvisionIpamPoolCidrCommand"), exports);
|
|
542
543
|
tslib_1.__exportStar(require("./ProvisionPublicIpv4PoolCidrCommand"), exports);
|
|
544
|
+
tslib_1.__exportStar(require("./PurchaseCapacityBlockCommand"), exports);
|
|
543
545
|
tslib_1.__exportStar(require("./PurchaseHostReservationCommand"), exports);
|
|
544
546
|
tslib_1.__exportStar(require("./PurchaseReservedInstancesOfferingCommand"), exports);
|
|
545
547
|
tslib_1.__exportStar(require("./PurchaseScheduledInstancesCommand"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BundleTaskState = exports.ClientVpnAuthorizationRuleStatusCode = exports.AttachmentStatus = exports.VolumeAttachmentState = exports.UserTrustProviderType = exports.TrustProviderType = exports.DeviceTrustProviderType = exports.VpcCidrBlockStateCode = exports.InterfaceProtocolType = exports.TransitGatewayAssociationState = exports.SubnetCidrBlockStateCode = exports.RouteTableAssociationStateCode = exports.IpamResourceDiscoveryAssociationState = exports.IpamAssociatedResourceDiscoveryStatus = exports.WeekDay = exports.InstanceEventWindowState = exports.IamInstanceProfileAssociationState = exports.AssociationStatusCode = exports.NatGatewayAddressStatus = exports.AllowsMultipleInstanceTypes = exports.AllocationType = exports.AllocationStrategy = exports.AllocationState = exports.IpamPoolAllocationResourceType = exports.HostRecovery = exports.HostMaintenance = exports.AutoPlacement = exports.Affinity = exports.ByoipCidrState = exports.AddressFamily = exports.AddressAttributeName = exports.DomainType = exports.PrincipalType = exports.ActivityStatus = exports.InstanceHealthStatus = exports.AccountAttributeName = exports.Protocol = exports.VpcPeeringConnectionStateReasonCode = exports.Ipv6SupportValue = exports.DnsSupportValue = exports.ApplianceModeSupportValue = exports.TransitGatewayAttachmentState = exports.DynamicRoutingValue = exports.TransitGatewayMulitcastDomainAssociationState = exports.TransitGatewayAttachmentResourceType = exports.AddressTransferStatus = exports.ResourceType = exports.AcceleratorType = exports.AcceleratorName = exports.AcceleratorManufacturer = void 0;
|
|
4
|
-
exports.CopySnapshotRequestFilterSensitiveLog = exports.CancelBundleTaskResultFilterSensitiveLog = exports.BundleInstanceResultFilterSensitiveLog = exports.BundleTaskFilterSensitiveLog = exports.BundleInstanceRequestFilterSensitiveLog = exports.StorageFilterSensitiveLog = exports.S3StorageFilterSensitiveLog = exports.AttachVerifiedAccessTrustProviderResultFilterSensitiveLog = exports.VerifiedAccessTrustProviderFilterSensitiveLog = exports.OidcOptionsFilterSensitiveLog = exports.CarrierGatewayState = exports.FleetCapacityReservationTenancy = exports._InstanceType = exports.FleetInstanceMatchCriteria = exports.CapacityReservationState = exports.CapacityReservationTenancy = exports.CapacityReservationInstancePlatform = exports.InstanceMatchCriteria = exports.EndDateType = exports.CancelSpotInstanceRequestState = exports.CancelBatchErrorCode = exports.BatchState = exports.ListingStatus = exports.CurrencyCodeValues = exports.ListingState = exports.CapacityReservationFleetState = void 0;
|
|
4
|
+
exports.CopySnapshotRequestFilterSensitiveLog = exports.CancelBundleTaskResultFilterSensitiveLog = exports.BundleInstanceResultFilterSensitiveLog = exports.BundleTaskFilterSensitiveLog = exports.BundleInstanceRequestFilterSensitiveLog = exports.StorageFilterSensitiveLog = exports.S3StorageFilterSensitiveLog = exports.AttachVerifiedAccessTrustProviderResultFilterSensitiveLog = exports.VerifiedAccessTrustProviderFilterSensitiveLog = exports.OidcOptionsFilterSensitiveLog = exports.CarrierGatewayState = exports.FleetCapacityReservationTenancy = exports._InstanceType = exports.FleetInstanceMatchCriteria = exports.CapacityReservationState = exports.CapacityReservationType = exports.CapacityReservationTenancy = exports.CapacityReservationInstancePlatform = exports.InstanceMatchCriteria = exports.EndDateType = exports.CancelSpotInstanceRequestState = exports.CancelBatchErrorCode = exports.BatchState = exports.ListingStatus = exports.CurrencyCodeValues = exports.ListingState = exports.CapacityReservationFleetState = void 0;
|
|
5
5
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
6
|
exports.AcceleratorManufacturer = {
|
|
7
7
|
AMAZON_WEB_SERVICES: "amazon-web-services",
|
|
@@ -472,12 +472,19 @@ exports.CapacityReservationTenancy = {
|
|
|
472
472
|
dedicated: "dedicated",
|
|
473
473
|
default: "default",
|
|
474
474
|
};
|
|
475
|
+
exports.CapacityReservationType = {
|
|
476
|
+
CAPACITY_BLOCK: "capacity-block",
|
|
477
|
+
DEFAULT: "default",
|
|
478
|
+
};
|
|
475
479
|
exports.CapacityReservationState = {
|
|
476
480
|
active: "active",
|
|
477
481
|
cancelled: "cancelled",
|
|
478
482
|
expired: "expired",
|
|
479
483
|
failed: "failed",
|
|
484
|
+
payment_failed: "payment-failed",
|
|
485
|
+
payment_pending: "payment-pending",
|
|
480
486
|
pending: "pending",
|
|
487
|
+
scheduled: "scheduled",
|
|
481
488
|
};
|
|
482
489
|
exports.FleetInstanceMatchCriteria = {
|
|
483
490
|
open: "open",
|
|
@@ -104,6 +104,7 @@ exports.FleetReplacementStrategy = {
|
|
|
104
104
|
LAUNCH_BEFORE_TERMINATE: "launch-before-terminate",
|
|
105
105
|
};
|
|
106
106
|
exports.DefaultTargetCapacityType = {
|
|
107
|
+
CAPACITY_BLOCK: "capacity-block",
|
|
107
108
|
ON_DEMAND: "on-demand",
|
|
108
109
|
SPOT: "spot",
|
|
109
110
|
};
|
|
@@ -269,6 +270,7 @@ exports.ShutdownBehavior = {
|
|
|
269
270
|
terminate: "terminate",
|
|
270
271
|
};
|
|
271
272
|
exports.MarketType = {
|
|
273
|
+
capacity_block: "capacity-block",
|
|
272
274
|
spot: "spot",
|
|
273
275
|
};
|
|
274
276
|
exports.InstanceInterruptionBehavior = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SnapshotTaskDetailFilterSensitiveLog = exports.DescribeImportImageTasksResultFilterSensitiveLog = exports.ImportImageTaskFilterSensitiveLog = exports.SnapshotDetailFilterSensitiveLog = exports.DescribeConversionTasksResultFilterSensitiveLog = exports.ConversionTaskFilterSensitiveLog = exports.ImportVolumeTaskDetailsFilterSensitiveLog = exports.ImportInstanceTaskDetailsFilterSensitiveLog = exports.ImportInstanceVolumeDetailItemFilterSensitiveLog = exports.DiskImageDescriptionFilterSensitiveLog = exports.DescribeBundleTasksResultFilterSensitiveLog = exports.DeleteVerifiedAccessTrustProviderResultFilterSensitiveLog = exports.
|
|
4
|
-
exports.DescribeImportSnapshotTasksResultFilterSensitiveLog =
|
|
3
|
+
exports.ImportSnapshotTaskFilterSensitiveLog = exports.SnapshotTaskDetailFilterSensitiveLog = exports.DescribeImportImageTasksResultFilterSensitiveLog = exports.ImportImageTaskFilterSensitiveLog = exports.SnapshotDetailFilterSensitiveLog = exports.DescribeConversionTasksResultFilterSensitiveLog = exports.ConversionTaskFilterSensitiveLog = exports.ImportVolumeTaskDetailsFilterSensitiveLog = exports.ImportInstanceTaskDetailsFilterSensitiveLog = exports.ImportInstanceVolumeDetailItemFilterSensitiveLog = exports.DiskImageDescriptionFilterSensitiveLog = exports.DescribeBundleTasksResultFilterSensitiveLog = exports.DeleteVerifiedAccessTrustProviderResultFilterSensitiveLog = exports.InstanceAttributeName = exports.VirtualizationType = exports.TpmSupportValues = exports.ImageState = exports.DeviceType = exports.ImdsSupportValues = exports.ImageTypeValues = exports.HypervisorType = exports.BootModeValues = exports.ArchitectureValues = exports.ImageAttributeName = exports.ReservationState = exports.PaymentOption = exports.FpgaImageStateCode = exports.ProductCodeValues = exports.PermissionGroup = exports.FpgaImageAttributeName = exports.FleetActivityStatus = exports.FleetEventType = exports.FastSnapshotRestoreStateCode = exports.FastLaunchStateCode = exports.FastLaunchResourceType = exports.ElasticGpuState = exports.ElasticGpuStatus = exports.ConversionTaskState = exports.VpnProtocol = exports.ClientVpnEndpointAttributeStatusCode = exports.AssociatedNetworkType = exports.ClientVpnConnectionStatusCode = exports.StatisticType = exports.PeriodType = exports.MetricType = exports.AvailabilityZoneState = exports.AvailabilityZoneOptInStatus = exports.IpamPoolCidrState = exports.IpamPoolCidrFailureCode = exports.DeleteQueuedReservedInstancesErrorCode = void 0;
|
|
4
|
+
exports.DescribeImportSnapshotTasksResultFilterSensitiveLog = void 0;
|
|
5
5
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
6
|
const models_0_1 = require("./models_0");
|
|
7
7
|
exports.DeleteQueuedReservedInstancesErrorCode = {
|
|
@@ -213,10 +213,6 @@ exports.InstanceAttributeName = {
|
|
|
213
213
|
sriovNetSupport: "sriovNetSupport",
|
|
214
214
|
userData: "userData",
|
|
215
215
|
};
|
|
216
|
-
exports.InstanceBootModeValues = {
|
|
217
|
-
legacy_bios: "legacy-bios",
|
|
218
|
-
uefi: "uefi",
|
|
219
|
-
};
|
|
220
216
|
const DeleteVerifiedAccessTrustProviderResultFilterSensitiveLog = (obj) => ({
|
|
221
217
|
...obj,
|
|
222
218
|
...(obj.VerifiedAccessTrustProvider && {
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.DescribeSpotInstanceRequestsResultFilterSensitiveLog = exports.SpotInstanceRequestFilterSensitiveLog = exports.LaunchSpecificationFilterSensitiveLog = exports.DescribeSpotFleetRequestsResponseFilterSensitiveLog = exports.SpotFleetRequestConfigFilterSensitiveLog = void 0;
|
|
3
|
+
exports.SpotFleetLaunchSpecificationFilterSensitiveLog = exports.DescribeLaunchTemplateVersionsResultFilterSensitiveLog = exports.SpotInstanceState = exports.ReplacementStrategy = exports.OnDemandAllocationStrategy = exports.ExcessCapacityTerminationPolicy = exports.EventType = exports.TieringOperationStatus = exports.SnapshotAttributeName = exports.ReservedInstanceState = exports.Scope = exports.RecurringChargeFrequency = exports.RIProductDescription = exports.OfferingTypeValues = exports.OfferingClassType = exports.NetworkInterfaceAttribute = exports.AnalysisStatus = exports.FindingsFound = exports.MoveStatus = exports.UsageClassType = exports.RootDeviceType = exports.BootModeType = exports.SupportedAdditionalProcessorFeature = exports.ArchitectureType = exports.PlacementGroupStrategy = exports.NitroTpmSupport = exports.NitroEnclavesSupport = exports.EnaSupport = exports.EphemeralNvmeSupport = exports.InstanceStorageEncryptionSupport = exports.DiskType = exports.InstanceTypeHypervisor = exports.EbsNvmeSupport = exports.EbsEncryptionSupport = exports.EbsOptimizedSupport = exports.LocationType = exports.SummaryStatus = exports.StatusType = exports.StatusName = exports.EventCode = exports.InstanceStateName = exports.MonitoringState = exports.InstanceMetadataOptionsState = exports.InstanceMetadataTagsState = exports.HttpTokensState = exports.InstanceMetadataProtocolState = exports.InstanceMetadataEndpointState = exports.InstanceAutoRecoveryState = exports.InstanceLifecycleType = exports.InstanceBootModeValues = void 0;
|
|
4
|
+
exports.DescribeSpotInstanceRequestsResultFilterSensitiveLog = exports.SpotInstanceRequestFilterSensitiveLog = exports.LaunchSpecificationFilterSensitiveLog = exports.DescribeSpotFleetRequestsResponseFilterSensitiveLog = exports.SpotFleetRequestConfigFilterSensitiveLog = exports.SpotFleetRequestConfigDataFilterSensitiveLog = void 0;
|
|
5
5
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
6
|
const models_1_1 = require("./models_1");
|
|
7
|
+
exports.InstanceBootModeValues = {
|
|
8
|
+
legacy_bios: "legacy-bios",
|
|
9
|
+
uefi: "uefi",
|
|
10
|
+
};
|
|
7
11
|
exports.InstanceLifecycleType = {
|
|
12
|
+
capacity_block: "capacity-block",
|
|
8
13
|
scheduled: "scheduled",
|
|
9
14
|
spot: "spot",
|
|
10
15
|
};
|
|
@@ -143,6 +148,7 @@ exports.RootDeviceType = {
|
|
|
143
148
|
instance_store: "instance-store",
|
|
144
149
|
};
|
|
145
150
|
exports.UsageClassType = {
|
|
151
|
+
capacity_block: "capacity-block",
|
|
146
152
|
on_demand: "on-demand",
|
|
147
153
|
spot: "spot",
|
|
148
154
|
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateDescribeCapacityBlockOfferings = void 0;
|
|
4
|
+
const DescribeCapacityBlockOfferingsCommand_1 = require("../commands/DescribeCapacityBlockOfferingsCommand");
|
|
5
|
+
const EC2Client_1 = require("../EC2Client");
|
|
6
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
7
|
+
return await client.send(new DescribeCapacityBlockOfferingsCommand_1.DescribeCapacityBlockOfferingsCommand(input), ...args);
|
|
8
|
+
};
|
|
9
|
+
async function* paginateDescribeCapacityBlockOfferings(config, input, ...additionalArguments) {
|
|
10
|
+
let token = config.startingToken || undefined;
|
|
11
|
+
let hasNext = true;
|
|
12
|
+
let page;
|
|
13
|
+
while (hasNext) {
|
|
14
|
+
input.NextToken = token;
|
|
15
|
+
input["MaxResults"] = config.pageSize;
|
|
16
|
+
if (config.client instanceof EC2Client_1.EC2Client) {
|
|
17
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
throw new Error("Invalid client, expected EC2 | EC2Client");
|
|
21
|
+
}
|
|
22
|
+
yield page;
|
|
23
|
+
const prevToken = token;
|
|
24
|
+
token = page.NextToken;
|
|
25
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
26
|
+
}
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
exports.paginateDescribeCapacityBlockOfferings = paginateDescribeCapacityBlockOfferings;
|
|
@@ -5,13 +5,14 @@ tslib_1.__exportStar(require("./DescribeAddressTransfersPaginator"), exports);
|
|
|
5
5
|
tslib_1.__exportStar(require("./DescribeAddressesAttributePaginator"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./DescribeAwsNetworkPerformanceMetricSubscriptionsPaginator"), exports);
|
|
7
7
|
tslib_1.__exportStar(require("./DescribeByoipCidrsPaginator"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./DescribeCapacityBlockOfferingsPaginator"), exports);
|
|
8
9
|
tslib_1.__exportStar(require("./DescribeCapacityReservationFleetsPaginator"), exports);
|
|
9
10
|
tslib_1.__exportStar(require("./DescribeCapacityReservationsPaginator"), exports);
|
|
10
11
|
tslib_1.__exportStar(require("./DescribeCarrierGatewaysPaginator"), exports);
|
|
11
12
|
tslib_1.__exportStar(require("./DescribeClassicLinkInstancesPaginator"), exports);
|
|
12
13
|
tslib_1.__exportStar(require("./DescribeClientVpnAuthorizationRulesPaginator"), exports);
|
|
13
|
-
tslib_1.__exportStar(require("./DescribeClientVpnConnectionsPaginator"), exports);
|
|
14
14
|
tslib_1.__exportStar(require("./Interfaces"), exports);
|
|
15
|
+
tslib_1.__exportStar(require("./DescribeClientVpnConnectionsPaginator"), exports);
|
|
15
16
|
tslib_1.__exportStar(require("./DescribeClientVpnEndpointsPaginator"), exports);
|
|
16
17
|
tslib_1.__exportStar(require("./DescribeClientVpnRoutesPaginator"), exports);
|
|
17
18
|
tslib_1.__exportStar(require("./DescribeClientVpnTargetNetworksPaginator"), exports);
|