From d1ec9711671ed7fd178da73532ae7ee1d1f395df Mon Sep 17 00:00:00 2001
From: awstools
Date: Thu, 13 Jul 2023 19:12:58 +0000
Subject: [PATCH] feat(client-proton): This release adds support for deployment
history for Proton provisioned resources
---
clients/client-proton/README.md | 24 +
clients/client-proton/src/Proton.ts | 60 +
clients/client-proton/src/ProtonClient.ts | 9 +
.../CancelComponentDeploymentCommand.ts | 2 +
.../CancelEnvironmentDeploymentCommand.ts | 2 +
.../CancelServiceInstanceDeploymentCommand.ts | 2 +
.../CancelServicePipelineDeploymentCommand.ts | 2 +
.../src/commands/CreateComponentCommand.ts | 2 +
.../src/commands/CreateEnvironmentCommand.ts | 2 +
.../src/commands/CreateServiceCommand.ts | 2 +
.../commands/CreateServiceInstanceCommand.ts | 2 +
.../CreateTemplateSyncConfigCommand.ts | 13 +-
.../src/commands/DeleteComponentCommand.ts | 2 +
.../src/commands/DeleteDeploymentCommand.ts | 240 ++++
.../src/commands/DeleteEnvironmentCommand.ts | 2 +
.../src/commands/DeleteServiceCommand.ts | 2 +
.../src/commands/GetComponentCommand.ts | 2 +
.../src/commands/GetDeploymentCommand.ts | 238 ++++
.../src/commands/GetEnvironmentCommand.ts | 2 +
.../commands/GetResourcesSummaryCommand.ts | 18 +-
.../src/commands/GetServiceCommand.ts | 2 +
.../src/commands/GetServiceInstanceCommand.ts | 2 +
.../commands/ListComponentOutputsCommand.ts | 1 +
.../src/commands/ListComponentsCommand.ts | 2 +
.../src/commands/ListDeploymentsCommand.ts | 181 +++
.../commands/ListEnvironmentOutputsCommand.ts | 1 +
.../src/commands/ListEnvironmentsCommand.ts | 2 +
.../ListServiceInstanceOutputsCommand.ts | 1 +
.../commands/ListServiceInstancesCommand.ts | 2 +
.../ListServicePipelineOutputsCommand.ts | 1 +
.../commands/ListTagsForResourceCommand.ts | 4 +-
...fyResourceDeploymentStatusChangeCommand.ts | 6 +-
.../src/commands/TagResourceCommand.ts | 7 +-
.../src/commands/UntagResourceCommand.ts | 7 +-
.../src/commands/UpdateComponentCommand.ts | 2 +
.../src/commands/UpdateEnvironmentCommand.ts | 2 +
.../src/commands/UpdateServiceCommand.ts | 2 +
.../commands/UpdateServiceInstanceCommand.ts | 2 +
.../commands/UpdateServicePipelineCommand.ts | 2 +
.../UpdateTemplateSyncConfigCommand.ts | 7 +-
clients/client-proton/src/commands/index.ts | 3 +
clients/client-proton/src/models/models_0.ts | 715 +++++++++++-
.../pagination/ListDeploymentsPaginator.ts | 50 +
clients/client-proton/src/pagination/index.ts | 1 +
.../src/protocols/Aws_json1_0.ts | 419 +++++++
codegen/sdk-codegen/aws-models/proton.json | 1007 +++++++++++++++--
46 files changed, 2923 insertions(+), 136 deletions(-)
create mode 100644 clients/client-proton/src/commands/DeleteDeploymentCommand.ts
create mode 100644 clients/client-proton/src/commands/GetDeploymentCommand.ts
create mode 100644 clients/client-proton/src/commands/ListDeploymentsCommand.ts
create mode 100644 clients/client-proton/src/pagination/ListDeploymentsPaginator.ts
diff --git a/clients/client-proton/README.md b/clients/client-proton/README.md
index 3827e7997298..ea0873e1268e 100644
--- a/clients/client-proton/README.md
+++ b/clients/client-proton/README.md
@@ -474,6 +474,14 @@ DeleteComponent
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-proton/classes/deletecomponentcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-proton/interfaces/deletecomponentcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-proton/interfaces/deletecomponentcommandoutput.html)
+
+
+
+DeleteDeployment
+
+
+[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-proton/classes/deletedeploymentcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-proton/interfaces/deletedeploymentcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-proton/interfaces/deletedeploymentcommandoutput.html)
+
@@ -570,6 +578,14 @@ GetComponent
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-proton/classes/getcomponentcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-proton/interfaces/getcomponentcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-proton/interfaces/getcomponentcommandoutput.html)
+
+
+
+GetDeployment
+
+
+[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-proton/classes/getdeploymentcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-proton/interfaces/getdeploymentcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-proton/interfaces/getdeploymentcommandoutput.html)
+
@@ -722,6 +738,14 @@ ListComponents
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-proton/classes/listcomponentscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-proton/interfaces/listcomponentscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-proton/interfaces/listcomponentscommandoutput.html)
+
+
+
+ListDeployments
+
+
+[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-proton/classes/listdeploymentscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-proton/interfaces/listdeploymentscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-proton/interfaces/listdeploymentscommandoutput.html)
+
diff --git a/clients/client-proton/src/Proton.ts b/clients/client-proton/src/Proton.ts
index e054adce91c9..ee122cd119ef 100644
--- a/clients/client-proton/src/Proton.ts
+++ b/clients/client-proton/src/Proton.ts
@@ -92,6 +92,11 @@ import {
DeleteComponentCommandInput,
DeleteComponentCommandOutput,
} from "./commands/DeleteComponentCommand";
+import {
+ DeleteDeploymentCommand,
+ DeleteDeploymentCommandInput,
+ DeleteDeploymentCommandOutput,
+} from "./commands/DeleteDeploymentCommand";
import {
DeleteEnvironmentAccountConnectionCommand,
DeleteEnvironmentAccountConnectionCommandInput,
@@ -152,6 +157,11 @@ import {
GetComponentCommandInput,
GetComponentCommandOutput,
} from "./commands/GetComponentCommand";
+import {
+ GetDeploymentCommand,
+ GetDeploymentCommandInput,
+ GetDeploymentCommandOutput,
+} from "./commands/GetDeploymentCommand";
import {
GetEnvironmentAccountConnectionCommand,
GetEnvironmentAccountConnectionCommandInput,
@@ -243,6 +253,11 @@ import {
ListComponentsCommandInput,
ListComponentsCommandOutput,
} from "./commands/ListComponentsCommand";
+import {
+ ListDeploymentsCommand,
+ ListDeploymentsCommandInput,
+ ListDeploymentsCommandOutput,
+} from "./commands/ListDeploymentsCommand";
import {
ListEnvironmentAccountConnectionsCommand,
ListEnvironmentAccountConnectionsCommandInput,
@@ -435,6 +450,7 @@ const commands = {
CreateServiceTemplateVersionCommand,
CreateTemplateSyncConfigCommand,
DeleteComponentCommand,
+ DeleteDeploymentCommand,
DeleteEnvironmentCommand,
DeleteEnvironmentAccountConnectionCommand,
DeleteEnvironmentTemplateCommand,
@@ -447,6 +463,7 @@ const commands = {
DeleteTemplateSyncConfigCommand,
GetAccountSettingsCommand,
GetComponentCommand,
+ GetDeploymentCommand,
GetEnvironmentCommand,
GetEnvironmentAccountConnectionCommand,
GetEnvironmentTemplateCommand,
@@ -466,6 +483,7 @@ const commands = {
ListComponentOutputsCommand,
ListComponentProvisionedResourcesCommand,
ListComponentsCommand,
+ ListDeploymentsCommand,
ListEnvironmentAccountConnectionsCommand,
ListEnvironmentOutputsCommand,
ListEnvironmentProvisionedResourcesCommand,
@@ -798,6 +816,23 @@ export interface Proton {
cb: (err: any, data?: DeleteComponentCommandOutput) => void
): void;
+ /**
+ * @see {@link DeleteDeploymentCommand}
+ */
+ deleteDeployment(
+ args: DeleteDeploymentCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ deleteDeployment(
+ args: DeleteDeploymentCommandInput,
+ cb: (err: any, data?: DeleteDeploymentCommandOutput) => void
+ ): void;
+ deleteDeployment(
+ args: DeleteDeploymentCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: DeleteDeploymentCommandOutput) => void
+ ): void;
+
/**
* @see {@link DeleteEnvironmentCommand}
*/
@@ -990,6 +1025,17 @@ export interface Proton {
cb: (err: any, data?: GetComponentCommandOutput) => void
): void;
+ /**
+ * @see {@link GetDeploymentCommand}
+ */
+ getDeployment(args: GetDeploymentCommandInput, options?: __HttpHandlerOptions): Promise;
+ getDeployment(args: GetDeploymentCommandInput, cb: (err: any, data?: GetDeploymentCommandOutput) => void): void;
+ getDeployment(
+ args: GetDeploymentCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: GetDeploymentCommandOutput) => void
+ ): void;
+
/**
* @see {@link GetEnvironmentCommand}
*/
@@ -1295,6 +1341,20 @@ export interface Proton {
cb: (err: any, data?: ListComponentsCommandOutput) => void
): void;
+ /**
+ * @see {@link ListDeploymentsCommand}
+ */
+ listDeployments(
+ args: ListDeploymentsCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ listDeployments(args: ListDeploymentsCommandInput, cb: (err: any, data?: ListDeploymentsCommandOutput) => void): void;
+ listDeployments(
+ args: ListDeploymentsCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: ListDeploymentsCommandOutput) => void
+ ): void;
+
/**
* @see {@link ListEnvironmentAccountConnectionsCommand}
*/
diff --git a/clients/client-proton/src/ProtonClient.ts b/clients/client-proton/src/ProtonClient.ts
index af8bdcc93e4b..feea0dd34a12 100644
--- a/clients/client-proton/src/ProtonClient.ts
+++ b/clients/client-proton/src/ProtonClient.ts
@@ -106,6 +106,7 @@ import {
CreateTemplateSyncConfigCommandOutput,
} from "./commands/CreateTemplateSyncConfigCommand";
import { DeleteComponentCommandInput, DeleteComponentCommandOutput } from "./commands/DeleteComponentCommand";
+import { DeleteDeploymentCommandInput, DeleteDeploymentCommandOutput } from "./commands/DeleteDeploymentCommand";
import {
DeleteEnvironmentAccountConnectionCommandInput,
DeleteEnvironmentAccountConnectionCommandOutput,
@@ -139,6 +140,7 @@ import {
} from "./commands/DeleteTemplateSyncConfigCommand";
import { GetAccountSettingsCommandInput, GetAccountSettingsCommandOutput } from "./commands/GetAccountSettingsCommand";
import { GetComponentCommandInput, GetComponentCommandOutput } from "./commands/GetComponentCommand";
+import { GetDeploymentCommandInput, GetDeploymentCommandOutput } from "./commands/GetDeploymentCommand";
import {
GetEnvironmentAccountConnectionCommandInput,
GetEnvironmentAccountConnectionCommandOutput,
@@ -197,6 +199,7 @@ import {
ListComponentProvisionedResourcesCommandOutput,
} from "./commands/ListComponentProvisionedResourcesCommand";
import { ListComponentsCommandInput, ListComponentsCommandOutput } from "./commands/ListComponentsCommand";
+import { ListDeploymentsCommandInput, ListDeploymentsCommandOutput } from "./commands/ListDeploymentsCommand";
import {
ListEnvironmentAccountConnectionsCommandInput,
ListEnvironmentAccountConnectionsCommandOutput,
@@ -345,6 +348,7 @@ export type ServiceInputTypes =
| CreateServiceTemplateVersionCommandInput
| CreateTemplateSyncConfigCommandInput
| DeleteComponentCommandInput
+ | DeleteDeploymentCommandInput
| DeleteEnvironmentAccountConnectionCommandInput
| DeleteEnvironmentCommandInput
| DeleteEnvironmentTemplateCommandInput
@@ -357,6 +361,7 @@ export type ServiceInputTypes =
| DeleteTemplateSyncConfigCommandInput
| GetAccountSettingsCommandInput
| GetComponentCommandInput
+ | GetDeploymentCommandInput
| GetEnvironmentAccountConnectionCommandInput
| GetEnvironmentCommandInput
| GetEnvironmentTemplateCommandInput
@@ -376,6 +381,7 @@ export type ServiceInputTypes =
| ListComponentOutputsCommandInput
| ListComponentProvisionedResourcesCommandInput
| ListComponentsCommandInput
+ | ListDeploymentsCommandInput
| ListEnvironmentAccountConnectionsCommandInput
| ListEnvironmentOutputsCommandInput
| ListEnvironmentProvisionedResourcesCommandInput
@@ -434,6 +440,7 @@ export type ServiceOutputTypes =
| CreateServiceTemplateVersionCommandOutput
| CreateTemplateSyncConfigCommandOutput
| DeleteComponentCommandOutput
+ | DeleteDeploymentCommandOutput
| DeleteEnvironmentAccountConnectionCommandOutput
| DeleteEnvironmentCommandOutput
| DeleteEnvironmentTemplateCommandOutput
@@ -446,6 +453,7 @@ export type ServiceOutputTypes =
| DeleteTemplateSyncConfigCommandOutput
| GetAccountSettingsCommandOutput
| GetComponentCommandOutput
+ | GetDeploymentCommandOutput
| GetEnvironmentAccountConnectionCommandOutput
| GetEnvironmentCommandOutput
| GetEnvironmentTemplateCommandOutput
@@ -465,6 +473,7 @@ export type ServiceOutputTypes =
| ListComponentOutputsCommandOutput
| ListComponentProvisionedResourcesCommandOutput
| ListComponentsCommandOutput
+ | ListDeploymentsCommandOutput
| ListEnvironmentAccountConnectionsCommandOutput
| ListEnvironmentOutputsCommandOutput
| ListEnvironmentProvisionedResourcesCommandOutput
diff --git a/clients/client-proton/src/commands/CancelComponentDeploymentCommand.ts b/clients/client-proton/src/commands/CancelComponentDeploymentCommand.ts
index 61ddad32e4af..974e19119ef0 100644
--- a/clients/client-proton/src/commands/CancelComponentDeploymentCommand.ts
+++ b/clients/client-proton/src/commands/CancelComponentDeploymentCommand.ts
@@ -71,6 +71,8 @@ export interface CancelComponentDeploymentCommandOutput extends CancelComponentD
* // deploymentStatusMessage: "STRING_VALUE",
* // serviceSpec: "STRING_VALUE",
* // lastClientRequestToken: "STRING_VALUE",
+ * // lastAttemptedDeploymentId: "STRING_VALUE",
+ * // lastSucceededDeploymentId: "STRING_VALUE",
* // },
* // };
*
diff --git a/clients/client-proton/src/commands/CancelEnvironmentDeploymentCommand.ts b/clients/client-proton/src/commands/CancelEnvironmentDeploymentCommand.ts
index d64f5ff939cb..5f8747732ede 100644
--- a/clients/client-proton/src/commands/CancelEnvironmentDeploymentCommand.ts
+++ b/clients/client-proton/src/commands/CancelEnvironmentDeploymentCommand.ts
@@ -93,6 +93,8 @@ export interface CancelEnvironmentDeploymentCommandOutput extends CancelEnvironm
* // },
* // componentRoleArn: "STRING_VALUE",
* // codebuildRoleArn: "STRING_VALUE",
+ * // lastAttemptedDeploymentId: "STRING_VALUE",
+ * // lastSucceededDeploymentId: "STRING_VALUE",
* // },
* // };
*
diff --git a/clients/client-proton/src/commands/CancelServiceInstanceDeploymentCommand.ts b/clients/client-proton/src/commands/CancelServiceInstanceDeploymentCommand.ts
index 7bc9becb7f01..3181a7242242 100644
--- a/clients/client-proton/src/commands/CancelServiceInstanceDeploymentCommand.ts
+++ b/clients/client-proton/src/commands/CancelServiceInstanceDeploymentCommand.ts
@@ -92,6 +92,8 @@ export interface CancelServiceInstanceDeploymentCommandOutput
* // deploymentStatusMessage: "STRING_VALUE",
* // spec: "STRING_VALUE",
* // lastClientRequestToken: "STRING_VALUE",
+ * // lastAttemptedDeploymentId: "STRING_VALUE",
+ * // lastSucceededDeploymentId: "STRING_VALUE",
* // },
* // };
*
diff --git a/clients/client-proton/src/commands/CancelServicePipelineDeploymentCommand.ts b/clients/client-proton/src/commands/CancelServicePipelineDeploymentCommand.ts
index 2348b8eddd07..43657113b061 100644
--- a/clients/client-proton/src/commands/CancelServicePipelineDeploymentCommand.ts
+++ b/clients/client-proton/src/commands/CancelServicePipelineDeploymentCommand.ts
@@ -87,6 +87,8 @@ export interface CancelServicePipelineDeploymentCommandOutput
* // deploymentStatus: "STRING_VALUE", // required
* // deploymentStatusMessage: "STRING_VALUE",
* // spec: "STRING_VALUE",
+ * // lastAttemptedDeploymentId: "STRING_VALUE",
+ * // lastSucceededDeploymentId: "STRING_VALUE",
* // },
* // };
*
diff --git a/clients/client-proton/src/commands/CreateComponentCommand.ts b/clients/client-proton/src/commands/CreateComponentCommand.ts
index 2defe938a4e4..185a215ab889 100644
--- a/clients/client-proton/src/commands/CreateComponentCommand.ts
+++ b/clients/client-proton/src/commands/CreateComponentCommand.ts
@@ -86,6 +86,8 @@ export interface CreateComponentCommandOutput extends CreateComponentOutput, __M
* // deploymentStatusMessage: "STRING_VALUE",
* // serviceSpec: "STRING_VALUE",
* // lastClientRequestToken: "STRING_VALUE",
+ * // lastAttemptedDeploymentId: "STRING_VALUE",
+ * // lastSucceededDeploymentId: "STRING_VALUE",
* // },
* // };
*
diff --git a/clients/client-proton/src/commands/CreateEnvironmentCommand.ts b/clients/client-proton/src/commands/CreateEnvironmentCommand.ts
index 1612b4b54ccd..2fc81492a317 100644
--- a/clients/client-proton/src/commands/CreateEnvironmentCommand.ts
+++ b/clients/client-proton/src/commands/CreateEnvironmentCommand.ts
@@ -114,6 +114,8 @@ export interface CreateEnvironmentCommandOutput extends CreateEnvironmentOutput,
* // },
* // componentRoleArn: "STRING_VALUE",
* // codebuildRoleArn: "STRING_VALUE",
+ * // lastAttemptedDeploymentId: "STRING_VALUE",
+ * // lastSucceededDeploymentId: "STRING_VALUE",
* // },
* // };
*
diff --git a/clients/client-proton/src/commands/CreateServiceCommand.ts b/clients/client-proton/src/commands/CreateServiceCommand.ts
index a6c3abacdf95..3f8c0f38ec3e 100644
--- a/clients/client-proton/src/commands/CreateServiceCommand.ts
+++ b/clients/client-proton/src/commands/CreateServiceCommand.ts
@@ -92,6 +92,8 @@ export interface CreateServiceCommandOutput extends CreateServiceOutput, __Metad
* // deploymentStatus: "STRING_VALUE", // required
* // deploymentStatusMessage: "STRING_VALUE",
* // spec: "STRING_VALUE",
+ * // lastAttemptedDeploymentId: "STRING_VALUE",
+ * // lastSucceededDeploymentId: "STRING_VALUE",
* // },
* // repositoryConnectionArn: "STRING_VALUE",
* // repositoryId: "STRING_VALUE",
diff --git a/clients/client-proton/src/commands/CreateServiceInstanceCommand.ts b/clients/client-proton/src/commands/CreateServiceInstanceCommand.ts
index f79a5bc66906..f362febd7404 100644
--- a/clients/client-proton/src/commands/CreateServiceInstanceCommand.ts
+++ b/clients/client-proton/src/commands/CreateServiceInstanceCommand.ts
@@ -80,6 +80,8 @@ export interface CreateServiceInstanceCommandOutput extends CreateServiceInstanc
* // deploymentStatusMessage: "STRING_VALUE",
* // spec: "STRING_VALUE",
* // lastClientRequestToken: "STRING_VALUE",
+ * // lastAttemptedDeploymentId: "STRING_VALUE",
+ * // lastSucceededDeploymentId: "STRING_VALUE",
* // },
* // };
*
diff --git a/clients/client-proton/src/commands/CreateTemplateSyncConfigCommand.ts b/clients/client-proton/src/commands/CreateTemplateSyncConfigCommand.ts
index 6d342f1fee9a..24a6f3e98e8e 100644
--- a/clients/client-proton/src/commands/CreateTemplateSyncConfigCommand.ts
+++ b/clients/client-proton/src/commands/CreateTemplateSyncConfigCommand.ts
@@ -36,14 +36,11 @@ export interface CreateTemplateSyncConfigCommandOutput extends CreateTemplateSyn
/**
* @public
- * Set up a template to create new template versions automatically by tracking a linked
- * repository. A linked repository is a repository that has been registered with Proton. For more
- * information, see CreateRepository.
- * When a commit is pushed to your linked repository, Proton checks for changes to your
- * repository template bundles. If it detects a template bundle change, a new major or minor version
- * of its template is created, if the version doesn’t already exist. For more information, see
- * Template
- * sync configurations in the Proton User Guide.
+ * Set up a template to create new template versions automatically by tracking a linked repository. A linked repository is a repository that has
+ * been registered with Proton. For more information, see CreateRepository.
+ * When a commit is pushed to your linked repository, Proton checks for changes to your repository template bundles. If it detects a template
+ * bundle change, a new major or minor version of its template is created, if the version doesn’t already exist. For more information, see Template sync configurations in the Proton
+ * User Guide.
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
diff --git a/clients/client-proton/src/commands/DeleteComponentCommand.ts b/clients/client-proton/src/commands/DeleteComponentCommand.ts
index fd337d56d5a9..995b5fe9076e 100644
--- a/clients/client-proton/src/commands/DeleteComponentCommand.ts
+++ b/clients/client-proton/src/commands/DeleteComponentCommand.ts
@@ -71,6 +71,8 @@ export interface DeleteComponentCommandOutput extends DeleteComponentOutput, __M
* // deploymentStatusMessage: "STRING_VALUE",
* // serviceSpec: "STRING_VALUE",
* // lastClientRequestToken: "STRING_VALUE",
+ * // lastAttemptedDeploymentId: "STRING_VALUE",
+ * // lastSucceededDeploymentId: "STRING_VALUE",
* // },
* // };
*
diff --git a/clients/client-proton/src/commands/DeleteDeploymentCommand.ts b/clients/client-proton/src/commands/DeleteDeploymentCommand.ts
new file mode 100644
index 000000000000..ada89e10fdf5
--- /dev/null
+++ b/clients/client-proton/src/commands/DeleteDeploymentCommand.ts
@@ -0,0 +1,240 @@
+// smithy-typescript generated code
+import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint";
+import { getSerdePlugin } from "@smithy/middleware-serde";
+import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
+import { Command as $Command } from "@smithy/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ HttpHandlerOptions as __HttpHandlerOptions,
+ MetadataBearer as __MetadataBearer,
+ MiddlewareStack,
+ SerdeContext as __SerdeContext,
+} from "@smithy/types";
+
+import {
+ DeleteDeploymentInput,
+ DeleteDeploymentOutput,
+ DeleteDeploymentOutputFilterSensitiveLog,
+} from "../models/models_0";
+import { de_DeleteDeploymentCommand, se_DeleteDeploymentCommand } from "../protocols/Aws_json1_0";
+import { ProtonClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ProtonClient";
+
+/**
+ * @public
+ */
+export { __MetadataBearer, $Command };
+/**
+ * @public
+ *
+ * The input for {@link DeleteDeploymentCommand}.
+ */
+export interface DeleteDeploymentCommandInput extends DeleteDeploymentInput {}
+/**
+ * @public
+ *
+ * The output of {@link DeleteDeploymentCommand}.
+ */
+export interface DeleteDeploymentCommandOutput extends DeleteDeploymentOutput, __MetadataBearer {}
+
+/**
+ * @public
+ * Delete the deployment.
+ * @example
+ * Use a bare-bones client and the command you need to make an API call.
+ * ```javascript
+ * import { ProtonClient, DeleteDeploymentCommand } from "@aws-sdk/client-proton"; // ES Modules import
+ * // const { ProtonClient, DeleteDeploymentCommand } = require("@aws-sdk/client-proton"); // CommonJS import
+ * const client = new ProtonClient(config);
+ * const input = { // DeleteDeploymentInput
+ * id: "STRING_VALUE", // required
+ * };
+ * const command = new DeleteDeploymentCommand(input);
+ * const response = await client.send(command);
+ * // { // DeleteDeploymentOutput
+ * // deployment: { // Deployment
+ * // id: "STRING_VALUE", // required
+ * // arn: "STRING_VALUE", // required
+ * // targetArn: "STRING_VALUE", // required
+ * // targetResourceCreatedAt: new Date("TIMESTAMP"), // required
+ * // targetResourceType: "STRING_VALUE", // required
+ * // environmentName: "STRING_VALUE", // required
+ * // serviceName: "STRING_VALUE",
+ * // serviceInstanceName: "STRING_VALUE",
+ * // componentName: "STRING_VALUE",
+ * // deploymentStatus: "STRING_VALUE", // required
+ * // deploymentStatusMessage: "STRING_VALUE",
+ * // createdAt: new Date("TIMESTAMP"), // required
+ * // lastModifiedAt: new Date("TIMESTAMP"), // required
+ * // completedAt: new Date("TIMESTAMP"),
+ * // lastAttemptedDeploymentId: "STRING_VALUE",
+ * // lastSucceededDeploymentId: "STRING_VALUE",
+ * // initialState: { // DeploymentState Union: only one key present
+ * // serviceInstance: { // ServiceInstanceState
+ * // spec: "STRING_VALUE", // required
+ * // templateName: "STRING_VALUE", // required
+ * // templateMajorVersion: "STRING_VALUE", // required
+ * // templateMinorVersion: "STRING_VALUE", // required
+ * // lastSuccessfulComponentDeploymentIds: [ // ComponentDeploymentIdList
+ * // "STRING_VALUE",
+ * // ],
+ * // lastSuccessfulEnvironmentDeploymentId: "STRING_VALUE",
+ * // lastSuccessfulServicePipelineDeploymentId: "STRING_VALUE",
+ * // },
+ * // environment: { // EnvironmentState
+ * // spec: "STRING_VALUE",
+ * // templateName: "STRING_VALUE", // required
+ * // templateMajorVersion: "STRING_VALUE", // required
+ * // templateMinorVersion: "STRING_VALUE", // required
+ * // },
+ * // servicePipeline: { // ServicePipelineState
+ * // spec: "STRING_VALUE",
+ * // templateName: "STRING_VALUE", // required
+ * // templateMajorVersion: "STRING_VALUE", // required
+ * // templateMinorVersion: "STRING_VALUE", // required
+ * // },
+ * // component: { // ComponentState
+ * // serviceName: "STRING_VALUE",
+ * // serviceInstanceName: "STRING_VALUE",
+ * // serviceSpec: "STRING_VALUE",
+ * // templateFile: "STRING_VALUE",
+ * // },
+ * // },
+ * // targetState: {// Union: only one key present
+ * // serviceInstance: {
+ * // spec: "STRING_VALUE", // required
+ * // templateName: "STRING_VALUE", // required
+ * // templateMajorVersion: "STRING_VALUE", // required
+ * // templateMinorVersion: "STRING_VALUE", // required
+ * // lastSuccessfulComponentDeploymentIds: [
+ * // "STRING_VALUE",
+ * // ],
+ * // lastSuccessfulEnvironmentDeploymentId: "STRING_VALUE",
+ * // lastSuccessfulServicePipelineDeploymentId: "STRING_VALUE",
+ * // },
+ * // environment: {
+ * // spec: "STRING_VALUE",
+ * // templateName: "STRING_VALUE", // required
+ * // templateMajorVersion: "STRING_VALUE", // required
+ * // templateMinorVersion: "STRING_VALUE", // required
+ * // },
+ * // servicePipeline: {
+ * // spec: "STRING_VALUE",
+ * // templateName: "STRING_VALUE", // required
+ * // templateMajorVersion: "STRING_VALUE", // required
+ * // templateMinorVersion: "STRING_VALUE", // required
+ * // },
+ * // component: {
+ * // serviceName: "STRING_VALUE",
+ * // serviceInstanceName: "STRING_VALUE",
+ * // serviceSpec: "STRING_VALUE",
+ * // templateFile: "STRING_VALUE",
+ * // },
+ * // },
+ * // },
+ * // };
+ *
+ * ```
+ *
+ * @param DeleteDeploymentCommandInput - {@link DeleteDeploymentCommandInput}
+ * @returns {@link DeleteDeploymentCommandOutput}
+ * @see {@link DeleteDeploymentCommandInput} for command's `input` shape.
+ * @see {@link DeleteDeploymentCommandOutput} for command's `response` shape.
+ * @see {@link ProtonClientResolvedConfig | config} for ProtonClient's `config` shape.
+ *
+ * @throws {@link AccessDeniedException} (client fault)
+ * There isn't sufficient access for performing this action.
+ *
+ * @throws {@link InternalServerException} (server fault)
+ * The request failed to register with the service.
+ *
+ * @throws {@link ResourceNotFoundException} (client fault)
+ * The requested resource wasn't found.
+ *
+ * @throws {@link ThrottlingException} (client fault)
+ * The request was denied due to request throttling.
+ *
+ * @throws {@link ValidationException} (client fault)
+ * The input is invalid or an out-of-range value was supplied for the input parameter.
+ *
+ * @throws {@link ProtonServiceException}
+ * Base exception class for all service exceptions from Proton service.
+ *
+ */
+export class DeleteDeploymentCommand extends $Command<
+ DeleteDeploymentCommandInput,
+ DeleteDeploymentCommandOutput,
+ ProtonClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ public static getEndpointParameterInstructions(): EndpointParameterInstructions {
+ return {
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
+ Endpoint: { type: "builtInParams", name: "endpoint" },
+ Region: { type: "builtInParams", name: "region" },
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
+ };
+ }
+
+ /**
+ * @public
+ */
+ constructor(readonly input: DeleteDeploymentCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ /**
+ * @internal
+ */
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: ProtonClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.middlewareStack.use(
+ getEndpointPlugin(configuration, DeleteDeploymentCommand.getEndpointParameterInstructions())
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const { logger } = configuration;
+ const clientName = "ProtonClient";
+ const commandName = "DeleteDeploymentCommand";
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger,
+ clientName,
+ commandName,
+ inputFilterSensitiveLog: (_: any) => _,
+ outputFilterSensitiveLog: DeleteDeploymentOutputFilterSensitiveLog,
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ /**
+ * @internal
+ */
+ private serialize(input: DeleteDeploymentCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
+ return se_DeleteDeploymentCommand(input, context);
+ }
+
+ /**
+ * @internal
+ */
+ private deserialize(output: __HttpResponse, context: __SerdeContext): Promise {
+ return de_DeleteDeploymentCommand(output, context);
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-proton/src/commands/DeleteEnvironmentCommand.ts b/clients/client-proton/src/commands/DeleteEnvironmentCommand.ts
index ad36d911a01a..182d7a3b61cc 100644
--- a/clients/client-proton/src/commands/DeleteEnvironmentCommand.ts
+++ b/clients/client-proton/src/commands/DeleteEnvironmentCommand.ts
@@ -78,6 +78,8 @@ export interface DeleteEnvironmentCommandOutput extends DeleteEnvironmentOutput,
* // },
* // componentRoleArn: "STRING_VALUE",
* // codebuildRoleArn: "STRING_VALUE",
+ * // lastAttemptedDeploymentId: "STRING_VALUE",
+ * // lastSucceededDeploymentId: "STRING_VALUE",
* // },
* // };
*
diff --git a/clients/client-proton/src/commands/DeleteServiceCommand.ts b/clients/client-proton/src/commands/DeleteServiceCommand.ts
index 397affe78a06..67cd7f5e822c 100644
--- a/clients/client-proton/src/commands/DeleteServiceCommand.ts
+++ b/clients/client-proton/src/commands/DeleteServiceCommand.ts
@@ -77,6 +77,8 @@ export interface DeleteServiceCommandOutput extends DeleteServiceOutput, __Metad
* // deploymentStatus: "STRING_VALUE", // required
* // deploymentStatusMessage: "STRING_VALUE",
* // spec: "STRING_VALUE",
+ * // lastAttemptedDeploymentId: "STRING_VALUE",
+ * // lastSucceededDeploymentId: "STRING_VALUE",
* // },
* // repositoryConnectionArn: "STRING_VALUE",
* // repositoryId: "STRING_VALUE",
diff --git a/clients/client-proton/src/commands/GetComponentCommand.ts b/clients/client-proton/src/commands/GetComponentCommand.ts
index 23419f18503d..4f031484d594 100644
--- a/clients/client-proton/src/commands/GetComponentCommand.ts
+++ b/clients/client-proton/src/commands/GetComponentCommand.ts
@@ -67,6 +67,8 @@ export interface GetComponentCommandOutput extends GetComponentOutput, __Metadat
* // deploymentStatusMessage: "STRING_VALUE",
* // serviceSpec: "STRING_VALUE",
* // lastClientRequestToken: "STRING_VALUE",
+ * // lastAttemptedDeploymentId: "STRING_VALUE",
+ * // lastSucceededDeploymentId: "STRING_VALUE",
* // },
* // };
*
diff --git a/clients/client-proton/src/commands/GetDeploymentCommand.ts b/clients/client-proton/src/commands/GetDeploymentCommand.ts
new file mode 100644
index 000000000000..be279f65bc56
--- /dev/null
+++ b/clients/client-proton/src/commands/GetDeploymentCommand.ts
@@ -0,0 +1,238 @@
+// smithy-typescript generated code
+import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint";
+import { getSerdePlugin } from "@smithy/middleware-serde";
+import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
+import { Command as $Command } from "@smithy/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ HttpHandlerOptions as __HttpHandlerOptions,
+ MetadataBearer as __MetadataBearer,
+ MiddlewareStack,
+ SerdeContext as __SerdeContext,
+} from "@smithy/types";
+
+import { GetDeploymentInput, GetDeploymentOutput, GetDeploymentOutputFilterSensitiveLog } from "../models/models_0";
+import { de_GetDeploymentCommand, se_GetDeploymentCommand } from "../protocols/Aws_json1_0";
+import { ProtonClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ProtonClient";
+
+/**
+ * @public
+ */
+export { __MetadataBearer, $Command };
+/**
+ * @public
+ *
+ * The input for {@link GetDeploymentCommand}.
+ */
+export interface GetDeploymentCommandInput extends GetDeploymentInput {}
+/**
+ * @public
+ *
+ * The output of {@link GetDeploymentCommand}.
+ */
+export interface GetDeploymentCommandOutput extends GetDeploymentOutput, __MetadataBearer {}
+
+/**
+ * @public
+ * Get detailed data for a deployment.
+ * @example
+ * Use a bare-bones client and the command you need to make an API call.
+ * ```javascript
+ * import { ProtonClient, GetDeploymentCommand } from "@aws-sdk/client-proton"; // ES Modules import
+ * // const { ProtonClient, GetDeploymentCommand } = require("@aws-sdk/client-proton"); // CommonJS import
+ * const client = new ProtonClient(config);
+ * const input = { // GetDeploymentInput
+ * id: "STRING_VALUE", // required
+ * environmentName: "STRING_VALUE",
+ * serviceName: "STRING_VALUE",
+ * serviceInstanceName: "STRING_VALUE",
+ * componentName: "STRING_VALUE",
+ * };
+ * const command = new GetDeploymentCommand(input);
+ * const response = await client.send(command);
+ * // { // GetDeploymentOutput
+ * // deployment: { // Deployment
+ * // id: "STRING_VALUE", // required
+ * // arn: "STRING_VALUE", // required
+ * // targetArn: "STRING_VALUE", // required
+ * // targetResourceCreatedAt: new Date("TIMESTAMP"), // required
+ * // targetResourceType: "STRING_VALUE", // required
+ * // environmentName: "STRING_VALUE", // required
+ * // serviceName: "STRING_VALUE",
+ * // serviceInstanceName: "STRING_VALUE",
+ * // componentName: "STRING_VALUE",
+ * // deploymentStatus: "STRING_VALUE", // required
+ * // deploymentStatusMessage: "STRING_VALUE",
+ * // createdAt: new Date("TIMESTAMP"), // required
+ * // lastModifiedAt: new Date("TIMESTAMP"), // required
+ * // completedAt: new Date("TIMESTAMP"),
+ * // lastAttemptedDeploymentId: "STRING_VALUE",
+ * // lastSucceededDeploymentId: "STRING_VALUE",
+ * // initialState: { // DeploymentState Union: only one key present
+ * // serviceInstance: { // ServiceInstanceState
+ * // spec: "STRING_VALUE", // required
+ * // templateName: "STRING_VALUE", // required
+ * // templateMajorVersion: "STRING_VALUE", // required
+ * // templateMinorVersion: "STRING_VALUE", // required
+ * // lastSuccessfulComponentDeploymentIds: [ // ComponentDeploymentIdList
+ * // "STRING_VALUE",
+ * // ],
+ * // lastSuccessfulEnvironmentDeploymentId: "STRING_VALUE",
+ * // lastSuccessfulServicePipelineDeploymentId: "STRING_VALUE",
+ * // },
+ * // environment: { // EnvironmentState
+ * // spec: "STRING_VALUE",
+ * // templateName: "STRING_VALUE", // required
+ * // templateMajorVersion: "STRING_VALUE", // required
+ * // templateMinorVersion: "STRING_VALUE", // required
+ * // },
+ * // servicePipeline: { // ServicePipelineState
+ * // spec: "STRING_VALUE",
+ * // templateName: "STRING_VALUE", // required
+ * // templateMajorVersion: "STRING_VALUE", // required
+ * // templateMinorVersion: "STRING_VALUE", // required
+ * // },
+ * // component: { // ComponentState
+ * // serviceName: "STRING_VALUE",
+ * // serviceInstanceName: "STRING_VALUE",
+ * // serviceSpec: "STRING_VALUE",
+ * // templateFile: "STRING_VALUE",
+ * // },
+ * // },
+ * // targetState: {// Union: only one key present
+ * // serviceInstance: {
+ * // spec: "STRING_VALUE", // required
+ * // templateName: "STRING_VALUE", // required
+ * // templateMajorVersion: "STRING_VALUE", // required
+ * // templateMinorVersion: "STRING_VALUE", // required
+ * // lastSuccessfulComponentDeploymentIds: [
+ * // "STRING_VALUE",
+ * // ],
+ * // lastSuccessfulEnvironmentDeploymentId: "STRING_VALUE",
+ * // lastSuccessfulServicePipelineDeploymentId: "STRING_VALUE",
+ * // },
+ * // environment: {
+ * // spec: "STRING_VALUE",
+ * // templateName: "STRING_VALUE", // required
+ * // templateMajorVersion: "STRING_VALUE", // required
+ * // templateMinorVersion: "STRING_VALUE", // required
+ * // },
+ * // servicePipeline: {
+ * // spec: "STRING_VALUE",
+ * // templateName: "STRING_VALUE", // required
+ * // templateMajorVersion: "STRING_VALUE", // required
+ * // templateMinorVersion: "STRING_VALUE", // required
+ * // },
+ * // component: {
+ * // serviceName: "STRING_VALUE",
+ * // serviceInstanceName: "STRING_VALUE",
+ * // serviceSpec: "STRING_VALUE",
+ * // templateFile: "STRING_VALUE",
+ * // },
+ * // },
+ * // },
+ * // };
+ *
+ * ```
+ *
+ * @param GetDeploymentCommandInput - {@link GetDeploymentCommandInput}
+ * @returns {@link GetDeploymentCommandOutput}
+ * @see {@link GetDeploymentCommandInput} for command's `input` shape.
+ * @see {@link GetDeploymentCommandOutput} for command's `response` shape.
+ * @see {@link ProtonClientResolvedConfig | config} for ProtonClient's `config` shape.
+ *
+ * @throws {@link AccessDeniedException} (client fault)
+ * There isn't sufficient access for performing this action.
+ *
+ * @throws {@link InternalServerException} (server fault)
+ * The request failed to register with the service.
+ *
+ * @throws {@link ResourceNotFoundException} (client fault)
+ * The requested resource wasn't found.
+ *
+ * @throws {@link ThrottlingException} (client fault)
+ * The request was denied due to request throttling.
+ *
+ * @throws {@link ValidationException} (client fault)
+ * The input is invalid or an out-of-range value was supplied for the input parameter.
+ *
+ * @throws {@link ProtonServiceException}
+ * Base exception class for all service exceptions from Proton service.
+ *
+ */
+export class GetDeploymentCommand extends $Command<
+ GetDeploymentCommandInput,
+ GetDeploymentCommandOutput,
+ ProtonClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ public static getEndpointParameterInstructions(): EndpointParameterInstructions {
+ return {
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
+ Endpoint: { type: "builtInParams", name: "endpoint" },
+ Region: { type: "builtInParams", name: "region" },
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
+ };
+ }
+
+ /**
+ * @public
+ */
+ constructor(readonly input: GetDeploymentCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ /**
+ * @internal
+ */
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: ProtonClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.middlewareStack.use(getEndpointPlugin(configuration, GetDeploymentCommand.getEndpointParameterInstructions()));
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const { logger } = configuration;
+ const clientName = "ProtonClient";
+ const commandName = "GetDeploymentCommand";
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger,
+ clientName,
+ commandName,
+ inputFilterSensitiveLog: (_: any) => _,
+ outputFilterSensitiveLog: GetDeploymentOutputFilterSensitiveLog,
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ /**
+ * @internal
+ */
+ private serialize(input: GetDeploymentCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
+ return se_GetDeploymentCommand(input, context);
+ }
+
+ /**
+ * @internal
+ */
+ private deserialize(output: __HttpResponse, context: __SerdeContext): Promise {
+ return de_GetDeploymentCommand(output, context);
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-proton/src/commands/GetEnvironmentCommand.ts b/clients/client-proton/src/commands/GetEnvironmentCommand.ts
index 66ea40d03a5f..4be98d5048cc 100644
--- a/clients/client-proton/src/commands/GetEnvironmentCommand.ts
+++ b/clients/client-proton/src/commands/GetEnvironmentCommand.ts
@@ -74,6 +74,8 @@ export interface GetEnvironmentCommandOutput extends GetEnvironmentOutput, __Met
* // },
* // componentRoleArn: "STRING_VALUE",
* // codebuildRoleArn: "STRING_VALUE",
+ * // lastAttemptedDeploymentId: "STRING_VALUE",
+ * // lastSucceededDeploymentId: "STRING_VALUE",
* // },
* // };
*
diff --git a/clients/client-proton/src/commands/GetResourcesSummaryCommand.ts b/clients/client-proton/src/commands/GetResourcesSummaryCommand.ts
index ce2c6bd3227c..b9a42664d06f 100644
--- a/clients/client-proton/src/commands/GetResourcesSummaryCommand.ts
+++ b/clients/client-proton/src/commands/GetResourcesSummaryCommand.ts
@@ -37,17 +37,13 @@ export interface GetResourcesSummaryCommandOutput extends GetResourcesSummaryOut
/**
* @public
* Get counts of Proton resources.
- * For infrastructure-provisioning resources (environments, services, service instances,
- * pipelines), the action returns staleness counts. A resource is stale when it's behind the
- * recommended version of the Proton template that it uses and it needs an update to become
- * current.
- * The action returns staleness counts (counts of resources that are up-to-date, behind a
- * template major version, or behind a template minor version), the total number of resources, and
- * the number of resources that are in a failed state, grouped by resource type. Components,
- * environments, and service templates return less information - see the components
,
- * environments
, and serviceTemplates
field descriptions.
- * For context, the action also returns the total number of each type of Proton template in the
- * Amazon Web Services account.
+ * For infrastructure-provisioning resources (environments, services, service instances, pipelines), the action returns staleness counts. A
+ * resource is stale when it's behind the recommended version of the Proton template that it uses and it needs an update to become current.
+ * The action returns staleness counts (counts of resources that are up-to-date, behind a template major version, or behind a template minor
+ * version), the total number of resources, and the number of resources that are in a failed state, grouped by resource type. Components,
+ * environments, and service templates return less information - see the components
, environments
, and
+ * serviceTemplates
field descriptions.
+ * For context, the action also returns the total number of each type of Proton template in the Amazon Web Services account.
* For more information, see Proton dashboard in the
* Proton User Guide.
* @example
diff --git a/clients/client-proton/src/commands/GetServiceCommand.ts b/clients/client-proton/src/commands/GetServiceCommand.ts
index ce6df8f0b628..c6c03f07feb6 100644
--- a/clients/client-proton/src/commands/GetServiceCommand.ts
+++ b/clients/client-proton/src/commands/GetServiceCommand.ts
@@ -70,6 +70,8 @@ export interface GetServiceCommandOutput extends GetServiceOutput, __MetadataBea
* // deploymentStatus: "STRING_VALUE", // required
* // deploymentStatusMessage: "STRING_VALUE",
* // spec: "STRING_VALUE",
+ * // lastAttemptedDeploymentId: "STRING_VALUE",
+ * // lastSucceededDeploymentId: "STRING_VALUE",
* // },
* // repositoryConnectionArn: "STRING_VALUE",
* // repositoryId: "STRING_VALUE",
diff --git a/clients/client-proton/src/commands/GetServiceInstanceCommand.ts b/clients/client-proton/src/commands/GetServiceInstanceCommand.ts
index 35ae95217b0c..284f472115f7 100644
--- a/clients/client-proton/src/commands/GetServiceInstanceCommand.ts
+++ b/clients/client-proton/src/commands/GetServiceInstanceCommand.ts
@@ -70,6 +70,8 @@ export interface GetServiceInstanceCommandOutput extends GetServiceInstanceOutpu
* // deploymentStatusMessage: "STRING_VALUE",
* // spec: "STRING_VALUE",
* // lastClientRequestToken: "STRING_VALUE",
+ * // lastAttemptedDeploymentId: "STRING_VALUE",
+ * // lastSucceededDeploymentId: "STRING_VALUE",
* // },
* // };
*
diff --git a/clients/client-proton/src/commands/ListComponentOutputsCommand.ts b/clients/client-proton/src/commands/ListComponentOutputsCommand.ts
index 1ce7d95a6b22..29586ec222f1 100644
--- a/clients/client-proton/src/commands/ListComponentOutputsCommand.ts
+++ b/clients/client-proton/src/commands/ListComponentOutputsCommand.ts
@@ -53,6 +53,7 @@ export interface ListComponentOutputsCommandOutput extends ListComponentOutputsO
* const input = { // ListComponentOutputsInput
* componentName: "STRING_VALUE", // required
* nextToken: "STRING_VALUE",
+ * deploymentId: "STRING_VALUE",
* };
* const command = new ListComponentOutputsCommand(input);
* const response = await client.send(command);
diff --git a/clients/client-proton/src/commands/ListComponentsCommand.ts b/clients/client-proton/src/commands/ListComponentsCommand.ts
index 13a708c0569c..999e67c2a8fc 100644
--- a/clients/client-proton/src/commands/ListComponentsCommand.ts
+++ b/clients/client-proton/src/commands/ListComponentsCommand.ts
@@ -70,6 +70,8 @@ export interface ListComponentsCommandOutput extends ListComponentsOutput, __Met
* // lastDeploymentSucceededAt: new Date("TIMESTAMP"),
* // deploymentStatus: "STRING_VALUE", // required
* // deploymentStatusMessage: "STRING_VALUE",
+ * // lastAttemptedDeploymentId: "STRING_VALUE",
+ * // lastSucceededDeploymentId: "STRING_VALUE",
* // },
* // ],
* // };
diff --git a/clients/client-proton/src/commands/ListDeploymentsCommand.ts b/clients/client-proton/src/commands/ListDeploymentsCommand.ts
new file mode 100644
index 000000000000..4c49b27d7f4a
--- /dev/null
+++ b/clients/client-proton/src/commands/ListDeploymentsCommand.ts
@@ -0,0 +1,181 @@
+// smithy-typescript generated code
+import { EndpointParameterInstructions, getEndpointPlugin } from "@smithy/middleware-endpoint";
+import { getSerdePlugin } from "@smithy/middleware-serde";
+import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
+import { Command as $Command } from "@smithy/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ HttpHandlerOptions as __HttpHandlerOptions,
+ MetadataBearer as __MetadataBearer,
+ MiddlewareStack,
+ SerdeContext as __SerdeContext,
+} from "@smithy/types";
+
+import { ListDeploymentsInput, ListDeploymentsOutput } from "../models/models_0";
+import { de_ListDeploymentsCommand, se_ListDeploymentsCommand } from "../protocols/Aws_json1_0";
+import { ProtonClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ProtonClient";
+
+/**
+ * @public
+ */
+export { __MetadataBearer, $Command };
+/**
+ * @public
+ *
+ * The input for {@link ListDeploymentsCommand}.
+ */
+export interface ListDeploymentsCommandInput extends ListDeploymentsInput {}
+/**
+ * @public
+ *
+ * The output of {@link ListDeploymentsCommand}.
+ */
+export interface ListDeploymentsCommandOutput extends ListDeploymentsOutput, __MetadataBearer {}
+
+/**
+ * @public
+ * List deployments. You can filter the result list by environment, service, or a single service instance.
+ * @example
+ * Use a bare-bones client and the command you need to make an API call.
+ * ```javascript
+ * import { ProtonClient, ListDeploymentsCommand } from "@aws-sdk/client-proton"; // ES Modules import
+ * // const { ProtonClient, ListDeploymentsCommand } = require("@aws-sdk/client-proton"); // CommonJS import
+ * const client = new ProtonClient(config);
+ * const input = { // ListDeploymentsInput
+ * nextToken: "STRING_VALUE",
+ * environmentName: "STRING_VALUE",
+ * serviceName: "STRING_VALUE",
+ * serviceInstanceName: "STRING_VALUE",
+ * componentName: "STRING_VALUE",
+ * maxResults: Number("int"),
+ * };
+ * const command = new ListDeploymentsCommand(input);
+ * const response = await client.send(command);
+ * // { // ListDeploymentsOutput
+ * // nextToken: "STRING_VALUE",
+ * // deployments: [ // DeploymentSummaryList // required
+ * // { // DeploymentSummary
+ * // id: "STRING_VALUE", // required
+ * // arn: "STRING_VALUE", // required
+ * // targetArn: "STRING_VALUE", // required
+ * // targetResourceCreatedAt: new Date("TIMESTAMP"), // required
+ * // targetResourceType: "STRING_VALUE", // required
+ * // createdAt: new Date("TIMESTAMP"), // required
+ * // lastModifiedAt: new Date("TIMESTAMP"), // required
+ * // completedAt: new Date("TIMESTAMP"),
+ * // environmentName: "STRING_VALUE", // required
+ * // serviceName: "STRING_VALUE",
+ * // serviceInstanceName: "STRING_VALUE",
+ * // componentName: "STRING_VALUE",
+ * // lastAttemptedDeploymentId: "STRING_VALUE",
+ * // lastSucceededDeploymentId: "STRING_VALUE",
+ * // deploymentStatus: "STRING_VALUE", // required
+ * // },
+ * // ],
+ * // };
+ *
+ * ```
+ *
+ * @param ListDeploymentsCommandInput - {@link ListDeploymentsCommandInput}
+ * @returns {@link ListDeploymentsCommandOutput}
+ * @see {@link ListDeploymentsCommandInput} for command's `input` shape.
+ * @see {@link ListDeploymentsCommandOutput} for command's `response` shape.
+ * @see {@link ProtonClientResolvedConfig | config} for ProtonClient's `config` shape.
+ *
+ * @throws {@link AccessDeniedException} (client fault)
+ * There isn't sufficient access for performing this action.
+ *
+ * @throws {@link InternalServerException} (server fault)
+ * The request failed to register with the service.
+ *
+ * @throws {@link ResourceNotFoundException} (client fault)
+ * The requested resource wasn't found.
+ *
+ * @throws {@link ThrottlingException} (client fault)
+ * The request was denied due to request throttling.
+ *
+ * @throws {@link ValidationException} (client fault)
+ * The input is invalid or an out-of-range value was supplied for the input parameter.
+ *
+ * @throws {@link ProtonServiceException}
+ * Base exception class for all service exceptions from Proton service.
+ *
+ */
+export class ListDeploymentsCommand extends $Command<
+ ListDeploymentsCommandInput,
+ ListDeploymentsCommandOutput,
+ ProtonClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ public static getEndpointParameterInstructions(): EndpointParameterInstructions {
+ return {
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
+ Endpoint: { type: "builtInParams", name: "endpoint" },
+ Region: { type: "builtInParams", name: "region" },
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
+ };
+ }
+
+ /**
+ * @public
+ */
+ constructor(readonly input: ListDeploymentsCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ /**
+ * @internal
+ */
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: ProtonClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler {
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
+ this.middlewareStack.use(
+ getEndpointPlugin(configuration, ListDeploymentsCommand.getEndpointParameterInstructions())
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const { logger } = configuration;
+ const clientName = "ProtonClient";
+ const commandName = "ListDeploymentsCommand";
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger,
+ clientName,
+ commandName,
+ inputFilterSensitiveLog: (_: any) => _,
+ outputFilterSensitiveLog: (_: any) => _,
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ /**
+ * @internal
+ */
+ private serialize(input: ListDeploymentsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
+ return se_ListDeploymentsCommand(input, context);
+ }
+
+ /**
+ * @internal
+ */
+ private deserialize(output: __HttpResponse, context: __SerdeContext): Promise {
+ return de_ListDeploymentsCommand(output, context);
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-proton/src/commands/ListEnvironmentOutputsCommand.ts b/clients/client-proton/src/commands/ListEnvironmentOutputsCommand.ts
index 76e991eee723..0dad7863897f 100644
--- a/clients/client-proton/src/commands/ListEnvironmentOutputsCommand.ts
+++ b/clients/client-proton/src/commands/ListEnvironmentOutputsCommand.ts
@@ -50,6 +50,7 @@ export interface ListEnvironmentOutputsCommandOutput extends ListEnvironmentOutp
* const input = { // ListEnvironmentOutputsInput
* environmentName: "STRING_VALUE", // required
* nextToken: "STRING_VALUE",
+ * deploymentId: "STRING_VALUE",
* };
* const command = new ListEnvironmentOutputsCommand(input);
* const response = await client.send(command);
diff --git a/clients/client-proton/src/commands/ListEnvironmentsCommand.ts b/clients/client-proton/src/commands/ListEnvironmentsCommand.ts
index c912dc3b628a..0636bce580b5 100644
--- a/clients/client-proton/src/commands/ListEnvironmentsCommand.ts
+++ b/clients/client-proton/src/commands/ListEnvironmentsCommand.ts
@@ -79,6 +79,8 @@ export interface ListEnvironmentsCommandOutput extends ListEnvironmentsOutput, _
* // environmentAccountId: "STRING_VALUE",
* // provisioning: "STRING_VALUE",
* // componentRoleArn: "STRING_VALUE",
+ * // lastAttemptedDeploymentId: "STRING_VALUE",
+ * // lastSucceededDeploymentId: "STRING_VALUE",
* // },
* // ],
* // };
diff --git a/clients/client-proton/src/commands/ListServiceInstanceOutputsCommand.ts b/clients/client-proton/src/commands/ListServiceInstanceOutputsCommand.ts
index 9d46f82171ad..53c6999b276b 100644
--- a/clients/client-proton/src/commands/ListServiceInstanceOutputsCommand.ts
+++ b/clients/client-proton/src/commands/ListServiceInstanceOutputsCommand.ts
@@ -51,6 +51,7 @@ export interface ListServiceInstanceOutputsCommandOutput extends ListServiceInst
* serviceInstanceName: "STRING_VALUE", // required
* serviceName: "STRING_VALUE", // required
* nextToken: "STRING_VALUE",
+ * deploymentId: "STRING_VALUE",
* };
* const command = new ListServiceInstanceOutputsCommand(input);
* const response = await client.send(command);
diff --git a/clients/client-proton/src/commands/ListServiceInstancesCommand.ts b/clients/client-proton/src/commands/ListServiceInstancesCommand.ts
index bf9110a5c54a..b996c37fd780 100644
--- a/clients/client-proton/src/commands/ListServiceInstancesCommand.ts
+++ b/clients/client-proton/src/commands/ListServiceInstancesCommand.ts
@@ -79,6 +79,8 @@ export interface ListServiceInstancesCommandOutput extends ListServiceInstancesO
* // templateMinorVersion: "STRING_VALUE", // required
* // deploymentStatus: "STRING_VALUE", // required
* // deploymentStatusMessage: "STRING_VALUE",
+ * // lastAttemptedDeploymentId: "STRING_VALUE",
+ * // lastSucceededDeploymentId: "STRING_VALUE",
* // },
* // ],
* // };
diff --git a/clients/client-proton/src/commands/ListServicePipelineOutputsCommand.ts b/clients/client-proton/src/commands/ListServicePipelineOutputsCommand.ts
index 54941274d747..e3bd027ffc9e 100644
--- a/clients/client-proton/src/commands/ListServicePipelineOutputsCommand.ts
+++ b/clients/client-proton/src/commands/ListServicePipelineOutputsCommand.ts
@@ -50,6 +50,7 @@ export interface ListServicePipelineOutputsCommandOutput extends ListServicePipe
* const input = { // ListServicePipelineOutputsInput
* serviceName: "STRING_VALUE", // required
* nextToken: "STRING_VALUE",
+ * deploymentId: "STRING_VALUE",
* };
* const command = new ListServicePipelineOutputsCommand(input);
* const response = await client.send(command);
diff --git a/clients/client-proton/src/commands/ListTagsForResourceCommand.ts b/clients/client-proton/src/commands/ListTagsForResourceCommand.ts
index 3f7a258b1c52..8b4f262d6829 100644
--- a/clients/client-proton/src/commands/ListTagsForResourceCommand.ts
+++ b/clients/client-proton/src/commands/ListTagsForResourceCommand.ts
@@ -36,8 +36,8 @@ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceOut
/**
* @public
- * List tags for a resource. For more information, see Proton resources and tagging in the
- * Proton User Guide.
+ * List tags for a resource. For more information, see Proton
+ * resources and tagging in the Proton User Guide.
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
diff --git a/clients/client-proton/src/commands/NotifyResourceDeploymentStatusChangeCommand.ts b/clients/client-proton/src/commands/NotifyResourceDeploymentStatusChangeCommand.ts
index ecb398dd10b5..63234c32682b 100644
--- a/clients/client-proton/src/commands/NotifyResourceDeploymentStatusChangeCommand.ts
+++ b/clients/client-proton/src/commands/NotifyResourceDeploymentStatusChangeCommand.ts
@@ -45,10 +45,8 @@ export interface NotifyResourceDeploymentStatusChangeCommandOutput
/**
* @public
- * Notify Proton of status changes to a provisioned resource when you use self-managed
- * provisioning.
- * For more information, see Self-managed
- * provisioning in the Proton User Guide.
+ * Notify Proton of status changes to a provisioned resource when you use self-managed provisioning.
+ * For more information, see Self-managed provisioning in the Proton User Guide.
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
diff --git a/clients/client-proton/src/commands/TagResourceCommand.ts b/clients/client-proton/src/commands/TagResourceCommand.ts
index 72804535e7d9..167f0afa2d3d 100644
--- a/clients/client-proton/src/commands/TagResourceCommand.ts
+++ b/clients/client-proton/src/commands/TagResourceCommand.ts
@@ -36,10 +36,9 @@ export interface TagResourceCommandOutput extends TagResourceOutput, __MetadataB
/**
* @public
- * Tag a resource. A tag is a key-value pair of metadata that you associate with an Proton
- * resource.
- * For more information, see Proton resources and tagging in the
- * Proton User Guide.
+ * Tag a resource. A tag is a key-value pair of metadata that you associate with an Proton resource.
+ * For more information, see Proton resources and tagging in
+ * the Proton User Guide.
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
diff --git a/clients/client-proton/src/commands/UntagResourceCommand.ts b/clients/client-proton/src/commands/UntagResourceCommand.ts
index c427d29e91d4..4e2dbc56bb04 100644
--- a/clients/client-proton/src/commands/UntagResourceCommand.ts
+++ b/clients/client-proton/src/commands/UntagResourceCommand.ts
@@ -36,10 +36,9 @@ export interface UntagResourceCommandOutput extends UntagResourceOutput, __Metad
/**
* @public
- * Remove a customer tag from a resource. A tag is a key-value pair of metadata associated with
- * an Proton resource.
- * For more information, see Proton resources and tagging in the
- * Proton User Guide.
+ * Remove a customer tag from a resource. A tag is a key-value pair of metadata associated with an Proton resource.
+ * For more information, see Proton resources and tagging in
+ * the Proton User Guide.
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
diff --git a/clients/client-proton/src/commands/UpdateComponentCommand.ts b/clients/client-proton/src/commands/UpdateComponentCommand.ts
index e699af6c21d3..de34cb813317 100644
--- a/clients/client-proton/src/commands/UpdateComponentCommand.ts
+++ b/clients/client-proton/src/commands/UpdateComponentCommand.ts
@@ -84,6 +84,8 @@ export interface UpdateComponentCommandOutput extends UpdateComponentOutput, __M
* // deploymentStatusMessage: "STRING_VALUE",
* // serviceSpec: "STRING_VALUE",
* // lastClientRequestToken: "STRING_VALUE",
+ * // lastAttemptedDeploymentId: "STRING_VALUE",
+ * // lastSucceededDeploymentId: "STRING_VALUE",
* // },
* // };
*
diff --git a/clients/client-proton/src/commands/UpdateEnvironmentCommand.ts b/clients/client-proton/src/commands/UpdateEnvironmentCommand.ts
index 00d439e51ba3..c6f091a658e3 100644
--- a/clients/client-proton/src/commands/UpdateEnvironmentCommand.ts
+++ b/clients/client-proton/src/commands/UpdateEnvironmentCommand.ts
@@ -141,6 +141,8 @@ export interface UpdateEnvironmentCommandOutput extends UpdateEnvironmentOutput,
* // },
* // componentRoleArn: "STRING_VALUE",
* // codebuildRoleArn: "STRING_VALUE",
+ * // lastAttemptedDeploymentId: "STRING_VALUE",
+ * // lastSucceededDeploymentId: "STRING_VALUE",
* // },
* // };
*
diff --git a/clients/client-proton/src/commands/UpdateServiceCommand.ts b/clients/client-proton/src/commands/UpdateServiceCommand.ts
index 2df146da7089..f4bc368f3273 100644
--- a/clients/client-proton/src/commands/UpdateServiceCommand.ts
+++ b/clients/client-proton/src/commands/UpdateServiceCommand.ts
@@ -90,6 +90,8 @@ export interface UpdateServiceCommandOutput extends UpdateServiceOutput, __Metad
* // deploymentStatus: "STRING_VALUE", // required
* // deploymentStatusMessage: "STRING_VALUE",
* // spec: "STRING_VALUE",
+ * // lastAttemptedDeploymentId: "STRING_VALUE",
+ * // lastSucceededDeploymentId: "STRING_VALUE",
* // },
* // repositoryConnectionArn: "STRING_VALUE",
* // repositoryId: "STRING_VALUE",
diff --git a/clients/client-proton/src/commands/UpdateServiceInstanceCommand.ts b/clients/client-proton/src/commands/UpdateServiceInstanceCommand.ts
index b8610183b56b..25434371b088 100644
--- a/clients/client-proton/src/commands/UpdateServiceInstanceCommand.ts
+++ b/clients/client-proton/src/commands/UpdateServiceInstanceCommand.ts
@@ -84,6 +84,8 @@ export interface UpdateServiceInstanceCommandOutput extends UpdateServiceInstanc
* // deploymentStatusMessage: "STRING_VALUE",
* // spec: "STRING_VALUE",
* // lastClientRequestToken: "STRING_VALUE",
+ * // lastAttemptedDeploymentId: "STRING_VALUE",
+ * // lastSucceededDeploymentId: "STRING_VALUE",
* // },
* // };
*
diff --git a/clients/client-proton/src/commands/UpdateServicePipelineCommand.ts b/clients/client-proton/src/commands/UpdateServicePipelineCommand.ts
index 4b4b44f18c83..a13e47c6d9b7 100644
--- a/clients/client-proton/src/commands/UpdateServicePipelineCommand.ts
+++ b/clients/client-proton/src/commands/UpdateServicePipelineCommand.ts
@@ -109,6 +109,8 @@ export interface UpdateServicePipelineCommandOutput extends UpdateServicePipelin
* // deploymentStatus: "STRING_VALUE", // required
* // deploymentStatusMessage: "STRING_VALUE",
* // spec: "STRING_VALUE",
+ * // lastAttemptedDeploymentId: "STRING_VALUE",
+ * // lastSucceededDeploymentId: "STRING_VALUE",
* // },
* // };
*
diff --git a/clients/client-proton/src/commands/UpdateTemplateSyncConfigCommand.ts b/clients/client-proton/src/commands/UpdateTemplateSyncConfigCommand.ts
index 83af17f7f493..ad80cbd97578 100644
--- a/clients/client-proton/src/commands/UpdateTemplateSyncConfigCommand.ts
+++ b/clients/client-proton/src/commands/UpdateTemplateSyncConfigCommand.ts
@@ -36,10 +36,9 @@ export interface UpdateTemplateSyncConfigCommandOutput extends UpdateTemplateSyn
/**
* @public
- * Update template sync configuration parameters, except for the templateName
and
- * templateType
. Repository details (branch, name, and provider) should be of a linked
- * repository. A linked repository is a repository that has been registered with Proton. For more
- * information, see CreateRepository.
+ * Update template sync configuration parameters, except for the templateName
and templateType
. Repository details
+ * (branch, name, and provider) should be of a linked repository. A linked repository is a repository that has been registered with Proton. For
+ * more information, see CreateRepository.
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
diff --git a/clients/client-proton/src/commands/index.ts b/clients/client-proton/src/commands/index.ts
index dce4df87c4cd..6630ea85901a 100644
--- a/clients/client-proton/src/commands/index.ts
+++ b/clients/client-proton/src/commands/index.ts
@@ -17,6 +17,7 @@ export * from "./CreateServiceTemplateCommand";
export * from "./CreateServiceTemplateVersionCommand";
export * from "./CreateTemplateSyncConfigCommand";
export * from "./DeleteComponentCommand";
+export * from "./DeleteDeploymentCommand";
export * from "./DeleteEnvironmentAccountConnectionCommand";
export * from "./DeleteEnvironmentCommand";
export * from "./DeleteEnvironmentTemplateCommand";
@@ -29,6 +30,7 @@ export * from "./DeleteServiceTemplateVersionCommand";
export * from "./DeleteTemplateSyncConfigCommand";
export * from "./GetAccountSettingsCommand";
export * from "./GetComponentCommand";
+export * from "./GetDeploymentCommand";
export * from "./GetEnvironmentAccountConnectionCommand";
export * from "./GetEnvironmentCommand";
export * from "./GetEnvironmentTemplateCommand";
@@ -48,6 +50,7 @@ export * from "./GetTemplateSyncStatusCommand";
export * from "./ListComponentOutputsCommand";
export * from "./ListComponentProvisionedResourcesCommand";
export * from "./ListComponentsCommand";
+export * from "./ListDeploymentsCommand";
export * from "./ListEnvironmentAccountConnectionsCommand";
export * from "./ListEnvironmentOutputsCommand";
export * from "./ListEnvironmentProvisionedResourcesCommand";
diff --git a/clients/client-proton/src/models/models_0.ts b/clients/client-proton/src/models/models_0.ts
index 72f7bdb937a0..fd315bf20bba 100644
--- a/clients/client-proton/src/models/models_0.ts
+++ b/clients/client-proton/src/models/models_0.ts
@@ -337,33 +337,29 @@ export interface RepositoryBranchInput {
*/
export interface UpdateAccountSettingsInput {
/**
- * The Amazon Resource Name (ARN) of the service role you want to use for provisioning
- * pipelines. Assumed by Proton for Amazon Web Services-managed provisioning, and by customer-owned automation for
- * self-managed provisioning.
+ * The Amazon Resource Name (ARN) of the service role you want to use for provisioning pipelines. Assumed by Proton for Amazon Web Services-managed
+ * provisioning, and by customer-owned automation for self-managed provisioning.
* To remove a previously configured ARN, specify an empty string.
*/
pipelineServiceRoleArn?: string;
/**
- * A linked repository for pipeline provisioning. Specify it if you have environments
- * configured for self-managed provisioning with services that include pipelines. A linked
- * repository is a repository that has been registered with Proton. For more information, see
- * CreateRepository.
- * To remove a previously configured repository, set
- * deletePipelineProvisioningRepository
to true
, and don't set
+ *
A linked repository for pipeline provisioning. Specify it if you have environments configured for self-managed provisioning with services that
+ * include pipelines. A linked repository is a repository that has been registered with Proton. For more information, see CreateRepository.
+ * To remove a previously configured repository, set deletePipelineProvisioningRepository
to true
, and don't set
* pipelineProvisioningRepository
.
*/
pipelineProvisioningRepository?: RepositoryBranchInput;
/**
- * Set to true
to remove a configured pipeline repository from the account
- * settings. Don't set this field if you are updating the configured pipeline repository.
+ * Set to true
to remove a configured pipeline repository from the account settings. Don't set this field if you are updating the
+ * configured pipeline repository.
*/
deletePipelineProvisioningRepository?: boolean;
/**
- * The Amazon Resource Name (ARN) of the service role you want to use for provisioning
- * pipelines. Proton assumes this role for CodeBuild-based provisioning.
+ * The Amazon Resource Name (ARN) of the service role you want to use for provisioning pipelines. Proton assumes this role for CodeBuild-based
+ * provisioning.
*/
pipelineCodebuildRoleArn?: string;
}
@@ -485,6 +481,16 @@ export interface Component {
* The last token the client requested.
*/
lastClientRequestToken?: string;
+
+ /**
+ * The ID of the last attempted deployment of this component.
+ */
+ lastAttemptedDeploymentId?: string;
+
+ /**
+ * The ID of the last successful deployment of this component.
+ */
+ lastSucceededDeploymentId?: string;
}
/**
@@ -627,6 +633,16 @@ export interface Environment {
* behalf.
*/
codebuildRoleArn?: string;
+
+ /**
+ * The ID of the last attempted deployment of this environment.
+ */
+ lastAttemptedDeploymentId?: string;
+
+ /**
+ * The ID of the last successful deployment of this environment.
+ */
+ lastSucceededDeploymentId?: string;
}
/**
@@ -730,6 +746,16 @@ export interface ServiceInstance {
* The last client request token received.
*/
lastClientRequestToken?: string;
+
+ /**
+ * The ID of the last attempted deployment of this service instance.
+ */
+ lastAttemptedDeploymentId?: string;
+
+ /**
+ * The ID of the last successful deployment of this service instance.
+ */
+ lastSucceededDeploymentId?: string;
}
/**
@@ -808,6 +834,16 @@ export interface ServicePipeline {
* The service spec that was used to create the service pipeline.
*/
spec?: string;
+
+ /**
+ * The ID of the last attempted deployment of this service pipeline.
+ */
+ lastAttemptedDeploymentId?: string;
+
+ /**
+ * The ID of the last successful deployment of this service pipeline.
+ */
+ lastSucceededDeploymentId?: string;
}
/**
@@ -833,6 +869,11 @@ export interface ListComponentOutputsInput {
* A token that indicates the location of the next output in the array of outputs, after the list of outputs that was previously requested.
*/
nextToken?: string;
+
+ /**
+ * The ID of the deployment whose outputs you want.
+ */
+ deploymentId?: string;
}
/**
@@ -1181,6 +1222,16 @@ export interface ComponentSummary {
* The message associated with the component deployment status.
*/
deploymentStatusMessage?: string;
+
+ /**
+ * The ID of the last attempted deployment of this component.
+ */
+ lastAttemptedDeploymentId?: string;
+
+ /**
+ * The ID of the last successful deployment of this component.
+ */
+ lastSucceededDeploymentId?: string;
}
/**
@@ -1294,6 +1345,519 @@ export interface UpdateComponentOutput {
component: Component | undefined;
}
+/**
+ * @public
+ */
+export interface DeleteDeploymentInput {
+ /**
+ * The ID of the deployment to delete.
+ */
+ id: string | undefined;
+}
+
+/**
+ * @public
+ * The detailed data about the current state of the component.
+ */
+export interface ComponentState {
+ /**
+ * The name of the service that serviceInstanceName
is associated with. Provided when a component is attached to a service instance.
+ */
+ serviceName?: string;
+
+ /**
+ * The name of the service instance that this component is attached to. Provided when a component is attached to a service instance.
+ */
+ serviceInstanceName?: string;
+
+ /**
+ * The service spec that the component uses to access service inputs. Provided when a component is attached to a service instance.
+ */
+ serviceSpec?: string;
+
+ /**
+ * The template file used.
+ */
+ templateFile?: string;
+}
+
+/**
+ * @public
+ * The detailed data about the current state of the environment.
+ */
+export interface EnvironmentState {
+ /**
+ * The environment spec that was used to create the environment.
+ */
+ spec?: string;
+
+ /**
+ * The name of the environment template that was used to create the environment.
+ */
+ templateName: string | undefined;
+
+ /**
+ * The major version of the environment template that was used to create the environment.
+ */
+ templateMajorVersion: string | undefined;
+
+ /**
+ * The minor version of the environment template that was used to create the environment.
+ */
+ templateMinorVersion: string | undefined;
+}
+
+/**
+ * @public
+ * The detailed data about the current state of this service instance.
+ */
+export interface ServiceInstanceState {
+ /**
+ * The service spec that was used to create the service instance.
+ */
+ spec: string | undefined;
+
+ /**
+ * The name of the service template that was used to create the service instance.
+ */
+ templateName: string | undefined;
+
+ /**
+ * The major version of the service template that was used to create the service
+ * pipeline.
+ */
+ templateMajorVersion: string | undefined;
+
+ /**
+ * The minor version of the service template that was used to create the service
+ * pipeline.
+ */
+ templateMinorVersion: string | undefined;
+
+ /**
+ * The IDs for the last successful components deployed for this service instance.
+ */
+ lastSuccessfulComponentDeploymentIds?: string[];
+
+ /**
+ * The ID for the last successful environment deployed for this service instance.
+ */
+ lastSuccessfulEnvironmentDeploymentId?: string;
+
+ /**
+ * The ID for the last successful service pipeline deployed for this service instance.
+ */
+ lastSuccessfulServicePipelineDeploymentId?: string;
+}
+
+/**
+ * @public
+ * The detailed data about the current state of the service pipeline.
+ */
+export interface ServicePipelineState {
+ /**
+ * The service spec that was used to create the service pipeline.
+ */
+ spec?: string;
+
+ /**
+ * The name of the service template that was used to create the service pipeline.
+ */
+ templateName: string | undefined;
+
+ /**
+ * The major version of the service template that was used to create the service
+ * pipeline.
+ */
+ templateMajorVersion: string | undefined;
+
+ /**
+ * The minor version of the service template that was used to create the service
+ * pipeline.
+ */
+ templateMinorVersion: string | undefined;
+}
+
+/**
+ * @public
+ * The detailed data about the current state of the deployment.
+ */
+export type DeploymentState =
+ | DeploymentState.ComponentMember
+ | DeploymentState.EnvironmentMember
+ | DeploymentState.ServiceInstanceMember
+ | DeploymentState.ServicePipelineMember
+ | DeploymentState.$UnknownMember;
+
+/**
+ * @public
+ */
+export namespace DeploymentState {
+ /**
+ * The state of the service instance associated with the deployment.
+ */
+ export interface ServiceInstanceMember {
+ serviceInstance: ServiceInstanceState;
+ environment?: never;
+ servicePipeline?: never;
+ component?: never;
+ $unknown?: never;
+ }
+
+ /**
+ * The state of the environment associated with the deployment.
+ */
+ export interface EnvironmentMember {
+ serviceInstance?: never;
+ environment: EnvironmentState;
+ servicePipeline?: never;
+ component?: never;
+ $unknown?: never;
+ }
+
+ /**
+ * The state of the service pipeline associated with the deployment.
+ */
+ export interface ServicePipelineMember {
+ serviceInstance?: never;
+ environment?: never;
+ servicePipeline: ServicePipelineState;
+ component?: never;
+ $unknown?: never;
+ }
+
+ /**
+ * The state of the component associated with the deployment.
+ */
+ export interface ComponentMember {
+ serviceInstance?: never;
+ environment?: never;
+ servicePipeline?: never;
+ component: ComponentState;
+ $unknown?: never;
+ }
+
+ export interface $UnknownMember {
+ serviceInstance?: never;
+ environment?: never;
+ servicePipeline?: never;
+ component?: never;
+ $unknown: [string, any];
+ }
+
+ export interface Visitor {
+ serviceInstance: (value: ServiceInstanceState) => T;
+ environment: (value: EnvironmentState) => T;
+ servicePipeline: (value: ServicePipelineState) => T;
+ component: (value: ComponentState) => T;
+ _: (name: string, value: any) => T;
+ }
+
+ export const visit = (value: DeploymentState, visitor: Visitor): T => {
+ if (value.serviceInstance !== undefined) return visitor.serviceInstance(value.serviceInstance);
+ if (value.environment !== undefined) return visitor.environment(value.environment);
+ if (value.servicePipeline !== undefined) return visitor.servicePipeline(value.servicePipeline);
+ if (value.component !== undefined) return visitor.component(value.component);
+ return visitor._(value.$unknown[0], value.$unknown[1]);
+ };
+}
+
+/**
+ * @public
+ * @enum
+ */
+export const DeploymentTargetResourceType = {
+ COMPONENT: "COMPONENT",
+ ENVIRONMENT: "ENVIRONMENT",
+ SERVICE_INSTANCE: "SERVICE_INSTANCE",
+ SERVICE_PIPELINE: "SERVICE_PIPELINE",
+} as const;
+
+/**
+ * @public
+ */
+export type DeploymentTargetResourceType =
+ (typeof DeploymentTargetResourceType)[keyof typeof DeploymentTargetResourceType];
+
+/**
+ * @public
+ * The detailed information about a deployment.
+ */
+export interface Deployment {
+ /**
+ * The ID of the deployment.
+ */
+ id: string | undefined;
+
+ /**
+ * The Amazon Resource Name (ARN) of the deployment.
+ */
+ arn: string | undefined;
+
+ /**
+ * The Amazon Resource Name (ARN) of the target of the deployment.
+ */
+ targetArn: string | undefined;
+
+ /**
+ * The date and time the depoyment target was created.
+ */
+ targetResourceCreatedAt: Date | undefined;
+
+ /**
+ * The resource type of the deployment target. It can be an environment, service, service instance, or component.
+ */
+ targetResourceType: DeploymentTargetResourceType | string | undefined;
+
+ /**
+ * The name of the environment associated with this deployment.
+ */
+ environmentName: string | undefined;
+
+ /**
+ * The name of the service in this deployment.
+ */
+ serviceName?: string;
+
+ /**
+ * The name of the deployment's service instance.
+ */
+ serviceInstanceName?: string;
+
+ /**
+ * The name of the component associated with this deployment.
+ */
+ componentName?: string;
+
+ /**
+ * The status of the deployment.
+ */
+ deploymentStatus: DeploymentStatus | string | undefined;
+
+ /**
+ * The deployment status message.
+ */
+ deploymentStatusMessage?: string;
+
+ /**
+ * The date and time the deployment was created.
+ */
+ createdAt: Date | undefined;
+
+ /**
+ * The date and time the deployment was last modified.
+ */
+ lastModifiedAt: Date | undefined;
+
+ /**
+ * The date and time the deployment was completed.
+ */
+ completedAt?: Date;
+
+ /**
+ * The ID of the last attempted deployment.
+ */
+ lastAttemptedDeploymentId?: string;
+
+ /**
+ * The ID of the last successful deployment.
+ */
+ lastSucceededDeploymentId?: string;
+
+ /**
+ * The initial state of the target resource at the time of the deployment.
+ */
+ initialState?: DeploymentState;
+
+ /**
+ * The target state of the target resource at the time of the deployment.
+ */
+ targetState?: DeploymentState;
+}
+
+/**
+ * @public
+ */
+export interface DeleteDeploymentOutput {
+ /**
+ * The detailed data of the deployment being deleted.
+ */
+ deployment?: Deployment;
+}
+
+/**
+ * @public
+ */
+export interface GetDeploymentInput {
+ /**
+ * The ID of the deployment that you want to get the detailed data for.
+ */
+ id: string | undefined;
+
+ /**
+ * The name of a environment that you want to get the detailed data for.
+ */
+ environmentName?: string;
+
+ /**
+ * The name of the service associated with the given deployment ID.
+ */
+ serviceName?: string;
+
+ /**
+ * The name of the service instance associated with the given deployment ID. serviceName
must be specified to identify the service
+ * instance.
+ */
+ serviceInstanceName?: string;
+
+ /**
+ * The name of a component that you want to get the detailed data for.
+ */
+ componentName?: string;
+}
+
+/**
+ * @public
+ */
+export interface GetDeploymentOutput {
+ /**
+ * The detailed data of the requested deployment.
+ */
+ deployment?: Deployment;
+}
+
+/**
+ * @public
+ */
+export interface ListDeploymentsInput {
+ /**
+ * A token that indicates the location of the next deployment in the array of deployment, after the list of deployment that was previously
+ * requested.
+ */
+ nextToken?: string;
+
+ /**
+ * The name of an environment for result list filtering. Proton returns deployments associated with the environment.
+ */
+ environmentName?: string;
+
+ /**
+ * The name of a service for result list filtering. Proton returns deployments associated with service instances of the service.
+ */
+ serviceName?: string;
+
+ /**
+ * The name of a service instance for result list filtering. Proton returns the deployments associated with the service instance.
+ */
+ serviceInstanceName?: string;
+
+ /**
+ * The name of a component for result list filtering. Proton returns deployments associated with that component.
+ */
+ componentName?: string;
+
+ /**
+ * The maximum number of deployments to list.
+ */
+ maxResults?: number;
+}
+
+/**
+ * @public
+ * Summary data of the deployment.
+ */
+export interface DeploymentSummary {
+ /**
+ * The ID of the deployment.
+ */
+ id: string | undefined;
+
+ /**
+ * The Amazon Resource Name (ARN) of the deployment.
+ */
+ arn: string | undefined;
+
+ /**
+ * The Amazon Resource Name (ARN) of the target of the deployment.
+ */
+ targetArn: string | undefined;
+
+ /**
+ * The date and time the target resource was created.
+ */
+ targetResourceCreatedAt: Date | undefined;
+
+ /**
+ * The resource type of the deployment target. It can be an environment, service, service instance, or component.
+ */
+ targetResourceType: DeploymentTargetResourceType | string | undefined;
+
+ /**
+ * The date and time the deployment was created.
+ */
+ createdAt: Date | undefined;
+
+ /**
+ * The date and time the deployment was last modified.
+ */
+ lastModifiedAt: Date | undefined;
+
+ /**
+ * The date and time the deployment was completed.
+ */
+ completedAt?: Date;
+
+ /**
+ * The name of the environment associated with the deployment.
+ */
+ environmentName: string | undefined;
+
+ /**
+ * The name of the service associated with the deployment.
+ */
+ serviceName?: string;
+
+ /**
+ * The name of the service instance associated with the deployment.
+ */
+ serviceInstanceName?: string;
+
+ /**
+ * The name of the component associated with the deployment.
+ */
+ componentName?: string;
+
+ /**
+ * The ID of the last attempted deployment.
+ */
+ lastAttemptedDeploymentId?: string;
+
+ /**
+ * The ID of the last successful deployment.
+ */
+ lastSucceededDeploymentId?: string;
+
+ /**
+ * The current status of the deployment.
+ */
+ deploymentStatus: DeploymentStatus | string | undefined;
+}
+
+/**
+ * @public
+ */
+export interface ListDeploymentsOutput {
+ /**
+ * A token that indicates the location of the next deployment in the array of deployment, after the current requested list of deployment.
+ */
+ nextToken?: string;
+
+ /**
+ * An array of deployment with summary data.
+ */
+ deployments: DeploymentSummary[] | undefined;
+}
+
/**
* @public
*/
@@ -1597,6 +2161,11 @@ export interface ListEnvironmentOutputsInput {
* previously requested.
*/
nextToken?: string;
+
+ /**
+ * The ID of the deployment whose outputs you want.
+ */
+ deploymentId?: string;
}
/**
@@ -1908,6 +2477,16 @@ export interface EnvironmentSummary {
* Proton User Guide.
*/
componentRoleArn?: string;
+
+ /**
+ * The ID of the last attempted deployment of this environment.
+ */
+ lastAttemptedDeploymentId?: string;
+
+ /**
+ * The ID of the last successful deployment of this environment.
+ */
+ lastSucceededDeploymentId?: string;
}
/**
@@ -3204,8 +3783,8 @@ export interface ListTagsForResourceInput {
resourceArn: string | undefined;
/**
- * A token that indicates the location of the next resource tag in the array of resource tags,
- * after the list of resource tags that was previously requested.
+ * A token that indicates the location of the next resource tag in the array of resource tags, after the list of resource tags that was
+ * previously requested.
*/
nextToken?: string;
@@ -3225,8 +3804,8 @@ export interface ListTagsForResourceOutput {
tags: Tag[] | undefined;
/**
- * A token that indicates the location of the next resource tag in the array of resource tags,
- * after the current requested list of resource tags.
+ * A token that indicates the location of the next resource tag in the array of resource tags, after the current requested list of resource
+ * tags.
*/
nextToken?: string;
}
@@ -3480,6 +4059,11 @@ export interface ListServiceInstanceOutputsInput {
* list of outputs that was previously requested.
*/
nextToken?: string;
+
+ /**
+ * The ID of the deployment whose outputs you want.
+ */
+ deploymentId?: string;
}
/**
@@ -3799,6 +4383,16 @@ export interface ServiceInstanceSummary {
* A service instance deployment status message.
*/
deploymentStatusMessage?: string;
+
+ /**
+ * The ID of the last attempted deployment of this service instance.
+ */
+ lastAttemptedDeploymentId?: string;
+
+ /**
+ * The ID of the last successful deployment of this service instance.
+ */
+ lastSucceededDeploymentId?: string;
}
/**
@@ -3920,6 +4514,11 @@ export interface ListServicePipelineOutputsInput {
* list of outputs that was previously requested.
*/
nextToken?: string;
+
+ /**
+ * The ID of the deployment you want the outputs for.
+ */
+ deploymentId?: string;
}
/**
@@ -5447,8 +6046,8 @@ export interface CreateTemplateSyncConfigInput {
branch: string | undefined;
/**
- * A repository subdirectory path to your template bundle directory. When included, Proton
- * limits the template bundle search to this repository directory.
+ * A repository subdirectory path to your template bundle directory. When included, Proton limits the template bundle search to this
+ * repository directory.
*/
subdirectory?: string;
}
@@ -5579,8 +6178,7 @@ export interface UpdateTemplateSyncConfigInput {
branch: string | undefined;
/**
- * A subdirectory path to your template bundle version. When included, limits the template
- * bundle search to this repository directory.
+ * A subdirectory path to your template bundle version. When included, limits the template bundle search to this repository directory.
*/
subdirectory?: string;
}
@@ -5605,8 +6203,7 @@ export interface UntagResourceInput {
resourceArn: string | undefined;
/**
- * A list of customer tag keys that indicate the customer tags to be removed from the
- * resource.
+ * A list of customer tag keys that indicate the customer tags to be removed from the resource.
*/
tagKeys: string[] | undefined;
}
@@ -5774,6 +6371,78 @@ export const UpdateComponentOutputFilterSensitiveLog = (obj: UpdateComponentOutp
...(obj.component && { component: ComponentFilterSensitiveLog(obj.component) }),
});
+/**
+ * @internal
+ */
+export const ComponentStateFilterSensitiveLog = (obj: ComponentState): any => ({
+ ...obj,
+ ...(obj.serviceSpec && { serviceSpec: SENSITIVE_STRING }),
+ ...(obj.templateFile && { templateFile: SENSITIVE_STRING }),
+});
+
+/**
+ * @internal
+ */
+export const EnvironmentStateFilterSensitiveLog = (obj: EnvironmentState): any => ({
+ ...obj,
+ ...(obj.spec && { spec: SENSITIVE_STRING }),
+});
+
+/**
+ * @internal
+ */
+export const ServiceInstanceStateFilterSensitiveLog = (obj: ServiceInstanceState): any => ({
+ ...obj,
+ ...(obj.spec && { spec: SENSITIVE_STRING }),
+});
+
+/**
+ * @internal
+ */
+export const ServicePipelineStateFilterSensitiveLog = (obj: ServicePipelineState): any => ({
+ ...obj,
+ ...(obj.spec && { spec: SENSITIVE_STRING }),
+});
+
+/**
+ * @internal
+ */
+export const DeploymentStateFilterSensitiveLog = (obj: DeploymentState): any => {
+ if (obj.serviceInstance !== undefined)
+ return { serviceInstance: ServiceInstanceStateFilterSensitiveLog(obj.serviceInstance) };
+ if (obj.environment !== undefined) return { environment: EnvironmentStateFilterSensitiveLog(obj.environment) };
+ if (obj.servicePipeline !== undefined)
+ return { servicePipeline: ServicePipelineStateFilterSensitiveLog(obj.servicePipeline) };
+ if (obj.component !== undefined) return { component: ComponentStateFilterSensitiveLog(obj.component) };
+ if (obj.$unknown !== undefined) return { [obj.$unknown[0]]: "UNKNOWN" };
+};
+
+/**
+ * @internal
+ */
+export const DeploymentFilterSensitiveLog = (obj: Deployment): any => ({
+ ...obj,
+ ...(obj.deploymentStatusMessage && { deploymentStatusMessage: SENSITIVE_STRING }),
+ ...(obj.initialState && { initialState: DeploymentStateFilterSensitiveLog(obj.initialState) }),
+ ...(obj.targetState && { targetState: DeploymentStateFilterSensitiveLog(obj.targetState) }),
+});
+
+/**
+ * @internal
+ */
+export const DeleteDeploymentOutputFilterSensitiveLog = (obj: DeleteDeploymentOutput): any => ({
+ ...obj,
+ ...(obj.deployment && { deployment: DeploymentFilterSensitiveLog(obj.deployment) }),
+});
+
+/**
+ * @internal
+ */
+export const GetDeploymentOutputFilterSensitiveLog = (obj: GetDeploymentOutput): any => ({
+ ...obj,
+ ...(obj.deployment && { deployment: DeploymentFilterSensitiveLog(obj.deployment) }),
+});
+
/**
* @internal
*/
diff --git a/clients/client-proton/src/pagination/ListDeploymentsPaginator.ts b/clients/client-proton/src/pagination/ListDeploymentsPaginator.ts
new file mode 100644
index 000000000000..2c43a19cfe09
--- /dev/null
+++ b/clients/client-proton/src/pagination/ListDeploymentsPaginator.ts
@@ -0,0 +1,50 @@
+// smithy-typescript generated code
+import { Paginator } from "@smithy/types";
+
+import {
+ ListDeploymentsCommand,
+ ListDeploymentsCommandInput,
+ ListDeploymentsCommandOutput,
+} from "../commands/ListDeploymentsCommand";
+import { ProtonClient } from "../ProtonClient";
+import { ProtonPaginationConfiguration } from "./Interfaces";
+
+/**
+ * @internal
+ */
+const makePagedClientRequest = async (
+ client: ProtonClient,
+ input: ListDeploymentsCommandInput,
+ ...args: any
+): Promise => {
+ // @ts-ignore
+ return await client.send(new ListDeploymentsCommand(input), ...args);
+};
+/**
+ * @public
+ */
+export async function* paginateListDeployments(
+ config: ProtonPaginationConfiguration,
+ input: ListDeploymentsCommandInput,
+ ...additionalArguments: any
+): Paginator {
+ // ToDo: replace with actual type instead of typeof input.nextToken
+ let token: typeof input.nextToken | undefined = config.startingToken || undefined;
+ let hasNext = true;
+ let page: ListDeploymentsCommandOutput;
+ while (hasNext) {
+ input.nextToken = token;
+ input["maxResults"] = config.pageSize;
+ if (config.client instanceof ProtonClient) {
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
+ } else {
+ throw new Error("Invalid client, expected Proton | ProtonClient");
+ }
+ yield page;
+ const prevToken = token;
+ token = page.nextToken;
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
+ }
+ // @ts-ignore
+ return undefined;
+}
diff --git a/clients/client-proton/src/pagination/index.ts b/clients/client-proton/src/pagination/index.ts
index 64c47deeed4e..72f64cde484f 100644
--- a/clients/client-proton/src/pagination/index.ts
+++ b/clients/client-proton/src/pagination/index.ts
@@ -3,6 +3,7 @@ export * from "./Interfaces";
export * from "./ListComponentOutputsPaginator";
export * from "./ListComponentProvisionedResourcesPaginator";
export * from "./ListComponentsPaginator";
+export * from "./ListDeploymentsPaginator";
export * from "./ListEnvironmentAccountConnectionsPaginator";
export * from "./ListEnvironmentOutputsPaginator";
export * from "./ListEnvironmentProvisionedResourcesPaginator";
diff --git a/clients/client-proton/src/protocols/Aws_json1_0.ts b/clients/client-proton/src/protocols/Aws_json1_0.ts
index e5b821bae46f..fe2ae4dce09b 100644
--- a/clients/client-proton/src/protocols/Aws_json1_0.ts
+++ b/clients/client-proton/src/protocols/Aws_json1_0.ts
@@ -7,6 +7,7 @@ import {
expectNonNull as __expectNonNull,
expectNumber as __expectNumber,
expectString as __expectString,
+ expectUnion as __expectUnion,
parseEpochTimestamp as __parseEpochTimestamp,
take,
withBaseException,
@@ -76,6 +77,7 @@ import {
CreateTemplateSyncConfigCommandOutput,
} from "../commands/CreateTemplateSyncConfigCommand";
import { DeleteComponentCommandInput, DeleteComponentCommandOutput } from "../commands/DeleteComponentCommand";
+import { DeleteDeploymentCommandInput, DeleteDeploymentCommandOutput } from "../commands/DeleteDeploymentCommand";
import {
DeleteEnvironmentAccountConnectionCommandInput,
DeleteEnvironmentAccountConnectionCommandOutput,
@@ -109,6 +111,7 @@ import {
} from "../commands/DeleteTemplateSyncConfigCommand";
import { GetAccountSettingsCommandInput, GetAccountSettingsCommandOutput } from "../commands/GetAccountSettingsCommand";
import { GetComponentCommandInput, GetComponentCommandOutput } from "../commands/GetComponentCommand";
+import { GetDeploymentCommandInput, GetDeploymentCommandOutput } from "../commands/GetDeploymentCommand";
import {
GetEnvironmentAccountConnectionCommandInput,
GetEnvironmentAccountConnectionCommandOutput,
@@ -167,6 +170,7 @@ import {
ListComponentProvisionedResourcesCommandOutput,
} from "../commands/ListComponentProvisionedResourcesCommand";
import { ListComponentsCommandInput, ListComponentsCommandOutput } from "../commands/ListComponentsCommand";
+import { ListDeploymentsCommandInput, ListDeploymentsCommandOutput } from "../commands/ListDeploymentsCommand";
import {
ListEnvironmentAccountConnectionsCommandInput,
ListEnvironmentAccountConnectionsCommandOutput,
@@ -297,6 +301,7 @@ import {
CancelServicePipelineDeploymentOutput,
CompatibleEnvironmentTemplateInput,
Component,
+ ComponentState,
ComponentSummary,
ConflictException,
CreateComponentInput,
@@ -322,6 +327,8 @@ import {
CreateTemplateSyncConfigInput,
DeleteComponentInput,
DeleteComponentOutput,
+ DeleteDeploymentInput,
+ DeleteDeploymentOutput,
DeleteEnvironmentAccountConnectionInput,
DeleteEnvironmentAccountConnectionOutput,
DeleteEnvironmentInput,
@@ -339,10 +346,14 @@ import {
DeleteServiceTemplateVersionInput,
DeleteServiceTemplateVersionOutput,
DeleteTemplateSyncConfigInput,
+ Deployment,
+ DeploymentState,
+ DeploymentSummary,
Environment,
EnvironmentAccountConnection,
EnvironmentAccountConnectionStatus,
EnvironmentAccountConnectionSummary,
+ EnvironmentState,
EnvironmentSummary,
EnvironmentTemplate,
EnvironmentTemplateFilter,
@@ -352,6 +363,8 @@ import {
GetAccountSettingsInput,
GetComponentInput,
GetComponentOutput,
+ GetDeploymentInput,
+ GetDeploymentOutput,
GetEnvironmentAccountConnectionInput,
GetEnvironmentAccountConnectionOutput,
GetEnvironmentInput,
@@ -385,6 +398,8 @@ import {
ListComponentProvisionedResourcesInput,
ListComponentsInput,
ListComponentsOutput,
+ ListDeploymentsInput,
+ ListDeploymentsOutput,
ListEnvironmentAccountConnectionsInput,
ListEnvironmentAccountConnectionsOutput,
ListEnvironmentOutputsInput,
@@ -424,8 +439,10 @@ import {
S3ObjectSource,
Service,
ServiceInstance,
+ ServiceInstanceState,
ServiceInstanceSummary,
ServicePipeline,
+ ServicePipelineState,
ServiceQuotaExceededException,
ServiceSummary,
ServiceSyncBlockerSummary,
@@ -703,6 +720,19 @@ export const se_DeleteComponentCommand = async (
return buildHttpRpcRequest(context, headers, "/", undefined, body);
};
+/**
+ * serializeAws_json1_0DeleteDeploymentCommand
+ */
+export const se_DeleteDeploymentCommand = async (
+ input: DeleteDeploymentCommandInput,
+ context: __SerdeContext
+): Promise<__HttpRequest> => {
+ const headers: __HeaderBag = sharedHeaders("DeleteDeployment");
+ let body: any;
+ body = JSON.stringify(_json(input));
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
+};
+
/**
* serializeAws_json1_0DeleteEnvironmentCommand
*/
@@ -859,6 +889,19 @@ export const se_GetComponentCommand = async (
return buildHttpRpcRequest(context, headers, "/", undefined, body);
};
+/**
+ * serializeAws_json1_0GetDeploymentCommand
+ */
+export const se_GetDeploymentCommand = async (
+ input: GetDeploymentCommandInput,
+ context: __SerdeContext
+): Promise<__HttpRequest> => {
+ const headers: __HeaderBag = sharedHeaders("GetDeployment");
+ let body: any;
+ body = JSON.stringify(_json(input));
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
+};
+
/**
* serializeAws_json1_0GetEnvironmentCommand
*/
@@ -1106,6 +1149,19 @@ export const se_ListComponentsCommand = async (
return buildHttpRpcRequest(context, headers, "/", undefined, body);
};
+/**
+ * serializeAws_json1_0ListDeploymentsCommand
+ */
+export const se_ListDeploymentsCommand = async (
+ input: ListDeploymentsCommandInput,
+ context: __SerdeContext
+): Promise<__HttpRequest> => {
+ const headers: __HeaderBag = sharedHeaders("ListDeployments");
+ let body: any;
+ body = JSON.stringify(_json(input));
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
+};
+
/**
* serializeAws_json1_0ListEnvironmentAccountConnectionsCommand
*/
@@ -2674,6 +2730,64 @@ const de_DeleteComponentCommandError = async (
}
};
+/**
+ * deserializeAws_json1_0DeleteDeploymentCommand
+ */
+export const de_DeleteDeploymentCommand = async (
+ output: __HttpResponse,
+ context: __SerdeContext
+): Promise => {
+ if (output.statusCode >= 300) {
+ return de_DeleteDeploymentCommandError(output, context);
+ }
+ const data: any = await parseBody(output.body, context);
+ let contents: any = {};
+ contents = de_DeleteDeploymentOutput(data, context);
+ const response: DeleteDeploymentCommandOutput = {
+ $metadata: deserializeMetadata(output),
+ ...contents,
+ };
+ return response;
+};
+
+/**
+ * deserializeAws_json1_0DeleteDeploymentCommandError
+ */
+const de_DeleteDeploymentCommandError = async (
+ output: __HttpResponse,
+ context: __SerdeContext
+): Promise => {
+ const parsedOutput: any = {
+ ...output,
+ body: await parseErrorBody(output.body, context),
+ };
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
+ switch (errorCode) {
+ case "AccessDeniedException":
+ case "com.amazonaws.proton#AccessDeniedException":
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
+ case "InternalServerException":
+ case "com.amazonaws.proton#InternalServerException":
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
+ case "ResourceNotFoundException":
+ case "com.amazonaws.proton#ResourceNotFoundException":
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
+ case "ThrottlingException":
+ case "com.amazonaws.proton#ThrottlingException":
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
+ case "ValidationException":
+ case "com.amazonaws.proton#ValidationException":
+ throw await de_ValidationExceptionRes(parsedOutput, context);
+ default:
+ const parsedBody = parsedOutput.body;
+ return throwDefaultError({
+ output,
+ parsedBody,
+ errorCode,
+ });
+ }
+};
+
/**
* deserializeAws_json1_0DeleteEnvironmentCommand
*/
@@ -3400,6 +3514,64 @@ const de_GetComponentCommandError = async (
}
};
+/**
+ * deserializeAws_json1_0GetDeploymentCommand
+ */
+export const de_GetDeploymentCommand = async (
+ output: __HttpResponse,
+ context: __SerdeContext
+): Promise => {
+ if (output.statusCode >= 300) {
+ return de_GetDeploymentCommandError(output, context);
+ }
+ const data: any = await parseBody(output.body, context);
+ let contents: any = {};
+ contents = de_GetDeploymentOutput(data, context);
+ const response: GetDeploymentCommandOutput = {
+ $metadata: deserializeMetadata(output),
+ ...contents,
+ };
+ return response;
+};
+
+/**
+ * deserializeAws_json1_0GetDeploymentCommandError
+ */
+const de_GetDeploymentCommandError = async (
+ output: __HttpResponse,
+ context: __SerdeContext
+): Promise => {
+ const parsedOutput: any = {
+ ...output,
+ body: await parseErrorBody(output.body, context),
+ };
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
+ switch (errorCode) {
+ case "AccessDeniedException":
+ case "com.amazonaws.proton#AccessDeniedException":
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
+ case "InternalServerException":
+ case "com.amazonaws.proton#InternalServerException":
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
+ case "ResourceNotFoundException":
+ case "com.amazonaws.proton#ResourceNotFoundException":
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
+ case "ThrottlingException":
+ case "com.amazonaws.proton#ThrottlingException":
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
+ case "ValidationException":
+ case "com.amazonaws.proton#ValidationException":
+ throw await de_ValidationExceptionRes(parsedOutput, context);
+ default:
+ const parsedBody = parsedOutput.body;
+ return throwDefaultError({
+ output,
+ parsedBody,
+ errorCode,
+ });
+ }
+};
+
/**
* deserializeAws_json1_0GetEnvironmentCommand
*/
@@ -4496,6 +4668,64 @@ const de_ListComponentsCommandError = async (
}
};
+/**
+ * deserializeAws_json1_0ListDeploymentsCommand
+ */
+export const de_ListDeploymentsCommand = async (
+ output: __HttpResponse,
+ context: __SerdeContext
+): Promise => {
+ if (output.statusCode >= 300) {
+ return de_ListDeploymentsCommandError(output, context);
+ }
+ const data: any = await parseBody(output.body, context);
+ let contents: any = {};
+ contents = de_ListDeploymentsOutput(data, context);
+ const response: ListDeploymentsCommandOutput = {
+ $metadata: deserializeMetadata(output),
+ ...contents,
+ };
+ return response;
+};
+
+/**
+ * deserializeAws_json1_0ListDeploymentsCommandError
+ */
+const de_ListDeploymentsCommandError = async (
+ output: __HttpResponse,
+ context: __SerdeContext
+): Promise => {
+ const parsedOutput: any = {
+ ...output,
+ body: await parseErrorBody(output.body, context),
+ };
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
+ switch (errorCode) {
+ case "AccessDeniedException":
+ case "com.amazonaws.proton#AccessDeniedException":
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
+ case "InternalServerException":
+ case "com.amazonaws.proton#InternalServerException":
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
+ case "ResourceNotFoundException":
+ case "com.amazonaws.proton#ResourceNotFoundException":
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
+ case "ThrottlingException":
+ case "com.amazonaws.proton#ThrottlingException":
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
+ case "ValidationException":
+ case "com.amazonaws.proton#ValidationException":
+ throw await de_ValidationExceptionRes(parsedOutput, context);
+ default:
+ const parsedBody = parsedOutput.body;
+ return throwDefaultError({
+ output,
+ parsedBody,
+ errorCode,
+ });
+ }
+};
+
/**
* deserializeAws_json1_0ListEnvironmentAccountConnectionsCommand
*/
@@ -6825,6 +7055,8 @@ const se_CreateServiceTemplateVersionInput = (
// se_DeleteComponentInput omitted.
+// se_DeleteDeploymentInput omitted.
+
// se_DeleteEnvironmentAccountConnectionInput omitted.
// se_DeleteEnvironmentInput omitted.
@@ -6855,6 +7087,8 @@ const se_CreateServiceTemplateVersionInput = (
// se_GetComponentInput omitted.
+// se_GetDeploymentInput omitted.
+
// se_GetEnvironmentAccountConnectionInput omitted.
// se_GetEnvironmentInput omitted.
@@ -6893,6 +7127,8 @@ const se_CreateServiceTemplateVersionInput = (
// se_ListComponentsInput omitted.
+// se_ListDeploymentsInput omitted.
+
// se_ListEnvironmentAccountConnectionsInput omitted.
// se_ListEnvironmentOutputsInput omitted.
@@ -7125,10 +7361,12 @@ const de_Component = (output: any, context: __SerdeContext): Component => {
deploymentStatusMessage: __expectString,
description: __expectString,
environmentName: __expectString,
+ lastAttemptedDeploymentId: __expectString,
lastClientRequestToken: __expectString,
lastDeploymentAttemptedAt: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
lastDeploymentSucceededAt: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
lastModifiedAt: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
+ lastSucceededDeploymentId: __expectString,
name: __expectString,
serviceInstanceName: __expectString,
serviceName: __expectString,
@@ -7136,6 +7374,20 @@ const de_Component = (output: any, context: __SerdeContext): Component => {
}) as any;
};
+// de_ComponentDeploymentIdList omitted.
+
+/**
+ * deserializeAws_json1_0ComponentState
+ */
+const de_ComponentState = (output: any, context: __SerdeContext): ComponentState => {
+ return take(output, {
+ serviceInstanceName: __expectString,
+ serviceName: __expectString,
+ serviceSpec: __expectString,
+ templateFile: __expectString,
+ }) as any;
+};
+
/**
* deserializeAws_json1_0ComponentSummary
*/
@@ -7146,9 +7398,11 @@ const de_ComponentSummary = (output: any, context: __SerdeContext): ComponentSum
deploymentStatus: __expectString,
deploymentStatusMessage: __expectString,
environmentName: __expectString,
+ lastAttemptedDeploymentId: __expectString,
lastDeploymentAttemptedAt: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
lastDeploymentSucceededAt: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
lastModifiedAt: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
+ lastSucceededDeploymentId: __expectString,
name: __expectString,
serviceInstanceName: __expectString,
serviceName: __expectString,
@@ -7276,6 +7530,15 @@ const de_DeleteComponentOutput = (output: any, context: __SerdeContext): DeleteC
}) as any;
};
+/**
+ * deserializeAws_json1_0DeleteDeploymentOutput
+ */
+const de_DeleteDeploymentOutput = (output: any, context: __SerdeContext): DeleteDeploymentOutput => {
+ return take(output, {
+ deployment: (_: any) => de_Deployment(_, context),
+ }) as any;
+};
+
/**
* deserializeAws_json1_0DeleteEnvironmentAccountConnectionOutput
*/
@@ -7354,6 +7617,94 @@ const de_DeleteServiceTemplateVersionOutput = (
// de_DeleteTemplateSyncConfigOutput omitted.
+/**
+ * deserializeAws_json1_0Deployment
+ */
+const de_Deployment = (output: any, context: __SerdeContext): Deployment => {
+ return take(output, {
+ arn: __expectString,
+ completedAt: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
+ componentName: __expectString,
+ createdAt: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
+ deploymentStatus: __expectString,
+ deploymentStatusMessage: __expectString,
+ environmentName: __expectString,
+ id: __expectString,
+ initialState: (_: any) => de_DeploymentState(__expectUnion(_), context),
+ lastAttemptedDeploymentId: __expectString,
+ lastModifiedAt: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
+ lastSucceededDeploymentId: __expectString,
+ serviceInstanceName: __expectString,
+ serviceName: __expectString,
+ targetArn: __expectString,
+ targetResourceCreatedAt: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
+ targetResourceType: __expectString,
+ targetState: (_: any) => de_DeploymentState(__expectUnion(_), context),
+ }) as any;
+};
+
+/**
+ * deserializeAws_json1_0DeploymentState
+ */
+const de_DeploymentState = (output: any, context: __SerdeContext): DeploymentState => {
+ if (output.component != null) {
+ return {
+ component: de_ComponentState(output.component, context),
+ };
+ }
+ if (output.environment != null) {
+ return {
+ environment: de_EnvironmentState(output.environment, context),
+ };
+ }
+ if (output.serviceInstance != null) {
+ return {
+ serviceInstance: de_ServiceInstanceState(output.serviceInstance, context),
+ };
+ }
+ if (output.servicePipeline != null) {
+ return {
+ servicePipeline: de_ServicePipelineState(output.servicePipeline, context),
+ };
+ }
+ return { $unknown: Object.entries(output)[0] };
+};
+
+/**
+ * deserializeAws_json1_0DeploymentSummary
+ */
+const de_DeploymentSummary = (output: any, context: __SerdeContext): DeploymentSummary => {
+ return take(output, {
+ arn: __expectString,
+ completedAt: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
+ componentName: __expectString,
+ createdAt: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
+ deploymentStatus: __expectString,
+ environmentName: __expectString,
+ id: __expectString,
+ lastAttemptedDeploymentId: __expectString,
+ lastModifiedAt: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
+ lastSucceededDeploymentId: __expectString,
+ serviceInstanceName: __expectString,
+ serviceName: __expectString,
+ targetArn: __expectString,
+ targetResourceCreatedAt: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
+ targetResourceType: __expectString,
+ }) as any;
+};
+
+/**
+ * deserializeAws_json1_0DeploymentSummaryList
+ */
+const de_DeploymentSummaryList = (output: any, context: __SerdeContext): DeploymentSummary[] => {
+ const retVal = (output || [])
+ .filter((e: any) => e != null)
+ .map((entry: any) => {
+ return de_DeploymentSummary(entry, context);
+ });
+ return retVal;
+};
+
/**
* deserializeAws_json1_0Environment
*/
@@ -7368,8 +7719,10 @@ const de_Environment = (output: any, context: __SerdeContext): Environment => {
description: __expectString,
environmentAccountConnectionId: __expectString,
environmentAccountId: __expectString,
+ lastAttemptedDeploymentId: __expectString,
lastDeploymentAttemptedAt: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
lastDeploymentSucceededAt: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
+ lastSucceededDeploymentId: __expectString,
name: __expectString,
protonServiceRoleArn: __expectString,
provisioning: __expectString,
@@ -7436,6 +7789,18 @@ const de_EnvironmentAccountConnectionSummaryList = (
return retVal;
};
+/**
+ * deserializeAws_json1_0EnvironmentState
+ */
+const de_EnvironmentState = (output: any, context: __SerdeContext): EnvironmentState => {
+ return take(output, {
+ spec: __expectString,
+ templateMajorVersion: __expectString,
+ templateMinorVersion: __expectString,
+ templateName: __expectString,
+ }) as any;
+};
+
/**
* deserializeAws_json1_0EnvironmentSummary
*/
@@ -7449,8 +7814,10 @@ const de_EnvironmentSummary = (output: any, context: __SerdeContext): Environmen
description: __expectString,
environmentAccountConnectionId: __expectString,
environmentAccountId: __expectString,
+ lastAttemptedDeploymentId: __expectString,
lastDeploymentAttemptedAt: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
lastDeploymentSucceededAt: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
+ lastSucceededDeploymentId: __expectString,
name: __expectString,
protonServiceRoleArn: __expectString,
provisioning: __expectString,
@@ -7583,6 +7950,15 @@ const de_GetComponentOutput = (output: any, context: __SerdeContext): GetCompone
}) as any;
};
+/**
+ * deserializeAws_json1_0GetDeploymentOutput
+ */
+const de_GetDeploymentOutput = (output: any, context: __SerdeContext): GetDeploymentOutput => {
+ return take(output, {
+ deployment: (_: any) => de_Deployment(_, context),
+ }) as any;
+};
+
/**
* deserializeAws_json1_0GetEnvironmentAccountConnectionOutput
*/
@@ -7743,6 +8119,16 @@ const de_ListComponentsOutput = (output: any, context: __SerdeContext): ListComp
}) as any;
};
+/**
+ * deserializeAws_json1_0ListDeploymentsOutput
+ */
+const de_ListDeploymentsOutput = (output: any, context: __SerdeContext): ListDeploymentsOutput => {
+ return take(output, {
+ deployments: (_: any) => de_DeploymentSummaryList(_, context),
+ nextToken: __expectString,
+ }) as any;
+};
+
/**
* deserializeAws_json1_0ListEnvironmentAccountConnectionsOutput
*/
@@ -7994,9 +8380,11 @@ const de_ServiceInstance = (output: any, context: __SerdeContext): ServiceInstan
deploymentStatus: __expectString,
deploymentStatusMessage: __expectString,
environmentName: __expectString,
+ lastAttemptedDeploymentId: __expectString,
lastClientRequestToken: __expectString,
lastDeploymentAttemptedAt: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
lastDeploymentSucceededAt: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
+ lastSucceededDeploymentId: __expectString,
name: __expectString,
serviceName: __expectString,
spec: __expectString,
@@ -8006,6 +8394,21 @@ const de_ServiceInstance = (output: any, context: __SerdeContext): ServiceInstan
}) as any;
};
+/**
+ * deserializeAws_json1_0ServiceInstanceState
+ */
+const de_ServiceInstanceState = (output: any, context: __SerdeContext): ServiceInstanceState => {
+ return take(output, {
+ lastSuccessfulComponentDeploymentIds: _json,
+ lastSuccessfulEnvironmentDeploymentId: __expectString,
+ lastSuccessfulServicePipelineDeploymentId: __expectString,
+ spec: __expectString,
+ templateMajorVersion: __expectString,
+ templateMinorVersion: __expectString,
+ templateName: __expectString,
+ }) as any;
+};
+
/**
* deserializeAws_json1_0ServiceInstanceSummary
*/
@@ -8016,8 +8419,10 @@ const de_ServiceInstanceSummary = (output: any, context: __SerdeContext): Servic
deploymentStatus: __expectString,
deploymentStatusMessage: __expectString,
environmentName: __expectString,
+ lastAttemptedDeploymentId: __expectString,
lastDeploymentAttemptedAt: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
lastDeploymentSucceededAt: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
+ lastSucceededDeploymentId: __expectString,
name: __expectString,
serviceName: __expectString,
templateMajorVersion: __expectString,
@@ -8047,8 +8452,22 @@ const de_ServicePipeline = (output: any, context: __SerdeContext): ServicePipeli
createdAt: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
deploymentStatus: __expectString,
deploymentStatusMessage: __expectString,
+ lastAttemptedDeploymentId: __expectString,
lastDeploymentAttemptedAt: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
lastDeploymentSucceededAt: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
+ lastSucceededDeploymentId: __expectString,
+ spec: __expectString,
+ templateMajorVersion: __expectString,
+ templateMinorVersion: __expectString,
+ templateName: __expectString,
+ }) as any;
+};
+
+/**
+ * deserializeAws_json1_0ServicePipelineState
+ */
+const de_ServicePipelineState = (output: any, context: __SerdeContext): ServicePipelineState => {
+ return take(output, {
spec: __expectString,
templateMajorVersion: __expectString,
templateMinorVersion: __expectString,
diff --git a/codegen/sdk-codegen/aws-models/proton.json b/codegen/sdk-codegen/aws-models/proton.json
index bfc4e36169f7..b4ad669aff2c 100644
--- a/codegen/sdk-codegen/aws-models/proton.json
+++ b/codegen/sdk-codegen/aws-models/proton.json
@@ -189,6 +189,9 @@
{
"target": "com.amazonaws.proton#ComponentResource"
},
+ {
+ "target": "com.amazonaws.proton#DeploymentResource"
+ },
{
"target": "com.amazonaws.proton#EnvironmentAccountConnectionResource"
},
@@ -618,9 +621,9 @@
}
},
"params": {
+ "Region": "ap-northeast-1",
"UseFIPS": false,
- "UseDualStack": false,
- "Region": "ap-northeast-1"
+ "UseDualStack": false
}
},
{
@@ -631,9 +634,9 @@
}
},
"params": {
+ "Region": "eu-west-1",
"UseFIPS": false,
- "UseDualStack": false,
- "Region": "eu-west-1"
+ "UseDualStack": false
}
},
{
@@ -644,9 +647,9 @@
}
},
"params": {
+ "Region": "us-east-1",
"UseFIPS": false,
- "UseDualStack": false,
- "Region": "us-east-1"
+ "UseDualStack": false
}
},
{
@@ -657,9 +660,9 @@
}
},
"params": {
+ "Region": "us-east-2",
"UseFIPS": false,
- "UseDualStack": false,
- "Region": "us-east-2"
+ "UseDualStack": false
}
},
{
@@ -670,9 +673,9 @@
}
},
"params": {
+ "Region": "us-west-2",
"UseFIPS": false,
- "UseDualStack": false,
- "Region": "us-west-2"
+ "UseDualStack": false
}
},
{
@@ -683,9 +686,9 @@
}
},
"params": {
+ "Region": "us-east-1",
"UseFIPS": true,
- "UseDualStack": true,
- "Region": "us-east-1"
+ "UseDualStack": true
}
},
{
@@ -696,9 +699,9 @@
}
},
"params": {
+ "Region": "us-east-1",
"UseFIPS": true,
- "UseDualStack": false,
- "Region": "us-east-1"
+ "UseDualStack": false
}
},
{
@@ -709,9 +712,9 @@
}
},
"params": {
+ "Region": "us-east-1",
"UseFIPS": false,
- "UseDualStack": true,
- "Region": "us-east-1"
+ "UseDualStack": true
}
},
{
@@ -722,9 +725,9 @@
}
},
"params": {
+ "Region": "cn-north-1",
"UseFIPS": true,
- "UseDualStack": true,
- "Region": "cn-north-1"
+ "UseDualStack": true
}
},
{
@@ -735,9 +738,9 @@
}
},
"params": {
+ "Region": "cn-north-1",
"UseFIPS": true,
- "UseDualStack": false,
- "Region": "cn-north-1"
+ "UseDualStack": false
}
},
{
@@ -748,9 +751,9 @@
}
},
"params": {
+ "Region": "cn-north-1",
"UseFIPS": false,
- "UseDualStack": true,
- "Region": "cn-north-1"
+ "UseDualStack": true
}
},
{
@@ -761,9 +764,9 @@
}
},
"params": {
+ "Region": "cn-north-1",
"UseFIPS": false,
- "UseDualStack": false,
- "Region": "cn-north-1"
+ "UseDualStack": false
}
},
{
@@ -774,9 +777,9 @@
}
},
"params": {
+ "Region": "us-gov-east-1",
"UseFIPS": true,
- "UseDualStack": true,
- "Region": "us-gov-east-1"
+ "UseDualStack": true
}
},
{
@@ -787,9 +790,9 @@
}
},
"params": {
+ "Region": "us-gov-east-1",
"UseFIPS": true,
- "UseDualStack": false,
- "Region": "us-gov-east-1"
+ "UseDualStack": false
}
},
{
@@ -800,9 +803,9 @@
}
},
"params": {
+ "Region": "us-gov-east-1",
"UseFIPS": false,
- "UseDualStack": true,
- "Region": "us-gov-east-1"
+ "UseDualStack": true
}
},
{
@@ -813,9 +816,9 @@
}
},
"params": {
+ "Region": "us-gov-east-1",
"UseFIPS": false,
- "UseDualStack": false,
- "Region": "us-gov-east-1"
+ "UseDualStack": false
}
},
{
@@ -824,9 +827,9 @@
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
},
"params": {
+ "Region": "us-iso-east-1",
"UseFIPS": true,
- "UseDualStack": true,
- "Region": "us-iso-east-1"
+ "UseDualStack": true
}
},
{
@@ -837,9 +840,9 @@
}
},
"params": {
+ "Region": "us-iso-east-1",
"UseFIPS": true,
- "UseDualStack": false,
- "Region": "us-iso-east-1"
+ "UseDualStack": false
}
},
{
@@ -848,9 +851,9 @@
"error": "DualStack is enabled but this partition does not support DualStack"
},
"params": {
+ "Region": "us-iso-east-1",
"UseFIPS": false,
- "UseDualStack": true,
- "Region": "us-iso-east-1"
+ "UseDualStack": true
}
},
{
@@ -861,9 +864,9 @@
}
},
"params": {
+ "Region": "us-iso-east-1",
"UseFIPS": false,
- "UseDualStack": false,
- "Region": "us-iso-east-1"
+ "UseDualStack": false
}
},
{
@@ -872,9 +875,9 @@
"error": "FIPS and DualStack are enabled, but this partition does not support one or both"
},
"params": {
+ "Region": "us-isob-east-1",
"UseFIPS": true,
- "UseDualStack": true,
- "Region": "us-isob-east-1"
+ "UseDualStack": true
}
},
{
@@ -885,9 +888,9 @@
}
},
"params": {
+ "Region": "us-isob-east-1",
"UseFIPS": true,
- "UseDualStack": false,
- "Region": "us-isob-east-1"
+ "UseDualStack": false
}
},
{
@@ -896,9 +899,9 @@
"error": "DualStack is enabled but this partition does not support DualStack"
},
"params": {
+ "Region": "us-isob-east-1",
"UseFIPS": false,
- "UseDualStack": true,
- "Region": "us-isob-east-1"
+ "UseDualStack": true
}
},
{
@@ -909,9 +912,9 @@
}
},
"params": {
+ "Region": "us-isob-east-1",
"UseFIPS": false,
- "UseDualStack": false,
- "Region": "us-isob-east-1"
+ "UseDualStack": false
}
},
{
@@ -922,9 +925,9 @@
}
},
"params": {
+ "Region": "us-east-1",
"UseFIPS": false,
"UseDualStack": false,
- "Region": "us-east-1",
"Endpoint": "https://example.com"
}
},
@@ -947,9 +950,9 @@
"error": "Invalid Configuration: FIPS and custom endpoint are not supported"
},
"params": {
+ "Region": "us-east-1",
"UseFIPS": true,
"UseDualStack": false,
- "Region": "us-east-1",
"Endpoint": "https://example.com"
}
},
@@ -959,9 +962,9 @@
"error": "Invalid Configuration: Dualstack and custom endpoint are not supported"
},
"params": {
+ "Region": "us-east-1",
"UseFIPS": false,
"UseDualStack": true,
- "Region": "us-east-1",
"Endpoint": "https://example.com"
}
},
@@ -1437,6 +1440,18 @@
"traits": {
"smithy.api#documentation": "The last token the client requested.
"
}
+ },
+ "lastAttemptedDeploymentId": {
+ "target": "com.amazonaws.proton#DeploymentId",
+ "traits": {
+ "smithy.api#documentation": "The ID of the last attempted deployment of this component.
"
+ }
+ },
+ "lastSucceededDeploymentId": {
+ "target": "com.amazonaws.proton#DeploymentId",
+ "traits": {
+ "smithy.api#documentation": "The ID of the last successful deployment of this component.
"
+ }
}
},
"traits": {
@@ -1451,6 +1466,18 @@
}
}
},
+ "com.amazonaws.proton#ComponentDeploymentIdList": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.proton#DeploymentId"
+ },
+ "traits": {
+ "smithy.api#length": {
+ "min": 0,
+ "max": 1
+ }
+ }
+ },
"com.amazonaws.proton#ComponentDeploymentUpdateType": {
"type": "string",
"traits": {
@@ -1523,6 +1550,38 @@
"smithy.api#noReplace": {}
}
},
+ "com.amazonaws.proton#ComponentState": {
+ "type": "structure",
+ "members": {
+ "serviceName": {
+ "target": "com.amazonaws.proton#ResourceNameOrEmpty",
+ "traits": {
+ "smithy.api#documentation": "The name of the service that serviceInstanceName
is associated with. Provided when a component is attached to a service instance.
"
+ }
+ },
+ "serviceInstanceName": {
+ "target": "com.amazonaws.proton#ResourceNameOrEmpty",
+ "traits": {
+ "smithy.api#documentation": "The name of the service instance that this component is attached to. Provided when a component is attached to a service instance.
"
+ }
+ },
+ "serviceSpec": {
+ "target": "com.amazonaws.proton#SpecContents",
+ "traits": {
+ "smithy.api#documentation": "The service spec that the component uses to access service inputs. Provided when a component is attached to a service instance.
"
+ }
+ },
+ "templateFile": {
+ "target": "com.amazonaws.proton#TemplateFileContents",
+ "traits": {
+ "smithy.api#documentation": "The template file used.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "The detailed data about the current state of the component.
"
+ }
+ },
"com.amazonaws.proton#ComponentSummary": {
"type": "structure",
"members": {
@@ -1597,6 +1656,18 @@
"traits": {
"smithy.api#documentation": "The message associated with the component deployment status.
"
}
+ },
+ "lastAttemptedDeploymentId": {
+ "target": "com.amazonaws.proton#DeploymentId",
+ "traits": {
+ "smithy.api#documentation": "The ID of the last attempted deployment of this component.
"
+ }
+ },
+ "lastSucceededDeploymentId": {
+ "target": "com.amazonaws.proton#DeploymentId",
+ "traits": {
+ "smithy.api#documentation": "The ID of the last successful deployment of this component.
"
+ }
}
},
"traits": {
@@ -2796,7 +2867,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Set up a template to create new template versions automatically by tracking a linked\n repository. A linked repository is a repository that has been registered with Proton. For more\n information, see CreateRepository.
\n When a commit is pushed to your linked repository, Proton checks for changes to your\n repository template bundles. If it detects a template bundle change, a new major or minor version\n of its template is created, if the version doesn’t already exist. For more information, see\n Template\n sync configurations in the Proton User Guide.
",
+ "smithy.api#documentation": "Set up a template to create new template versions automatically by tracking a linked repository. A linked repository is a repository that has\n been registered with Proton. For more information, see CreateRepository.
\n When a commit is pushed to your linked repository, Proton checks for changes to your repository template bundles. If it detects a template\n bundle change, a new major or minor version of its template is created, if the version doesn’t already exist. For more information, see Template sync configurations in the Proton\n User Guide.
",
"smithy.api#idempotent": {}
}
},
@@ -2841,7 +2912,7 @@
"subdirectory": {
"target": "com.amazonaws.proton#Subdirectory",
"traits": {
- "smithy.api#documentation": "A repository subdirectory path to your template bundle directory. When included, Proton\n limits the template bundle search to this repository directory.
"
+ "smithy.api#documentation": "A repository subdirectory path to your template bundle directory. When included, Proton limits the template bundle search to this\n repository directory.
"
}
}
}
@@ -2920,6 +2991,70 @@
}
}
},
+ "com.amazonaws.proton#DeleteDeployment": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.proton#DeleteDeploymentInput"
+ },
+ "output": {
+ "target": "com.amazonaws.proton#DeleteDeploymentOutput"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.proton#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.proton#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.proton#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.proton#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.proton#ValidationException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "Delete the deployment.
",
+ "smithy.api#idempotent": {}
+ }
+ },
+ "com.amazonaws.proton#DeleteDeploymentInput": {
+ "type": "structure",
+ "members": {
+ "id": {
+ "target": "com.amazonaws.proton#DeploymentId",
+ "traits": {
+ "smithy.api#documentation": "The ID of the deployment to delete.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {},
+ "smithy.api#references": [
+ {
+ "resource": "com.amazonaws.proton#DeploymentResource"
+ }
+ ]
+ }
+ },
+ "com.amazonaws.proton#DeleteDeploymentOutput": {
+ "type": "structure",
+ "members": {
+ "deployment": {
+ "target": "com.amazonaws.proton#Deployment",
+ "traits": {
+ "smithy.api#documentation": "The detailed data of the deployment being deleted.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
"com.amazonaws.proton#DeleteEnvironment": {
"type": "operation",
"input": {
@@ -3578,12 +3713,199 @@
}
}
},
+ "com.amazonaws.proton#Deployment": {
+ "type": "structure",
+ "members": {
+ "id": {
+ "target": "com.amazonaws.proton#DeploymentId",
+ "traits": {
+ "smithy.api#documentation": "The ID of the deployment.
",
+ "smithy.api#required": {}
+ }
+ },
+ "arn": {
+ "target": "com.amazonaws.proton#DeploymentArn",
+ "traits": {
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the deployment.
",
+ "smithy.api#required": {}
+ }
+ },
+ "targetArn": {
+ "target": "com.amazonaws.proton#Arn",
+ "traits": {
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the target of the deployment.
",
+ "smithy.api#required": {}
+ }
+ },
+ "targetResourceCreatedAt": {
+ "target": "smithy.api#Timestamp",
+ "traits": {
+ "smithy.api#documentation": "The date and time the depoyment target was created.
",
+ "smithy.api#required": {}
+ }
+ },
+ "targetResourceType": {
+ "target": "com.amazonaws.proton#DeploymentTargetResourceType",
+ "traits": {
+ "smithy.api#documentation": "The resource type of the deployment target. It can be an environment, service, service instance, or component.
",
+ "smithy.api#required": {}
+ }
+ },
+ "environmentName": {
+ "target": "com.amazonaws.proton#ResourceName",
+ "traits": {
+ "smithy.api#documentation": "The name of the environment associated with this deployment.
",
+ "smithy.api#required": {}
+ }
+ },
+ "serviceName": {
+ "target": "com.amazonaws.proton#ResourceName",
+ "traits": {
+ "smithy.api#documentation": "The name of the service in this deployment.
"
+ }
+ },
+ "serviceInstanceName": {
+ "target": "com.amazonaws.proton#ResourceName",
+ "traits": {
+ "smithy.api#documentation": "The name of the deployment's service instance.
"
+ }
+ },
+ "componentName": {
+ "target": "com.amazonaws.proton#ResourceName",
+ "traits": {
+ "smithy.api#documentation": "The name of the component associated with this deployment.
"
+ }
+ },
+ "deploymentStatus": {
+ "target": "com.amazonaws.proton#DeploymentStatus",
+ "traits": {
+ "smithy.api#documentation": "The status of the deployment.
",
+ "smithy.api#required": {}
+ }
+ },
+ "deploymentStatusMessage": {
+ "target": "com.amazonaws.proton#StatusMessage",
+ "traits": {
+ "smithy.api#documentation": "The deployment status message.
"
+ }
+ },
+ "createdAt": {
+ "target": "smithy.api#Timestamp",
+ "traits": {
+ "smithy.api#documentation": "The date and time the deployment was created.
",
+ "smithy.api#required": {}
+ }
+ },
+ "lastModifiedAt": {
+ "target": "smithy.api#Timestamp",
+ "traits": {
+ "smithy.api#documentation": "The date and time the deployment was last modified.
",
+ "smithy.api#required": {}
+ }
+ },
+ "completedAt": {
+ "target": "smithy.api#Timestamp",
+ "traits": {
+ "smithy.api#documentation": "The date and time the deployment was completed.
"
+ }
+ },
+ "lastAttemptedDeploymentId": {
+ "target": "com.amazonaws.proton#DeploymentId",
+ "traits": {
+ "smithy.api#documentation": "The ID of the last attempted deployment.
"
+ }
+ },
+ "lastSucceededDeploymentId": {
+ "target": "com.amazonaws.proton#DeploymentId",
+ "traits": {
+ "smithy.api#documentation": "The ID of the last successful deployment.
"
+ }
+ },
+ "initialState": {
+ "target": "com.amazonaws.proton#DeploymentState",
+ "traits": {
+ "smithy.api#documentation": "The initial state of the target resource at the time of the deployment.
"
+ }
+ },
+ "targetState": {
+ "target": "com.amazonaws.proton#DeploymentState",
+ "traits": {
+ "smithy.api#documentation": "The target state of the target resource at the time of the deployment.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "The detailed information about a deployment.
"
+ }
+ },
+ "com.amazonaws.proton#DeploymentArn": {
+ "type": "string",
+ "traits": {
+ "aws.api#arnReference": {
+ "resource": "com.amazonaws.proton#DeploymentResource"
+ }
+ }
+ },
"com.amazonaws.proton#DeploymentId": {
"type": "string",
"traits": {
"smithy.api#pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
}
},
+ "com.amazonaws.proton#DeploymentResource": {
+ "type": "resource",
+ "identifiers": {
+ "id": {
+ "target": "com.amazonaws.proton#DeploymentId"
+ }
+ },
+ "read": {
+ "target": "com.amazonaws.proton#GetDeployment"
+ },
+ "delete": {
+ "target": "com.amazonaws.proton#DeleteDeployment"
+ },
+ "list": {
+ "target": "com.amazonaws.proton#ListDeployments"
+ },
+ "traits": {
+ "aws.api#arn": {
+ "template": "deployment/{id}"
+ }
+ }
+ },
+ "com.amazonaws.proton#DeploymentState": {
+ "type": "union",
+ "members": {
+ "serviceInstance": {
+ "target": "com.amazonaws.proton#ServiceInstanceState",
+ "traits": {
+ "smithy.api#documentation": "The state of the service instance associated with the deployment.
"
+ }
+ },
+ "environment": {
+ "target": "com.amazonaws.proton#EnvironmentState",
+ "traits": {
+ "smithy.api#documentation": "The state of the environment associated with the deployment.
"
+ }
+ },
+ "servicePipeline": {
+ "target": "com.amazonaws.proton#ServicePipelineState",
+ "traits": {
+ "smithy.api#documentation": "The state of the service pipeline associated with the deployment.
"
+ }
+ },
+ "component": {
+ "target": "com.amazonaws.proton#ComponentState",
+ "traits": {
+ "smithy.api#documentation": "The state of the component associated with the deployment.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "The detailed data about the current state of the deployment.
"
+ }
+ },
"com.amazonaws.proton#DeploymentStatus": {
"type": "string",
"traits": {
@@ -3623,6 +3945,142 @@
]
}
},
+ "com.amazonaws.proton#DeploymentSummary": {
+ "type": "structure",
+ "members": {
+ "id": {
+ "target": "com.amazonaws.proton#DeploymentId",
+ "traits": {
+ "smithy.api#documentation": "The ID of the deployment.
",
+ "smithy.api#required": {}
+ }
+ },
+ "arn": {
+ "target": "com.amazonaws.proton#DeploymentArn",
+ "traits": {
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the deployment.
",
+ "smithy.api#required": {}
+ }
+ },
+ "targetArn": {
+ "target": "com.amazonaws.proton#Arn",
+ "traits": {
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the target of the deployment.
",
+ "smithy.api#required": {}
+ }
+ },
+ "targetResourceCreatedAt": {
+ "target": "smithy.api#Timestamp",
+ "traits": {
+ "smithy.api#documentation": "The date and time the target resource was created.
",
+ "smithy.api#required": {}
+ }
+ },
+ "targetResourceType": {
+ "target": "com.amazonaws.proton#DeploymentTargetResourceType",
+ "traits": {
+ "smithy.api#documentation": "The resource type of the deployment target. It can be an environment, service, service instance, or component.
",
+ "smithy.api#required": {}
+ }
+ },
+ "createdAt": {
+ "target": "smithy.api#Timestamp",
+ "traits": {
+ "smithy.api#documentation": "The date and time the deployment was created.
",
+ "smithy.api#required": {}
+ }
+ },
+ "lastModifiedAt": {
+ "target": "smithy.api#Timestamp",
+ "traits": {
+ "smithy.api#documentation": "The date and time the deployment was last modified.
",
+ "smithy.api#required": {}
+ }
+ },
+ "completedAt": {
+ "target": "smithy.api#Timestamp",
+ "traits": {
+ "smithy.api#documentation": "The date and time the deployment was completed.
"
+ }
+ },
+ "environmentName": {
+ "target": "com.amazonaws.proton#ResourceName",
+ "traits": {
+ "smithy.api#documentation": "The name of the environment associated with the deployment.
",
+ "smithy.api#required": {}
+ }
+ },
+ "serviceName": {
+ "target": "com.amazonaws.proton#ResourceName",
+ "traits": {
+ "smithy.api#documentation": "The name of the service associated with the deployment.
"
+ }
+ },
+ "serviceInstanceName": {
+ "target": "com.amazonaws.proton#ResourceName",
+ "traits": {
+ "smithy.api#documentation": "The name of the service instance associated with the deployment.
"
+ }
+ },
+ "componentName": {
+ "target": "com.amazonaws.proton#ResourceName",
+ "traits": {
+ "smithy.api#documentation": "The name of the component associated with the deployment.
"
+ }
+ },
+ "lastAttemptedDeploymentId": {
+ "target": "com.amazonaws.proton#DeploymentId",
+ "traits": {
+ "smithy.api#documentation": "The ID of the last attempted deployment.
"
+ }
+ },
+ "lastSucceededDeploymentId": {
+ "target": "com.amazonaws.proton#DeploymentId",
+ "traits": {
+ "smithy.api#documentation": "The ID of the last successful deployment.
"
+ }
+ },
+ "deploymentStatus": {
+ "target": "com.amazonaws.proton#DeploymentStatus",
+ "traits": {
+ "smithy.api#documentation": "The current status of the deployment.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "Summary data of the deployment.
"
+ }
+ },
+ "com.amazonaws.proton#DeploymentSummaryList": {
+ "type": "list",
+ "member": {
+ "target": "com.amazonaws.proton#DeploymentSummary"
+ }
+ },
+ "com.amazonaws.proton#DeploymentTargetResourceType": {
+ "type": "string",
+ "traits": {
+ "smithy.api#enum": [
+ {
+ "name": "ENVIRONMENT",
+ "value": "ENVIRONMENT"
+ },
+ {
+ "name": "SERVICE_PIPELINE",
+ "value": "SERVICE_PIPELINE"
+ },
+ {
+ "name": "SERVICE_INSTANCE",
+ "value": "SERVICE_INSTANCE"
+ },
+ {
+ "name": "COMPONENT",
+ "value": "COMPONENT"
+ }
+ ]
+ }
+ },
"com.amazonaws.proton#DeploymentUpdateType": {
"type": "string",
"traits": {
@@ -3800,6 +4258,18 @@
"traits": {
"smithy.api#documentation": "The Amazon Resource Name (ARN) of the IAM service role that allows Proton to provision infrastructure using CodeBuild-based provisioning on your\n behalf.
"
}
+ },
+ "lastAttemptedDeploymentId": {
+ "target": "com.amazonaws.proton#DeploymentId",
+ "traits": {
+ "smithy.api#documentation": "The ID of the last attempted deployment of this environment.
"
+ }
+ },
+ "lastSucceededDeploymentId": {
+ "target": "com.amazonaws.proton#DeploymentId",
+ "traits": {
+ "smithy.api#documentation": "The ID of the last successful deployment of this environment.
"
+ }
}
},
"traits": {
@@ -4127,6 +4597,41 @@
"smithy.api#noReplace": {}
}
},
+ "com.amazonaws.proton#EnvironmentState": {
+ "type": "structure",
+ "members": {
+ "spec": {
+ "target": "com.amazonaws.proton#SpecContents",
+ "traits": {
+ "smithy.api#documentation": "The environment spec that was used to create the environment.
"
+ }
+ },
+ "templateName": {
+ "target": "com.amazonaws.proton#ResourceName",
+ "traits": {
+ "smithy.api#documentation": "The name of the environment template that was used to create the environment.
",
+ "smithy.api#required": {}
+ }
+ },
+ "templateMajorVersion": {
+ "target": "com.amazonaws.proton#TemplateVersionPart",
+ "traits": {
+ "smithy.api#documentation": "The major version of the environment template that was used to create the environment.
",
+ "smithy.api#required": {}
+ }
+ },
+ "templateMinorVersion": {
+ "target": "com.amazonaws.proton#TemplateVersionPart",
+ "traits": {
+ "smithy.api#documentation": "The minor version of the environment template that was used to create the environment.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "The detailed data about the current state of the environment.
"
+ }
+ },
"com.amazonaws.proton#EnvironmentSummary": {
"type": "structure",
"members": {
@@ -4234,6 +4739,18 @@
"traits": {
"smithy.api#documentation": "The Amazon Resource Name (ARN) of the IAM service role that Proton uses when provisioning directly defined components in this environment. It\n determines the scope of infrastructure that a component can provision.
\n The environment must have a componentRoleArn
to allow directly defined components to be associated with the environment.
\n For more information about components, see\n Proton components in the\n Proton User Guide.
"
}
+ },
+ "lastAttemptedDeploymentId": {
+ "target": "com.amazonaws.proton#DeploymentId",
+ "traits": {
+ "smithy.api#documentation": "The ID of the last attempted deployment of this environment.
"
+ }
+ },
+ "lastSucceededDeploymentId": {
+ "target": "com.amazonaws.proton#DeploymentId",
+ "traits": {
+ "smithy.api#documentation": "The ID of the last successful deployment of this environment.
"
+ }
}
},
"traits": {
@@ -4790,34 +5307,122 @@
}
}
},
- "com.amazonaws.proton#GetComponentInput": {
+ "com.amazonaws.proton#GetComponentInput": {
+ "type": "structure",
+ "members": {
+ "name": {
+ "target": "com.amazonaws.proton#ResourceName",
+ "traits": {
+ "smithy.api#documentation": "The name of the component that you want to get the detailed data for.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#references": [
+ {
+ "resource": "com.amazonaws.proton#ComponentResource"
+ }
+ ]
+ }
+ },
+ "com.amazonaws.proton#GetComponentOutput": {
+ "type": "structure",
+ "members": {
+ "component": {
+ "target": "com.amazonaws.proton#Component",
+ "traits": {
+ "smithy.api#documentation": "The detailed data of the requested component.
"
+ }
+ }
+ }
+ },
+ "com.amazonaws.proton#GetDeployment": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.proton#GetDeploymentInput"
+ },
+ "output": {
+ "target": "com.amazonaws.proton#GetDeploymentOutput"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.proton#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.proton#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.proton#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.proton#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.proton#ValidationException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "Get detailed data for a deployment.
",
+ "smithy.api#readonly": {}
+ }
+ },
+ "com.amazonaws.proton#GetDeploymentInput": {
"type": "structure",
"members": {
- "name": {
- "target": "com.amazonaws.proton#ResourceName",
+ "id": {
+ "target": "com.amazonaws.proton#DeploymentId",
"traits": {
- "smithy.api#documentation": "The name of the component that you want to get the detailed data for.
",
+ "smithy.api#documentation": "The ID of the deployment that you want to get the detailed data for.
",
"smithy.api#required": {}
}
+ },
+ "environmentName": {
+ "target": "com.amazonaws.proton#ResourceName",
+ "traits": {
+ "smithy.api#documentation": "The name of a environment that you want to get the detailed data for.
"
+ }
+ },
+ "serviceName": {
+ "target": "com.amazonaws.proton#ResourceName",
+ "traits": {
+ "smithy.api#documentation": "The name of the service associated with the given deployment ID.
"
+ }
+ },
+ "serviceInstanceName": {
+ "target": "com.amazonaws.proton#ResourceName",
+ "traits": {
+ "smithy.api#documentation": "The name of the service instance associated with the given deployment ID. serviceName
must be specified to identify the service\n instance.
"
+ }
+ },
+ "componentName": {
+ "target": "com.amazonaws.proton#ResourceName",
+ "traits": {
+ "smithy.api#documentation": "The name of a component that you want to get the detailed data for.
"
+ }
}
},
"traits": {
+ "smithy.api#input": {},
"smithy.api#references": [
{
- "resource": "com.amazonaws.proton#ComponentResource"
+ "resource": "com.amazonaws.proton#DeploymentResource"
}
]
}
},
- "com.amazonaws.proton#GetComponentOutput": {
+ "com.amazonaws.proton#GetDeploymentOutput": {
"type": "structure",
"members": {
- "component": {
- "target": "com.amazonaws.proton#Component",
+ "deployment": {
+ "target": "com.amazonaws.proton#Deployment",
"traits": {
- "smithy.api#documentation": "The detailed data of the requested component.
"
+ "smithy.api#documentation": "The detailed data of the requested deployment.
"
}
}
+ },
+ "traits": {
+ "smithy.api#output": {}
}
},
"com.amazonaws.proton#GetEnvironment": {
@@ -5303,7 +5908,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Get counts of Proton resources.
\n For infrastructure-provisioning resources (environments, services, service instances,\n pipelines), the action returns staleness counts. A resource is stale when it's behind the\n recommended version of the Proton template that it uses and it needs an update to become\n current.
\n The action returns staleness counts (counts of resources that are up-to-date, behind a\n template major version, or behind a template minor version), the total number of resources, and\n the number of resources that are in a failed state, grouped by resource type. Components,\n environments, and service templates return less information - see the components
,\n environments
, and serviceTemplates
field descriptions.
\n For context, the action also returns the total number of each type of Proton template in the\n Amazon Web Services account.
\n For more information, see Proton dashboard in the\n Proton User Guide.
",
+ "smithy.api#documentation": "Get counts of Proton resources.
\n For infrastructure-provisioning resources (environments, services, service instances, pipelines), the action returns staleness counts. A\n resource is stale when it's behind the recommended version of the Proton template that it uses and it needs an update to become current.
\n The action returns staleness counts (counts of resources that are up-to-date, behind a template major version, or behind a template minor\n version), the total number of resources, and the number of resources that are in a failed state, grouped by resource type. Components,\n environments, and service templates return less information - see the components
, environments
, and\n serviceTemplates
field descriptions.
\n For context, the action also returns the total number of each type of Proton template in the Amazon Web Services account.
\n For more information, see Proton dashboard in the\n Proton User Guide.
",
"smithy.api#readonly": {}
}
},
@@ -6214,6 +6819,12 @@
"traits": {
"smithy.api#documentation": "A token that indicates the location of the next output in the array of outputs, after the list of outputs that was previously requested.
"
}
+ },
+ "deploymentId": {
+ "target": "com.amazonaws.proton#DeploymentId",
+ "traits": {
+ "smithy.api#documentation": "The ID of the deployment whose outputs you want.
"
+ }
}
}
},
@@ -6392,6 +7003,107 @@
}
}
},
+ "com.amazonaws.proton#ListDeployments": {
+ "type": "operation",
+ "input": {
+ "target": "com.amazonaws.proton#ListDeploymentsInput"
+ },
+ "output": {
+ "target": "com.amazonaws.proton#ListDeploymentsOutput"
+ },
+ "errors": [
+ {
+ "target": "com.amazonaws.proton#AccessDeniedException"
+ },
+ {
+ "target": "com.amazonaws.proton#InternalServerException"
+ },
+ {
+ "target": "com.amazonaws.proton#ResourceNotFoundException"
+ },
+ {
+ "target": "com.amazonaws.proton#ThrottlingException"
+ },
+ {
+ "target": "com.amazonaws.proton#ValidationException"
+ }
+ ],
+ "traits": {
+ "smithy.api#documentation": "List deployments. You can filter the result list by environment, service, or a single service instance.
",
+ "smithy.api#paginated": {
+ "inputToken": "nextToken",
+ "outputToken": "nextToken",
+ "pageSize": "maxResults",
+ "items": "deployments"
+ },
+ "smithy.api#readonly": {}
+ }
+ },
+ "com.amazonaws.proton#ListDeploymentsInput": {
+ "type": "structure",
+ "members": {
+ "nextToken": {
+ "target": "com.amazonaws.proton#NextToken",
+ "traits": {
+ "smithy.api#documentation": "A token that indicates the location of the next deployment in the array of deployment, after the list of deployment that was previously\n requested.
"
+ }
+ },
+ "environmentName": {
+ "target": "com.amazonaws.proton#ResourceName",
+ "traits": {
+ "smithy.api#documentation": "The name of an environment for result list filtering. Proton returns deployments associated with the environment.
"
+ }
+ },
+ "serviceName": {
+ "target": "com.amazonaws.proton#ResourceName",
+ "traits": {
+ "smithy.api#documentation": "The name of a service for result list filtering. Proton returns deployments associated with service instances of the service.
"
+ }
+ },
+ "serviceInstanceName": {
+ "target": "com.amazonaws.proton#ResourceName",
+ "traits": {
+ "smithy.api#documentation": "The name of a service instance for result list filtering. Proton returns the deployments associated with the service instance.
"
+ }
+ },
+ "componentName": {
+ "target": "com.amazonaws.proton#ResourceName",
+ "traits": {
+ "smithy.api#documentation": "The name of a component for result list filtering. Proton returns deployments associated with that component.
"
+ }
+ },
+ "maxResults": {
+ "target": "com.amazonaws.proton#MaxPageResults",
+ "traits": {
+ "smithy.api#documentation": "The maximum number of deployments to list.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#input": {}
+ }
+ },
+ "com.amazonaws.proton#ListDeploymentsOutput": {
+ "type": "structure",
+ "members": {
+ "nextToken": {
+ "target": "com.amazonaws.proton#NextToken",
+ "traits": {
+ "smithy.api#documentation": "A token that indicates the location of the next deployment in the array of deployment, after the current requested list of deployment.
"
+ }
+ },
+ "deployments": {
+ "target": "com.amazonaws.proton#DeploymentSummaryList",
+ "traits": {
+ "smithy.api#documentation": "An array of deployment with summary data.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#output": {}
+ }
+ },
"com.amazonaws.proton#ListEnvironmentAccountConnections": {
"type": "operation",
"input": {
@@ -6529,6 +7241,12 @@
"traits": {
"smithy.api#documentation": "A token that indicates the location of the next environment output in the array of environment outputs, after the list of environment outputs that was\n previously requested.
"
}
+ },
+ "deploymentId": {
+ "target": "com.amazonaws.proton#DeploymentId",
+ "traits": {
+ "smithy.api#documentation": "The ID of the deployment whose outputs you want.
"
+ }
}
}
},
@@ -7060,6 +7778,12 @@
"traits": {
"smithy.api#documentation": "A token that indicates the location of the next output in the array of outputs, after the\n list of outputs that was previously requested.
"
}
+ },
+ "deploymentId": {
+ "target": "com.amazonaws.proton#DeploymentId",
+ "traits": {
+ "smithy.api#documentation": "The ID of the deployment whose outputs you want.
"
+ }
}
}
},
@@ -7415,6 +8139,12 @@
"traits": {
"smithy.api#documentation": "A token that indicates the location of the next output in the array of outputs, after the\n list of outputs that was previously requested.
"
}
+ },
+ "deploymentId": {
+ "target": "com.amazonaws.proton#DeploymentId",
+ "traits": {
+ "smithy.api#documentation": "The ID of the deployment you want the outputs for.
"
+ }
}
}
},
@@ -7753,7 +8483,7 @@
}
],
"traits": {
- "smithy.api#documentation": "List tags for a resource. For more information, see Proton resources and tagging in the\n Proton User Guide.
",
+ "smithy.api#documentation": "List tags for a resource. For more information, see Proton\n resources and tagging in the Proton User Guide.
",
"smithy.api#paginated": {
"inputToken": "nextToken",
"outputToken": "nextToken",
@@ -7777,7 +8507,7 @@
"nextToken": {
"target": "smithy.api#String",
"traits": {
- "smithy.api#documentation": "A token that indicates the location of the next resource tag in the array of resource tags,\n after the list of resource tags that was previously requested.
",
+ "smithy.api#documentation": "A token that indicates the location of the next resource tag in the array of resource tags, after the list of resource tags that was\n previously requested.
",
"smithy.api#httpQuery": "nextToken"
}
},
@@ -7803,7 +8533,7 @@
"nextToken": {
"target": "smithy.api#String",
"traits": {
- "smithy.api#documentation": "A token that indicates the location of the next resource tag in the array of resource tags,\n after the current requested list of resource tags.
"
+ "smithy.api#documentation": "A token that indicates the location of the next resource tag in the array of resource tags, after the current requested list of resource\n tags.
"
}
}
}
@@ -7855,7 +8585,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Notify Proton of status changes to a provisioned resource when you use self-managed\n provisioning.
\n For more information, see Self-managed\n provisioning in the Proton User Guide.
"
+ "smithy.api#documentation": "Notify Proton of status changes to a provisioned resource when you use self-managed provisioning.
\n For more information, see Self-managed provisioning in the Proton User Guide.
"
}
},
"com.amazonaws.proton#NotifyResourceDeploymentStatusChangeInput": {
@@ -8993,6 +9723,18 @@
"traits": {
"smithy.api#documentation": "The last client request token received.
"
}
+ },
+ "lastAttemptedDeploymentId": {
+ "target": "com.amazonaws.proton#DeploymentId",
+ "traits": {
+ "smithy.api#documentation": "The ID of the last attempted deployment of this service instance.
"
+ }
+ },
+ "lastSucceededDeploymentId": {
+ "target": "com.amazonaws.proton#DeploymentId",
+ "traits": {
+ "smithy.api#documentation": "The ID of the last successful deployment of this service instance.
"
+ }
}
},
"traits": {
@@ -9074,6 +9816,60 @@
}
}
},
+ "com.amazonaws.proton#ServiceInstanceState": {
+ "type": "structure",
+ "members": {
+ "spec": {
+ "target": "com.amazonaws.proton#SpecContents",
+ "traits": {
+ "smithy.api#documentation": "The service spec that was used to create the service instance.
",
+ "smithy.api#required": {}
+ }
+ },
+ "templateName": {
+ "target": "com.amazonaws.proton#ResourceName",
+ "traits": {
+ "smithy.api#documentation": "The name of the service template that was used to create the service instance.
",
+ "smithy.api#required": {}
+ }
+ },
+ "templateMajorVersion": {
+ "target": "com.amazonaws.proton#TemplateVersionPart",
+ "traits": {
+ "smithy.api#documentation": "The major version of the service template that was used to create the service\n pipeline.
",
+ "smithy.api#required": {}
+ }
+ },
+ "templateMinorVersion": {
+ "target": "com.amazonaws.proton#TemplateVersionPart",
+ "traits": {
+ "smithy.api#documentation": "The minor version of the service template that was used to create the service\n pipeline.
",
+ "smithy.api#required": {}
+ }
+ },
+ "lastSuccessfulComponentDeploymentIds": {
+ "target": "com.amazonaws.proton#ComponentDeploymentIdList",
+ "traits": {
+ "smithy.api#documentation": "The IDs for the last successful components deployed for this service instance.
"
+ }
+ },
+ "lastSuccessfulEnvironmentDeploymentId": {
+ "target": "com.amazonaws.proton#DeploymentId",
+ "traits": {
+ "smithy.api#documentation": "The ID for the last successful environment deployed for this service instance.
"
+ }
+ },
+ "lastSuccessfulServicePipelineDeploymentId": {
+ "target": "com.amazonaws.proton#DeploymentId",
+ "traits": {
+ "smithy.api#documentation": "The ID for the last successful service pipeline deployed for this service instance.
"
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "The detailed data about the current state of this service instance.
"
+ }
+ },
"com.amazonaws.proton#ServiceInstanceSummary": {
"type": "structure",
"members": {
@@ -9159,6 +9955,18 @@
"traits": {
"smithy.api#documentation": "A service instance deployment status message.
"
}
+ },
+ "lastAttemptedDeploymentId": {
+ "target": "com.amazonaws.proton#DeploymentId",
+ "traits": {
+ "smithy.api#documentation": "The ID of the last attempted deployment of this service instance.
"
+ }
+ },
+ "lastSucceededDeploymentId": {
+ "target": "com.amazonaws.proton#DeploymentId",
+ "traits": {
+ "smithy.api#documentation": "The ID of the last successful deployment of this service instance.
"
+ }
}
},
"traits": {
@@ -9246,6 +10054,18 @@
"traits": {
"smithy.api#documentation": "The service spec that was used to create the service pipeline.
"
}
+ },
+ "lastAttemptedDeploymentId": {
+ "target": "com.amazonaws.proton#DeploymentId",
+ "traits": {
+ "smithy.api#documentation": "The ID of the last attempted deployment of this service pipeline.
"
+ }
+ },
+ "lastSucceededDeploymentId": {
+ "target": "com.amazonaws.proton#DeploymentId",
+ "traits": {
+ "smithy.api#documentation": "The ID of the last successful deployment of this service pipeline.
"
+ }
}
},
"traits": {
@@ -9291,6 +10111,41 @@
"target": "com.amazonaws.proton#UpdateServicePipeline"
}
},
+ "com.amazonaws.proton#ServicePipelineState": {
+ "type": "structure",
+ "members": {
+ "spec": {
+ "target": "com.amazonaws.proton#SpecContents",
+ "traits": {
+ "smithy.api#documentation": "The service spec that was used to create the service pipeline.
"
+ }
+ },
+ "templateName": {
+ "target": "com.amazonaws.proton#ResourceName",
+ "traits": {
+ "smithy.api#documentation": "The name of the service template that was used to create the service pipeline.
",
+ "smithy.api#required": {}
+ }
+ },
+ "templateMajorVersion": {
+ "target": "com.amazonaws.proton#TemplateVersionPart",
+ "traits": {
+ "smithy.api#documentation": "The major version of the service template that was used to create the service\n pipeline.
",
+ "smithy.api#required": {}
+ }
+ },
+ "templateMinorVersion": {
+ "target": "com.amazonaws.proton#TemplateVersionPart",
+ "traits": {
+ "smithy.api#documentation": "The minor version of the service template that was used to create the service\n pipeline.
",
+ "smithy.api#required": {}
+ }
+ }
+ },
+ "traits": {
+ "smithy.api#documentation": "The detailed data about the current state of the service pipeline.
"
+ }
+ },
"com.amazonaws.proton#ServiceQuotaExceededException": {
"type": "structure",
"members": {
@@ -10195,7 +11050,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Tag a resource. A tag is a key-value pair of metadata that you associate with an Proton\n resource.
\n For more information, see Proton resources and tagging in the\n Proton User Guide.
",
+ "smithy.api#documentation": "Tag a resource. A tag is a key-value pair of metadata that you associate with an Proton resource.
\n For more information, see Proton resources and tagging in\n the Proton User Guide.
",
"smithy.api#idempotent": {}
}
},
@@ -10439,7 +11294,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Remove a customer tag from a resource. A tag is a key-value pair of metadata associated with\n an Proton resource.
\n For more information, see Proton resources and tagging in the\n Proton User Guide.
",
+ "smithy.api#documentation": "Remove a customer tag from a resource. A tag is a key-value pair of metadata associated with an Proton resource.
\n For more information, see Proton resources and tagging in\n the Proton User Guide.
",
"smithy.api#idempotent": {}
}
},
@@ -10457,7 +11312,7 @@
"tagKeys": {
"target": "com.amazonaws.proton#TagKeyList",
"traits": {
- "smithy.api#documentation": "A list of customer tag keys that indicate the customer tags to be removed from the\n resource.
",
+ "smithy.api#documentation": "A list of customer tag keys that indicate the customer tags to be removed from the resource.
",
"smithy.api#required": {}
}
}
@@ -10502,25 +11357,25 @@
"pipelineServiceRoleArn": {
"target": "com.amazonaws.proton#RoleArnOrEmptyString",
"traits": {
- "smithy.api#documentation": "The Amazon Resource Name (ARN) of the service role you want to use for provisioning\n pipelines. Assumed by Proton for Amazon Web Services-managed provisioning, and by customer-owned automation for\n self-managed provisioning.
\n To remove a previously configured ARN, specify an empty string.
"
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the service role you want to use for provisioning pipelines. Assumed by Proton for Amazon Web Services-managed\n provisioning, and by customer-owned automation for self-managed provisioning.
\n To remove a previously configured ARN, specify an empty string.
"
}
},
"pipelineProvisioningRepository": {
"target": "com.amazonaws.proton#RepositoryBranchInput",
"traits": {
- "smithy.api#documentation": "A linked repository for pipeline provisioning. Specify it if you have environments\n configured for self-managed provisioning with services that include pipelines. A linked\n repository is a repository that has been registered with Proton. For more information, see\n CreateRepository.
\n To remove a previously configured repository, set\n deletePipelineProvisioningRepository
to true
, and don't set\n pipelineProvisioningRepository
.
"
+ "smithy.api#documentation": "A linked repository for pipeline provisioning. Specify it if you have environments configured for self-managed provisioning with services that\n include pipelines. A linked repository is a repository that has been registered with Proton. For more information, see CreateRepository.
\n To remove a previously configured repository, set deletePipelineProvisioningRepository
to true
, and don't set\n pipelineProvisioningRepository
.
"
}
},
"deletePipelineProvisioningRepository": {
"target": "smithy.api#Boolean",
"traits": {
- "smithy.api#documentation": "Set to true
to remove a configured pipeline repository from the account\n settings. Don't set this field if you are updating the configured pipeline repository.
"
+ "smithy.api#documentation": "Set to true
to remove a configured pipeline repository from the account settings. Don't set this field if you are updating the\n configured pipeline repository.
"
}
},
"pipelineCodebuildRoleArn": {
"target": "com.amazonaws.proton#RoleArnOrEmptyString",
"traits": {
- "smithy.api#documentation": "The Amazon Resource Name (ARN) of the service role you want to use for provisioning\n pipelines. Proton assumes this role for CodeBuild-based provisioning.
"
+ "smithy.api#documentation": "The Amazon Resource Name (ARN) of the service role you want to use for provisioning pipelines. Proton assumes this role for CodeBuild-based\n provisioning.
"
}
}
}
@@ -11653,7 +12508,7 @@
}
],
"traits": {
- "smithy.api#documentation": "Update template sync configuration parameters, except for the templateName
and\n templateType
. Repository details (branch, name, and provider) should be of a linked\n repository. A linked repository is a repository that has been registered with Proton. For more\n information, see CreateRepository.
"
+ "smithy.api#documentation": "Update template sync configuration parameters, except for the templateName
and templateType
. Repository details\n (branch, name, and provider) should be of a linked repository. A linked repository is a repository that has been registered with Proton. For\n more information, see CreateRepository.
"
}
},
"com.amazonaws.proton#UpdateTemplateSyncConfigInput": {
@@ -11697,7 +12552,7 @@
"subdirectory": {
"target": "com.amazonaws.proton#Subdirectory",
"traits": {
- "smithy.api#documentation": "A subdirectory path to your template bundle version. When included, limits the template\n bundle search to this repository directory.
"
+ "smithy.api#documentation": "A subdirectory path to your template bundle version. When included, limits the template bundle search to this repository directory.
"
}
}
}