@aws-sdk/client-proton 3.369.0 → 3.377.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 (74) hide show
  1. package/README.md +24 -0
  2. package/dist-cjs/Proton.js +6 -0
  3. package/dist-cjs/commands/DeleteDeploymentCommand.js +47 -0
  4. package/dist-cjs/commands/GetDeploymentCommand.js +47 -0
  5. package/dist-cjs/commands/ListDeploymentsCommand.js +46 -0
  6. package/dist-cjs/commands/index.js +3 -0
  7. package/dist-cjs/models/models_0.js +74 -3
  8. package/dist-cjs/pagination/ListDeploymentsPaginator.js +29 -0
  9. package/dist-cjs/pagination/index.js +1 -0
  10. package/dist-cjs/protocols/Aws_json1_0.js +297 -4
  11. package/dist-es/Proton.js +6 -0
  12. package/dist-es/commands/DeleteDeploymentCommand.js +43 -0
  13. package/dist-es/commands/GetDeploymentCommand.js +43 -0
  14. package/dist-es/commands/ListDeploymentsCommand.js +42 -0
  15. package/dist-es/commands/index.js +3 -0
  16. package/dist-es/models/models_0.js +63 -0
  17. package/dist-es/pagination/ListDeploymentsPaginator.js +25 -0
  18. package/dist-es/pagination/index.js +1 -0
  19. package/dist-es/protocols/Aws_json1_0.js +288 -1
  20. package/dist-types/Proton.d.ts +21 -0
  21. package/dist-types/ProtonClient.d.ts +5 -2
  22. package/dist-types/commands/CancelComponentDeploymentCommand.d.ts +2 -0
  23. package/dist-types/commands/CancelEnvironmentDeploymentCommand.d.ts +2 -0
  24. package/dist-types/commands/CancelServiceInstanceDeploymentCommand.d.ts +2 -0
  25. package/dist-types/commands/CancelServicePipelineDeploymentCommand.d.ts +2 -0
  26. package/dist-types/commands/CreateComponentCommand.d.ts +2 -0
  27. package/dist-types/commands/CreateEnvironmentCommand.d.ts +2 -0
  28. package/dist-types/commands/CreateServiceCommand.d.ts +2 -0
  29. package/dist-types/commands/CreateServiceInstanceCommand.d.ts +2 -0
  30. package/dist-types/commands/CreateTemplateSyncConfigCommand.d.ts +5 -8
  31. package/dist-types/commands/DeleteComponentCommand.d.ts +2 -0
  32. package/dist-types/commands/DeleteDeploymentCommand.d.ts +167 -0
  33. package/dist-types/commands/DeleteEnvironmentCommand.d.ts +2 -0
  34. package/dist-types/commands/DeleteServiceCommand.d.ts +2 -0
  35. package/dist-types/commands/GetComponentCommand.d.ts +2 -0
  36. package/dist-types/commands/GetDeploymentCommand.d.ts +171 -0
  37. package/dist-types/commands/GetEnvironmentCommand.d.ts +2 -0
  38. package/dist-types/commands/GetResourcesSummaryCommand.d.ts +7 -11
  39. package/dist-types/commands/GetServiceCommand.d.ts +2 -0
  40. package/dist-types/commands/GetServiceInstanceCommand.d.ts +2 -0
  41. package/dist-types/commands/ListComponentOutputsCommand.d.ts +1 -0
  42. package/dist-types/commands/ListComponentsCommand.d.ts +2 -0
  43. package/dist-types/commands/ListDeploymentsCommand.d.ts +112 -0
  44. package/dist-types/commands/ListEnvironmentOutputsCommand.d.ts +1 -0
  45. package/dist-types/commands/ListEnvironmentsCommand.d.ts +2 -0
  46. package/dist-types/commands/ListServiceInstanceOutputsCommand.d.ts +1 -0
  47. package/dist-types/commands/ListServiceInstancesCommand.d.ts +2 -0
  48. package/dist-types/commands/ListServicePipelineOutputsCommand.d.ts +1 -0
  49. package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -2
  50. package/dist-types/commands/NotifyResourceDeploymentStatusChangeCommand.d.ts +2 -4
  51. package/dist-types/commands/TagResourceCommand.d.ts +3 -4
  52. package/dist-types/commands/UntagResourceCommand.d.ts +3 -4
  53. package/dist-types/commands/UpdateComponentCommand.d.ts +2 -0
  54. package/dist-types/commands/UpdateEnvironmentCommand.d.ts +2 -0
  55. package/dist-types/commands/UpdateServiceCommand.d.ts +2 -0
  56. package/dist-types/commands/UpdateServiceInstanceCommand.d.ts +2 -0
  57. package/dist-types/commands/UpdateServicePipelineCommand.d.ts +2 -0
  58. package/dist-types/commands/UpdateTemplateSyncConfigCommand.d.ts +3 -4
  59. package/dist-types/commands/index.d.ts +3 -0
  60. package/dist-types/models/models_0.d.ts +544 -23
  61. package/dist-types/pagination/ListDeploymentsPaginator.d.ts +7 -0
  62. package/dist-types/pagination/index.d.ts +1 -0
  63. package/dist-types/protocols/Aws_json1_0.d.ts +27 -0
  64. package/dist-types/ts3.4/Proton.d.ts +51 -0
  65. package/dist-types/ts3.4/ProtonClient.d.ts +18 -0
  66. package/dist-types/ts3.4/commands/DeleteDeploymentCommand.d.ts +38 -0
  67. package/dist-types/ts3.4/commands/GetDeploymentCommand.d.ts +35 -0
  68. package/dist-types/ts3.4/commands/ListDeploymentsCommand.d.ts +38 -0
  69. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  70. package/dist-types/ts3.4/models/models_0.d.ts +191 -0
  71. package/dist-types/ts3.4/pagination/ListDeploymentsPaginator.d.ts +11 -0
  72. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  73. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +36 -0
  74. package/package.json +16 -17
@@ -16,6 +16,7 @@ export * from "./CreateServiceTemplateCommand";
16
16
  export * from "./CreateServiceTemplateVersionCommand";
17
17
  export * from "./CreateTemplateSyncConfigCommand";
18
18
  export * from "./DeleteComponentCommand";
19
+ export * from "./DeleteDeploymentCommand";
19
20
  export * from "./DeleteEnvironmentAccountConnectionCommand";
20
21
  export * from "./DeleteEnvironmentCommand";
21
22
  export * from "./DeleteEnvironmentTemplateCommand";
@@ -28,6 +29,7 @@ export * from "./DeleteServiceTemplateVersionCommand";
28
29
  export * from "./DeleteTemplateSyncConfigCommand";
29
30
  export * from "./GetAccountSettingsCommand";
30
31
  export * from "./GetComponentCommand";
32
+ export * from "./GetDeploymentCommand";
31
33
  export * from "./GetEnvironmentAccountConnectionCommand";
32
34
  export * from "./GetEnvironmentCommand";
33
35
  export * from "./GetEnvironmentTemplateCommand";
@@ -47,6 +49,7 @@ export * from "./GetTemplateSyncStatusCommand";
47
49
  export * from "./ListComponentOutputsCommand";
48
50
  export * from "./ListComponentProvisionedResourcesCommand";
49
51
  export * from "./ListComponentsCommand";
52
+ export * from "./ListDeploymentsCommand";
50
53
  export * from "./ListEnvironmentAccountConnectionsCommand";
51
54
  export * from "./ListEnvironmentOutputsCommand";
52
55
  export * from "./ListEnvironmentProvisionedResourcesCommand";
@@ -119,6 +119,26 @@ export const ComponentDeploymentUpdateType = {
119
119
  CURRENT_VERSION: "CURRENT_VERSION",
120
120
  NONE: "NONE",
121
121
  };
122
+ export var DeploymentState;
123
+ (function (DeploymentState) {
124
+ DeploymentState.visit = (value, visitor) => {
125
+ if (value.serviceInstance !== undefined)
126
+ return visitor.serviceInstance(value.serviceInstance);
127
+ if (value.environment !== undefined)
128
+ return visitor.environment(value.environment);
129
+ if (value.servicePipeline !== undefined)
130
+ return visitor.servicePipeline(value.servicePipeline);
131
+ if (value.component !== undefined)
132
+ return visitor.component(value.component);
133
+ return visitor._(value.$unknown[0], value.$unknown[1]);
134
+ };
135
+ })(DeploymentState || (DeploymentState = {}));
136
+ export const DeploymentTargetResourceType = {
137
+ COMPONENT: "COMPONENT",
138
+ ENVIRONMENT: "ENVIRONMENT",
139
+ SERVICE_INSTANCE: "SERVICE_INSTANCE",
140
+ SERVICE_PIPELINE: "SERVICE_PIPELINE",
141
+ };
122
142
  export const EnvironmentAccountConnectionRequesterAccountType = {
123
143
  ENVIRONMENT_ACCOUNT: "ENVIRONMENT_ACCOUNT",
124
144
  MANAGEMENT_ACCOUNT: "MANAGEMENT_ACCOUNT",
@@ -302,6 +322,49 @@ export const UpdateComponentOutputFilterSensitiveLog = (obj) => ({
302
322
  ...obj,
303
323
  ...(obj.component && { component: ComponentFilterSensitiveLog(obj.component) }),
304
324
  });
325
+ export const ComponentStateFilterSensitiveLog = (obj) => ({
326
+ ...obj,
327
+ ...(obj.serviceSpec && { serviceSpec: SENSITIVE_STRING }),
328
+ ...(obj.templateFile && { templateFile: SENSITIVE_STRING }),
329
+ });
330
+ export const EnvironmentStateFilterSensitiveLog = (obj) => ({
331
+ ...obj,
332
+ ...(obj.spec && { spec: SENSITIVE_STRING }),
333
+ });
334
+ export const ServiceInstanceStateFilterSensitiveLog = (obj) => ({
335
+ ...obj,
336
+ ...(obj.spec && { spec: SENSITIVE_STRING }),
337
+ });
338
+ export const ServicePipelineStateFilterSensitiveLog = (obj) => ({
339
+ ...obj,
340
+ ...(obj.spec && { spec: SENSITIVE_STRING }),
341
+ });
342
+ export const DeploymentStateFilterSensitiveLog = (obj) => {
343
+ if (obj.serviceInstance !== undefined)
344
+ return { serviceInstance: ServiceInstanceStateFilterSensitiveLog(obj.serviceInstance) };
345
+ if (obj.environment !== undefined)
346
+ return { environment: EnvironmentStateFilterSensitiveLog(obj.environment) };
347
+ if (obj.servicePipeline !== undefined)
348
+ return { servicePipeline: ServicePipelineStateFilterSensitiveLog(obj.servicePipeline) };
349
+ if (obj.component !== undefined)
350
+ return { component: ComponentStateFilterSensitiveLog(obj.component) };
351
+ if (obj.$unknown !== undefined)
352
+ return { [obj.$unknown[0]]: "UNKNOWN" };
353
+ };
354
+ export const DeploymentFilterSensitiveLog = (obj) => ({
355
+ ...obj,
356
+ ...(obj.deploymentStatusMessage && { deploymentStatusMessage: SENSITIVE_STRING }),
357
+ ...(obj.initialState && { initialState: DeploymentStateFilterSensitiveLog(obj.initialState) }),
358
+ ...(obj.targetState && { targetState: DeploymentStateFilterSensitiveLog(obj.targetState) }),
359
+ });
360
+ export const DeleteDeploymentOutputFilterSensitiveLog = (obj) => ({
361
+ ...obj,
362
+ ...(obj.deployment && { deployment: DeploymentFilterSensitiveLog(obj.deployment) }),
363
+ });
364
+ export const GetDeploymentOutputFilterSensitiveLog = (obj) => ({
365
+ ...obj,
366
+ ...(obj.deployment && { deployment: DeploymentFilterSensitiveLog(obj.deployment) }),
367
+ });
305
368
  export const ListEnvironmentOutputsOutputFilterSensitiveLog = (obj) => ({
306
369
  ...obj,
307
370
  ...(obj.outputs && { outputs: SENSITIVE_STRING }),
@@ -0,0 +1,25 @@
1
+ import { ListDeploymentsCommand, } from "../commands/ListDeploymentsCommand";
2
+ import { ProtonClient } from "../ProtonClient";
3
+ const makePagedClientRequest = async (client, input, ...args) => {
4
+ return await client.send(new ListDeploymentsCommand(input), ...args);
5
+ };
6
+ export async function* paginateListDeployments(config, input, ...additionalArguments) {
7
+ let token = config.startingToken || undefined;
8
+ let hasNext = true;
9
+ let page;
10
+ while (hasNext) {
11
+ input.nextToken = token;
12
+ input["maxResults"] = config.pageSize;
13
+ if (config.client instanceof ProtonClient) {
14
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
+ }
16
+ else {
17
+ throw new Error("Invalid client, expected Proton | ProtonClient");
18
+ }
19
+ yield page;
20
+ const prevToken = token;
21
+ token = page.nextToken;
22
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
+ }
24
+ return undefined;
25
+ }
@@ -2,6 +2,7 @@ export * from "./Interfaces";
2
2
  export * from "./ListComponentOutputsPaginator";
3
3
  export * from "./ListComponentProvisionedResourcesPaginator";
4
4
  export * from "./ListComponentsPaginator";
5
+ export * from "./ListDeploymentsPaginator";
5
6
  export * from "./ListEnvironmentAccountConnectionsPaginator";
6
7
  export * from "./ListEnvironmentOutputsPaginator";
7
8
  export * from "./ListEnvironmentProvisionedResourcesPaginator";
@@ -1,5 +1,5 @@
1
1
  import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
2
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
2
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, expectUnion as __expectUnion, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
3
3
  import { v4 as generateIdempotencyToken } from "uuid";
4
4
  import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
5
5
  import { ProtonServiceException as __BaseException } from "../models/ProtonServiceException";
@@ -111,6 +111,12 @@ export const se_DeleteComponentCommand = async (input, context) => {
111
111
  body = JSON.stringify(_json(input));
112
112
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
113
113
  };
114
+ export const se_DeleteDeploymentCommand = async (input, context) => {
115
+ const headers = sharedHeaders("DeleteDeployment");
116
+ let body;
117
+ body = JSON.stringify(_json(input));
118
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
119
+ };
114
120
  export const se_DeleteEnvironmentCommand = async (input, context) => {
115
121
  const headers = sharedHeaders("DeleteEnvironment");
116
122
  let body;
@@ -183,6 +189,12 @@ export const se_GetComponentCommand = async (input, context) => {
183
189
  body = JSON.stringify(_json(input));
184
190
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
185
191
  };
192
+ export const se_GetDeploymentCommand = async (input, context) => {
193
+ const headers = sharedHeaders("GetDeployment");
194
+ let body;
195
+ body = JSON.stringify(_json(input));
196
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
197
+ };
186
198
  export const se_GetEnvironmentCommand = async (input, context) => {
187
199
  const headers = sharedHeaders("GetEnvironment");
188
200
  let body;
@@ -297,6 +309,12 @@ export const se_ListComponentsCommand = async (input, context) => {
297
309
  body = JSON.stringify(_json(input));
298
310
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
299
311
  };
312
+ export const se_ListDeploymentsCommand = async (input, context) => {
313
+ const headers = sharedHeaders("ListDeployments");
314
+ let body;
315
+ body = JSON.stringify(_json(input));
316
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
317
+ };
300
318
  export const se_ListEnvironmentAccountConnectionsCommand = async (input, context) => {
301
319
  const headers = sharedHeaders("ListEnvironmentAccountConnections");
302
320
  let body;
@@ -1368,6 +1386,50 @@ const de_DeleteComponentCommandError = async (output, context) => {
1368
1386
  });
1369
1387
  }
1370
1388
  };
1389
+ export const de_DeleteDeploymentCommand = async (output, context) => {
1390
+ if (output.statusCode >= 300) {
1391
+ return de_DeleteDeploymentCommandError(output, context);
1392
+ }
1393
+ const data = await parseBody(output.body, context);
1394
+ let contents = {};
1395
+ contents = de_DeleteDeploymentOutput(data, context);
1396
+ const response = {
1397
+ $metadata: deserializeMetadata(output),
1398
+ ...contents,
1399
+ };
1400
+ return response;
1401
+ };
1402
+ const de_DeleteDeploymentCommandError = async (output, context) => {
1403
+ const parsedOutput = {
1404
+ ...output,
1405
+ body: await parseErrorBody(output.body, context),
1406
+ };
1407
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1408
+ switch (errorCode) {
1409
+ case "AccessDeniedException":
1410
+ case "com.amazonaws.proton#AccessDeniedException":
1411
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1412
+ case "InternalServerException":
1413
+ case "com.amazonaws.proton#InternalServerException":
1414
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1415
+ case "ResourceNotFoundException":
1416
+ case "com.amazonaws.proton#ResourceNotFoundException":
1417
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1418
+ case "ThrottlingException":
1419
+ case "com.amazonaws.proton#ThrottlingException":
1420
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1421
+ case "ValidationException":
1422
+ case "com.amazonaws.proton#ValidationException":
1423
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1424
+ default:
1425
+ const parsedBody = parsedOutput.body;
1426
+ return throwDefaultError({
1427
+ output,
1428
+ parsedBody,
1429
+ errorCode,
1430
+ });
1431
+ }
1432
+ };
1371
1433
  export const de_DeleteEnvironmentCommand = async (output, context) => {
1372
1434
  if (output.statusCode >= 300) {
1373
1435
  return de_DeleteEnvironmentCommandError(output, context);
@@ -1926,6 +1988,50 @@ const de_GetComponentCommandError = async (output, context) => {
1926
1988
  });
1927
1989
  }
1928
1990
  };
1991
+ export const de_GetDeploymentCommand = async (output, context) => {
1992
+ if (output.statusCode >= 300) {
1993
+ return de_GetDeploymentCommandError(output, context);
1994
+ }
1995
+ const data = await parseBody(output.body, context);
1996
+ let contents = {};
1997
+ contents = de_GetDeploymentOutput(data, context);
1998
+ const response = {
1999
+ $metadata: deserializeMetadata(output),
2000
+ ...contents,
2001
+ };
2002
+ return response;
2003
+ };
2004
+ const de_GetDeploymentCommandError = async (output, context) => {
2005
+ const parsedOutput = {
2006
+ ...output,
2007
+ body: await parseErrorBody(output.body, context),
2008
+ };
2009
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2010
+ switch (errorCode) {
2011
+ case "AccessDeniedException":
2012
+ case "com.amazonaws.proton#AccessDeniedException":
2013
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2014
+ case "InternalServerException":
2015
+ case "com.amazonaws.proton#InternalServerException":
2016
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2017
+ case "ResourceNotFoundException":
2018
+ case "com.amazonaws.proton#ResourceNotFoundException":
2019
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2020
+ case "ThrottlingException":
2021
+ case "com.amazonaws.proton#ThrottlingException":
2022
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2023
+ case "ValidationException":
2024
+ case "com.amazonaws.proton#ValidationException":
2025
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2026
+ default:
2027
+ const parsedBody = parsedOutput.body;
2028
+ return throwDefaultError({
2029
+ output,
2030
+ parsedBody,
2031
+ errorCode,
2032
+ });
2033
+ }
2034
+ };
1929
2035
  export const de_GetEnvironmentCommand = async (output, context) => {
1930
2036
  if (output.statusCode >= 300) {
1931
2037
  return de_GetEnvironmentCommandError(output, context);
@@ -2756,6 +2862,50 @@ const de_ListComponentsCommandError = async (output, context) => {
2756
2862
  });
2757
2863
  }
2758
2864
  };
2865
+ export const de_ListDeploymentsCommand = async (output, context) => {
2866
+ if (output.statusCode >= 300) {
2867
+ return de_ListDeploymentsCommandError(output, context);
2868
+ }
2869
+ const data = await parseBody(output.body, context);
2870
+ let contents = {};
2871
+ contents = de_ListDeploymentsOutput(data, context);
2872
+ const response = {
2873
+ $metadata: deserializeMetadata(output),
2874
+ ...contents,
2875
+ };
2876
+ return response;
2877
+ };
2878
+ const de_ListDeploymentsCommandError = async (output, context) => {
2879
+ const parsedOutput = {
2880
+ ...output,
2881
+ body: await parseErrorBody(output.body, context),
2882
+ };
2883
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2884
+ switch (errorCode) {
2885
+ case "AccessDeniedException":
2886
+ case "com.amazonaws.proton#AccessDeniedException":
2887
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2888
+ case "InternalServerException":
2889
+ case "com.amazonaws.proton#InternalServerException":
2890
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2891
+ case "ResourceNotFoundException":
2892
+ case "com.amazonaws.proton#ResourceNotFoundException":
2893
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2894
+ case "ThrottlingException":
2895
+ case "com.amazonaws.proton#ThrottlingException":
2896
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2897
+ case "ValidationException":
2898
+ case "com.amazonaws.proton#ValidationException":
2899
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2900
+ default:
2901
+ const parsedBody = parsedOutput.body;
2902
+ return throwDefaultError({
2903
+ output,
2904
+ parsedBody,
2905
+ errorCode,
2906
+ });
2907
+ }
2908
+ };
2759
2909
  export const de_ListEnvironmentAccountConnectionsCommand = async (output, context) => {
2760
2910
  if (output.statusCode >= 300) {
2761
2911
  return de_ListEnvironmentAccountConnectionsCommandError(output, context);
@@ -4579,16 +4729,26 @@ const de_Component = (output, context) => {
4579
4729
  deploymentStatusMessage: __expectString,
4580
4730
  description: __expectString,
4581
4731
  environmentName: __expectString,
4732
+ lastAttemptedDeploymentId: __expectString,
4582
4733
  lastClientRequestToken: __expectString,
4583
4734
  lastDeploymentAttemptedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4584
4735
  lastDeploymentSucceededAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4585
4736
  lastModifiedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4737
+ lastSucceededDeploymentId: __expectString,
4586
4738
  name: __expectString,
4587
4739
  serviceInstanceName: __expectString,
4588
4740
  serviceName: __expectString,
4589
4741
  serviceSpec: __expectString,
4590
4742
  });
4591
4743
  };
4744
+ const de_ComponentState = (output, context) => {
4745
+ return take(output, {
4746
+ serviceInstanceName: __expectString,
4747
+ serviceName: __expectString,
4748
+ serviceSpec: __expectString,
4749
+ templateFile: __expectString,
4750
+ });
4751
+ };
4592
4752
  const de_ComponentSummary = (output, context) => {
4593
4753
  return take(output, {
4594
4754
  arn: __expectString,
@@ -4596,9 +4756,11 @@ const de_ComponentSummary = (output, context) => {
4596
4756
  deploymentStatus: __expectString,
4597
4757
  deploymentStatusMessage: __expectString,
4598
4758
  environmentName: __expectString,
4759
+ lastAttemptedDeploymentId: __expectString,
4599
4760
  lastDeploymentAttemptedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4600
4761
  lastDeploymentSucceededAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4601
4762
  lastModifiedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4763
+ lastSucceededDeploymentId: __expectString,
4602
4764
  name: __expectString,
4603
4765
  serviceInstanceName: __expectString,
4604
4766
  serviceName: __expectString,
@@ -4662,6 +4824,11 @@ const de_DeleteComponentOutput = (output, context) => {
4662
4824
  component: (_) => de_Component(_, context),
4663
4825
  });
4664
4826
  };
4827
+ const de_DeleteDeploymentOutput = (output, context) => {
4828
+ return take(output, {
4829
+ deployment: (_) => de_Deployment(_, context),
4830
+ });
4831
+ };
4665
4832
  const de_DeleteEnvironmentAccountConnectionOutput = (output, context) => {
4666
4833
  return take(output, {
4667
4834
  environmentAccountConnection: (_) => de_EnvironmentAccountConnection(_, context),
@@ -4697,6 +4864,78 @@ const de_DeleteServiceTemplateVersionOutput = (output, context) => {
4697
4864
  serviceTemplateVersion: (_) => de_ServiceTemplateVersion(_, context),
4698
4865
  });
4699
4866
  };
4867
+ const de_Deployment = (output, context) => {
4868
+ return take(output, {
4869
+ arn: __expectString,
4870
+ completedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4871
+ componentName: __expectString,
4872
+ createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4873
+ deploymentStatus: __expectString,
4874
+ deploymentStatusMessage: __expectString,
4875
+ environmentName: __expectString,
4876
+ id: __expectString,
4877
+ initialState: (_) => de_DeploymentState(__expectUnion(_), context),
4878
+ lastAttemptedDeploymentId: __expectString,
4879
+ lastModifiedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4880
+ lastSucceededDeploymentId: __expectString,
4881
+ serviceInstanceName: __expectString,
4882
+ serviceName: __expectString,
4883
+ targetArn: __expectString,
4884
+ targetResourceCreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4885
+ targetResourceType: __expectString,
4886
+ targetState: (_) => de_DeploymentState(__expectUnion(_), context),
4887
+ });
4888
+ };
4889
+ const de_DeploymentState = (output, context) => {
4890
+ if (output.component != null) {
4891
+ return {
4892
+ component: de_ComponentState(output.component, context),
4893
+ };
4894
+ }
4895
+ if (output.environment != null) {
4896
+ return {
4897
+ environment: de_EnvironmentState(output.environment, context),
4898
+ };
4899
+ }
4900
+ if (output.serviceInstance != null) {
4901
+ return {
4902
+ serviceInstance: de_ServiceInstanceState(output.serviceInstance, context),
4903
+ };
4904
+ }
4905
+ if (output.servicePipeline != null) {
4906
+ return {
4907
+ servicePipeline: de_ServicePipelineState(output.servicePipeline, context),
4908
+ };
4909
+ }
4910
+ return { $unknown: Object.entries(output)[0] };
4911
+ };
4912
+ const de_DeploymentSummary = (output, context) => {
4913
+ return take(output, {
4914
+ arn: __expectString,
4915
+ completedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4916
+ componentName: __expectString,
4917
+ createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4918
+ deploymentStatus: __expectString,
4919
+ environmentName: __expectString,
4920
+ id: __expectString,
4921
+ lastAttemptedDeploymentId: __expectString,
4922
+ lastModifiedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4923
+ lastSucceededDeploymentId: __expectString,
4924
+ serviceInstanceName: __expectString,
4925
+ serviceName: __expectString,
4926
+ targetArn: __expectString,
4927
+ targetResourceCreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4928
+ targetResourceType: __expectString,
4929
+ });
4930
+ };
4931
+ const de_DeploymentSummaryList = (output, context) => {
4932
+ const retVal = (output || [])
4933
+ .filter((e) => e != null)
4934
+ .map((entry) => {
4935
+ return de_DeploymentSummary(entry, context);
4936
+ });
4937
+ return retVal;
4938
+ };
4700
4939
  const de_Environment = (output, context) => {
4701
4940
  return take(output, {
4702
4941
  arn: __expectString,
@@ -4708,8 +4947,10 @@ const de_Environment = (output, context) => {
4708
4947
  description: __expectString,
4709
4948
  environmentAccountConnectionId: __expectString,
4710
4949
  environmentAccountId: __expectString,
4950
+ lastAttemptedDeploymentId: __expectString,
4711
4951
  lastDeploymentAttemptedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4712
4952
  lastDeploymentSucceededAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4953
+ lastSucceededDeploymentId: __expectString,
4713
4954
  name: __expectString,
4714
4955
  protonServiceRoleArn: __expectString,
4715
4956
  provisioning: __expectString,
@@ -4757,6 +4998,14 @@ const de_EnvironmentAccountConnectionSummaryList = (output, context) => {
4757
4998
  });
4758
4999
  return retVal;
4759
5000
  };
5001
+ const de_EnvironmentState = (output, context) => {
5002
+ return take(output, {
5003
+ spec: __expectString,
5004
+ templateMajorVersion: __expectString,
5005
+ templateMinorVersion: __expectString,
5006
+ templateName: __expectString,
5007
+ });
5008
+ };
4760
5009
  const de_EnvironmentSummary = (output, context) => {
4761
5010
  return take(output, {
4762
5011
  arn: __expectString,
@@ -4767,8 +5016,10 @@ const de_EnvironmentSummary = (output, context) => {
4767
5016
  description: __expectString,
4768
5017
  environmentAccountConnectionId: __expectString,
4769
5018
  environmentAccountId: __expectString,
5019
+ lastAttemptedDeploymentId: __expectString,
4770
5020
  lastDeploymentAttemptedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
4771
5021
  lastDeploymentSucceededAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
5022
+ lastSucceededDeploymentId: __expectString,
4772
5023
  name: __expectString,
4773
5024
  protonServiceRoleArn: __expectString,
4774
5025
  provisioning: __expectString,
@@ -4860,6 +5111,11 @@ const de_GetComponentOutput = (output, context) => {
4860
5111
  component: (_) => de_Component(_, context),
4861
5112
  });
4862
5113
  };
5114
+ const de_GetDeploymentOutput = (output, context) => {
5115
+ return take(output, {
5116
+ deployment: (_) => de_Deployment(_, context),
5117
+ });
5118
+ };
4863
5119
  const de_GetEnvironmentAccountConnectionOutput = (output, context) => {
4864
5120
  return take(output, {
4865
5121
  environmentAccountConnection: (_) => de_EnvironmentAccountConnection(_, context),
@@ -4938,6 +5194,12 @@ const de_ListComponentsOutput = (output, context) => {
4938
5194
  nextToken: __expectString,
4939
5195
  });
4940
5196
  };
5197
+ const de_ListDeploymentsOutput = (output, context) => {
5198
+ return take(output, {
5199
+ deployments: (_) => de_DeploymentSummaryList(_, context),
5200
+ nextToken: __expectString,
5201
+ });
5202
+ };
4941
5203
  const de_ListEnvironmentAccountConnectionsOutput = (output, context) => {
4942
5204
  return take(output, {
4943
5205
  environmentAccountConnections: (_) => de_EnvironmentAccountConnectionSummaryList(_, context),
@@ -5064,9 +5326,11 @@ const de_ServiceInstance = (output, context) => {
5064
5326
  deploymentStatus: __expectString,
5065
5327
  deploymentStatusMessage: __expectString,
5066
5328
  environmentName: __expectString,
5329
+ lastAttemptedDeploymentId: __expectString,
5067
5330
  lastClientRequestToken: __expectString,
5068
5331
  lastDeploymentAttemptedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
5069
5332
  lastDeploymentSucceededAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
5333
+ lastSucceededDeploymentId: __expectString,
5070
5334
  name: __expectString,
5071
5335
  serviceName: __expectString,
5072
5336
  spec: __expectString,
@@ -5075,6 +5339,17 @@ const de_ServiceInstance = (output, context) => {
5075
5339
  templateName: __expectString,
5076
5340
  });
5077
5341
  };
5342
+ const de_ServiceInstanceState = (output, context) => {
5343
+ return take(output, {
5344
+ lastSuccessfulComponentDeploymentIds: _json,
5345
+ lastSuccessfulEnvironmentDeploymentId: __expectString,
5346
+ lastSuccessfulServicePipelineDeploymentId: __expectString,
5347
+ spec: __expectString,
5348
+ templateMajorVersion: __expectString,
5349
+ templateMinorVersion: __expectString,
5350
+ templateName: __expectString,
5351
+ });
5352
+ };
5078
5353
  const de_ServiceInstanceSummary = (output, context) => {
5079
5354
  return take(output, {
5080
5355
  arn: __expectString,
@@ -5082,8 +5357,10 @@ const de_ServiceInstanceSummary = (output, context) => {
5082
5357
  deploymentStatus: __expectString,
5083
5358
  deploymentStatusMessage: __expectString,
5084
5359
  environmentName: __expectString,
5360
+ lastAttemptedDeploymentId: __expectString,
5085
5361
  lastDeploymentAttemptedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
5086
5362
  lastDeploymentSucceededAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
5363
+ lastSucceededDeploymentId: __expectString,
5087
5364
  name: __expectString,
5088
5365
  serviceName: __expectString,
5089
5366
  templateMajorVersion: __expectString,
@@ -5105,8 +5382,18 @@ const de_ServicePipeline = (output, context) => {
5105
5382
  createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
5106
5383
  deploymentStatus: __expectString,
5107
5384
  deploymentStatusMessage: __expectString,
5385
+ lastAttemptedDeploymentId: __expectString,
5108
5386
  lastDeploymentAttemptedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
5109
5387
  lastDeploymentSucceededAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
5388
+ lastSucceededDeploymentId: __expectString,
5389
+ spec: __expectString,
5390
+ templateMajorVersion: __expectString,
5391
+ templateMinorVersion: __expectString,
5392
+ templateName: __expectString,
5393
+ });
5394
+ };
5395
+ const de_ServicePipelineState = (output, context) => {
5396
+ return take(output, {
5110
5397
  spec: __expectString,
5111
5398
  templateMajorVersion: __expectString,
5112
5399
  templateMinorVersion: __expectString,
@@ -17,6 +17,7 @@ import { CreateServiceTemplateCommandInput, CreateServiceTemplateCommandOutput }
17
17
  import { CreateServiceTemplateVersionCommandInput, CreateServiceTemplateVersionCommandOutput } from "./commands/CreateServiceTemplateVersionCommand";
18
18
  import { CreateTemplateSyncConfigCommandInput, CreateTemplateSyncConfigCommandOutput } from "./commands/CreateTemplateSyncConfigCommand";
19
19
  import { DeleteComponentCommandInput, DeleteComponentCommandOutput } from "./commands/DeleteComponentCommand";
20
+ import { DeleteDeploymentCommandInput, DeleteDeploymentCommandOutput } from "./commands/DeleteDeploymentCommand";
20
21
  import { DeleteEnvironmentAccountConnectionCommandInput, DeleteEnvironmentAccountConnectionCommandOutput } from "./commands/DeleteEnvironmentAccountConnectionCommand";
21
22
  import { DeleteEnvironmentCommandInput, DeleteEnvironmentCommandOutput } from "./commands/DeleteEnvironmentCommand";
22
23
  import { DeleteEnvironmentTemplateCommandInput, DeleteEnvironmentTemplateCommandOutput } from "./commands/DeleteEnvironmentTemplateCommand";
@@ -29,6 +30,7 @@ import { DeleteServiceTemplateVersionCommandInput, DeleteServiceTemplateVersionC
29
30
  import { DeleteTemplateSyncConfigCommandInput, DeleteTemplateSyncConfigCommandOutput } from "./commands/DeleteTemplateSyncConfigCommand";
30
31
  import { GetAccountSettingsCommandInput, GetAccountSettingsCommandOutput } from "./commands/GetAccountSettingsCommand";
31
32
  import { GetComponentCommandInput, GetComponentCommandOutput } from "./commands/GetComponentCommand";
33
+ import { GetDeploymentCommandInput, GetDeploymentCommandOutput } from "./commands/GetDeploymentCommand";
32
34
  import { GetEnvironmentAccountConnectionCommandInput, GetEnvironmentAccountConnectionCommandOutput } from "./commands/GetEnvironmentAccountConnectionCommand";
33
35
  import { GetEnvironmentCommandInput, GetEnvironmentCommandOutput } from "./commands/GetEnvironmentCommand";
34
36
  import { GetEnvironmentTemplateCommandInput, GetEnvironmentTemplateCommandOutput } from "./commands/GetEnvironmentTemplateCommand";
@@ -48,6 +50,7 @@ import { GetTemplateSyncStatusCommandInput, GetTemplateSyncStatusCommandOutput }
48
50
  import { ListComponentOutputsCommandInput, ListComponentOutputsCommandOutput } from "./commands/ListComponentOutputsCommand";
49
51
  import { ListComponentProvisionedResourcesCommandInput, ListComponentProvisionedResourcesCommandOutput } from "./commands/ListComponentProvisionedResourcesCommand";
50
52
  import { ListComponentsCommandInput, ListComponentsCommandOutput } from "./commands/ListComponentsCommand";
53
+ import { ListDeploymentsCommandInput, ListDeploymentsCommandOutput } from "./commands/ListDeploymentsCommand";
51
54
  import { ListEnvironmentAccountConnectionsCommandInput, ListEnvironmentAccountConnectionsCommandOutput } from "./commands/ListEnvironmentAccountConnectionsCommand";
52
55
  import { ListEnvironmentOutputsCommandInput, ListEnvironmentOutputsCommandOutput } from "./commands/ListEnvironmentOutputsCommand";
53
56
  import { ListEnvironmentProvisionedResourcesCommandInput, ListEnvironmentProvisionedResourcesCommandOutput } from "./commands/ListEnvironmentProvisionedResourcesCommand";
@@ -193,6 +196,12 @@ export interface Proton {
193
196
  deleteComponent(args: DeleteComponentCommandInput, options?: __HttpHandlerOptions): Promise<DeleteComponentCommandOutput>;
194
197
  deleteComponent(args: DeleteComponentCommandInput, cb: (err: any, data?: DeleteComponentCommandOutput) => void): void;
195
198
  deleteComponent(args: DeleteComponentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteComponentCommandOutput) => void): void;
199
+ /**
200
+ * @see {@link DeleteDeploymentCommand}
201
+ */
202
+ deleteDeployment(args: DeleteDeploymentCommandInput, options?: __HttpHandlerOptions): Promise<DeleteDeploymentCommandOutput>;
203
+ deleteDeployment(args: DeleteDeploymentCommandInput, cb: (err: any, data?: DeleteDeploymentCommandOutput) => void): void;
204
+ deleteDeployment(args: DeleteDeploymentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteDeploymentCommandOutput) => void): void;
196
205
  /**
197
206
  * @see {@link DeleteEnvironmentCommand}
198
207
  */
@@ -265,6 +274,12 @@ export interface Proton {
265
274
  getComponent(args: GetComponentCommandInput, options?: __HttpHandlerOptions): Promise<GetComponentCommandOutput>;
266
275
  getComponent(args: GetComponentCommandInput, cb: (err: any, data?: GetComponentCommandOutput) => void): void;
267
276
  getComponent(args: GetComponentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetComponentCommandOutput) => void): void;
277
+ /**
278
+ * @see {@link GetDeploymentCommand}
279
+ */
280
+ getDeployment(args: GetDeploymentCommandInput, options?: __HttpHandlerOptions): Promise<GetDeploymentCommandOutput>;
281
+ getDeployment(args: GetDeploymentCommandInput, cb: (err: any, data?: GetDeploymentCommandOutput) => void): void;
282
+ getDeployment(args: GetDeploymentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDeploymentCommandOutput) => void): void;
268
283
  /**
269
284
  * @see {@link GetEnvironmentCommand}
270
285
  */
@@ -379,6 +394,12 @@ export interface Proton {
379
394
  listComponents(args: ListComponentsCommandInput, options?: __HttpHandlerOptions): Promise<ListComponentsCommandOutput>;
380
395
  listComponents(args: ListComponentsCommandInput, cb: (err: any, data?: ListComponentsCommandOutput) => void): void;
381
396
  listComponents(args: ListComponentsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListComponentsCommandOutput) => void): void;
397
+ /**
398
+ * @see {@link ListDeploymentsCommand}
399
+ */
400
+ listDeployments(args: ListDeploymentsCommandInput, options?: __HttpHandlerOptions): Promise<ListDeploymentsCommandOutput>;
401
+ listDeployments(args: ListDeploymentsCommandInput, cb: (err: any, data?: ListDeploymentsCommandOutput) => void): void;
402
+ listDeployments(args: ListDeploymentsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListDeploymentsCommandOutput) => void): void;
382
403
  /**
383
404
  * @see {@link ListEnvironmentAccountConnectionsCommand}
384
405
  */