@cdklabs/cdk-ecs-codedeploy 0.0.258 → 0.0.260
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 +40 -80
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/protocols/Aws_json1_1.js +1 -40
- package/node_modules/@aws-sdk/client-codedeploy/package.json +4 -4
- package/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +6 -46
- package/node_modules/@aws-sdk/client-sso/dist-es/protocols/Aws_restJson1.js +1 -40
- package/node_modules/@aws-sdk/client-sso/package.json +2 -2
- package/node_modules/@aws-sdk/client-sso-oidc/dist-cjs/index.js +7 -47
- package/node_modules/@aws-sdk/client-sso-oidc/dist-es/protocols/Aws_restJson1.js +1 -40
- package/node_modules/@aws-sdk/client-sso-oidc/package.json +4 -4
- package/node_modules/@aws-sdk/client-sts/dist-cjs/index.js +10 -43
- package/node_modules/@aws-sdk/client-sts/dist-es/protocols/Aws_query.js +2 -34
- package/node_modules/@aws-sdk/client-sts/package.json +3 -4
- package/node_modules/@aws-sdk/core/CHANGELOG.md +19 -0
- package/node_modules/@aws-sdk/core/dist-cjs/index.js +126 -1
- package/node_modules/@aws-sdk/core/dist-cjs/protocols/common.js +1 -0
- package/node_modules/@aws-sdk/core/dist-cjs/protocols/json/parseJsonBody.js +1 -0
- package/node_modules/@aws-sdk/core/dist-cjs/protocols/xml/parseXmlBody.js +1 -0
- package/node_modules/@aws-sdk/core/dist-es/protocols/common.js +2 -0
- package/node_modules/@aws-sdk/core/dist-es/protocols/index.js +2 -0
- package/node_modules/@aws-sdk/core/dist-es/protocols/json/parseJsonBody.js +51 -0
- package/node_modules/@aws-sdk/core/dist-es/protocols/xml/parseXmlBody.js +57 -0
- package/node_modules/@aws-sdk/core/dist-types/protocols/common.d.ts +2 -0
- package/node_modules/@aws-sdk/core/dist-types/protocols/index.d.ts +2 -0
- package/node_modules/@aws-sdk/core/dist-types/protocols/json/parseJsonBody.d.ts +4 -0
- package/node_modules/@aws-sdk/core/dist-types/protocols/xml/parseXmlBody.d.ts +4 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/protocols/common.d.ts +5 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/protocols/index.d.ts +2 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/protocols/json/parseJsonBody.d.ts +13 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/protocols/xml/parseXmlBody.d.ts +13 -0
- package/node_modules/@aws-sdk/core/package.json +2 -1
- package/node_modules/@aws-sdk/core/src/protocols/common.ts +5 -0
- package/node_modules/@aws-sdk/core/src/protocols/index.ts +2 -0
- package/node_modules/@aws-sdk/core/src/protocols/json/parseJsonBody.ts +60 -0
- package/node_modules/@aws-sdk/core/src/protocols/xml/parseXmlBody.ts +64 -0
- package/node_modules/@aws-sdk/core/tsconfig.cjs.tsbuildinfo +1 -1
- package/node_modules/@aws-sdk/core/tsconfig.es.tsbuildinfo +1 -1
- package/node_modules/@aws-sdk/core/tsconfig.types.tsbuildinfo +1 -1
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-node/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +2 -2
- package/node_modules/@aws-sdk/token-providers/package.json +2 -2
- package/node_modules/@smithy/core/package.json +5 -5
- package/node_modules/@smithy/fetch-http-handler/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/middleware-serde/dist-types/deserializerMiddleware.d.ts +2 -4
- package/node_modules/@smithy/middleware-serde/dist-types/serdePlugin.d.ts +2 -3
- package/node_modules/@smithy/middleware-serde/dist-types/serializerMiddleware.d.ts +2 -4
- package/node_modules/@smithy/middleware-serde/dist-types/ts3.4/deserializerMiddleware.d.ts +2 -4
- package/node_modules/@smithy/middleware-serde/dist-types/ts3.4/serdePlugin.d.ts +2 -3
- package/node_modules/@smithy/middleware-serde/dist-types/ts3.4/serializerMiddleware.d.ts +2 -4
- package/node_modules/@smithy/middleware-serde/package.json +1 -1
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +14 -3
- package/node_modules/@smithy/node-http-handler/dist-es/server.mock.js +30 -0
- package/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +16 -4
- package/node_modules/@smithy/node-http-handler/dist-types/server.mock.d.ts +2 -0
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/server.mock.d.ts +2 -0
- package/node_modules/@smithy/node-http-handler/package.json +1 -1
- package/node_modules/@smithy/smithy-client/package.json +3 -3
- package/node_modules/@smithy/util-base64/dist-cjs/toBase64.browser.js +5 -1
- package/node_modules/@smithy/util-base64/dist-es/toBase64.browser.js +5 -1
- package/node_modules/@smithy/util-base64/package.json +1 -1
- package/node_modules/@smithy/util-body-length-node/dist-cjs/index.js +1 -1
- package/node_modules/@smithy/util-body-length-node/dist-es/calculateBodyLength.js +1 -1
- package/node_modules/@smithy/util-body-length-node/package.json +1 -1
- 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 +4 -4
- package/package.json +5 -5
|
@@ -380,6 +380,7 @@ var import_middleware_serde = require("@smithy/middleware-serde");
|
|
|
380
380
|
var import_types = require("@smithy/types");
|
|
381
381
|
|
|
382
382
|
// src/protocols/Aws_json1_1.ts
|
|
383
|
+
var import_core2 = require("@aws-sdk/core");
|
|
383
384
|
|
|
384
385
|
|
|
385
386
|
|
|
@@ -2787,7 +2788,7 @@ var de_BatchGetApplicationRevisionsCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
2787
2788
|
if (output.statusCode >= 300) {
|
|
2788
2789
|
return de_CommandError(output, context);
|
|
2789
2790
|
}
|
|
2790
|
-
const data = await
|
|
2791
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2791
2792
|
let contents = {};
|
|
2792
2793
|
contents = de_BatchGetApplicationRevisionsOutput(data, context);
|
|
2793
2794
|
const response = {
|
|
@@ -2800,7 +2801,7 @@ var de_BatchGetApplicationsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2800
2801
|
if (output.statusCode >= 300) {
|
|
2801
2802
|
return de_CommandError(output, context);
|
|
2802
2803
|
}
|
|
2803
|
-
const data = await
|
|
2804
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2804
2805
|
let contents = {};
|
|
2805
2806
|
contents = de_BatchGetApplicationsOutput(data, context);
|
|
2806
2807
|
const response = {
|
|
@@ -2813,7 +2814,7 @@ var de_BatchGetDeploymentGroupsCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2813
2814
|
if (output.statusCode >= 300) {
|
|
2814
2815
|
return de_CommandError(output, context);
|
|
2815
2816
|
}
|
|
2816
|
-
const data = await
|
|
2817
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2817
2818
|
let contents = {};
|
|
2818
2819
|
contents = de_BatchGetDeploymentGroupsOutput(data, context);
|
|
2819
2820
|
const response = {
|
|
@@ -2826,7 +2827,7 @@ var de_BatchGetDeploymentInstancesCommand = /* @__PURE__ */ __name(async (output
|
|
|
2826
2827
|
if (output.statusCode >= 300) {
|
|
2827
2828
|
return de_CommandError(output, context);
|
|
2828
2829
|
}
|
|
2829
|
-
const data = await
|
|
2830
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2830
2831
|
let contents = {};
|
|
2831
2832
|
contents = de_BatchGetDeploymentInstancesOutput(data, context);
|
|
2832
2833
|
const response = {
|
|
@@ -2839,7 +2840,7 @@ var de_BatchGetDeploymentsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2839
2840
|
if (output.statusCode >= 300) {
|
|
2840
2841
|
return de_CommandError(output, context);
|
|
2841
2842
|
}
|
|
2842
|
-
const data = await
|
|
2843
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2843
2844
|
let contents = {};
|
|
2844
2845
|
contents = de_BatchGetDeploymentsOutput(data, context);
|
|
2845
2846
|
const response = {
|
|
@@ -2852,7 +2853,7 @@ var de_BatchGetDeploymentTargetsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2852
2853
|
if (output.statusCode >= 300) {
|
|
2853
2854
|
return de_CommandError(output, context);
|
|
2854
2855
|
}
|
|
2855
|
-
const data = await
|
|
2856
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2856
2857
|
let contents = {};
|
|
2857
2858
|
contents = de_BatchGetDeploymentTargetsOutput(data, context);
|
|
2858
2859
|
const response = {
|
|
@@ -2865,7 +2866,7 @@ var de_BatchGetOnPremisesInstancesCommand = /* @__PURE__ */ __name(async (output
|
|
|
2865
2866
|
if (output.statusCode >= 300) {
|
|
2866
2867
|
return de_CommandError(output, context);
|
|
2867
2868
|
}
|
|
2868
|
-
const data = await
|
|
2869
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2869
2870
|
let contents = {};
|
|
2870
2871
|
contents = de_BatchGetOnPremisesInstancesOutput(data, context);
|
|
2871
2872
|
const response = {
|
|
@@ -2888,7 +2889,7 @@ var de_CreateApplicationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2888
2889
|
if (output.statusCode >= 300) {
|
|
2889
2890
|
return de_CommandError(output, context);
|
|
2890
2891
|
}
|
|
2891
|
-
const data = await
|
|
2892
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2892
2893
|
let contents = {};
|
|
2893
2894
|
contents = (0, import_smithy_client._json)(data);
|
|
2894
2895
|
const response = {
|
|
@@ -2901,7 +2902,7 @@ var de_CreateDeploymentCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2901
2902
|
if (output.statusCode >= 300) {
|
|
2902
2903
|
return de_CommandError(output, context);
|
|
2903
2904
|
}
|
|
2904
|
-
const data = await
|
|
2905
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2905
2906
|
let contents = {};
|
|
2906
2907
|
contents = (0, import_smithy_client._json)(data);
|
|
2907
2908
|
const response = {
|
|
@@ -2914,7 +2915,7 @@ var de_CreateDeploymentConfigCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2914
2915
|
if (output.statusCode >= 300) {
|
|
2915
2916
|
return de_CommandError(output, context);
|
|
2916
2917
|
}
|
|
2917
|
-
const data = await
|
|
2918
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2918
2919
|
let contents = {};
|
|
2919
2920
|
contents = (0, import_smithy_client._json)(data);
|
|
2920
2921
|
const response = {
|
|
@@ -2927,7 +2928,7 @@ var de_CreateDeploymentGroupCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2927
2928
|
if (output.statusCode >= 300) {
|
|
2928
2929
|
return de_CommandError(output, context);
|
|
2929
2930
|
}
|
|
2930
|
-
const data = await
|
|
2931
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2931
2932
|
let contents = {};
|
|
2932
2933
|
contents = (0, import_smithy_client._json)(data);
|
|
2933
2934
|
const response = {
|
|
@@ -2960,7 +2961,7 @@ var de_DeleteDeploymentGroupCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2960
2961
|
if (output.statusCode >= 300) {
|
|
2961
2962
|
return de_CommandError(output, context);
|
|
2962
2963
|
}
|
|
2963
|
-
const data = await
|
|
2964
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2964
2965
|
let contents = {};
|
|
2965
2966
|
contents = (0, import_smithy_client._json)(data);
|
|
2966
2967
|
const response = {
|
|
@@ -2973,7 +2974,7 @@ var de_DeleteGitHubAccountTokenCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2973
2974
|
if (output.statusCode >= 300) {
|
|
2974
2975
|
return de_CommandError(output, context);
|
|
2975
2976
|
}
|
|
2976
|
-
const data = await
|
|
2977
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2977
2978
|
let contents = {};
|
|
2978
2979
|
contents = (0, import_smithy_client._json)(data);
|
|
2979
2980
|
const response = {
|
|
@@ -2986,7 +2987,7 @@ var de_DeleteResourcesByExternalIdCommand = /* @__PURE__ */ __name(async (output
|
|
|
2986
2987
|
if (output.statusCode >= 300) {
|
|
2987
2988
|
return de_CommandError(output, context);
|
|
2988
2989
|
}
|
|
2989
|
-
const data = await
|
|
2990
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2990
2991
|
let contents = {};
|
|
2991
2992
|
contents = (0, import_smithy_client._json)(data);
|
|
2992
2993
|
const response = {
|
|
@@ -3009,7 +3010,7 @@ var de_GetApplicationCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3009
3010
|
if (output.statusCode >= 300) {
|
|
3010
3011
|
return de_CommandError(output, context);
|
|
3011
3012
|
}
|
|
3012
|
-
const data = await
|
|
3013
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
3013
3014
|
let contents = {};
|
|
3014
3015
|
contents = de_GetApplicationOutput(data, context);
|
|
3015
3016
|
const response = {
|
|
@@ -3022,7 +3023,7 @@ var de_GetApplicationRevisionCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
3022
3023
|
if (output.statusCode >= 300) {
|
|
3023
3024
|
return de_CommandError(output, context);
|
|
3024
3025
|
}
|
|
3025
|
-
const data = await
|
|
3026
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
3026
3027
|
let contents = {};
|
|
3027
3028
|
contents = de_GetApplicationRevisionOutput(data, context);
|
|
3028
3029
|
const response = {
|
|
@@ -3035,7 +3036,7 @@ var de_GetDeploymentCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3035
3036
|
if (output.statusCode >= 300) {
|
|
3036
3037
|
return de_CommandError(output, context);
|
|
3037
3038
|
}
|
|
3038
|
-
const data = await
|
|
3039
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
3039
3040
|
let contents = {};
|
|
3040
3041
|
contents = de_GetDeploymentOutput(data, context);
|
|
3041
3042
|
const response = {
|
|
@@ -3048,7 +3049,7 @@ var de_GetDeploymentConfigCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
3048
3049
|
if (output.statusCode >= 300) {
|
|
3049
3050
|
return de_CommandError(output, context);
|
|
3050
3051
|
}
|
|
3051
|
-
const data = await
|
|
3052
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
3052
3053
|
let contents = {};
|
|
3053
3054
|
contents = de_GetDeploymentConfigOutput(data, context);
|
|
3054
3055
|
const response = {
|
|
@@ -3061,7 +3062,7 @@ var de_GetDeploymentGroupCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
3061
3062
|
if (output.statusCode >= 300) {
|
|
3062
3063
|
return de_CommandError(output, context);
|
|
3063
3064
|
}
|
|
3064
|
-
const data = await
|
|
3065
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
3065
3066
|
let contents = {};
|
|
3066
3067
|
contents = de_GetDeploymentGroupOutput(data, context);
|
|
3067
3068
|
const response = {
|
|
@@ -3074,7 +3075,7 @@ var de_GetDeploymentInstanceCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
3074
3075
|
if (output.statusCode >= 300) {
|
|
3075
3076
|
return de_CommandError(output, context);
|
|
3076
3077
|
}
|
|
3077
|
-
const data = await
|
|
3078
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
3078
3079
|
let contents = {};
|
|
3079
3080
|
contents = de_GetDeploymentInstanceOutput(data, context);
|
|
3080
3081
|
const response = {
|
|
@@ -3087,7 +3088,7 @@ var de_GetDeploymentTargetCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
3087
3088
|
if (output.statusCode >= 300) {
|
|
3088
3089
|
return de_CommandError(output, context);
|
|
3089
3090
|
}
|
|
3090
|
-
const data = await
|
|
3091
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
3091
3092
|
let contents = {};
|
|
3092
3093
|
contents = de_GetDeploymentTargetOutput(data, context);
|
|
3093
3094
|
const response = {
|
|
@@ -3100,7 +3101,7 @@ var de_GetOnPremisesInstanceCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
3100
3101
|
if (output.statusCode >= 300) {
|
|
3101
3102
|
return de_CommandError(output, context);
|
|
3102
3103
|
}
|
|
3103
|
-
const data = await
|
|
3104
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
3104
3105
|
let contents = {};
|
|
3105
3106
|
contents = de_GetOnPremisesInstanceOutput(data, context);
|
|
3106
3107
|
const response = {
|
|
@@ -3113,7 +3114,7 @@ var de_ListApplicationRevisionsCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
3113
3114
|
if (output.statusCode >= 300) {
|
|
3114
3115
|
return de_CommandError(output, context);
|
|
3115
3116
|
}
|
|
3116
|
-
const data = await
|
|
3117
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
3117
3118
|
let contents = {};
|
|
3118
3119
|
contents = (0, import_smithy_client._json)(data);
|
|
3119
3120
|
const response = {
|
|
@@ -3126,7 +3127,7 @@ var de_ListApplicationsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3126
3127
|
if (output.statusCode >= 300) {
|
|
3127
3128
|
return de_CommandError(output, context);
|
|
3128
3129
|
}
|
|
3129
|
-
const data = await
|
|
3130
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
3130
3131
|
let contents = {};
|
|
3131
3132
|
contents = (0, import_smithy_client._json)(data);
|
|
3132
3133
|
const response = {
|
|
@@ -3139,7 +3140,7 @@ var de_ListDeploymentConfigsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
3139
3140
|
if (output.statusCode >= 300) {
|
|
3140
3141
|
return de_CommandError(output, context);
|
|
3141
3142
|
}
|
|
3142
|
-
const data = await
|
|
3143
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
3143
3144
|
let contents = {};
|
|
3144
3145
|
contents = (0, import_smithy_client._json)(data);
|
|
3145
3146
|
const response = {
|
|
@@ -3152,7 +3153,7 @@ var de_ListDeploymentGroupsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
3152
3153
|
if (output.statusCode >= 300) {
|
|
3153
3154
|
return de_CommandError(output, context);
|
|
3154
3155
|
}
|
|
3155
|
-
const data = await
|
|
3156
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
3156
3157
|
let contents = {};
|
|
3157
3158
|
contents = (0, import_smithy_client._json)(data);
|
|
3158
3159
|
const response = {
|
|
@@ -3165,7 +3166,7 @@ var de_ListDeploymentInstancesCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
3165
3166
|
if (output.statusCode >= 300) {
|
|
3166
3167
|
return de_CommandError(output, context);
|
|
3167
3168
|
}
|
|
3168
|
-
const data = await
|
|
3169
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
3169
3170
|
let contents = {};
|
|
3170
3171
|
contents = (0, import_smithy_client._json)(data);
|
|
3171
3172
|
const response = {
|
|
@@ -3178,7 +3179,7 @@ var de_ListDeploymentsCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
3178
3179
|
if (output.statusCode >= 300) {
|
|
3179
3180
|
return de_CommandError(output, context);
|
|
3180
3181
|
}
|
|
3181
|
-
const data = await
|
|
3182
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
3182
3183
|
let contents = {};
|
|
3183
3184
|
contents = (0, import_smithy_client._json)(data);
|
|
3184
3185
|
const response = {
|
|
@@ -3191,7 +3192,7 @@ var de_ListDeploymentTargetsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
3191
3192
|
if (output.statusCode >= 300) {
|
|
3192
3193
|
return de_CommandError(output, context);
|
|
3193
3194
|
}
|
|
3194
|
-
const data = await
|
|
3195
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
3195
3196
|
let contents = {};
|
|
3196
3197
|
contents = (0, import_smithy_client._json)(data);
|
|
3197
3198
|
const response = {
|
|
@@ -3204,7 +3205,7 @@ var de_ListGitHubAccountTokenNamesCommand = /* @__PURE__ */ __name(async (output
|
|
|
3204
3205
|
if (output.statusCode >= 300) {
|
|
3205
3206
|
return de_CommandError(output, context);
|
|
3206
3207
|
}
|
|
3207
|
-
const data = await
|
|
3208
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
3208
3209
|
let contents = {};
|
|
3209
3210
|
contents = (0, import_smithy_client._json)(data);
|
|
3210
3211
|
const response = {
|
|
@@ -3217,7 +3218,7 @@ var de_ListOnPremisesInstancesCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
3217
3218
|
if (output.statusCode >= 300) {
|
|
3218
3219
|
return de_CommandError(output, context);
|
|
3219
3220
|
}
|
|
3220
|
-
const data = await
|
|
3221
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
3221
3222
|
let contents = {};
|
|
3222
3223
|
contents = (0, import_smithy_client._json)(data);
|
|
3223
3224
|
const response = {
|
|
@@ -3230,7 +3231,7 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
3230
3231
|
if (output.statusCode >= 300) {
|
|
3231
3232
|
return de_CommandError(output, context);
|
|
3232
3233
|
}
|
|
3233
|
-
const data = await
|
|
3234
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
3234
3235
|
let contents = {};
|
|
3235
3236
|
contents = (0, import_smithy_client._json)(data);
|
|
3236
3237
|
const response = {
|
|
@@ -3243,7 +3244,7 @@ var de_PutLifecycleEventHookExecutionStatusCommand = /* @__PURE__ */ __name(asyn
|
|
|
3243
3244
|
if (output.statusCode >= 300) {
|
|
3244
3245
|
return de_CommandError(output, context);
|
|
3245
3246
|
}
|
|
3246
|
-
const data = await
|
|
3247
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
3247
3248
|
let contents = {};
|
|
3248
3249
|
contents = (0, import_smithy_client._json)(data);
|
|
3249
3250
|
const response = {
|
|
@@ -3296,7 +3297,7 @@ var de_StopDeploymentCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3296
3297
|
if (output.statusCode >= 300) {
|
|
3297
3298
|
return de_CommandError(output, context);
|
|
3298
3299
|
}
|
|
3299
|
-
const data = await
|
|
3300
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
3300
3301
|
let contents = {};
|
|
3301
3302
|
contents = (0, import_smithy_client._json)(data);
|
|
3302
3303
|
const response = {
|
|
@@ -3309,7 +3310,7 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3309
3310
|
if (output.statusCode >= 300) {
|
|
3310
3311
|
return de_CommandError(output, context);
|
|
3311
3312
|
}
|
|
3312
|
-
const data = await
|
|
3313
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
3313
3314
|
let contents = {};
|
|
3314
3315
|
contents = (0, import_smithy_client._json)(data);
|
|
3315
3316
|
const response = {
|
|
@@ -3322,7 +3323,7 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3322
3323
|
if (output.statusCode >= 300) {
|
|
3323
3324
|
return de_CommandError(output, context);
|
|
3324
3325
|
}
|
|
3325
|
-
const data = await
|
|
3326
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
3326
3327
|
let contents = {};
|
|
3327
3328
|
contents = (0, import_smithy_client._json)(data);
|
|
3328
3329
|
const response = {
|
|
@@ -3345,7 +3346,7 @@ var de_UpdateDeploymentGroupCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
3345
3346
|
if (output.statusCode >= 300) {
|
|
3346
3347
|
return de_CommandError(output, context);
|
|
3347
3348
|
}
|
|
3348
|
-
const data = await
|
|
3349
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
3349
3350
|
let contents = {};
|
|
3350
3351
|
contents = (0, import_smithy_client._json)(data);
|
|
3351
3352
|
const response = {
|
|
@@ -3357,9 +3358,9 @@ var de_UpdateDeploymentGroupCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
3357
3358
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3358
3359
|
const parsedOutput = {
|
|
3359
3360
|
...output,
|
|
3360
|
-
body: await
|
|
3361
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
3361
3362
|
};
|
|
3362
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3363
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
3363
3364
|
switch (errorCode) {
|
|
3364
3365
|
case "InstanceLimitExceededException":
|
|
3365
3366
|
case "com.amazonaws.codedeploy#InstanceLimitExceededException":
|
|
@@ -5056,7 +5057,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
5056
5057
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
5057
5058
|
cfId: output.headers["x-amz-cf-id"]
|
|
5058
5059
|
}), "deserializeMetadata");
|
|
5059
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
5060
5060
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(CodeDeployServiceException);
|
|
5061
5061
|
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
5062
5062
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -5083,46 +5083,6 @@ function sharedHeaders(operation) {
|
|
|
5083
5083
|
};
|
|
5084
5084
|
}
|
|
5085
5085
|
__name(sharedHeaders, "sharedHeaders");
|
|
5086
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
5087
|
-
if (encoded.length) {
|
|
5088
|
-
return JSON.parse(encoded);
|
|
5089
|
-
}
|
|
5090
|
-
return {};
|
|
5091
|
-
}), "parseBody");
|
|
5092
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
5093
|
-
const value = await parseBody(errorBody, context);
|
|
5094
|
-
value.message = value.message ?? value.Message;
|
|
5095
|
-
return value;
|
|
5096
|
-
}, "parseErrorBody");
|
|
5097
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
5098
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
5099
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
5100
|
-
let cleanValue = rawValue;
|
|
5101
|
-
if (typeof cleanValue === "number") {
|
|
5102
|
-
cleanValue = cleanValue.toString();
|
|
5103
|
-
}
|
|
5104
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
5105
|
-
cleanValue = cleanValue.split(",")[0];
|
|
5106
|
-
}
|
|
5107
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
5108
|
-
cleanValue = cleanValue.split(":")[0];
|
|
5109
|
-
}
|
|
5110
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
5111
|
-
cleanValue = cleanValue.split("#")[1];
|
|
5112
|
-
}
|
|
5113
|
-
return cleanValue;
|
|
5114
|
-
}, "sanitizeErrorCode");
|
|
5115
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
5116
|
-
if (headerKey !== void 0) {
|
|
5117
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
5118
|
-
}
|
|
5119
|
-
if (data.code !== void 0) {
|
|
5120
|
-
return sanitizeErrorCode(data.code);
|
|
5121
|
-
}
|
|
5122
|
-
if (data["__type"] !== void 0) {
|
|
5123
|
-
return sanitizeErrorCode(data["__type"]);
|
|
5124
|
-
}
|
|
5125
|
-
}, "loadRestJsonErrorCode");
|
|
5126
5086
|
|
|
5127
5087
|
// src/commands/AddTagsToOnPremisesInstancesCommand.ts
|
|
5128
5088
|
var _AddTagsToOnPremisesInstancesCommand = class _AddTagsToOnPremisesInstancesCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
1
2
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
2
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
4
|
import { CodeDeployServiceException as __BaseException } from "../models/CodeDeployServiceException";
|
|
@@ -2611,43 +2612,3 @@ function sharedHeaders(operation) {
|
|
|
2611
2612
|
"x-amz-target": `CodeDeploy_20141006.${operation}`,
|
|
2612
2613
|
};
|
|
2613
2614
|
}
|
|
2614
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2615
|
-
if (encoded.length) {
|
|
2616
|
-
return JSON.parse(encoded);
|
|
2617
|
-
}
|
|
2618
|
-
return {};
|
|
2619
|
-
});
|
|
2620
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
2621
|
-
const value = await parseBody(errorBody, context);
|
|
2622
|
-
value.message = value.message ?? value.Message;
|
|
2623
|
-
return value;
|
|
2624
|
-
};
|
|
2625
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
2626
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2627
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
2628
|
-
let cleanValue = rawValue;
|
|
2629
|
-
if (typeof cleanValue === "number") {
|
|
2630
|
-
cleanValue = cleanValue.toString();
|
|
2631
|
-
}
|
|
2632
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
2633
|
-
cleanValue = cleanValue.split(",")[0];
|
|
2634
|
-
}
|
|
2635
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
2636
|
-
cleanValue = cleanValue.split(":")[0];
|
|
2637
|
-
}
|
|
2638
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
2639
|
-
cleanValue = cleanValue.split("#")[1];
|
|
2640
|
-
}
|
|
2641
|
-
return cleanValue;
|
|
2642
|
-
};
|
|
2643
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2644
|
-
if (headerKey !== undefined) {
|
|
2645
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2646
|
-
}
|
|
2647
|
-
if (data.code !== undefined) {
|
|
2648
|
-
return sanitizeErrorCode(data.code);
|
|
2649
|
-
}
|
|
2650
|
-
if (data["__type"] !== undefined) {
|
|
2651
|
-
return sanitizeErrorCode(data["__type"]);
|
|
2652
|
-
}
|
|
2653
|
-
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-codedeploy",
|
|
3
3
|
"description": "AWS SDK for JavaScript Codedeploy Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.529.1",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-codedeploy",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.529.1",
|
|
24
|
+
"@aws-sdk/core": "3.529.1",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.529.1",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.523.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.523.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.523.0",
|
|
@@ -309,6 +309,7 @@ var LogoutRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
|
309
309
|
}), "LogoutRequestFilterSensitiveLog");
|
|
310
310
|
|
|
311
311
|
// src/protocols/Aws_restJson1.ts
|
|
312
|
+
var import_core2 = require("@aws-sdk/core");
|
|
312
313
|
|
|
313
314
|
|
|
314
315
|
var se_GetRoleCredentialsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
@@ -371,7 +372,7 @@ var de_GetRoleCredentialsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
371
372
|
const contents = (0, import_smithy_client.map)({
|
|
372
373
|
$metadata: deserializeMetadata(output)
|
|
373
374
|
});
|
|
374
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
375
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
375
376
|
const doc = (0, import_smithy_client.take)(data, {
|
|
376
377
|
roleCredentials: import_smithy_client._json
|
|
377
378
|
});
|
|
@@ -385,7 +386,7 @@ var de_ListAccountRolesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
385
386
|
const contents = (0, import_smithy_client.map)({
|
|
386
387
|
$metadata: deserializeMetadata(output)
|
|
387
388
|
});
|
|
388
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
389
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
389
390
|
const doc = (0, import_smithy_client.take)(data, {
|
|
390
391
|
nextToken: import_smithy_client.expectString,
|
|
391
392
|
roleList: import_smithy_client._json
|
|
@@ -400,7 +401,7 @@ var de_ListAccountsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
400
401
|
const contents = (0, import_smithy_client.map)({
|
|
401
402
|
$metadata: deserializeMetadata(output)
|
|
402
403
|
});
|
|
403
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
404
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
404
405
|
const doc = (0, import_smithy_client.take)(data, {
|
|
405
406
|
accountList: import_smithy_client._json,
|
|
406
407
|
nextToken: import_smithy_client.expectString
|
|
@@ -421,9 +422,9 @@ var de_LogoutCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
421
422
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
422
423
|
const parsedOutput = {
|
|
423
424
|
...output,
|
|
424
|
-
body: await
|
|
425
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
425
426
|
};
|
|
426
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
427
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
427
428
|
switch (errorCode) {
|
|
428
429
|
case "InvalidRequestException":
|
|
429
430
|
case "com.amazonaws.sso#InvalidRequestException":
|
|
@@ -505,7 +506,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
505
506
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
506
507
|
cfId: output.headers["x-amz-cf-id"]
|
|
507
508
|
}), "deserializeMetadata");
|
|
508
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
509
509
|
var isSerializableHeaderValue = /* @__PURE__ */ __name((value) => value !== void 0 && value !== null && value !== "" && (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0), "isSerializableHeaderValue");
|
|
510
510
|
var _aI = "accountId";
|
|
511
511
|
var _aT = "accessToken";
|
|
@@ -517,46 +517,6 @@ var _nt = "next_token";
|
|
|
517
517
|
var _rN = "roleName";
|
|
518
518
|
var _rn = "role_name";
|
|
519
519
|
var _xasbt = "x-amz-sso_bearer_token";
|
|
520
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
521
|
-
if (encoded.length) {
|
|
522
|
-
return JSON.parse(encoded);
|
|
523
|
-
}
|
|
524
|
-
return {};
|
|
525
|
-
}), "parseBody");
|
|
526
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
527
|
-
const value = await parseBody(errorBody, context);
|
|
528
|
-
value.message = value.message ?? value.Message;
|
|
529
|
-
return value;
|
|
530
|
-
}, "parseErrorBody");
|
|
531
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
532
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
533
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
534
|
-
let cleanValue = rawValue;
|
|
535
|
-
if (typeof cleanValue === "number") {
|
|
536
|
-
cleanValue = cleanValue.toString();
|
|
537
|
-
}
|
|
538
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
539
|
-
cleanValue = cleanValue.split(",")[0];
|
|
540
|
-
}
|
|
541
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
542
|
-
cleanValue = cleanValue.split(":")[0];
|
|
543
|
-
}
|
|
544
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
545
|
-
cleanValue = cleanValue.split("#")[1];
|
|
546
|
-
}
|
|
547
|
-
return cleanValue;
|
|
548
|
-
}, "sanitizeErrorCode");
|
|
549
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
550
|
-
if (headerKey !== void 0) {
|
|
551
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
552
|
-
}
|
|
553
|
-
if (data.code !== void 0) {
|
|
554
|
-
return sanitizeErrorCode(data.code);
|
|
555
|
-
}
|
|
556
|
-
if (data["__type"] !== void 0) {
|
|
557
|
-
return sanitizeErrorCode(data["__type"]);
|
|
558
|
-
}
|
|
559
|
-
}, "loadRestJsonErrorCode");
|
|
560
520
|
|
|
561
521
|
// src/commands/GetRoleCredentialsCommand.ts
|
|
562
522
|
var _GetRoleCredentialsCommand = class _GetRoleCredentialsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
1
2
|
import { requestBuilder as rb } from "@smithy/core";
|
|
2
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
4
|
import { InvalidRequestException, ResourceNotFoundException, TooManyRequestsException, UnauthorizedException, } from "../models/models_0";
|
|
@@ -212,43 +213,3 @@ const _nt = "next_token";
|
|
|
212
213
|
const _rN = "roleName";
|
|
213
214
|
const _rn = "role_name";
|
|
214
215
|
const _xasbt = "x-amz-sso_bearer_token";
|
|
215
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
216
|
-
if (encoded.length) {
|
|
217
|
-
return JSON.parse(encoded);
|
|
218
|
-
}
|
|
219
|
-
return {};
|
|
220
|
-
});
|
|
221
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
222
|
-
const value = await parseBody(errorBody, context);
|
|
223
|
-
value.message = value.message ?? value.Message;
|
|
224
|
-
return value;
|
|
225
|
-
};
|
|
226
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
227
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
228
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
229
|
-
let cleanValue = rawValue;
|
|
230
|
-
if (typeof cleanValue === "number") {
|
|
231
|
-
cleanValue = cleanValue.toString();
|
|
232
|
-
}
|
|
233
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
234
|
-
cleanValue = cleanValue.split(",")[0];
|
|
235
|
-
}
|
|
236
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
237
|
-
cleanValue = cleanValue.split(":")[0];
|
|
238
|
-
}
|
|
239
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
240
|
-
cleanValue = cleanValue.split("#")[1];
|
|
241
|
-
}
|
|
242
|
-
return cleanValue;
|
|
243
|
-
};
|
|
244
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
245
|
-
if (headerKey !== undefined) {
|
|
246
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
247
|
-
}
|
|
248
|
-
if (data.code !== undefined) {
|
|
249
|
-
return sanitizeErrorCode(data.code);
|
|
250
|
-
}
|
|
251
|
-
if (data["__type"] !== undefined) {
|
|
252
|
-
return sanitizeErrorCode(data["__type"]);
|
|
253
|
-
}
|
|
254
|
-
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sso",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.529.1",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-sso",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/core": "3.
|
|
23
|
+
"@aws-sdk/core": "3.529.1",
|
|
24
24
|
"@aws-sdk/middleware-host-header": "3.523.0",
|
|
25
25
|
"@aws-sdk/middleware-logger": "3.523.0",
|
|
26
26
|
"@aws-sdk/middleware-recursion-detection": "3.523.0",
|