@aws-sdk/client-clouddirectory 3.199.0 → 3.201.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/CHANGELOG.md +19 -0
- package/dist-cjs/endpoint/EndpointParameters.js +2 -3
- package/dist-cjs/protocols/Aws_restJson1.js +73 -77
- package/dist-cjs/runtimeConfig.browser.js +16 -16
- package/dist-cjs/runtimeConfig.js +20 -19
- package/dist-cjs/runtimeConfig.native.js +1 -2
- package/dist-cjs/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.201.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.200.0...v3.201.0) (2022-11-01)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* end support for Node.js 12.x ([#4123](https://github.com/aws/aws-sdk-js-v3/issues/4123)) ([83f913e](https://github.com/aws/aws-sdk-js-v3/commit/83f913ec2ac3878d8726c6964f585550dc5caf3e))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.200.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.199.0...v3.200.0) (2022-10-31)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/client-clouddirectory
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
# [3.199.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.198.0...v3.199.0) (2022-10-28)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @aws-sdk/client-clouddirectory
|
|
@@ -2,11 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.resolveClientEndpointParameters = void 0;
|
|
4
4
|
const resolveClientEndpointParameters = (options) => {
|
|
5
|
-
var _a, _b;
|
|
6
5
|
return {
|
|
7
6
|
...options,
|
|
8
|
-
useDualstackEndpoint:
|
|
9
|
-
useFipsEndpoint:
|
|
7
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
8
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
10
9
|
defaultSigningName: "clouddirectory",
|
|
11
10
|
};
|
|
12
11
|
};
|
|
@@ -13,7 +13,7 @@ const serializeAws_restJson1AddFacetToObjectCommand = async (input, context) =>
|
|
|
13
13
|
"content-type": "application/json",
|
|
14
14
|
"x-amz-data-partition": input.DirectoryArn,
|
|
15
15
|
});
|
|
16
|
-
const resolvedPath = `${
|
|
16
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
17
17
|
"/amazonclouddirectory/2017-01-11/object/facets";
|
|
18
18
|
let body;
|
|
19
19
|
body = JSON.stringify({
|
|
@@ -42,7 +42,7 @@ const serializeAws_restJson1ApplySchemaCommand = async (input, context) => {
|
|
|
42
42
|
"content-type": "application/json",
|
|
43
43
|
"x-amz-data-partition": input.DirectoryArn,
|
|
44
44
|
});
|
|
45
|
-
const resolvedPath = `${
|
|
45
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
46
46
|
"/amazonclouddirectory/2017-01-11/schema/apply";
|
|
47
47
|
let body;
|
|
48
48
|
body = JSON.stringify({
|
|
@@ -65,7 +65,7 @@ const serializeAws_restJson1AttachObjectCommand = async (input, context) => {
|
|
|
65
65
|
"content-type": "application/json",
|
|
66
66
|
"x-amz-data-partition": input.DirectoryArn,
|
|
67
67
|
});
|
|
68
|
-
const resolvedPath = `${
|
|
68
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
69
69
|
"/amazonclouddirectory/2017-01-11/object/attach";
|
|
70
70
|
let body;
|
|
71
71
|
body = JSON.stringify({
|
|
@@ -94,7 +94,7 @@ const serializeAws_restJson1AttachPolicyCommand = async (input, context) => {
|
|
|
94
94
|
"content-type": "application/json",
|
|
95
95
|
"x-amz-data-partition": input.DirectoryArn,
|
|
96
96
|
});
|
|
97
|
-
const resolvedPath = `${
|
|
97
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
98
98
|
"/amazonclouddirectory/2017-01-11/policy/attach";
|
|
99
99
|
let body;
|
|
100
100
|
body = JSON.stringify({
|
|
@@ -122,7 +122,7 @@ const serializeAws_restJson1AttachToIndexCommand = async (input, context) => {
|
|
|
122
122
|
"content-type": "application/json",
|
|
123
123
|
"x-amz-data-partition": input.DirectoryArn,
|
|
124
124
|
});
|
|
125
|
-
const resolvedPath = `${
|
|
125
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
126
126
|
"/amazonclouddirectory/2017-01-11/index/attach";
|
|
127
127
|
let body;
|
|
128
128
|
body = JSON.stringify({
|
|
@@ -150,7 +150,7 @@ const serializeAws_restJson1AttachTypedLinkCommand = async (input, context) => {
|
|
|
150
150
|
"content-type": "application/json",
|
|
151
151
|
"x-amz-data-partition": input.DirectoryArn,
|
|
152
152
|
});
|
|
153
|
-
const resolvedPath = `${
|
|
153
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
154
154
|
"/amazonclouddirectory/2017-01-11/typedlink/attach";
|
|
155
155
|
let body;
|
|
156
156
|
body = JSON.stringify({
|
|
@@ -185,7 +185,7 @@ const serializeAws_restJson1BatchReadCommand = async (input, context) => {
|
|
|
185
185
|
"x-amz-data-partition": input.DirectoryArn,
|
|
186
186
|
"x-amz-consistency-level": input.ConsistencyLevel,
|
|
187
187
|
});
|
|
188
|
-
const resolvedPath = `${
|
|
188
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
189
189
|
"/amazonclouddirectory/2017-01-11/batchread";
|
|
190
190
|
let body;
|
|
191
191
|
body = JSON.stringify({
|
|
@@ -210,7 +210,7 @@ const serializeAws_restJson1BatchWriteCommand = async (input, context) => {
|
|
|
210
210
|
"content-type": "application/json",
|
|
211
211
|
"x-amz-data-partition": input.DirectoryArn,
|
|
212
212
|
});
|
|
213
|
-
const resolvedPath = `${
|
|
213
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
214
214
|
"/amazonclouddirectory/2017-01-11/batchwrite";
|
|
215
215
|
let body;
|
|
216
216
|
body = JSON.stringify({
|
|
@@ -235,7 +235,7 @@ const serializeAws_restJson1CreateDirectoryCommand = async (input, context) => {
|
|
|
235
235
|
"content-type": "application/json",
|
|
236
236
|
"x-amz-data-partition": input.SchemaArn,
|
|
237
237
|
});
|
|
238
|
-
const resolvedPath = `${
|
|
238
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
239
239
|
"/amazonclouddirectory/2017-01-11/directory/create";
|
|
240
240
|
let body;
|
|
241
241
|
body = JSON.stringify({
|
|
@@ -258,7 +258,7 @@ const serializeAws_restJson1CreateFacetCommand = async (input, context) => {
|
|
|
258
258
|
"content-type": "application/json",
|
|
259
259
|
"x-amz-data-partition": input.SchemaArn,
|
|
260
260
|
});
|
|
261
|
-
const resolvedPath = `${
|
|
261
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
262
262
|
"/amazonclouddirectory/2017-01-11/facet/create";
|
|
263
263
|
let body;
|
|
264
264
|
body = JSON.stringify({
|
|
@@ -286,7 +286,7 @@ const serializeAws_restJson1CreateIndexCommand = async (input, context) => {
|
|
|
286
286
|
"content-type": "application/json",
|
|
287
287
|
"x-amz-data-partition": input.DirectoryArn,
|
|
288
288
|
});
|
|
289
|
-
const resolvedPath = `${
|
|
289
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/amazonclouddirectory/2017-01-11/index";
|
|
290
290
|
let body;
|
|
291
291
|
body = JSON.stringify({
|
|
292
292
|
...(input.IsUnique != null && { IsUnique: input.IsUnique }),
|
|
@@ -315,7 +315,7 @@ const serializeAws_restJson1CreateObjectCommand = async (input, context) => {
|
|
|
315
315
|
"content-type": "application/json",
|
|
316
316
|
"x-amz-data-partition": input.DirectoryArn,
|
|
317
317
|
});
|
|
318
|
-
const resolvedPath = `${
|
|
318
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/amazonclouddirectory/2017-01-11/object";
|
|
319
319
|
let body;
|
|
320
320
|
body = JSON.stringify({
|
|
321
321
|
...(input.LinkName != null && { LinkName: input.LinkName }),
|
|
@@ -345,7 +345,7 @@ const serializeAws_restJson1CreateSchemaCommand = async (input, context) => {
|
|
|
345
345
|
const headers = {
|
|
346
346
|
"content-type": "application/json",
|
|
347
347
|
};
|
|
348
|
-
const resolvedPath = `${
|
|
348
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
349
349
|
"/amazonclouddirectory/2017-01-11/schema/create";
|
|
350
350
|
let body;
|
|
351
351
|
body = JSON.stringify({
|
|
@@ -368,7 +368,7 @@ const serializeAws_restJson1CreateTypedLinkFacetCommand = async (input, context)
|
|
|
368
368
|
"content-type": "application/json",
|
|
369
369
|
"x-amz-data-partition": input.SchemaArn,
|
|
370
370
|
});
|
|
371
|
-
const resolvedPath = `${
|
|
371
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
372
372
|
"/amazonclouddirectory/2017-01-11/typedlink/facet/create";
|
|
373
373
|
let body;
|
|
374
374
|
body = JSON.stringify({
|
|
@@ -390,7 +390,7 @@ const serializeAws_restJson1DeleteDirectoryCommand = async (input, context) => {
|
|
|
390
390
|
const headers = map({}, isSerializableHeaderValue, {
|
|
391
391
|
"x-amz-data-partition": input.DirectoryArn,
|
|
392
392
|
});
|
|
393
|
-
const resolvedPath = `${
|
|
393
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
394
394
|
"/amazonclouddirectory/2017-01-11/directory";
|
|
395
395
|
let body;
|
|
396
396
|
return new protocol_http_1.HttpRequest({
|
|
@@ -410,7 +410,7 @@ const serializeAws_restJson1DeleteFacetCommand = async (input, context) => {
|
|
|
410
410
|
"content-type": "application/json",
|
|
411
411
|
"x-amz-data-partition": input.SchemaArn,
|
|
412
412
|
});
|
|
413
|
-
const resolvedPath = `${
|
|
413
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
414
414
|
"/amazonclouddirectory/2017-01-11/facet/delete";
|
|
415
415
|
let body;
|
|
416
416
|
body = JSON.stringify({
|
|
@@ -433,7 +433,7 @@ const serializeAws_restJson1DeleteObjectCommand = async (input, context) => {
|
|
|
433
433
|
"content-type": "application/json",
|
|
434
434
|
"x-amz-data-partition": input.DirectoryArn,
|
|
435
435
|
});
|
|
436
|
-
const resolvedPath = `${
|
|
436
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
437
437
|
"/amazonclouddirectory/2017-01-11/object/delete";
|
|
438
438
|
let body;
|
|
439
439
|
body = JSON.stringify({
|
|
@@ -457,7 +457,7 @@ const serializeAws_restJson1DeleteSchemaCommand = async (input, context) => {
|
|
|
457
457
|
const headers = map({}, isSerializableHeaderValue, {
|
|
458
458
|
"x-amz-data-partition": input.SchemaArn,
|
|
459
459
|
});
|
|
460
|
-
const resolvedPath = `${
|
|
460
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/amazonclouddirectory/2017-01-11/schema";
|
|
461
461
|
let body;
|
|
462
462
|
return new protocol_http_1.HttpRequest({
|
|
463
463
|
protocol,
|
|
@@ -476,7 +476,7 @@ const serializeAws_restJson1DeleteTypedLinkFacetCommand = async (input, context)
|
|
|
476
476
|
"content-type": "application/json",
|
|
477
477
|
"x-amz-data-partition": input.SchemaArn,
|
|
478
478
|
});
|
|
479
|
-
const resolvedPath = `${
|
|
479
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
480
480
|
"/amazonclouddirectory/2017-01-11/typedlink/facet/delete";
|
|
481
481
|
let body;
|
|
482
482
|
body = JSON.stringify({
|
|
@@ -499,7 +499,7 @@ const serializeAws_restJson1DetachFromIndexCommand = async (input, context) => {
|
|
|
499
499
|
"content-type": "application/json",
|
|
500
500
|
"x-amz-data-partition": input.DirectoryArn,
|
|
501
501
|
});
|
|
502
|
-
const resolvedPath = `${
|
|
502
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
503
503
|
"/amazonclouddirectory/2017-01-11/index/detach";
|
|
504
504
|
let body;
|
|
505
505
|
body = JSON.stringify({
|
|
@@ -527,7 +527,7 @@ const serializeAws_restJson1DetachObjectCommand = async (input, context) => {
|
|
|
527
527
|
"content-type": "application/json",
|
|
528
528
|
"x-amz-data-partition": input.DirectoryArn,
|
|
529
529
|
});
|
|
530
|
-
const resolvedPath = `${
|
|
530
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
531
531
|
"/amazonclouddirectory/2017-01-11/object/detach";
|
|
532
532
|
let body;
|
|
533
533
|
body = JSON.stringify({
|
|
@@ -553,7 +553,7 @@ const serializeAws_restJson1DetachPolicyCommand = async (input, context) => {
|
|
|
553
553
|
"content-type": "application/json",
|
|
554
554
|
"x-amz-data-partition": input.DirectoryArn,
|
|
555
555
|
});
|
|
556
|
-
const resolvedPath = `${
|
|
556
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
557
557
|
"/amazonclouddirectory/2017-01-11/policy/detach";
|
|
558
558
|
let body;
|
|
559
559
|
body = JSON.stringify({
|
|
@@ -581,7 +581,7 @@ const serializeAws_restJson1DetachTypedLinkCommand = async (input, context) => {
|
|
|
581
581
|
"content-type": "application/json",
|
|
582
582
|
"x-amz-data-partition": input.DirectoryArn,
|
|
583
583
|
});
|
|
584
|
-
const resolvedPath = `${
|
|
584
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
585
585
|
"/amazonclouddirectory/2017-01-11/typedlink/detach";
|
|
586
586
|
let body;
|
|
587
587
|
body = JSON.stringify({
|
|
@@ -605,7 +605,7 @@ const serializeAws_restJson1DisableDirectoryCommand = async (input, context) =>
|
|
|
605
605
|
const headers = map({}, isSerializableHeaderValue, {
|
|
606
606
|
"x-amz-data-partition": input.DirectoryArn,
|
|
607
607
|
});
|
|
608
|
-
const resolvedPath = `${
|
|
608
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
609
609
|
"/amazonclouddirectory/2017-01-11/directory/disable";
|
|
610
610
|
let body;
|
|
611
611
|
return new protocol_http_1.HttpRequest({
|
|
@@ -624,7 +624,7 @@ const serializeAws_restJson1EnableDirectoryCommand = async (input, context) => {
|
|
|
624
624
|
const headers = map({}, isSerializableHeaderValue, {
|
|
625
625
|
"x-amz-data-partition": input.DirectoryArn,
|
|
626
626
|
});
|
|
627
|
-
const resolvedPath = `${
|
|
627
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
628
628
|
"/amazonclouddirectory/2017-01-11/directory/enable";
|
|
629
629
|
let body;
|
|
630
630
|
return new protocol_http_1.HttpRequest({
|
|
@@ -643,7 +643,7 @@ const serializeAws_restJson1GetAppliedSchemaVersionCommand = async (input, conte
|
|
|
643
643
|
const headers = {
|
|
644
644
|
"content-type": "application/json",
|
|
645
645
|
};
|
|
646
|
-
const resolvedPath = `${
|
|
646
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
647
647
|
"/amazonclouddirectory/2017-01-11/schema/getappliedschema";
|
|
648
648
|
let body;
|
|
649
649
|
body = JSON.stringify({
|
|
@@ -665,7 +665,7 @@ const serializeAws_restJson1GetDirectoryCommand = async (input, context) => {
|
|
|
665
665
|
const headers = map({}, isSerializableHeaderValue, {
|
|
666
666
|
"x-amz-data-partition": input.DirectoryArn,
|
|
667
667
|
});
|
|
668
|
-
const resolvedPath = `${
|
|
668
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
669
669
|
"/amazonclouddirectory/2017-01-11/directory/get";
|
|
670
670
|
let body;
|
|
671
671
|
return new protocol_http_1.HttpRequest({
|
|
@@ -685,7 +685,7 @@ const serializeAws_restJson1GetFacetCommand = async (input, context) => {
|
|
|
685
685
|
"content-type": "application/json",
|
|
686
686
|
"x-amz-data-partition": input.SchemaArn,
|
|
687
687
|
});
|
|
688
|
-
const resolvedPath = `${
|
|
688
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/amazonclouddirectory/2017-01-11/facet";
|
|
689
689
|
let body;
|
|
690
690
|
body = JSON.stringify({
|
|
691
691
|
...(input.Name != null && { Name: input.Name }),
|
|
@@ -707,7 +707,7 @@ const serializeAws_restJson1GetLinkAttributesCommand = async (input, context) =>
|
|
|
707
707
|
"content-type": "application/json",
|
|
708
708
|
"x-amz-data-partition": input.DirectoryArn,
|
|
709
709
|
});
|
|
710
|
-
const resolvedPath = `${
|
|
710
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
711
711
|
"/amazonclouddirectory/2017-01-11/typedlink/attributes/get";
|
|
712
712
|
let body;
|
|
713
713
|
body = JSON.stringify({
|
|
@@ -737,7 +737,7 @@ const serializeAws_restJson1GetObjectAttributesCommand = async (input, context)
|
|
|
737
737
|
"x-amz-data-partition": input.DirectoryArn,
|
|
738
738
|
"x-amz-consistency-level": input.ConsistencyLevel,
|
|
739
739
|
});
|
|
740
|
-
const resolvedPath = `${
|
|
740
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
741
741
|
"/amazonclouddirectory/2017-01-11/object/attributes/get";
|
|
742
742
|
let body;
|
|
743
743
|
body = JSON.stringify({
|
|
@@ -767,7 +767,7 @@ const serializeAws_restJson1GetObjectInformationCommand = async (input, context)
|
|
|
767
767
|
"x-amz-data-partition": input.DirectoryArn,
|
|
768
768
|
"x-amz-consistency-level": input.ConsistencyLevel,
|
|
769
769
|
});
|
|
770
|
-
const resolvedPath = `${
|
|
770
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
771
771
|
"/amazonclouddirectory/2017-01-11/object/information";
|
|
772
772
|
let body;
|
|
773
773
|
body = JSON.stringify({
|
|
@@ -791,7 +791,7 @@ const serializeAws_restJson1GetSchemaAsJsonCommand = async (input, context) => {
|
|
|
791
791
|
const headers = map({}, isSerializableHeaderValue, {
|
|
792
792
|
"x-amz-data-partition": input.SchemaArn,
|
|
793
793
|
});
|
|
794
|
-
const resolvedPath = `${
|
|
794
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
795
795
|
"/amazonclouddirectory/2017-01-11/schema/json";
|
|
796
796
|
let body;
|
|
797
797
|
return new protocol_http_1.HttpRequest({
|
|
@@ -811,7 +811,7 @@ const serializeAws_restJson1GetTypedLinkFacetInformationCommand = async (input,
|
|
|
811
811
|
"content-type": "application/json",
|
|
812
812
|
"x-amz-data-partition": input.SchemaArn,
|
|
813
813
|
});
|
|
814
|
-
const resolvedPath = `${
|
|
814
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
815
815
|
"/amazonclouddirectory/2017-01-11/typedlink/facet/get";
|
|
816
816
|
let body;
|
|
817
817
|
body = JSON.stringify({
|
|
@@ -833,7 +833,7 @@ const serializeAws_restJson1ListAppliedSchemaArnsCommand = async (input, context
|
|
|
833
833
|
const headers = {
|
|
834
834
|
"content-type": "application/json",
|
|
835
835
|
};
|
|
836
|
-
const resolvedPath = `${
|
|
836
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
837
837
|
"/amazonclouddirectory/2017-01-11/schema/applied";
|
|
838
838
|
let body;
|
|
839
839
|
body = JSON.stringify({
|
|
@@ -860,7 +860,7 @@ const serializeAws_restJson1ListAttachedIndicesCommand = async (input, context)
|
|
|
860
860
|
"x-amz-data-partition": input.DirectoryArn,
|
|
861
861
|
"x-amz-consistency-level": input.ConsistencyLevel,
|
|
862
862
|
});
|
|
863
|
-
const resolvedPath = `${
|
|
863
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
864
864
|
"/amazonclouddirectory/2017-01-11/object/indices";
|
|
865
865
|
let body;
|
|
866
866
|
body = JSON.stringify({
|
|
@@ -886,7 +886,7 @@ const serializeAws_restJson1ListDevelopmentSchemaArnsCommand = async (input, con
|
|
|
886
886
|
const headers = {
|
|
887
887
|
"content-type": "application/json",
|
|
888
888
|
};
|
|
889
|
-
const resolvedPath = `${
|
|
889
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
890
890
|
"/amazonclouddirectory/2017-01-11/schema/development";
|
|
891
891
|
let body;
|
|
892
892
|
body = JSON.stringify({
|
|
@@ -909,7 +909,7 @@ const serializeAws_restJson1ListDirectoriesCommand = async (input, context) => {
|
|
|
909
909
|
const headers = {
|
|
910
910
|
"content-type": "application/json",
|
|
911
911
|
};
|
|
912
|
-
const resolvedPath = `${
|
|
912
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
913
913
|
"/amazonclouddirectory/2017-01-11/directory/list";
|
|
914
914
|
let body;
|
|
915
915
|
body = JSON.stringify({
|
|
@@ -934,7 +934,7 @@ const serializeAws_restJson1ListFacetAttributesCommand = async (input, context)
|
|
|
934
934
|
"content-type": "application/json",
|
|
935
935
|
"x-amz-data-partition": input.SchemaArn,
|
|
936
936
|
});
|
|
937
|
-
const resolvedPath = `${
|
|
937
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
938
938
|
"/amazonclouddirectory/2017-01-11/facet/attributes";
|
|
939
939
|
let body;
|
|
940
940
|
body = JSON.stringify({
|
|
@@ -959,7 +959,7 @@ const serializeAws_restJson1ListFacetNamesCommand = async (input, context) => {
|
|
|
959
959
|
"content-type": "application/json",
|
|
960
960
|
"x-amz-data-partition": input.SchemaArn,
|
|
961
961
|
});
|
|
962
|
-
const resolvedPath = `${
|
|
962
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
963
963
|
"/amazonclouddirectory/2017-01-11/facet/list";
|
|
964
964
|
let body;
|
|
965
965
|
body = JSON.stringify({
|
|
@@ -983,7 +983,7 @@ const serializeAws_restJson1ListIncomingTypedLinksCommand = async (input, contex
|
|
|
983
983
|
"content-type": "application/json",
|
|
984
984
|
"x-amz-data-partition": input.DirectoryArn,
|
|
985
985
|
});
|
|
986
|
-
const resolvedPath = `${
|
|
986
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
987
987
|
"/amazonclouddirectory/2017-01-11/typedlink/incoming";
|
|
988
988
|
let body;
|
|
989
989
|
body = JSON.stringify({
|
|
@@ -1018,7 +1018,7 @@ const serializeAws_restJson1ListIndexCommand = async (input, context) => {
|
|
|
1018
1018
|
"x-amz-data-partition": input.DirectoryArn,
|
|
1019
1019
|
"x-amz-consistency-level": input.ConsistencyLevel,
|
|
1020
1020
|
});
|
|
1021
|
-
const resolvedPath = `${
|
|
1021
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1022
1022
|
"/amazonclouddirectory/2017-01-11/index/targets";
|
|
1023
1023
|
let body;
|
|
1024
1024
|
body = JSON.stringify({
|
|
@@ -1047,7 +1047,7 @@ const serializeAws_restJson1ListManagedSchemaArnsCommand = async (input, context
|
|
|
1047
1047
|
const headers = {
|
|
1048
1048
|
"content-type": "application/json",
|
|
1049
1049
|
};
|
|
1050
|
-
const resolvedPath = `${
|
|
1050
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1051
1051
|
"/amazonclouddirectory/2017-01-11/schema/managed";
|
|
1052
1052
|
let body;
|
|
1053
1053
|
body = JSON.stringify({
|
|
@@ -1073,7 +1073,7 @@ const serializeAws_restJson1ListObjectAttributesCommand = async (input, context)
|
|
|
1073
1073
|
"x-amz-data-partition": input.DirectoryArn,
|
|
1074
1074
|
"x-amz-consistency-level": input.ConsistencyLevel,
|
|
1075
1075
|
});
|
|
1076
|
-
const resolvedPath = `${
|
|
1076
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1077
1077
|
"/amazonclouddirectory/2017-01-11/object/attributes";
|
|
1078
1078
|
let body;
|
|
1079
1079
|
body = JSON.stringify({
|
|
@@ -1102,7 +1102,7 @@ const serializeAws_restJson1ListObjectChildrenCommand = async (input, context) =
|
|
|
1102
1102
|
"x-amz-data-partition": input.DirectoryArn,
|
|
1103
1103
|
"x-amz-consistency-level": input.ConsistencyLevel,
|
|
1104
1104
|
});
|
|
1105
|
-
const resolvedPath = `${
|
|
1105
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1106
1106
|
"/amazonclouddirectory/2017-01-11/object/children";
|
|
1107
1107
|
let body;
|
|
1108
1108
|
body = JSON.stringify({
|
|
@@ -1129,7 +1129,7 @@ const serializeAws_restJson1ListObjectParentPathsCommand = async (input, context
|
|
|
1129
1129
|
"content-type": "application/json",
|
|
1130
1130
|
"x-amz-data-partition": input.DirectoryArn,
|
|
1131
1131
|
});
|
|
1132
|
-
const resolvedPath = `${
|
|
1132
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1133
1133
|
"/amazonclouddirectory/2017-01-11/object/parentpaths";
|
|
1134
1134
|
let body;
|
|
1135
1135
|
body = JSON.stringify({
|
|
@@ -1157,7 +1157,7 @@ const serializeAws_restJson1ListObjectParentsCommand = async (input, context) =>
|
|
|
1157
1157
|
"x-amz-data-partition": input.DirectoryArn,
|
|
1158
1158
|
"x-amz-consistency-level": input.ConsistencyLevel,
|
|
1159
1159
|
});
|
|
1160
|
-
const resolvedPath = `${
|
|
1160
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1161
1161
|
"/amazonclouddirectory/2017-01-11/object/parent";
|
|
1162
1162
|
let body;
|
|
1163
1163
|
body = JSON.stringify({
|
|
@@ -1188,7 +1188,7 @@ const serializeAws_restJson1ListObjectPoliciesCommand = async (input, context) =
|
|
|
1188
1188
|
"x-amz-data-partition": input.DirectoryArn,
|
|
1189
1189
|
"x-amz-consistency-level": input.ConsistencyLevel,
|
|
1190
1190
|
});
|
|
1191
|
-
const resolvedPath = `${
|
|
1191
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1192
1192
|
"/amazonclouddirectory/2017-01-11/object/policy";
|
|
1193
1193
|
let body;
|
|
1194
1194
|
body = JSON.stringify({
|
|
@@ -1215,7 +1215,7 @@ const serializeAws_restJson1ListOutgoingTypedLinksCommand = async (input, contex
|
|
|
1215
1215
|
"content-type": "application/json",
|
|
1216
1216
|
"x-amz-data-partition": input.DirectoryArn,
|
|
1217
1217
|
});
|
|
1218
|
-
const resolvedPath = `${
|
|
1218
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1219
1219
|
"/amazonclouddirectory/2017-01-11/typedlink/outgoing";
|
|
1220
1220
|
let body;
|
|
1221
1221
|
body = JSON.stringify({
|
|
@@ -1250,7 +1250,7 @@ const serializeAws_restJson1ListPolicyAttachmentsCommand = async (input, context
|
|
|
1250
1250
|
"x-amz-data-partition": input.DirectoryArn,
|
|
1251
1251
|
"x-amz-consistency-level": input.ConsistencyLevel,
|
|
1252
1252
|
});
|
|
1253
|
-
const resolvedPath = `${
|
|
1253
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1254
1254
|
"/amazonclouddirectory/2017-01-11/policy/attachment";
|
|
1255
1255
|
let body;
|
|
1256
1256
|
body = JSON.stringify({
|
|
@@ -1276,7 +1276,7 @@ const serializeAws_restJson1ListPublishedSchemaArnsCommand = async (input, conte
|
|
|
1276
1276
|
const headers = {
|
|
1277
1277
|
"content-type": "application/json",
|
|
1278
1278
|
};
|
|
1279
|
-
const resolvedPath = `${
|
|
1279
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1280
1280
|
"/amazonclouddirectory/2017-01-11/schema/published";
|
|
1281
1281
|
let body;
|
|
1282
1282
|
body = JSON.stringify({
|
|
@@ -1300,7 +1300,7 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
1300
1300
|
const headers = {
|
|
1301
1301
|
"content-type": "application/json",
|
|
1302
1302
|
};
|
|
1303
|
-
const resolvedPath = `${
|
|
1303
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/amazonclouddirectory/2017-01-11/tags";
|
|
1304
1304
|
let body;
|
|
1305
1305
|
body = JSON.stringify({
|
|
1306
1306
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
@@ -1324,7 +1324,7 @@ const serializeAws_restJson1ListTypedLinkFacetAttributesCommand = async (input,
|
|
|
1324
1324
|
"content-type": "application/json",
|
|
1325
1325
|
"x-amz-data-partition": input.SchemaArn,
|
|
1326
1326
|
});
|
|
1327
|
-
const resolvedPath = `${
|
|
1327
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1328
1328
|
"/amazonclouddirectory/2017-01-11/typedlink/facet/attributes";
|
|
1329
1329
|
let body;
|
|
1330
1330
|
body = JSON.stringify({
|
|
@@ -1349,7 +1349,7 @@ const serializeAws_restJson1ListTypedLinkFacetNamesCommand = async (input, conte
|
|
|
1349
1349
|
"content-type": "application/json",
|
|
1350
1350
|
"x-amz-data-partition": input.SchemaArn,
|
|
1351
1351
|
});
|
|
1352
|
-
const resolvedPath = `${
|
|
1352
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1353
1353
|
"/amazonclouddirectory/2017-01-11/typedlink/facet/list";
|
|
1354
1354
|
let body;
|
|
1355
1355
|
body = JSON.stringify({
|
|
@@ -1373,7 +1373,7 @@ const serializeAws_restJson1LookupPolicyCommand = async (input, context) => {
|
|
|
1373
1373
|
"content-type": "application/json",
|
|
1374
1374
|
"x-amz-data-partition": input.DirectoryArn,
|
|
1375
1375
|
});
|
|
1376
|
-
const resolvedPath = `${
|
|
1376
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1377
1377
|
"/amazonclouddirectory/2017-01-11/policy/lookup";
|
|
1378
1378
|
let body;
|
|
1379
1379
|
body = JSON.stringify({
|
|
@@ -1400,7 +1400,7 @@ const serializeAws_restJson1PublishSchemaCommand = async (input, context) => {
|
|
|
1400
1400
|
"content-type": "application/json",
|
|
1401
1401
|
"x-amz-data-partition": input.DevelopmentSchemaArn,
|
|
1402
1402
|
});
|
|
1403
|
-
const resolvedPath = `${
|
|
1403
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1404
1404
|
"/amazonclouddirectory/2017-01-11/schema/publish";
|
|
1405
1405
|
let body;
|
|
1406
1406
|
body = JSON.stringify({
|
|
@@ -1425,7 +1425,7 @@ const serializeAws_restJson1PutSchemaFromJsonCommand = async (input, context) =>
|
|
|
1425
1425
|
"content-type": "application/json",
|
|
1426
1426
|
"x-amz-data-partition": input.SchemaArn,
|
|
1427
1427
|
});
|
|
1428
|
-
const resolvedPath = `${
|
|
1428
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1429
1429
|
"/amazonclouddirectory/2017-01-11/schema/json";
|
|
1430
1430
|
let body;
|
|
1431
1431
|
body = JSON.stringify({
|
|
@@ -1448,7 +1448,7 @@ const serializeAws_restJson1RemoveFacetFromObjectCommand = async (input, context
|
|
|
1448
1448
|
"content-type": "application/json",
|
|
1449
1449
|
"x-amz-data-partition": input.DirectoryArn,
|
|
1450
1450
|
});
|
|
1451
|
-
const resolvedPath = `${
|
|
1451
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1452
1452
|
"/amazonclouddirectory/2017-01-11/object/facets/delete";
|
|
1453
1453
|
let body;
|
|
1454
1454
|
body = JSON.stringify({
|
|
@@ -1473,7 +1473,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
1473
1473
|
const headers = {
|
|
1474
1474
|
"content-type": "application/json",
|
|
1475
1475
|
};
|
|
1476
|
-
const resolvedPath = `${
|
|
1476
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/amazonclouddirectory/2017-01-11/tags/add";
|
|
1477
1477
|
let body;
|
|
1478
1478
|
body = JSON.stringify({
|
|
1479
1479
|
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
@@ -1495,7 +1495,7 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
1495
1495
|
const headers = {
|
|
1496
1496
|
"content-type": "application/json",
|
|
1497
1497
|
};
|
|
1498
|
-
const resolvedPath = `${
|
|
1498
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1499
1499
|
"/amazonclouddirectory/2017-01-11/tags/remove";
|
|
1500
1500
|
let body;
|
|
1501
1501
|
body = JSON.stringify({
|
|
@@ -1519,7 +1519,7 @@ const serializeAws_restJson1UpdateFacetCommand = async (input, context) => {
|
|
|
1519
1519
|
"content-type": "application/json",
|
|
1520
1520
|
"x-amz-data-partition": input.SchemaArn,
|
|
1521
1521
|
});
|
|
1522
|
-
const resolvedPath = `${
|
|
1522
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/amazonclouddirectory/2017-01-11/facet";
|
|
1523
1523
|
let body;
|
|
1524
1524
|
body = JSON.stringify({
|
|
1525
1525
|
...(input.AttributeUpdates != null && {
|
|
@@ -1545,7 +1545,7 @@ const serializeAws_restJson1UpdateLinkAttributesCommand = async (input, context)
|
|
|
1545
1545
|
"content-type": "application/json",
|
|
1546
1546
|
"x-amz-data-partition": input.DirectoryArn,
|
|
1547
1547
|
});
|
|
1548
|
-
const resolvedPath = `${
|
|
1548
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1549
1549
|
"/amazonclouddirectory/2017-01-11/typedlink/attributes/update";
|
|
1550
1550
|
let body;
|
|
1551
1551
|
body = JSON.stringify({
|
|
@@ -1573,7 +1573,7 @@ const serializeAws_restJson1UpdateObjectAttributesCommand = async (input, contex
|
|
|
1573
1573
|
"content-type": "application/json",
|
|
1574
1574
|
"x-amz-data-partition": input.DirectoryArn,
|
|
1575
1575
|
});
|
|
1576
|
-
const resolvedPath = `${
|
|
1576
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1577
1577
|
"/amazonclouddirectory/2017-01-11/object/update";
|
|
1578
1578
|
let body;
|
|
1579
1579
|
body = JSON.stringify({
|
|
@@ -1601,7 +1601,7 @@ const serializeAws_restJson1UpdateSchemaCommand = async (input, context) => {
|
|
|
1601
1601
|
"content-type": "application/json",
|
|
1602
1602
|
"x-amz-data-partition": input.SchemaArn,
|
|
1603
1603
|
});
|
|
1604
|
-
const resolvedPath = `${
|
|
1604
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1605
1605
|
"/amazonclouddirectory/2017-01-11/schema/update";
|
|
1606
1606
|
let body;
|
|
1607
1607
|
body = JSON.stringify({
|
|
@@ -1624,7 +1624,7 @@ const serializeAws_restJson1UpdateTypedLinkFacetCommand = async (input, context)
|
|
|
1624
1624
|
"content-type": "application/json",
|
|
1625
1625
|
"x-amz-data-partition": input.SchemaArn,
|
|
1626
1626
|
});
|
|
1627
|
-
const resolvedPath = `${
|
|
1627
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1628
1628
|
"/amazonclouddirectory/2017-01-11/typedlink/facet";
|
|
1629
1629
|
let body;
|
|
1630
1630
|
body = JSON.stringify({
|
|
@@ -1652,7 +1652,7 @@ const serializeAws_restJson1UpgradeAppliedSchemaCommand = async (input, context)
|
|
|
1652
1652
|
const headers = {
|
|
1653
1653
|
"content-type": "application/json",
|
|
1654
1654
|
};
|
|
1655
|
-
const resolvedPath = `${
|
|
1655
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1656
1656
|
"/amazonclouddirectory/2017-01-11/schema/upgradeapplied";
|
|
1657
1657
|
let body;
|
|
1658
1658
|
body = JSON.stringify({
|
|
@@ -1676,7 +1676,7 @@ const serializeAws_restJson1UpgradePublishedSchemaCommand = async (input, contex
|
|
|
1676
1676
|
const headers = {
|
|
1677
1677
|
"content-type": "application/json",
|
|
1678
1678
|
};
|
|
1679
|
-
const resolvedPath = `${
|
|
1679
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1680
1680
|
"/amazonclouddirectory/2017-01-11/schema/upgradepublished";
|
|
1681
1681
|
let body;
|
|
1682
1682
|
body = JSON.stringify({
|
|
@@ -7419,15 +7419,12 @@ const deserializeAws_restJson1TypedLinkSpecifierList = (output, context) => {
|
|
|
7419
7419
|
});
|
|
7420
7420
|
return retVal;
|
|
7421
7421
|
};
|
|
7422
|
-
const deserializeMetadata = (output) => {
|
|
7423
|
-
|
|
7424
|
-
|
|
7425
|
-
|
|
7426
|
-
|
|
7427
|
-
|
|
7428
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
7429
|
-
});
|
|
7430
|
-
};
|
|
7422
|
+
const deserializeMetadata = (output) => ({
|
|
7423
|
+
httpStatusCode: output.statusCode,
|
|
7424
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
7425
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
7426
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
7427
|
+
});
|
|
7431
7428
|
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
7432
7429
|
if (streamBody instanceof Uint8Array) {
|
|
7433
7430
|
return Promise.resolve(streamBody);
|
|
@@ -7447,9 +7444,8 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
7447
7444
|
return {};
|
|
7448
7445
|
});
|
|
7449
7446
|
const parseErrorBody = async (errorBody, context) => {
|
|
7450
|
-
var _a;
|
|
7451
7447
|
const value = await parseBody(errorBody, context);
|
|
7452
|
-
value.message =
|
|
7448
|
+
value.message = value.message ?? value.Message;
|
|
7453
7449
|
return value;
|
|
7454
7450
|
};
|
|
7455
7451
|
const loadRestJsonErrorCode = (output, data) => {
|
|
@@ -16,7 +16,6 @@ const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
|
16
16
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
17
17
|
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
18
18
|
const getRuntimeConfig = (config) => {
|
|
19
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
20
19
|
const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
|
|
21
20
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
22
21
|
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
@@ -25,21 +24,22 @@ const getRuntimeConfig = (config) => {
|
|
|
25
24
|
...config,
|
|
26
25
|
runtime: "browser",
|
|
27
26
|
defaultsMode,
|
|
28
|
-
base64Decoder:
|
|
29
|
-
base64Encoder:
|
|
30
|
-
bodyLengthChecker:
|
|
31
|
-
credentialDefaultProvider:
|
|
32
|
-
defaultUserAgentProvider:
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
27
|
+
base64Decoder: config?.base64Decoder ?? util_base64_browser_1.fromBase64,
|
|
28
|
+
base64Encoder: config?.base64Encoder ?? util_base64_browser_1.toBase64,
|
|
29
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
|
|
30
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
31
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
32
|
+
(0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
33
|
+
maxAttempts: config?.maxAttempts ?? middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
34
|
+
region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
35
|
+
requestHandler: config?.requestHandler ?? new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
36
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
|
|
37
|
+
sha256: config?.sha256 ?? sha256_browser_1.Sha256,
|
|
38
|
+
streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
|
|
39
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
40
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
|
|
41
|
+
utf8Decoder: config?.utf8Decoder ?? util_utf8_browser_1.fromUtf8,
|
|
42
|
+
utf8Encoder: config?.utf8Encoder ?? util_utf8_browser_1.toUtf8,
|
|
43
43
|
};
|
|
44
44
|
};
|
|
45
45
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -19,7 +19,6 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
19
19
|
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
20
20
|
const smithy_client_2 = require("@aws-sdk/smithy-client");
|
|
21
21
|
const getRuntimeConfig = (config) => {
|
|
22
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
23
22
|
(0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
|
|
24
23
|
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
25
24
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
@@ -29,24 +28,26 @@ const getRuntimeConfig = (config) => {
|
|
|
29
28
|
...config,
|
|
30
29
|
runtime: "node",
|
|
31
30
|
defaultsMode,
|
|
32
|
-
base64Decoder:
|
|
33
|
-
base64Encoder:
|
|
34
|
-
bodyLengthChecker:
|
|
35
|
-
credentialDefaultProvider:
|
|
36
|
-
defaultUserAgentProvider:
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
31
|
+
base64Decoder: config?.base64Decoder ?? util_base64_node_1.fromBase64,
|
|
32
|
+
base64Encoder: config?.base64Encoder ?? util_base64_node_1.toBase64,
|
|
33
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
|
|
34
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
|
|
35
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
36
|
+
(0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
37
|
+
maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
38
|
+
region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
39
|
+
requestHandler: config?.requestHandler ?? new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
40
|
+
retryMode: config?.retryMode ??
|
|
41
|
+
(0, node_config_provider_1.loadConfig)({
|
|
42
|
+
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
43
|
+
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
44
|
+
}),
|
|
45
|
+
sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
|
|
46
|
+
streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
|
|
47
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
48
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
49
|
+
utf8Decoder: config?.utf8Decoder ?? util_utf8_node_1.fromUtf8,
|
|
50
|
+
utf8Encoder: config?.utf8Encoder ?? util_utf8_node_1.toUtf8,
|
|
50
51
|
};
|
|
51
52
|
};
|
|
52
53
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -4,13 +4,12 @@ exports.getRuntimeConfig = void 0;
|
|
|
4
4
|
const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
5
5
|
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
6
6
|
const getRuntimeConfig = (config) => {
|
|
7
|
-
var _a;
|
|
8
7
|
const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
|
|
9
8
|
return {
|
|
10
9
|
...browserDefaults,
|
|
11
10
|
...config,
|
|
12
11
|
runtime: "react-native",
|
|
13
|
-
sha256:
|
|
12
|
+
sha256: config?.sha256 ?? sha256_js_1.Sha256,
|
|
14
13
|
};
|
|
15
14
|
};
|
|
16
15
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -3,15 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const url_parser_1 = require("@aws-sdk/url-parser");
|
|
5
5
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
6
|
-
const getRuntimeConfig = (config) => {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl,
|
|
15
|
-
});
|
|
16
|
-
};
|
|
6
|
+
const getRuntimeConfig = (config) => ({
|
|
7
|
+
apiVersion: "2017-01-11",
|
|
8
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
9
|
+
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
|
10
|
+
logger: config?.logger ?? {},
|
|
11
|
+
serviceId: config?.serviceId ?? "CloudDirectory",
|
|
12
|
+
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
13
|
+
});
|
|
17
14
|
exports.getRuntimeConfig = getRuntimeConfig;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-clouddirectory",
|
|
3
3
|
"description": "AWS SDK for JavaScript Clouddirectory Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.201.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",
|
|
@@ -19,44 +19,44 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
21
21
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
22
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
-
"@aws-sdk/config-resolver": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
26
|
-
"@aws-sdk/hash-node": "3.
|
|
27
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
28
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
29
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
30
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
31
|
-
"@aws-sdk/middleware-logger": "3.
|
|
32
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
33
|
-
"@aws-sdk/middleware-retry": "3.
|
|
34
|
-
"@aws-sdk/middleware-serde": "3.
|
|
35
|
-
"@aws-sdk/middleware-signing": "3.
|
|
36
|
-
"@aws-sdk/middleware-stack": "3.
|
|
37
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
38
|
-
"@aws-sdk/node-config-provider": "3.
|
|
39
|
-
"@aws-sdk/node-http-handler": "3.
|
|
40
|
-
"@aws-sdk/protocol-http": "3.
|
|
41
|
-
"@aws-sdk/smithy-client": "3.
|
|
42
|
-
"@aws-sdk/types": "3.
|
|
43
|
-
"@aws-sdk/url-parser": "3.
|
|
22
|
+
"@aws-sdk/client-sts": "3.201.0",
|
|
23
|
+
"@aws-sdk/config-resolver": "3.201.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.201.0",
|
|
25
|
+
"@aws-sdk/fetch-http-handler": "3.201.0",
|
|
26
|
+
"@aws-sdk/hash-node": "3.201.0",
|
|
27
|
+
"@aws-sdk/invalid-dependency": "3.201.0",
|
|
28
|
+
"@aws-sdk/middleware-content-length": "3.201.0",
|
|
29
|
+
"@aws-sdk/middleware-endpoint": "3.201.0",
|
|
30
|
+
"@aws-sdk/middleware-host-header": "3.201.0",
|
|
31
|
+
"@aws-sdk/middleware-logger": "3.201.0",
|
|
32
|
+
"@aws-sdk/middleware-recursion-detection": "3.201.0",
|
|
33
|
+
"@aws-sdk/middleware-retry": "3.201.0",
|
|
34
|
+
"@aws-sdk/middleware-serde": "3.201.0",
|
|
35
|
+
"@aws-sdk/middleware-signing": "3.201.0",
|
|
36
|
+
"@aws-sdk/middleware-stack": "3.201.0",
|
|
37
|
+
"@aws-sdk/middleware-user-agent": "3.201.0",
|
|
38
|
+
"@aws-sdk/node-config-provider": "3.201.0",
|
|
39
|
+
"@aws-sdk/node-http-handler": "3.201.0",
|
|
40
|
+
"@aws-sdk/protocol-http": "3.201.0",
|
|
41
|
+
"@aws-sdk/smithy-client": "3.201.0",
|
|
42
|
+
"@aws-sdk/types": "3.201.0",
|
|
43
|
+
"@aws-sdk/url-parser": "3.201.0",
|
|
44
44
|
"@aws-sdk/util-base64-browser": "3.188.0",
|
|
45
|
-
"@aws-sdk/util-base64-node": "3.
|
|
45
|
+
"@aws-sdk/util-base64-node": "3.201.0",
|
|
46
46
|
"@aws-sdk/util-body-length-browser": "3.188.0",
|
|
47
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
48
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
49
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
50
|
-
"@aws-sdk/util-endpoints": "3.
|
|
51
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
52
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
47
|
+
"@aws-sdk/util-body-length-node": "3.201.0",
|
|
48
|
+
"@aws-sdk/util-defaults-mode-browser": "3.201.0",
|
|
49
|
+
"@aws-sdk/util-defaults-mode-node": "3.201.0",
|
|
50
|
+
"@aws-sdk/util-endpoints": "3.201.0",
|
|
51
|
+
"@aws-sdk/util-user-agent-browser": "3.201.0",
|
|
52
|
+
"@aws-sdk/util-user-agent-node": "3.201.0",
|
|
53
53
|
"@aws-sdk/util-utf8-browser": "3.188.0",
|
|
54
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
54
|
+
"@aws-sdk/util-utf8-node": "3.201.0",
|
|
55
55
|
"tslib": "^2.3.1"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@aws-sdk/service-client-documentation-generator": "3.188.0",
|
|
59
|
-
"@tsconfig/
|
|
59
|
+
"@tsconfig/node14": "1.0.3",
|
|
60
60
|
"@types/node": "^12.7.5",
|
|
61
61
|
"concurrently": "7.0.0",
|
|
62
62
|
"downlevel-dts": "0.10.1",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
}
|
|
71
71
|
},
|
|
72
72
|
"engines": {
|
|
73
|
-
"node": ">=
|
|
73
|
+
"node": ">=14.0.0"
|
|
74
74
|
},
|
|
75
75
|
"typesVersions": {
|
|
76
76
|
"<4.0": {
|