@aws-sdk/client-proton 3.303.0 → 3.308.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.
Files changed (78) hide show
  1. package/README.md +64 -0
  2. package/dist-cjs/Proton.js +120 -0
  3. package/dist-cjs/commands/CreateServiceInstanceCommand.js +46 -0
  4. package/dist-cjs/commands/CreateServiceSyncConfigCommand.js +45 -0
  5. package/dist-cjs/commands/DeleteServiceSyncConfigCommand.js +45 -0
  6. package/dist-cjs/commands/GetServiceInstanceSyncStatusCommand.js +45 -0
  7. package/dist-cjs/commands/GetServiceSyncBlockerSummaryCommand.js +45 -0
  8. package/dist-cjs/commands/GetServiceSyncConfigCommand.js +45 -0
  9. package/dist-cjs/commands/UpdateServiceSyncBlockerCommand.js +45 -0
  10. package/dist-cjs/commands/UpdateServiceSyncConfigCommand.js +45 -0
  11. package/dist-cjs/commands/index.js +8 -0
  12. package/dist-cjs/endpoint/ruleset.js +3 -3
  13. package/dist-cjs/models/models_0.js +25 -7
  14. package/dist-cjs/protocols/Aws_json1_0.js +671 -27
  15. package/dist-es/Proton.js +120 -0
  16. package/dist-es/commands/CreateServiceInstanceCommand.js +42 -0
  17. package/dist-es/commands/CreateServiceSyncConfigCommand.js +41 -0
  18. package/dist-es/commands/DeleteServiceSyncConfigCommand.js +41 -0
  19. package/dist-es/commands/GetServiceInstanceSyncStatusCommand.js +41 -0
  20. package/dist-es/commands/GetServiceSyncBlockerSummaryCommand.js +41 -0
  21. package/dist-es/commands/GetServiceSyncConfigCommand.js +41 -0
  22. package/dist-es/commands/UpdateServiceSyncBlockerCommand.js +41 -0
  23. package/dist-es/commands/UpdateServiceSyncConfigCommand.js +41 -0
  24. package/dist-es/commands/index.js +8 -0
  25. package/dist-es/endpoint/ruleset.js +3 -3
  26. package/dist-es/models/models_0.js +20 -4
  27. package/dist-es/protocols/Aws_json1_0.js +651 -23
  28. package/dist-types/Proton.d.ts +172 -75
  29. package/dist-types/ProtonClient.d.ts +10 -2
  30. package/dist-types/commands/CancelServiceInstanceDeploymentCommand.d.ts +10 -7
  31. package/dist-types/commands/CancelServicePipelineDeploymentCommand.d.ts +10 -7
  32. package/dist-types/commands/CreateComponentCommand.d.ts +1 -0
  33. package/dist-types/commands/CreateServiceCommand.d.ts +4 -3
  34. package/dist-types/commands/CreateServiceInstanceCommand.d.ts +92 -0
  35. package/dist-types/commands/CreateServiceSyncConfigCommand.d.ts +86 -0
  36. package/dist-types/commands/CreateServiceTemplateCommand.d.ts +6 -5
  37. package/dist-types/commands/CreateServiceTemplateVersionCommand.d.ts +3 -2
  38. package/dist-types/commands/CreateTemplateSyncConfigCommand.d.ts +8 -6
  39. package/dist-types/commands/DeleteServiceCommand.d.ts +2 -1
  40. package/dist-types/commands/DeleteServiceSyncConfigCommand.d.ts +81 -0
  41. package/dist-types/commands/DeleteServiceTemplateCommand.d.ts +2 -1
  42. package/dist-types/commands/DeleteServiceTemplateVersionCommand.d.ts +9 -6
  43. package/dist-types/commands/GetResourcesSummaryCommand.d.ts +13 -9
  44. package/dist-types/commands/GetServiceInstanceCommand.d.ts +2 -1
  45. package/dist-types/commands/GetServiceInstanceSyncStatusCommand.d.ts +79 -0
  46. package/dist-types/commands/GetServiceSyncBlockerSummaryCommand.d.ts +79 -0
  47. package/dist-types/commands/GetServiceSyncConfigCommand.d.ts +78 -0
  48. package/dist-types/commands/ListServiceInstancesCommand.d.ts +2 -2
  49. package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -2
  50. package/dist-types/commands/NotifyResourceDeploymentStatusChangeCommand.d.ts +2 -1
  51. package/dist-types/commands/TagResourceCommand.d.ts +4 -3
  52. package/dist-types/commands/UntagResourceCommand.d.ts +4 -4
  53. package/dist-types/commands/UpdateComponentCommand.d.ts +1 -0
  54. package/dist-types/commands/UpdateServiceCommand.d.ts +4 -2
  55. package/dist-types/commands/UpdateServiceInstanceCommand.d.ts +5 -3
  56. package/dist-types/commands/UpdateServicePipelineCommand.d.ts +14 -8
  57. package/dist-types/commands/UpdateServiceSyncBlockerCommand.d.ts +82 -0
  58. package/dist-types/commands/UpdateServiceSyncConfigCommand.d.ts +85 -0
  59. package/dist-types/commands/UpdateTemplateSyncConfigCommand.d.ts +3 -2
  60. package/dist-types/commands/index.d.ts +8 -0
  61. package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  62. package/dist-types/models/models_0.d.ts +623 -148
  63. package/dist-types/protocols/Aws_json1_0.d.ts +24 -0
  64. package/dist-types/ts3.4/Proton.d.ts +136 -0
  65. package/dist-types/ts3.4/ProtonClient.d.ts +48 -0
  66. package/dist-types/ts3.4/commands/CreateServiceInstanceCommand.d.ts +41 -0
  67. package/dist-types/ts3.4/commands/CreateServiceSyncConfigCommand.d.ts +41 -0
  68. package/dist-types/ts3.4/commands/DeleteServiceSyncConfigCommand.d.ts +41 -0
  69. package/dist-types/ts3.4/commands/GetServiceInstanceSyncStatusCommand.d.ts +41 -0
  70. package/dist-types/ts3.4/commands/GetServiceSyncBlockerSummaryCommand.d.ts +41 -0
  71. package/dist-types/ts3.4/commands/GetServiceSyncConfigCommand.d.ts +41 -0
  72. package/dist-types/ts3.4/commands/UpdateServiceSyncBlockerCommand.d.ts +41 -0
  73. package/dist-types/ts3.4/commands/UpdateServiceSyncConfigCommand.d.ts +41 -0
  74. package/dist-types/ts3.4/commands/index.d.ts +8 -0
  75. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
  76. package/dist-types/ts3.4/models/models_0.d.ts +126 -9
  77. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +96 -0
  78. package/package.json +30 -30
@@ -111,6 +111,24 @@ export const serializeAws_json1_0CreateServiceCommand = async (input, context) =
111
111
  body = JSON.stringify(serializeAws_json1_0CreateServiceInput(input, context));
112
112
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
113
113
  };
114
+ export const serializeAws_json1_0CreateServiceInstanceCommand = async (input, context) => {
115
+ const headers = {
116
+ "content-type": "application/x-amz-json-1.0",
117
+ "x-amz-target": "AwsProton20200720.CreateServiceInstance",
118
+ };
119
+ let body;
120
+ body = JSON.stringify(serializeAws_json1_0CreateServiceInstanceInput(input, context));
121
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
122
+ };
123
+ export const serializeAws_json1_0CreateServiceSyncConfigCommand = async (input, context) => {
124
+ const headers = {
125
+ "content-type": "application/x-amz-json-1.0",
126
+ "x-amz-target": "AwsProton20200720.CreateServiceSyncConfig",
127
+ };
128
+ let body;
129
+ body = JSON.stringify(serializeAws_json1_0CreateServiceSyncConfigInput(input, context));
130
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
131
+ };
114
132
  export const serializeAws_json1_0CreateServiceTemplateCommand = async (input, context) => {
115
133
  const headers = {
116
134
  "content-type": "application/x-amz-json-1.0",
@@ -201,6 +219,15 @@ export const serializeAws_json1_0DeleteServiceCommand = async (input, context) =
201
219
  body = JSON.stringify(serializeAws_json1_0DeleteServiceInput(input, context));
202
220
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
203
221
  };
222
+ export const serializeAws_json1_0DeleteServiceSyncConfigCommand = async (input, context) => {
223
+ const headers = {
224
+ "content-type": "application/x-amz-json-1.0",
225
+ "x-amz-target": "AwsProton20200720.DeleteServiceSyncConfig",
226
+ };
227
+ let body;
228
+ body = JSON.stringify(serializeAws_json1_0DeleteServiceSyncConfigInput(input, context));
229
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
230
+ };
204
231
  export const serializeAws_json1_0DeleteServiceTemplateCommand = async (input, context) => {
205
232
  const headers = {
206
233
  "content-type": "application/x-amz-json-1.0",
@@ -327,6 +354,33 @@ export const serializeAws_json1_0GetServiceInstanceCommand = async (input, conte
327
354
  body = JSON.stringify(serializeAws_json1_0GetServiceInstanceInput(input, context));
328
355
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
329
356
  };
357
+ export const serializeAws_json1_0GetServiceInstanceSyncStatusCommand = async (input, context) => {
358
+ const headers = {
359
+ "content-type": "application/x-amz-json-1.0",
360
+ "x-amz-target": "AwsProton20200720.GetServiceInstanceSyncStatus",
361
+ };
362
+ let body;
363
+ body = JSON.stringify(serializeAws_json1_0GetServiceInstanceSyncStatusInput(input, context));
364
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
365
+ };
366
+ export const serializeAws_json1_0GetServiceSyncBlockerSummaryCommand = async (input, context) => {
367
+ const headers = {
368
+ "content-type": "application/x-amz-json-1.0",
369
+ "x-amz-target": "AwsProton20200720.GetServiceSyncBlockerSummary",
370
+ };
371
+ let body;
372
+ body = JSON.stringify(serializeAws_json1_0GetServiceSyncBlockerSummaryInput(input, context));
373
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
374
+ };
375
+ export const serializeAws_json1_0GetServiceSyncConfigCommand = async (input, context) => {
376
+ const headers = {
377
+ "content-type": "application/x-amz-json-1.0",
378
+ "x-amz-target": "AwsProton20200720.GetServiceSyncConfig",
379
+ };
380
+ let body;
381
+ body = JSON.stringify(serializeAws_json1_0GetServiceSyncConfigInput(input, context));
382
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
383
+ };
330
384
  export const serializeAws_json1_0GetServiceTemplateCommand = async (input, context) => {
331
385
  const headers = {
332
386
  "content-type": "application/x-amz-json-1.0",
@@ -660,6 +714,24 @@ export const serializeAws_json1_0UpdateServicePipelineCommand = async (input, co
660
714
  body = JSON.stringify(serializeAws_json1_0UpdateServicePipelineInput(input, context));
661
715
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
662
716
  };
717
+ export const serializeAws_json1_0UpdateServiceSyncBlockerCommand = async (input, context) => {
718
+ const headers = {
719
+ "content-type": "application/x-amz-json-1.0",
720
+ "x-amz-target": "AwsProton20200720.UpdateServiceSyncBlocker",
721
+ };
722
+ let body;
723
+ body = JSON.stringify(serializeAws_json1_0UpdateServiceSyncBlockerInput(input, context));
724
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
725
+ };
726
+ export const serializeAws_json1_0UpdateServiceSyncConfigCommand = async (input, context) => {
727
+ const headers = {
728
+ "content-type": "application/x-amz-json-1.0",
729
+ "x-amz-target": "AwsProton20200720.UpdateServiceSyncConfig",
730
+ };
731
+ let body;
732
+ body = JSON.stringify(serializeAws_json1_0UpdateServiceSyncConfigInput(input, context));
733
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
734
+ };
663
735
  export const serializeAws_json1_0UpdateServiceTemplateCommand = async (input, context) => {
664
736
  const headers = {
665
737
  "content-type": "application/x-amz-json-1.0",
@@ -1275,6 +1347,102 @@ const deserializeAws_json1_0CreateServiceCommandError = async (output, context)
1275
1347
  });
1276
1348
  }
1277
1349
  };
1350
+ export const deserializeAws_json1_0CreateServiceInstanceCommand = async (output, context) => {
1351
+ if (output.statusCode >= 300) {
1352
+ return deserializeAws_json1_0CreateServiceInstanceCommandError(output, context);
1353
+ }
1354
+ const data = await parseBody(output.body, context);
1355
+ let contents = {};
1356
+ contents = deserializeAws_json1_0CreateServiceInstanceOutput(data, context);
1357
+ const response = {
1358
+ $metadata: deserializeMetadata(output),
1359
+ ...contents,
1360
+ };
1361
+ return Promise.resolve(response);
1362
+ };
1363
+ const deserializeAws_json1_0CreateServiceInstanceCommandError = async (output, context) => {
1364
+ const parsedOutput = {
1365
+ ...output,
1366
+ body: await parseErrorBody(output.body, context),
1367
+ };
1368
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1369
+ switch (errorCode) {
1370
+ case "AccessDeniedException":
1371
+ case "com.amazonaws.proton#AccessDeniedException":
1372
+ throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
1373
+ case "ConflictException":
1374
+ case "com.amazonaws.proton#ConflictException":
1375
+ throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
1376
+ case "InternalServerException":
1377
+ case "com.amazonaws.proton#InternalServerException":
1378
+ throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
1379
+ case "ResourceNotFoundException":
1380
+ case "com.amazonaws.proton#ResourceNotFoundException":
1381
+ throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
1382
+ case "ThrottlingException":
1383
+ case "com.amazonaws.proton#ThrottlingException":
1384
+ throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
1385
+ case "ValidationException":
1386
+ case "com.amazonaws.proton#ValidationException":
1387
+ throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
1388
+ default:
1389
+ const parsedBody = parsedOutput.body;
1390
+ throwDefaultError({
1391
+ output,
1392
+ parsedBody,
1393
+ exceptionCtor: __BaseException,
1394
+ errorCode,
1395
+ });
1396
+ }
1397
+ };
1398
+ export const deserializeAws_json1_0CreateServiceSyncConfigCommand = async (output, context) => {
1399
+ if (output.statusCode >= 300) {
1400
+ return deserializeAws_json1_0CreateServiceSyncConfigCommandError(output, context);
1401
+ }
1402
+ const data = await parseBody(output.body, context);
1403
+ let contents = {};
1404
+ contents = deserializeAws_json1_0CreateServiceSyncConfigOutput(data, context);
1405
+ const response = {
1406
+ $metadata: deserializeMetadata(output),
1407
+ ...contents,
1408
+ };
1409
+ return Promise.resolve(response);
1410
+ };
1411
+ const deserializeAws_json1_0CreateServiceSyncConfigCommandError = async (output, context) => {
1412
+ const parsedOutput = {
1413
+ ...output,
1414
+ body: await parseErrorBody(output.body, context),
1415
+ };
1416
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1417
+ switch (errorCode) {
1418
+ case "AccessDeniedException":
1419
+ case "com.amazonaws.proton#AccessDeniedException":
1420
+ throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
1421
+ case "ConflictException":
1422
+ case "com.amazonaws.proton#ConflictException":
1423
+ throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
1424
+ case "InternalServerException":
1425
+ case "com.amazonaws.proton#InternalServerException":
1426
+ throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
1427
+ case "ServiceQuotaExceededException":
1428
+ case "com.amazonaws.proton#ServiceQuotaExceededException":
1429
+ throw await deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context);
1430
+ case "ThrottlingException":
1431
+ case "com.amazonaws.proton#ThrottlingException":
1432
+ throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
1433
+ case "ValidationException":
1434
+ case "com.amazonaws.proton#ValidationException":
1435
+ throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
1436
+ default:
1437
+ const parsedBody = parsedOutput.body;
1438
+ throwDefaultError({
1439
+ output,
1440
+ parsedBody,
1441
+ exceptionCtor: __BaseException,
1442
+ errorCode,
1443
+ });
1444
+ }
1445
+ };
1278
1446
  export const deserializeAws_json1_0CreateServiceTemplateCommand = async (output, context) => {
1279
1447
  if (output.statusCode >= 300) {
1280
1448
  return deserializeAws_json1_0CreateServiceTemplateCommandError(output, context);
@@ -1758,6 +1926,54 @@ const deserializeAws_json1_0DeleteServiceCommandError = async (output, context)
1758
1926
  });
1759
1927
  }
1760
1928
  };
1929
+ export const deserializeAws_json1_0DeleteServiceSyncConfigCommand = async (output, context) => {
1930
+ if (output.statusCode >= 300) {
1931
+ return deserializeAws_json1_0DeleteServiceSyncConfigCommandError(output, context);
1932
+ }
1933
+ const data = await parseBody(output.body, context);
1934
+ let contents = {};
1935
+ contents = deserializeAws_json1_0DeleteServiceSyncConfigOutput(data, context);
1936
+ const response = {
1937
+ $metadata: deserializeMetadata(output),
1938
+ ...contents,
1939
+ };
1940
+ return Promise.resolve(response);
1941
+ };
1942
+ const deserializeAws_json1_0DeleteServiceSyncConfigCommandError = async (output, context) => {
1943
+ const parsedOutput = {
1944
+ ...output,
1945
+ body: await parseErrorBody(output.body, context),
1946
+ };
1947
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1948
+ switch (errorCode) {
1949
+ case "AccessDeniedException":
1950
+ case "com.amazonaws.proton#AccessDeniedException":
1951
+ throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
1952
+ case "ConflictException":
1953
+ case "com.amazonaws.proton#ConflictException":
1954
+ throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
1955
+ case "InternalServerException":
1956
+ case "com.amazonaws.proton#InternalServerException":
1957
+ throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
1958
+ case "ResourceNotFoundException":
1959
+ case "com.amazonaws.proton#ResourceNotFoundException":
1960
+ throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
1961
+ case "ThrottlingException":
1962
+ case "com.amazonaws.proton#ThrottlingException":
1963
+ throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
1964
+ case "ValidationException":
1965
+ case "com.amazonaws.proton#ValidationException":
1966
+ throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
1967
+ default:
1968
+ const parsedBody = parsedOutput.body;
1969
+ throwDefaultError({
1970
+ output,
1971
+ parsedBody,
1972
+ exceptionCtor: __BaseException,
1973
+ errorCode,
1974
+ });
1975
+ }
1976
+ };
1761
1977
  export const deserializeAws_json1_0DeleteServiceTemplateCommand = async (output, context) => {
1762
1978
  if (output.statusCode >= 300) {
1763
1979
  return deserializeAws_json1_0DeleteServiceTemplateCommandError(output, context);
@@ -2153,9 +2369,141 @@ const deserializeAws_json1_0GetEnvironmentTemplateVersionCommandError = async (o
2153
2369
  case "InternalServerException":
2154
2370
  case "com.amazonaws.proton#InternalServerException":
2155
2371
  throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
2156
- case "ResourceNotFoundException":
2157
- case "com.amazonaws.proton#ResourceNotFoundException":
2158
- throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
2372
+ case "ResourceNotFoundException":
2373
+ case "com.amazonaws.proton#ResourceNotFoundException":
2374
+ throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
2375
+ case "ThrottlingException":
2376
+ case "com.amazonaws.proton#ThrottlingException":
2377
+ throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
2378
+ case "ValidationException":
2379
+ case "com.amazonaws.proton#ValidationException":
2380
+ throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
2381
+ default:
2382
+ const parsedBody = parsedOutput.body;
2383
+ throwDefaultError({
2384
+ output,
2385
+ parsedBody,
2386
+ exceptionCtor: __BaseException,
2387
+ errorCode,
2388
+ });
2389
+ }
2390
+ };
2391
+ export const deserializeAws_json1_0GetRepositoryCommand = async (output, context) => {
2392
+ if (output.statusCode >= 300) {
2393
+ return deserializeAws_json1_0GetRepositoryCommandError(output, context);
2394
+ }
2395
+ const data = await parseBody(output.body, context);
2396
+ let contents = {};
2397
+ contents = deserializeAws_json1_0GetRepositoryOutput(data, context);
2398
+ const response = {
2399
+ $metadata: deserializeMetadata(output),
2400
+ ...contents,
2401
+ };
2402
+ return Promise.resolve(response);
2403
+ };
2404
+ const deserializeAws_json1_0GetRepositoryCommandError = async (output, context) => {
2405
+ const parsedOutput = {
2406
+ ...output,
2407
+ body: await parseErrorBody(output.body, context),
2408
+ };
2409
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2410
+ switch (errorCode) {
2411
+ case "AccessDeniedException":
2412
+ case "com.amazonaws.proton#AccessDeniedException":
2413
+ throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
2414
+ case "InternalServerException":
2415
+ case "com.amazonaws.proton#InternalServerException":
2416
+ throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
2417
+ case "ResourceNotFoundException":
2418
+ case "com.amazonaws.proton#ResourceNotFoundException":
2419
+ throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
2420
+ case "ThrottlingException":
2421
+ case "com.amazonaws.proton#ThrottlingException":
2422
+ throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
2423
+ case "ValidationException":
2424
+ case "com.amazonaws.proton#ValidationException":
2425
+ throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
2426
+ default:
2427
+ const parsedBody = parsedOutput.body;
2428
+ throwDefaultError({
2429
+ output,
2430
+ parsedBody,
2431
+ exceptionCtor: __BaseException,
2432
+ errorCode,
2433
+ });
2434
+ }
2435
+ };
2436
+ export const deserializeAws_json1_0GetRepositorySyncStatusCommand = async (output, context) => {
2437
+ if (output.statusCode >= 300) {
2438
+ return deserializeAws_json1_0GetRepositorySyncStatusCommandError(output, context);
2439
+ }
2440
+ const data = await parseBody(output.body, context);
2441
+ let contents = {};
2442
+ contents = deserializeAws_json1_0GetRepositorySyncStatusOutput(data, context);
2443
+ const response = {
2444
+ $metadata: deserializeMetadata(output),
2445
+ ...contents,
2446
+ };
2447
+ return Promise.resolve(response);
2448
+ };
2449
+ const deserializeAws_json1_0GetRepositorySyncStatusCommandError = async (output, context) => {
2450
+ const parsedOutput = {
2451
+ ...output,
2452
+ body: await parseErrorBody(output.body, context),
2453
+ };
2454
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2455
+ switch (errorCode) {
2456
+ case "AccessDeniedException":
2457
+ case "com.amazonaws.proton#AccessDeniedException":
2458
+ throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
2459
+ case "InternalServerException":
2460
+ case "com.amazonaws.proton#InternalServerException":
2461
+ throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
2462
+ case "ResourceNotFoundException":
2463
+ case "com.amazonaws.proton#ResourceNotFoundException":
2464
+ throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
2465
+ case "ThrottlingException":
2466
+ case "com.amazonaws.proton#ThrottlingException":
2467
+ throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
2468
+ case "ValidationException":
2469
+ case "com.amazonaws.proton#ValidationException":
2470
+ throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
2471
+ default:
2472
+ const parsedBody = parsedOutput.body;
2473
+ throwDefaultError({
2474
+ output,
2475
+ parsedBody,
2476
+ exceptionCtor: __BaseException,
2477
+ errorCode,
2478
+ });
2479
+ }
2480
+ };
2481
+ export const deserializeAws_json1_0GetResourcesSummaryCommand = async (output, context) => {
2482
+ if (output.statusCode >= 300) {
2483
+ return deserializeAws_json1_0GetResourcesSummaryCommandError(output, context);
2484
+ }
2485
+ const data = await parseBody(output.body, context);
2486
+ let contents = {};
2487
+ contents = deserializeAws_json1_0GetResourcesSummaryOutput(data, context);
2488
+ const response = {
2489
+ $metadata: deserializeMetadata(output),
2490
+ ...contents,
2491
+ };
2492
+ return Promise.resolve(response);
2493
+ };
2494
+ const deserializeAws_json1_0GetResourcesSummaryCommandError = async (output, context) => {
2495
+ const parsedOutput = {
2496
+ ...output,
2497
+ body: await parseErrorBody(output.body, context),
2498
+ };
2499
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2500
+ switch (errorCode) {
2501
+ case "AccessDeniedException":
2502
+ case "com.amazonaws.proton#AccessDeniedException":
2503
+ throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
2504
+ case "InternalServerException":
2505
+ case "com.amazonaws.proton#InternalServerException":
2506
+ throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
2159
2507
  case "ThrottlingException":
2160
2508
  case "com.amazonaws.proton#ThrottlingException":
2161
2509
  throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
@@ -2172,20 +2520,20 @@ const deserializeAws_json1_0GetEnvironmentTemplateVersionCommandError = async (o
2172
2520
  });
2173
2521
  }
2174
2522
  };
2175
- export const deserializeAws_json1_0GetRepositoryCommand = async (output, context) => {
2523
+ export const deserializeAws_json1_0GetServiceCommand = async (output, context) => {
2176
2524
  if (output.statusCode >= 300) {
2177
- return deserializeAws_json1_0GetRepositoryCommandError(output, context);
2525
+ return deserializeAws_json1_0GetServiceCommandError(output, context);
2178
2526
  }
2179
2527
  const data = await parseBody(output.body, context);
2180
2528
  let contents = {};
2181
- contents = deserializeAws_json1_0GetRepositoryOutput(data, context);
2529
+ contents = deserializeAws_json1_0GetServiceOutput(data, context);
2182
2530
  const response = {
2183
2531
  $metadata: deserializeMetadata(output),
2184
2532
  ...contents,
2185
2533
  };
2186
2534
  return Promise.resolve(response);
2187
2535
  };
2188
- const deserializeAws_json1_0GetRepositoryCommandError = async (output, context) => {
2536
+ const deserializeAws_json1_0GetServiceCommandError = async (output, context) => {
2189
2537
  const parsedOutput = {
2190
2538
  ...output,
2191
2539
  body: await parseErrorBody(output.body, context),
@@ -2217,20 +2565,20 @@ const deserializeAws_json1_0GetRepositoryCommandError = async (output, context)
2217
2565
  });
2218
2566
  }
2219
2567
  };
2220
- export const deserializeAws_json1_0GetRepositorySyncStatusCommand = async (output, context) => {
2568
+ export const deserializeAws_json1_0GetServiceInstanceCommand = async (output, context) => {
2221
2569
  if (output.statusCode >= 300) {
2222
- return deserializeAws_json1_0GetRepositorySyncStatusCommandError(output, context);
2570
+ return deserializeAws_json1_0GetServiceInstanceCommandError(output, context);
2223
2571
  }
2224
2572
  const data = await parseBody(output.body, context);
2225
2573
  let contents = {};
2226
- contents = deserializeAws_json1_0GetRepositorySyncStatusOutput(data, context);
2574
+ contents = deserializeAws_json1_0GetServiceInstanceOutput(data, context);
2227
2575
  const response = {
2228
2576
  $metadata: deserializeMetadata(output),
2229
2577
  ...contents,
2230
2578
  };
2231
2579
  return Promise.resolve(response);
2232
2580
  };
2233
- const deserializeAws_json1_0GetRepositorySyncStatusCommandError = async (output, context) => {
2581
+ const deserializeAws_json1_0GetServiceInstanceCommandError = async (output, context) => {
2234
2582
  const parsedOutput = {
2235
2583
  ...output,
2236
2584
  body: await parseErrorBody(output.body, context),
@@ -2262,20 +2610,20 @@ const deserializeAws_json1_0GetRepositorySyncStatusCommandError = async (output,
2262
2610
  });
2263
2611
  }
2264
2612
  };
2265
- export const deserializeAws_json1_0GetResourcesSummaryCommand = async (output, context) => {
2613
+ export const deserializeAws_json1_0GetServiceInstanceSyncStatusCommand = async (output, context) => {
2266
2614
  if (output.statusCode >= 300) {
2267
- return deserializeAws_json1_0GetResourcesSummaryCommandError(output, context);
2615
+ return deserializeAws_json1_0GetServiceInstanceSyncStatusCommandError(output, context);
2268
2616
  }
2269
2617
  const data = await parseBody(output.body, context);
2270
2618
  let contents = {};
2271
- contents = deserializeAws_json1_0GetResourcesSummaryOutput(data, context);
2619
+ contents = deserializeAws_json1_0GetServiceInstanceSyncStatusOutput(data, context);
2272
2620
  const response = {
2273
2621
  $metadata: deserializeMetadata(output),
2274
2622
  ...contents,
2275
2623
  };
2276
2624
  return Promise.resolve(response);
2277
2625
  };
2278
- const deserializeAws_json1_0GetResourcesSummaryCommandError = async (output, context) => {
2626
+ const deserializeAws_json1_0GetServiceInstanceSyncStatusCommandError = async (output, context) => {
2279
2627
  const parsedOutput = {
2280
2628
  ...output,
2281
2629
  body: await parseErrorBody(output.body, context),
@@ -2288,6 +2636,9 @@ const deserializeAws_json1_0GetResourcesSummaryCommandError = async (output, con
2288
2636
  case "InternalServerException":
2289
2637
  case "com.amazonaws.proton#InternalServerException":
2290
2638
  throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
2639
+ case "ResourceNotFoundException":
2640
+ case "com.amazonaws.proton#ResourceNotFoundException":
2641
+ throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
2291
2642
  case "ThrottlingException":
2292
2643
  case "com.amazonaws.proton#ThrottlingException":
2293
2644
  throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
@@ -2304,20 +2655,20 @@ const deserializeAws_json1_0GetResourcesSummaryCommandError = async (output, con
2304
2655
  });
2305
2656
  }
2306
2657
  };
2307
- export const deserializeAws_json1_0GetServiceCommand = async (output, context) => {
2658
+ export const deserializeAws_json1_0GetServiceSyncBlockerSummaryCommand = async (output, context) => {
2308
2659
  if (output.statusCode >= 300) {
2309
- return deserializeAws_json1_0GetServiceCommandError(output, context);
2660
+ return deserializeAws_json1_0GetServiceSyncBlockerSummaryCommandError(output, context);
2310
2661
  }
2311
2662
  const data = await parseBody(output.body, context);
2312
2663
  let contents = {};
2313
- contents = deserializeAws_json1_0GetServiceOutput(data, context);
2664
+ contents = deserializeAws_json1_0GetServiceSyncBlockerSummaryOutput(data, context);
2314
2665
  const response = {
2315
2666
  $metadata: deserializeMetadata(output),
2316
2667
  ...contents,
2317
2668
  };
2318
2669
  return Promise.resolve(response);
2319
2670
  };
2320
- const deserializeAws_json1_0GetServiceCommandError = async (output, context) => {
2671
+ const deserializeAws_json1_0GetServiceSyncBlockerSummaryCommandError = async (output, context) => {
2321
2672
  const parsedOutput = {
2322
2673
  ...output,
2323
2674
  body: await parseErrorBody(output.body, context),
@@ -2349,20 +2700,20 @@ const deserializeAws_json1_0GetServiceCommandError = async (output, context) =>
2349
2700
  });
2350
2701
  }
2351
2702
  };
2352
- export const deserializeAws_json1_0GetServiceInstanceCommand = async (output, context) => {
2703
+ export const deserializeAws_json1_0GetServiceSyncConfigCommand = async (output, context) => {
2353
2704
  if (output.statusCode >= 300) {
2354
- return deserializeAws_json1_0GetServiceInstanceCommandError(output, context);
2705
+ return deserializeAws_json1_0GetServiceSyncConfigCommandError(output, context);
2355
2706
  }
2356
2707
  const data = await parseBody(output.body, context);
2357
2708
  let contents = {};
2358
- contents = deserializeAws_json1_0GetServiceInstanceOutput(data, context);
2709
+ contents = deserializeAws_json1_0GetServiceSyncConfigOutput(data, context);
2359
2710
  const response = {
2360
2711
  $metadata: deserializeMetadata(output),
2361
2712
  ...contents,
2362
2713
  };
2363
2714
  return Promise.resolve(response);
2364
2715
  };
2365
- const deserializeAws_json1_0GetServiceInstanceCommandError = async (output, context) => {
2716
+ const deserializeAws_json1_0GetServiceSyncConfigCommandError = async (output, context) => {
2366
2717
  const parsedOutput = {
2367
2718
  ...output,
2368
2719
  body: await parseErrorBody(output.body, context),
@@ -4086,6 +4437,102 @@ const deserializeAws_json1_0UpdateServicePipelineCommandError = async (output, c
4086
4437
  });
4087
4438
  }
4088
4439
  };
4440
+ export const deserializeAws_json1_0UpdateServiceSyncBlockerCommand = async (output, context) => {
4441
+ if (output.statusCode >= 300) {
4442
+ return deserializeAws_json1_0UpdateServiceSyncBlockerCommandError(output, context);
4443
+ }
4444
+ const data = await parseBody(output.body, context);
4445
+ let contents = {};
4446
+ contents = deserializeAws_json1_0UpdateServiceSyncBlockerOutput(data, context);
4447
+ const response = {
4448
+ $metadata: deserializeMetadata(output),
4449
+ ...contents,
4450
+ };
4451
+ return Promise.resolve(response);
4452
+ };
4453
+ const deserializeAws_json1_0UpdateServiceSyncBlockerCommandError = async (output, context) => {
4454
+ const parsedOutput = {
4455
+ ...output,
4456
+ body: await parseErrorBody(output.body, context),
4457
+ };
4458
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4459
+ switch (errorCode) {
4460
+ case "AccessDeniedException":
4461
+ case "com.amazonaws.proton#AccessDeniedException":
4462
+ throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
4463
+ case "ConflictException":
4464
+ case "com.amazonaws.proton#ConflictException":
4465
+ throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
4466
+ case "InternalServerException":
4467
+ case "com.amazonaws.proton#InternalServerException":
4468
+ throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
4469
+ case "ResourceNotFoundException":
4470
+ case "com.amazonaws.proton#ResourceNotFoundException":
4471
+ throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
4472
+ case "ThrottlingException":
4473
+ case "com.amazonaws.proton#ThrottlingException":
4474
+ throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
4475
+ case "ValidationException":
4476
+ case "com.amazonaws.proton#ValidationException":
4477
+ throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
4478
+ default:
4479
+ const parsedBody = parsedOutput.body;
4480
+ throwDefaultError({
4481
+ output,
4482
+ parsedBody,
4483
+ exceptionCtor: __BaseException,
4484
+ errorCode,
4485
+ });
4486
+ }
4487
+ };
4488
+ export const deserializeAws_json1_0UpdateServiceSyncConfigCommand = async (output, context) => {
4489
+ if (output.statusCode >= 300) {
4490
+ return deserializeAws_json1_0UpdateServiceSyncConfigCommandError(output, context);
4491
+ }
4492
+ const data = await parseBody(output.body, context);
4493
+ let contents = {};
4494
+ contents = deserializeAws_json1_0UpdateServiceSyncConfigOutput(data, context);
4495
+ const response = {
4496
+ $metadata: deserializeMetadata(output),
4497
+ ...contents,
4498
+ };
4499
+ return Promise.resolve(response);
4500
+ };
4501
+ const deserializeAws_json1_0UpdateServiceSyncConfigCommandError = async (output, context) => {
4502
+ const parsedOutput = {
4503
+ ...output,
4504
+ body: await parseErrorBody(output.body, context),
4505
+ };
4506
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4507
+ switch (errorCode) {
4508
+ case "AccessDeniedException":
4509
+ case "com.amazonaws.proton#AccessDeniedException":
4510
+ throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
4511
+ case "ConflictException":
4512
+ case "com.amazonaws.proton#ConflictException":
4513
+ throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
4514
+ case "InternalServerException":
4515
+ case "com.amazonaws.proton#InternalServerException":
4516
+ throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
4517
+ case "ResourceNotFoundException":
4518
+ case "com.amazonaws.proton#ResourceNotFoundException":
4519
+ throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
4520
+ case "ThrottlingException":
4521
+ case "com.amazonaws.proton#ThrottlingException":
4522
+ throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
4523
+ case "ValidationException":
4524
+ case "com.amazonaws.proton#ValidationException":
4525
+ throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
4526
+ default:
4527
+ const parsedBody = parsedOutput.body;
4528
+ throwDefaultError({
4529
+ output,
4530
+ parsedBody,
4531
+ exceptionCtor: __BaseException,
4532
+ errorCode,
4533
+ });
4534
+ }
4535
+ };
4089
4536
  export const deserializeAws_json1_0UpdateServiceTemplateCommand = async (output, context) => {
4090
4537
  if (output.statusCode >= 300) {
4091
4538
  return deserializeAws_json1_0UpdateServiceTemplateCommandError(output, context);
@@ -4334,6 +4781,7 @@ const serializeAws_json1_0CompatibleEnvironmentTemplateInputList = (input, conte
4334
4781
  };
4335
4782
  const serializeAws_json1_0CreateComponentInput = (input, context) => {
4336
4783
  return {
4784
+ clientToken: input.clientToken ?? generateIdempotencyToken(),
4337
4785
  ...(input.description != null && { description: input.description }),
4338
4786
  ...(input.environmentName != null && { environmentName: input.environmentName }),
4339
4787
  ...(input.manifest != null && { manifest: input.manifest }),
@@ -4419,6 +4867,26 @@ const serializeAws_json1_0CreateServiceInput = (input, context) => {
4419
4867
  ...(input.templateName != null && { templateName: input.templateName }),
4420
4868
  };
4421
4869
  };
4870
+ const serializeAws_json1_0CreateServiceInstanceInput = (input, context) => {
4871
+ return {
4872
+ clientToken: input.clientToken ?? generateIdempotencyToken(),
4873
+ ...(input.name != null && { name: input.name }),
4874
+ ...(input.serviceName != null && { serviceName: input.serviceName }),
4875
+ ...(input.spec != null && { spec: input.spec }),
4876
+ ...(input.tags != null && { tags: serializeAws_json1_0TagList(input.tags, context) }),
4877
+ ...(input.templateMajorVersion != null && { templateMajorVersion: input.templateMajorVersion }),
4878
+ ...(input.templateMinorVersion != null && { templateMinorVersion: input.templateMinorVersion }),
4879
+ };
4880
+ };
4881
+ const serializeAws_json1_0CreateServiceSyncConfigInput = (input, context) => {
4882
+ return {
4883
+ ...(input.branch != null && { branch: input.branch }),
4884
+ ...(input.filePath != null && { filePath: input.filePath }),
4885
+ ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
4886
+ ...(input.repositoryProvider != null && { repositoryProvider: input.repositoryProvider }),
4887
+ ...(input.serviceName != null && { serviceName: input.serviceName }),
4888
+ };
4889
+ };
4422
4890
  const serializeAws_json1_0CreateServiceTemplateInput = (input, context) => {
4423
4891
  return {
4424
4892
  ...(input.description != null && { description: input.description }),
@@ -4493,6 +4961,11 @@ const serializeAws_json1_0DeleteServiceInput = (input, context) => {
4493
4961
  ...(input.name != null && { name: input.name }),
4494
4962
  };
4495
4963
  };
4964
+ const serializeAws_json1_0DeleteServiceSyncConfigInput = (input, context) => {
4965
+ return {
4966
+ ...(input.serviceName != null && { serviceName: input.serviceName }),
4967
+ };
4968
+ };
4496
4969
  const serializeAws_json1_0DeleteServiceTemplateInput = (input, context) => {
4497
4970
  return {
4498
4971
  ...(input.name != null && { name: input.name }),
@@ -4589,6 +5062,23 @@ const serializeAws_json1_0GetServiceInstanceInput = (input, context) => {
4589
5062
  ...(input.serviceName != null && { serviceName: input.serviceName }),
4590
5063
  };
4591
5064
  };
5065
+ const serializeAws_json1_0GetServiceInstanceSyncStatusInput = (input, context) => {
5066
+ return {
5067
+ ...(input.serviceInstanceName != null && { serviceInstanceName: input.serviceInstanceName }),
5068
+ ...(input.serviceName != null && { serviceName: input.serviceName }),
5069
+ };
5070
+ };
5071
+ const serializeAws_json1_0GetServiceSyncBlockerSummaryInput = (input, context) => {
5072
+ return {
5073
+ ...(input.serviceInstanceName != null && { serviceInstanceName: input.serviceInstanceName }),
5074
+ ...(input.serviceName != null && { serviceName: input.serviceName }),
5075
+ };
5076
+ };
5077
+ const serializeAws_json1_0GetServiceSyncConfigInput = (input, context) => {
5078
+ return {
5079
+ ...(input.serviceName != null && { serviceName: input.serviceName }),
5080
+ };
5081
+ };
4592
5082
  const serializeAws_json1_0GetServiceTemplateInput = (input, context) => {
4593
5083
  return {
4594
5084
  ...(input.name != null && { name: input.name }),
@@ -4872,6 +5362,7 @@ const serializeAws_json1_0UpdateAccountSettingsInput = (input, context) => {
4872
5362
  };
4873
5363
  const serializeAws_json1_0UpdateComponentInput = (input, context) => {
4874
5364
  return {
5365
+ clientToken: input.clientToken ?? generateIdempotencyToken(),
4875
5366
  ...(input.deploymentType != null && { deploymentType: input.deploymentType }),
4876
5367
  ...(input.description != null && { description: input.description }),
4877
5368
  ...(input.name != null && { name: input.name }),
@@ -4933,6 +5424,7 @@ const serializeAws_json1_0UpdateServiceInput = (input, context) => {
4933
5424
  };
4934
5425
  const serializeAws_json1_0UpdateServiceInstanceInput = (input, context) => {
4935
5426
  return {
5427
+ clientToken: input.clientToken ?? generateIdempotencyToken(),
4936
5428
  ...(input.deploymentType != null && { deploymentType: input.deploymentType }),
4937
5429
  ...(input.name != null && { name: input.name }),
4938
5430
  ...(input.serviceName != null && { serviceName: input.serviceName }),
@@ -4950,6 +5442,21 @@ const serializeAws_json1_0UpdateServicePipelineInput = (input, context) => {
4950
5442
  ...(input.templateMinorVersion != null && { templateMinorVersion: input.templateMinorVersion }),
4951
5443
  };
4952
5444
  };
5445
+ const serializeAws_json1_0UpdateServiceSyncBlockerInput = (input, context) => {
5446
+ return {
5447
+ ...(input.id != null && { id: input.id }),
5448
+ ...(input.resolvedReason != null && { resolvedReason: input.resolvedReason }),
5449
+ };
5450
+ };
5451
+ const serializeAws_json1_0UpdateServiceSyncConfigInput = (input, context) => {
5452
+ return {
5453
+ ...(input.branch != null && { branch: input.branch }),
5454
+ ...(input.filePath != null && { filePath: input.filePath }),
5455
+ ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
5456
+ ...(input.repositoryProvider != null && { repositoryProvider: input.repositoryProvider }),
5457
+ ...(input.serviceName != null && { serviceName: input.serviceName }),
5458
+ };
5459
+ };
4953
5460
  const serializeAws_json1_0UpdateServiceTemplateInput = (input, context) => {
4954
5461
  return {
4955
5462
  ...(input.description != null && { description: input.description }),
@@ -5050,6 +5557,7 @@ const deserializeAws_json1_0Component = (output, context) => {
5050
5557
  deploymentStatusMessage: __expectString(output.deploymentStatusMessage),
5051
5558
  description: __expectString(output.description),
5052
5559
  environmentName: __expectString(output.environmentName),
5560
+ lastClientRequestToken: __expectString(output.lastClientRequestToken),
5053
5561
  lastDeploymentAttemptedAt: output.lastDeploymentAttemptedAt != null
5054
5562
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastDeploymentAttemptedAt)))
5055
5563
  : undefined,
@@ -5157,11 +5665,25 @@ const deserializeAws_json1_0CreateRepositoryOutput = (output, context) => {
5157
5665
  repository: output.repository != null ? deserializeAws_json1_0Repository(output.repository, context) : undefined,
5158
5666
  };
5159
5667
  };
5668
+ const deserializeAws_json1_0CreateServiceInstanceOutput = (output, context) => {
5669
+ return {
5670
+ serviceInstance: output.serviceInstance != null
5671
+ ? deserializeAws_json1_0ServiceInstance(output.serviceInstance, context)
5672
+ : undefined,
5673
+ };
5674
+ };
5160
5675
  const deserializeAws_json1_0CreateServiceOutput = (output, context) => {
5161
5676
  return {
5162
5677
  service: output.service != null ? deserializeAws_json1_0Service(output.service, context) : undefined,
5163
5678
  };
5164
5679
  };
5680
+ const deserializeAws_json1_0CreateServiceSyncConfigOutput = (output, context) => {
5681
+ return {
5682
+ serviceSyncConfig: output.serviceSyncConfig != null
5683
+ ? deserializeAws_json1_0ServiceSyncConfig(output.serviceSyncConfig, context)
5684
+ : undefined,
5685
+ };
5686
+ };
5165
5687
  const deserializeAws_json1_0CreateServiceTemplateOutput = (output, context) => {
5166
5688
  return {
5167
5689
  serviceTemplate: output.serviceTemplate != null
@@ -5224,6 +5746,13 @@ const deserializeAws_json1_0DeleteServiceOutput = (output, context) => {
5224
5746
  service: output.service != null ? deserializeAws_json1_0Service(output.service, context) : undefined,
5225
5747
  };
5226
5748
  };
5749
+ const deserializeAws_json1_0DeleteServiceSyncConfigOutput = (output, context) => {
5750
+ return {
5751
+ serviceSyncConfig: output.serviceSyncConfig != null
5752
+ ? deserializeAws_json1_0ServiceSyncConfig(output.serviceSyncConfig, context)
5753
+ : undefined,
5754
+ };
5755
+ };
5227
5756
  const deserializeAws_json1_0DeleteServiceTemplateOutput = (output, context) => {
5228
5757
  return {
5229
5758
  serviceTemplate: output.serviceTemplate != null
@@ -5501,11 +6030,34 @@ const deserializeAws_json1_0GetServiceInstanceOutput = (output, context) => {
5501
6030
  : undefined,
5502
6031
  };
5503
6032
  };
6033
+ const deserializeAws_json1_0GetServiceInstanceSyncStatusOutput = (output, context) => {
6034
+ return {
6035
+ desiredState: output.desiredState != null ? deserializeAws_json1_0Revision(output.desiredState, context) : undefined,
6036
+ latestSuccessfulSync: output.latestSuccessfulSync != null
6037
+ ? deserializeAws_json1_0ResourceSyncAttempt(output.latestSuccessfulSync, context)
6038
+ : undefined,
6039
+ latestSync: output.latestSync != null ? deserializeAws_json1_0ResourceSyncAttempt(output.latestSync, context) : undefined,
6040
+ };
6041
+ };
5504
6042
  const deserializeAws_json1_0GetServiceOutput = (output, context) => {
5505
6043
  return {
5506
6044
  service: output.service != null ? deserializeAws_json1_0Service(output.service, context) : undefined,
5507
6045
  };
5508
6046
  };
6047
+ const deserializeAws_json1_0GetServiceSyncBlockerSummaryOutput = (output, context) => {
6048
+ return {
6049
+ serviceSyncBlockerSummary: output.serviceSyncBlockerSummary != null
6050
+ ? deserializeAws_json1_0ServiceSyncBlockerSummary(output.serviceSyncBlockerSummary, context)
6051
+ : undefined,
6052
+ };
6053
+ };
6054
+ const deserializeAws_json1_0GetServiceSyncConfigOutput = (output, context) => {
6055
+ return {
6056
+ serviceSyncConfig: output.serviceSyncConfig != null
6057
+ ? deserializeAws_json1_0ServiceSyncConfig(output.serviceSyncConfig, context)
6058
+ : undefined,
6059
+ };
6060
+ };
5509
6061
  const deserializeAws_json1_0GetServiceTemplateOutput = (output, context) => {
5510
6062
  return {
5511
6063
  serviceTemplate: output.serviceTemplate != null
@@ -5541,6 +6093,17 @@ const deserializeAws_json1_0InternalServerException = (output, context) => {
5541
6093
  message: __expectString(output.message),
5542
6094
  };
5543
6095
  };
6096
+ const deserializeAws_json1_0LatestSyncBlockers = (output, context) => {
6097
+ const retVal = (output || [])
6098
+ .filter((e) => e != null)
6099
+ .map((entry) => {
6100
+ if (entry === null) {
6101
+ return null;
6102
+ }
6103
+ return deserializeAws_json1_0SyncBlocker(entry, context);
6104
+ });
6105
+ return retVal;
6106
+ };
5544
6107
  const deserializeAws_json1_0ListComponentOutputsOutput = (output, context) => {
5545
6108
  return {
5546
6109
  nextToken: __expectString(output.nextToken),
@@ -5752,6 +6315,7 @@ const deserializeAws_json1_0RepositoryBranch = (output, context) => {
5752
6315
  const deserializeAws_json1_0RepositorySummary = (output, context) => {
5753
6316
  return {
5754
6317
  arn: __expectString(output.arn),
6318
+ connectionArn: __expectString(output.connectionArn),
5755
6319
  name: __expectString(output.name),
5756
6320
  provider: __expectString(output.provider),
5757
6321
  };
@@ -5890,6 +6454,7 @@ const deserializeAws_json1_0ServiceInstance = (output, context) => {
5890
6454
  deploymentStatus: __expectString(output.deploymentStatus),
5891
6455
  deploymentStatusMessage: __expectString(output.deploymentStatusMessage),
5892
6456
  environmentName: __expectString(output.environmentName),
6457
+ lastClientRequestToken: __expectString(output.lastClientRequestToken),
5893
6458
  lastDeploymentAttemptedAt: output.lastDeploymentAttemptedAt != null
5894
6459
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastDeploymentAttemptedAt)))
5895
6460
  : undefined,
@@ -5983,6 +6548,24 @@ const deserializeAws_json1_0ServiceSummaryList = (output, context) => {
5983
6548
  });
5984
6549
  return retVal;
5985
6550
  };
6551
+ const deserializeAws_json1_0ServiceSyncBlockerSummary = (output, context) => {
6552
+ return {
6553
+ latestBlockers: output.latestBlockers != null
6554
+ ? deserializeAws_json1_0LatestSyncBlockers(output.latestBlockers, context)
6555
+ : undefined,
6556
+ serviceInstanceName: __expectString(output.serviceInstanceName),
6557
+ serviceName: __expectString(output.serviceName),
6558
+ };
6559
+ };
6560
+ const deserializeAws_json1_0ServiceSyncConfig = (output, context) => {
6561
+ return {
6562
+ branch: __expectString(output.branch),
6563
+ filePath: __expectString(output.filePath),
6564
+ repositoryName: __expectString(output.repositoryName),
6565
+ repositoryProvider: __expectString(output.repositoryProvider),
6566
+ serviceName: __expectString(output.serviceName),
6567
+ };
6568
+ };
5986
6569
  const deserializeAws_json1_0ServiceTemplate = (output, context) => {
5987
6570
  return {
5988
6571
  arn: __expectString(output.arn),
@@ -6084,6 +6667,35 @@ const deserializeAws_json1_0ServiceTemplateVersionSummaryList = (output, context
6084
6667
  });
6085
6668
  return retVal;
6086
6669
  };
6670
+ const deserializeAws_json1_0SyncBlocker = (output, context) => {
6671
+ return {
6672
+ contexts: output.contexts != null ? deserializeAws_json1_0SyncBlockerContexts(output.contexts, context) : undefined,
6673
+ createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
6674
+ createdReason: __expectString(output.createdReason),
6675
+ id: __expectString(output.id),
6676
+ resolvedAt: output.resolvedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.resolvedAt))) : undefined,
6677
+ resolvedReason: __expectString(output.resolvedReason),
6678
+ status: __expectString(output.status),
6679
+ type: __expectString(output.type),
6680
+ };
6681
+ };
6682
+ const deserializeAws_json1_0SyncBlockerContext = (output, context) => {
6683
+ return {
6684
+ key: __expectString(output.key),
6685
+ value: __expectString(output.value),
6686
+ };
6687
+ };
6688
+ const deserializeAws_json1_0SyncBlockerContexts = (output, context) => {
6689
+ const retVal = (output || [])
6690
+ .filter((e) => e != null)
6691
+ .map((entry) => {
6692
+ if (entry === null) {
6693
+ return null;
6694
+ }
6695
+ return deserializeAws_json1_0SyncBlockerContext(entry, context);
6696
+ });
6697
+ return retVal;
6698
+ };
6087
6699
  const deserializeAws_json1_0Tag = (output, context) => {
6088
6700
  return {
6089
6701
  key: __expectString(output.key),
@@ -6177,6 +6789,22 @@ const deserializeAws_json1_0UpdateServicePipelineOutput = (output, context) => {
6177
6789
  pipeline: output.pipeline != null ? deserializeAws_json1_0ServicePipeline(output.pipeline, context) : undefined,
6178
6790
  };
6179
6791
  };
6792
+ const deserializeAws_json1_0UpdateServiceSyncBlockerOutput = (output, context) => {
6793
+ return {
6794
+ serviceInstanceName: __expectString(output.serviceInstanceName),
6795
+ serviceName: __expectString(output.serviceName),
6796
+ serviceSyncBlocker: output.serviceSyncBlocker != null
6797
+ ? deserializeAws_json1_0SyncBlocker(output.serviceSyncBlocker, context)
6798
+ : undefined,
6799
+ };
6800
+ };
6801
+ const deserializeAws_json1_0UpdateServiceSyncConfigOutput = (output, context) => {
6802
+ return {
6803
+ serviceSyncConfig: output.serviceSyncConfig != null
6804
+ ? deserializeAws_json1_0ServiceSyncConfig(output.serviceSyncConfig, context)
6805
+ : undefined,
6806
+ };
6807
+ };
6180
6808
  const deserializeAws_json1_0UpdateServiceTemplateOutput = (output, context) => {
6181
6809
  return {
6182
6810
  serviceTemplate: output.serviceTemplate != null