@aws-sdk/client-omics 3.1017.0 → 3.1019.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 +28 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +2 -2
- package/dist-cjs/index.js +74 -0
- package/dist-cjs/runtimeConfig.js +4 -3
- package/dist-cjs/runtimeConfig.shared.js +2 -2
- package/dist-cjs/schemas/schemas_0.js +125 -16
- package/dist-es/Omics.js +10 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +1 -1
- package/dist-es/commands/CreateConfigurationCommand.js +16 -0
- package/dist-es/commands/DeleteConfigurationCommand.js +16 -0
- package/dist-es/commands/GetConfigurationCommand.js +16 -0
- package/dist-es/commands/ListConfigurationsCommand.js +16 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/models/enums.js +12 -0
- package/dist-es/pagination/ListConfigurationsPaginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/runtimeConfig.js +2 -1
- package/dist-es/runtimeConfig.shared.js +1 -1
- package/dist-es/schemas/schemas_0.js +116 -8
- package/dist-types/Omics.d.ts +36 -0
- package/dist-types/OmicsClient.d.ts +6 -2
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +1 -1
- package/dist-types/commands/CreateConfigurationCommand.d.ts +132 -0
- package/dist-types/commands/DeleteConfigurationCommand.d.ts +96 -0
- package/dist-types/commands/GetConfigurationCommand.d.ts +117 -0
- package/dist-types/commands/GetRunCommand.d.ts +15 -0
- package/dist-types/commands/ListConfigurationsCommand.d.ts +108 -0
- package/dist-types/commands/StartRunCommand.d.ts +8 -0
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/enums.d.ts +28 -0
- package/dist-types/models/models_0.d.ts +317 -1
- package/dist-types/pagination/ListConfigurationsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/schemas/schemas_0.d.ts +17 -0
- package/dist-types/ts3.4/Omics.d.ts +76 -0
- package/dist-types/ts3.4/OmicsClient.d.ts +24 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +1 -1
- package/dist-types/ts3.4/commands/CreateConfigurationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteConfigurationCommand.d.ts +46 -0
- package/dist-types/ts3.4/commands/GetConfigurationCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListConfigurationsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/models/enums.d.ts +16 -0
- package/dist-types/ts3.4/models/models_0.d.ts +77 -0
- package/dist-types/ts3.4/pagination/ListConfigurationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +17 -0
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -251,6 +251,13 @@ CreateAnnotationStoreVersion
|
|
|
251
251
|
</details>
|
|
252
252
|
<details>
|
|
253
253
|
<summary>
|
|
254
|
+
CreateConfiguration
|
|
255
|
+
</summary>
|
|
256
|
+
|
|
257
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/omics/command/CreateConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-omics/Interface/CreateConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-omics/Interface/CreateConfigurationCommandOutput/)
|
|
258
|
+
</details>
|
|
259
|
+
<details>
|
|
260
|
+
<summary>
|
|
254
261
|
CreateMultipartReadSetUpload
|
|
255
262
|
</summary>
|
|
256
263
|
|
|
@@ -335,6 +342,13 @@ DeleteBatch
|
|
|
335
342
|
</details>
|
|
336
343
|
<details>
|
|
337
344
|
<summary>
|
|
345
|
+
DeleteConfiguration
|
|
346
|
+
</summary>
|
|
347
|
+
|
|
348
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/omics/command/DeleteConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-omics/Interface/DeleteConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-omics/Interface/DeleteConfigurationCommandOutput/)
|
|
349
|
+
</details>
|
|
350
|
+
<details>
|
|
351
|
+
<summary>
|
|
338
352
|
DeleteReference
|
|
339
353
|
</summary>
|
|
340
354
|
|
|
@@ -447,6 +461,13 @@ GetBatch
|
|
|
447
461
|
</details>
|
|
448
462
|
<details>
|
|
449
463
|
<summary>
|
|
464
|
+
GetConfiguration
|
|
465
|
+
</summary>
|
|
466
|
+
|
|
467
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/omics/command/GetConfigurationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-omics/Interface/GetConfigurationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-omics/Interface/GetConfigurationCommandOutput/)
|
|
468
|
+
</details>
|
|
469
|
+
<details>
|
|
470
|
+
<summary>
|
|
450
471
|
GetReadSet
|
|
451
472
|
</summary>
|
|
452
473
|
|
|
@@ -615,6 +636,13 @@ ListBatch
|
|
|
615
636
|
</details>
|
|
616
637
|
<details>
|
|
617
638
|
<summary>
|
|
639
|
+
ListConfigurations
|
|
640
|
+
</summary>
|
|
641
|
+
|
|
642
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/omics/command/ListConfigurationsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-omics/Interface/ListConfigurationsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-omics/Interface/ListConfigurationsCommandOutput/)
|
|
643
|
+
</details>
|
|
644
|
+
<details>
|
|
645
|
+
<summary>
|
|
618
646
|
ListMultipartReadSetUploads
|
|
619
647
|
</summary>
|
|
620
648
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.resolveHttpAuthSchemeConfig = exports.defaultOmicsHttpAuthSchemeProvider = exports.defaultOmicsHttpAuthSchemeParametersProvider = void 0;
|
|
4
|
-
const
|
|
4
|
+
const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
|
|
5
5
|
const util_middleware_1 = require("@smithy/util-middleware");
|
|
6
6
|
const defaultOmicsHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
7
7
|
return {
|
|
@@ -38,7 +38,7 @@ const defaultOmicsHttpAuthSchemeProvider = (authParameters) => {
|
|
|
38
38
|
};
|
|
39
39
|
exports.defaultOmicsHttpAuthSchemeProvider = defaultOmicsHttpAuthSchemeProvider;
|
|
40
40
|
const resolveHttpAuthSchemeConfig = (config) => {
|
|
41
|
-
const config_0 = (0,
|
|
41
|
+
const config_0 = (0, httpAuthSchemes_1.resolveAwsSdkSigV4Config)(config);
|
|
42
42
|
return Object.assign(config_0, {
|
|
43
43
|
authSchemePreference: (0, util_middleware_1.normalizeProvider)(config.authSchemePreference ?? []),
|
|
44
44
|
});
|
package/dist-cjs/index.js
CHANGED
|
@@ -234,6 +234,18 @@ class CreateAnnotationStoreVersionCommand extends smithyClient.Command
|
|
|
234
234
|
.build() {
|
|
235
235
|
}
|
|
236
236
|
|
|
237
|
+
class CreateConfigurationCommand extends smithyClient.Command
|
|
238
|
+
.classBuilder()
|
|
239
|
+
.ep(commonParams)
|
|
240
|
+
.m(function (Command, cs, config, o) {
|
|
241
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
242
|
+
})
|
|
243
|
+
.s("Omics", "CreateConfiguration", {})
|
|
244
|
+
.n("OmicsClient", "CreateConfigurationCommand")
|
|
245
|
+
.sc(schemas_0.CreateConfiguration$)
|
|
246
|
+
.build() {
|
|
247
|
+
}
|
|
248
|
+
|
|
237
249
|
class CreateMultipartReadSetUploadCommand extends smithyClient.Command
|
|
238
250
|
.classBuilder()
|
|
239
251
|
.ep(commonParams)
|
|
@@ -378,6 +390,18 @@ class DeleteBatchCommand extends smithyClient.Command
|
|
|
378
390
|
.build() {
|
|
379
391
|
}
|
|
380
392
|
|
|
393
|
+
class DeleteConfigurationCommand extends smithyClient.Command
|
|
394
|
+
.classBuilder()
|
|
395
|
+
.ep(commonParams)
|
|
396
|
+
.m(function (Command, cs, config, o) {
|
|
397
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
398
|
+
})
|
|
399
|
+
.s("Omics", "DeleteConfiguration", {})
|
|
400
|
+
.n("OmicsClient", "DeleteConfigurationCommand")
|
|
401
|
+
.sc(schemas_0.DeleteConfiguration$)
|
|
402
|
+
.build() {
|
|
403
|
+
}
|
|
404
|
+
|
|
381
405
|
class DeleteReferenceCommand extends smithyClient.Command
|
|
382
406
|
.classBuilder()
|
|
383
407
|
.ep(commonParams)
|
|
@@ -570,6 +594,18 @@ class GetBatchCommand extends smithyClient.Command
|
|
|
570
594
|
.build() {
|
|
571
595
|
}
|
|
572
596
|
|
|
597
|
+
class GetConfigurationCommand extends smithyClient.Command
|
|
598
|
+
.classBuilder()
|
|
599
|
+
.ep(commonParams)
|
|
600
|
+
.m(function (Command, cs, config, o) {
|
|
601
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
602
|
+
})
|
|
603
|
+
.s("Omics", "GetConfiguration", {})
|
|
604
|
+
.n("OmicsClient", "GetConfigurationCommand")
|
|
605
|
+
.sc(schemas_0.GetConfiguration$)
|
|
606
|
+
.build() {
|
|
607
|
+
}
|
|
608
|
+
|
|
573
609
|
class GetReadSetActivationJobCommand extends smithyClient.Command
|
|
574
610
|
.classBuilder()
|
|
575
611
|
.ep(commonParams)
|
|
@@ -858,6 +894,18 @@ class ListBatchCommand extends smithyClient.Command
|
|
|
858
894
|
.build() {
|
|
859
895
|
}
|
|
860
896
|
|
|
897
|
+
class ListConfigurationsCommand extends smithyClient.Command
|
|
898
|
+
.classBuilder()
|
|
899
|
+
.ep(commonParams)
|
|
900
|
+
.m(function (Command, cs, config, o) {
|
|
901
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
902
|
+
})
|
|
903
|
+
.s("Omics", "ListConfigurations", {})
|
|
904
|
+
.n("OmicsClient", "ListConfigurationsCommand")
|
|
905
|
+
.sc(schemas_0.ListConfigurations$)
|
|
906
|
+
.build() {
|
|
907
|
+
}
|
|
908
|
+
|
|
861
909
|
class ListMultipartReadSetUploadsCommand extends smithyClient.Command
|
|
862
910
|
.classBuilder()
|
|
863
911
|
.ep(commonParams)
|
|
@@ -1358,6 +1406,8 @@ const paginateListAnnotationStoreVersions = core.createPaginator(OmicsClient, Li
|
|
|
1358
1406
|
|
|
1359
1407
|
const paginateListBatch = core.createPaginator(OmicsClient, ListBatchCommand, "startingToken", "nextToken", "maxItems");
|
|
1360
1408
|
|
|
1409
|
+
const paginateListConfigurations = core.createPaginator(OmicsClient, ListConfigurationsCommand, "startingToken", "nextToken", "maxResults");
|
|
1410
|
+
|
|
1361
1411
|
const paginateListMultipartReadSetUploads = core.createPaginator(OmicsClient, ListMultipartReadSetUploadsCommand, "nextToken", "nextToken", "maxResults");
|
|
1362
1412
|
|
|
1363
1413
|
const paginateListReadSetActivationJobs = core.createPaginator(OmicsClient, ListReadSetActivationJobsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -2570,6 +2620,7 @@ const commands = {
|
|
|
2570
2620
|
CompleteMultipartReadSetUploadCommand,
|
|
2571
2621
|
CreateAnnotationStoreCommand,
|
|
2572
2622
|
CreateAnnotationStoreVersionCommand,
|
|
2623
|
+
CreateConfigurationCommand,
|
|
2573
2624
|
CreateMultipartReadSetUploadCommand,
|
|
2574
2625
|
CreateReferenceStoreCommand,
|
|
2575
2626
|
CreateRunCacheCommand,
|
|
@@ -2582,6 +2633,7 @@ const commands = {
|
|
|
2582
2633
|
DeleteAnnotationStoreCommand,
|
|
2583
2634
|
DeleteAnnotationStoreVersionsCommand,
|
|
2584
2635
|
DeleteBatchCommand,
|
|
2636
|
+
DeleteConfigurationCommand,
|
|
2585
2637
|
DeleteReferenceCommand,
|
|
2586
2638
|
DeleteReferenceStoreCommand,
|
|
2587
2639
|
DeleteRunCommand,
|
|
@@ -2598,6 +2650,7 @@ const commands = {
|
|
|
2598
2650
|
GetAnnotationStoreCommand,
|
|
2599
2651
|
GetAnnotationStoreVersionCommand,
|
|
2600
2652
|
GetBatchCommand,
|
|
2653
|
+
GetConfigurationCommand,
|
|
2601
2654
|
GetReadSetCommand,
|
|
2602
2655
|
GetReadSetActivationJobCommand,
|
|
2603
2656
|
GetReadSetExportJobCommand,
|
|
@@ -2622,6 +2675,7 @@ const commands = {
|
|
|
2622
2675
|
ListAnnotationStoresCommand,
|
|
2623
2676
|
ListAnnotationStoreVersionsCommand,
|
|
2624
2677
|
ListBatchCommand,
|
|
2678
|
+
ListConfigurationsCommand,
|
|
2625
2679
|
ListMultipartReadSetUploadsCommand,
|
|
2626
2680
|
ListReadSetActivationJobsCommand,
|
|
2627
2681
|
ListReadSetExportJobsCommand,
|
|
@@ -2669,6 +2723,7 @@ const paginators = {
|
|
|
2669
2723
|
paginateListAnnotationStores,
|
|
2670
2724
|
paginateListAnnotationStoreVersions,
|
|
2671
2725
|
paginateListBatch,
|
|
2726
|
+
paginateListConfigurations,
|
|
2672
2727
|
paginateListMultipartReadSetUploads,
|
|
2673
2728
|
paginateListReadSetActivationJobs,
|
|
2674
2729
|
paginateListReadSetExportJobs,
|
|
@@ -2814,6 +2869,14 @@ const ReadSetPartSource = {
|
|
|
2814
2869
|
SOURCE1: "SOURCE1",
|
|
2815
2870
|
SOURCE2: "SOURCE2",
|
|
2816
2871
|
};
|
|
2872
|
+
const ConfigurationStatus = {
|
|
2873
|
+
ACTIVE: "ACTIVE",
|
|
2874
|
+
CREATING: "CREATING",
|
|
2875
|
+
DELETED: "DELETED",
|
|
2876
|
+
DELETING: "DELETING",
|
|
2877
|
+
FAILED: "FAILED",
|
|
2878
|
+
UPDATING: "UPDATING",
|
|
2879
|
+
};
|
|
2817
2880
|
const FileType = {
|
|
2818
2881
|
BAM: "BAM",
|
|
2819
2882
|
CRAM: "CRAM",
|
|
@@ -2968,6 +3031,10 @@ const ReferenceStatus = {
|
|
|
2968
3031
|
const RunExport = {
|
|
2969
3032
|
DEFINITION: "DEFINITION",
|
|
2970
3033
|
};
|
|
3034
|
+
const NetworkingMode = {
|
|
3035
|
+
RESTRICTED: "RESTRICTED",
|
|
3036
|
+
VPC: "VPC",
|
|
3037
|
+
};
|
|
2971
3038
|
const RunStatus = {
|
|
2972
3039
|
CANCELLED: "CANCELLED",
|
|
2973
3040
|
COMPLETED: "COMPLETED",
|
|
@@ -3023,8 +3090,10 @@ exports.CancelRunBatchCommand = CancelRunBatchCommand;
|
|
|
3023
3090
|
exports.CancelRunCommand = CancelRunCommand;
|
|
3024
3091
|
exports.CancelVariantImportJobCommand = CancelVariantImportJobCommand;
|
|
3025
3092
|
exports.CompleteMultipartReadSetUploadCommand = CompleteMultipartReadSetUploadCommand;
|
|
3093
|
+
exports.ConfigurationStatus = ConfigurationStatus;
|
|
3026
3094
|
exports.CreateAnnotationStoreCommand = CreateAnnotationStoreCommand;
|
|
3027
3095
|
exports.CreateAnnotationStoreVersionCommand = CreateAnnotationStoreVersionCommand;
|
|
3096
|
+
exports.CreateConfigurationCommand = CreateConfigurationCommand;
|
|
3028
3097
|
exports.CreateMultipartReadSetUploadCommand = CreateMultipartReadSetUploadCommand;
|
|
3029
3098
|
exports.CreateReferenceStoreCommand = CreateReferenceStoreCommand;
|
|
3030
3099
|
exports.CreateRunCacheCommand = CreateRunCacheCommand;
|
|
@@ -3038,6 +3107,7 @@ exports.CreationType = CreationType;
|
|
|
3038
3107
|
exports.DeleteAnnotationStoreCommand = DeleteAnnotationStoreCommand;
|
|
3039
3108
|
exports.DeleteAnnotationStoreVersionsCommand = DeleteAnnotationStoreVersionsCommand;
|
|
3040
3109
|
exports.DeleteBatchCommand = DeleteBatchCommand;
|
|
3110
|
+
exports.DeleteConfigurationCommand = DeleteConfigurationCommand;
|
|
3041
3111
|
exports.DeleteReferenceCommand = DeleteReferenceCommand;
|
|
3042
3112
|
exports.DeleteReferenceStoreCommand = DeleteReferenceStoreCommand;
|
|
3043
3113
|
exports.DeleteRunBatchCommand = DeleteRunBatchCommand;
|
|
@@ -3059,6 +3129,7 @@ exports.GetAnnotationImportJobCommand = GetAnnotationImportJobCommand;
|
|
|
3059
3129
|
exports.GetAnnotationStoreCommand = GetAnnotationStoreCommand;
|
|
3060
3130
|
exports.GetAnnotationStoreVersionCommand = GetAnnotationStoreVersionCommand;
|
|
3061
3131
|
exports.GetBatchCommand = GetBatchCommand;
|
|
3132
|
+
exports.GetConfigurationCommand = GetConfigurationCommand;
|
|
3062
3133
|
exports.GetReadSetActivationJobCommand = GetReadSetActivationJobCommand;
|
|
3063
3134
|
exports.GetReadSetCommand = GetReadSetCommand;
|
|
3064
3135
|
exports.GetReadSetExportJobCommand = GetReadSetExportJobCommand;
|
|
@@ -3084,6 +3155,7 @@ exports.ListAnnotationImportJobsCommand = ListAnnotationImportJobsCommand;
|
|
|
3084
3155
|
exports.ListAnnotationStoreVersionsCommand = ListAnnotationStoreVersionsCommand;
|
|
3085
3156
|
exports.ListAnnotationStoresCommand = ListAnnotationStoresCommand;
|
|
3086
3157
|
exports.ListBatchCommand = ListBatchCommand;
|
|
3158
|
+
exports.ListConfigurationsCommand = ListConfigurationsCommand;
|
|
3087
3159
|
exports.ListMultipartReadSetUploadsCommand = ListMultipartReadSetUploadsCommand;
|
|
3088
3160
|
exports.ListReadSetActivationJobsCommand = ListReadSetActivationJobsCommand;
|
|
3089
3161
|
exports.ListReadSetExportJobsCommand = ListReadSetExportJobsCommand;
|
|
@@ -3105,6 +3177,7 @@ exports.ListVariantImportJobsCommand = ListVariantImportJobsCommand;
|
|
|
3105
3177
|
exports.ListVariantStoresCommand = ListVariantStoresCommand;
|
|
3106
3178
|
exports.ListWorkflowVersionsCommand = ListWorkflowVersionsCommand;
|
|
3107
3179
|
exports.ListWorkflowsCommand = ListWorkflowsCommand;
|
|
3180
|
+
exports.NetworkingMode = NetworkingMode;
|
|
3108
3181
|
exports.Omics = Omics;
|
|
3109
3182
|
exports.OmicsClient = OmicsClient;
|
|
3110
3183
|
exports.PutS3AccessPolicyCommand = PutS3AccessPolicyCommand;
|
|
@@ -3167,6 +3240,7 @@ exports.paginateListAnnotationImportJobs = paginateListAnnotationImportJobs;
|
|
|
3167
3240
|
exports.paginateListAnnotationStoreVersions = paginateListAnnotationStoreVersions;
|
|
3168
3241
|
exports.paginateListAnnotationStores = paginateListAnnotationStores;
|
|
3169
3242
|
exports.paginateListBatch = paginateListBatch;
|
|
3243
|
+
exports.paginateListConfigurations = paginateListConfigurations;
|
|
3170
3244
|
exports.paginateListMultipartReadSetUploads = paginateListMultipartReadSetUploads;
|
|
3171
3245
|
exports.paginateListReadSetActivationJobs = paginateListReadSetActivationJobs;
|
|
3172
3246
|
exports.paginateListReadSetExportJobs = paginateListReadSetExportJobs;
|
|
@@ -3,7 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
6
|
-
const
|
|
6
|
+
const client_1 = require("@aws-sdk/core/client");
|
|
7
|
+
const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
|
|
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");
|
|
@@ -21,7 +22,7 @@ const getRuntimeConfig = (config) => {
|
|
|
21
22
|
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
22
23
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
23
24
|
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
24
|
-
(0,
|
|
25
|
+
(0, client_1.emitWarningIfUnsupportedVersion)(process.version);
|
|
25
26
|
const loaderConfig = {
|
|
26
27
|
profile: config?.profile,
|
|
27
28
|
logger: clientSharedValues.logger,
|
|
@@ -31,7 +32,7 @@ const getRuntimeConfig = (config) => {
|
|
|
31
32
|
...config,
|
|
32
33
|
runtime: "node",
|
|
33
34
|
defaultsMode,
|
|
34
|
-
authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(
|
|
35
|
+
authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(httpAuthSchemes_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
35
36
|
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
|
|
36
37
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
|
|
37
38
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
|
-
const
|
|
4
|
+
const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
|
|
5
5
|
const protocols_1 = require("@aws-sdk/core/protocols");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
const url_parser_1 = require("@smithy/url-parser");
|
|
@@ -24,7 +24,7 @@ const getRuntimeConfig = (config) => {
|
|
|
24
24
|
{
|
|
25
25
|
schemeId: "aws.auth#sigv4",
|
|
26
26
|
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
27
|
-
signer: new
|
|
27
|
+
signer: new httpAuthSchemes_1.AwsSdkSigV4Signer(),
|
|
28
28
|
},
|
|
29
29
|
],
|
|
30
30
|
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|