Skip to content

Commit

Permalink
feat(client-proton): This release adds support for deployment history…
Browse files Browse the repository at this point in the history
… for Proton provisioned resources
  • Loading branch information
awstools committed Jul 13, 2023
1 parent 9a4bb10 commit d1ec971
Show file tree
Hide file tree
Showing 46 changed files with 2,923 additions and 136 deletions.
24 changes: 24 additions & 0 deletions clients/client-proton/README.md
Expand Up @@ -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)

</details>
<details>
<summary>
DeleteDeployment
</summary>

[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)

</details>
<details>
<summary>
Expand Down Expand Up @@ -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)

</details>
<details>
<summary>
GetDeployment
</summary>

[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)

</details>
<details>
<summary>
Expand Down Expand Up @@ -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)

</details>
<details>
<summary>
ListDeployments
</summary>

[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)

</details>
<details>
<summary>
Expand Down
60 changes: 60 additions & 0 deletions clients/client-proton/src/Proton.ts
Expand Up @@ -92,6 +92,11 @@ import {
DeleteComponentCommandInput,
DeleteComponentCommandOutput,
} from "./commands/DeleteComponentCommand";
import {
DeleteDeploymentCommand,
DeleteDeploymentCommandInput,
DeleteDeploymentCommandOutput,
} from "./commands/DeleteDeploymentCommand";
import {
DeleteEnvironmentAccountConnectionCommand,
DeleteEnvironmentAccountConnectionCommandInput,
Expand Down Expand Up @@ -152,6 +157,11 @@ import {
GetComponentCommandInput,
GetComponentCommandOutput,
} from "./commands/GetComponentCommand";
import {
GetDeploymentCommand,
GetDeploymentCommandInput,
GetDeploymentCommandOutput,
} from "./commands/GetDeploymentCommand";
import {
GetEnvironmentAccountConnectionCommand,
GetEnvironmentAccountConnectionCommandInput,
Expand Down Expand Up @@ -243,6 +253,11 @@ import {
ListComponentsCommandInput,
ListComponentsCommandOutput,
} from "./commands/ListComponentsCommand";
import {
ListDeploymentsCommand,
ListDeploymentsCommandInput,
ListDeploymentsCommandOutput,
} from "./commands/ListDeploymentsCommand";
import {
ListEnvironmentAccountConnectionsCommand,
ListEnvironmentAccountConnectionsCommandInput,
Expand Down Expand Up @@ -435,6 +450,7 @@ const commands = {
CreateServiceTemplateVersionCommand,
CreateTemplateSyncConfigCommand,
DeleteComponentCommand,
DeleteDeploymentCommand,
DeleteEnvironmentCommand,
DeleteEnvironmentAccountConnectionCommand,
DeleteEnvironmentTemplateCommand,
Expand All @@ -447,6 +463,7 @@ const commands = {
DeleteTemplateSyncConfigCommand,
GetAccountSettingsCommand,
GetComponentCommand,
GetDeploymentCommand,
GetEnvironmentCommand,
GetEnvironmentAccountConnectionCommand,
GetEnvironmentTemplateCommand,
Expand All @@ -466,6 +483,7 @@ const commands = {
ListComponentOutputsCommand,
ListComponentProvisionedResourcesCommand,
ListComponentsCommand,
ListDeploymentsCommand,
ListEnvironmentAccountConnectionsCommand,
ListEnvironmentOutputsCommand,
ListEnvironmentProvisionedResourcesCommand,
Expand Down Expand Up @@ -798,6 +816,23 @@ export interface Proton {
cb: (err: any, data?: DeleteComponentCommandOutput) => void
): void;

/**
* @see {@link DeleteDeploymentCommand}
*/
deleteDeployment(
args: DeleteDeploymentCommandInput,
options?: __HttpHandlerOptions
): Promise<DeleteDeploymentCommandOutput>;
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}
*/
Expand Down Expand Up @@ -990,6 +1025,17 @@ export interface Proton {
cb: (err: any, data?: GetComponentCommandOutput) => void
): void;

/**
* @see {@link GetDeploymentCommand}
*/
getDeployment(args: GetDeploymentCommandInput, options?: __HttpHandlerOptions): Promise<GetDeploymentCommandOutput>;
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}
*/
Expand Down Expand Up @@ -1295,6 +1341,20 @@ export interface Proton {
cb: (err: any, data?: ListComponentsCommandOutput) => void
): void;

/**
* @see {@link ListDeploymentsCommand}
*/
listDeployments(
args: ListDeploymentsCommandInput,
options?: __HttpHandlerOptions
): Promise<ListDeploymentsCommandOutput>;
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}
*/
Expand Down
9 changes: 9 additions & 0 deletions clients/client-proton/src/ProtonClient.ts
Expand Up @@ -106,6 +106,7 @@ import {
CreateTemplateSyncConfigCommandOutput,
} from "./commands/CreateTemplateSyncConfigCommand";
import { DeleteComponentCommandInput, DeleteComponentCommandOutput } from "./commands/DeleteComponentCommand";
import { DeleteDeploymentCommandInput, DeleteDeploymentCommandOutput } from "./commands/DeleteDeploymentCommand";
import {
DeleteEnvironmentAccountConnectionCommandInput,
DeleteEnvironmentAccountConnectionCommandOutput,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -197,6 +199,7 @@ import {
ListComponentProvisionedResourcesCommandOutput,
} from "./commands/ListComponentProvisionedResourcesCommand";
import { ListComponentsCommandInput, ListComponentsCommandOutput } from "./commands/ListComponentsCommand";
import { ListDeploymentsCommandInput, ListDeploymentsCommandOutput } from "./commands/ListDeploymentsCommand";
import {
ListEnvironmentAccountConnectionsCommandInput,
ListEnvironmentAccountConnectionsCommandOutput,
Expand Down Expand Up @@ -345,6 +348,7 @@ export type ServiceInputTypes =
| CreateServiceTemplateVersionCommandInput
| CreateTemplateSyncConfigCommandInput
| DeleteComponentCommandInput
| DeleteDeploymentCommandInput
| DeleteEnvironmentAccountConnectionCommandInput
| DeleteEnvironmentCommandInput
| DeleteEnvironmentTemplateCommandInput
Expand All @@ -357,6 +361,7 @@ export type ServiceInputTypes =
| DeleteTemplateSyncConfigCommandInput
| GetAccountSettingsCommandInput
| GetComponentCommandInput
| GetDeploymentCommandInput
| GetEnvironmentAccountConnectionCommandInput
| GetEnvironmentCommandInput
| GetEnvironmentTemplateCommandInput
Expand All @@ -376,6 +381,7 @@ export type ServiceInputTypes =
| ListComponentOutputsCommandInput
| ListComponentProvisionedResourcesCommandInput
| ListComponentsCommandInput
| ListDeploymentsCommandInput
| ListEnvironmentAccountConnectionsCommandInput
| ListEnvironmentOutputsCommandInput
| ListEnvironmentProvisionedResourcesCommandInput
Expand Down Expand Up @@ -434,6 +440,7 @@ export type ServiceOutputTypes =
| CreateServiceTemplateVersionCommandOutput
| CreateTemplateSyncConfigCommandOutput
| DeleteComponentCommandOutput
| DeleteDeploymentCommandOutput
| DeleteEnvironmentAccountConnectionCommandOutput
| DeleteEnvironmentCommandOutput
| DeleteEnvironmentTemplateCommandOutput
Expand All @@ -446,6 +453,7 @@ export type ServiceOutputTypes =
| DeleteTemplateSyncConfigCommandOutput
| GetAccountSettingsCommandOutput
| GetComponentCommandOutput
| GetDeploymentCommandOutput
| GetEnvironmentAccountConnectionCommandOutput
| GetEnvironmentCommandOutput
| GetEnvironmentTemplateCommandOutput
Expand All @@ -465,6 +473,7 @@ export type ServiceOutputTypes =
| ListComponentOutputsCommandOutput
| ListComponentProvisionedResourcesCommandOutput
| ListComponentsCommandOutput
| ListDeploymentsCommandOutput
| ListEnvironmentAccountConnectionsCommandOutput
| ListEnvironmentOutputsCommandOutput
| ListEnvironmentProvisionedResourcesCommandOutput
Expand Down
Expand Up @@ -71,6 +71,8 @@ export interface CancelComponentDeploymentCommandOutput extends CancelComponentD
* // deploymentStatusMessage: "STRING_VALUE",
* // serviceSpec: "STRING_VALUE",
* // lastClientRequestToken: "STRING_VALUE",
* // lastAttemptedDeploymentId: "STRING_VALUE",
* // lastSucceededDeploymentId: "STRING_VALUE",
* // },
* // };
*
Expand Down
Expand Up @@ -93,6 +93,8 @@ export interface CancelEnvironmentDeploymentCommandOutput extends CancelEnvironm
* // },
* // componentRoleArn: "STRING_VALUE",
* // codebuildRoleArn: "STRING_VALUE",
* // lastAttemptedDeploymentId: "STRING_VALUE",
* // lastSucceededDeploymentId: "STRING_VALUE",
* // },
* // };
*
Expand Down
Expand Up @@ -92,6 +92,8 @@ export interface CancelServiceInstanceDeploymentCommandOutput
* // deploymentStatusMessage: "STRING_VALUE",
* // spec: "STRING_VALUE",
* // lastClientRequestToken: "STRING_VALUE",
* // lastAttemptedDeploymentId: "STRING_VALUE",
* // lastSucceededDeploymentId: "STRING_VALUE",
* // },
* // };
*
Expand Down
Expand Up @@ -87,6 +87,8 @@ export interface CancelServicePipelineDeploymentCommandOutput
* // deploymentStatus: "STRING_VALUE", // required
* // deploymentStatusMessage: "STRING_VALUE",
* // spec: "STRING_VALUE",
* // lastAttemptedDeploymentId: "STRING_VALUE",
* // lastSucceededDeploymentId: "STRING_VALUE",
* // },
* // };
*
Expand Down
2 changes: 2 additions & 0 deletions clients/client-proton/src/commands/CreateComponentCommand.ts
Expand Up @@ -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",
* // },
* // };
*
Expand Down
Expand Up @@ -114,6 +114,8 @@ export interface CreateEnvironmentCommandOutput extends CreateEnvironmentOutput,
* // },
* // componentRoleArn: "STRING_VALUE",
* // codebuildRoleArn: "STRING_VALUE",
* // lastAttemptedDeploymentId: "STRING_VALUE",
* // lastSucceededDeploymentId: "STRING_VALUE",
* // },
* // };
*
Expand Down
2 changes: 2 additions & 0 deletions clients/client-proton/src/commands/CreateServiceCommand.ts
Expand Up @@ -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",
Expand Down
Expand Up @@ -80,6 +80,8 @@ export interface CreateServiceInstanceCommandOutput extends CreateServiceInstanc
* // deploymentStatusMessage: "STRING_VALUE",
* // spec: "STRING_VALUE",
* // lastClientRequestToken: "STRING_VALUE",
* // lastAttemptedDeploymentId: "STRING_VALUE",
* // lastSucceededDeploymentId: "STRING_VALUE",
* // },
* // };
*
Expand Down
Expand Up @@ -36,14 +36,11 @@ export interface CreateTemplateSyncConfigCommandOutput extends CreateTemplateSyn

/**
* @public
* <p>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 <a>CreateRepository</a>.</p>
* <p>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
* <a href="https://docs.aws.amazon.com/proton/latest/userguide/ag-template-sync-configs.html">Template
* sync configurations</a> in the <i>Proton User Guide</i>.</p>
* <p>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 <a>CreateRepository</a>.</p>
* <p>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 <a href="https://docs.aws.amazon.com/proton/latest/userguide/ag-template-sync-configs.html">Template sync configurations</a> in the <i>Proton
* User Guide</i>.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
2 changes: 2 additions & 0 deletions clients/client-proton/src/commands/DeleteComponentCommand.ts
Expand Up @@ -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",
* // },
* // };
*
Expand Down

0 comments on commit d1ec971

Please sign in to comment.