@cdk8s/awscdk-resolver 0.0.521 → 0.0.522
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 +3 -3
- package/lib/resolve.js +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/package.json +5 -5
- package/node_modules/@aws-sdk/core/dist-cjs/index.js +54 -21
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +54 -21
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/ProtocolLib.js +24 -6
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.js +6 -5
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJson1_0Protocol.js +2 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJson1_1Protocol.js +2 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +6 -4
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +6 -4
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsQueryProtocol.js +4 -2
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/AwsRestXmlProtocol.js +9 -3
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/ProtocolLib.d.ts +13 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.d.ts +3 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_0Protocol.d.ts +3 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_1Protocol.d.ts +3 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +3 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsRestJsonProtocol.d.ts +3 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/AwsEc2QueryProtocol.d.ts +3 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/AwsQueryProtocol.d.ts +3 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/AwsRestXmlProtocol.d.ts +2 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/ProtocolLib.d.ts +6 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.d.ts +3 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_0Protocol.d.ts +3 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_1Protocol.d.ts +3 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +3 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsRestJsonProtocol.d.ts +8 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/AwsEc2QueryProtocol.d.ts +3 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/AwsQueryProtocol.d.ts +3 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/AwsRestXmlProtocol.d.ts +6 -1
- package/node_modules/@aws-sdk/core/package.json +1 -1
- package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-login/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +2 -2
- package/node_modules/@aws-sdk/nested-clients/package.json +4 -4
- package/node_modules/@aws-sdk/token-providers/package.json +3 -3
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
- package/package.json +4 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RpcProtocol } from "@smithy/core/protocols";
|
|
2
|
-
import { deref, NormalizedSchema
|
|
2
|
+
import { deref, NormalizedSchema } from "@smithy/core/schema";
|
|
3
3
|
import { ProtocolLib } from "../ProtocolLib";
|
|
4
4
|
import { JsonCodec } from "./JsonCodec";
|
|
5
5
|
import { loadRestJsonErrorCode } from "./parseJsonBody";
|
|
@@ -10,9 +10,10 @@ export class AwsJsonRpcProtocol extends RpcProtocol {
|
|
|
10
10
|
codec;
|
|
11
11
|
mixin;
|
|
12
12
|
awsQueryCompatible;
|
|
13
|
-
constructor({ defaultNamespace, serviceTarget, awsQueryCompatible, jsonCodec, }) {
|
|
13
|
+
constructor({ defaultNamespace, errorTypeRegistries, serviceTarget, awsQueryCompatible, jsonCodec, }) {
|
|
14
14
|
super({
|
|
15
15
|
defaultNamespace,
|
|
16
|
+
errorTypeRegistries,
|
|
16
17
|
});
|
|
17
18
|
this.serviceTarget = serviceTarget;
|
|
18
19
|
this.codec =
|
|
@@ -54,10 +55,11 @@ export class AwsJsonRpcProtocol extends RpcProtocol {
|
|
|
54
55
|
this.mixin.setQueryCompatError(dataObject, response);
|
|
55
56
|
}
|
|
56
57
|
const errorIdentifier = loadRestJsonErrorCode(response, dataObject) ?? "Unknown";
|
|
58
|
+
this.mixin.compose(this.compositeErrorRegistry, errorIdentifier, this.options.defaultNamespace);
|
|
57
59
|
const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, dataObject, metadata, this.awsQueryCompatible ? this.mixin.findQueryCompatibleError : undefined);
|
|
58
60
|
const ns = NormalizedSchema.of(errorSchema);
|
|
59
|
-
const message = dataObject.message ?? dataObject.Message ?? "
|
|
60
|
-
const ErrorCtor =
|
|
61
|
+
const message = dataObject.message ?? dataObject.Message ?? "UnknownError";
|
|
62
|
+
const ErrorCtor = this.compositeErrorRegistry.getErrorCtor(errorSchema) ?? Error;
|
|
61
63
|
const exception = new ErrorCtor(message);
|
|
62
64
|
const output = {};
|
|
63
65
|
for (const [name, member] of ns.structIterator()) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpBindingProtocol, HttpInterceptingShapeDeserializer, HttpInterceptingShapeSerializer, } from "@smithy/core/protocols";
|
|
2
|
-
import { NormalizedSchema
|
|
2
|
+
import { NormalizedSchema } from "@smithy/core/schema";
|
|
3
3
|
import { ProtocolLib } from "../ProtocolLib";
|
|
4
4
|
import { JsonCodec } from "./JsonCodec";
|
|
5
5
|
import { loadRestJsonErrorCode } from "./parseJsonBody";
|
|
@@ -8,9 +8,10 @@ export class AwsRestJsonProtocol extends HttpBindingProtocol {
|
|
|
8
8
|
deserializer;
|
|
9
9
|
codec;
|
|
10
10
|
mixin = new ProtocolLib();
|
|
11
|
-
constructor({ defaultNamespace }) {
|
|
11
|
+
constructor({ defaultNamespace, errorTypeRegistries, }) {
|
|
12
12
|
super({
|
|
13
13
|
defaultNamespace,
|
|
14
|
+
errorTypeRegistries,
|
|
14
15
|
});
|
|
15
16
|
const settings = {
|
|
16
17
|
timestampFormat: {
|
|
@@ -60,10 +61,11 @@ export class AwsRestJsonProtocol extends HttpBindingProtocol {
|
|
|
60
61
|
}
|
|
61
62
|
async handleError(operationSchema, context, response, dataObject, metadata) {
|
|
62
63
|
const errorIdentifier = loadRestJsonErrorCode(response, dataObject) ?? "Unknown";
|
|
64
|
+
this.mixin.compose(this.compositeErrorRegistry, errorIdentifier, this.options.defaultNamespace);
|
|
63
65
|
const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, dataObject, metadata);
|
|
64
66
|
const ns = NormalizedSchema.of(errorSchema);
|
|
65
|
-
const message = dataObject.message ?? dataObject.Message ?? "
|
|
66
|
-
const ErrorCtor =
|
|
67
|
+
const message = dataObject.message ?? dataObject.Message ?? "UnknownError";
|
|
68
|
+
const ErrorCtor = this.compositeErrorRegistry.getErrorCtor(errorSchema) ?? Error;
|
|
67
69
|
const exception = new ErrorCtor(message);
|
|
68
70
|
await this.deserializeHttpMessage(errorSchema, context, response, dataObject);
|
|
69
71
|
const output = {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { collectBody, RpcProtocol } from "@smithy/core/protocols";
|
|
2
|
-
import { deref, NormalizedSchema
|
|
2
|
+
import { deref, NormalizedSchema } from "@smithy/core/schema";
|
|
3
3
|
import { ProtocolLib } from "../ProtocolLib";
|
|
4
4
|
import { XmlShapeDeserializer } from "../xml/XmlShapeDeserializer";
|
|
5
5
|
import { QueryShapeSerializer } from "./QueryShapeSerializer";
|
|
@@ -11,6 +11,7 @@ export class AwsQueryProtocol extends RpcProtocol {
|
|
|
11
11
|
constructor(options) {
|
|
12
12
|
super({
|
|
13
13
|
defaultNamespace: options.defaultNamespace,
|
|
14
|
+
errorTypeRegistries: options.errorTypeRegistries,
|
|
14
15
|
});
|
|
15
16
|
this.options = options;
|
|
16
17
|
const settings = {
|
|
@@ -87,6 +88,7 @@ export class AwsQueryProtocol extends RpcProtocol {
|
|
|
87
88
|
}
|
|
88
89
|
async handleError(operationSchema, context, response, dataObject, metadata) {
|
|
89
90
|
const errorIdentifier = this.loadQueryErrorCode(response, dataObject) ?? "Unknown";
|
|
91
|
+
this.mixin.compose(this.compositeErrorRegistry, errorIdentifier, this.options.defaultNamespace);
|
|
90
92
|
const errorData = this.loadQueryError(dataObject) ?? {};
|
|
91
93
|
const message = this.loadQueryErrorMessage(dataObject);
|
|
92
94
|
errorData.message = message;
|
|
@@ -97,7 +99,7 @@ export class AwsQueryProtocol extends RpcProtocol {
|
|
|
97
99
|
};
|
|
98
100
|
const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, errorData, metadata, this.mixin.findQueryCompatibleError);
|
|
99
101
|
const ns = NormalizedSchema.of(errorSchema);
|
|
100
|
-
const ErrorCtor =
|
|
102
|
+
const ErrorCtor = this.compositeErrorRegistry.getErrorCtor(errorSchema) ?? Error;
|
|
101
103
|
const exception = new ErrorCtor(message);
|
|
102
104
|
const output = {
|
|
103
105
|
Type: errorData.Error.Type,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpBindingProtocol, HttpInterceptingShapeDeserializer, HttpInterceptingShapeSerializer, } from "@smithy/core/protocols";
|
|
2
|
-
import { NormalizedSchema
|
|
2
|
+
import { NormalizedSchema } from "@smithy/core/schema";
|
|
3
3
|
import { ProtocolLib } from "../ProtocolLib";
|
|
4
4
|
import { loadRestXmlErrorCode } from "./parseXmlBody";
|
|
5
5
|
import { XmlCodec } from "./XmlCodec";
|
|
@@ -22,6 +22,7 @@ export class AwsRestXmlProtocol extends HttpBindingProtocol {
|
|
|
22
22
|
this.codec = new XmlCodec(settings);
|
|
23
23
|
this.serializer = new HttpInterceptingShapeSerializer(this.codec.createSerializer(), settings);
|
|
24
24
|
this.deserializer = new HttpInterceptingShapeDeserializer(this.codec.createDeserializer(), settings);
|
|
25
|
+
this.compositeErrorRegistry;
|
|
25
26
|
}
|
|
26
27
|
getPayloadCodec() {
|
|
27
28
|
return this.codec;
|
|
@@ -51,6 +52,7 @@ export class AwsRestXmlProtocol extends HttpBindingProtocol {
|
|
|
51
52
|
}
|
|
52
53
|
async handleError(operationSchema, context, response, dataObject, metadata) {
|
|
53
54
|
const errorIdentifier = loadRestXmlErrorCode(response, dataObject) ?? "Unknown";
|
|
55
|
+
this.mixin.compose(this.compositeErrorRegistry, errorIdentifier, this.options.defaultNamespace);
|
|
54
56
|
if (dataObject.Error && typeof dataObject.Error === "object") {
|
|
55
57
|
for (const key of Object.keys(dataObject.Error)) {
|
|
56
58
|
dataObject[key] = dataObject.Error[key];
|
|
@@ -64,8 +66,12 @@ export class AwsRestXmlProtocol extends HttpBindingProtocol {
|
|
|
64
66
|
}
|
|
65
67
|
const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, dataObject, metadata);
|
|
66
68
|
const ns = NormalizedSchema.of(errorSchema);
|
|
67
|
-
const message = dataObject.Error?.message ??
|
|
68
|
-
|
|
69
|
+
const message = dataObject.Error?.message ??
|
|
70
|
+
dataObject.Error?.Message ??
|
|
71
|
+
dataObject.message ??
|
|
72
|
+
dataObject.Message ??
|
|
73
|
+
"UnknownError";
|
|
74
|
+
const ErrorCtor = this.compositeErrorRegistry.getErrorCtor(errorSchema) ?? Error;
|
|
69
75
|
const exception = new ErrorCtor(message);
|
|
70
76
|
await this.deserializeHttpMessage(errorSchema, context, response, dataObject);
|
|
71
77
|
const output = {};
|
|
@@ -14,6 +14,7 @@ type ErrorMetadataBearer = MetadataBearer & {
|
|
|
14
14
|
*/
|
|
15
15
|
export declare class ProtocolLib {
|
|
16
16
|
private queryCompat;
|
|
17
|
+
private errorRegistry?;
|
|
17
18
|
constructor(queryCompat?: boolean);
|
|
18
19
|
/**
|
|
19
20
|
* This is only for REST protocols.
|
|
@@ -34,6 +35,18 @@ export declare class ProtocolLib {
|
|
|
34
35
|
errorSchema: StaticErrorSchema;
|
|
35
36
|
errorMetadata: ErrorMetadataBearer;
|
|
36
37
|
}>;
|
|
38
|
+
/**
|
|
39
|
+
* This method exists because in older clients, no `errorTypeRegistries` array is provided to the Protocol
|
|
40
|
+
* implementation. This means that the TypeRegistry queried by the error's namespace or the service's defaultNamespace
|
|
41
|
+
* must be composed into the possibly-empty local compositeErrorRegistry.
|
|
42
|
+
*
|
|
43
|
+
*
|
|
44
|
+
* @param composite - TypeRegistry instance local to instances of HttpProtocol. In newer clients, this instance directly
|
|
45
|
+
* receives the error registries exported by the client.
|
|
46
|
+
* @param errorIdentifier - parsed from the response, used to look up the error schema within the registry.
|
|
47
|
+
* @param defaultNamespace - property of the Protocol implementation pointing to a specific service.
|
|
48
|
+
*/
|
|
49
|
+
compose(composite: TypeRegistry, errorIdentifier: string, defaultNamespace: string): void;
|
|
37
50
|
/**
|
|
38
51
|
* Assigns additions onto exception if not already present.
|
|
39
52
|
*/
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SmithyRpcV2CborProtocol } from "@smithy/core/cbor";
|
|
2
|
+
import type { TypeRegistry } from "@smithy/core/schema";
|
|
2
3
|
import type { EndpointBearer, HandlerExecutionContext, HttpRequest, HttpResponse, OperationSchema, ResponseMetadata, SerdeFunctions } from "@smithy/types";
|
|
3
4
|
/**
|
|
4
5
|
* Extends the Smithy implementation to add AwsQueryCompatibility support.
|
|
@@ -8,8 +9,9 @@ import type { EndpointBearer, HandlerExecutionContext, HttpRequest, HttpResponse
|
|
|
8
9
|
export declare class AwsSmithyRpcV2CborProtocol extends SmithyRpcV2CborProtocol {
|
|
9
10
|
private readonly awsQueryCompatible;
|
|
10
11
|
private readonly mixin;
|
|
11
|
-
constructor({ defaultNamespace, awsQueryCompatible, }: {
|
|
12
|
+
constructor({ defaultNamespace, errorTypeRegistries, awsQueryCompatible, }: {
|
|
12
13
|
defaultNamespace: string;
|
|
14
|
+
errorTypeRegistries?: TypeRegistry[];
|
|
13
15
|
awsQueryCompatible?: boolean;
|
|
14
16
|
});
|
|
15
17
|
/**
|
package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_0Protocol.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { TypeRegistry } from "@smithy/core/schema";
|
|
1
2
|
import { AwsJsonRpcProtocol } from "./AwsJsonRpcProtocol";
|
|
2
3
|
import type { JsonCodec } from "./JsonCodec";
|
|
3
4
|
/**
|
|
@@ -5,8 +6,9 @@ import type { JsonCodec } from "./JsonCodec";
|
|
|
5
6
|
* @see https://smithy.io/2.0/aws/protocols/aws-json-1_1-protocol.html#differences-between-awsjson1-0-and-awsjson1-1
|
|
6
7
|
*/
|
|
7
8
|
export declare class AwsJson1_0Protocol extends AwsJsonRpcProtocol {
|
|
8
|
-
constructor({ defaultNamespace, serviceTarget, awsQueryCompatible, jsonCodec, }: {
|
|
9
|
+
constructor({ defaultNamespace, errorTypeRegistries, serviceTarget, awsQueryCompatible, jsonCodec, }: {
|
|
9
10
|
defaultNamespace: string;
|
|
11
|
+
errorTypeRegistries?: TypeRegistry[];
|
|
10
12
|
serviceTarget: string;
|
|
11
13
|
awsQueryCompatible?: boolean;
|
|
12
14
|
jsonCodec?: JsonCodec;
|
package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_1Protocol.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { TypeRegistry } from "@smithy/core/schema";
|
|
1
2
|
import { AwsJsonRpcProtocol } from "./AwsJsonRpcProtocol";
|
|
2
3
|
import type { JsonCodec } from "./JsonCodec";
|
|
3
4
|
/**
|
|
@@ -5,8 +6,9 @@ import type { JsonCodec } from "./JsonCodec";
|
|
|
5
6
|
* @see https://smithy.io/2.0/aws/protocols/aws-json-1_1-protocol.html#differences-between-awsjson1-0-and-awsjson1-1
|
|
6
7
|
*/
|
|
7
8
|
export declare class AwsJson1_1Protocol extends AwsJsonRpcProtocol {
|
|
8
|
-
constructor({ defaultNamespace, serviceTarget, awsQueryCompatible, jsonCodec, }: {
|
|
9
|
+
constructor({ defaultNamespace, errorTypeRegistries, serviceTarget, awsQueryCompatible, jsonCodec, }: {
|
|
9
10
|
defaultNamespace: string;
|
|
11
|
+
errorTypeRegistries?: TypeRegistry[];
|
|
10
12
|
serviceTarget: string;
|
|
11
13
|
awsQueryCompatible?: boolean;
|
|
12
14
|
jsonCodec?: JsonCodec;
|
package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJsonRpcProtocol.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { RpcProtocol } from "@smithy/core/protocols";
|
|
2
|
+
import type { TypeRegistry } from "@smithy/core/schema";
|
|
2
3
|
import type { EndpointBearer, HandlerExecutionContext, HttpRequest, HttpResponse, OperationSchema, ResponseMetadata, SerdeFunctions, ShapeDeserializer, ShapeSerializer } from "@smithy/types";
|
|
3
4
|
import { JsonCodec } from "./JsonCodec";
|
|
4
5
|
/**
|
|
@@ -11,8 +12,9 @@ export declare abstract class AwsJsonRpcProtocol extends RpcProtocol {
|
|
|
11
12
|
private readonly codec;
|
|
12
13
|
private readonly mixin;
|
|
13
14
|
private readonly awsQueryCompatible;
|
|
14
|
-
protected constructor({ defaultNamespace, serviceTarget, awsQueryCompatible, jsonCodec, }: {
|
|
15
|
+
protected constructor({ defaultNamespace, errorTypeRegistries, serviceTarget, awsQueryCompatible, jsonCodec, }: {
|
|
15
16
|
defaultNamespace: string;
|
|
17
|
+
errorTypeRegistries?: TypeRegistry[];
|
|
16
18
|
serviceTarget: string;
|
|
17
19
|
awsQueryCompatible?: boolean;
|
|
18
20
|
jsonCodec?: JsonCodec;
|
package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsRestJsonProtocol.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { HttpBindingProtocol } from "@smithy/core/protocols";
|
|
2
|
+
import type { TypeRegistry } from "@smithy/core/schema";
|
|
2
3
|
import type { EndpointBearer, HandlerExecutionContext, HttpRequest, HttpResponse, MetadataBearer, OperationSchema, ResponseMetadata, SerdeFunctions, ShapeDeserializer, ShapeSerializer } from "@smithy/types";
|
|
3
4
|
import { JsonCodec } from "./JsonCodec";
|
|
4
5
|
/**
|
|
@@ -9,8 +10,9 @@ export declare class AwsRestJsonProtocol extends HttpBindingProtocol {
|
|
|
9
10
|
protected deserializer: ShapeDeserializer<string | Uint8Array>;
|
|
10
11
|
private readonly codec;
|
|
11
12
|
private readonly mixin;
|
|
12
|
-
constructor({ defaultNamespace }: {
|
|
13
|
+
constructor({ defaultNamespace, errorTypeRegistries, }: {
|
|
13
14
|
defaultNamespace: string;
|
|
15
|
+
errorTypeRegistries?: TypeRegistry[];
|
|
14
16
|
});
|
|
15
17
|
getShapeId(): string;
|
|
16
18
|
getPayloadCodec(): JsonCodec;
|
package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/AwsEc2QueryProtocol.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { TypeRegistry } from "@smithy/core/schema";
|
|
1
2
|
import { AwsQueryProtocol } from "./AwsQueryProtocol";
|
|
2
3
|
/**
|
|
3
4
|
* @public
|
|
@@ -7,11 +8,13 @@ export declare class AwsEc2QueryProtocol extends AwsQueryProtocol {
|
|
|
7
8
|
defaultNamespace: string;
|
|
8
9
|
xmlNamespace: string;
|
|
9
10
|
version: string;
|
|
11
|
+
errorTypeRegistries?: TypeRegistry[];
|
|
10
12
|
};
|
|
11
13
|
constructor(options: {
|
|
12
14
|
defaultNamespace: string;
|
|
13
15
|
xmlNamespace: string;
|
|
14
16
|
version: string;
|
|
17
|
+
errorTypeRegistries?: TypeRegistry[];
|
|
15
18
|
});
|
|
16
19
|
/**
|
|
17
20
|
* @override
|
package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/AwsQueryProtocol.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { RpcProtocol } from "@smithy/core/protocols";
|
|
2
|
+
import type { TypeRegistry } from "@smithy/core/schema";
|
|
2
3
|
import type { Codec, EndpointBearer, HandlerExecutionContext, HttpRequest, HttpResponse as IHttpResponse, MetadataBearer, OperationSchema, ResponseMetadata, SerdeFunctions } from "@smithy/types";
|
|
3
4
|
import { XmlShapeDeserializer } from "../xml/XmlShapeDeserializer";
|
|
4
5
|
import { QueryShapeSerializer } from "./QueryShapeSerializer";
|
|
@@ -10,6 +11,7 @@ export declare class AwsQueryProtocol extends RpcProtocol {
|
|
|
10
11
|
defaultNamespace: string;
|
|
11
12
|
xmlNamespace: string;
|
|
12
13
|
version: string;
|
|
14
|
+
errorTypeRegistries?: TypeRegistry[];
|
|
13
15
|
};
|
|
14
16
|
protected serializer: QueryShapeSerializer;
|
|
15
17
|
protected deserializer: XmlShapeDeserializer;
|
|
@@ -18,6 +20,7 @@ export declare class AwsQueryProtocol extends RpcProtocol {
|
|
|
18
20
|
defaultNamespace: string;
|
|
19
21
|
xmlNamespace: string;
|
|
20
22
|
version: string;
|
|
23
|
+
errorTypeRegistries?: TypeRegistry[];
|
|
21
24
|
});
|
|
22
25
|
getShapeId(): string;
|
|
23
26
|
setSerdeContext(serdeContext: SerdeFunctions): void;
|
package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/AwsRestXmlProtocol.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { HttpBindingProtocol } from "@smithy/core/protocols";
|
|
2
|
+
import type { TypeRegistry } from "@smithy/core/schema";
|
|
2
3
|
import type { EndpointBearer, HandlerExecutionContext, HttpRequest as IHttpRequest, HttpResponse as IHttpResponse, MetadataBearer, OperationSchema, ResponseMetadata, SerdeFunctions, ShapeDeserializer, ShapeSerializer } from "@smithy/types";
|
|
3
4
|
import { XmlCodec } from "./XmlCodec";
|
|
4
5
|
/**
|
|
@@ -12,6 +13,7 @@ export declare class AwsRestXmlProtocol extends HttpBindingProtocol {
|
|
|
12
13
|
constructor(options: {
|
|
13
14
|
defaultNamespace: string;
|
|
14
15
|
xmlNamespace: string;
|
|
16
|
+
errorTypeRegistries?: TypeRegistry[];
|
|
15
17
|
});
|
|
16
18
|
getPayloadCodec(): XmlCodec;
|
|
17
19
|
getShapeId(): string;
|
|
@@ -11,6 +11,7 @@ type ErrorMetadataBearer = MetadataBearer & {
|
|
|
11
11
|
};
|
|
12
12
|
export declare class ProtocolLib {
|
|
13
13
|
private queryCompat;
|
|
14
|
+
private errorRegistry?;
|
|
14
15
|
constructor(queryCompat?: boolean);
|
|
15
16
|
resolveRestContentType(
|
|
16
17
|
defaultContentType: string,
|
|
@@ -30,6 +31,11 @@ export declare class ProtocolLib {
|
|
|
30
31
|
errorSchema: StaticErrorSchema;
|
|
31
32
|
errorMetadata: ErrorMetadataBearer;
|
|
32
33
|
}>;
|
|
34
|
+
compose(
|
|
35
|
+
composite: TypeRegistry,
|
|
36
|
+
errorIdentifier: string,
|
|
37
|
+
defaultNamespace: string
|
|
38
|
+
): void;
|
|
33
39
|
decorateServiceException<E extends SDKBaseServiceException>(
|
|
34
40
|
exception: E,
|
|
35
41
|
additions?: Record<string, any>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SmithyRpcV2CborProtocol } from "@smithy/core/cbor";
|
|
2
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
2
3
|
import {
|
|
3
4
|
EndpointBearer,
|
|
4
5
|
HandlerExecutionContext,
|
|
@@ -13,9 +14,11 @@ export declare class AwsSmithyRpcV2CborProtocol extends SmithyRpcV2CborProtocol
|
|
|
13
14
|
private readonly mixin;
|
|
14
15
|
constructor({
|
|
15
16
|
defaultNamespace,
|
|
17
|
+
errorTypeRegistries,
|
|
16
18
|
awsQueryCompatible,
|
|
17
19
|
}: {
|
|
18
20
|
defaultNamespace: string;
|
|
21
|
+
errorTypeRegistries?: TypeRegistry[];
|
|
19
22
|
awsQueryCompatible?: boolean;
|
|
20
23
|
});
|
|
21
24
|
serializeRequest<Input extends object>(
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
1
2
|
import { AwsJsonRpcProtocol } from "./AwsJsonRpcProtocol";
|
|
2
3
|
import { JsonCodec } from "./JsonCodec";
|
|
3
4
|
export declare class AwsJson1_0Protocol extends AwsJsonRpcProtocol {
|
|
4
5
|
constructor({
|
|
5
6
|
defaultNamespace,
|
|
7
|
+
errorTypeRegistries,
|
|
6
8
|
serviceTarget,
|
|
7
9
|
awsQueryCompatible,
|
|
8
10
|
jsonCodec,
|
|
9
11
|
}: {
|
|
10
12
|
defaultNamespace: string;
|
|
13
|
+
errorTypeRegistries?: TypeRegistry[];
|
|
11
14
|
serviceTarget: string;
|
|
12
15
|
awsQueryCompatible?: boolean;
|
|
13
16
|
jsonCodec?: JsonCodec;
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
1
2
|
import { AwsJsonRpcProtocol } from "./AwsJsonRpcProtocol";
|
|
2
3
|
import { JsonCodec } from "./JsonCodec";
|
|
3
4
|
export declare class AwsJson1_1Protocol extends AwsJsonRpcProtocol {
|
|
4
5
|
constructor({
|
|
5
6
|
defaultNamespace,
|
|
7
|
+
errorTypeRegistries,
|
|
6
8
|
serviceTarget,
|
|
7
9
|
awsQueryCompatible,
|
|
8
10
|
jsonCodec,
|
|
9
11
|
}: {
|
|
10
12
|
defaultNamespace: string;
|
|
13
|
+
errorTypeRegistries?: TypeRegistry[];
|
|
11
14
|
serviceTarget: string;
|
|
12
15
|
awsQueryCompatible?: boolean;
|
|
13
16
|
jsonCodec?: JsonCodec;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { RpcProtocol } from "@smithy/core/protocols";
|
|
2
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
2
3
|
import {
|
|
3
4
|
EndpointBearer,
|
|
4
5
|
HandlerExecutionContext,
|
|
@@ -20,11 +21,13 @@ export declare abstract class AwsJsonRpcProtocol extends RpcProtocol {
|
|
|
20
21
|
private readonly awsQueryCompatible;
|
|
21
22
|
protected constructor({
|
|
22
23
|
defaultNamespace,
|
|
24
|
+
errorTypeRegistries,
|
|
23
25
|
serviceTarget,
|
|
24
26
|
awsQueryCompatible,
|
|
25
27
|
jsonCodec,
|
|
26
28
|
}: {
|
|
27
29
|
defaultNamespace: string;
|
|
30
|
+
errorTypeRegistries?: TypeRegistry[];
|
|
28
31
|
serviceTarget: string;
|
|
29
32
|
awsQueryCompatible?: boolean;
|
|
30
33
|
jsonCodec?: JsonCodec;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { HttpBindingProtocol } from "@smithy/core/protocols";
|
|
2
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
2
3
|
import {
|
|
3
4
|
EndpointBearer,
|
|
4
5
|
HandlerExecutionContext,
|
|
@@ -17,7 +18,13 @@ export declare class AwsRestJsonProtocol extends HttpBindingProtocol {
|
|
|
17
18
|
protected deserializer: ShapeDeserializer<string | Uint8Array>;
|
|
18
19
|
private readonly codec;
|
|
19
20
|
private readonly mixin;
|
|
20
|
-
constructor({
|
|
21
|
+
constructor({
|
|
22
|
+
defaultNamespace,
|
|
23
|
+
errorTypeRegistries,
|
|
24
|
+
}: {
|
|
25
|
+
defaultNamespace: string;
|
|
26
|
+
errorTypeRegistries?: TypeRegistry[];
|
|
27
|
+
});
|
|
21
28
|
getShapeId(): string;
|
|
22
29
|
getPayloadCodec(): JsonCodec;
|
|
23
30
|
setSerdeContext(serdeContext: SerdeFunctions): void;
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
1
2
|
import { AwsQueryProtocol } from "./AwsQueryProtocol";
|
|
2
3
|
export declare class AwsEc2QueryProtocol extends AwsQueryProtocol {
|
|
3
4
|
options: {
|
|
4
5
|
defaultNamespace: string;
|
|
5
6
|
xmlNamespace: string;
|
|
6
7
|
version: string;
|
|
8
|
+
errorTypeRegistries?: TypeRegistry[];
|
|
7
9
|
};
|
|
8
10
|
constructor(options: {
|
|
9
11
|
defaultNamespace: string;
|
|
10
12
|
xmlNamespace: string;
|
|
11
13
|
version: string;
|
|
14
|
+
errorTypeRegistries?: TypeRegistry[];
|
|
12
15
|
});
|
|
13
16
|
getShapeId(): string;
|
|
14
17
|
protected useNestedResult(): boolean;
|
package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/AwsQueryProtocol.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { RpcProtocol } from "@smithy/core/protocols";
|
|
2
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
2
3
|
import {
|
|
3
4
|
Codec,
|
|
4
5
|
EndpointBearer,
|
|
@@ -17,6 +18,7 @@ export declare class AwsQueryProtocol extends RpcProtocol {
|
|
|
17
18
|
defaultNamespace: string;
|
|
18
19
|
xmlNamespace: string;
|
|
19
20
|
version: string;
|
|
21
|
+
errorTypeRegistries?: TypeRegistry[];
|
|
20
22
|
};
|
|
21
23
|
protected serializer: QueryShapeSerializer;
|
|
22
24
|
protected deserializer: XmlShapeDeserializer;
|
|
@@ -25,6 +27,7 @@ export declare class AwsQueryProtocol extends RpcProtocol {
|
|
|
25
27
|
defaultNamespace: string;
|
|
26
28
|
xmlNamespace: string;
|
|
27
29
|
version: string;
|
|
30
|
+
errorTypeRegistries?: TypeRegistry[];
|
|
28
31
|
});
|
|
29
32
|
getShapeId(): string;
|
|
30
33
|
setSerdeContext(serdeContext: SerdeFunctions): void;
|
package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/AwsRestXmlProtocol.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { HttpBindingProtocol } from "@smithy/core/protocols";
|
|
2
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
2
3
|
import {
|
|
3
4
|
EndpointBearer,
|
|
4
5
|
HandlerExecutionContext,
|
|
@@ -17,7 +18,11 @@ export declare class AwsRestXmlProtocol extends HttpBindingProtocol {
|
|
|
17
18
|
protected serializer: ShapeSerializer<string | Uint8Array>;
|
|
18
19
|
protected deserializer: ShapeDeserializer<string | Uint8Array>;
|
|
19
20
|
private readonly mixin;
|
|
20
|
-
constructor(options: {
|
|
21
|
+
constructor(options: {
|
|
22
|
+
defaultNamespace: string;
|
|
23
|
+
xmlNamespace: string;
|
|
24
|
+
errorTypeRegistries?: TypeRegistry[];
|
|
25
|
+
});
|
|
21
26
|
getPayloadCodec(): XmlCodec;
|
|
22
27
|
getShapeId(): string;
|
|
23
28
|
serializeRequest<Input extends object>(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-env",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.22",
|
|
4
4
|
"description": "AWS credential provider that sources credentials from known environment variables",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
"license": "Apache-2.0",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@aws-sdk/core": "^3.973.
|
|
29
|
+
"@aws-sdk/core": "^3.973.24",
|
|
30
30
|
"@aws-sdk/types": "^3.973.6",
|
|
31
31
|
"@smithy/property-provider": "^4.2.12",
|
|
32
32
|
"@smithy/types": "^4.13.1",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-http",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.24",
|
|
4
4
|
"description": "AWS credential provider for containers and HTTP sources",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"license": "Apache-2.0",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@aws-sdk/core": "^3.973.
|
|
31
|
+
"@aws-sdk/core": "^3.973.24",
|
|
32
32
|
"@aws-sdk/types": "^3.973.6",
|
|
33
33
|
"@smithy/fetch-http-handler": "^5.3.15",
|
|
34
34
|
"@smithy/node-http-handler": "^4.5.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-ini",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.24",
|
|
4
4
|
"description": "AWS credential provider that sources credentials from ~/.aws/credentials and ~/.aws/config",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -28,14 +28,14 @@
|
|
|
28
28
|
},
|
|
29
29
|
"license": "Apache-2.0",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@aws-sdk/core": "^3.973.
|
|
32
|
-
"@aws-sdk/credential-provider-env": "^3.972.
|
|
33
|
-
"@aws-sdk/credential-provider-http": "^3.972.
|
|
34
|
-
"@aws-sdk/credential-provider-login": "^3.972.
|
|
35
|
-
"@aws-sdk/credential-provider-process": "^3.972.
|
|
36
|
-
"@aws-sdk/credential-provider-sso": "^3.972.
|
|
37
|
-
"@aws-sdk/credential-provider-web-identity": "^3.972.
|
|
38
|
-
"@aws-sdk/nested-clients": "^3.996.
|
|
31
|
+
"@aws-sdk/core": "^3.973.24",
|
|
32
|
+
"@aws-sdk/credential-provider-env": "^3.972.22",
|
|
33
|
+
"@aws-sdk/credential-provider-http": "^3.972.24",
|
|
34
|
+
"@aws-sdk/credential-provider-login": "^3.972.24",
|
|
35
|
+
"@aws-sdk/credential-provider-process": "^3.972.22",
|
|
36
|
+
"@aws-sdk/credential-provider-sso": "^3.972.24",
|
|
37
|
+
"@aws-sdk/credential-provider-web-identity": "^3.972.24",
|
|
38
|
+
"@aws-sdk/nested-clients": "^3.996.14",
|
|
39
39
|
"@aws-sdk/types": "^3.973.6",
|
|
40
40
|
"@smithy/credential-provider-imds": "^4.2.12",
|
|
41
41
|
"@smithy/property-provider": "^4.2.12",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-login",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.24",
|
|
4
4
|
"description": "AWS credential provider that sources credentials from aws login cached tokens",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
},
|
|
29
29
|
"license": "Apache-2.0",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@aws-sdk/core": "^3.973.
|
|
32
|
-
"@aws-sdk/nested-clients": "^3.996.
|
|
31
|
+
"@aws-sdk/core": "^3.973.24",
|
|
32
|
+
"@aws-sdk/nested-clients": "^3.996.14",
|
|
33
33
|
"@aws-sdk/types": "^3.973.6",
|
|
34
34
|
"@smithy/property-provider": "^4.2.12",
|
|
35
35
|
"@smithy/protocol-http": "^5.3.12",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-node",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.25",
|
|
4
4
|
"description": "AWS credential provider that sources credentials from a Node.JS environment. ",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=20.0.0"
|
|
@@ -31,12 +31,12 @@
|
|
|
31
31
|
},
|
|
32
32
|
"license": "Apache-2.0",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@aws-sdk/credential-provider-env": "^3.972.
|
|
35
|
-
"@aws-sdk/credential-provider-http": "^3.972.
|
|
36
|
-
"@aws-sdk/credential-provider-ini": "^3.972.
|
|
37
|
-
"@aws-sdk/credential-provider-process": "^3.972.
|
|
38
|
-
"@aws-sdk/credential-provider-sso": "^3.972.
|
|
39
|
-
"@aws-sdk/credential-provider-web-identity": "^3.972.
|
|
34
|
+
"@aws-sdk/credential-provider-env": "^3.972.22",
|
|
35
|
+
"@aws-sdk/credential-provider-http": "^3.972.24",
|
|
36
|
+
"@aws-sdk/credential-provider-ini": "^3.972.24",
|
|
37
|
+
"@aws-sdk/credential-provider-process": "^3.972.22",
|
|
38
|
+
"@aws-sdk/credential-provider-sso": "^3.972.24",
|
|
39
|
+
"@aws-sdk/credential-provider-web-identity": "^3.972.24",
|
|
40
40
|
"@aws-sdk/types": "^3.973.6",
|
|
41
41
|
"@smithy/credential-provider-imds": "^4.2.12",
|
|
42
42
|
"@smithy/property-provider": "^4.2.12",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/credential-provider-process",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.22",
|
|
4
4
|
"description": "AWS credential provider that sources credential_process from ~/.aws/credentials and ~/.aws/config",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
"license": "Apache-2.0",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@aws-sdk/core": "^3.973.
|
|
29
|
+
"@aws-sdk/core": "^3.973.24",
|
|
30
30
|
"@aws-sdk/types": "^3.973.6",
|
|
31
31
|
"@smithy/property-provider": "^4.2.12",
|
|
32
32
|
"@smithy/shared-ini-file-loader": "^4.4.7",
|