@cdk8s/awscdk-resolver 0.0.55 → 0.0.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.
- package/.jsii +2 -2
- package/lib/resolve.js +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/README.md +88 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/CreateGeneratedTemplateCommand.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/DeleteGeneratedTemplateCommand.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/DescribeGeneratedTemplateCommand.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/DescribeResourceScanCommand.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/GetGeneratedTemplateCommand.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/ListGeneratedTemplatesCommand.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/ListResourceScanRelatedResourcesCommand.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/ListResourceScanResourcesCommand.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/ListResourceScansCommand.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/StartResourceScanCommand.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/commands/UpdateGeneratedTemplateCommand.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +1677 -73
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/models/models_1.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/ListGeneratedTemplatesPaginator.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/ListResourceScanRelatedResourcesPaginator.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/ListResourceScanResourcesPaginator.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/pagination/ListResourceScansPaginator.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/CloudFormation.js +22 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/CreateGeneratedTemplateCommand.js +24 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/DeleteGeneratedTemplateCommand.js +24 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/DescribeGeneratedTemplateCommand.js +24 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/DescribeResourceScanCommand.js +24 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/GetGeneratedTemplateCommand.js +24 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/ListGeneratedTemplatesCommand.js +24 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/ListResourceScanRelatedResourcesCommand.js +24 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/ListResourceScanResourcesCommand.js +24 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/ListResourceScansCommand.js +24 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/StartResourceScanCommand.js +24 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/UpdateGeneratedTemplateCommand.js +24 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/commands/index.js +11 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/models/index.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/models/models_0.js +104 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/models/models_1.js +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/ListGeneratedTemplatesPaginator.js +4 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/ListResourceScanRelatedResourcesPaginator.js +4 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/ListResourceScanResourcesPaginator.js +4 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/ListResourceScansPaginator.js +4 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/pagination/index.js +4 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-es/protocols/Aws_query.js +1322 -92
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/CloudFormation.d.ts +77 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/CloudFormationClient.d.ts +13 -2
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/CreateGeneratedTemplateCommand.d.ts +116 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DeleteGeneratedTemplateCommand.d.ts +75 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeGeneratedTemplateCommand.d.ts +135 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/DescribeResourceScanCommand.d.ts +168 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/GetGeneratedTemplateCommand.d.ts +100 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListGeneratedTemplatesCommand.d.ts +112 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListResourceScanRelatedResourcesCommand.d.ts +145 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListResourceScanResourcesCommand.d.ts +147 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ListResourceScansCommand.d.ts +97 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/StartResourceScanCommand.d.ts +91 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/StopStackSetOperationCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/TestTypeCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/UpdateGeneratedTemplateCommand.d.ts +156 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/UpdateStackCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/UpdateStackInstancesCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/UpdateStackSetCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/UpdateTerminationProtectionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/ValidateTemplateCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/commands/index.d.ts +11 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/index.d.ts +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/models_0.d.ts +4075 -3877
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/models/models_1.d.ts +974 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/ListGeneratedTemplatesPaginator.d.ts +7 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/ListResourceScanRelatedResourcesPaginator.d.ts +7 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/ListResourceScanResourcesPaginator.d.ts +7 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/ListResourceScansPaginator.d.ts +7 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/pagination/index.d.ts +4 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/protocols/Aws_query.d.ts +99 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/CloudFormation.d.ts +187 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/CloudFormationClient.d.ts +66 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/CreateGeneratedTemplateCommand.d.ts +30 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DeleteGeneratedTemplateCommand.d.ts +26 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DescribeGeneratedTemplateCommand.d.ts +30 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/DescribeResourceScanCommand.d.ts +30 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/GetGeneratedTemplateCommand.d.ts +30 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListGeneratedTemplatesCommand.d.ts +30 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListResourceScanRelatedResourcesCommand.d.ts +30 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListResourceScanResourcesCommand.d.ts +30 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ListResourceScansCommand.d.ts +29 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/StartResourceScanCommand.d.ts +29 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/StopStackSetOperationCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/TestTypeCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/UpdateGeneratedTemplateCommand.d.ts +30 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/UpdateStackCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/UpdateStackInstancesCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/UpdateStackSetCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/UpdateTerminationProtectionCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/ValidateTemplateCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/commands/index.d.ts +11 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/models/index.d.ts +1 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/models/models_0.d.ts +250 -99
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/models/models_1.d.ts +132 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/ListGeneratedTemplatesPaginator.d.ts +11 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/ListResourceScanRelatedResourcesPaginator.d.ts +11 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/ListResourceScanResourcesPaginator.d.ts +11 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/ListResourceScansPaginator.d.ts +11 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/protocols/Aws_query.d.ts +132 -0
- package/node_modules/@aws-sdk/client-cloudformation/package.json +3 -3
- package/node_modules/@aws-sdk/client-sso-oidc/package.json +3 -3
- package/node_modules/@aws-sdk/client-sts/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-http/README.md +10 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/checkUrl.js +46 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.browser.js +32 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js +65 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttpTypes.js +2 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/requestHelpers.js +59 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/retry-wrapper.js +17 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.browser.js +5 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/index.js +5 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/checkUrl.js +42 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.browser.js +27 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.js +59 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttpTypes.js +1 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/requestHelpers.js +53 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/retry-wrapper.js +13 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-es/index.browser.js +1 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-es/index.js +1 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/fromHttp/checkUrl.d.ts +7 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/fromHttp/fromHttp.browser.d.ts +6 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/fromHttp/fromHttp.d.ts +6 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/fromHttp/fromHttpTypes.d.ts +69 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/fromHttp/requestHelpers.d.ts +11 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/fromHttp/retry-wrapper.d.ts +10 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/index.browser.d.ts +2 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/index.d.ts +2 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/ts3.4/fromHttp/checkUrl.d.ts +1 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/ts3.4/fromHttp/fromHttp.browser.d.ts +5 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/ts3.4/fromHttp/fromHttp.d.ts +5 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/ts3.4/fromHttp/fromHttpTypes.d.ts +18 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/ts3.4/fromHttp/requestHelpers.d.ts +7 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/ts3.4/fromHttp/retry-wrapper.d.ts +8 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/ts3.4/index.browser.d.ts +5 -0
- package/node_modules/@aws-sdk/credential-provider-http/dist-types/ts3.4/index.d.ts +5 -0
- package/node_modules/@aws-sdk/credential-provider-http/package.json +67 -0
- package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +7 -10
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProfileData.js +1 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveSsoCredentials.js +4 -8
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveWebIdentityCredentials.js +1 -0
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveSsoCredentials.d.ts +2 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveSsoCredentials.d.ts +4 -2
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +5 -4
- package/node_modules/@aws-sdk/credential-provider-node/dist-es/defaultProvider.js +2 -2
- package/node_modules/@aws-sdk/credential-provider-node/dist-es/remoteProvider.js +4 -3
- package/node_modules/@aws-sdk/credential-provider-node/dist-types/remoteProvider.d.ts +3 -0
- package/node_modules/@aws-sdk/credential-provider-node/package.json +5 -4
- package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +9 -6
- package/node_modules/@aws-sdk/credential-provider-sso/dist-es/fromSSO.js +3 -5
- package/node_modules/@aws-sdk/credential-provider-sso/dist-es/resolveSSOCredentials.js +5 -2
- package/node_modules/@aws-sdk/credential-provider-sso/dist-types/resolveSSOCredentials.d.ts +1 -1
- package/node_modules/@aws-sdk/credential-provider-sso/dist-types/ts3.4/resolveSSOCredentials.d.ts +1 -0
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +2 -2
- package/node_modules/@aws-sdk/token-providers/package.json +2 -2
- package/package.json +4 -4
package/node_modules/@aws-sdk/client-cloudformation/dist-types/ts3.4/protocols/Aws_query.d.ts
CHANGED
@@ -27,6 +27,10 @@ import {
|
|
27
27
|
CreateChangeSetCommandInput,
|
28
28
|
CreateChangeSetCommandOutput,
|
29
29
|
} from "../commands/CreateChangeSetCommand";
|
30
|
+
import {
|
31
|
+
CreateGeneratedTemplateCommandInput,
|
32
|
+
CreateGeneratedTemplateCommandOutput,
|
33
|
+
} from "../commands/CreateGeneratedTemplateCommand";
|
30
34
|
import {
|
31
35
|
CreateStackCommandInput,
|
32
36
|
CreateStackCommandOutput,
|
@@ -51,6 +55,10 @@ import {
|
|
51
55
|
DeleteChangeSetCommandInput,
|
52
56
|
DeleteChangeSetCommandOutput,
|
53
57
|
} from "../commands/DeleteChangeSetCommand";
|
58
|
+
import {
|
59
|
+
DeleteGeneratedTemplateCommandInput,
|
60
|
+
DeleteGeneratedTemplateCommandOutput,
|
61
|
+
} from "../commands/DeleteGeneratedTemplateCommand";
|
54
62
|
import {
|
55
63
|
DeleteStackCommandInput,
|
56
64
|
DeleteStackCommandOutput,
|
@@ -79,6 +87,10 @@ import {
|
|
79
87
|
DescribeChangeSetHooksCommandInput,
|
80
88
|
DescribeChangeSetHooksCommandOutput,
|
81
89
|
} from "../commands/DescribeChangeSetHooksCommand";
|
90
|
+
import {
|
91
|
+
DescribeGeneratedTemplateCommandInput,
|
92
|
+
DescribeGeneratedTemplateCommandOutput,
|
93
|
+
} from "../commands/DescribeGeneratedTemplateCommand";
|
82
94
|
import {
|
83
95
|
DescribeOrganizationsAccessCommandInput,
|
84
96
|
DescribeOrganizationsAccessCommandOutput,
|
@@ -87,6 +99,10 @@ import {
|
|
87
99
|
DescribePublisherCommandInput,
|
88
100
|
DescribePublisherCommandOutput,
|
89
101
|
} from "../commands/DescribePublisherCommand";
|
102
|
+
import {
|
103
|
+
DescribeResourceScanCommandInput,
|
104
|
+
DescribeResourceScanCommandOutput,
|
105
|
+
} from "../commands/DescribeResourceScanCommand";
|
90
106
|
import {
|
91
107
|
DescribeStackDriftDetectionStatusCommandInput,
|
92
108
|
DescribeStackDriftDetectionStatusCommandOutput,
|
@@ -151,6 +167,10 @@ import {
|
|
151
167
|
ExecuteChangeSetCommandInput,
|
152
168
|
ExecuteChangeSetCommandOutput,
|
153
169
|
} from "../commands/ExecuteChangeSetCommand";
|
170
|
+
import {
|
171
|
+
GetGeneratedTemplateCommandInput,
|
172
|
+
GetGeneratedTemplateCommandOutput,
|
173
|
+
} from "../commands/GetGeneratedTemplateCommand";
|
154
174
|
import {
|
155
175
|
GetStackPolicyCommandInput,
|
156
176
|
GetStackPolicyCommandOutput,
|
@@ -175,10 +195,26 @@ import {
|
|
175
195
|
ListExportsCommandInput,
|
176
196
|
ListExportsCommandOutput,
|
177
197
|
} from "../commands/ListExportsCommand";
|
198
|
+
import {
|
199
|
+
ListGeneratedTemplatesCommandInput,
|
200
|
+
ListGeneratedTemplatesCommandOutput,
|
201
|
+
} from "../commands/ListGeneratedTemplatesCommand";
|
178
202
|
import {
|
179
203
|
ListImportsCommandInput,
|
180
204
|
ListImportsCommandOutput,
|
181
205
|
} from "../commands/ListImportsCommand";
|
206
|
+
import {
|
207
|
+
ListResourceScanRelatedResourcesCommandInput,
|
208
|
+
ListResourceScanRelatedResourcesCommandOutput,
|
209
|
+
} from "../commands/ListResourceScanRelatedResourcesCommand";
|
210
|
+
import {
|
211
|
+
ListResourceScanResourcesCommandInput,
|
212
|
+
ListResourceScanResourcesCommandOutput,
|
213
|
+
} from "../commands/ListResourceScanResourcesCommand";
|
214
|
+
import {
|
215
|
+
ListResourceScansCommandInput,
|
216
|
+
ListResourceScansCommandOutput,
|
217
|
+
} from "../commands/ListResourceScansCommand";
|
182
218
|
import {
|
183
219
|
ListStackInstanceResourceDriftsCommandInput,
|
184
220
|
ListStackInstanceResourceDriftsCommandOutput,
|
@@ -255,6 +291,10 @@ import {
|
|
255
291
|
SignalResourceCommandInput,
|
256
292
|
SignalResourceCommandOutput,
|
257
293
|
} from "../commands/SignalResourceCommand";
|
294
|
+
import {
|
295
|
+
StartResourceScanCommandInput,
|
296
|
+
StartResourceScanCommandOutput,
|
297
|
+
} from "../commands/StartResourceScanCommand";
|
258
298
|
import {
|
259
299
|
StopStackSetOperationCommandInput,
|
260
300
|
StopStackSetOperationCommandOutput,
|
@@ -263,6 +303,10 @@ import {
|
|
263
303
|
TestTypeCommandInput,
|
264
304
|
TestTypeCommandOutput,
|
265
305
|
} from "../commands/TestTypeCommand";
|
306
|
+
import {
|
307
|
+
UpdateGeneratedTemplateCommandInput,
|
308
|
+
UpdateGeneratedTemplateCommandOutput,
|
309
|
+
} from "../commands/UpdateGeneratedTemplateCommand";
|
266
310
|
import {
|
267
311
|
UpdateStackCommandInput,
|
268
312
|
UpdateStackCommandOutput,
|
@@ -307,6 +351,10 @@ export declare const se_CreateChangeSetCommand: (
|
|
307
351
|
input: CreateChangeSetCommandInput,
|
308
352
|
context: __SerdeContext
|
309
353
|
) => Promise<__HttpRequest>;
|
354
|
+
export declare const se_CreateGeneratedTemplateCommand: (
|
355
|
+
input: CreateGeneratedTemplateCommandInput,
|
356
|
+
context: __SerdeContext
|
357
|
+
) => Promise<__HttpRequest>;
|
310
358
|
export declare const se_CreateStackCommand: (
|
311
359
|
input: CreateStackCommandInput,
|
312
360
|
context: __SerdeContext
|
@@ -331,6 +379,10 @@ export declare const se_DeleteChangeSetCommand: (
|
|
331
379
|
input: DeleteChangeSetCommandInput,
|
332
380
|
context: __SerdeContext
|
333
381
|
) => Promise<__HttpRequest>;
|
382
|
+
export declare const se_DeleteGeneratedTemplateCommand: (
|
383
|
+
input: DeleteGeneratedTemplateCommandInput,
|
384
|
+
context: __SerdeContext
|
385
|
+
) => Promise<__HttpRequest>;
|
334
386
|
export declare const se_DeleteStackCommand: (
|
335
387
|
input: DeleteStackCommandInput,
|
336
388
|
context: __SerdeContext
|
@@ -359,6 +411,10 @@ export declare const se_DescribeChangeSetHooksCommand: (
|
|
359
411
|
input: DescribeChangeSetHooksCommandInput,
|
360
412
|
context: __SerdeContext
|
361
413
|
) => Promise<__HttpRequest>;
|
414
|
+
export declare const se_DescribeGeneratedTemplateCommand: (
|
415
|
+
input: DescribeGeneratedTemplateCommandInput,
|
416
|
+
context: __SerdeContext
|
417
|
+
) => Promise<__HttpRequest>;
|
362
418
|
export declare const se_DescribeOrganizationsAccessCommand: (
|
363
419
|
input: DescribeOrganizationsAccessCommandInput,
|
364
420
|
context: __SerdeContext
|
@@ -367,6 +423,10 @@ export declare const se_DescribePublisherCommand: (
|
|
367
423
|
input: DescribePublisherCommandInput,
|
368
424
|
context: __SerdeContext
|
369
425
|
) => Promise<__HttpRequest>;
|
426
|
+
export declare const se_DescribeResourceScanCommand: (
|
427
|
+
input: DescribeResourceScanCommandInput,
|
428
|
+
context: __SerdeContext
|
429
|
+
) => Promise<__HttpRequest>;
|
370
430
|
export declare const se_DescribeStackDriftDetectionStatusCommand: (
|
371
431
|
input: DescribeStackDriftDetectionStatusCommandInput,
|
372
432
|
context: __SerdeContext
|
@@ -431,6 +491,10 @@ export declare const se_ExecuteChangeSetCommand: (
|
|
431
491
|
input: ExecuteChangeSetCommandInput,
|
432
492
|
context: __SerdeContext
|
433
493
|
) => Promise<__HttpRequest>;
|
494
|
+
export declare const se_GetGeneratedTemplateCommand: (
|
495
|
+
input: GetGeneratedTemplateCommandInput,
|
496
|
+
context: __SerdeContext
|
497
|
+
) => Promise<__HttpRequest>;
|
434
498
|
export declare const se_GetStackPolicyCommand: (
|
435
499
|
input: GetStackPolicyCommandInput,
|
436
500
|
context: __SerdeContext
|
@@ -455,10 +519,26 @@ export declare const se_ListExportsCommand: (
|
|
455
519
|
input: ListExportsCommandInput,
|
456
520
|
context: __SerdeContext
|
457
521
|
) => Promise<__HttpRequest>;
|
522
|
+
export declare const se_ListGeneratedTemplatesCommand: (
|
523
|
+
input: ListGeneratedTemplatesCommandInput,
|
524
|
+
context: __SerdeContext
|
525
|
+
) => Promise<__HttpRequest>;
|
458
526
|
export declare const se_ListImportsCommand: (
|
459
527
|
input: ListImportsCommandInput,
|
460
528
|
context: __SerdeContext
|
461
529
|
) => Promise<__HttpRequest>;
|
530
|
+
export declare const se_ListResourceScanRelatedResourcesCommand: (
|
531
|
+
input: ListResourceScanRelatedResourcesCommandInput,
|
532
|
+
context: __SerdeContext
|
533
|
+
) => Promise<__HttpRequest>;
|
534
|
+
export declare const se_ListResourceScanResourcesCommand: (
|
535
|
+
input: ListResourceScanResourcesCommandInput,
|
536
|
+
context: __SerdeContext
|
537
|
+
) => Promise<__HttpRequest>;
|
538
|
+
export declare const se_ListResourceScansCommand: (
|
539
|
+
input: ListResourceScansCommandInput,
|
540
|
+
context: __SerdeContext
|
541
|
+
) => Promise<__HttpRequest>;
|
462
542
|
export declare const se_ListStackInstanceResourceDriftsCommand: (
|
463
543
|
input: ListStackInstanceResourceDriftsCommandInput,
|
464
544
|
context: __SerdeContext
|
@@ -535,6 +615,10 @@ export declare const se_SignalResourceCommand: (
|
|
535
615
|
input: SignalResourceCommandInput,
|
536
616
|
context: __SerdeContext
|
537
617
|
) => Promise<__HttpRequest>;
|
618
|
+
export declare const se_StartResourceScanCommand: (
|
619
|
+
input: StartResourceScanCommandInput,
|
620
|
+
context: __SerdeContext
|
621
|
+
) => Promise<__HttpRequest>;
|
538
622
|
export declare const se_StopStackSetOperationCommand: (
|
539
623
|
input: StopStackSetOperationCommandInput,
|
540
624
|
context: __SerdeContext
|
@@ -543,6 +627,10 @@ export declare const se_TestTypeCommand: (
|
|
543
627
|
input: TestTypeCommandInput,
|
544
628
|
context: __SerdeContext
|
545
629
|
) => Promise<__HttpRequest>;
|
630
|
+
export declare const se_UpdateGeneratedTemplateCommand: (
|
631
|
+
input: UpdateGeneratedTemplateCommandInput,
|
632
|
+
context: __SerdeContext
|
633
|
+
) => Promise<__HttpRequest>;
|
546
634
|
export declare const se_UpdateStackCommand: (
|
547
635
|
input: UpdateStackCommandInput,
|
548
636
|
context: __SerdeContext
|
@@ -587,6 +675,10 @@ export declare const de_CreateChangeSetCommand: (
|
|
587
675
|
output: __HttpResponse,
|
588
676
|
context: __SerdeContext
|
589
677
|
) => Promise<CreateChangeSetCommandOutput>;
|
678
|
+
export declare const de_CreateGeneratedTemplateCommand: (
|
679
|
+
output: __HttpResponse,
|
680
|
+
context: __SerdeContext
|
681
|
+
) => Promise<CreateGeneratedTemplateCommandOutput>;
|
590
682
|
export declare const de_CreateStackCommand: (
|
591
683
|
output: __HttpResponse,
|
592
684
|
context: __SerdeContext
|
@@ -611,6 +703,10 @@ export declare const de_DeleteChangeSetCommand: (
|
|
611
703
|
output: __HttpResponse,
|
612
704
|
context: __SerdeContext
|
613
705
|
) => Promise<DeleteChangeSetCommandOutput>;
|
706
|
+
export declare const de_DeleteGeneratedTemplateCommand: (
|
707
|
+
output: __HttpResponse,
|
708
|
+
context: __SerdeContext
|
709
|
+
) => Promise<DeleteGeneratedTemplateCommandOutput>;
|
614
710
|
export declare const de_DeleteStackCommand: (
|
615
711
|
output: __HttpResponse,
|
616
712
|
context: __SerdeContext
|
@@ -639,6 +735,10 @@ export declare const de_DescribeChangeSetHooksCommand: (
|
|
639
735
|
output: __HttpResponse,
|
640
736
|
context: __SerdeContext
|
641
737
|
) => Promise<DescribeChangeSetHooksCommandOutput>;
|
738
|
+
export declare const de_DescribeGeneratedTemplateCommand: (
|
739
|
+
output: __HttpResponse,
|
740
|
+
context: __SerdeContext
|
741
|
+
) => Promise<DescribeGeneratedTemplateCommandOutput>;
|
642
742
|
export declare const de_DescribeOrganizationsAccessCommand: (
|
643
743
|
output: __HttpResponse,
|
644
744
|
context: __SerdeContext
|
@@ -647,6 +747,10 @@ export declare const de_DescribePublisherCommand: (
|
|
647
747
|
output: __HttpResponse,
|
648
748
|
context: __SerdeContext
|
649
749
|
) => Promise<DescribePublisherCommandOutput>;
|
750
|
+
export declare const de_DescribeResourceScanCommand: (
|
751
|
+
output: __HttpResponse,
|
752
|
+
context: __SerdeContext
|
753
|
+
) => Promise<DescribeResourceScanCommandOutput>;
|
650
754
|
export declare const de_DescribeStackDriftDetectionStatusCommand: (
|
651
755
|
output: __HttpResponse,
|
652
756
|
context: __SerdeContext
|
@@ -711,6 +815,10 @@ export declare const de_ExecuteChangeSetCommand: (
|
|
711
815
|
output: __HttpResponse,
|
712
816
|
context: __SerdeContext
|
713
817
|
) => Promise<ExecuteChangeSetCommandOutput>;
|
818
|
+
export declare const de_GetGeneratedTemplateCommand: (
|
819
|
+
output: __HttpResponse,
|
820
|
+
context: __SerdeContext
|
821
|
+
) => Promise<GetGeneratedTemplateCommandOutput>;
|
714
822
|
export declare const de_GetStackPolicyCommand: (
|
715
823
|
output: __HttpResponse,
|
716
824
|
context: __SerdeContext
|
@@ -735,10 +843,26 @@ export declare const de_ListExportsCommand: (
|
|
735
843
|
output: __HttpResponse,
|
736
844
|
context: __SerdeContext
|
737
845
|
) => Promise<ListExportsCommandOutput>;
|
846
|
+
export declare const de_ListGeneratedTemplatesCommand: (
|
847
|
+
output: __HttpResponse,
|
848
|
+
context: __SerdeContext
|
849
|
+
) => Promise<ListGeneratedTemplatesCommandOutput>;
|
738
850
|
export declare const de_ListImportsCommand: (
|
739
851
|
output: __HttpResponse,
|
740
852
|
context: __SerdeContext
|
741
853
|
) => Promise<ListImportsCommandOutput>;
|
854
|
+
export declare const de_ListResourceScanRelatedResourcesCommand: (
|
855
|
+
output: __HttpResponse,
|
856
|
+
context: __SerdeContext
|
857
|
+
) => Promise<ListResourceScanRelatedResourcesCommandOutput>;
|
858
|
+
export declare const de_ListResourceScanResourcesCommand: (
|
859
|
+
output: __HttpResponse,
|
860
|
+
context: __SerdeContext
|
861
|
+
) => Promise<ListResourceScanResourcesCommandOutput>;
|
862
|
+
export declare const de_ListResourceScansCommand: (
|
863
|
+
output: __HttpResponse,
|
864
|
+
context: __SerdeContext
|
865
|
+
) => Promise<ListResourceScansCommandOutput>;
|
742
866
|
export declare const de_ListStackInstanceResourceDriftsCommand: (
|
743
867
|
output: __HttpResponse,
|
744
868
|
context: __SerdeContext
|
@@ -815,6 +939,10 @@ export declare const de_SignalResourceCommand: (
|
|
815
939
|
output: __HttpResponse,
|
816
940
|
context: __SerdeContext
|
817
941
|
) => Promise<SignalResourceCommandOutput>;
|
942
|
+
export declare const de_StartResourceScanCommand: (
|
943
|
+
output: __HttpResponse,
|
944
|
+
context: __SerdeContext
|
945
|
+
) => Promise<StartResourceScanCommandOutput>;
|
818
946
|
export declare const de_StopStackSetOperationCommand: (
|
819
947
|
output: __HttpResponse,
|
820
948
|
context: __SerdeContext
|
@@ -823,6 +951,10 @@ export declare const de_TestTypeCommand: (
|
|
823
951
|
output: __HttpResponse,
|
824
952
|
context: __SerdeContext
|
825
953
|
) => Promise<TestTypeCommandOutput>;
|
954
|
+
export declare const de_UpdateGeneratedTemplateCommand: (
|
955
|
+
output: __HttpResponse,
|
956
|
+
context: __SerdeContext
|
957
|
+
) => Promise<UpdateGeneratedTemplateCommandOutput>;
|
826
958
|
export declare const de_UpdateStackCommand: (
|
827
959
|
output: __HttpResponse,
|
828
960
|
context: __SerdeContext
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/client-cloudformation",
|
3
3
|
"description": "AWS SDK for JavaScript Cloudformation Client for Node.js, Browser and React Native",
|
4
|
-
"version": "3.
|
4
|
+
"version": "3.504.0",
|
5
5
|
"scripts": {
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-cloudformation",
|
@@ -20,9 +20,9 @@
|
|
20
20
|
"dependencies": {
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
23
|
-
"@aws-sdk/client-sts": "3.
|
23
|
+
"@aws-sdk/client-sts": "3.504.0",
|
24
24
|
"@aws-sdk/core": "3.496.0",
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
25
|
+
"@aws-sdk/credential-provider-node": "3.504.0",
|
26
26
|
"@aws-sdk/middleware-host-header": "3.502.0",
|
27
27
|
"@aws-sdk/middleware-logger": "3.502.0",
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.502.0",
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/client-sso-oidc",
|
3
3
|
"description": "AWS SDK for JavaScript Sso Oidc Client for Node.js, Browser and React Native",
|
4
|
-
"version": "3.
|
4
|
+
"version": "3.504.0",
|
5
5
|
"scripts": {
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-sso-oidc",
|
@@ -20,7 +20,7 @@
|
|
20
20
|
"dependencies": {
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
23
|
-
"@aws-sdk/client-sts": "3.
|
23
|
+
"@aws-sdk/client-sts": "3.504.0",
|
24
24
|
"@aws-sdk/core": "3.496.0",
|
25
25
|
"@aws-sdk/middleware-host-header": "3.502.0",
|
26
26
|
"@aws-sdk/middleware-logger": "3.502.0",
|
@@ -86,7 +86,7 @@
|
|
86
86
|
},
|
87
87
|
"license": "Apache-2.0",
|
88
88
|
"peerDependencies": {
|
89
|
-
"@aws-sdk/credential-provider-node": "
|
89
|
+
"@aws-sdk/credential-provider-node": "^3.504.0"
|
90
90
|
},
|
91
91
|
"browser": {
|
92
92
|
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/client-sts",
|
3
3
|
"description": "AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",
|
4
|
-
"version": "3.
|
4
|
+
"version": "3.504.0",
|
5
5
|
"scripts": {
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-sts",
|
@@ -88,7 +88,7 @@
|
|
88
88
|
},
|
89
89
|
"license": "Apache-2.0",
|
90
90
|
"peerDependencies": {
|
91
|
-
"@aws-sdk/credential-provider-node": "
|
91
|
+
"@aws-sdk/credential-provider-node": "^3.504.0"
|
92
92
|
},
|
93
93
|
"browser": {
|
94
94
|
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# @aws-sdk/credential-provider-http
|
2
|
+
|
3
|
+
[](https://www.npmjs.com/package/@aws-sdk/credential-provider-http)
|
4
|
+
[](https://www.npmjs.com/package/@aws-sdk/credential-provider-http)
|
5
|
+
|
6
|
+
> An internal transitively required package.
|
7
|
+
|
8
|
+
## Usage
|
9
|
+
|
10
|
+
See https://www.npmjs.com/package/@aws-sdk/credential-providers
|
@@ -0,0 +1,46 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.checkUrl = void 0;
|
4
|
+
const property_provider_1 = require("@smithy/property-provider");
|
5
|
+
const LOOPBACK_CIDR_IPv4 = "127.0.0.0/8";
|
6
|
+
const LOOPBACK_CIDR_IPv6 = "::1/128";
|
7
|
+
const ECS_CONTAINER_HOST = "169.254.170.2";
|
8
|
+
const EKS_CONTAINER_HOST_IPv4 = "169.254.170.23";
|
9
|
+
const EKS_CONTAINER_HOST_IPv6 = "[fd00:ec2::23]";
|
10
|
+
const checkUrl = (url) => {
|
11
|
+
if (url.protocol === "https:") {
|
12
|
+
return;
|
13
|
+
}
|
14
|
+
if (url.hostname === ECS_CONTAINER_HOST ||
|
15
|
+
url.hostname === EKS_CONTAINER_HOST_IPv4 ||
|
16
|
+
url.hostname === EKS_CONTAINER_HOST_IPv6) {
|
17
|
+
return;
|
18
|
+
}
|
19
|
+
if (url.hostname.includes("[")) {
|
20
|
+
if (url.hostname === "[::1]" || url.hostname === "[0000:0000:0000:0000:0000:0000:0000:0001]") {
|
21
|
+
return;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
else {
|
25
|
+
if (url.hostname === "localhost") {
|
26
|
+
return;
|
27
|
+
}
|
28
|
+
const ipComponents = url.hostname.split(".");
|
29
|
+
const inRange = (component) => {
|
30
|
+
const num = parseInt(component, 10);
|
31
|
+
return 0 <= num && num <= 255;
|
32
|
+
};
|
33
|
+
if (ipComponents[0] === "127" &&
|
34
|
+
inRange(ipComponents[1]) &&
|
35
|
+
inRange(ipComponents[2]) &&
|
36
|
+
inRange(ipComponents[3]) &&
|
37
|
+
ipComponents.length === 4) {
|
38
|
+
return;
|
39
|
+
}
|
40
|
+
}
|
41
|
+
throw new property_provider_1.CredentialsProviderError(`URL not accepted. It must either be HTTPS or match one of the following:
|
42
|
+
- loopback CIDR 127.0.0.0/8 or [::1/128]
|
43
|
+
- ECS container host 169.254.170.2
|
44
|
+
- EKS container host 169.254.170.23 or [fd00:ec2::23]`);
|
45
|
+
};
|
46
|
+
exports.checkUrl = checkUrl;
|
@@ -0,0 +1,32 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.fromHttp = void 0;
|
4
|
+
const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
|
5
|
+
const property_provider_1 = require("@smithy/property-provider");
|
6
|
+
const checkUrl_1 = require("./checkUrl");
|
7
|
+
const requestHelpers_1 = require("./requestHelpers");
|
8
|
+
const retry_wrapper_1 = require("./retry-wrapper");
|
9
|
+
const fromHttp = (options) => {
|
10
|
+
var _a, _b, _c;
|
11
|
+
(_a = options.logger) === null || _a === void 0 ? void 0 : _a.debug("@aws-sdk/credential-provider-http", "fromHttp");
|
12
|
+
let host;
|
13
|
+
const full = options.credentialsFullUri;
|
14
|
+
if (full) {
|
15
|
+
host = full;
|
16
|
+
}
|
17
|
+
else {
|
18
|
+
throw new property_provider_1.CredentialsProviderError("No HTTP credential provider host provided.");
|
19
|
+
}
|
20
|
+
const url = new URL(host);
|
21
|
+
(0, checkUrl_1.checkUrl)(url);
|
22
|
+
const requestHandler = new fetch_http_handler_1.FetchHttpHandler();
|
23
|
+
return (0, retry_wrapper_1.retryWrapper)(async () => {
|
24
|
+
const request = (0, requestHelpers_1.createGetRequest)(url);
|
25
|
+
if (options.authorizationToken) {
|
26
|
+
request.headers.Authorization = options.authorizationToken;
|
27
|
+
}
|
28
|
+
const result = await requestHandler.handle(request);
|
29
|
+
return (0, requestHelpers_1.getCredentials)(result.response);
|
30
|
+
}, (_b = options.maxRetries) !== null && _b !== void 0 ? _b : 3, (_c = options.timeout) !== null && _c !== void 0 ? _c : 1000);
|
31
|
+
};
|
32
|
+
exports.fromHttp = fromHttp;
|
@@ -0,0 +1,65 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.fromHttp = void 0;
|
4
|
+
const tslib_1 = require("tslib");
|
5
|
+
const node_http_handler_1 = require("@smithy/node-http-handler");
|
6
|
+
const property_provider_1 = require("@smithy/property-provider");
|
7
|
+
const promises_1 = tslib_1.__importDefault(require("fs/promises"));
|
8
|
+
const checkUrl_1 = require("./checkUrl");
|
9
|
+
const requestHelpers_1 = require("./requestHelpers");
|
10
|
+
const retry_wrapper_1 = require("./retry-wrapper");
|
11
|
+
const AWS_CONTAINER_CREDENTIALS_RELATIVE_URI = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";
|
12
|
+
const DEFAULT_LINK_LOCAL_HOST = "http://169.254.170.2";
|
13
|
+
const AWS_CONTAINER_CREDENTIALS_FULL_URI = "AWS_CONTAINER_CREDENTIALS_FULL_URI";
|
14
|
+
const AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE = "AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE";
|
15
|
+
const AWS_CONTAINER_AUTHORIZATION_TOKEN = "AWS_CONTAINER_AUTHORIZATION_TOKEN";
|
16
|
+
const fromHttp = (options) => {
|
17
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
18
|
+
(_a = options.logger) === null || _a === void 0 ? void 0 : _a.debug("@aws-sdk/credential-provider-http", "fromHttp");
|
19
|
+
let host;
|
20
|
+
const relative = (_b = options.awsContainerCredentialsRelativeUri) !== null && _b !== void 0 ? _b : process.env[AWS_CONTAINER_CREDENTIALS_RELATIVE_URI];
|
21
|
+
const full = (_c = options.awsContainerCredentialsFullUri) !== null && _c !== void 0 ? _c : process.env[AWS_CONTAINER_CREDENTIALS_FULL_URI];
|
22
|
+
const token = (_d = options.awsContainerAuthorizationToken) !== null && _d !== void 0 ? _d : process.env[AWS_CONTAINER_AUTHORIZATION_TOKEN];
|
23
|
+
const tokenFile = (_e = options.awsContainerAuthorizationTokenFile) !== null && _e !== void 0 ? _e : process.env[AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE];
|
24
|
+
if (relative && full) {
|
25
|
+
console.warn("AWS SDK HTTP credentials provider:", "you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri.");
|
26
|
+
console.warn("awsContainerCredentialsFullUri will take precedence.");
|
27
|
+
}
|
28
|
+
if (token && tokenFile) {
|
29
|
+
console.warn("AWS SDK HTTP credentials provider:", "you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile.");
|
30
|
+
console.warn("awsContainerAuthorizationToken will take precedence.");
|
31
|
+
}
|
32
|
+
if (full) {
|
33
|
+
host = full;
|
34
|
+
}
|
35
|
+
else if (relative) {
|
36
|
+
host = `${DEFAULT_LINK_LOCAL_HOST}${relative}`;
|
37
|
+
}
|
38
|
+
else {
|
39
|
+
throw new property_provider_1.CredentialsProviderError(`No HTTP credential provider host provided.
|
40
|
+
Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`);
|
41
|
+
}
|
42
|
+
const url = new URL(host);
|
43
|
+
(0, checkUrl_1.checkUrl)(url);
|
44
|
+
const requestHandler = new node_http_handler_1.NodeHttpHandler({
|
45
|
+
requestTimeout: (_f = options.timeout) !== null && _f !== void 0 ? _f : 1000,
|
46
|
+
connectionTimeout: (_g = options.timeout) !== null && _g !== void 0 ? _g : 1000,
|
47
|
+
});
|
48
|
+
return (0, retry_wrapper_1.retryWrapper)(async () => {
|
49
|
+
const request = (0, requestHelpers_1.createGetRequest)(url);
|
50
|
+
if (token) {
|
51
|
+
request.headers.Authorization = token;
|
52
|
+
}
|
53
|
+
else if (tokenFile) {
|
54
|
+
request.headers.Authorization = (await promises_1.default.readFile(tokenFile)).toString();
|
55
|
+
}
|
56
|
+
try {
|
57
|
+
const result = await requestHandler.handle(request);
|
58
|
+
return (0, requestHelpers_1.getCredentials)(result.response);
|
59
|
+
}
|
60
|
+
catch (e) {
|
61
|
+
throw new property_provider_1.CredentialsProviderError(String(e));
|
62
|
+
}
|
63
|
+
}, (_h = options.maxRetries) !== null && _h !== void 0 ? _h : 3, (_j = options.timeout) !== null && _j !== void 0 ? _j : 1000);
|
64
|
+
};
|
65
|
+
exports.fromHttp = fromHttp;
|
@@ -0,0 +1,59 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.getCredentials = exports.createGetRequest = void 0;
|
4
|
+
const property_provider_1 = require("@smithy/property-provider");
|
5
|
+
const protocol_http_1 = require("@smithy/protocol-http");
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
7
|
+
const util_stream_1 = require("@smithy/util-stream");
|
8
|
+
function createGetRequest(url) {
|
9
|
+
return new protocol_http_1.HttpRequest({
|
10
|
+
protocol: url.protocol,
|
11
|
+
hostname: url.hostname,
|
12
|
+
port: Number(url.port),
|
13
|
+
path: url.pathname,
|
14
|
+
query: Array.from(url.searchParams.entries()).reduce((acc, [k, v]) => {
|
15
|
+
acc[k] = v;
|
16
|
+
return acc;
|
17
|
+
}, {}),
|
18
|
+
fragment: url.hash,
|
19
|
+
});
|
20
|
+
}
|
21
|
+
exports.createGetRequest = createGetRequest;
|
22
|
+
async function getCredentials(response) {
|
23
|
+
var _a, _b;
|
24
|
+
const contentType = (_b = (_a = response === null || response === void 0 ? void 0 : response.headers["content-type"]) !== null && _a !== void 0 ? _a : response === null || response === void 0 ? void 0 : response.headers["Content-Type"]) !== null && _b !== void 0 ? _b : "";
|
25
|
+
if (!contentType.includes("json")) {
|
26
|
+
console.warn("HTTP credential provider response header content-type was not application/json. Observed: " + contentType + ".");
|
27
|
+
}
|
28
|
+
const stream = (0, util_stream_1.sdkStreamMixin)(response.body);
|
29
|
+
const str = await stream.transformToString();
|
30
|
+
if (response.statusCode === 200) {
|
31
|
+
const parsed = JSON.parse(str);
|
32
|
+
if (typeof parsed.AccessKeyId !== "string" ||
|
33
|
+
typeof parsed.SecretAccessKey !== "string" ||
|
34
|
+
typeof parsed.Token !== "string" ||
|
35
|
+
typeof parsed.Expiration !== "string") {
|
36
|
+
throw new property_provider_1.CredentialsProviderError("HTTP credential provider response not of the required format, an object matching: " +
|
37
|
+
"{ AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }");
|
38
|
+
}
|
39
|
+
return {
|
40
|
+
accessKeyId: parsed.AccessKeyId,
|
41
|
+
secretAccessKey: parsed.SecretAccessKey,
|
42
|
+
sessionToken: parsed.Token,
|
43
|
+
expiration: (0, smithy_client_1.parseRfc3339DateTime)(parsed.Expiration),
|
44
|
+
};
|
45
|
+
}
|
46
|
+
if (response.statusCode >= 400 && response.statusCode < 500) {
|
47
|
+
let parsedBody = {};
|
48
|
+
try {
|
49
|
+
parsedBody = JSON.parse(str);
|
50
|
+
}
|
51
|
+
catch (e) { }
|
52
|
+
throw Object.assign(new property_provider_1.CredentialsProviderError(`Server responded with status: ${response.statusCode}`), {
|
53
|
+
Code: parsedBody.Code,
|
54
|
+
Message: parsedBody.Message,
|
55
|
+
});
|
56
|
+
}
|
57
|
+
throw new property_provider_1.CredentialsProviderError(`Server responded with status: ${response.statusCode}`);
|
58
|
+
}
|
59
|
+
exports.getCredentials = getCredentials;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.retryWrapper = void 0;
|
4
|
+
const retryWrapper = (toRetry, maxRetries, delayMs) => {
|
5
|
+
return async () => {
|
6
|
+
for (let i = 0; i < maxRetries; ++i) {
|
7
|
+
try {
|
8
|
+
return await toRetry();
|
9
|
+
}
|
10
|
+
catch (e) {
|
11
|
+
await new Promise((resolve) => setTimeout(resolve, delayMs));
|
12
|
+
}
|
13
|
+
}
|
14
|
+
return await toRetry();
|
15
|
+
};
|
16
|
+
};
|
17
|
+
exports.retryWrapper = retryWrapper;
|
@@ -0,0 +1,5 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.fromHttp = void 0;
|
4
|
+
var fromHttp_browser_1 = require("./fromHttp/fromHttp.browser");
|
5
|
+
Object.defineProperty(exports, "fromHttp", { enumerable: true, get: function () { return fromHttp_browser_1.fromHttp; } });
|
@@ -0,0 +1,5 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.fromHttp = void 0;
|
4
|
+
var fromHttp_1 = require("./fromHttp/fromHttp");
|
5
|
+
Object.defineProperty(exports, "fromHttp", { enumerable: true, get: function () { return fromHttp_1.fromHttp; } });
|
@@ -0,0 +1,42 @@
|
|
1
|
+
import { CredentialsProviderError } from "@smithy/property-provider";
|
2
|
+
const LOOPBACK_CIDR_IPv4 = "127.0.0.0/8";
|
3
|
+
const LOOPBACK_CIDR_IPv6 = "::1/128";
|
4
|
+
const ECS_CONTAINER_HOST = "169.254.170.2";
|
5
|
+
const EKS_CONTAINER_HOST_IPv4 = "169.254.170.23";
|
6
|
+
const EKS_CONTAINER_HOST_IPv6 = "[fd00:ec2::23]";
|
7
|
+
export const checkUrl = (url) => {
|
8
|
+
if (url.protocol === "https:") {
|
9
|
+
return;
|
10
|
+
}
|
11
|
+
if (url.hostname === ECS_CONTAINER_HOST ||
|
12
|
+
url.hostname === EKS_CONTAINER_HOST_IPv4 ||
|
13
|
+
url.hostname === EKS_CONTAINER_HOST_IPv6) {
|
14
|
+
return;
|
15
|
+
}
|
16
|
+
if (url.hostname.includes("[")) {
|
17
|
+
if (url.hostname === "[::1]" || url.hostname === "[0000:0000:0000:0000:0000:0000:0000:0001]") {
|
18
|
+
return;
|
19
|
+
}
|
20
|
+
}
|
21
|
+
else {
|
22
|
+
if (url.hostname === "localhost") {
|
23
|
+
return;
|
24
|
+
}
|
25
|
+
const ipComponents = url.hostname.split(".");
|
26
|
+
const inRange = (component) => {
|
27
|
+
const num = parseInt(component, 10);
|
28
|
+
return 0 <= num && num <= 255;
|
29
|
+
};
|
30
|
+
if (ipComponents[0] === "127" &&
|
31
|
+
inRange(ipComponents[1]) &&
|
32
|
+
inRange(ipComponents[2]) &&
|
33
|
+
inRange(ipComponents[3]) &&
|
34
|
+
ipComponents.length === 4) {
|
35
|
+
return;
|
36
|
+
}
|
37
|
+
}
|
38
|
+
throw new CredentialsProviderError(`URL not accepted. It must either be HTTPS or match one of the following:
|
39
|
+
- loopback CIDR 127.0.0.0/8 or [::1/128]
|
40
|
+
- ECS container host 169.254.170.2
|
41
|
+
- EKS container host 169.254.170.23 or [fd00:ec2::23]`);
|
42
|
+
};
|