ProtonClient

This is the Proton Service API Reference. It provides descriptions, syntax and usage examples for each of the actions and data types for the Proton service.

The documentation for each action shows the Query API request parameters and the XML response.

Alternatively, you can use the Amazon Web Services CLI to access an API. For more information, see the Amazon Web Services Command Line Interface User Guide.

The Proton service is a two-pronged automation framework. Administrators create service templates to provide standardized infrastructure and deployment tooling for serverless and container based applications. Developers, in turn, select from the available service templates to automate their application or service deployments.

Because administrators define the infrastructure and tooling that Proton deploys and manages, they need permissions to use all of the listed API operations.

When developers select a specific infrastructure and tooling set, Proton deploys their applications. To monitor their applications that are running on Proton, developers need permissions to the service create, list, update and delete API operations and the service instance list and update API operations.

To learn more about Proton, see the Proton User Guide.

Ensuring Idempotency

When you make a mutating API request, the request typically returns a result before the asynchronous workflows of the operation are complete. Operations might also time out or encounter other server issues before they're complete, even if the request already returned a result. This might make it difficult to determine whether the request succeeded. Moreover, you might need to retry the request multiple times to ensure that the operation completes successfully. However, if the original request and the subsequent retries are successful, the operation occurs multiple times. This means that you might create more resources than you intended.

Idempotency ensures that an API request action completes no more than one time. With an idempotent request, if the original request action completes successfully, any subsequent retries complete successfully without performing any further actions. However, the result might contain updated information, such as the current creation status.

The following lists of APIs are grouped according to methods that ensure idempotency.

Idempotent create APIs with a client token

The API actions in this list support idempotency with the use of a client token. The corresponding Amazon Web Services CLI commands also support idempotency using a client token. A client token is a unique, case-sensitive string of up to 64 ASCII characters. To make an idempotent API request using one of these actions, specify a client token in the request. We recommend that you don't reuse the same client token for other API requests. If you don’t provide a client token for these APIs, a default client token is automatically provided by SDKs.

Given a request action that has succeeded:

If you retry the request using the same client token and the same parameters, the retry succeeds without performing any further actions other than returning the original resource detail data in the response.

If you retry the request using the same client token, but one or more of the parameters are different, the retry throws a ValidationException with an IdempotentParameterMismatch error.

Client tokens expire eight hours after a request is made. If you retry the request with the expired token, a new resource is created.

If the original resource is deleted and you retry the request, a new resource is created.

Idempotent create APIs with a client token:

  • CreateEnvironmentTemplateVersion

  • CreateServiceTemplateVersion

  • CreateEnvironmentAccountConnection

Idempotent create APIs

Given a request action that has succeeded:

If you retry the request with an API from this group, and the original resource hasn't been modified, the retry succeeds without performing any further actions other than returning the original resource detail data in the response.

If the original resource has been modified, the retry throws a ConflictException.

If you retry with different input parameters, the retry throws a ValidationException with an IdempotentParameterMismatch error.

Idempotent create APIs:

  • CreateEnvironmentTemplate

  • CreateServiceTemplate

  • CreateEnvironment

  • CreateService

Idempotent delete APIs

Given a request action that has succeeded:

When you retry the request with an API from this group and the resource was deleted, its metadata is returned in the response.

If you retry and the resource doesn't exist, the response is empty.

In both cases, the retry succeeds.

Idempotent delete APIs:

  • DeleteEnvironmentTemplate

  • DeleteEnvironmentTemplateVersion

  • DeleteServiceTemplate

  • DeleteServiceTemplateVersion

  • DeleteEnvironmentAccountConnection

Asynchronous idempotent delete APIs

Given a request action that has succeeded:

If you retry the request with an API from this group, if the original request delete operation status is DELETE_IN_PROGRESS, the retry returns the resource detail data in the response without performing any further actions.

If the original request delete operation is complete, a retry returns an empty response.

Asynchronous idempotent delete APIs:

  • DeleteEnvironment

  • DeleteService

Properties

Link copied to clipboard
abstract override val config: ProtonClient.Config

ProtonClient's configuration

Functions

Link copied to clipboard

In a management account, an environment account connection request is accepted. When the environment account connection request is accepted, Proton can use the associated IAM role to provision environment infrastructure resources in the associated environment account.

Link copied to clipboard

Attempts to cancel a component deployment (for a component that is in the IN_PROGRESS deployment status).

Link copied to clipboard

Attempts to cancel an environment deployment on an UpdateEnvironment action, if the deployment is IN_PROGRESS. For more information, see Update an environment in the Proton User guide.

Link copied to clipboard

Attempts to cancel a service instance deployment on an UpdateServiceInstance action, if the deployment is IN_PROGRESS. For more information, see Update a service instance in the Proton User guide.

Link copied to clipboard

Attempts to cancel a service pipeline deployment on an UpdateServicePipeline action, if the deployment is IN_PROGRESS. For more information, see Update a service pipeline in the Proton User guide.

Link copied to clipboard

Create an Proton component. A component is an infrastructure extension for a service instance.

Link copied to clipboard

Deploy a new environment. An Proton environment is created from an environment template that defines infrastructure and resources that can be shared across services.

Link copied to clipboard

Create an environment account connection in an environment account so that environment infrastructure resources can be provisioned in the environment account from a management account.

Link copied to clipboard

Create an environment template for Proton. For more information, see Environment Templates in the Proton User Guide.

Link copied to clipboard

Create a new major or minor version of an environment template. A major version of an environment template is a version that isn't backwards compatible. A minor version of an environment template is a version that's backwards compatible within its major version.

Link copied to clipboard

Create and register a link to a repository. Proton uses the link to repeatedly access the repository, to either push to it (self-managed provisioning) or pull from it (template sync). You can share a linked repository across multiple resources (like environments using self-managed provisioning, or synced templates). When you create a repository link, Proton creates a service-linked role for you.

Link copied to clipboard

Create an Proton service. An Proton service is an instantiation of a service template and often includes several service instances and pipeline. For more information, see Services in the Proton User Guide.

Link copied to clipboard

Create a service instance.

Link copied to clipboard

Create the Proton Ops configuration file.

Link copied to clipboard

Create a service template. The administrator creates a service template to define standardized infrastructure and an optional CI/CD service pipeline. Developers, in turn, select the service template from Proton. If the selected service template includes a service pipeline definition, they provide a link to their source code repository. Proton then deploys and manages the infrastructure defined by the selected service template. For more information, see Proton templates in the Proton User Guide.

Link copied to clipboard

Create a new major or minor version of a service template. A major version of a service template is a version that isn't backward compatible. A minor version of a service template is a version that's backward compatible within its major version.

Link copied to clipboard

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.

Link copied to clipboard

Delete an Proton component resource.

Link copied to clipboard

Delete the deployment.

Link copied to clipboard

Delete an environment.

Link copied to clipboard

In an environment account, delete an environment account connection.

Link copied to clipboard

If no other major or minor versions of an environment template exist, delete the environment template.

Link copied to clipboard

If no other minor versions of an environment template exist, delete a major version of the environment template if it's not the Recommended version. Delete the Recommended version of the environment template if no other major versions or minor versions of the environment template exist. A major version of an environment template is a version that's not backward compatible.

Link copied to clipboard

De-register and unlink your repository.

Link copied to clipboard

Delete a service, with its instances and pipeline.

Link copied to clipboard

Delete the Proton Ops file.

Link copied to clipboard

If no other major or minor versions of the service template exist, delete the service template.

Link copied to clipboard

If no other minor versions of a service template exist, delete a major version of the service template if it's not the Recommended version. Delete the Recommended version of the service template if no other major versions or minor versions of the service template exist. A major version of a service template is a version that isn't backwards compatible.

Link copied to clipboard

Delete a template sync configuration.

Link copied to clipboard
abstract suspend fun getAccountSettings(input: GetAccountSettingsRequest = GetAccountSettingsRequest { }): GetAccountSettingsResponse

Get detail data for Proton account-wide settings.

Link copied to clipboard

Get detailed data for a component.

Link copied to clipboard

Get detailed data for a deployment.

Link copied to clipboard

Get detailed data for an environment.

Link copied to clipboard

In an environment account, get the detailed data for an environment account connection.

Link copied to clipboard

Get detailed data for an environment template.

Link copied to clipboard

Get detailed data for a major or minor version of an environment template.

Link copied to clipboard

Get detail data for a linked repository.

Link copied to clipboard

Get the sync status of a repository used for Proton template sync. For more information about template sync, see .

Link copied to clipboard
abstract suspend fun getResourcesSummary(input: GetResourcesSummaryRequest = GetResourcesSummaryRequest { }): GetResourcesSummaryResponse

Get counts of Proton resources.

Link copied to clipboard
abstract suspend fun getService(input: GetServiceRequest): GetServiceResponse

Get detailed data for a service.

Link copied to clipboard

Get detailed data for a service instance. A service instance is an instantiation of service template and it runs in a specific environment.

Link copied to clipboard

Get the status of the synced service instance.

Link copied to clipboard

Get detailed data for the service sync blocker summary.

Link copied to clipboard

Get detailed information for the service sync configuration.

Link copied to clipboard

Get detailed data for a service template.

Link copied to clipboard

Get detailed data for a major or minor version of a service template.

Link copied to clipboard

Get detail data for a template sync configuration.

Link copied to clipboard

Get the status of a template sync.

Link copied to clipboard

Get a list of component Infrastructure as Code (IaC) outputs.

Link copied to clipboard

List provisioned resources for a component with details.

Link copied to clipboard
abstract suspend fun listComponents(input: ListComponentsRequest = ListComponentsRequest { }): ListComponentsResponse

List components with summary data. You can filter the result list by environment, service, or a single service instance.

Link copied to clipboard
abstract suspend fun listDeployments(input: ListDeploymentsRequest = ListDeploymentsRequest { }): ListDeploymentsResponse

List deployments. You can filter the result list by environment, service, or a single service instance.

Link copied to clipboard

View a list of environment account connections.

Link copied to clipboard

List the infrastructure as code outputs for your environment.

Link copied to clipboard

List the provisioned resources for your environment.

Link copied to clipboard
abstract suspend fun listEnvironments(input: ListEnvironmentsRequest = ListEnvironmentsRequest { }): ListEnvironmentsResponse

List environments with detail data summaries.

Link copied to clipboard
abstract suspend fun listEnvironmentTemplates(input: ListEnvironmentTemplatesRequest = ListEnvironmentTemplatesRequest { }): ListEnvironmentTemplatesResponse

List environment templates.

Link copied to clipboard

List major or minor versions of an environment template with detail data.

Link copied to clipboard
abstract suspend fun listRepositories(input: ListRepositoriesRequest = ListRepositoriesRequest { }): ListRepositoriesResponse

List linked repositories with detail data.

Link copied to clipboard

List repository sync definitions with detail data.

Link copied to clipboard

Get a list service of instance Infrastructure as Code (IaC) outputs.

Link copied to clipboard

List provisioned resources for a service instance with details.

Link copied to clipboard
abstract suspend fun listServiceInstances(input: ListServiceInstancesRequest = ListServiceInstancesRequest { }): ListServiceInstancesResponse

List service instances with summary data. This action lists service instances of all services in the Amazon Web Services account.

Link copied to clipboard

Get a list of service pipeline Infrastructure as Code (IaC) outputs.

Link copied to clipboard

List provisioned resources for a service and pipeline with details.

Link copied to clipboard
abstract suspend fun listServices(input: ListServicesRequest = ListServicesRequest { }): ListServicesResponse

List services with summaries of detail data.

Link copied to clipboard
abstract suspend fun listServiceTemplates(input: ListServiceTemplatesRequest = ListServiceTemplatesRequest { }): ListServiceTemplatesResponse

List service templates with detail data.

Link copied to clipboard

List major or minor versions of a service template with detail data.

Link copied to clipboard

List tags for a resource. For more information, see Proton resources and tagging in the Proton User Guide.

Link copied to clipboard

Notify Proton of status changes to a provisioned resource when you use self-managed provisioning.

Link copied to clipboard

In a management account, reject an environment account connection from another environment account.

Link copied to clipboard
abstract suspend fun tagResource(input: TagResourceRequest): TagResourceResponse

Tag a resource. A tag is a key-value pair of metadata that you associate with an Proton resource.

Link copied to clipboard

Remove a customer tag from a resource. A tag is a key-value pair of metadata associated with an Proton resource.

Link copied to clipboard
abstract suspend fun updateAccountSettings(input: UpdateAccountSettingsRequest = UpdateAccountSettingsRequest { }): UpdateAccountSettingsResponse

Update Proton settings that are used for multiple services in the Amazon Web Services account.

Link copied to clipboard

Update a component.

Link copied to clipboard

Update an environment.

Link copied to clipboard

In an environment account, update an environment account connection to use a new IAM role.

Link copied to clipboard

Update an environment template.

Link copied to clipboard

Update a major or minor version of an environment template.

Link copied to clipboard

Edit a service description or use a spec to add and delete service instances.

Link copied to clipboard

Update a service instance.

Link copied to clipboard

Update the service pipeline.

Link copied to clipboard

Update the service sync blocker by resolving it.

Link copied to clipboard

Update the Proton Ops config file.

Link copied to clipboard

Update a service template.

Link copied to clipboard

Update a major or minor version of a service template.

Link copied to clipboard

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.

Inherited functions

Link copied to clipboard

In a management account, an environment account connection request is accepted. When the environment account connection request is accepted, Proton can use the associated IAM role to provision environment infrastructure resources in the associated environment account.

Link copied to clipboard

Attempts to cancel a component deployment (for a component that is in the IN_PROGRESS deployment status).

Link copied to clipboard

Attempts to cancel an environment deployment on an UpdateEnvironment action, if the deployment is IN_PROGRESS. For more information, see Update an environment in the Proton User guide.

Link copied to clipboard

Attempts to cancel a service instance deployment on an UpdateServiceInstance action, if the deployment is IN_PROGRESS. For more information, see Update a service instance in the Proton User guide.

Link copied to clipboard

Attempts to cancel a service pipeline deployment on an UpdateServicePipeline action, if the deployment is IN_PROGRESS. For more information, see Update a service pipeline in the Proton User guide.

Link copied to clipboard
expect abstract fun close()
Link copied to clipboard

Create an Proton component. A component is an infrastructure extension for a service instance.

Link copied to clipboard

Deploy a new environment. An Proton environment is created from an environment template that defines infrastructure and resources that can be shared across services.

Link copied to clipboard

Create an environment account connection in an environment account so that environment infrastructure resources can be provisioned in the environment account from a management account.

Link copied to clipboard

Create an environment template for Proton. For more information, see Environment Templates in the Proton User Guide.

Link copied to clipboard

Create a new major or minor version of an environment template. A major version of an environment template is a version that isn't backwards compatible. A minor version of an environment template is a version that's backwards compatible within its major version.

Link copied to clipboard

Create and register a link to a repository. Proton uses the link to repeatedly access the repository, to either push to it (self-managed provisioning) or pull from it (template sync). You can share a linked repository across multiple resources (like environments using self-managed provisioning, or synced templates). When you create a repository link, Proton creates a service-linked role for you.

Link copied to clipboard

Create an Proton service. An Proton service is an instantiation of a service template and often includes several service instances and pipeline. For more information, see Services in the Proton User Guide.

Link copied to clipboard

Create a service instance.

Link copied to clipboard

Create the Proton Ops configuration file.

Link copied to clipboard

Create a service template. The administrator creates a service template to define standardized infrastructure and an optional CI/CD service pipeline. Developers, in turn, select the service template from Proton. If the selected service template includes a service pipeline definition, they provide a link to their source code repository. Proton then deploys and manages the infrastructure defined by the selected service template. For more information, see Proton templates in the Proton User Guide.

Link copied to clipboard

Create a new major or minor version of a service template. A major version of a service template is a version that isn't backward compatible. A minor version of a service template is a version that's backward compatible within its major version.

Link copied to clipboard

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.

Link copied to clipboard

Delete an Proton component resource.

Link copied to clipboard

Delete the deployment.

Link copied to clipboard

Delete an environment.

Link copied to clipboard

In an environment account, delete an environment account connection.

Link copied to clipboard

If no other major or minor versions of an environment template exist, delete the environment template.

Link copied to clipboard

If no other minor versions of an environment template exist, delete a major version of the environment template if it's not the Recommended version. Delete the Recommended version of the environment template if no other major versions or minor versions of the environment template exist. A major version of an environment template is a version that's not backward compatible.

Link copied to clipboard

De-register and unlink your repository.

Link copied to clipboard

Delete a service, with its instances and pipeline.

Link copied to clipboard

Delete the Proton Ops file.

Link copied to clipboard

If no other major or minor versions of the service template exist, delete the service template.

Link copied to clipboard

If no other minor versions of a service template exist, delete a major version of the service template if it's not the Recommended version. Delete the Recommended version of the service template if no other major versions or minor versions of the service template exist. A major version of a service template is a version that isn't backwards compatible.

Link copied to clipboard

Delete a template sync configuration.

Link copied to clipboard

Get detail data for Proton account-wide settings.

Link copied to clipboard
inline suspend fun ProtonClient.getComponent(crossinline block: GetComponentRequest.Builder.() -> Unit): GetComponentResponse

Get detailed data for a component.

Link copied to clipboard

Get detailed data for a deployment.

Link copied to clipboard

Get detailed data for an environment.

Link copied to clipboard

In an environment account, get the detailed data for an environment account connection.

Link copied to clipboard

Get detailed data for an environment template.

Link copied to clipboard

Get detailed data for a major or minor version of an environment template.

Link copied to clipboard

Get detail data for a linked repository.

Link copied to clipboard

Get the sync status of a repository used for Proton template sync. For more information about template sync, see .

Link copied to clipboard

Get counts of Proton resources.

Link copied to clipboard
inline suspend fun ProtonClient.getService(crossinline block: GetServiceRequest.Builder.() -> Unit): GetServiceResponse

Get detailed data for a service.

Link copied to clipboard

Get detailed data for a service instance. A service instance is an instantiation of service template and it runs in a specific environment.

Link copied to clipboard

Get the status of the synced service instance.

Link copied to clipboard

Get detailed data for the service sync blocker summary.

Link copied to clipboard

Get detailed information for the service sync configuration.

Link copied to clipboard

Get detailed data for a service template.

Link copied to clipboard

Get detailed data for a major or minor version of a service template.

Link copied to clipboard

Get detail data for a template sync configuration.

Link copied to clipboard

Get the status of a template sync.

Link copied to clipboard

Get a list of component Infrastructure as Code (IaC) outputs.

Link copied to clipboard

List provisioned resources for a component with details.

Link copied to clipboard

List components with summary data. You can filter the result list by environment, service, or a single service instance.

Link copied to clipboard

List deployments. You can filter the result list by environment, service, or a single service instance.

Link copied to clipboard

View a list of environment account connections.

Link copied to clipboard

List the infrastructure as code outputs for your environment.

Link copied to clipboard

List the provisioned resources for your environment.

Link copied to clipboard

List environments with detail data summaries.

Link copied to clipboard

List environment templates.

Link copied to clipboard

List major or minor versions of an environment template with detail data.

Link copied to clipboard

List linked repositories with detail data.

Link copied to clipboard

List repository sync definitions with detail data.

Link copied to clipboard

Get a list service of instance Infrastructure as Code (IaC) outputs.

Link copied to clipboard

List provisioned resources for a service instance with details.

Link copied to clipboard

List service instances with summary data. This action lists service instances of all services in the Amazon Web Services account.

Link copied to clipboard

Get a list of service pipeline Infrastructure as Code (IaC) outputs.

Link copied to clipboard

List provisioned resources for a service and pipeline with details.

Link copied to clipboard
inline suspend fun ProtonClient.listServices(crossinline block: ListServicesRequest.Builder.() -> Unit): ListServicesResponse

List services with summaries of detail data.

Link copied to clipboard
Link copied to clipboard

List service templates with detail data.

Link copied to clipboard

List major or minor versions of a service template with detail data.

Link copied to clipboard

List tags for a resource. For more information, see Proton resources and tagging in the Proton User Guide.

Link copied to clipboard

Notify Proton of status changes to a provisioned resource when you use self-managed provisioning.

Link copied to clipboard

In a management account, reject an environment account connection from another environment account.

Link copied to clipboard
inline suspend fun ProtonClient.tagResource(crossinline block: TagResourceRequest.Builder.() -> Unit): TagResourceResponse

Tag a resource. A tag is a key-value pair of metadata that you associate with an Proton resource.

Link copied to clipboard

Remove a customer tag from a resource. A tag is a key-value pair of metadata associated with an Proton resource.

Link copied to clipboard

Update Proton settings that are used for multiple services in the Amazon Web Services account.

Link copied to clipboard

Update a component.

Link copied to clipboard

Update an environment.

Link copied to clipboard

In an environment account, update an environment account connection to use a new IAM role.

Link copied to clipboard

Update an environment template.

Link copied to clipboard

Update a major or minor version of an environment template.

Link copied to clipboard

Edit a service description or use a spec to add and delete service instances.

Link copied to clipboard

Update a service instance.

Link copied to clipboard

Update the service pipeline.

Link copied to clipboard

Update the service sync blocker by resolving it.

Link copied to clipboard

Update the Proton Ops config file.

Link copied to clipboard

Update a service template.

Link copied to clipboard

Update a major or minor version of a service template.

Link copied to clipboard

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.

Link copied to clipboard

Wait until a Component is deleted. Use this after invoking DeleteComponent

Link copied to clipboard

Wait until a Component is deployed. Use this after invoking CreateComponent or UpdateComponent

Link copied to clipboard

Wait until an Environment is deployed. Use this after invoking CreateEnvironment or UpdateEnvironment

Link copied to clipboard

Wait until an Service has deployed its instances and possibly pipeline. Use this after invoking CreateService

Link copied to clipboard

Wait until a Service, its instances, and possibly pipeline have been deleted after DeleteService is invoked

Link copied to clipboard

Wait until a ServiceInstance is deployed. Use this after invoking CreateService or UpdateServiceInstance

Link copied to clipboard

Wait until an ServicePipeline is deployed. Use this after invoking CreateService or UpdateServicePipeline

Wait until a ServiceTemplateVersion is registered. Use this after invoking CreateServiceTemplateVersion

Link copied to clipboard

Wait until a Service, its instances, and possibly pipeline have been deployed after UpdateService is invoked

Link copied to clipboard

Create a copy of the client with one or more configuration values overridden. This method allows the caller to perform scoped config overrides for one or more client operations.