@aws-sdk/client-proton 3.369.0 → 3.370.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
@@ -0,0 +1,112 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { ListDeploymentsInput, ListDeploymentsOutput } from "../models/models_0";
5
+ import { ProtonClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ProtonClient";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListDeploymentsCommand}.
14
+ */
15
+ export interface ListDeploymentsCommandInput extends ListDeploymentsInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListDeploymentsCommand}.
21
+ */
22
+ export interface ListDeploymentsCommandOutput extends ListDeploymentsOutput, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>List deployments. You can filter the result list by environment, service, or a single service instance.</p>
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { ProtonClient, ListDeploymentsCommand } from "@aws-sdk/client-proton"; // ES Modules import
31
+ * // const { ProtonClient, ListDeploymentsCommand } = require("@aws-sdk/client-proton"); // CommonJS import
32
+ * const client = new ProtonClient(config);
33
+ * const input = { // ListDeploymentsInput
34
+ * nextToken: "STRING_VALUE",
35
+ * environmentName: "STRING_VALUE",
36
+ * serviceName: "STRING_VALUE",
37
+ * serviceInstanceName: "STRING_VALUE",
38
+ * componentName: "STRING_VALUE",
39
+ * maxResults: Number("int"),
40
+ * };
41
+ * const command = new ListDeploymentsCommand(input);
42
+ * const response = await client.send(command);
43
+ * // { // ListDeploymentsOutput
44
+ * // nextToken: "STRING_VALUE",
45
+ * // deployments: [ // DeploymentSummaryList // required
46
+ * // { // DeploymentSummary
47
+ * // id: "STRING_VALUE", // required
48
+ * // arn: "STRING_VALUE", // required
49
+ * // targetArn: "STRING_VALUE", // required
50
+ * // targetResourceCreatedAt: new Date("TIMESTAMP"), // required
51
+ * // targetResourceType: "STRING_VALUE", // required
52
+ * // createdAt: new Date("TIMESTAMP"), // required
53
+ * // lastModifiedAt: new Date("TIMESTAMP"), // required
54
+ * // completedAt: new Date("TIMESTAMP"),
55
+ * // environmentName: "STRING_VALUE", // required
56
+ * // serviceName: "STRING_VALUE",
57
+ * // serviceInstanceName: "STRING_VALUE",
58
+ * // componentName: "STRING_VALUE",
59
+ * // lastAttemptedDeploymentId: "STRING_VALUE",
60
+ * // lastSucceededDeploymentId: "STRING_VALUE",
61
+ * // deploymentStatus: "STRING_VALUE", // required
62
+ * // },
63
+ * // ],
64
+ * // };
65
+ *
66
+ * ```
67
+ *
68
+ * @param ListDeploymentsCommandInput - {@link ListDeploymentsCommandInput}
69
+ * @returns {@link ListDeploymentsCommandOutput}
70
+ * @see {@link ListDeploymentsCommandInput} for command's `input` shape.
71
+ * @see {@link ListDeploymentsCommandOutput} for command's `response` shape.
72
+ * @see {@link ProtonClientResolvedConfig | config} for ProtonClient's `config` shape.
73
+ *
74
+ * @throws {@link AccessDeniedException} (client fault)
75
+ * <p>There <i>isn't</i> sufficient access for performing this action.</p>
76
+ *
77
+ * @throws {@link InternalServerException} (server fault)
78
+ * <p>The request failed to register with the service.</p>
79
+ *
80
+ * @throws {@link ResourceNotFoundException} (client fault)
81
+ * <p>The requested resource <i>wasn't</i> found.</p>
82
+ *
83
+ * @throws {@link ThrottlingException} (client fault)
84
+ * <p>The request was denied due to request throttling.</p>
85
+ *
86
+ * @throws {@link ValidationException} (client fault)
87
+ * <p>The input is invalid or an out-of-range value was supplied for the input parameter.</p>
88
+ *
89
+ * @throws {@link ProtonServiceException}
90
+ * <p>Base exception class for all service exceptions from Proton service.</p>
91
+ *
92
+ */
93
+ export declare class ListDeploymentsCommand extends $Command<ListDeploymentsCommandInput, ListDeploymentsCommandOutput, ProtonClientResolvedConfig> {
94
+ readonly input: ListDeploymentsCommandInput;
95
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
96
+ /**
97
+ * @public
98
+ */
99
+ constructor(input: ListDeploymentsCommandInput);
100
+ /**
101
+ * @internal
102
+ */
103
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ProtonClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListDeploymentsCommandInput, ListDeploymentsCommandOutput>;
104
+ /**
105
+ * @internal
106
+ */
107
+ private serialize;
108
+ /**
109
+ * @internal
110
+ */
111
+ private deserialize;
112
+ }
@@ -33,6 +33,7 @@ export interface ListEnvironmentOutputsCommandOutput extends ListEnvironmentOutp
33
33
  * const input = { // ListEnvironmentOutputsInput
34
34
  * environmentName: "STRING_VALUE", // required
35
35
  * nextToken: "STRING_VALUE",
36
+ * deploymentId: "STRING_VALUE",
36
37
  * };
37
38
  * const command = new ListEnvironmentOutputsCommand(input);
38
39
  * const response = await client.send(command);
@@ -62,6 +62,8 @@ export interface ListEnvironmentsCommandOutput extends ListEnvironmentsOutput, _
62
62
  * // environmentAccountId: "STRING_VALUE",
63
63
  * // provisioning: "STRING_VALUE",
64
64
  * // componentRoleArn: "STRING_VALUE",
65
+ * // lastAttemptedDeploymentId: "STRING_VALUE",
66
+ * // lastSucceededDeploymentId: "STRING_VALUE",
65
67
  * // },
66
68
  * // ],
67
69
  * // };
@@ -34,6 +34,7 @@ export interface ListServiceInstanceOutputsCommandOutput extends ListServiceInst
34
34
  * serviceInstanceName: "STRING_VALUE", // required
35
35
  * serviceName: "STRING_VALUE", // required
36
36
  * nextToken: "STRING_VALUE",
37
+ * deploymentId: "STRING_VALUE",
37
38
  * };
38
39
  * const command = new ListServiceInstanceOutputsCommand(input);
39
40
  * const response = await client.send(command);
@@ -62,6 +62,8 @@ export interface ListServiceInstancesCommandOutput extends ListServiceInstancesO
62
62
  * // templateMinorVersion: "STRING_VALUE", // required
63
63
  * // deploymentStatus: "STRING_VALUE", // required
64
64
  * // deploymentStatusMessage: "STRING_VALUE",
65
+ * // lastAttemptedDeploymentId: "STRING_VALUE",
66
+ * // lastSucceededDeploymentId: "STRING_VALUE",
65
67
  * // },
66
68
  * // ],
67
69
  * // };
@@ -33,6 +33,7 @@ export interface ListServicePipelineOutputsCommandOutput extends ListServicePipe
33
33
  * const input = { // ListServicePipelineOutputsInput
34
34
  * serviceName: "STRING_VALUE", // required
35
35
  * nextToken: "STRING_VALUE",
36
+ * deploymentId: "STRING_VALUE",
36
37
  * };
37
38
  * const command = new ListServicePipelineOutputsCommand(input);
38
39
  * const response = await client.send(command);
@@ -23,8 +23,8 @@ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceOut
23
23
  }
24
24
  /**
25
25
  * @public
26
- * <p>List tags for a resource. For more information, see <a href="https://docs.aws.amazon.com/proton/latest/userguide/resources.html">Proton resources and tagging</a> in the
27
- * <i>Proton User Guide</i>.</p>
26
+ * <p>List tags for a resource. For more information, see <a href="https://docs.aws.amazon.com/proton/latest/userguide/resources.html">Proton
27
+ * resources and tagging</a> in the <i>Proton User Guide</i>.</p>
28
28
  * @example
29
29
  * Use a bare-bones client and the command you need to make an API call.
30
30
  * ```javascript
@@ -23,10 +23,8 @@ export interface NotifyResourceDeploymentStatusChangeCommandOutput extends Notif
23
23
  }
24
24
  /**
25
25
  * @public
26
- * <p>Notify Proton of status changes to a provisioned resource when you use self-managed
27
- * provisioning.</p>
28
- * <p>For more information, see <a href="https://docs.aws.amazon.com/proton/latest/userguide/ag-works-prov-methods.html#ag-works-prov-methods-self">Self-managed
29
- * provisioning</a> in the <i>Proton User Guide</i>.</p>
26
+ * <p>Notify Proton of status changes to a provisioned resource when you use self-managed provisioning.</p>
27
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/proton/latest/userguide/ag-works-prov-methods.html#ag-works-prov-methods-self">Self-managed provisioning</a> in the <i>Proton User Guide</i>.</p>
30
28
  * @example
31
29
  * Use a bare-bones client and the command you need to make an API call.
32
30
  * ```javascript
@@ -23,10 +23,9 @@ export interface TagResourceCommandOutput extends TagResourceOutput, __MetadataB
23
23
  }
24
24
  /**
25
25
  * @public
26
- * <p>Tag a resource. A tag is a key-value pair of metadata that you associate with an Proton
27
- * resource.</p>
28
- * <p>For more information, see <a href="https://docs.aws.amazon.com/proton/latest/userguide/resources.html">Proton resources and tagging</a> in the
29
- * <i>Proton User Guide</i>.</p>
26
+ * <p>Tag a resource. A tag is a key-value pair of metadata that you associate with an Proton resource.</p>
27
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/proton/latest/userguide/resources.html">Proton resources and tagging</a> in
28
+ * the <i>Proton User Guide</i>.</p>
30
29
  * @example
31
30
  * Use a bare-bones client and the command you need to make an API call.
32
31
  * ```javascript
@@ -23,10 +23,9 @@ export interface UntagResourceCommandOutput extends UntagResourceOutput, __Metad
23
23
  }
24
24
  /**
25
25
  * @public
26
- * <p>Remove a customer tag from a resource. A tag is a key-value pair of metadata associated with
27
- * an Proton resource.</p>
28
- * <p>For more information, see <a href="https://docs.aws.amazon.com/proton/latest/userguide/resources.html">Proton resources and tagging</a> in the
29
- * <i>Proton User Guide</i>.</p>
26
+ * <p>Remove a customer tag from a resource. A tag is a key-value pair of metadata associated with an Proton resource.</p>
27
+ * <p>For more information, see <a href="https://docs.aws.amazon.com/proton/latest/userguide/resources.html">Proton resources and tagging</a> in
28
+ * the <i>Proton User Guide</i>.</p>
30
29
  * @example
31
30
  * Use a bare-bones client and the command you need to make an API call.
32
31
  * ```javascript
@@ -66,6 +66,8 @@ export interface UpdateComponentCommandOutput extends UpdateComponentOutput, __M
66
66
  * // deploymentStatusMessage: "STRING_VALUE",
67
67
  * // serviceSpec: "STRING_VALUE",
68
68
  * // lastClientRequestToken: "STRING_VALUE",
69
+ * // lastAttemptedDeploymentId: "STRING_VALUE",
70
+ * // lastSucceededDeploymentId: "STRING_VALUE",
69
71
  * // },
70
72
  * // };
71
73
  *
@@ -123,6 +123,8 @@ export interface UpdateEnvironmentCommandOutput extends UpdateEnvironmentOutput,
123
123
  * // },
124
124
  * // componentRoleArn: "STRING_VALUE",
125
125
  * // codebuildRoleArn: "STRING_VALUE",
126
+ * // lastAttemptedDeploymentId: "STRING_VALUE",
127
+ * // lastSucceededDeploymentId: "STRING_VALUE",
126
128
  * // },
127
129
  * // };
128
130
  *
@@ -72,6 +72,8 @@ export interface UpdateServiceCommandOutput extends UpdateServiceOutput, __Metad
72
72
  * // deploymentStatus: "STRING_VALUE", // required
73
73
  * // deploymentStatusMessage: "STRING_VALUE",
74
74
  * // spec: "STRING_VALUE",
75
+ * // lastAttemptedDeploymentId: "STRING_VALUE",
76
+ * // lastSucceededDeploymentId: "STRING_VALUE",
75
77
  * // },
76
78
  * // repositoryConnectionArn: "STRING_VALUE",
77
79
  * // repositoryId: "STRING_VALUE",
@@ -66,6 +66,8 @@ export interface UpdateServiceInstanceCommandOutput extends UpdateServiceInstanc
66
66
  * // deploymentStatusMessage: "STRING_VALUE",
67
67
  * // spec: "STRING_VALUE",
68
68
  * // lastClientRequestToken: "STRING_VALUE",
69
+ * // lastAttemptedDeploymentId: "STRING_VALUE",
70
+ * // lastSucceededDeploymentId: "STRING_VALUE",
69
71
  * // },
70
72
  * // };
71
73
  *
@@ -91,6 +91,8 @@ export interface UpdateServicePipelineCommandOutput extends UpdateServicePipelin
91
91
  * // deploymentStatus: "STRING_VALUE", // required
92
92
  * // deploymentStatusMessage: "STRING_VALUE",
93
93
  * // spec: "STRING_VALUE",
94
+ * // lastAttemptedDeploymentId: "STRING_VALUE",
95
+ * // lastSucceededDeploymentId: "STRING_VALUE",
94
96
  * // },
95
97
  * // };
96
98
  *
@@ -23,10 +23,9 @@ export interface UpdateTemplateSyncConfigCommandOutput extends UpdateTemplateSyn
23
23
  }
24
24
  /**
25
25
  * @public
26
- * <p>Update template sync configuration parameters, except for the <code>templateName</code> and
27
- * <code>templateType</code>. Repository details (branch, name, and provider) should be of a linked
28
- * repository. A linked repository is a repository that has been registered with Proton. For more
29
- * information, see <a>CreateRepository</a>.</p>
26
+ * <p>Update template sync configuration parameters, except for the <code>templateName</code> and <code>templateType</code>. Repository details
27
+ * (branch, name, and provider) should be of a linked repository. A linked repository is a repository that has been registered with Proton. For
28
+ * more information, see <a>CreateRepository</a>.</p>
30
29
  * @example
31
30
  * Use a bare-bones client and the command you need to make an API call.
32
31
  * ```javascript
@@ -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";