@aws-sdk/ec2-metadata-service 3.537.0 → 3.539.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/MetadataServiceOptions.js +1 -0
- package/dist-cjs/index.js +1 -1
- package/dist-es/MetadataService.js +1 -1
- package/dist-es/MetadataServiceOptions.js +1 -0
- package/dist-types/MetadataServiceOptions.d.ts +30 -0
- package/dist-types/ts3.4/MetadataServiceOptions.d.ts +9 -0
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("./index.js");
|
package/dist-cjs/index.js
CHANGED
|
@@ -25,9 +25,9 @@ __export(src_exports, {
|
|
|
25
25
|
module.exports = __toCommonJS(src_exports);
|
|
26
26
|
|
|
27
27
|
// src/MetadataService.ts
|
|
28
|
-
var import_protocol_http = require("@aws-sdk/protocol-http");
|
|
29
28
|
var import_node_config_provider = require("@smithy/node-config-provider");
|
|
30
29
|
var import_node_http_handler = require("@smithy/node-http-handler");
|
|
30
|
+
var import_protocol_http = require("@smithy/protocol-http");
|
|
31
31
|
var import_util_stream = require("@smithy/util-stream");
|
|
32
32
|
|
|
33
33
|
// src/ConfigLoaders.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
1
|
import { loadConfig } from "@smithy/node-config-provider";
|
|
3
2
|
import { NodeHttpHandler } from "@smithy/node-http-handler";
|
|
3
|
+
import { HttpRequest } from "@smithy/protocol-http";
|
|
4
4
|
import { sdkStreamMixin } from "@smithy/util-stream";
|
|
5
5
|
import { ENDPOINT_SELECTORS, IMDSv1_DISABLED_SELECTORS } from "./ConfigLoaders";
|
|
6
6
|
export class MetadataService {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @public
|
|
3
|
+
*/
|
|
4
|
+
export interface MetadataServiceOptions {
|
|
5
|
+
/**
|
|
6
|
+
* the endpoint of the instance metadata service.
|
|
7
|
+
*/
|
|
8
|
+
endpoint?: string;
|
|
9
|
+
/**
|
|
10
|
+
* a map of options to pass to the underlying HTTP request.
|
|
11
|
+
*/
|
|
12
|
+
httpOptions?: {
|
|
13
|
+
/**
|
|
14
|
+
* a timeout value in milliseconds to wait before aborting the connection. Set to 0 for no timeout.
|
|
15
|
+
*/
|
|
16
|
+
timeout?: number;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Prevent IMDSv1 fallback.
|
|
20
|
+
*/
|
|
21
|
+
ec2MetadataV1Disabled?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* profile name to check for IMDSv1 settings.
|
|
24
|
+
*/
|
|
25
|
+
profile?: string;
|
|
26
|
+
/**
|
|
27
|
+
* when true, metadata service will not fetch token, which indicates usage of IMDSv1
|
|
28
|
+
*/
|
|
29
|
+
disableFetchToken?: boolean;
|
|
30
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/ec2-metadata-service",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.539.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline ec2-metadata-service",
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
"module": "./dist-es/index.js",
|
|
22
22
|
"types": "./dist-types/index.d.ts",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@aws-sdk/protocol-http": "*",
|
|
25
24
|
"@aws-sdk/types": "3.535.0",
|
|
26
25
|
"@smithy/node-config-provider": "^2.3.0",
|
|
27
26
|
"@smithy/node-http-handler": "^2.5.0",
|
|
27
|
+
"@smithy/protocol-http": "^3.3.0",
|
|
28
28
|
"@smithy/types": "^2.12.0",
|
|
29
29
|
"@smithy/util-stream": "^2.2.0",
|
|
30
30
|
"tslib": "^2.6.2"
|