cdk-cost-analyzer 0.1.54 → 0.1.56

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.
@@ -2,35 +2,35 @@
2
2
  "entries": {
3
3
  "AmazonS3:US East (N. Virginia):storageClass:General Purpose|volumeType:Standard": {
4
4
  "price": 0.023,
5
- "timestamp": 1779132784836
5
+ "timestamp": 1780078952090
6
6
  },
7
7
  "AmazonDynamoDB:US East (N. Virginia):group:DDB-ReadUnits|productFamily:Amazon DynamoDB PayPerRequest Throughput": {
8
8
  "price": 0.023,
9
- "timestamp": 1779132784848
9
+ "timestamp": 1780078952103
10
10
  },
11
11
  "AmazonDynamoDB:US East (N. Virginia):group:DDB-WriteUnits|productFamily:Amazon DynamoDB PayPerRequest Throughput": {
12
12
  "price": 0.023,
13
- "timestamp": 1779132784848
13
+ "timestamp": 1780078952103
14
14
  },
15
15
  "AmazonEC2:US East (N. Virginia):capacitystatus:Used|instanceType:t3.micro|operatingSystem:Linux|preInstalledSw:NA|tenancy:Shared": {
16
16
  "price": 0.023,
17
- "timestamp": 1779132784857
17
+ "timestamp": 1780078952113
18
18
  },
19
19
  "AWSLambda:US East (N. Virginia):group:AWS-Lambda-Requests": {
20
20
  "price": 0.023,
21
- "timestamp": 1779132784862
21
+ "timestamp": 1780078952124
22
22
  },
23
23
  "AWSLambda:US East (N. Virginia):group:AWS-Lambda-Duration": {
24
24
  "price": 0.023,
25
- "timestamp": 1779132784862
25
+ "timestamp": 1780078952124
26
26
  },
27
27
  "AmazonS3:EU (Frankfurt):storageClass:General Purpose|volumeType:Standard": {
28
28
  "price": 0.023,
29
- "timestamp": 1779132795047
29
+ "timestamp": 1780078962069
30
30
  },
31
31
  "AmazonS3:invalid-region-123:storageClass:General Purpose|volumeType:Standard": {
32
32
  "price": 0.023,
33
- "timestamp": 1779132795088
33
+ "timestamp": 1780078962114
34
34
  }
35
35
  }
36
36
  }
@@ -328,7 +328,7 @@ const commonParams = {
328
328
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
329
329
  };
330
330
 
331
- var version = "3.997.8";
331
+ var version = "3.997.12";
332
332
  var packageInfo = {
333
333
  version: version};
334
334
 
@@ -85,7 +85,7 @@ const commonParams = {
85
85
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
86
86
  };
87
87
 
88
- var version = "3.997.8";
88
+ var version = "3.997.12";
89
89
  var packageInfo = {
90
90
  version: version};
91
91
 
@@ -107,11 +107,9 @@ Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI
107
107
  }
108
108
  const url = new URL(host);
109
109
  (0, checkUrl_1.checkUrl)(url, options.logger);
110
- const requestHandler = node_http_handler_1.NodeHttpHandler.create({
111
- requestTimeout: options.timeout ?? 1000,
112
- connectionTimeout: options.timeout ?? 1000,
113
- });
114
- return (0, retry_wrapper_1.retryWrapper)(async () => {
110
+ const requestHandler = node_http_handler_1.NodeHttpHandler.create({ connectionTimeout: options.timeout ?? 1000 });
111
+ const requestTimeout = options.timeout ?? 1000;
112
+ const provider = (0, retry_wrapper_1.retryWrapper)(async () => {
115
113
  const request = (0, requestHelpers_1.createGetRequest)(url);
116
114
  if (token) {
117
115
  request.headers.Authorization = token;
@@ -120,13 +118,21 @@ Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI
120
118
  request.headers.Authorization = (await promises_1.default.readFile(tokenFile)).toString();
121
119
  }
122
120
  try {
123
- const result = await requestHandler.handle(request);
121
+ const result = await requestHandler.handle(request, { requestTimeout });
124
122
  return (0, requestHelpers_1.getCredentials)(result.response).then((creds) => (0, client_1.setCredentialFeature)(creds, "CREDENTIALS_HTTP", "z"));
125
123
  }
126
124
  catch (e) {
127
125
  throw new config_1.CredentialsProviderError(String(e), { logger: options.logger });
128
126
  }
129
127
  }, options.maxRetries ?? 3, options.timeout ?? 1000);
128
+ return async () => {
129
+ try {
130
+ return await provider();
131
+ }
132
+ finally {
133
+ requestHandler.destroy?.();
134
+ }
135
+ };
130
136
  };
131
137
  exports.fromHttp = fromHttp;
132
138
 
@@ -85,7 +85,7 @@ const commonParams = {
85
85
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
86
86
  };
87
87
 
88
- var version = "3.997.8";
88
+ var version = "3.997.12";
89
89
  var packageInfo = {
90
90
  version: version};
91
91
 
@@ -298,7 +298,7 @@ const commonParams = {
298
298
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
299
299
  };
300
300
 
301
- var version = "3.997.8";
301
+ var version = "3.997.12";
302
302
  var packageInfo = {
303
303
  version: version};
304
304