@aws-sdk/client-apprunner 3.67.0 → 3.68.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist-cjs/AppRunner.js +60 -0
- package/dist-cjs/commands/CreateObservabilityConfigurationCommand.js +36 -0
- package/dist-cjs/commands/DeleteObservabilityConfigurationCommand.js +36 -0
- package/dist-cjs/commands/DescribeObservabilityConfigurationCommand.js +36 -0
- package/dist-cjs/commands/ListObservabilityConfigurationsCommand.js +36 -0
- package/dist-cjs/commands/index.js +4 -0
- package/dist-cjs/models/models_0.js +84 -2
- package/dist-cjs/pagination/ListObservabilityConfigurationsPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_json1_0.js +350 -2
- package/dist-es/AppRunner.js +60 -0
- package/dist-es/commands/CreateObservabilityConfigurationCommand.js +39 -0
- package/dist-es/commands/DeleteObservabilityConfigurationCommand.js +39 -0
- package/dist-es/commands/DescribeObservabilityConfigurationCommand.js +39 -0
- package/dist-es/commands/ListObservabilityConfigurationsCommand.js +39 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/models/models_0.js +57 -0
- package/dist-es/pagination/ListObservabilityConfigurationsPaginator.js +74 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_json1_0.js +397 -2
- package/dist-types/AppRunner.d.ts +51 -7
- package/dist-types/AppRunnerClient.d.ts +6 -2
- package/dist-types/commands/CreateAutoScalingConfigurationCommand.d.ts +5 -5
- package/dist-types/commands/CreateObservabilityConfigurationCommand.d.ts +43 -0
- package/dist-types/commands/DeleteObservabilityConfigurationCommand.d.ts +36 -0
- package/dist-types/commands/DescribeObservabilityConfigurationCommand.d.ts +35 -0
- package/dist-types/commands/ListAutoScalingConfigurationsCommand.d.ts +5 -2
- package/dist-types/commands/ListObservabilityConfigurationsCommand.d.ts +39 -0
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +297 -8
- package/dist-types/pagination/ListObservabilityConfigurationsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_json1_0.d.ts +12 -0
- package/dist-types/ts3.4/AppRunner.d.ts +20 -0
- package/dist-types/ts3.4/AppRunnerClient.d.ts +6 -2
- package/dist-types/ts3.4/commands/CreateObservabilityConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteObservabilityConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeObservabilityConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListObservabilityConfigurationsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +145 -0
- package/dist-types/ts3.4/pagination/ListObservabilityConfigurationsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +12 -0
- package/package.json +1 -1
|
@@ -36,6 +36,17 @@ export var serializeAws_json1_0CreateConnectionCommand = function (input, contex
|
|
|
36
36
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
37
37
|
});
|
|
38
38
|
}); };
|
|
39
|
+
export var serializeAws_json1_0CreateObservabilityConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
40
|
+
var headers, body;
|
|
41
|
+
return __generator(this, function (_a) {
|
|
42
|
+
headers = {
|
|
43
|
+
"content-type": "application/x-amz-json-1.0",
|
|
44
|
+
"x-amz-target": "AppRunner.CreateObservabilityConfiguration",
|
|
45
|
+
};
|
|
46
|
+
body = JSON.stringify(serializeAws_json1_0CreateObservabilityConfigurationRequest(input, context));
|
|
47
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
48
|
+
});
|
|
49
|
+
}); };
|
|
39
50
|
export var serializeAws_json1_0CreateServiceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
40
51
|
var headers, body;
|
|
41
52
|
return __generator(this, function (_a) {
|
|
@@ -80,6 +91,17 @@ export var serializeAws_json1_0DeleteConnectionCommand = function (input, contex
|
|
|
80
91
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
81
92
|
});
|
|
82
93
|
}); };
|
|
94
|
+
export var serializeAws_json1_0DeleteObservabilityConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
95
|
+
var headers, body;
|
|
96
|
+
return __generator(this, function (_a) {
|
|
97
|
+
headers = {
|
|
98
|
+
"content-type": "application/x-amz-json-1.0",
|
|
99
|
+
"x-amz-target": "AppRunner.DeleteObservabilityConfiguration",
|
|
100
|
+
};
|
|
101
|
+
body = JSON.stringify(serializeAws_json1_0DeleteObservabilityConfigurationRequest(input, context));
|
|
102
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
103
|
+
});
|
|
104
|
+
}); };
|
|
83
105
|
export var serializeAws_json1_0DeleteServiceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
84
106
|
var headers, body;
|
|
85
107
|
return __generator(this, function (_a) {
|
|
@@ -124,6 +146,17 @@ export var serializeAws_json1_0DescribeCustomDomainsCommand = function (input, c
|
|
|
124
146
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
125
147
|
});
|
|
126
148
|
}); };
|
|
149
|
+
export var serializeAws_json1_0DescribeObservabilityConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
150
|
+
var headers, body;
|
|
151
|
+
return __generator(this, function (_a) {
|
|
152
|
+
headers = {
|
|
153
|
+
"content-type": "application/x-amz-json-1.0",
|
|
154
|
+
"x-amz-target": "AppRunner.DescribeObservabilityConfiguration",
|
|
155
|
+
};
|
|
156
|
+
body = JSON.stringify(serializeAws_json1_0DescribeObservabilityConfigurationRequest(input, context));
|
|
157
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
158
|
+
});
|
|
159
|
+
}); };
|
|
127
160
|
export var serializeAws_json1_0DescribeServiceCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
128
161
|
var headers, body;
|
|
129
162
|
return __generator(this, function (_a) {
|
|
@@ -179,6 +212,17 @@ export var serializeAws_json1_0ListConnectionsCommand = function (input, context
|
|
|
179
212
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
180
213
|
});
|
|
181
214
|
}); };
|
|
215
|
+
export var serializeAws_json1_0ListObservabilityConfigurationsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
216
|
+
var headers, body;
|
|
217
|
+
return __generator(this, function (_a) {
|
|
218
|
+
headers = {
|
|
219
|
+
"content-type": "application/x-amz-json-1.0",
|
|
220
|
+
"x-amz-target": "AppRunner.ListObservabilityConfigurations",
|
|
221
|
+
};
|
|
222
|
+
body = JSON.stringify(serializeAws_json1_0ListObservabilityConfigurationsRequest(input, context));
|
|
223
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
224
|
+
});
|
|
225
|
+
}); };
|
|
182
226
|
export var serializeAws_json1_0ListOperationsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
183
227
|
var headers, body;
|
|
184
228
|
return __generator(this, function (_a) {
|
|
@@ -463,6 +507,64 @@ var deserializeAws_json1_0CreateConnectionCommandError = function (output, conte
|
|
|
463
507
|
}
|
|
464
508
|
});
|
|
465
509
|
}); };
|
|
510
|
+
export var deserializeAws_json1_0CreateObservabilityConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
511
|
+
var data, contents, response;
|
|
512
|
+
return __generator(this, function (_a) {
|
|
513
|
+
switch (_a.label) {
|
|
514
|
+
case 0:
|
|
515
|
+
if (output.statusCode >= 300) {
|
|
516
|
+
return [2, deserializeAws_json1_0CreateObservabilityConfigurationCommandError(output, context)];
|
|
517
|
+
}
|
|
518
|
+
return [4, parseBody(output.body, context)];
|
|
519
|
+
case 1:
|
|
520
|
+
data = _a.sent();
|
|
521
|
+
contents = {};
|
|
522
|
+
contents = deserializeAws_json1_0CreateObservabilityConfigurationResponse(data, context);
|
|
523
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
524
|
+
return [2, Promise.resolve(response)];
|
|
525
|
+
}
|
|
526
|
+
});
|
|
527
|
+
}); };
|
|
528
|
+
var deserializeAws_json1_0CreateObservabilityConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
529
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
530
|
+
var _c;
|
|
531
|
+
return __generator(this, function (_d) {
|
|
532
|
+
switch (_d.label) {
|
|
533
|
+
case 0:
|
|
534
|
+
_a = [__assign({}, output)];
|
|
535
|
+
_c = {};
|
|
536
|
+
return [4, parseBody(output.body, context)];
|
|
537
|
+
case 1:
|
|
538
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
539
|
+
errorCode = "UnknownError";
|
|
540
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
541
|
+
_b = errorCode;
|
|
542
|
+
switch (_b) {
|
|
543
|
+
case "InternalServiceErrorException": return [3, 2];
|
|
544
|
+
case "com.amazonaws.apprunner#InternalServiceErrorException": return [3, 2];
|
|
545
|
+
case "InvalidRequestException": return [3, 4];
|
|
546
|
+
case "com.amazonaws.apprunner#InvalidRequestException": return [3, 4];
|
|
547
|
+
case "ServiceQuotaExceededException": return [3, 6];
|
|
548
|
+
case "com.amazonaws.apprunner#ServiceQuotaExceededException": return [3, 6];
|
|
549
|
+
}
|
|
550
|
+
return [3, 8];
|
|
551
|
+
case 2: return [4, deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
552
|
+
case 3: throw _d.sent();
|
|
553
|
+
case 4: return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
554
|
+
case 5: throw _d.sent();
|
|
555
|
+
case 6: return [4, deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
556
|
+
case 7: throw _d.sent();
|
|
557
|
+
case 8:
|
|
558
|
+
parsedBody = parsedOutput.body;
|
|
559
|
+
response = new __BaseException({
|
|
560
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
561
|
+
$fault: "client",
|
|
562
|
+
$metadata: deserializeMetadata(output),
|
|
563
|
+
});
|
|
564
|
+
throw __decorateServiceException(response, parsedBody);
|
|
565
|
+
}
|
|
566
|
+
});
|
|
567
|
+
}); };
|
|
466
568
|
export var deserializeAws_json1_0CreateServiceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
467
569
|
var data, contents, response;
|
|
468
570
|
return __generator(this, function (_a) {
|
|
@@ -695,6 +797,64 @@ var deserializeAws_json1_0DeleteConnectionCommandError = function (output, conte
|
|
|
695
797
|
}
|
|
696
798
|
});
|
|
697
799
|
}); };
|
|
800
|
+
export var deserializeAws_json1_0DeleteObservabilityConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
801
|
+
var data, contents, response;
|
|
802
|
+
return __generator(this, function (_a) {
|
|
803
|
+
switch (_a.label) {
|
|
804
|
+
case 0:
|
|
805
|
+
if (output.statusCode >= 300) {
|
|
806
|
+
return [2, deserializeAws_json1_0DeleteObservabilityConfigurationCommandError(output, context)];
|
|
807
|
+
}
|
|
808
|
+
return [4, parseBody(output.body, context)];
|
|
809
|
+
case 1:
|
|
810
|
+
data = _a.sent();
|
|
811
|
+
contents = {};
|
|
812
|
+
contents = deserializeAws_json1_0DeleteObservabilityConfigurationResponse(data, context);
|
|
813
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
814
|
+
return [2, Promise.resolve(response)];
|
|
815
|
+
}
|
|
816
|
+
});
|
|
817
|
+
}); };
|
|
818
|
+
var deserializeAws_json1_0DeleteObservabilityConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
819
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
820
|
+
var _c;
|
|
821
|
+
return __generator(this, function (_d) {
|
|
822
|
+
switch (_d.label) {
|
|
823
|
+
case 0:
|
|
824
|
+
_a = [__assign({}, output)];
|
|
825
|
+
_c = {};
|
|
826
|
+
return [4, parseBody(output.body, context)];
|
|
827
|
+
case 1:
|
|
828
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
829
|
+
errorCode = "UnknownError";
|
|
830
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
831
|
+
_b = errorCode;
|
|
832
|
+
switch (_b) {
|
|
833
|
+
case "InternalServiceErrorException": return [3, 2];
|
|
834
|
+
case "com.amazonaws.apprunner#InternalServiceErrorException": return [3, 2];
|
|
835
|
+
case "InvalidRequestException": return [3, 4];
|
|
836
|
+
case "com.amazonaws.apprunner#InvalidRequestException": return [3, 4];
|
|
837
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
838
|
+
case "com.amazonaws.apprunner#ResourceNotFoundException": return [3, 6];
|
|
839
|
+
}
|
|
840
|
+
return [3, 8];
|
|
841
|
+
case 2: return [4, deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
842
|
+
case 3: throw _d.sent();
|
|
843
|
+
case 4: return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
844
|
+
case 5: throw _d.sent();
|
|
845
|
+
case 6: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
846
|
+
case 7: throw _d.sent();
|
|
847
|
+
case 8:
|
|
848
|
+
parsedBody = parsedOutput.body;
|
|
849
|
+
response = new __BaseException({
|
|
850
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
851
|
+
$fault: "client",
|
|
852
|
+
$metadata: deserializeMetadata(output),
|
|
853
|
+
});
|
|
854
|
+
throw __decorateServiceException(response, parsedBody);
|
|
855
|
+
}
|
|
856
|
+
});
|
|
857
|
+
}); };
|
|
698
858
|
export var deserializeAws_json1_0DeleteServiceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
699
859
|
var data, contents, response;
|
|
700
860
|
return __generator(this, function (_a) {
|
|
@@ -931,6 +1091,64 @@ var deserializeAws_json1_0DescribeCustomDomainsCommandError = function (output,
|
|
|
931
1091
|
}
|
|
932
1092
|
});
|
|
933
1093
|
}); };
|
|
1094
|
+
export var deserializeAws_json1_0DescribeObservabilityConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1095
|
+
var data, contents, response;
|
|
1096
|
+
return __generator(this, function (_a) {
|
|
1097
|
+
switch (_a.label) {
|
|
1098
|
+
case 0:
|
|
1099
|
+
if (output.statusCode >= 300) {
|
|
1100
|
+
return [2, deserializeAws_json1_0DescribeObservabilityConfigurationCommandError(output, context)];
|
|
1101
|
+
}
|
|
1102
|
+
return [4, parseBody(output.body, context)];
|
|
1103
|
+
case 1:
|
|
1104
|
+
data = _a.sent();
|
|
1105
|
+
contents = {};
|
|
1106
|
+
contents = deserializeAws_json1_0DescribeObservabilityConfigurationResponse(data, context);
|
|
1107
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1108
|
+
return [2, Promise.resolve(response)];
|
|
1109
|
+
}
|
|
1110
|
+
});
|
|
1111
|
+
}); };
|
|
1112
|
+
var deserializeAws_json1_0DescribeObservabilityConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1113
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1114
|
+
var _c;
|
|
1115
|
+
return __generator(this, function (_d) {
|
|
1116
|
+
switch (_d.label) {
|
|
1117
|
+
case 0:
|
|
1118
|
+
_a = [__assign({}, output)];
|
|
1119
|
+
_c = {};
|
|
1120
|
+
return [4, parseBody(output.body, context)];
|
|
1121
|
+
case 1:
|
|
1122
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1123
|
+
errorCode = "UnknownError";
|
|
1124
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1125
|
+
_b = errorCode;
|
|
1126
|
+
switch (_b) {
|
|
1127
|
+
case "InternalServiceErrorException": return [3, 2];
|
|
1128
|
+
case "com.amazonaws.apprunner#InternalServiceErrorException": return [3, 2];
|
|
1129
|
+
case "InvalidRequestException": return [3, 4];
|
|
1130
|
+
case "com.amazonaws.apprunner#InvalidRequestException": return [3, 4];
|
|
1131
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1132
|
+
case "com.amazonaws.apprunner#ResourceNotFoundException": return [3, 6];
|
|
1133
|
+
}
|
|
1134
|
+
return [3, 8];
|
|
1135
|
+
case 2: return [4, deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
1136
|
+
case 3: throw _d.sent();
|
|
1137
|
+
case 4: return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1138
|
+
case 5: throw _d.sent();
|
|
1139
|
+
case 6: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1140
|
+
case 7: throw _d.sent();
|
|
1141
|
+
case 8:
|
|
1142
|
+
parsedBody = parsedOutput.body;
|
|
1143
|
+
response = new __BaseException({
|
|
1144
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1145
|
+
$fault: "client",
|
|
1146
|
+
$metadata: deserializeMetadata(output),
|
|
1147
|
+
});
|
|
1148
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1149
|
+
}
|
|
1150
|
+
});
|
|
1151
|
+
}); };
|
|
934
1152
|
export var deserializeAws_json1_0DescribeServiceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
935
1153
|
var data, contents, response;
|
|
936
1154
|
return __generator(this, function (_a) {
|
|
@@ -1217,6 +1435,60 @@ var deserializeAws_json1_0ListConnectionsCommandError = function (output, contex
|
|
|
1217
1435
|
}
|
|
1218
1436
|
});
|
|
1219
1437
|
}); };
|
|
1438
|
+
export var deserializeAws_json1_0ListObservabilityConfigurationsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1439
|
+
var data, contents, response;
|
|
1440
|
+
return __generator(this, function (_a) {
|
|
1441
|
+
switch (_a.label) {
|
|
1442
|
+
case 0:
|
|
1443
|
+
if (output.statusCode >= 300) {
|
|
1444
|
+
return [2, deserializeAws_json1_0ListObservabilityConfigurationsCommandError(output, context)];
|
|
1445
|
+
}
|
|
1446
|
+
return [4, parseBody(output.body, context)];
|
|
1447
|
+
case 1:
|
|
1448
|
+
data = _a.sent();
|
|
1449
|
+
contents = {};
|
|
1450
|
+
contents = deserializeAws_json1_0ListObservabilityConfigurationsResponse(data, context);
|
|
1451
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1452
|
+
return [2, Promise.resolve(response)];
|
|
1453
|
+
}
|
|
1454
|
+
});
|
|
1455
|
+
}); };
|
|
1456
|
+
var deserializeAws_json1_0ListObservabilityConfigurationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1457
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1458
|
+
var _c;
|
|
1459
|
+
return __generator(this, function (_d) {
|
|
1460
|
+
switch (_d.label) {
|
|
1461
|
+
case 0:
|
|
1462
|
+
_a = [__assign({}, output)];
|
|
1463
|
+
_c = {};
|
|
1464
|
+
return [4, parseBody(output.body, context)];
|
|
1465
|
+
case 1:
|
|
1466
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1467
|
+
errorCode = "UnknownError";
|
|
1468
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1469
|
+
_b = errorCode;
|
|
1470
|
+
switch (_b) {
|
|
1471
|
+
case "InternalServiceErrorException": return [3, 2];
|
|
1472
|
+
case "com.amazonaws.apprunner#InternalServiceErrorException": return [3, 2];
|
|
1473
|
+
case "InvalidRequestException": return [3, 4];
|
|
1474
|
+
case "com.amazonaws.apprunner#InvalidRequestException": return [3, 4];
|
|
1475
|
+
}
|
|
1476
|
+
return [3, 6];
|
|
1477
|
+
case 2: return [4, deserializeAws_json1_0InternalServiceErrorExceptionResponse(parsedOutput, context)];
|
|
1478
|
+
case 3: throw _d.sent();
|
|
1479
|
+
case 4: return [4, deserializeAws_json1_0InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1480
|
+
case 5: throw _d.sent();
|
|
1481
|
+
case 6:
|
|
1482
|
+
parsedBody = parsedOutput.body;
|
|
1483
|
+
response = new __BaseException({
|
|
1484
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1485
|
+
$fault: "client",
|
|
1486
|
+
$metadata: deserializeMetadata(output),
|
|
1487
|
+
});
|
|
1488
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1489
|
+
}
|
|
1490
|
+
});
|
|
1491
|
+
}); };
|
|
1220
1492
|
export var deserializeAws_json1_0ListOperationsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1221
1493
|
var data, contents, response;
|
|
1222
1494
|
return __generator(this, function (_a) {
|
|
@@ -1898,8 +2170,17 @@ var serializeAws_json1_0CreateConnectionRequest = function (input, context) {
|
|
|
1898
2170
|
return __assign(__assign(__assign({}, (input.ConnectionName !== undefined &&
|
|
1899
2171
|
input.ConnectionName !== null && { ConnectionName: input.ConnectionName })), (input.ProviderType !== undefined && input.ProviderType !== null && { ProviderType: input.ProviderType })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }));
|
|
1900
2172
|
};
|
|
2173
|
+
var serializeAws_json1_0CreateObservabilityConfigurationRequest = function (input, context) {
|
|
2174
|
+
return __assign(__assign(__assign({}, (input.ObservabilityConfigurationName !== undefined &&
|
|
2175
|
+
input.ObservabilityConfigurationName !== null && {
|
|
2176
|
+
ObservabilityConfigurationName: input.ObservabilityConfigurationName,
|
|
2177
|
+
})), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_0TagList(input.Tags, context) })), (input.TraceConfiguration !== undefined &&
|
|
2178
|
+
input.TraceConfiguration !== null && {
|
|
2179
|
+
TraceConfiguration: serializeAws_json1_0TraceConfiguration(input.TraceConfiguration, context),
|
|
2180
|
+
}));
|
|
2181
|
+
};
|
|
1901
2182
|
var serializeAws_json1_0CreateServiceRequest = function (input, context) {
|
|
1902
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AutoScalingConfigurationArn !== undefined &&
|
|
2183
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AutoScalingConfigurationArn !== undefined &&
|
|
1903
2184
|
input.AutoScalingConfigurationArn !== null && { AutoScalingConfigurationArn: input.AutoScalingConfigurationArn })), (input.EncryptionConfiguration !== undefined &&
|
|
1904
2185
|
input.EncryptionConfiguration !== null && {
|
|
1905
2186
|
EncryptionConfiguration: serializeAws_json1_0EncryptionConfiguration(input.EncryptionConfiguration, context),
|
|
@@ -1912,6 +2193,9 @@ var serializeAws_json1_0CreateServiceRequest = function (input, context) {
|
|
|
1912
2193
|
})), (input.NetworkConfiguration !== undefined &&
|
|
1913
2194
|
input.NetworkConfiguration !== null && {
|
|
1914
2195
|
NetworkConfiguration: serializeAws_json1_0NetworkConfiguration(input.NetworkConfiguration, context),
|
|
2196
|
+
})), (input.ObservabilityConfiguration !== undefined &&
|
|
2197
|
+
input.ObservabilityConfiguration !== null && {
|
|
2198
|
+
ObservabilityConfiguration: serializeAws_json1_0ServiceObservabilityConfiguration(input.ObservabilityConfiguration, context),
|
|
1915
2199
|
})), (input.ServiceName !== undefined && input.ServiceName !== null && { ServiceName: input.ServiceName })), (input.SourceConfiguration !== undefined &&
|
|
1916
2200
|
input.SourceConfiguration !== null && {
|
|
1917
2201
|
SourceConfiguration: serializeAws_json1_0SourceConfiguration(input.SourceConfiguration, context),
|
|
@@ -1932,6 +2216,12 @@ var serializeAws_json1_0DeleteAutoScalingConfigurationRequest = function (input,
|
|
|
1932
2216
|
var serializeAws_json1_0DeleteConnectionRequest = function (input, context) {
|
|
1933
2217
|
return __assign({}, (input.ConnectionArn !== undefined && input.ConnectionArn !== null && { ConnectionArn: input.ConnectionArn }));
|
|
1934
2218
|
};
|
|
2219
|
+
var serializeAws_json1_0DeleteObservabilityConfigurationRequest = function (input, context) {
|
|
2220
|
+
return __assign({}, (input.ObservabilityConfigurationArn !== undefined &&
|
|
2221
|
+
input.ObservabilityConfigurationArn !== null && {
|
|
2222
|
+
ObservabilityConfigurationArn: input.ObservabilityConfigurationArn,
|
|
2223
|
+
}));
|
|
2224
|
+
};
|
|
1935
2225
|
var serializeAws_json1_0DeleteServiceRequest = function (input, context) {
|
|
1936
2226
|
return __assign({}, (input.ServiceArn !== undefined && input.ServiceArn !== null && { ServiceArn: input.ServiceArn }));
|
|
1937
2227
|
};
|
|
@@ -1946,6 +2236,12 @@ var serializeAws_json1_0DescribeAutoScalingConfigurationRequest = function (inpu
|
|
|
1946
2236
|
var serializeAws_json1_0DescribeCustomDomainsRequest = function (input, context) {
|
|
1947
2237
|
return __assign(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.ServiceArn !== undefined && input.ServiceArn !== null && { ServiceArn: input.ServiceArn }));
|
|
1948
2238
|
};
|
|
2239
|
+
var serializeAws_json1_0DescribeObservabilityConfigurationRequest = function (input, context) {
|
|
2240
|
+
return __assign({}, (input.ObservabilityConfigurationArn !== undefined &&
|
|
2241
|
+
input.ObservabilityConfigurationArn !== null && {
|
|
2242
|
+
ObservabilityConfigurationArn: input.ObservabilityConfigurationArn,
|
|
2243
|
+
}));
|
|
2244
|
+
};
|
|
1949
2245
|
var serializeAws_json1_0DescribeServiceRequest = function (input, context) {
|
|
1950
2246
|
return __assign({}, (input.ServiceArn !== undefined && input.ServiceArn !== null && { ServiceArn: input.ServiceArn }));
|
|
1951
2247
|
};
|
|
@@ -1996,6 +2292,12 @@ var serializeAws_json1_0ListConnectionsRequest = function (input, context) {
|
|
|
1996
2292
|
return __assign(__assign(__assign({}, (input.ConnectionName !== undefined &&
|
|
1997
2293
|
input.ConnectionName !== null && { ConnectionName: input.ConnectionName })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
|
|
1998
2294
|
};
|
|
2295
|
+
var serializeAws_json1_0ListObservabilityConfigurationsRequest = function (input, context) {
|
|
2296
|
+
return __assign(__assign(__assign(__assign({}, (input.LatestOnly !== undefined && input.LatestOnly !== null && { LatestOnly: input.LatestOnly })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.ObservabilityConfigurationName !== undefined &&
|
|
2297
|
+
input.ObservabilityConfigurationName !== null && {
|
|
2298
|
+
ObservabilityConfigurationName: input.ObservabilityConfigurationName,
|
|
2299
|
+
}));
|
|
2300
|
+
};
|
|
1999
2301
|
var serializeAws_json1_0ListOperationsRequest = function (input, context) {
|
|
2000
2302
|
return __assign(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.ServiceArn !== undefined && input.ServiceArn !== null && { ServiceArn: input.ServiceArn }));
|
|
2001
2303
|
};
|
|
@@ -2030,6 +2332,13 @@ var serializeAws_json1_0RuntimeEnvironmentVariables = function (input, context)
|
|
|
2030
2332
|
return __assign(__assign({}, acc), (_b = {}, _b[key] = value, _b));
|
|
2031
2333
|
}, {});
|
|
2032
2334
|
};
|
|
2335
|
+
var serializeAws_json1_0ServiceObservabilityConfiguration = function (input, context) {
|
|
2336
|
+
return __assign(__assign({}, (input.ObservabilityConfigurationArn !== undefined &&
|
|
2337
|
+
input.ObservabilityConfigurationArn !== null && {
|
|
2338
|
+
ObservabilityConfigurationArn: input.ObservabilityConfigurationArn,
|
|
2339
|
+
})), (input.ObservabilityEnabled !== undefined &&
|
|
2340
|
+
input.ObservabilityEnabled !== null && { ObservabilityEnabled: input.ObservabilityEnabled }));
|
|
2341
|
+
};
|
|
2033
2342
|
var serializeAws_json1_0SourceCodeVersion = function (input, context) {
|
|
2034
2343
|
return __assign(__assign({}, (input.Type !== undefined && input.Type !== null && { Type: input.Type })), (input.Value !== undefined && input.Value !== null && { Value: input.Value }));
|
|
2035
2344
|
};
|
|
@@ -2085,12 +2394,15 @@ var serializeAws_json1_0TagList = function (input, context) {
|
|
|
2085
2394
|
var serializeAws_json1_0TagResourceRequest = function (input, context) {
|
|
2086
2395
|
return __assign(__assign({}, (input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }));
|
|
2087
2396
|
};
|
|
2397
|
+
var serializeAws_json1_0TraceConfiguration = function (input, context) {
|
|
2398
|
+
return __assign({}, (input.Vendor !== undefined && input.Vendor !== null && { Vendor: input.Vendor }));
|
|
2399
|
+
};
|
|
2088
2400
|
var serializeAws_json1_0UntagResourceRequest = function (input, context) {
|
|
2089
2401
|
return __assign(__assign({}, (input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn })), (input.TagKeys !== undefined &&
|
|
2090
2402
|
input.TagKeys !== null && { TagKeys: serializeAws_json1_0TagKeyList(input.TagKeys, context) }));
|
|
2091
2403
|
};
|
|
2092
2404
|
var serializeAws_json1_0UpdateServiceRequest = function (input, context) {
|
|
2093
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.AutoScalingConfigurationArn !== undefined &&
|
|
2405
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AutoScalingConfigurationArn !== undefined &&
|
|
2094
2406
|
input.AutoScalingConfigurationArn !== null && { AutoScalingConfigurationArn: input.AutoScalingConfigurationArn })), (input.HealthCheckConfiguration !== undefined &&
|
|
2095
2407
|
input.HealthCheckConfiguration !== null && {
|
|
2096
2408
|
HealthCheckConfiguration: serializeAws_json1_0HealthCheckConfiguration(input.HealthCheckConfiguration, context),
|
|
@@ -2100,6 +2412,9 @@ var serializeAws_json1_0UpdateServiceRequest = function (input, context) {
|
|
|
2100
2412
|
})), (input.NetworkConfiguration !== undefined &&
|
|
2101
2413
|
input.NetworkConfiguration !== null && {
|
|
2102
2414
|
NetworkConfiguration: serializeAws_json1_0NetworkConfiguration(input.NetworkConfiguration, context),
|
|
2415
|
+
})), (input.ObservabilityConfiguration !== undefined &&
|
|
2416
|
+
input.ObservabilityConfiguration !== null && {
|
|
2417
|
+
ObservabilityConfiguration: serializeAws_json1_0ServiceObservabilityConfiguration(input.ObservabilityConfiguration, context),
|
|
2103
2418
|
})), (input.ServiceArn !== undefined && input.ServiceArn !== null && { ServiceArn: input.ServiceArn })), (input.SourceConfiguration !== undefined &&
|
|
2104
2419
|
input.SourceConfiguration !== null && {
|
|
2105
2420
|
SourceConfiguration: serializeAws_json1_0SourceConfiguration(input.SourceConfiguration, context),
|
|
@@ -2252,6 +2567,13 @@ var deserializeAws_json1_0CreateConnectionResponse = function (output, context)
|
|
|
2252
2567
|
: undefined,
|
|
2253
2568
|
};
|
|
2254
2569
|
};
|
|
2570
|
+
var deserializeAws_json1_0CreateObservabilityConfigurationResponse = function (output, context) {
|
|
2571
|
+
return {
|
|
2572
|
+
ObservabilityConfiguration: output.ObservabilityConfiguration !== undefined && output.ObservabilityConfiguration !== null
|
|
2573
|
+
? deserializeAws_json1_0ObservabilityConfiguration(output.ObservabilityConfiguration, context)
|
|
2574
|
+
: undefined,
|
|
2575
|
+
};
|
|
2576
|
+
};
|
|
2255
2577
|
var deserializeAws_json1_0CreateServiceResponse = function (output, context) {
|
|
2256
2578
|
return {
|
|
2257
2579
|
OperationId: __expectString(output.OperationId),
|
|
@@ -2302,6 +2624,13 @@ var deserializeAws_json1_0DeleteConnectionResponse = function (output, context)
|
|
|
2302
2624
|
: undefined,
|
|
2303
2625
|
};
|
|
2304
2626
|
};
|
|
2627
|
+
var deserializeAws_json1_0DeleteObservabilityConfigurationResponse = function (output, context) {
|
|
2628
|
+
return {
|
|
2629
|
+
ObservabilityConfiguration: output.ObservabilityConfiguration !== undefined && output.ObservabilityConfiguration !== null
|
|
2630
|
+
? deserializeAws_json1_0ObservabilityConfiguration(output.ObservabilityConfiguration, context)
|
|
2631
|
+
: undefined,
|
|
2632
|
+
};
|
|
2633
|
+
};
|
|
2305
2634
|
var deserializeAws_json1_0DeleteServiceResponse = function (output, context) {
|
|
2306
2635
|
return {
|
|
2307
2636
|
OperationId: __expectString(output.OperationId),
|
|
@@ -2334,6 +2663,13 @@ var deserializeAws_json1_0DescribeCustomDomainsResponse = function (output, cont
|
|
|
2334
2663
|
ServiceArn: __expectString(output.ServiceArn),
|
|
2335
2664
|
};
|
|
2336
2665
|
};
|
|
2666
|
+
var deserializeAws_json1_0DescribeObservabilityConfigurationResponse = function (output, context) {
|
|
2667
|
+
return {
|
|
2668
|
+
ObservabilityConfiguration: output.ObservabilityConfiguration !== undefined && output.ObservabilityConfiguration !== null
|
|
2669
|
+
? deserializeAws_json1_0ObservabilityConfiguration(output.ObservabilityConfiguration, context)
|
|
2670
|
+
: undefined,
|
|
2671
|
+
};
|
|
2672
|
+
};
|
|
2337
2673
|
var deserializeAws_json1_0DescribeServiceResponse = function (output, context) {
|
|
2338
2674
|
return {
|
|
2339
2675
|
Service: output.Service !== undefined && output.Service !== null
|
|
@@ -2434,6 +2770,15 @@ var deserializeAws_json1_0ListConnectionsResponse = function (output, context) {
|
|
|
2434
2770
|
NextToken: __expectString(output.NextToken),
|
|
2435
2771
|
};
|
|
2436
2772
|
};
|
|
2773
|
+
var deserializeAws_json1_0ListObservabilityConfigurationsResponse = function (output, context) {
|
|
2774
|
+
return {
|
|
2775
|
+
NextToken: __expectString(output.NextToken),
|
|
2776
|
+
ObservabilityConfigurationSummaryList: output.ObservabilityConfigurationSummaryList !== undefined &&
|
|
2777
|
+
output.ObservabilityConfigurationSummaryList !== null
|
|
2778
|
+
? deserializeAws_json1_0ObservabilityConfigurationSummaryList(output.ObservabilityConfigurationSummaryList, context)
|
|
2779
|
+
: undefined,
|
|
2780
|
+
};
|
|
2781
|
+
};
|
|
2437
2782
|
var deserializeAws_json1_0ListOperationsResponse = function (output, context) {
|
|
2438
2783
|
return {
|
|
2439
2784
|
NextToken: __expectString(output.NextToken),
|
|
@@ -2472,6 +2817,42 @@ var deserializeAws_json1_0NetworkConfiguration = function (output, context) {
|
|
|
2472
2817
|
: undefined,
|
|
2473
2818
|
};
|
|
2474
2819
|
};
|
|
2820
|
+
var deserializeAws_json1_0ObservabilityConfiguration = function (output, context) {
|
|
2821
|
+
return {
|
|
2822
|
+
CreatedAt: output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
2823
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
|
|
2824
|
+
: undefined,
|
|
2825
|
+
DeletedAt: output.DeletedAt !== undefined && output.DeletedAt !== null
|
|
2826
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DeletedAt)))
|
|
2827
|
+
: undefined,
|
|
2828
|
+
Latest: __expectBoolean(output.Latest),
|
|
2829
|
+
ObservabilityConfigurationArn: __expectString(output.ObservabilityConfigurationArn),
|
|
2830
|
+
ObservabilityConfigurationName: __expectString(output.ObservabilityConfigurationName),
|
|
2831
|
+
ObservabilityConfigurationRevision: __expectInt32(output.ObservabilityConfigurationRevision),
|
|
2832
|
+
Status: __expectString(output.Status),
|
|
2833
|
+
TraceConfiguration: output.TraceConfiguration !== undefined && output.TraceConfiguration !== null
|
|
2834
|
+
? deserializeAws_json1_0TraceConfiguration(output.TraceConfiguration, context)
|
|
2835
|
+
: undefined,
|
|
2836
|
+
};
|
|
2837
|
+
};
|
|
2838
|
+
var deserializeAws_json1_0ObservabilityConfigurationSummary = function (output, context) {
|
|
2839
|
+
return {
|
|
2840
|
+
ObservabilityConfigurationArn: __expectString(output.ObservabilityConfigurationArn),
|
|
2841
|
+
ObservabilityConfigurationName: __expectString(output.ObservabilityConfigurationName),
|
|
2842
|
+
ObservabilityConfigurationRevision: __expectInt32(output.ObservabilityConfigurationRevision),
|
|
2843
|
+
};
|
|
2844
|
+
};
|
|
2845
|
+
var deserializeAws_json1_0ObservabilityConfigurationSummaryList = function (output, context) {
|
|
2846
|
+
var retVal = (output || [])
|
|
2847
|
+
.filter(function (e) { return e != null; })
|
|
2848
|
+
.map(function (entry) {
|
|
2849
|
+
if (entry === null) {
|
|
2850
|
+
return null;
|
|
2851
|
+
}
|
|
2852
|
+
return deserializeAws_json1_0ObservabilityConfigurationSummary(entry, context);
|
|
2853
|
+
});
|
|
2854
|
+
return retVal;
|
|
2855
|
+
};
|
|
2475
2856
|
var deserializeAws_json1_0OperationSummary = function (output, context) {
|
|
2476
2857
|
return {
|
|
2477
2858
|
EndedAt: output.EndedAt !== undefined && output.EndedAt !== null
|
|
@@ -2554,6 +2935,9 @@ var deserializeAws_json1_0Service = function (output, context) {
|
|
|
2554
2935
|
NetworkConfiguration: output.NetworkConfiguration !== undefined && output.NetworkConfiguration !== null
|
|
2555
2936
|
? deserializeAws_json1_0NetworkConfiguration(output.NetworkConfiguration, context)
|
|
2556
2937
|
: undefined,
|
|
2938
|
+
ObservabilityConfiguration: output.ObservabilityConfiguration !== undefined && output.ObservabilityConfiguration !== null
|
|
2939
|
+
? deserializeAws_json1_0ServiceObservabilityConfiguration(output.ObservabilityConfiguration, context)
|
|
2940
|
+
: undefined,
|
|
2557
2941
|
ServiceArn: __expectString(output.ServiceArn),
|
|
2558
2942
|
ServiceId: __expectString(output.ServiceId),
|
|
2559
2943
|
ServiceName: __expectString(output.ServiceName),
|
|
@@ -2567,6 +2951,12 @@ var deserializeAws_json1_0Service = function (output, context) {
|
|
|
2567
2951
|
: undefined,
|
|
2568
2952
|
};
|
|
2569
2953
|
};
|
|
2954
|
+
var deserializeAws_json1_0ServiceObservabilityConfiguration = function (output, context) {
|
|
2955
|
+
return {
|
|
2956
|
+
ObservabilityConfigurationArn: __expectString(output.ObservabilityConfigurationArn),
|
|
2957
|
+
ObservabilityEnabled: __expectBoolean(output.ObservabilityEnabled),
|
|
2958
|
+
};
|
|
2959
|
+
};
|
|
2570
2960
|
var deserializeAws_json1_0ServiceQuotaExceededException = function (output, context) {
|
|
2571
2961
|
return {
|
|
2572
2962
|
Message: __expectString(output.Message),
|
|
@@ -2654,6 +3044,11 @@ var deserializeAws_json1_0TagList = function (output, context) {
|
|
|
2654
3044
|
var deserializeAws_json1_0TagResourceResponse = function (output, context) {
|
|
2655
3045
|
return {};
|
|
2656
3046
|
};
|
|
3047
|
+
var deserializeAws_json1_0TraceConfiguration = function (output, context) {
|
|
3048
|
+
return {
|
|
3049
|
+
Vendor: __expectString(output.Vendor),
|
|
3050
|
+
};
|
|
3051
|
+
};
|
|
2657
3052
|
var deserializeAws_json1_0UntagResourceResponse = function (output, context) {
|
|
2658
3053
|
return {};
|
|
2659
3054
|
};
|