@cdklabs/cdk-ecs-codedeploy 0.0.427 → 0.0.429
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/.jsii.tabl.json +1 -1
- package/lib/api-canary/index.js +1 -1
- package/lib/ecs-appspec/index.js +1 -1
- package/lib/ecs-deployment/index.js +1 -1
- package/lib/ecs-patterns/application-load-balanced-codedeployed-fargate-service.js +1 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/index.js +66 -3902
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/models/CodeDeployServiceException.js +12 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/models/errors.js +1436 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/schemas/schemas_0.js +2155 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/schemas/schemas_0.js +778 -772
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/schemas/schemas_0.d.ts +102 -95
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/schemas/schemas_0.d.ts +97 -95
- package/node_modules/@aws-sdk/client-codedeploy/node_modules/@aws-sdk/util-endpoints/LICENSE +201 -0
- package/node_modules/@aws-sdk/client-codedeploy/node_modules/@aws-sdk/util-endpoints/README.md +6 -0
- package/node_modules/@aws-sdk/client-codedeploy/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +415 -0
- package/node_modules/@aws-sdk/client-codedeploy/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json +267 -0
- package/node_modules/@aws-sdk/client-codedeploy/node_modules/@aws-sdk/util-endpoints/dist-es/aws.js +10 -0
- package/node_modules/@aws-sdk/client-codedeploy/node_modules/@aws-sdk/util-endpoints/dist-es/index.js +6 -0
- package/node_modules/@aws-sdk/client-codedeploy/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/index.js +3 -0
- package/node_modules/@aws-sdk/client-codedeploy/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/isVirtualHostableS3Bucket.js +25 -0
- package/node_modules/@aws-sdk/client-codedeploy/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/parseArn.js +18 -0
- package/node_modules/@aws-sdk/client-codedeploy/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partition.js +41 -0
- package/node_modules/@aws-sdk/client-codedeploy/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json +267 -0
- package/node_modules/@aws-sdk/client-codedeploy/node_modules/@aws-sdk/util-endpoints/dist-es/lib/isIpAddress.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/node_modules/@aws-sdk/util-endpoints/dist-es/resolveDefaultAwsRegionalEndpointsConfig.js +21 -0
- package/node_modules/@aws-sdk/client-codedeploy/node_modules/@aws-sdk/util-endpoints/dist-es/resolveEndpoint.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/node_modules/@aws-sdk/util-endpoints/dist-es/types/EndpointError.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/node_modules/@aws-sdk/util-endpoints/dist-es/types/EndpointRuleObject.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/node_modules/@aws-sdk/util-endpoints/dist-es/types/ErrorRuleObject.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/node_modules/@aws-sdk/util-endpoints/dist-es/types/RuleSetObject.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/node_modules/@aws-sdk/util-endpoints/dist-es/types/TreeRuleObject.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/node_modules/@aws-sdk/util-endpoints/dist-es/types/index.js +6 -0
- package/node_modules/@aws-sdk/client-codedeploy/node_modules/@aws-sdk/util-endpoints/dist-es/types/shared.js +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/node_modules/@aws-sdk/util-endpoints/dist-types/aws.d.ts +2 -0
- package/node_modules/@aws-sdk/client-codedeploy/node_modules/@aws-sdk/util-endpoints/dist-types/index.d.ts +6 -0
- package/node_modules/@aws-sdk/client-codedeploy/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/index.d.ts +3 -0
- package/node_modules/@aws-sdk/client-codedeploy/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/isVirtualHostableS3Bucket.d.ts +5 -0
- package/node_modules/@aws-sdk/client-codedeploy/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/parseArn.d.ts +7 -0
- package/node_modules/@aws-sdk/client-codedeploy/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/partition.d.ts +38 -0
- package/node_modules/@aws-sdk/client-codedeploy/node_modules/@aws-sdk/util-endpoints/dist-types/lib/isIpAddress.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/node_modules/@aws-sdk/util-endpoints/dist-types/resolveDefaultAwsRegionalEndpointsConfig.d.ts +56 -0
- package/node_modules/@aws-sdk/client-codedeploy/node_modules/@aws-sdk/util-endpoints/dist-types/resolveEndpoint.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/aws.d.ts +2 -0
- package/node_modules/@aws-sdk/client-codedeploy/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/index.d.ts +6 -0
- package/node_modules/@aws-sdk/client-codedeploy/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/index.d.ts +3 -0
- package/node_modules/@aws-sdk/client-codedeploy/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/isVirtualHostableS3Bucket.d.ts +4 -0
- package/node_modules/@aws-sdk/client-codedeploy/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/parseArn.d.ts +2 -0
- package/node_modules/@aws-sdk/client-codedeploy/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/partition.d.ts +28 -0
- package/node_modules/@aws-sdk/client-codedeploy/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/isIpAddress.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/resolveDefaultAwsRegionalEndpointsConfig.d.ts +35 -0
- package/node_modules/@aws-sdk/client-codedeploy/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/resolveEndpoint.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/EndpointError.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/EndpointRuleObject.d.ts +6 -0
- package/node_modules/@aws-sdk/client-codedeploy/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/ErrorRuleObject.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/RuleSetObject.d.ts +5 -0
- package/node_modules/@aws-sdk/client-codedeploy/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/TreeRuleObject.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/index.d.ts +6 -0
- package/node_modules/@aws-sdk/client-codedeploy/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/shared.d.ts +12 -0
- package/node_modules/@aws-sdk/client-codedeploy/node_modules/@aws-sdk/util-endpoints/dist-types/types/EndpointError.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/node_modules/@aws-sdk/util-endpoints/dist-types/types/EndpointRuleObject.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/node_modules/@aws-sdk/util-endpoints/dist-types/types/ErrorRuleObject.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/node_modules/@aws-sdk/util-endpoints/dist-types/types/RuleSetObject.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/node_modules/@aws-sdk/util-endpoints/dist-types/types/TreeRuleObject.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/node_modules/@aws-sdk/util-endpoints/dist-types/types/index.d.ts +6 -0
- package/node_modules/@aws-sdk/client-codedeploy/node_modules/@aws-sdk/util-endpoints/dist-types/types/shared.d.ts +1 -0
- package/node_modules/@aws-sdk/client-codedeploy/node_modules/@aws-sdk/util-endpoints/package.json +60 -0
- package/node_modules/@aws-sdk/client-codedeploy/package.json +13 -13
- package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +23 -234
- package/node_modules/@aws-sdk/client-sso/dist-cjs/models/SSOServiceException.js +12 -0
- package/node_modules/@aws-sdk/client-sso/dist-cjs/models/errors.js +56 -0
- package/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/client-sso/dist-cjs/schemas/schemas_0.js +161 -0
- package/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/client-sso/dist-es/schemas/schemas_0.js +32 -26
- package/node_modules/@aws-sdk/client-sso/dist-types/schemas/schemas_0.d.ts +12 -5
- package/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/schemas/schemas_0.d.ts +7 -5
- package/node_modules/@aws-sdk/client-sso/package.json +12 -12
- package/node_modules/@aws-sdk/core/dist-cjs/index.js +15 -6
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +15 -6
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsEc2QueryProtocol.js +1 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/QueryShapeSerializer.js +14 -6
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/QuerySerializerSettings.d.ts +4 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/QueryShapeSerializer.d.ts +1 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/QuerySerializerSettings.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/QueryShapeSerializer.d.ts +6 -1
- package/node_modules/@aws-sdk/core/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-http/package.json +5 -5
- 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 +4 -4
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +20 -198
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/models/SigninServiceException.js +12 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/models/errors.js +64 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/schemas/schemas_0.js +125 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +20 -347
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/models/SSOOIDCServiceException.js +12 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/models/errors.js +195 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/schemas/schemas_0.js +140 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +21 -308
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/models/STSServiceException.js +12 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/models/errors.js +95 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/schemas/schemas_0.js +195 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/schemas/schemas_0.js +15 -12
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/schemas/schemas_0.js +40 -37
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.shared.js +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/schemas/schemas_0.js +60 -57
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/schemas/schemas_0.d.ts +11 -4
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/schemas/schemas_0.d.ts +10 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/schemas/schemas_0.d.ts +15 -8
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/schemas/schemas_0.d.ts +6 -4
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/schemas/schemas_0.d.ts +5 -3
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/schemas/schemas_0.d.ts +10 -8
- package/node_modules/@aws-sdk/nested-clients/package.json +12 -12
- package/node_modules/@aws-sdk/token-providers/package.json +3 -3
- package/node_modules/@aws-sdk/util-endpoints/package.json +1 -1
- package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +12 -1
- package/node_modules/@aws-sdk/util-user-agent-node/dist-es/defaultUserAgent.js +4 -2
- package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getRuntimeUserAgentPair.js +10 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/defaultUserAgent.d.ts +1 -1
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/getRuntimeUserAgentPair.d.ts +6 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/getRuntimeUserAgentPair.d.ts +2 -0
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
- package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +13 -10
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +3 -0
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +8 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +24 -5
- package/node_modules/@smithy/core/dist-es/submodules/cbor/SmithyRpcV2CborProtocol.js +15 -11
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +3 -1
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +6 -1
- package/node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js +24 -5
- package/node_modules/@smithy/core/dist-types/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +7 -1
- package/node_modules/@smithy/core/dist-types/submodules/protocols/HttpBindingProtocol.d.ts +5 -1
- package/node_modules/@smithy/core/dist-types/submodules/protocols/HttpProtocol.d.ts +14 -1
- package/node_modules/@smithy/core/dist-types/submodules/protocols/RpcProtocol.d.ts +5 -0
- package/node_modules/@smithy/core/dist-types/submodules/schema/TypeRegistry.d.ts +8 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/cbor/SmithyRpcV2CborProtocol.d.ts +7 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/HttpBindingProtocol.d.ts +5 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/HttpProtocol.d.ts +14 -1
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/protocols/RpcProtocol.d.ts +5 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/TypeRegistry.d.ts +8 -1
- package/node_modules/@smithy/core/package.json +2 -2
- package/node_modules/@smithy/middleware-endpoint/package.json +2 -2
- package/node_modules/@smithy/middleware-retry/package.json +2 -2
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +9 -2
- package/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +9 -2
- package/node_modules/@smithy/node-http-handler/package.json +1 -1
- package/node_modules/@smithy/smithy-client/package.json +4 -4
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +2 -2
- package/node_modules/@smithy/util-defaults-mode-node/package.json +2 -2
- package/node_modules/@smithy/util-stream/package.json +2 -2
- package/node_modules/fast-xml-parser/CHANGELOG.md +13 -0
- package/node_modules/fast-xml-parser/lib/fxp.cjs +1 -1
- package/node_modules/fast-xml-parser/lib/fxp.d.cts +83 -14
- package/node_modules/fast-xml-parser/lib/fxp.min.js +1 -1
- package/node_modules/fast-xml-parser/lib/fxp.min.js.map +1 -1
- package/node_modules/fast-xml-parser/lib/fxparser.min.js +1 -1
- package/node_modules/fast-xml-parser/lib/fxparser.min.js.map +1 -1
- package/node_modules/fast-xml-parser/package.json +4 -4
- package/node_modules/fast-xml-parser/src/fxp.d.ts +74 -12
- package/node_modules/fast-xml-parser/src/v6/EntitiesParser.js +7 -5
- package/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js +65 -53
- package/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js +84 -44
- package/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +255 -187
- package/package.json +4 -4
package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/schemas/schemas_0.d.ts
CHANGED
|
@@ -1,20 +1,27 @@
|
|
|
1
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
1
2
|
import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
|
|
2
|
-
export declare var
|
|
3
|
-
export declare var AssumeRoleRequest$: StaticStructureSchema;
|
|
4
|
-
export declare var AssumeRoleResponse$: StaticStructureSchema;
|
|
5
|
-
export declare var AssumeRoleWithWebIdentityRequest$: StaticStructureSchema;
|
|
6
|
-
export declare var AssumeRoleWithWebIdentityResponse$: StaticStructureSchema;
|
|
7
|
-
export declare var Credentials$: StaticStructureSchema;
|
|
3
|
+
export declare var STSServiceException$: StaticErrorSchema;
|
|
8
4
|
export declare var ExpiredTokenException$: StaticErrorSchema;
|
|
9
5
|
export declare var IDPCommunicationErrorException$: StaticErrorSchema;
|
|
10
6
|
export declare var IDPRejectedClaimException$: StaticErrorSchema;
|
|
11
7
|
export declare var InvalidIdentityTokenException$: StaticErrorSchema;
|
|
12
8
|
export declare var MalformedPolicyDocumentException$: StaticErrorSchema;
|
|
13
9
|
export declare var PackedPolicyTooLargeException$: StaticErrorSchema;
|
|
10
|
+
export declare var RegionDisabledException$: StaticErrorSchema;
|
|
11
|
+
/**
|
|
12
|
+
* TypeRegistry instances containing modeled errors.
|
|
13
|
+
* @internal
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
export declare const errorTypeRegistries: TypeRegistry[];
|
|
17
|
+
export declare var AssumedRoleUser$: StaticStructureSchema;
|
|
18
|
+
export declare var AssumeRoleRequest$: StaticStructureSchema;
|
|
19
|
+
export declare var AssumeRoleResponse$: StaticStructureSchema;
|
|
20
|
+
export declare var AssumeRoleWithWebIdentityRequest$: StaticStructureSchema;
|
|
21
|
+
export declare var AssumeRoleWithWebIdentityResponse$: StaticStructureSchema;
|
|
22
|
+
export declare var Credentials$: StaticStructureSchema;
|
|
14
23
|
export declare var PolicyDescriptorType$: StaticStructureSchema;
|
|
15
24
|
export declare var ProvidedContext$: StaticStructureSchema;
|
|
16
|
-
export declare var RegionDisabledException$: StaticErrorSchema;
|
|
17
25
|
export declare var Tag$: StaticStructureSchema;
|
|
18
|
-
export declare var STSServiceException$: StaticErrorSchema;
|
|
19
26
|
export declare var AssumeRole$: StaticOperationSchema;
|
|
20
27
|
export declare var AssumeRoleWithWebIdentity$: StaticOperationSchema;
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
1
2
|
import {
|
|
2
3
|
StaticErrorSchema,
|
|
3
4
|
StaticOperationSchema,
|
|
4
5
|
StaticStructureSchema,
|
|
5
6
|
} from "@smithy/types";
|
|
7
|
+
export declare var SigninServiceException$: StaticErrorSchema;
|
|
6
8
|
export declare var AccessDeniedException$: StaticErrorSchema;
|
|
9
|
+
export declare var InternalServerException$: StaticErrorSchema;
|
|
10
|
+
export declare var TooManyRequestsError$: StaticErrorSchema;
|
|
11
|
+
export declare var ValidationException$: StaticErrorSchema;
|
|
12
|
+
export declare const errorTypeRegistries: TypeRegistry[];
|
|
7
13
|
export declare var AccessToken$: StaticStructureSchema;
|
|
8
14
|
export declare var CreateOAuth2TokenRequest$: StaticStructureSchema;
|
|
9
15
|
export declare var CreateOAuth2TokenRequestBody$: StaticStructureSchema;
|
|
10
16
|
export declare var CreateOAuth2TokenResponse$: StaticStructureSchema;
|
|
11
17
|
export declare var CreateOAuth2TokenResponseBody$: StaticStructureSchema;
|
|
12
|
-
export declare var InternalServerException$: StaticErrorSchema;
|
|
13
|
-
export declare var TooManyRequestsError$: StaticErrorSchema;
|
|
14
|
-
export declare var ValidationException$: StaticErrorSchema;
|
|
15
|
-
export declare var SigninServiceException$: StaticErrorSchema;
|
|
16
18
|
export declare var CreateOAuth2Token$: StaticOperationSchema;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
1
2
|
import {
|
|
2
3
|
StaticErrorSchema,
|
|
3
4
|
StaticOperationSchema,
|
|
4
5
|
StaticStructureSchema,
|
|
5
6
|
} from "@smithy/types";
|
|
7
|
+
export declare var SSOOIDCServiceException$: StaticErrorSchema;
|
|
6
8
|
export declare var AccessDeniedException$: StaticErrorSchema;
|
|
7
9
|
export declare var AuthorizationPendingException$: StaticErrorSchema;
|
|
8
|
-
export declare var CreateTokenRequest$: StaticStructureSchema;
|
|
9
|
-
export declare var CreateTokenResponse$: StaticStructureSchema;
|
|
10
10
|
export declare var ExpiredTokenException$: StaticErrorSchema;
|
|
11
11
|
export declare var InternalServerException$: StaticErrorSchema;
|
|
12
12
|
export declare var InvalidClientException$: StaticErrorSchema;
|
|
@@ -16,5 +16,7 @@ export declare var InvalidScopeException$: StaticErrorSchema;
|
|
|
16
16
|
export declare var SlowDownException$: StaticErrorSchema;
|
|
17
17
|
export declare var UnauthorizedClientException$: StaticErrorSchema;
|
|
18
18
|
export declare var UnsupportedGrantTypeException$: StaticErrorSchema;
|
|
19
|
-
export declare
|
|
19
|
+
export declare const errorTypeRegistries: TypeRegistry[];
|
|
20
|
+
export declare var CreateTokenRequest$: StaticStructureSchema;
|
|
21
|
+
export declare var CreateTokenResponse$: StaticStructureSchema;
|
|
20
22
|
export declare var CreateToken$: StaticOperationSchema;
|
package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/schemas/schemas_0.d.ts
CHANGED
|
@@ -1,24 +1,26 @@
|
|
|
1
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
1
2
|
import {
|
|
2
3
|
StaticErrorSchema,
|
|
3
4
|
StaticOperationSchema,
|
|
4
5
|
StaticStructureSchema,
|
|
5
6
|
} from "@smithy/types";
|
|
6
|
-
export declare var
|
|
7
|
-
export declare var AssumeRoleRequest$: StaticStructureSchema;
|
|
8
|
-
export declare var AssumeRoleResponse$: StaticStructureSchema;
|
|
9
|
-
export declare var AssumeRoleWithWebIdentityRequest$: StaticStructureSchema;
|
|
10
|
-
export declare var AssumeRoleWithWebIdentityResponse$: StaticStructureSchema;
|
|
11
|
-
export declare var Credentials$: StaticStructureSchema;
|
|
7
|
+
export declare var STSServiceException$: StaticErrorSchema;
|
|
12
8
|
export declare var ExpiredTokenException$: StaticErrorSchema;
|
|
13
9
|
export declare var IDPCommunicationErrorException$: StaticErrorSchema;
|
|
14
10
|
export declare var IDPRejectedClaimException$: StaticErrorSchema;
|
|
15
11
|
export declare var InvalidIdentityTokenException$: StaticErrorSchema;
|
|
16
12
|
export declare var MalformedPolicyDocumentException$: StaticErrorSchema;
|
|
17
13
|
export declare var PackedPolicyTooLargeException$: StaticErrorSchema;
|
|
14
|
+
export declare var RegionDisabledException$: StaticErrorSchema;
|
|
15
|
+
export declare const errorTypeRegistries: TypeRegistry[];
|
|
16
|
+
export declare var AssumedRoleUser$: StaticStructureSchema;
|
|
17
|
+
export declare var AssumeRoleRequest$: StaticStructureSchema;
|
|
18
|
+
export declare var AssumeRoleResponse$: StaticStructureSchema;
|
|
19
|
+
export declare var AssumeRoleWithWebIdentityRequest$: StaticStructureSchema;
|
|
20
|
+
export declare var AssumeRoleWithWebIdentityResponse$: StaticStructureSchema;
|
|
21
|
+
export declare var Credentials$: StaticStructureSchema;
|
|
18
22
|
export declare var PolicyDescriptorType$: StaticStructureSchema;
|
|
19
23
|
export declare var ProvidedContext$: StaticStructureSchema;
|
|
20
|
-
export declare var RegionDisabledException$: StaticErrorSchema;
|
|
21
24
|
export declare var Tag$: StaticStructureSchema;
|
|
22
|
-
export declare var STSServiceException$: StaticErrorSchema;
|
|
23
25
|
export declare var AssumeRole$: StaticOperationSchema;
|
|
24
26
|
export declare var AssumeRoleWithWebIdentity$: StaticOperationSchema;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/nested-clients",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.993.0",
|
|
4
4
|
"description": "Nested clients for AWS SDK packages.",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -29,37 +29,37 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
31
31
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
32
|
-
"@aws-sdk/core": "^3.973.
|
|
32
|
+
"@aws-sdk/core": "^3.973.11",
|
|
33
33
|
"@aws-sdk/middleware-host-header": "^3.972.3",
|
|
34
34
|
"@aws-sdk/middleware-logger": "^3.972.3",
|
|
35
35
|
"@aws-sdk/middleware-recursion-detection": "^3.972.3",
|
|
36
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
36
|
+
"@aws-sdk/middleware-user-agent": "^3.972.11",
|
|
37
37
|
"@aws-sdk/region-config-resolver": "^3.972.3",
|
|
38
38
|
"@aws-sdk/types": "^3.973.1",
|
|
39
|
-
"@aws-sdk/util-endpoints": "3.
|
|
39
|
+
"@aws-sdk/util-endpoints": "3.993.0",
|
|
40
40
|
"@aws-sdk/util-user-agent-browser": "^3.972.3",
|
|
41
|
-
"@aws-sdk/util-user-agent-node": "^3.972.
|
|
41
|
+
"@aws-sdk/util-user-agent-node": "^3.972.9",
|
|
42
42
|
"@smithy/config-resolver": "^4.4.6",
|
|
43
|
-
"@smithy/core": "^3.
|
|
43
|
+
"@smithy/core": "^3.23.2",
|
|
44
44
|
"@smithy/fetch-http-handler": "^5.3.9",
|
|
45
45
|
"@smithy/hash-node": "^4.2.8",
|
|
46
46
|
"@smithy/invalid-dependency": "^4.2.8",
|
|
47
47
|
"@smithy/middleware-content-length": "^4.2.8",
|
|
48
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
49
|
-
"@smithy/middleware-retry": "^4.4.
|
|
48
|
+
"@smithy/middleware-endpoint": "^4.4.16",
|
|
49
|
+
"@smithy/middleware-retry": "^4.4.33",
|
|
50
50
|
"@smithy/middleware-serde": "^4.2.9",
|
|
51
51
|
"@smithy/middleware-stack": "^4.2.8",
|
|
52
52
|
"@smithy/node-config-provider": "^4.3.8",
|
|
53
|
-
"@smithy/node-http-handler": "^4.4.
|
|
53
|
+
"@smithy/node-http-handler": "^4.4.10",
|
|
54
54
|
"@smithy/protocol-http": "^5.3.8",
|
|
55
|
-
"@smithy/smithy-client": "^4.11.
|
|
55
|
+
"@smithy/smithy-client": "^4.11.5",
|
|
56
56
|
"@smithy/types": "^4.12.0",
|
|
57
57
|
"@smithy/url-parser": "^4.2.8",
|
|
58
58
|
"@smithy/util-base64": "^4.3.0",
|
|
59
59
|
"@smithy/util-body-length-browser": "^4.2.0",
|
|
60
60
|
"@smithy/util-body-length-node": "^4.2.1",
|
|
61
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
62
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
61
|
+
"@smithy/util-defaults-mode-browser": "^4.3.32",
|
|
62
|
+
"@smithy/util-defaults-mode-node": "^4.2.35",
|
|
63
63
|
"@smithy/util-endpoints": "^3.2.8",
|
|
64
64
|
"@smithy/util-middleware": "^4.2.8",
|
|
65
65
|
"@smithy/util-retry": "^4.2.8",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/token-providers",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.993.0",
|
|
4
4
|
"description": "A collection of token providers",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
},
|
|
30
30
|
"license": "Apache-2.0",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@aws-sdk/core": "^3.973.
|
|
33
|
-
"@aws-sdk/nested-clients": "3.
|
|
32
|
+
"@aws-sdk/core": "^3.973.11",
|
|
33
|
+
"@aws-sdk/nested-clients": "3.993.0",
|
|
34
34
|
"@aws-sdk/types": "^3.973.1",
|
|
35
35
|
"@smithy/property-provider": "^4.2.8",
|
|
36
36
|
"@smithy/shared-ini-file-loader": "^4.4.3",
|
|
@@ -4,6 +4,16 @@ var os = require('os');
|
|
|
4
4
|
var process = require('process');
|
|
5
5
|
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
6
6
|
|
|
7
|
+
const getRuntimeUserAgentPair = () => {
|
|
8
|
+
const runtimesToCheck = ["deno", "bun", "llrt"];
|
|
9
|
+
for (const runtime of runtimesToCheck) {
|
|
10
|
+
if (process.versions[runtime]) {
|
|
11
|
+
return [`md/${runtime}`, process.versions[runtime]];
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
return ["md/nodejs", process.versions.node];
|
|
15
|
+
};
|
|
16
|
+
|
|
7
17
|
const crtAvailability = {
|
|
8
18
|
isCrtAvailable: false,
|
|
9
19
|
};
|
|
@@ -16,13 +26,14 @@ const isCrtAvailable = () => {
|
|
|
16
26
|
};
|
|
17
27
|
|
|
18
28
|
const createDefaultUserAgentProvider = ({ serviceId, clientVersion }) => {
|
|
29
|
+
const runtimeUserAgentPair = getRuntimeUserAgentPair();
|
|
19
30
|
return async (config) => {
|
|
20
31
|
const sections = [
|
|
21
32
|
["aws-sdk-js", clientVersion],
|
|
22
33
|
["ua", "2.1"],
|
|
23
34
|
[`os/${os.platform()}`, os.release()],
|
|
24
35
|
["lang/js"],
|
|
25
|
-
|
|
36
|
+
runtimeUserAgentPair,
|
|
26
37
|
];
|
|
27
38
|
const crtAvailable = isCrtAvailable();
|
|
28
39
|
if (crtAvailable) {
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { platform, release } from "os";
|
|
2
|
-
import { env
|
|
2
|
+
import { env } from "process";
|
|
3
|
+
import { getRuntimeUserAgentPair } from "./getRuntimeUserAgentPair";
|
|
3
4
|
import { isCrtAvailable } from "./is-crt-available";
|
|
4
5
|
export { crtAvailability } from "./crt-availability";
|
|
5
6
|
export const createDefaultUserAgentProvider = ({ serviceId, clientVersion }) => {
|
|
7
|
+
const runtimeUserAgentPair = getRuntimeUserAgentPair();
|
|
6
8
|
return async (config) => {
|
|
7
9
|
const sections = [
|
|
8
10
|
["aws-sdk-js", clientVersion],
|
|
9
11
|
["ua", "2.1"],
|
|
10
12
|
[`os/${platform()}`, release()],
|
|
11
13
|
["lang/js"],
|
|
12
|
-
|
|
14
|
+
runtimeUserAgentPair,
|
|
13
15
|
];
|
|
14
16
|
const crtAvailable = isCrtAvailable();
|
|
15
17
|
if (crtAvailable) {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { versions } from "process";
|
|
2
|
+
export const getRuntimeUserAgentPair = () => {
|
|
3
|
+
const runtimesToCheck = ["deno", "bun", "llrt"];
|
|
4
|
+
for (const runtime of runtimesToCheck) {
|
|
5
|
+
if (versions[runtime]) {
|
|
6
|
+
return [`md/${runtime}`, versions[runtime]];
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
return ["md/nodejs", versions.node];
|
|
10
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/util-user-agent-node",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.10",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline util-user-agent-node",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
25
|
+
"@aws-sdk/middleware-user-agent": "^3.972.11",
|
|
26
26
|
"@aws-sdk/types": "^3.973.1",
|
|
27
27
|
"@smithy/node-config-provider": "^4.3.8",
|
|
28
28
|
"@smithy/types": "^4.12.0",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/xml-builder",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.5",
|
|
4
4
|
"description": "XML utilities for the AWS SDK",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@smithy/types": "^4.12.0",
|
|
7
|
-
"fast-xml-parser": "5.3.
|
|
7
|
+
"fast-xml-parser": "5.3.6",
|
|
8
8
|
"tslib": "^2.6.2"
|
|
9
9
|
},
|
|
10
10
|
"scripts": {
|
|
@@ -990,8 +990,8 @@ class SmithyRpcV2CborProtocol extends protocols.RpcProtocol {
|
|
|
990
990
|
codec = new CborCodec();
|
|
991
991
|
serializer = this.codec.createSerializer();
|
|
992
992
|
deserializer = this.codec.createDeserializer();
|
|
993
|
-
constructor({ defaultNamespace }) {
|
|
994
|
-
super({ defaultNamespace });
|
|
993
|
+
constructor({ defaultNamespace, errorTypeRegistries, }) {
|
|
994
|
+
super({ defaultNamespace, errorTypeRegistries });
|
|
995
995
|
}
|
|
996
996
|
getShapeId() {
|
|
997
997
|
return "smithy.protocols#rpcv2Cbor";
|
|
@@ -1035,15 +1035,17 @@ class SmithyRpcV2CborProtocol extends protocols.RpcProtocol {
|
|
|
1035
1035
|
}
|
|
1036
1036
|
async handleError(operationSchema, context, response, dataObject, metadata) {
|
|
1037
1037
|
const errorName = loadSmithyRpcV2CborErrorCode(response, dataObject) ?? "Unknown";
|
|
1038
|
-
let namespace = this.options.defaultNamespace;
|
|
1039
|
-
if (errorName.includes("#")) {
|
|
1040
|
-
[namespace] = errorName.split("#");
|
|
1041
|
-
}
|
|
1042
1038
|
const errorMetadata = {
|
|
1043
1039
|
$metadata: metadata,
|
|
1044
1040
|
$fault: response.statusCode <= 500 ? "client" : "server",
|
|
1045
1041
|
};
|
|
1046
|
-
|
|
1042
|
+
let namespace = this.options.defaultNamespace;
|
|
1043
|
+
if (errorName.includes("#")) {
|
|
1044
|
+
[namespace] = errorName.split("#");
|
|
1045
|
+
}
|
|
1046
|
+
const registry = this.compositeErrorRegistry;
|
|
1047
|
+
const nsRegistry = schema.TypeRegistry.for(namespace);
|
|
1048
|
+
registry.copyFrom(nsRegistry);
|
|
1047
1049
|
let errorSchema;
|
|
1048
1050
|
try {
|
|
1049
1051
|
errorSchema = registry.getSchema(errorName);
|
|
@@ -1052,10 +1054,11 @@ class SmithyRpcV2CborProtocol extends protocols.RpcProtocol {
|
|
|
1052
1054
|
if (dataObject.Message) {
|
|
1053
1055
|
dataObject.message = dataObject.Message;
|
|
1054
1056
|
}
|
|
1055
|
-
const
|
|
1056
|
-
|
|
1057
|
+
const syntheticRegistry = schema.TypeRegistry.for("smithy.ts.sdk.synthetic." + namespace);
|
|
1058
|
+
registry.copyFrom(syntheticRegistry);
|
|
1059
|
+
const baseExceptionSchema = registry.getBaseException();
|
|
1057
1060
|
if (baseExceptionSchema) {
|
|
1058
|
-
const ErrorCtor =
|
|
1061
|
+
const ErrorCtor = registry.getErrorCtor(baseExceptionSchema);
|
|
1059
1062
|
throw Object.assign(new ErrorCtor({ name: errorName }), errorMetadata, dataObject);
|
|
1060
1063
|
}
|
|
1061
1064
|
throw Object.assign(new Error(errorName), errorMetadata, dataObject);
|
|
@@ -236,6 +236,9 @@ class EventStreamSerde {
|
|
|
236
236
|
serializer.write(eventSchema, event[unionMember]);
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
|
+
else if (eventSchema.isUnitSchema()) {
|
|
240
|
+
serializer.write(eventSchema, {});
|
|
241
|
+
}
|
|
239
242
|
else {
|
|
240
243
|
throw new Error("@smithy/core/event-streams - non-struct member not supported in event stream union.");
|
|
241
244
|
}
|
|
@@ -33,9 +33,14 @@ class SerdeContext {
|
|
|
33
33
|
|
|
34
34
|
class HttpProtocol extends SerdeContext {
|
|
35
35
|
options;
|
|
36
|
+
compositeErrorRegistry;
|
|
36
37
|
constructor(options) {
|
|
37
38
|
super();
|
|
38
39
|
this.options = options;
|
|
40
|
+
this.compositeErrorRegistry = schema.TypeRegistry.for(options.defaultNamespace);
|
|
41
|
+
for (const etr of options.errorTypeRegistries ?? []) {
|
|
42
|
+
this.compositeErrorRegistry.copyFrom(etr);
|
|
43
|
+
}
|
|
39
44
|
}
|
|
40
45
|
getRequestType() {
|
|
41
46
|
return protocolHttp.HttpRequest;
|
|
@@ -320,7 +325,9 @@ class HttpBindingProtocol extends HttpProtocol {
|
|
|
320
325
|
if (bytes.byteLength > 0) {
|
|
321
326
|
const dataFromBody = await deserializer.read(ns, bytes);
|
|
322
327
|
for (const member of nonHttpBindingMembers) {
|
|
323
|
-
|
|
328
|
+
if (dataFromBody[member] != null) {
|
|
329
|
+
dataObject[member] = dataFromBody[member];
|
|
330
|
+
}
|
|
324
331
|
}
|
|
325
332
|
}
|
|
326
333
|
}
|
|
@@ -566,10 +566,24 @@ class TypeRegistry {
|
|
|
566
566
|
}
|
|
567
567
|
return TypeRegistry.registries.get(namespace);
|
|
568
568
|
}
|
|
569
|
+
copyFrom(other) {
|
|
570
|
+
const { schemas, exceptions } = this;
|
|
571
|
+
for (const [k, v] of other.schemas) {
|
|
572
|
+
if (!schemas.has(k)) {
|
|
573
|
+
schemas.set(k, v);
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
for (const [k, v] of other.exceptions) {
|
|
577
|
+
if (!exceptions.has(k)) {
|
|
578
|
+
exceptions.set(k, v);
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
}
|
|
569
582
|
register(shapeId, schema) {
|
|
570
583
|
const qualifiedName = this.normalizeShapeId(shapeId);
|
|
571
|
-
const
|
|
572
|
-
|
|
584
|
+
for (const r of [this, TypeRegistry.for(qualifiedName.split("#")[0])]) {
|
|
585
|
+
r.schemas.set(qualifiedName, schema);
|
|
586
|
+
}
|
|
573
587
|
}
|
|
574
588
|
getSchema(shapeId) {
|
|
575
589
|
const id = this.normalizeShapeId(shapeId);
|
|
@@ -580,12 +594,17 @@ class TypeRegistry {
|
|
|
580
594
|
}
|
|
581
595
|
registerError(es, ctor) {
|
|
582
596
|
const $error = es;
|
|
583
|
-
const
|
|
584
|
-
|
|
585
|
-
|
|
597
|
+
const ns = $error[1];
|
|
598
|
+
for (const r of [this, TypeRegistry.for(ns)]) {
|
|
599
|
+
r.schemas.set(ns + "#" + $error[2], $error);
|
|
600
|
+
r.exceptions.set($error, ctor);
|
|
601
|
+
}
|
|
586
602
|
}
|
|
587
603
|
getErrorCtor(es) {
|
|
588
604
|
const $error = es;
|
|
605
|
+
if (this.exceptions.has($error)) {
|
|
606
|
+
return this.exceptions.get($error);
|
|
607
|
+
}
|
|
589
608
|
const registry = TypeRegistry.for($error[1]);
|
|
590
609
|
return registry.exceptions.get($error);
|
|
591
610
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { RpcProtocol } from "@smithy/core/protocols";
|
|
2
|
-
import {
|
|
2
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
3
|
+
import { deref, NormalizedSchema } from "@smithy/core/schema";
|
|
3
4
|
import { getSmithyContext } from "@smithy/util-middleware";
|
|
4
5
|
import { CborCodec } from "./CborCodec";
|
|
5
6
|
import { loadSmithyRpcV2CborErrorCode } from "./parseCborBody";
|
|
@@ -7,8 +8,8 @@ export class SmithyRpcV2CborProtocol extends RpcProtocol {
|
|
|
7
8
|
codec = new CborCodec();
|
|
8
9
|
serializer = this.codec.createSerializer();
|
|
9
10
|
deserializer = this.codec.createDeserializer();
|
|
10
|
-
constructor({ defaultNamespace }) {
|
|
11
|
-
super({ defaultNamespace });
|
|
11
|
+
constructor({ defaultNamespace, errorTypeRegistries, }) {
|
|
12
|
+
super({ defaultNamespace, errorTypeRegistries });
|
|
12
13
|
}
|
|
13
14
|
getShapeId() {
|
|
14
15
|
return "smithy.protocols#rpcv2Cbor";
|
|
@@ -52,15 +53,17 @@ export class SmithyRpcV2CborProtocol extends RpcProtocol {
|
|
|
52
53
|
}
|
|
53
54
|
async handleError(operationSchema, context, response, dataObject, metadata) {
|
|
54
55
|
const errorName = loadSmithyRpcV2CborErrorCode(response, dataObject) ?? "Unknown";
|
|
55
|
-
let namespace = this.options.defaultNamespace;
|
|
56
|
-
if (errorName.includes("#")) {
|
|
57
|
-
[namespace] = errorName.split("#");
|
|
58
|
-
}
|
|
59
56
|
const errorMetadata = {
|
|
60
57
|
$metadata: metadata,
|
|
61
58
|
$fault: response.statusCode <= 500 ? "client" : "server",
|
|
62
59
|
};
|
|
63
|
-
|
|
60
|
+
let namespace = this.options.defaultNamespace;
|
|
61
|
+
if (errorName.includes("#")) {
|
|
62
|
+
[namespace] = errorName.split("#");
|
|
63
|
+
}
|
|
64
|
+
const registry = this.compositeErrorRegistry;
|
|
65
|
+
const nsRegistry = TypeRegistry.for(namespace);
|
|
66
|
+
registry.copyFrom(nsRegistry);
|
|
64
67
|
let errorSchema;
|
|
65
68
|
try {
|
|
66
69
|
errorSchema = registry.getSchema(errorName);
|
|
@@ -69,10 +72,11 @@ export class SmithyRpcV2CborProtocol extends RpcProtocol {
|
|
|
69
72
|
if (dataObject.Message) {
|
|
70
73
|
dataObject.message = dataObject.Message;
|
|
71
74
|
}
|
|
72
|
-
const
|
|
73
|
-
|
|
75
|
+
const syntheticRegistry = TypeRegistry.for("smithy.ts.sdk.synthetic." + namespace);
|
|
76
|
+
registry.copyFrom(syntheticRegistry);
|
|
77
|
+
const baseExceptionSchema = registry.getBaseException();
|
|
74
78
|
if (baseExceptionSchema) {
|
|
75
|
-
const ErrorCtor =
|
|
79
|
+
const ErrorCtor = registry.getErrorCtor(baseExceptionSchema);
|
|
76
80
|
throw Object.assign(new ErrorCtor({ name: errorName }), errorMetadata, dataObject);
|
|
77
81
|
}
|
|
78
82
|
throw Object.assign(new Error(errorName), errorMetadata, dataObject);
|
|
@@ -233,6 +233,9 @@ export class EventStreamSerde {
|
|
|
233
233
|
serializer.write(eventSchema, event[unionMember]);
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
|
+
else if (eventSchema.isUnitSchema()) {
|
|
237
|
+
serializer.write(eventSchema, {});
|
|
238
|
+
}
|
|
236
239
|
else {
|
|
237
240
|
throw new Error("@smithy/core/event-streams - non-struct member not supported in event stream union.");
|
|
238
241
|
}
|
|
@@ -176,7 +176,9 @@ export class HttpBindingProtocol extends HttpProtocol {
|
|
|
176
176
|
if (bytes.byteLength > 0) {
|
|
177
177
|
const dataFromBody = await deserializer.read(ns, bytes);
|
|
178
178
|
for (const member of nonHttpBindingMembers) {
|
|
179
|
-
|
|
179
|
+
if (dataFromBody[member] != null) {
|
|
180
|
+
dataObject[member] = dataFromBody[member];
|
|
181
|
+
}
|
|
180
182
|
}
|
|
181
183
|
}
|
|
182
184
|
}
|
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
import { NormalizedSchema, translateTraits } from "@smithy/core/schema";
|
|
1
|
+
import { NormalizedSchema, translateTraits, TypeRegistry } from "@smithy/core/schema";
|
|
2
2
|
import { HttpRequest, HttpResponse } from "@smithy/protocol-http";
|
|
3
3
|
import { SerdeContext } from "./SerdeContext";
|
|
4
4
|
export class HttpProtocol extends SerdeContext {
|
|
5
5
|
options;
|
|
6
|
+
compositeErrorRegistry;
|
|
6
7
|
constructor(options) {
|
|
7
8
|
super();
|
|
8
9
|
this.options = options;
|
|
10
|
+
this.compositeErrorRegistry = TypeRegistry.for(options.defaultNamespace);
|
|
11
|
+
for (const etr of options.errorTypeRegistries ?? []) {
|
|
12
|
+
this.compositeErrorRegistry.copyFrom(etr);
|
|
13
|
+
}
|
|
9
14
|
}
|
|
10
15
|
getRequestType() {
|
|
11
16
|
return HttpRequest;
|
|
@@ -14,10 +14,24 @@ export class TypeRegistry {
|
|
|
14
14
|
}
|
|
15
15
|
return TypeRegistry.registries.get(namespace);
|
|
16
16
|
}
|
|
17
|
+
copyFrom(other) {
|
|
18
|
+
const { schemas, exceptions } = this;
|
|
19
|
+
for (const [k, v] of other.schemas) {
|
|
20
|
+
if (!schemas.has(k)) {
|
|
21
|
+
schemas.set(k, v);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
for (const [k, v] of other.exceptions) {
|
|
25
|
+
if (!exceptions.has(k)) {
|
|
26
|
+
exceptions.set(k, v);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
17
30
|
register(shapeId, schema) {
|
|
18
31
|
const qualifiedName = this.normalizeShapeId(shapeId);
|
|
19
|
-
const
|
|
20
|
-
|
|
32
|
+
for (const r of [this, TypeRegistry.for(qualifiedName.split("#")[0])]) {
|
|
33
|
+
r.schemas.set(qualifiedName, schema);
|
|
34
|
+
}
|
|
21
35
|
}
|
|
22
36
|
getSchema(shapeId) {
|
|
23
37
|
const id = this.normalizeShapeId(shapeId);
|
|
@@ -28,12 +42,17 @@ export class TypeRegistry {
|
|
|
28
42
|
}
|
|
29
43
|
registerError(es, ctor) {
|
|
30
44
|
const $error = es;
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
|
|
45
|
+
const ns = $error[1];
|
|
46
|
+
for (const r of [this, TypeRegistry.for(ns)]) {
|
|
47
|
+
r.schemas.set(ns + "#" + $error[2], $error);
|
|
48
|
+
r.exceptions.set($error, ctor);
|
|
49
|
+
}
|
|
34
50
|
}
|
|
35
51
|
getErrorCtor(es) {
|
|
36
52
|
const $error = es;
|
|
53
|
+
if (this.exceptions.has($error)) {
|
|
54
|
+
return this.exceptions.get($error);
|
|
55
|
+
}
|
|
37
56
|
const registry = TypeRegistry.for($error[1]);
|
|
38
57
|
return registry.exceptions.get($error);
|
|
39
58
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { RpcProtocol } from "@smithy/core/protocols";
|
|
2
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
2
3
|
import type { EndpointBearer, HandlerExecutionContext, HttpRequest as IHttpRequest, HttpResponse as IHttpResponse, MetadataBearer, OperationSchema, ResponseMetadata, SerdeFunctions } from "@smithy/types";
|
|
3
4
|
import { CborCodec } from "./CborCodec";
|
|
4
5
|
/**
|
|
@@ -7,11 +8,16 @@ import { CborCodec } from "./CborCodec";
|
|
|
7
8
|
* @public
|
|
8
9
|
*/
|
|
9
10
|
export declare class SmithyRpcV2CborProtocol extends RpcProtocol {
|
|
11
|
+
/**
|
|
12
|
+
* @override
|
|
13
|
+
*/
|
|
14
|
+
protected compositeErrorRegistry: TypeRegistry;
|
|
10
15
|
private codec;
|
|
11
16
|
protected serializer: import("./CborCodec").CborShapeSerializer;
|
|
12
17
|
protected deserializer: import("./CborCodec").CborShapeDeserializer;
|
|
13
|
-
constructor({ defaultNamespace }: {
|
|
18
|
+
constructor({ defaultNamespace, errorTypeRegistries, }: {
|
|
14
19
|
defaultNamespace: string;
|
|
20
|
+
errorTypeRegistries?: TypeRegistry[];
|
|
15
21
|
});
|
|
16
22
|
getShapeId(): string;
|
|
17
23
|
getPayloadCodec(): CborCodec;
|