@aws-sdk/client-ec2 3.433.0 → 3.436.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.
|
@@ -4,6 +4,7 @@ exports.getRuntimeConfig = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
6
6
|
const client_sts_1 = require("@aws-sdk/client-sts");
|
|
7
|
+
const core_1 = require("@aws-sdk/core");
|
|
7
8
|
const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
|
|
8
9
|
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
9
10
|
const config_resolver_1 = require("@smithy/config-resolver");
|
|
@@ -22,6 +23,7 @@ const getRuntimeConfig = (config) => {
|
|
|
22
23
|
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
23
24
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
24
25
|
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
26
|
+
(0, core_1.emitWarningIfUnsupportedVersion)(process.version);
|
|
25
27
|
return {
|
|
26
28
|
...clientSharedValues,
|
|
27
29
|
...config,
|
|
@@ -6,17 +6,19 @@ const url_parser_1 = require("@smithy/url-parser");
|
|
|
6
6
|
const util_base64_1 = require("@smithy/util-base64");
|
|
7
7
|
const util_utf8_1 = require("@smithy/util-utf8");
|
|
8
8
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
9
|
-
const getRuntimeConfig = (config) =>
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
9
|
+
const getRuntimeConfig = (config) => {
|
|
10
|
+
return {
|
|
11
|
+
apiVersion: "2016-11-15",
|
|
12
|
+
base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
|
|
13
|
+
base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
|
|
14
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
15
|
+
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
|
16
|
+
extensions: config?.extensions ?? [],
|
|
17
|
+
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
18
|
+
serviceId: config?.serviceId ?? "EC2",
|
|
19
|
+
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
20
|
+
utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
|
|
21
|
+
utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
|
|
22
|
+
};
|
|
23
|
+
};
|
|
22
24
|
exports.getRuntimeConfig = getRuntimeConfig;
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import packageInfo from "../package.json";
|
|
2
2
|
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
3
|
+
import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
|
|
3
4
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
4
5
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
5
6
|
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
|
|
@@ -18,6 +19,7 @@ export const getRuntimeConfig = (config) => {
|
|
|
18
19
|
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
19
20
|
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
20
21
|
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
22
|
+
awsCheckVersion(process.version);
|
|
21
23
|
return {
|
|
22
24
|
...clientSharedValues,
|
|
23
25
|
...config,
|
|
@@ -3,16 +3,18 @@ import { parseUrl } from "@smithy/url-parser";
|
|
|
3
3
|
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
4
4
|
import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
|
|
5
5
|
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
|
6
|
-
export const getRuntimeConfig = (config) =>
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
6
|
+
export const getRuntimeConfig = (config) => {
|
|
7
|
+
return {
|
|
8
|
+
apiVersion: "2016-11-15",
|
|
9
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
10
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
11
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
12
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
13
|
+
extensions: config?.extensions ?? [],
|
|
14
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
15
|
+
serviceId: config?.serviceId ?? "EC2",
|
|
16
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
17
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
18
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -9230,9 +9230,10 @@ export interface DescribeSpotPriceHistoryRequest {
|
|
|
9230
9230
|
* <li>
|
|
9231
9231
|
* <p>
|
|
9232
9232
|
* <code>timestamp</code> - The time stamp of the Spot price history, in UTC format
|
|
9233
|
-
* (for example,
|
|
9234
|
-
*
|
|
9235
|
-
*
|
|
9233
|
+
* (for example, <i>ddd MMM dd
|
|
9234
|
+
* HH</i>:<i>mm</i>:<i>ss</i> UTC
|
|
9235
|
+
* <i>YYYY</i>). You can use wildcards (<code>*</code> and
|
|
9236
|
+
* <code>?</code>). Greater than or less than comparison is not
|
|
9236
9237
|
* supported.</p>
|
|
9237
9238
|
* </li>
|
|
9238
9239
|
* </ul>
|
|
@@ -30,6 +30,21 @@ export interface HibernationOptionsRequest {
|
|
|
30
30
|
/**
|
|
31
31
|
* @public
|
|
32
32
|
* <p>Set to <code>true</code> to enable your instance for hibernation.</p>
|
|
33
|
+
* <p>For Spot Instances, if you set <code>Configured</code> to <code>true</code>, either
|
|
34
|
+
* omit the <code>InstanceInterruptionBehavior</code> parameter (for <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_SpotMarketOptions.html">
|
|
35
|
+
* <code>SpotMarketOptions</code>
|
|
36
|
+
* </a>), or set it to
|
|
37
|
+
* <code>hibernate</code>. When <code>Configured</code> is true:</p>
|
|
38
|
+
* <ul>
|
|
39
|
+
* <li>
|
|
40
|
+
* <p>If you omit <code>InstanceInterruptionBehavior</code>, it defaults to
|
|
41
|
+
* <code>hibernate</code>.</p>
|
|
42
|
+
* </li>
|
|
43
|
+
* <li>
|
|
44
|
+
* <p>If you set <code>InstanceInterruptionBehavior</code> to a value other than
|
|
45
|
+
* <code>hibernate</code>, you'll get an error.</p>
|
|
46
|
+
* </li>
|
|
47
|
+
* </ul>
|
|
33
48
|
* <p>Default: <code>false</code>
|
|
34
49
|
* </p>
|
|
35
50
|
*/
|
|
@@ -83,8 +98,21 @@ export interface SpotMarketOptions {
|
|
|
83
98
|
ValidUntil?: Date;
|
|
84
99
|
/**
|
|
85
100
|
* @public
|
|
86
|
-
* <p>The behavior when a Spot Instance is interrupted
|
|
87
|
-
*
|
|
101
|
+
* <p>The behavior when a Spot Instance is interrupted.</p>
|
|
102
|
+
* <p>If <code>Configured</code> (for <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_HibernationOptionsRequest.html">
|
|
103
|
+
* <code>HibernationOptions</code>
|
|
104
|
+
* </a>) is set to <code>true</code>, the
|
|
105
|
+
* <code>InstanceInterruptionBehavior</code> parameter is automatically set to
|
|
106
|
+
* <code>hibernate</code>. If you set it to <code>stop</code> or
|
|
107
|
+
* <code>terminate</code>, you'll get an error.</p>
|
|
108
|
+
* <p>If <code>Configured</code> (for <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_HibernationOptionsRequest.html">
|
|
109
|
+
* <code>HibernationOptions</code>
|
|
110
|
+
* </a>) is set to <code>false</code> or
|
|
111
|
+
* <code>null</code>, the <code>InstanceInterruptionBehavior</code> parameter is
|
|
112
|
+
* automatically set to <code>terminate</code>. You can also set it to <code>stop</code> or
|
|
113
|
+
* <code>hibernate</code>.</p>
|
|
114
|
+
* <p>For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/interruption-behavior.html">Interruption
|
|
115
|
+
* behavior</a> in the <i>Amazon EC2 User Guide</i>.</p>
|
|
88
116
|
*/
|
|
89
117
|
InstanceInterruptionBehavior?: InstanceInterruptionBehavior;
|
|
90
118
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-ec2",
|
|
3
3
|
"description": "AWS SDK for JavaScript Ec2 Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.436.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,8 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/
|
|
24
|
+
"@aws-sdk/client-sts": "3.436.0",
|
|
25
|
+
"@aws-sdk/core": "3.436.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.436.0",
|
|
26
27
|
"@aws-sdk/middleware-host-header": "3.433.0",
|
|
27
28
|
"@aws-sdk/middleware-logger": "3.433.0",
|
|
28
29
|
"@aws-sdk/middleware-recursion-detection": "3.433.0",
|