Class: AWS.Proton
- Inherits:
-
AWS.Service
- Object
- AWS.Service
- AWS.Proton
- Identifier:
- proton
- API Version:
- 2020-07-20
- Defined in:
- (unknown)
Overview
Constructs a service interface object. Each API operation is exposed as a function on service.
Service Description
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
Sending a Request Using Proton
var proton = new AWS.Proton();
proton.acceptEnvironmentAccountConnection(params, function (err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Locking the API Version
In order to ensure that the Proton object uses this specific API, you can
construct the object by passing the apiVersion
option to the constructor:
var proton = new AWS.Proton({apiVersion: '2020-07-20'});
You can also set the API version globally in AWS.config.apiVersions
using
the proton service identifier:
AWS.config.apiVersions = {
proton: '2020-07-20',
// other service API versions
};
var proton = new AWS.Proton();
Version:
-
2020-07-20
Waiter Resource States
This service supports a list of resource states that can be polled using the waitFor() method. The resource states are:
componentDeleted, componentDeployed, environmentDeployed, environmentTemplateVersionRegistered, serviceCreated, serviceDeleted, serviceInstanceDeployed, servicePipelineDeployed, serviceTemplateVersionRegistered, serviceUpdated
Constructor Summary collapse
-
new AWS.Proton(options = {}) ⇒ Object
constructor
Constructs a service object.
Property Summary collapse
-
endpoint ⇒ AWS.Endpoint
readwrite
An Endpoint object representing the endpoint URL for service requests.
Properties inherited from AWS.Service
Method Summary collapse
-
acceptEnvironmentAccountConnection(params = {}, callback) ⇒ AWS.Request
In a management account, an environment account connection request is accepted.
-
cancelComponentDeployment(params = {}, callback) ⇒ AWS.Request
Attempts to cancel a component deployment (for a component that is in the
IN_PROGRESS
deployment status).For more information about components, see Proton components in the Proton User Guide.
. -
cancelEnvironmentDeployment(params = {}, callback) ⇒ AWS.Request
Attempts to cancel an environment deployment on an UpdateEnvironment action, if the deployment is
IN_PROGRESS
. -
cancelServiceInstanceDeployment(params = {}, callback) ⇒ AWS.Request
Attempts to cancel a service instance deployment on an UpdateServiceInstance action, if the deployment is
IN_PROGRESS
. -
cancelServicePipelineDeployment(params = {}, callback) ⇒ AWS.Request
Attempts to cancel a service pipeline deployment on an UpdateServicePipeline action, if the deployment is
IN_PROGRESS
. -
createComponent(params = {}, callback) ⇒ AWS.Request
Create an Proton component.
-
createEnvironment(params = {}, callback) ⇒ AWS.Request
Deploy a new environment.
-
createEnvironmentAccountConnection(params = {}, callback) ⇒ AWS.Request
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.
An environment account connection is a secure bi-directional connection between a management account and an environment account that maintains authorization and permissions.
-
createEnvironmentTemplate(params = {}, callback) ⇒ AWS.Request
Create an environment template for Proton.
-
createEnvironmentTemplateVersion(params = {}, callback) ⇒ AWS.Request
Create a new major or minor version of an environment template.
-
createRepository(params = {}, callback) ⇒ AWS.Request
Create and register a link to a repository.
-
createService(params = {}, callback) ⇒ AWS.Request
Create an Proton service.
-
createServiceInstance(params = {}, callback) ⇒ AWS.Request
Create a service instance.
.
-
createServiceSyncConfig(params = {}, callback) ⇒ AWS.Request
Create the Proton Ops configuration file.
.
-
createServiceTemplate(params = {}, callback) ⇒ AWS.Request
Create a service template.
-
createServiceTemplateVersion(params = {}, callback) ⇒ AWS.Request
Create a new major or minor version of a service template.
-
createTemplateSyncConfig(params = {}, callback) ⇒ AWS.Request
Set up a template to create new template versions automatically by tracking a linked repository.
-
deleteComponent(params = {}, callback) ⇒ AWS.Request
Delete an Proton component resource.
For more information about components, see Proton components in the Proton User Guide.
. -
deleteDeployment(params = {}, callback) ⇒ AWS.Request
Delete the deployment.
.
-
deleteEnvironment(params = {}, callback) ⇒ AWS.Request
Delete an environment.
.
-
deleteEnvironmentAccountConnection(params = {}, callback) ⇒ AWS.Request
In an environment account, delete an environment account connection.
After you delete an environment account connection that’s in use by an Proton environment, Proton can’t manage the environment infrastructure resources until a new environment account connection is accepted for the environment account and associated environment.
-
deleteEnvironmentTemplate(params = {}, callback) ⇒ AWS.Request
If no other major or minor versions of an environment template exist, delete the environment template.
.
-
deleteEnvironmentTemplateVersion(params = {}, callback) ⇒ AWS.Request
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. -
deleteRepository(params = {}, callback) ⇒ AWS.Request
De-register and unlink your repository.
.
-
deleteService(params = {}, callback) ⇒ AWS.Request
Delete a service, with its instances and pipeline.
Note: You can't delete a service if it has any service instances that have components attached to them.- deleteServiceSyncConfig(params = {}, callback) ⇒ AWS.Request
Delete the Proton Ops file.
.
- deleteServiceTemplate(params = {}, callback) ⇒ AWS.Request
If no other major or minor versions of the service template exist, delete the service template.
.
- deleteServiceTemplateVersion(params = {}, callback) ⇒ AWS.Request
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.- deleteTemplateSyncConfig(params = {}, callback) ⇒ AWS.Request
Delete a template sync configuration.
.
- getAccountSettings(params = {}, callback) ⇒ AWS.Request
Get detail data for Proton account-wide settings.
.
- getComponent(params = {}, callback) ⇒ AWS.Request
Get detailed data for a component.
For more information about components, see Proton components in the Proton User Guide.
.- getDeployment(params = {}, callback) ⇒ AWS.Request
Get detailed data for a deployment.
.
- getEnvironment(params = {}, callback) ⇒ AWS.Request
Get detailed data for an environment.
.
- getEnvironmentAccountConnection(params = {}, callback) ⇒ AWS.Request
In an environment account, get the detailed data for an environment account connection.
For more information, see Environment account connections in the Proton User guide.
.- getEnvironmentTemplate(params = {}, callback) ⇒ AWS.Request
Get detailed data for an environment template.
.
- getEnvironmentTemplateVersion(params = {}, callback) ⇒ AWS.Request
Get detailed data for a major or minor version of an environment template.
.
- getRepository(params = {}, callback) ⇒ AWS.Request
Get detail data for a linked repository.
.
- getRepositorySyncStatus(params = {}, callback) ⇒ AWS.Request
Get the sync status of a repository used for Proton template sync.
- getResourcesSummary(params = {}, callback) ⇒ AWS.Request
Get counts of Proton resources.
For infrastructure-provisioning resources (environments, services, service instances, pipelines), the action returns staleness counts.
- getService(params = {}, callback) ⇒ AWS.Request
Get detailed data for a service.
.
- getServiceInstance(params = {}, callback) ⇒ AWS.Request
Get detailed data for a service instance.
- getServiceInstanceSyncStatus(params = {}, callback) ⇒ AWS.Request
Get the status of the synced service instance.
.
- getServiceSyncBlockerSummary(params = {}, callback) ⇒ AWS.Request
Get detailed data for the service sync blocker summary.
.
- getServiceSyncConfig(params = {}, callback) ⇒ AWS.Request
Get detailed information for the service sync configuration.
.
- getServiceTemplate(params = {}, callback) ⇒ AWS.Request
Get detailed data for a service template.
.
- getServiceTemplateVersion(params = {}, callback) ⇒ AWS.Request
Get detailed data for a major or minor version of a service template.
.
- getTemplateSyncConfig(params = {}, callback) ⇒ AWS.Request
Get detail data for a template sync configuration.
.
- getTemplateSyncStatus(params = {}, callback) ⇒ AWS.Request
Get the status of a template sync.
.
- listComponentOutputs(params = {}, callback) ⇒ AWS.Request
Get a list of component Infrastructure as Code (IaC) outputs.
For more information about components, see Proton components in the Proton User Guide.
.- listComponentProvisionedResources(params = {}, callback) ⇒ AWS.Request
List provisioned resources for a component with details.
For more information about components, see Proton components in the Proton User Guide.
.- listComponents(params = {}, callback) ⇒ AWS.Request
List components with summary data.
- listDeployments(params = {}, callback) ⇒ AWS.Request
List deployments.
- listEnvironmentAccountConnections(params = {}, callback) ⇒ AWS.Request
View a list of environment account connections.
For more information, see Environment account connections in the Proton User guide.
.- listEnvironmentOutputs(params = {}, callback) ⇒ AWS.Request
List the infrastructure as code outputs for your environment.
.
- listEnvironmentProvisionedResources(params = {}, callback) ⇒ AWS.Request
List the provisioned resources for your environment.
.
- listEnvironments(params = {}, callback) ⇒ AWS.Request
List environments with detail data summaries.
.
- listEnvironmentTemplates(params = {}, callback) ⇒ AWS.Request
List environment templates.
.
- listEnvironmentTemplateVersions(params = {}, callback) ⇒ AWS.Request
List major or minor versions of an environment template with detail data.
.
- listRepositories(params = {}, callback) ⇒ AWS.Request
List linked repositories with detail data.
.
- listRepositorySyncDefinitions(params = {}, callback) ⇒ AWS.Request
List repository sync definitions with detail data.
.
- listServiceInstanceOutputs(params = {}, callback) ⇒ AWS.Request
Get a list service of instance Infrastructure as Code (IaC) outputs.
.
- listServiceInstanceProvisionedResources(params = {}, callback) ⇒ AWS.Request
List provisioned resources for a service instance with details.
.
- listServiceInstances(params = {}, callback) ⇒ AWS.Request
List service instances with summary data.
- listServicePipelineOutputs(params = {}, callback) ⇒ AWS.Request
Get a list of service pipeline Infrastructure as Code (IaC) outputs.
.
- listServicePipelineProvisionedResources(params = {}, callback) ⇒ AWS.Request
List provisioned resources for a service and pipeline with details.
.
- listServices(params = {}, callback) ⇒ AWS.Request
List services with summaries of detail data.
.
- listServiceTemplates(params = {}, callback) ⇒ AWS.Request
List service templates with detail data.
.
- listServiceTemplateVersions(params = {}, callback) ⇒ AWS.Request
List major or minor versions of a service template with detail data.
.
- listTagsForResource(params = {}, callback) ⇒ AWS.Request
List tags for a resource.
- notifyResourceDeploymentStatusChange(params = {}, callback) ⇒ AWS.Request
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.
.- rejectEnvironmentAccountConnection(params = {}, callback) ⇒ AWS.Request
In a management account, reject an environment account connection from another environment account.
After you reject an environment account connection request, you can't accept or use the rejected environment account connection.
You can’t reject an environment account connection that's connected to an environment.
For more information, see Environment account connections in the Proton User guide.
.- tagResource(params = {}, callback) ⇒ AWS.Request
Tag a resource.
- untagResource(params = {}, callback) ⇒ AWS.Request
Remove a customer tag from a resource.
- updateAccountSettings(params = {}, callback) ⇒ AWS.Request
Update Proton settings that are used for multiple services in the Amazon Web Services account.
.
- updateComponent(params = {}, callback) ⇒ AWS.Request
Update a component.
There are a few modes for updating a component.
- updateEnvironment(params = {}, callback) ⇒ AWS.Request
Update an environment.
If the environment is associated with an environment account connection, don't update or include the
protonServiceRoleArn
andprovisioningRepository
parameter to update or connect to an environment account connection.You can only update to a new environment account connection if that connection was created in the same environment account that the current environment account connection was created in.
- updateEnvironmentAccountConnection(params = {}, callback) ⇒ AWS.Request
In an environment account, update an environment account connection to use a new IAM role.
For more information, see Environment account connections in the Proton User guide.
.- updateEnvironmentTemplate(params = {}, callback) ⇒ AWS.Request
Update an environment template.
.
- updateEnvironmentTemplateVersion(params = {}, callback) ⇒ AWS.Request
Update a major or minor version of an environment template.
.
- updateService(params = {}, callback) ⇒ AWS.Request
Edit a service description or use a spec to add and delete service instances.
Note: Existing service instances and the service pipeline can't be edited using this API.- updateServiceInstance(params = {}, callback) ⇒ AWS.Request
Update a service instance.
There are a few modes for updating a service instance.
- updateServicePipeline(params = {}, callback) ⇒ AWS.Request
Update the service pipeline.
There are four modes for updating a service pipeline.
- updateServiceSyncBlocker(params = {}, callback) ⇒ AWS.Request
Update the service sync blocker by resolving it.
.
- updateServiceSyncConfig(params = {}, callback) ⇒ AWS.Request
Update the Proton Ops config file.
.
- updateServiceTemplate(params = {}, callback) ⇒ AWS.Request
Update a service template.
.
- updateServiceTemplateVersion(params = {}, callback) ⇒ AWS.Request
Update a major or minor version of a service template.
.
- updateTemplateSyncConfig(params = {}, callback) ⇒ AWS.Request
Update template sync configuration parameters, except for the
templateName
andtemplateType
.- waitFor(state, params = {}, callback) ⇒ AWS.Request
Waits for a given Proton resource.
Methods inherited from AWS.Service
makeRequest, makeUnauthenticatedRequest, setupRequestListeners, defineService
Constructor Details
new AWS.Proton(options = {}) ⇒ Object
Constructs a service object. This object has one method for each API operation.
Examples:
Constructing a Proton object
var proton = new AWS.Proton({apiVersion: '2020-07-20'});
Options Hash (options):
-
params
(map)
—
An optional map of parameters to bind to every request sent by this service object. For more information on bound parameters, see "Working with Services" in the Getting Started Guide.
-
endpoint
(String|AWS.Endpoint)
—
The endpoint URI to send requests to. The default endpoint is built from the configured
region
. The endpoint should be a string like'https://{service}.{region}.amazonaws.com'
or an Endpoint object. -
accessKeyId
(String)
—
your AWS access key ID.
-
secretAccessKey
(String)
—
your AWS secret access key.
-
sessionToken
(AWS.Credentials)
—
the optional AWS session token to sign requests with.
-
credentials
(AWS.Credentials)
—
the AWS credentials to sign requests with. You can either specify this object, or specify the accessKeyId and secretAccessKey options directly.
-
credentialProvider
(AWS.CredentialProviderChain)
—
the provider chain used to resolve credentials if no static
credentials
property is set. -
region
(String)
—
the region to send service requests to. See AWS.Proton.region for more information.
-
maxRetries
(Integer)
—
the maximum amount of retries to attempt with a request. See AWS.Proton.maxRetries for more information.
-
maxRedirects
(Integer)
—
the maximum amount of redirects to follow with a request. See AWS.Proton.maxRedirects for more information.
-
sslEnabled
(Boolean)
—
whether to enable SSL for requests.
-
paramValidation
(Boolean|map)
—
whether input parameters should be validated against the operation description before sending the request. Defaults to true. Pass a map to enable any of the following specific validation features:
- min [Boolean] — Validates that a value meets the min
constraint. This is enabled by default when paramValidation is set
to
true
. - max [Boolean] — Validates that a value meets the max constraint.
- pattern [Boolean] — Validates that a string value matches a regular expression.
- enum [Boolean] — Validates that a string value matches one of the allowable enum values.
- min [Boolean] — Validates that a value meets the min
constraint. This is enabled by default when paramValidation is set
to
-
computeChecksums
(Boolean)
—
whether to compute checksums for payload bodies when the service accepts it (currently supported in S3 only)
-
convertResponseTypes
(Boolean)
—
whether types are converted when parsing response data. Currently only supported for JSON based services. Turning this off may improve performance on large response payloads. Defaults to
true
. -
correctClockSkew
(Boolean)
—
whether to apply a clock skew correction and retry requests that fail because of an skewed client clock. Defaults to
false
. -
s3ForcePathStyle
(Boolean)
—
whether to force path style URLs for S3 objects.
-
s3BucketEndpoint
(Boolean)
—
whether the provided endpoint addresses an individual bucket (false if it addresses the root API endpoint). Note that setting this configuration option requires an
endpoint
to be provided explicitly to the service constructor. -
s3DisableBodySigning
(Boolean)
—
whether S3 body signing should be disabled when using signature version
v4
. Body signing can only be disabled when using https. Defaults totrue
. -
s3UsEast1RegionalEndpoint
('legacy'|'regional')
—
when region is set to 'us-east-1', whether to send s3 request to global endpoints or 'us-east-1' regional endpoints. This config is only applicable to S3 client. Defaults to
legacy
-
s3UseArnRegion
(Boolean)
—
whether to override the request region with the region inferred from requested resource's ARN. Only available for S3 buckets Defaults to
true
-
retryDelayOptions
(map)
—
A set of options to configure the retry delay on retryable errors. Currently supported options are:
- base [Integer] — The base number of milliseconds to use in the exponential backoff for operation retries. Defaults to 100 ms for all services except DynamoDB, where it defaults to 50ms.
- customBackoff [function] — A custom function that accepts a
retry count and error and returns the amount of time to delay in
milliseconds. If the result is a non-zero negative value, no further
retry attempts will be made. The
base
option will be ignored if this option is supplied. The function is only called for retryable errors.
-
httpOptions
(map)
—
A set of options to pass to the low-level HTTP request. Currently supported options are:
- proxy [String] — the URL to proxy requests through
- agent [http.Agent, https.Agent] — the Agent object to perform
HTTP requests with. Used for connection pooling. Defaults to the global
agent (
http.globalAgent
) for non-SSL connections. Note that for SSL connections, a special Agent object is used in order to enable peer certificate verification. This feature is only available in the Node.js environment. - connectTimeout [Integer] — Sets the socket to timeout after
failing to establish a connection with the server after
connectTimeout
milliseconds. This timeout has no effect once a socket connection has been established. - timeout [Integer] — Sets the socket to timeout after timeout milliseconds of inactivity on the socket. Defaults to two minutes (120000).
- xhrAsync [Boolean] — Whether the SDK will send asynchronous HTTP requests. Used in the browser environment only. Set to false to send requests synchronously. Defaults to true (async on).
- xhrWithCredentials [Boolean] — Sets the "withCredentials" property of an XMLHttpRequest object. Used in the browser environment only. Defaults to false.
-
apiVersion
(String, Date)
—
a String in YYYY-MM-DD format (or a date) that represents the latest possible API version that can be used in all services (unless overridden by
apiVersions
). Specify 'latest' to use the latest possible version. -
apiVersions
(map<String, String|Date>)
—
a map of service identifiers (the lowercase service class name) with the API version to use when instantiating a service. Specify 'latest' for each individual that can use the latest available version.
-
logger
(#write, #log)
—
an object that responds to .write() (like a stream) or .log() (like the console object) in order to log information about requests
-
systemClockOffset
(Number)
—
an offset value in milliseconds to apply to all signing times. Use this to compensate for clock skew when your system may be out of sync with the service time. Note that this configuration option can only be applied to the global
AWS.config
object and cannot be overridden in service-specific configuration. Defaults to 0 milliseconds. -
signatureVersion
(String)
—
the signature version to sign requests with (overriding the API configuration). Possible values are: 'v2', 'v3', 'v4'.
-
signatureCache
(Boolean)
—
whether the signature to sign requests with (overriding the API configuration) is cached. Only applies to the signature version 'v4'. Defaults to
true
. -
dynamoDbCrc32
(Boolean)
—
whether to validate the CRC32 checksum of HTTP response bodies returned by DynamoDB. Default:
true
. -
useAccelerateEndpoint
(Boolean)
—
Whether to use the S3 Transfer Acceleration endpoint with the S3 service. Default:
false
. -
clientSideMonitoring
(Boolean)
—
whether to collect and publish this client's performance metrics of all its API requests.
-
endpointDiscoveryEnabled
(Boolean|undefined)
—
whether to call operations with endpoints given by service dynamically. Setting this
-
endpointCacheSize
(Number)
—
the size of the global cache storing endpoints from endpoint discovery operations. Once endpoint cache is created, updating this setting cannot change existing cache size. Defaults to 1000
-
hostPrefixEnabled
(Boolean)
—
whether to marshal request parameters to the prefix of hostname. Defaults to
true
. -
stsRegionalEndpoints
('legacy'|'regional')
—
whether to send sts request to global endpoints or regional endpoints. Defaults to 'legacy'.
-
useFipsEndpoint
(Boolean)
—
Enables FIPS compatible endpoints. Defaults to
false
. -
useDualstackEndpoint
(Boolean)
—
Enables IPv6 dualstack endpoint. Defaults to
false
.
Property Details
Method Details
acceptEnvironmentAccountConnection(params = {}, callback) ⇒ AWS.Request
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.
For more information, see Environment account connections in the Proton User guide.
Service Reference:
Examples:
Calling the acceptEnvironmentAccountConnection operation
var params = { id: 'STRING_VALUE' /* required */ }; proton.acceptEnvironmentAccountConnection(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
id
— (String
)The ID of the environment account connection.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:environmentAccountConnection
— (map
)The environment account connection data that's returned by Proton.
arn
— required — (String
)The Amazon Resource Name (ARN) of the environment account connection.
codebuildRoleArn
— (String
)The Amazon Resource Name (ARN) of an IAM service role in the environment account. Proton uses this role to provision infrastructure resources using CodeBuild-based provisioning in the associated environment account.
componentRoleArn
— (String
)The Amazon Resource Name (ARN) of the IAM service role that Proton uses when provisioning directly defined components in the associated environment account. It determines the scope of infrastructure that a component can provision in the account.
The environment account connection must have a
componentRoleArn
to allow directly defined components to be associated with any environments running in the account.For more information about components, see Proton components in the Proton User Guide.
environmentAccountId
— required — (String
)The environment account that's connected to the environment account connection.
environmentName
— required — (String
)The name of the environment that's associated with the environment account connection.
id
— required — (String
)The ID of the environment account connection.
lastModifiedAt
— required — (Date
)The time when the environment account connection was last modified.
managementAccountId
— required — (String
)The ID of the management account that's connected to the environment account connection.
requestedAt
— required — (Date
)The time when the environment account connection request was made.
roleArn
— required — (String
)The IAM service role that's associated with the environment account connection.
status
— required — (String
)The status of the environment account connection.
Possible values include:"PENDING"
"CONNECTED"
"REJECTED"
-
(AWS.Response)
—
Returns:
cancelComponentDeployment(params = {}, callback) ⇒ AWS.Request
Attempts to cancel a component deployment (for a component that is in the
IN_PROGRESS
deployment status).For more information about components, see Proton components in the Proton User Guide.
Service Reference:
Examples:
Calling the cancelComponentDeployment operation
var params = { componentName: 'STRING_VALUE' /* required */ }; proton.cancelComponentDeployment(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
componentName
— (String
)The name of the component with the deployment to cancel.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:component
— (map
)The detailed data of the component with the deployment that is being canceled.
arn
— required — (String
)The Amazon Resource Name (ARN) of the component.
createdAt
— required — (Date
)The time when the component was created.
deploymentStatus
— required — (String
)The component deployment status.
Possible values include:"IN_PROGRESS"
"FAILED"
"SUCCEEDED"
"DELETE_IN_PROGRESS"
"DELETE_FAILED"
"DELETE_COMPLETE"
"CANCELLING"
"CANCELLED"
deploymentStatusMessage
— (String
)The message associated with the component deployment status.
description
— (String
)A description of the component.
environmentName
— required — (String
)The name of the Proton environment that this component is associated with.
lastAttemptedDeploymentId
— (String
)The ID of the last attempted deployment of this component.
lastClientRequestToken
— (String
)The last token the client requested.
lastDeploymentAttemptedAt
— (Date
)The time when a deployment of the component was last attempted.
lastDeploymentSucceededAt
— (Date
)The time when the component was last deployed successfully.
lastModifiedAt
— required — (Date
)The time when the component was last modified.
lastSucceededDeploymentId
— (String
)The ID of the last successful deployment of this component.
name
— required — (String
)The name of the component.
serviceInstanceName
— (String
)The name of the service instance that this component is attached to. Provided when a component is attached to a service instance.
serviceName
— (String
)The name of the service that
serviceInstanceName
is associated with. Provided when a component is attached to a service instance.serviceSpec
— (String
)The service spec that the component uses to access service inputs. Provided when a component is attached to a service instance.
-
(AWS.Response)
—
Returns:
cancelEnvironmentDeployment(params = {}, callback) ⇒ AWS.Request
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.The following list includes potential cancellation scenarios.
-
If the cancellation attempt succeeds, the resulting deployment state is
CANCELLED
. -
If the cancellation attempt fails, the resulting deployment state is
FAILED
. -
If the current UpdateEnvironment action succeeds before the cancellation attempt starts, the resulting deployment state is
SUCCEEDED
and the cancellation attempt has no effect.
Service Reference:
Examples:
Calling the cancelEnvironmentDeployment operation
var params = { environmentName: 'STRING_VALUE' /* required */ }; proton.cancelEnvironmentDeployment(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
environmentName
— (String
)The name of the environment with the deployment to cancel.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:environment
— (map
)The environment summary data that's returned by Proton.
arn
— required — (String
)The Amazon Resource Name (ARN) of the environment.
codebuildRoleArn
— (String
)The Amazon Resource Name (ARN) of the IAM service role that allows Proton to provision infrastructure using CodeBuild-based provisioning on your behalf.
componentRoleArn
— (String
)The Amazon Resource Name (ARN) of the IAM service role that Proton uses when provisioning directly defined components in this environment. It determines the scope of infrastructure that a component can provision.
The environment must have a
componentRoleArn
to allow directly defined components to be associated with the environment.For more information about components, see Proton components in the Proton User Guide.
createdAt
— required — (Date
)The time when the environment was created.
deploymentStatus
— required — (String
)The environment deployment status.
Possible values include:"IN_PROGRESS"
"FAILED"
"SUCCEEDED"
"DELETE_IN_PROGRESS"
"DELETE_FAILED"
"DELETE_COMPLETE"
"CANCELLING"
"CANCELLED"
deploymentStatusMessage
— (String
)An environment deployment status message.
description
— (String
)The description of the environment.
environmentAccountConnectionId
— (String
)The ID of the environment account connection that's used to provision infrastructure resources in an environment account.
environmentAccountId
— (String
)The ID of the environment account that the environment infrastructure resources are provisioned in.
lastAttemptedDeploymentId
— (String
)The ID of the last attempted deployment of this environment.
lastDeploymentAttemptedAt
— required — (Date
)The time when a deployment of the environment was last attempted.
lastDeploymentSucceededAt
— required — (Date
)The time when the environment was last deployed successfully.
lastSucceededDeploymentId
— (String
)The ID of the last successful deployment of this environment.
name
— required — (String
)The name of the environment.
protonServiceRoleArn
— (String
)The Amazon Resource Name (ARN) of the Proton service role that allows Proton to make calls to other services on your behalf.
provisioning
— (String
)When included, indicates that the environment template is for customer provisioned and managed infrastructure.
Possible values include:"CUSTOMER_MANAGED"
provisioningRepository
— (map
)The linked repository that you use to host your rendered infrastructure templates for self-managed provisioning. A linked repository is a repository that has been registered with Proton. For more information, see CreateRepository.
arn
— required — (String
)The Amazon Resource Name (ARN) of the linked repository.
branch
— required — (String
)The repository branch.
name
— required — (String
)The repository name.
provider
— required — (String
)The repository provider.
Possible values include:"GITHUB"
"GITHUB_ENTERPRISE"
"BITBUCKET"
spec
— (String
)The environment spec.
templateMajorVersion
— required — (String
)The major version of the environment template.
templateMinorVersion
— required — (String
)The minor version of the environment template.
templateName
— required — (String
)The Amazon Resource Name (ARN) of the environment template.
-
(AWS.Response)
—
Returns:
cancelServiceInstanceDeployment(params = {}, callback) ⇒ AWS.Request
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.The following list includes potential cancellation scenarios.
-
If the cancellation attempt succeeds, the resulting deployment state is
CANCELLED
. -
If the cancellation attempt fails, the resulting deployment state is
FAILED
. -
If the current UpdateServiceInstance action succeeds before the cancellation attempt starts, the resulting deployment state is
SUCCEEDED
and the cancellation attempt has no effect.
Service Reference:
Examples:
Calling the cancelServiceInstanceDeployment operation
var params = { serviceInstanceName: 'STRING_VALUE', /* required */ serviceName: 'STRING_VALUE' /* required */ }; proton.cancelServiceInstanceDeployment(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
serviceInstanceName
— (String
)The name of the service instance with the deployment to cancel.
serviceName
— (String
)The name of the service with the service instance deployment to cancel.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:serviceInstance
— (map
)The service instance summary data that's returned by Proton.
arn
— required — (String
)The Amazon Resource Name (ARN) of the service instance.
createdAt
— required — (Date
)The time when the service instance was created.
deploymentStatus
— required — (String
)The service instance deployment status.
Possible values include:"IN_PROGRESS"
"FAILED"
"SUCCEEDED"
"DELETE_IN_PROGRESS"
"DELETE_FAILED"
"DELETE_COMPLETE"
"CANCELLING"
"CANCELLED"
deploymentStatusMessage
— (String
)The message associated with the service instance deployment status.
environmentName
— required — (String
)The name of the environment that the service instance was deployed into.
lastAttemptedDeploymentId
— (String
)The ID of the last attempted deployment of this service instance.
lastClientRequestToken
— (String
)The last client request token received.
lastDeploymentAttemptedAt
— required — (Date
)The time when a deployment of the service instance was last attempted.
lastDeploymentSucceededAt
— required — (Date
)The time when the service instance was last deployed successfully.
lastSucceededDeploymentId
— (String
)The ID of the last successful deployment of this service instance.
name
— required — (String
)The name of the service instance.
serviceName
— required — (String
)The name of the service that the service instance belongs to.
spec
— (String
)The service spec that was used to create the service instance.
templateMajorVersion
— required — (String
)The major version of the service template that was used to create the service instance.
templateMinorVersion
— required — (String
)The minor version of the service template that was used to create the service instance.
templateName
— required — (String
)The name of the service template that was used to create the service instance.
-
(AWS.Response)
—
Returns:
cancelServicePipelineDeployment(params = {}, callback) ⇒ AWS.Request
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.The following list includes potential cancellation scenarios.
-
If the cancellation attempt succeeds, the resulting deployment state is
CANCELLED
. -
If the cancellation attempt fails, the resulting deployment state is
FAILED
. -
If the current UpdateServicePipeline action succeeds before the cancellation attempt starts, the resulting deployment state is
SUCCEEDED
and the cancellation attempt has no effect.
Service Reference:
Examples:
Calling the cancelServicePipelineDeployment operation
var params = { serviceName: 'STRING_VALUE' /* required */ }; proton.cancelServicePipelineDeployment(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
serviceName
— (String
)The name of the service with the service pipeline deployment to cancel.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:pipeline
— (map
)The service pipeline detail data that's returned by Proton.
arn
— required — (String
)The Amazon Resource Name (ARN) of the service pipeline.
createdAt
— required — (Date
)The time when the service pipeline was created.
deploymentStatus
— required — (String
)The deployment status of the service pipeline.
Possible values include:"IN_PROGRESS"
"FAILED"
"SUCCEEDED"
"DELETE_IN_PROGRESS"
"DELETE_FAILED"
"DELETE_COMPLETE"
"CANCELLING"
"CANCELLED"
deploymentStatusMessage
— (String
)A service pipeline deployment status message.
lastAttemptedDeploymentId
— (String
)The ID of the last attempted deployment of this service pipeline.
lastDeploymentAttemptedAt
— required — (Date
)The time when a deployment of the service pipeline was last attempted.
lastDeploymentSucceededAt
— required — (Date
)The time when the service pipeline was last deployed successfully.
lastSucceededDeploymentId
— (String
)The ID of the last successful deployment of this service pipeline.
spec
— (String
)The service spec that was used to create the service pipeline.
templateMajorVersion
— required — (String
)The major version of the service template that was used to create the service pipeline.
templateMinorVersion
— required — (String
)The minor version of the service template that was used to create the service pipeline.
templateName
— required — (String
)The name of the service template that was used to create the service pipeline.
-
(AWS.Response)
—
Returns:
createComponent(params = {}, callback) ⇒ AWS.Request
Create an Proton component. A component is an infrastructure extension for a service instance.
For more information about components, see Proton components in the Proton User Guide.
Service Reference:
Examples:
Calling the createComponent operation
var params = { manifest: 'STRING_VALUE', /* required */ name: 'STRING_VALUE', /* required */ templateFile: 'STRING_VALUE', /* required */ clientToken: 'STRING_VALUE', description: 'STRING_VALUE', environmentName: 'STRING_VALUE', serviceInstanceName: 'STRING_VALUE', serviceName: 'STRING_VALUE', serviceSpec: 'STRING_VALUE', tags: [ { key: 'STRING_VALUE', /* required */ value: 'STRING_VALUE' /* required */ }, /* more items */ ] }; proton.createComponent(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
clientToken
— (String
)The client token for the created component.
If a token is not provided, the SDK will use a version 4 UUID.description
— (String
)An optional customer-provided description of the component.
environmentName
— (String
)The name of the Proton environment that you want to associate this component with. You must specify this when you don't specify
serviceInstanceName
andserviceName
.manifest
— (String
)A path to a manifest file that lists the Infrastructure as Code (IaC) file, template language, and rendering engine for infrastructure that a custom component provisions.
name
— (String
)The customer-provided name of the component.
serviceInstanceName
— (String
)The name of the service instance that you want to attach this component to. If you don't specify this, the component isn't attached to any service instance. Specify both
serviceInstanceName
andserviceName
or neither of them.serviceName
— (String
)The name of the service that
serviceInstanceName
is associated with. If you don't specify this, the component isn't attached to any service instance. Specify bothserviceInstanceName
andserviceName
or neither of them.serviceSpec
— (String
)The service spec that you want the component to use to access service inputs. Set this only when you attach the component to a service instance.
tags
— (Array<map>
)An optional list of metadata items that you can associate with the Proton component. A tag is a key-value pair.
For more information, see Proton resources and tagging in the Proton User Guide.
key
— required — (String
)The key of the resource tag.
value
— required — (String
)The value of the resource tag.
templateFile
— (String
)A path to the Infrastructure as Code (IaC) file describing infrastructure that a custom component provisions.
Note: Components support a single IaC file, even if you use Terraform as your template language.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:component
— (map
)The detailed data of the created component.
arn
— required — (String
)The Amazon Resource Name (ARN) of the component.
createdAt
— required — (Date
)The time when the component was created.
deploymentStatus
— required — (String
)The component deployment status.
Possible values include:"IN_PROGRESS"
"FAILED"
"SUCCEEDED"
"DELETE_IN_PROGRESS"
"DELETE_FAILED"
"DELETE_COMPLETE"
"CANCELLING"
"CANCELLED"
deploymentStatusMessage
— (String
)The message associated with the component deployment status.
description
— (String
)A description of the component.
environmentName
— required — (String
)The name of the Proton environment that this component is associated with.
lastAttemptedDeploymentId
— (String
)The ID of the last attempted deployment of this component.
lastClientRequestToken
— (String
)The last token the client requested.
lastDeploymentAttemptedAt
— (Date
)The time when a deployment of the component was last attempted.
lastDeploymentSucceededAt
— (Date
)The time when the component was last deployed successfully.
lastModifiedAt
— required — (Date
)The time when the component was last modified.
lastSucceededDeploymentId
— (String
)The ID of the last successful deployment of this component.
name
— required — (String
)The name of the component.
serviceInstanceName
— (String
)The name of the service instance that this component is attached to. Provided when a component is attached to a service instance.
serviceName
— (String
)The name of the service that
serviceInstanceName
is associated with. Provided when a component is attached to a service instance.serviceSpec
— (String
)The service spec that the component uses to access service inputs. Provided when a component is attached to a service instance.
-
(AWS.Response)
—
Returns:
createEnvironment(params = {}, callback) ⇒ AWS.Request
Deploy a new environment. An Proton environment is created from an environment template that defines infrastructure and resources that can be shared across services.
You can provision environments using the following methods:
-
Amazon Web Services-managed provisioning: Proton makes direct calls to provision your resources.
-
Self-managed provisioning: Proton makes pull requests on your repository to provide compiled infrastructure as code (IaC) files that your IaC engine uses to provision resources.
For more information, see Environments and Provisioning methods in the Proton User Guide.
Service Reference:
Examples:
Calling the createEnvironment operation
var params = { name: 'STRING_VALUE', /* required */ spec: 'STRING_VALUE', /* required */ templateMajorVersion: 'STRING_VALUE', /* required */ templateName: 'STRING_VALUE', /* required */ codebuildRoleArn: 'STRING_VALUE', componentRoleArn: 'STRING_VALUE', description: 'STRING_VALUE', environmentAccountConnectionId: 'STRING_VALUE', protonServiceRoleArn: 'STRING_VALUE', provisioningRepository: { branch: 'STRING_VALUE', /* required */ name: 'STRING_VALUE', /* required */ provider: GITHUB | GITHUB_ENTERPRISE | BITBUCKET /* required */ }, tags: [ { key: 'STRING_VALUE', /* required */ value: 'STRING_VALUE' /* required */ }, /* more items */ ], templateMinorVersion: 'STRING_VALUE' }; proton.createEnvironment(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
codebuildRoleArn
— (String
)The Amazon Resource Name (ARN) of the IAM service role that allows Proton to provision infrastructure using CodeBuild-based provisioning on your behalf.
To use CodeBuild-based provisioning for the environment or for any service instance running in the environment, specify either the
environmentAccountConnectionId
orcodebuildRoleArn
parameter.componentRoleArn
— (String
)The Amazon Resource Name (ARN) of the IAM service role that Proton uses when provisioning directly defined components in this environment. It determines the scope of infrastructure that a component can provision.
You must specify
componentRoleArn
to allow directly defined components to be associated with this environment.For more information about components, see Proton components in the Proton User Guide.
description
— (String
)A description of the environment that's being created and deployed.
environmentAccountConnectionId
— (String
)The ID of the environment account connection that you provide if you're provisioning your environment infrastructure resources to an environment account. For more information, see Environment account connections in the Proton User guide.
To use Amazon Web Services-managed provisioning for the environment, specify either the
environmentAccountConnectionId
orprotonServiceRoleArn
parameter and omit theprovisioningRepository
parameter.name
— (String
)The name of the environment.
protonServiceRoleArn
— (String
)The Amazon Resource Name (ARN) of the Proton service role that allows Proton to make calls to other services on your behalf.
To use Amazon Web Services-managed provisioning for the environment, specify either the
environmentAccountConnectionId
orprotonServiceRoleArn
parameter and omit theprovisioningRepository
parameter.provisioningRepository
— (map
)The linked repository that you use to host your rendered infrastructure templates for self-managed provisioning. A linked repository is a repository that has been registered with Proton. For more information, see CreateRepository.
To use self-managed provisioning for the environment, specify this parameter and omit the
environmentAccountConnectionId
andprotonServiceRoleArn
parameters.branch
— required — (String
)The repository branch.
name
— required — (String
)The repository name.
provider
— required — (String
)The repository provider.
Possible values include:"GITHUB"
"GITHUB_ENTERPRISE"
"BITBUCKET"
spec
— (String
)A YAML formatted string that provides inputs as defined in the environment template bundle schema file. For more information, see Environments in the Proton User Guide.
tags
— (Array<map>
)An optional list of metadata items that you can associate with the Proton environment. A tag is a key-value pair.
For more information, see Proton resources and tagging in the Proton User Guide.
key
— required — (String
)The key of the resource tag.
value
— required — (String
)The value of the resource tag.
templateMajorVersion
— (String
)The major version of the environment template.
templateMinorVersion
— (String
)The minor version of the environment template.
templateName
— (String
)The name of the environment template. For more information, see Environment Templates in the Proton User Guide.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:environment
— (map
)The environment detail data that's returned by Proton.
arn
— required — (String
)The Amazon Resource Name (ARN) of the environment.
codebuildRoleArn
— (String
)The Amazon Resource Name (ARN) of the IAM service role that allows Proton to provision infrastructure using CodeBuild-based provisioning on your behalf.
componentRoleArn
— (String
)The Amazon Resource Name (ARN) of the IAM service role that Proton uses when provisioning directly defined components in this environment. It determines the scope of infrastructure that a component can provision.
The environment must have a
componentRoleArn
to allow directly defined components to be associated with the environment.For more information about components, see Proton components in the Proton User Guide.
createdAt
— required — (Date
)The time when the environment was created.
deploymentStatus
— required — (String
)The environment deployment status.
Possible values include:"IN_PROGRESS"
"FAILED"
"SUCCEEDED"
"DELETE_IN_PROGRESS"
"DELETE_FAILED"
"DELETE_COMPLETE"
"CANCELLING"
"CANCELLED"
deploymentStatusMessage
— (String
)An environment deployment status message.
description
— (String
)The description of the environment.
environmentAccountConnectionId
— (String
)The ID of the environment account connection that's used to provision infrastructure resources in an environment account.
environmentAccountId
— (String
)The ID of the environment account that the environment infrastructure resources are provisioned in.
lastAttemptedDeploymentId
— (String
)The ID of the last attempted deployment of this environment.
lastDeploymentAttemptedAt
— required — (Date
)The time when a deployment of the environment was last attempted.
lastDeploymentSucceededAt
— required — (Date
)The time when the environment was last deployed successfully.
lastSucceededDeploymentId
— (String
)The ID of the last successful deployment of this environment.
name
— required — (String
)The name of the environment.
protonServiceRoleArn
— (String
)The Amazon Resource Name (ARN) of the Proton service role that allows Proton to make calls to other services on your behalf.
provisioning
— (String
)When included, indicates that the environment template is for customer provisioned and managed infrastructure.
Possible values include:"CUSTOMER_MANAGED"
provisioningRepository
— (map
)The linked repository that you use to host your rendered infrastructure templates for self-managed provisioning. A linked repository is a repository that has been registered with Proton. For more information, see CreateRepository.
arn
— required — (String
)The Amazon Resource Name (ARN) of the linked repository.
branch
— required — (String
)The repository branch.
name
— required — (String
)The repository name.
provider
— required — (String
)The repository provider.
Possible values include:"GITHUB"
"GITHUB_ENTERPRISE"
"BITBUCKET"
spec
— (String
)The environment spec.
templateMajorVersion
— required — (String
)The major version of the environment template.
templateMinorVersion
— required — (String
)The minor version of the environment template.
templateName
— required — (String
)The Amazon Resource Name (ARN) of the environment template.
-
(AWS.Response)
—
Returns:
createEnvironmentAccountConnection(params = {}, callback) ⇒ AWS.Request
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.
An environment account connection is a secure bi-directional connection between a management account and an environment account that maintains authorization and permissions. For more information, see Environment account connections in the Proton User guide.
Service Reference:
Examples:
Calling the createEnvironmentAccountConnection operation
var params = { environmentName: 'STRING_VALUE', /* required */ managementAccountId: 'STRING_VALUE', /* required */ clientToken: 'STRING_VALUE', codebuildRoleArn: 'STRING_VALUE', componentRoleArn: 'STRING_VALUE', roleArn: 'STRING_VALUE', tags: [ { key: 'STRING_VALUE', /* required */ value: 'STRING_VALUE' /* required */ }, /* more items */ ] }; proton.createEnvironmentAccountConnection(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
clientToken
— (String
)When included, if two identical requests are made with the same client token, Proton returns the environment account connection that the first request created.
If a token is not provided, the SDK will use a version 4 UUID.codebuildRoleArn
— (String
)The Amazon Resource Name (ARN) of an IAM service role in the environment account. Proton uses this role to provision infrastructure resources using CodeBuild-based provisioning in the associated environment account.
componentRoleArn
— (String
)The Amazon Resource Name (ARN) of the IAM service role that Proton uses when provisioning directly defined components in the associated environment account. It determines the scope of infrastructure that a component can provision in the account.
You must specify
componentRoleArn
to allow directly defined components to be associated with any environments running in this account.For more information about components, see Proton components in the Proton User Guide.
environmentName
— (String
)The name of the Proton environment that's created in the associated management account.
managementAccountId
— (String
)The ID of the management account that accepts or rejects the environment account connection. You create and manage the Proton environment in this account. If the management account accepts the environment account connection, Proton can use the associated IAM role to provision environment infrastructure resources in the associated environment account.
roleArn
— (String
)The Amazon Resource Name (ARN) of the IAM service role that's created in the environment account. Proton uses this role to provision infrastructure resources in the associated environment account.
tags
— (Array<map>
)An optional list of metadata items that you can associate with the Proton environment account connection. A tag is a key-value pair.
For more information, see Proton resources and tagging in the Proton User Guide.
key
— required — (String
)The key of the resource tag.
value
— required — (String
)The value of the resource tag.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:environmentAccountConnection
— (map
)The environment account connection detail data that's returned by Proton.
arn
— required — (String
)The Amazon Resource Name (ARN) of the environment account connection.
codebuildRoleArn
— (String
)The Amazon Resource Name (ARN) of an IAM service role in the environment account. Proton uses this role to provision infrastructure resources using CodeBuild-based provisioning in the associated environment account.
componentRoleArn
— (String
)The Amazon Resource Name (ARN) of the IAM service role that Proton uses when provisioning directly defined components in the associated environment account. It determines the scope of infrastructure that a component can provision in the account.
The environment account connection must have a
componentRoleArn
to allow directly defined components to be associated with any environments running in the account.For more information about components, see Proton components in the Proton User Guide.
environmentAccountId
— required — (String
)The environment account that's connected to the environment account connection.
environmentName
— required — (String
)The name of the environment that's associated with the environment account connection.
id
— required — (String
)The ID of the environment account connection.
lastModifiedAt
— required — (Date
)The time when the environment account connection was last modified.
managementAccountId
— required — (String
)The ID of the management account that's connected to the environment account connection.
requestedAt
— required — (Date
)The time when the environment account connection request was made.
roleArn
— required — (String
)The IAM service role that's associated with the environment account connection.
status
— required — (String
)The status of the environment account connection.
Possible values include:"PENDING"
"CONNECTED"
"REJECTED"
-
(AWS.Response)
—
Returns:
createEnvironmentTemplate(params = {}, callback) ⇒ AWS.Request
Create an environment template for Proton. For more information, see Environment Templates in the Proton User Guide.
You can create an environment template in one of the two following ways:
-
Register and publish a standard environment template that instructs Proton to deploy and manage environment infrastructure.
-
Register and publish a customer managed environment template that connects Proton to your existing provisioned infrastructure that you manage. Proton doesn't manage your existing provisioned infrastructure. To create an environment template for customer provisioned and managed infrastructure, include the
provisioning
parameter and set the value toCUSTOMER_MANAGED
. For more information, see Register and publish an environment template in the Proton User Guide.
Service Reference:
Examples:
Calling the createEnvironmentTemplate operation
var params = { name: 'STRING_VALUE', /* required */ description: 'STRING_VALUE', displayName: 'STRING_VALUE', encryptionKey: 'STRING_VALUE', provisioning: CUSTOMER_MANAGED, tags: [ { key: 'STRING_VALUE', /* required */ value: 'STRING_VALUE' /* required */ }, /* more items */ ] }; proton.createEnvironmentTemplate(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
description
— (String
)A description of the environment template.
displayName
— (String
)The environment template name as displayed in the developer interface.
encryptionKey
— (String
)A customer provided encryption key that Proton uses to encrypt data.
name
— (String
)The name of the environment template.
provisioning
— (String
)When included, indicates that the environment template is for customer provisioned and managed infrastructure.
Possible values include:"CUSTOMER_MANAGED"
tags
— (Array<map>
)An optional list of metadata items that you can associate with the Proton environment template. A tag is a key-value pair.
For more information, see Proton resources and tagging in the Proton User Guide.
key
— required — (String
)The key of the resource tag.
value
— required — (String
)The value of the resource tag.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:environmentTemplate
— (map
)The environment template detail data that's returned by Proton.
arn
— required — (String
)The Amazon Resource Name (ARN) of the environment template.
createdAt
— required — (Date
)The time when the environment template was created.
description
— (String
)A description of the environment template.
displayName
— (String
)The name of the environment template as displayed in the developer interface.
encryptionKey
— (String
)The customer provided encryption key for the environment template.
lastModifiedAt
— required — (Date
)The time when the environment template was last modified.
name
— required — (String
)The name of the environment template.
provisioning
— (String
)When included, indicates that the environment template is for customer provisioned and managed infrastructure.
Possible values include:"CUSTOMER_MANAGED"
recommendedVersion
— (String
)The ID of the recommended version of the environment template.
-
(AWS.Response)
—
Returns:
createEnvironmentTemplateVersion(params = {}, callback) ⇒ AWS.Request
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.
Service Reference:
Examples:
Calling the createEnvironmentTemplateVersion operation
var params = { source: { /* required */ s3: { bucket: 'STRING_VALUE', /* required */ key: 'STRING_VALUE' /* required */ } }, templateName: 'STRING_VALUE', /* required */ clientToken: 'STRING_VALUE', description: 'STRING_VALUE', majorVersion: 'STRING_VALUE', tags: [ { key: 'STRING_VALUE', /* required */ value: 'STRING_VALUE' /* required */ }, /* more items */ ] }; proton.createEnvironmentTemplateVersion(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
clientToken
— (String
)When included, if two identical requests are made with the same client token, Proton returns the environment template version that the first request created.
If a token is not provided, the SDK will use a version 4 UUID.description
— (String
)A description of the new version of an environment template.
majorVersion
— (String
)To create a new minor version of the environment template, include
major Version
.To create a new major and minor version of the environment template, exclude
major Version
.source
— (map
)An object that includes the template bundle S3 bucket path and name for the new version of an template.
s3
— (map
)An S3 source object that includes the template bundle S3 path and name for a template minor version.
bucket
— required — (String
)The name of the S3 bucket that contains a template bundle.
key
— required — (String
)The path to the S3 bucket that contains a template bundle.
tags
— (Array<map>
)An optional list of metadata items that you can associate with the Proton environment template version. A tag is a key-value pair.
For more information, see Proton resources and tagging in the Proton User Guide.
key
— required — (String
)The key of the resource tag.
value
— required — (String
)The value of the resource tag.
templateName
— (String
)The name of the environment template.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:environmentTemplateVersion
— (map
)The environment template detail data that's returned by Proton.
arn
— required — (String
)The Amazon Resource Name (ARN) of the version of an environment template.
createdAt
— required — (Date
)The time when the version of an environment template was created.
description
— (String
)A description of the minor version of an environment template.
lastModifiedAt
— required — (Date
)The time when the version of an environment template was last modified.
majorVersion
— required — (String
)The latest major version that's associated with the version of an environment template.
minorVersion
— required — (String
)The minor version of an environment template.
recommendedMinorVersion
— (String
)The recommended minor version of the environment template.
schema
— (String
)The schema of the version of an environment template.
status
— required — (String
)The status of the version of an environment template.
Possible values include:"REGISTRATION_IN_PROGRESS"
"REGISTRATION_FAILED"
"DRAFT"
"PUBLISHED"
statusMessage
— (String
)The status message of the version of an environment template.
templateName
— required — (String
)The name of the version of an environment template.
-
(AWS.Response)
—
Returns:
createRepository(params = {}, callback) ⇒ AWS.Request
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.
For more information, see Self-managed provisioning, Template bundles, and Template sync configurations in the Proton User Guide.
Service Reference:
Examples:
Calling the createRepository operation
var params = { connectionArn: 'STRING_VALUE', /* required */ name: 'STRING_VALUE', /* required */ provider: GITHUB | GITHUB_ENTERPRISE | BITBUCKET, /* required */ encryptionKey: 'STRING_VALUE', tags: [ { key: 'STRING_VALUE', /* required */ value: 'STRING_VALUE' /* required */ }, /* more items */ ] }; proton.createRepository(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
connectionArn
— (String
)The Amazon Resource Name (ARN) of your AWS CodeStar connection that connects Proton to your repository provider account. For more information, see Setting up for Proton in the Proton User Guide.
encryptionKey
— (String
)The ARN of your customer Amazon Web Services Key Management Service (Amazon Web Services KMS) key.
name
— (String
)The repository name (for example,
myrepos/myrepo
).provider
— (String
)The repository provider.
Possible values include:"GITHUB"
"GITHUB_ENTERPRISE"
"BITBUCKET"
tags
— (Array<map>
)An optional list of metadata items that you can associate with the Proton repository. A tag is a key-value pair.
For more information, see Proton resources and tagging in the Proton User Guide.
key
— required — (String
)The key of the resource tag.
value
— required — (String
)The value of the resource tag.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:repository
— (map
)The repository link's detail data that's returned by Proton.
arn
— required — (String
)The Amazon Resource Name (ARN) of the linked repository.
connectionArn
— required — (String
)The Amazon Resource Name (ARN) of your AWS CodeStar connection that connects Proton to your repository provider account.
encryptionKey
— (String
)Your customer Amazon Web Services KMS encryption key.
name
— required — (String
)The repository name.
provider
— required — (String
)The repository provider.
Possible values include:"GITHUB"
"GITHUB_ENTERPRISE"
"BITBUCKET"
-
(AWS.Response)
—
Returns:
createService(params = {}, callback) ⇒ AWS.Request
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.
Service Reference:
Examples:
Calling the createService operation
var params = { name: 'STRING_VALUE', /* required */ spec: 'STRING_VALUE', /* required */ templateMajorVersion: 'STRING_VALUE', /* required */ templateName: 'STRING_VALUE', /* required */ branchName: 'STRING_VALUE', description: 'STRING_VALUE', repositoryConnectionArn: 'STRING_VALUE', repositoryId: 'STRING_VALUE', tags: [ { key: 'STRING_VALUE', /* required */ value: 'STRING_VALUE' /* required */ }, /* more items */ ], templateMinorVersion: 'STRING_VALUE' }; proton.createService(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
branchName
— (String
)The name of the code repository branch that holds the code that's deployed in Proton. Don't include this parameter if your service template doesn't include a service pipeline.
description
— (String
)A description of the Proton service.
name
— (String
)The service name.
repositoryConnectionArn
— (String
)The Amazon Resource Name (ARN) of the repository connection. For more information, see Setting up an AWS CodeStar connection in the Proton User Guide. Don't include this parameter if your service template doesn't include a service pipeline.
repositoryId
— (String
)The ID of the code repository. Don't include this parameter if your service template doesn't include a service pipeline.
spec
— (String
)A link to a spec file that provides inputs as defined in the service template bundle schema file. The spec file is in YAML format. Don’t include pipeline inputs in the spec if your service template doesn’t include a service pipeline. For more information, see Create a service in the Proton User Guide.
tags
— (Array<map>
)An optional list of metadata items that you can associate with the Proton service. A tag is a key-value pair.
For more information, see Proton resources and tagging in the Proton User Guide.
key
— required — (String
)The key of the resource tag.
value
— required — (String
)The value of the resource tag.
templateMajorVersion
— (String
)The major version of the service template that was used to create the service.
templateMinorVersion
— (String
)The minor version of the service template that was used to create the service.
templateName
— (String
)The name of the service template that's used to create the service.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:service
— (map
)The service detail data that's returned by Proton.
arn
— required — (String
)The Amazon Resource Name (ARN) of the service.
branchName
— (String
)The name of the code repository branch that holds the code that's deployed in Proton.
createdAt
— required — (Date
)The time when the service was created.
description
— (String
)A description of the service.
lastModifiedAt
— required — (Date
)The time when the service was last modified.
name
— required — (String
)The name of the service.
pipeline
— (map
)The service pipeline detail data.
arn
— required — (String
)The Amazon Resource Name (ARN) of the service pipeline.
createdAt
— required — (Date
)The time when the service pipeline was created.
deploymentStatus
— required — (String
)The deployment status of the service pipeline.
Possible values include:"IN_PROGRESS"
"FAILED"
"SUCCEEDED"
"DELETE_IN_PROGRESS"
"DELETE_FAILED"
"DELETE_COMPLETE"
"CANCELLING"
"CANCELLED"
deploymentStatusMessage
— (String
)A service pipeline deployment status message.
lastAttemptedDeploymentId
— (String
)The ID of the last attempted deployment of this service pipeline.
lastDeploymentAttemptedAt
— required — (Date
)The time when a deployment of the service pipeline was last attempted.
lastDeploymentSucceededAt
— required — (Date
)The time when the service pipeline was last deployed successfully.
lastSucceededDeploymentId
— (String
)The ID of the last successful deployment of this service pipeline.
spec
— (String
)The service spec that was used to create the service pipeline.
templateMajorVersion
— required — (String
)The major version of the service template that was used to create the service pipeline.
templateMinorVersion
— required — (String
)The minor version of the service template that was used to create the service pipeline.
templateName
— required — (String
)The name of the service template that was used to create the service pipeline.
repositoryConnectionArn
— (String
)The Amazon Resource Name (ARN) of the repository connection. For more information, see Setting up an AWS CodeStar connection in the Proton User Guide.
repositoryId
— (String
)The ID of the source code repository.
spec
— required — (String
)The formatted specification that defines the service.
status
— required — (String
)The status of the service.
Possible values include:"CREATE_IN_PROGRESS"
"CREATE_FAILED_CLEANUP_IN_PROGRESS"
"CREATE_FAILED_CLEANUP_COMPLETE"
"CREATE_FAILED_CLEANUP_FAILED"
"CREATE_FAILED"
"ACTIVE"
"DELETE_IN_PROGRESS"
"DELETE_FAILED"
"UPDATE_IN_PROGRESS"
"UPDATE_FAILED_CLEANUP_IN_PROGRESS"
"UPDATE_FAILED_CLEANUP_COMPLETE"
"UPDATE_FAILED_CLEANUP_FAILED"
"UPDATE_FAILED"
"UPDATE_COMPLETE_CLEANUP_FAILED"
statusMessage
— (String
)A service status message.
templateName
— required — (String
)The name of the service template.
-
(AWS.Response)
—
Returns:
createServiceInstance(params = {}, callback) ⇒ AWS.Request
Create a service instance.
Service Reference:
Examples:
Calling the createServiceInstance operation
var params = { name: 'STRING_VALUE', /* required */ serviceName: 'STRING_VALUE', /* required */ spec: 'STRING_VALUE', /* required */ clientToken: 'STRING_VALUE', tags: [ { key: 'STRING_VALUE', /* required */ value: 'STRING_VALUE' /* required */ }, /* more items */ ], templateMajorVersion: 'STRING_VALUE', templateMinorVersion: 'STRING_VALUE' }; proton.createServiceInstance(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
clientToken
— (String
)The client token of the service instance to create.
If a token is not provided, the SDK will use a version 4 UUID.name
— (String
)The name of the service instance to create.
serviceName
— (String
)The name of the service the service instance is added to.
spec
— (String
)The spec for the service instance you want to create.
tags
— (Array<map>
)An optional list of metadata items that you can associate with the Proton service instance. A tag is a key-value pair.
For more information, see Proton resources and tagging in the Proton User Guide.
key
— required — (String
)The key of the resource tag.
value
— required — (String
)The value of the resource tag.
templateMajorVersion
— (String
)To create a new major and minor version of the service template, exclude
major Version
.templateMinorVersion
— (String
)To create a new minor version of the service template, include a
major Version
.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:serviceInstance
— (map
)The detailed data of the service instance being created.
arn
— required — (String
)The Amazon Resource Name (ARN) of the service instance.
createdAt
— required — (Date
)The time when the service instance was created.
deploymentStatus
— required — (String
)The service instance deployment status.
Possible values include:"IN_PROGRESS"
"FAILED"
"SUCCEEDED"
"DELETE_IN_PROGRESS"
"DELETE_FAILED"
"DELETE_COMPLETE"
"CANCELLING"
"CANCELLED"
deploymentStatusMessage
— (String
)The message associated with the service instance deployment status.
environmentName
— required — (String
)The name of the environment that the service instance was deployed into.
lastAttemptedDeploymentId
— (String
)The ID of the last attempted deployment of this service instance.
lastClientRequestToken
— (String
)The last client request token received.
lastDeploymentAttemptedAt
— required — (Date
)The time when a deployment of the service instance was last attempted.
lastDeploymentSucceededAt
— required — (Date
)The time when the service instance was last deployed successfully.
lastSucceededDeploymentId
— (String
)The ID of the last successful deployment of this service instance.
name
— required — (String
)The name of the service instance.
serviceName
— required — (String
)The name of the service that the service instance belongs to.
spec
— (String
)The service spec that was used to create the service instance.
templateMajorVersion
— required — (String
)The major version of the service template that was used to create the service instance.
templateMinorVersion
— required — (String
)The minor version of the service template that was used to create the service instance.
templateName
— required — (String
)The name of the service template that was used to create the service instance.
-
(AWS.Response)
—
Returns:
createServiceSyncConfig(params = {}, callback) ⇒ AWS.Request
Create the Proton Ops configuration file.
Service Reference:
Examples:
Calling the createServiceSyncConfig operation
var params = { branch: 'STRING_VALUE', /* required */ filePath: 'STRING_VALUE', /* required */ repositoryName: 'STRING_VALUE', /* required */ repositoryProvider: GITHUB | GITHUB_ENTERPRISE | BITBUCKET, /* required */ serviceName: 'STRING_VALUE' /* required */ }; proton.createServiceSyncConfig(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
branch
— (String
)The repository branch for your Proton Ops file.
filePath
— (String
)The path to the Proton Ops file.
repositoryName
— (String
)The repository name.
repositoryProvider
— (String
)The provider type for your repository.
Possible values include:"GITHUB"
"GITHUB_ENTERPRISE"
"BITBUCKET"
serviceName
— (String
)The name of the service the Proton Ops file is for.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:serviceSyncConfig
— (map
)The detailed data of the Proton Ops file.
branch
— required — (String
)The name of the code repository branch that holds the service code Proton will sync with.
filePath
— required — (String
)The file path to the service sync configuration file.
repositoryName
— required — (String
)The name of the code repository that holds the service code Proton will sync with.
repositoryProvider
— required — (String
)The name of the repository provider that holds the repository Proton will sync with.
Possible values include:"GITHUB"
"GITHUB_ENTERPRISE"
"BITBUCKET"
serviceName
— required — (String
)The name of the service that the service instance is added to.
-
(AWS.Response)
—
Returns:
createServiceTemplate(params = {}, callback) ⇒ AWS.Request
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.
Service Reference:
Examples:
Calling the createServiceTemplate operation
var params = { name: 'STRING_VALUE', /* required */ description: 'STRING_VALUE', displayName: 'STRING_VALUE', encryptionKey: 'STRING_VALUE', pipelineProvisioning: CUSTOMER_MANAGED, tags: [ { key: 'STRING_VALUE', /* required */ value: 'STRING_VALUE' /* required */ }, /* more items */ ] }; proton.createServiceTemplate(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
description
— (String
)A description of the service template.
displayName
— (String
)The name of the service template as displayed in the developer interface.
encryptionKey
— (String
)A customer provided encryption key that's used to encrypt data.
name
— (String
)The name of the service template.
pipelineProvisioning
— (String
)By default, Proton provides a service pipeline for your service. When this parameter is included, it indicates that an Proton service pipeline isn't provided for your service. After it's included, it can't be changed. For more information, see Template bundles in the Proton User Guide.
Possible values include:"CUSTOMER_MANAGED"
tags
— (Array<map>
)An optional list of metadata items that you can associate with the Proton service template. A tag is a key-value pair.
For more information, see Proton resources and tagging in the Proton User Guide.
key
— required — (String
)The key of the resource tag.
value
— required — (String
)The value of the resource tag.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:serviceTemplate
— (map
)The service template detail data that's returned by Proton.
arn
— required — (String
)The Amazon Resource Name (ARN) of the service template.
createdAt
— required — (Date
)The time when the service template was created.
description
— (String
)A description of the service template.
displayName
— (String
)The service template name as displayed in the developer interface.
encryptionKey
— (String
)The customer provided service template encryption key that's used to encrypt data.
lastModifiedAt
— required — (Date
)The time when the service template was last modified.
name
— required — (String
)The name of the service template.
pipelineProvisioning
— (String
)If
Possible values include:pipelineProvisioning
istrue
, a service pipeline is included in the service template. Otherwise, a service pipeline isn't included in the service template."CUSTOMER_MANAGED"
recommendedVersion
— (String
)The recommended version of the service template.
-
(AWS.Response)
—
Returns:
createServiceTemplateVersion(params = {}, callback) ⇒ AWS.Request
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.
Service Reference:
Examples:
Calling the createServiceTemplateVersion operation
var params = { compatibleEnvironmentTemplates: [ /* required */ { majorVersion: 'STRING_VALUE', /* required */ templateName: 'STRING_VALUE' /* required */ }, /* more items */ ], source: { /* required */ s3: { bucket: 'STRING_VALUE', /* required */ key: 'STRING_VALUE' /* required */ } }, templateName: 'STRING_VALUE', /* required */ clientToken: 'STRING_VALUE', description: 'STRING_VALUE', majorVersion: 'STRING_VALUE', supportedComponentSources: [ DIRECTLY_DEFINED, /* more items */ ], tags: [ { key: 'STRING_VALUE', /* required */ value: 'STRING_VALUE' /* required */ }, /* more items */ ] }; proton.createServiceTemplateVersion(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
clientToken
— (String
)When included, if two identical requests are made with the same client token, Proton returns the service template version that the first request created.
If a token is not provided, the SDK will use a version 4 UUID.compatibleEnvironmentTemplates
— (Array<map>
)An array of environment template objects that are compatible with the new service template version. A service instance based on this service template version can run in environments based on compatible templates.
majorVersion
— required — (String
)The major version of the compatible environment template.
templateName
— required — (String
)The compatible environment template name.
description
— (String
)A description of the new version of a service template.
majorVersion
— (String
)To create a new minor version of the service template, include a
major Version
.To create a new major and minor version of the service template, exclude
major Version
.source
— (map
)An object that includes the template bundle S3 bucket path and name for the new version of a service template.
s3
— (map
)An S3 source object that includes the template bundle S3 path and name for a template minor version.
bucket
— required — (String
)The name of the S3 bucket that contains a template bundle.
key
— required — (String
)The path to the S3 bucket that contains a template bundle.
supportedComponentSources
— (Array<String>
)An array of supported component sources. Components with supported sources can be attached to service instances based on this service template version.
For more information about components, see Proton components in the Proton User Guide.
tags
— (Array<map>
)An optional list of metadata items that you can associate with the Proton service template version. A tag is a key-value pair.
For more information, see Proton resources and tagging in the Proton User Guide.
key
— required — (String
)The key of the resource tag.
value
— required — (String
)The value of the resource tag.
templateName
— (String
)The name of the service template.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:serviceTemplateVersion
— (map
)The service template version summary of detail data that's returned by Proton.
arn
— required — (String
)The Amazon Resource Name (ARN) of the version of a service template.
compatibleEnvironmentTemplates
— required — (Array<map>
)An array of compatible environment template names for the major version of a service template.
majorVersion
— required — (String
)The major version of the compatible environment template.
templateName
— required — (String
)The compatible environment template name.
createdAt
— required — (Date
)The time when the version of a service template was created.
description
— (String
)A description of the version of a service template.
lastModifiedAt
— required — (Date
)The time when the version of a service template was last modified.
majorVersion
— required — (String
)The latest major version that's associated with the version of a service template.
minorVersion
— required — (String
)The minor version of a service template.
recommendedMinorVersion
— (String
)The recommended minor version of the service template.
schema
— (String
)The schema of the version of a service template.
status
— required — (String
)The service template version status.
Possible values include:"REGISTRATION_IN_PROGRESS"
"REGISTRATION_FAILED"
"DRAFT"
"PUBLISHED"
statusMessage
— (String
)A service template version status message.
supportedComponentSources
— (Array<String>
)An array of supported component sources. Components with supported sources can be attached to service instances based on this service template version.
For more information about components, see Proton components in the Proton User Guide.
templateName
— required — (String
)The name of the version of a service template.
-
(AWS.Response)
—
Returns:
createTemplateSyncConfig(params = {}, callback) ⇒ AWS.Request
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.
Service Reference:
Examples:
Calling the createTemplateSyncConfig operation
var params = { branch: 'STRING_VALUE', /* required */ repositoryName: 'STRING_VALUE', /* required */ repositoryProvider: GITHUB | GITHUB_ENTERPRISE | BITBUCKET, /* required */ templateName: 'STRING_VALUE', /* required */ templateType: ENVIRONMENT | SERVICE, /* required */ subdirectory: 'STRING_VALUE' }; proton.createTemplateSyncConfig(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
branch
— (String
)The repository branch for your template.
repositoryName
— (String
)The repository name (for example,
myrepos/myrepo
).repositoryProvider
— (String
)The provider type for your repository.
Possible values include:"GITHUB"
"GITHUB_ENTERPRISE"
"BITBUCKET"
subdirectory
— (String
)A repository subdirectory path to your template bundle directory. When included, Proton limits the template bundle search to this repository directory.
templateName
— (String
)The name of your registered template.
templateType
— (String
)The type of the registered template.
Possible values include:"ENVIRONMENT"
"SERVICE"
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:templateSyncConfig
— (map
)The template sync configuration detail data that's returned by Proton.
branch
— required — (String
)The repository branch.
repositoryName
— required — (String
)The repository name (for example,
myrepos/myrepo
).repositoryProvider
— required — (String
)The repository provider.
Possible values include:"GITHUB"
"GITHUB_ENTERPRISE"
"BITBUCKET"
subdirectory
— (String
)A subdirectory path to your template bundle version.
templateName
— required — (String
)The template name.
templateType
— required — (String
)The template type.
Possible values include:"ENVIRONMENT"
"SERVICE"
-
(AWS.Response)
—
Returns:
deleteComponent(params = {}, callback) ⇒ AWS.Request
Delete an Proton component resource.
For more information about components, see Proton components in the Proton User Guide.
Service Reference:
Examples:
Calling the deleteComponent operation
var params = { name: 'STRING_VALUE' /* required */ }; proton.deleteComponent(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
name
— (String
)The name of the component to delete.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:component
— (map
)The detailed data of the component being deleted.
arn
— required — (String
)The Amazon Resource Name (ARN) of the component.
createdAt
— required — (Date
)The time when the component was created.
deploymentStatus
— required — (String
)The component deployment status.
Possible values include:"IN_PROGRESS"
"FAILED"
"SUCCEEDED"
"DELETE_IN_PROGRESS"
"DELETE_FAILED"
"DELETE_COMPLETE"
"CANCELLING"
"CANCELLED"
deploymentStatusMessage
— (String
)The message associated with the component deployment status.
description
— (String
)A description of the component.
environmentName
— required — (String
)The name of the Proton environment that this component is associated with.
lastAttemptedDeploymentId
— (String
)The ID of the last attempted deployment of this component.
lastClientRequestToken
— (String
)The last token the client requested.
lastDeploymentAttemptedAt
— (Date
)The time when a deployment of the component was last attempted.
lastDeploymentSucceededAt
— (Date
)The time when the component was last deployed successfully.
lastModifiedAt
— required — (Date
)The time when the component was last modified.
lastSucceededDeploymentId
— (String
)The ID of the last successful deployment of this component.
name
— required — (String
)The name of the component.
serviceInstanceName
— (String
)The name of the service instance that this component is attached to. Provided when a component is attached to a service instance.
serviceName
— (String
)The name of the service that
serviceInstanceName
is associated with. Provided when a component is attached to a service instance.serviceSpec
— (String
)The service spec that the component uses to access service inputs. Provided when a component is attached to a service instance.
-
(AWS.Response)
—
Returns:
deleteDeployment(params = {}, callback) ⇒ AWS.Request
Delete the deployment.
Service Reference:
Examples:
Calling the deleteDeployment operation
var params = { id: 'STRING_VALUE' /* required */ }; proton.deleteDeployment(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
id
— (String
)The ID of the deployment to delete.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:deployment
— (map
)The detailed data of the deployment being deleted.
arn
— required — (String
)The Amazon Resource Name (ARN) of the deployment.
completedAt
— (Date
)The date and time the deployment was completed.
componentName
— (String
)The name of the component associated with this deployment.
createdAt
— required — (Date
)The date and time the deployment was created.
deploymentStatus
— required — (String
)The status of the deployment.
Possible values include:"IN_PROGRESS"
"FAILED"
"SUCCEEDED"
"DELETE_IN_PROGRESS"
"DELETE_FAILED"
"DELETE_COMPLETE"
"CANCELLING"
"CANCELLED"
deploymentStatusMessage
— (String
)The deployment status message.
environmentName
— required — (String
)The name of the environment associated with this deployment.
id
— required — (String
)The ID of the deployment.
initialState
— (map
)The initial state of the target resource at the time of the deployment.
component
— (map
)The state of the component associated with the deployment.
serviceInstanceName
— (String
)The name of the service instance that this component is attached to. Provided when a component is attached to a service instance.
serviceName
— (String
)The name of the service that
serviceInstanceName
is associated with. Provided when a component is attached to a service instance.serviceSpec
— (String
)The service spec that the component uses to access service inputs. Provided when a component is attached to a service instance.
templateFile
— (String
)The template file used.
environment
— (map
)The state of the environment associated with the deployment.
spec
— (String
)The environment spec that was used to create the environment.
templateMajorVersion
— required — (String
)The major version of the environment template that was used to create the environment.
templateMinorVersion
— required — (String
)The minor version of the environment template that was used to create the environment.
templateName
— required — (String
)The name of the environment template that was used to create the environment.
serviceInstance
— (map
)The state of the service instance associated with the deployment.
lastSuccessfulComponentDeploymentIds
— (Array<String>
)The IDs for the last successful components deployed for this service instance.
lastSuccessfulEnvironmentDeploymentId
— (String
)The ID for the last successful environment deployed for this service instance.
lastSuccessfulServicePipelineDeploymentId
— (String
)The ID for the last successful service pipeline deployed for this service instance.
spec
— required — (String
)The service spec that was used to create the service instance.
templateMajorVersion
— required — (String
)The major version of the service template that was used to create the service pipeline.
templateMinorVersion
— required — (String
)The minor version of the service template that was used to create the service pipeline.
templateName
— required — (String
)The name of the service template that was used to create the service instance.
servicePipeline
— (map
)The state of the service pipeline associated with the deployment.
spec
— (String
)The service spec that was used to create the service pipeline.
templateMajorVersion
— required — (String
)The major version of the service template that was used to create the service pipeline.
templateMinorVersion
— required — (String
)The minor version of the service template that was used to create the service pipeline.
templateName
— required — (String
)The name of the service template that was used to create the service pipeline.
lastAttemptedDeploymentId
— (String
)The ID of the last attempted deployment.
lastModifiedAt
— required — (Date
)The date and time the deployment was last modified.
lastSucceededDeploymentId
— (String
)The ID of the last successful deployment.
serviceInstanceName
— (String
)The name of the deployment's service instance.
serviceName
— (String
)The name of the service in this deployment.
targetArn
— required — (String
)The Amazon Resource Name (ARN) of the target of the deployment.
targetResourceCreatedAt
— required — (Date
)The date and time the depoyment target was created.
targetResourceType
— required — (String
)The resource type of the deployment target. It can be an environment, service, service instance, or component.
Possible values include:"ENVIRONMENT"
"SERVICE_PIPELINE"
"SERVICE_INSTANCE"
"COMPONENT"
targetState
— (map
)The target state of the target resource at the time of the deployment.
component
— (map
)The state of the component associated with the deployment.
serviceInstanceName
— (String
)The name of the service instance that this component is attached to. Provided when a component is attached to a service instance.
serviceName
— (String
)The name of the service that
serviceInstanceName
is associated with. Provided when a component is attached to a service instance.serviceSpec
— (String
)The service spec that the component uses to access service inputs. Provided when a component is attached to a service instance.
templateFile
— (String
)The template file used.
environment
— (map
)The state of the environment associated with the deployment.
spec
— (String
)The environment spec that was used to create the environment.
templateMajorVersion
— required — (String
)The major version of the environment template that was used to create the environment.
templateMinorVersion
— required — (String
)The minor version of the environment template that was used to create the environment.
templateName
— required — (String
)The name of the environment template that was used to create the environment.
serviceInstance
— (map
)The state of the service instance associated with the deployment.
lastSuccessfulComponentDeploymentIds
— (Array<String>
)The IDs for the last successful components deployed for this service instance.
lastSuccessfulEnvironmentDeploymentId
— (String
)The ID for the last successful environment deployed for this service instance.
lastSuccessfulServicePipelineDeploymentId
— (String
)The ID for the last successful service pipeline deployed for this service instance.
spec
— required — (String
)The service spec that was used to create the service instance.
templateMajorVersion
— required — (String
)The major version of the service template that was used to create the service pipeline.
templateMinorVersion
— required — (String
)The minor version of the service template that was used to create the service pipeline.
templateName
— required — (String
)The name of the service template that was used to create the service instance.
servicePipeline
— (map
)The state of the service pipeline associated with the deployment.
spec
— (String
)The service spec that was used to create the service pipeline.
templateMajorVersion
— required — (String
)The major version of the service template that was used to create the service pipeline.
templateMinorVersion
— required — (String
)The minor version of the service template that was used to create the service pipeline.
templateName
— required — (String
)The name of the service template that was used to create the service pipeline.
-
(AWS.Response)
—
Returns:
deleteEnvironment(params = {}, callback) ⇒ AWS.Request
Delete an environment.
Service Reference:
Examples:
Calling the deleteEnvironment operation
var params = { name: 'STRING_VALUE' /* required */ }; proton.deleteEnvironment(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
name
— (String
)The name of the environment to delete.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:environment
— (map
)The detailed data of the environment being deleted.
arn
— required — (String
)The Amazon Resource Name (ARN) of the environment.
codebuildRoleArn
— (String
)The Amazon Resource Name (ARN) of the IAM service role that allows Proton to provision infrastructure using CodeBuild-based provisioning on your behalf.
componentRoleArn
— (String
)The Amazon Resource Name (ARN) of the IAM service role that Proton uses when provisioning directly defined components in this environment. It determines the scope of infrastructure that a component can provision.
The environment must have a
componentRoleArn
to allow directly defined components to be associated with the environment.For more information about components, see Proton components in the Proton User Guide.
createdAt
— required — (Date
)The time when the environment was created.
deploymentStatus
— required — (String
)The environment deployment status.
Possible values include:"IN_PROGRESS"
"FAILED"
"SUCCEEDED"
"DELETE_IN_PROGRESS"
"DELETE_FAILED"
"DELETE_COMPLETE"
"CANCELLING"
"CANCELLED"
deploymentStatusMessage
— (String
)An environment deployment status message.
description
— (String
)The description of the environment.
environmentAccountConnectionId
— (String
)The ID of the environment account connection that's used to provision infrastructure resources in an environment account.
environmentAccountId
— (String
)The ID of the environment account that the environment infrastructure resources are provisioned in.
lastAttemptedDeploymentId
— (String
)The ID of the last attempted deployment of this environment.
lastDeploymentAttemptedAt
— required — (Date
)The time when a deployment of the environment was last attempted.
lastDeploymentSucceededAt
— required — (Date
)The time when the environment was last deployed successfully.
lastSucceededDeploymentId
— (String
)The ID of the last successful deployment of this environment.
name
— required — (String
)The name of the environment.
protonServiceRoleArn
— (String
)The Amazon Resource Name (ARN) of the Proton service role that allows Proton to make calls to other services on your behalf.
provisioning
— (String
)When included, indicates that the environment template is for customer provisioned and managed infrastructure.
Possible values include:"CUSTOMER_MANAGED"
provisioningRepository
— (map
)The linked repository that you use to host your rendered infrastructure templates for self-managed provisioning. A linked repository is a repository that has been registered with Proton. For more information, see CreateRepository.
arn
— required — (String
)The Amazon Resource Name (ARN) of the linked repository.
branch
— required — (String
)The repository branch.
name
— required — (String
)The repository name.
provider
— required — (String
)The repository provider.
Possible values include:"GITHUB"
"GITHUB_ENTERPRISE"
"BITBUCKET"
spec
— (String
)The environment spec.
templateMajorVersion
— required — (String
)The major version of the environment template.
templateMinorVersion
— required — (String
)The minor version of the environment template.
templateName
— required — (String
)The Amazon Resource Name (ARN) of the environment template.
-
(AWS.Response)
—
Returns:
deleteEnvironmentAccountConnection(params = {}, callback) ⇒ AWS.Request
In an environment account, delete an environment account connection.
After you delete an environment account connection that’s in use by an Proton environment, Proton can’t manage the environment infrastructure resources until a new environment account connection is accepted for the environment account and associated environment. You're responsible for cleaning up provisioned resources that remain without an environment connection.
For more information, see Environment account connections in the Proton User guide.
Service Reference:
Examples:
Calling the deleteEnvironmentAccountConnection operation
var params = { id: 'STRING_VALUE' /* required */ }; proton.deleteEnvironmentAccountConnection(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
id
— (String
)The ID of the environment account connection to delete.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:environmentAccountConnection
— (map
)The detailed data of the environment account connection being deleted.
arn
— required — (String
)The Amazon Resource Name (ARN) of the environment account connection.
codebuildRoleArn
— (String
)The Amazon Resource Name (ARN) of an IAM service role in the environment account. Proton uses this role to provision infrastructure resources using CodeBuild-based provisioning in the associated environment account.
componentRoleArn
— (String
)The Amazon Resource Name (ARN) of the IAM service role that Proton uses when provisioning directly defined components in the associated environment account. It determines the scope of infrastructure that a component can provision in the account.
The environment account connection must have a
componentRoleArn
to allow directly defined components to be associated with any environments running in the account.For more information about components, see Proton components in the Proton User Guide.
environmentAccountId
— required — (String
)The environment account that's connected to the environment account connection.
environmentName
— required — (String
)The name of the environment that's associated with the environment account connection.
id
— required — (String
)The ID of the environment account connection.
lastModifiedAt
— required — (Date
)The time when the environment account connection was last modified.
managementAccountId
— required — (String
)The ID of the management account that's connected to the environment account connection.
requestedAt
— required — (Date
)The time when the environment account connection request was made.
roleArn
— required — (String
)The IAM service role that's associated with the environment account connection.
status
— required — (String
)The status of the environment account connection.
Possible values include:"PENDING"
"CONNECTED"
"REJECTED"
-
(AWS.Response)
—
Returns:
deleteEnvironmentTemplate(params = {}, callback) ⇒ AWS.Request
If no other major or minor versions of an environment template exist, delete the environment template.
Service Reference:
Examples:
Calling the deleteEnvironmentTemplate operation
var params = { name: 'STRING_VALUE' /* required */ }; proton.deleteEnvironmentTemplate(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
name
— (String
)The name of the environment template to delete.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:environmentTemplate
— (map
)The detailed data of the environment template being deleted.
arn
— required — (String
)The Amazon Resource Name (ARN) of the environment template.
createdAt
— required — (Date
)The time when the environment template was created.
description
— (String
)A description of the environment template.
displayName
— (String
)The name of the environment template as displayed in the developer interface.
encryptionKey
— (String
)The customer provided encryption key for the environment template.
lastModifiedAt
— required — (Date
)The time when the environment template was last modified.
name
— required — (String
)The name of the environment template.
provisioning
— (String
)When included, indicates that the environment template is for customer provisioned and managed infrastructure.
Possible values include:"CUSTOMER_MANAGED"
recommendedVersion
— (String
)The ID of the recommended version of the environment template.
-
(AWS.Response)
—
Returns:
deleteEnvironmentTemplateVersion(params = {}, callback) ⇒ AWS.Request
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 theRecommended
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.Delete a minor version of an environment template if it isn't the
Recommended
version. Delete aRecommended
minor version of the environment template if no other minor versions of the environment template exist. A minor version of an environment template is a version that's backward compatible.Service Reference:
Examples:
Calling the deleteEnvironmentTemplateVersion operation
var params = { majorVersion: 'STRING_VALUE', /* required */ minorVersion: 'STRING_VALUE', /* required */ templateName: 'STRING_VALUE' /* required */ }; proton.deleteEnvironmentTemplateVersion(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
majorVersion
— (String
)The environment template major version to delete.
minorVersion
— (String
)The environment template minor version to delete.
templateName
— (String
)The name of the environment template.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:environmentTemplateVersion
— (map
)The detailed data of the environment template version being deleted.
arn
— required — (String
)The Amazon Resource Name (ARN) of the version of an environment template.
createdAt
— required — (Date
)The time when the version of an environment template was created.
description
— (String
)A description of the minor version of an environment template.
lastModifiedAt
— required — (Date
)The time when the version of an environment template was last modified.
majorVersion
— required — (String
)The latest major version that's associated with the version of an environment template.
minorVersion
— required — (String
)The minor version of an environment template.
recommendedMinorVersion
— (String
)The recommended minor version of the environment template.
schema
— (String
)The schema of the version of an environment template.
status
— required — (String
)The status of the version of an environment template.
Possible values include:"REGISTRATION_IN_PROGRESS"
"REGISTRATION_FAILED"
"DRAFT"
"PUBLISHED"
statusMessage
— (String
)The status message of the version of an environment template.
templateName
— required — (String
)The name of the version of an environment template.
-
(AWS.Response)
—
Returns:
deleteRepository(params = {}, callback) ⇒ AWS.Request
De-register and unlink your repository.
Service Reference:
Examples:
Calling the deleteRepository operation
var params = { name: 'STRING_VALUE', /* required */ provider: GITHUB | GITHUB_ENTERPRISE | BITBUCKET /* required */ }; proton.deleteRepository(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
name
— (String
)The repository name.
provider
— (String
)The repository provider.
Possible values include:"GITHUB"
"GITHUB_ENTERPRISE"
"BITBUCKET"
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:repository
— (map
)The deleted repository link's detail data that's returned by Proton.
arn
— required — (String
)The Amazon Resource Name (ARN) of the linked repository.
connectionArn
— required — (String
)The Amazon Resource Name (ARN) of your AWS CodeStar connection that connects Proton to your repository provider account.
encryptionKey
— (String
)Your customer Amazon Web Services KMS encryption key.
name
— required — (String
)The repository name.
provider
— required — (String
)The repository provider.
Possible values include:"GITHUB"
"GITHUB_ENTERPRISE"
"BITBUCKET"
-
(AWS.Response)
—
Returns:
deleteService(params = {}, callback) ⇒ AWS.Request
Delete a service, with its instances and pipeline.
Note: You can't delete a service if it has any service instances that have components attached to them. For more information about components, see Proton components in the Proton User Guide.Service Reference:
Examples:
Calling the deleteService operation
var params = { name: 'STRING_VALUE' /* required */ }; proton.deleteService(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
name
— (String
)The name of the service to delete.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:service
— (map
)The detailed data of the service being deleted.
arn
— required — (String
)The Amazon Resource Name (ARN) of the service.
branchName
— (String
)The name of the code repository branch that holds the code that's deployed in Proton.
createdAt
— required — (Date
)The time when the service was created.
description
— (String
)A description of the service.
lastModifiedAt
— required — (Date
)The time when the service was last modified.
name
— required — (String
)The name of the service.
pipeline
— (map
)The service pipeline detail data.
arn
— required — (String
)The Amazon Resource Name (ARN) of the service pipeline.
createdAt
— required — (Date
)The time when the service pipeline was created.
deploymentStatus
— required — (String
)The deployment status of the service pipeline.
Possible values include:"IN_PROGRESS"
"FAILED"
"SUCCEEDED"
"DELETE_IN_PROGRESS"
"DELETE_FAILED"
"DELETE_COMPLETE"
"CANCELLING"
"CANCELLED"
deploymentStatusMessage
— (String
)A service pipeline deployment status message.
lastAttemptedDeploymentId
— (String
)The ID of the last attempted deployment of this service pipeline.
lastDeploymentAttemptedAt
— required — (Date
)The time when a deployment of the service pipeline was last attempted.
lastDeploymentSucceededAt
— required — (Date
)The time when the service pipeline was last deployed successfully.
lastSucceededDeploymentId
— (String
)The ID of the last successful deployment of this service pipeline.
spec
— (String
)The service spec that was used to create the service pipeline.
templateMajorVersion
— required — (String
)The major version of the service template that was used to create the service pipeline.
templateMinorVersion
— required — (String
)The minor version of the service template that was used to create the service pipeline.
templateName
— required — (String
)The name of the service template that was used to create the service pipeline.
repositoryConnectionArn
— (String
)The Amazon Resource Name (ARN) of the repository connection. For more information, see Setting up an AWS CodeStar connection in the Proton User Guide.
repositoryId
— (String
)The ID of the source code repository.
spec
— required — (String
)The formatted specification that defines the service.
status
— required — (String
)The status of the service.
Possible values include:"CREATE_IN_PROGRESS"
"CREATE_FAILED_CLEANUP_IN_PROGRESS"
"CREATE_FAILED_CLEANUP_COMPLETE"
"CREATE_FAILED_CLEANUP_FAILED"
"CREATE_FAILED"
"ACTIVE"
"DELETE_IN_PROGRESS"
"DELETE_FAILED"
"UPDATE_IN_PROGRESS"
"UPDATE_FAILED_CLEANUP_IN_PROGRESS"
"UPDATE_FAILED_CLEANUP_COMPLETE"
"UPDATE_FAILED_CLEANUP_FAILED"
"UPDATE_FAILED"
"UPDATE_COMPLETE_CLEANUP_FAILED"
statusMessage
— (String
)A service status message.
templateName
— required — (String
)The name of the service template.
-
(AWS.Response)
—
Returns:
deleteServiceSyncConfig(params = {}, callback) ⇒ AWS.Request
Delete the Proton Ops file.
Service Reference:
Examples:
Calling the deleteServiceSyncConfig operation
var params = { serviceName: 'STRING_VALUE' /* required */ }; proton.deleteServiceSyncConfig(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
serviceName
— (String
)The name of the service that you want to delete the service sync configuration for.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:serviceSyncConfig
— (map
)The detailed data for the service sync config.
branch
— required — (String
)The name of the code repository branch that holds the service code Proton will sync with.
filePath
— required — (String
)The file path to the service sync configuration file.
repositoryName
— required — (String
)The name of the code repository that holds the service code Proton will sync with.
repositoryProvider
— required — (String
)The name of the repository provider that holds the repository Proton will sync with.
Possible values include:"GITHUB"
"GITHUB_ENTERPRISE"
"BITBUCKET"
serviceName
— required — (String
)The name of the service that the service instance is added to.
-
(AWS.Response)
—
Returns:
deleteServiceTemplate(params = {}, callback) ⇒ AWS.Request
If no other major or minor versions of the service template exist, delete the service template.
Service Reference:
Examples:
Calling the deleteServiceTemplate operation
var params = { name: 'STRING_VALUE' /* required */ }; proton.deleteServiceTemplate(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
name
— (String
)The name of the service template to delete.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:serviceTemplate
— (map
)The detailed data of the service template being deleted.
arn
— required — (String
)The Amazon Resource Name (ARN) of the service template.
createdAt
— required — (Date
)The time when the service template was created.
description
— (String
)A description of the service template.
displayName
— (String
)The service template name as displayed in the developer interface.
encryptionKey
— (String
)The customer provided service template encryption key that's used to encrypt data.
lastModifiedAt
— required — (Date
)The time when the service template was last modified.
name
— required — (String
)The name of the service template.
pipelineProvisioning
— (String
)If
Possible values include:pipelineProvisioning
istrue
, a service pipeline is included in the service template. Otherwise, a service pipeline isn't included in the service template."CUSTOMER_MANAGED"
recommendedVersion
— (String
)The recommended version of the service template.
-
(AWS.Response)
—
Returns:
deleteServiceTemplateVersion(params = {}, callback) ⇒ AWS.Request
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 theRecommended
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.Delete a minor version of a service template if it's not the
Recommended
version. Delete aRecommended
minor version of the service template if no other minor versions of the service template exist. A minor version of a service template is a version that's backwards compatible.Service Reference:
Examples:
Calling the deleteServiceTemplateVersion operation
var params = { majorVersion: 'STRING_VALUE', /* required */ minorVersion: 'STRING_VALUE', /* required */ templateName: 'STRING_VALUE' /* required */ }; proton.deleteServiceTemplateVersion(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
majorVersion
— (String
)The service template major version to delete.
minorVersion
— (String
)The service template minor version to delete.
templateName
— (String
)The name of the service template.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:serviceTemplateVersion
— (map
)The detailed data of the service template version being deleted.
arn
— required — (String
)The Amazon Resource Name (ARN) of the version of a service template.
compatibleEnvironmentTemplates
— required — (Array<map>
)An array of compatible environment template names for the major version of a service template.
majorVersion
— required — (String
)The major version of the compatible environment template.
templateName
— required — (String
)The compatible environment template name.
createdAt
— required — (Date
)The time when the version of a service template was created.
description
— (String
)A description of the version of a service template.
lastModifiedAt
— required — (Date
)The time when the version of a service template was last modified.
majorVersion
— required — (String
)The latest major version that's associated with the version of a service template.
minorVersion
— required — (String
)The minor version of a service template.
recommendedMinorVersion
— (String
)The recommended minor version of the service template.
schema
— (String
)The schema of the version of a service template.
status
— required — (String
)The service template version status.
Possible values include:"REGISTRATION_IN_PROGRESS"
"REGISTRATION_FAILED"
"DRAFT"
"PUBLISHED"
statusMessage
— (String
)A service template version status message.
supportedComponentSources
— (Array<String>
)An array of supported component sources. Components with supported sources can be attached to service instances based on this service template version.
For more information about components, see Proton components in the Proton User Guide.
templateName
— required — (String
)The name of the version of a service template.
-
(AWS.Response)
—
Returns:
deleteTemplateSyncConfig(params = {}, callback) ⇒ AWS.Request
Delete a template sync configuration.
Service Reference:
Examples:
Calling the deleteTemplateSyncConfig operation
var params = { templateName: 'STRING_VALUE', /* required */ templateType: ENVIRONMENT | SERVICE /* required */ }; proton.deleteTemplateSyncConfig(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
templateName
— (String
)The template name.
templateType
— (String
)The template type.
Possible values include:"ENVIRONMENT"
"SERVICE"
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:templateSyncConfig
— (map
)The template sync configuration detail data that's returned by Proton.
branch
— required — (String
)The repository branch.
repositoryName
— required — (String
)The repository name (for example,
myrepos/myrepo
).repositoryProvider
— required — (String
)The repository provider.
Possible values include:"GITHUB"
"GITHUB_ENTERPRISE"
"BITBUCKET"
subdirectory
— (String
)A subdirectory path to your template bundle version.
templateName
— required — (String
)The template name.
templateType
— required — (String
)The template type.
Possible values include:"ENVIRONMENT"
"SERVICE"
-
(AWS.Response)
—
Returns:
getAccountSettings(params = {}, callback) ⇒ AWS.Request
Get detail data for Proton account-wide settings.
Service Reference:
Examples:
Calling the getAccountSettings operation
var params = { }; proton.getAccountSettings(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
- params (Object) (defaults to: {})
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:accountSettings
— (map
)The Proton pipeline service role detail data that's returned by Proton.
pipelineCodebuildRoleArn
— (String
)The Amazon Resource Name (ARN) of the service role that Proton uses for provisioning pipelines. Proton assumes this role for CodeBuild-based provisioning.
pipelineProvisioningRepository
— (map
)The linked repository for pipeline provisioning. Required 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.
arn
— required — (String
)The Amazon Resource Name (ARN) of the linked repository.
branch
— required — (String
)The repository branch.
name
— required — (String
)The repository name.
provider
— required — (String
)The repository provider.
Possible values include:"GITHUB"
"GITHUB_ENTERPRISE"
"BITBUCKET"
pipelineServiceRoleArn
— (String
)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.
-
(AWS.Response)
—
Returns:
getComponent(params = {}, callback) ⇒ AWS.Request
Get detailed data for a component.
For more information about components, see Proton components in the Proton User Guide.
Service Reference:
Examples:
Calling the getComponent operation
var params = { name: 'STRING_VALUE' /* required */ }; proton.getComponent(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
name
— (String
)The name of the component that you want to get the detailed data for.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:component
— (map
)The detailed data of the requested component.
arn
— required — (String
)The Amazon Resource Name (ARN) of the component.
createdAt
— required — (Date
)The time when the component was created.
deploymentStatus
— required — (String
)The component deployment status.
Possible values include:"IN_PROGRESS"
"FAILED"
"SUCCEEDED"
"DELETE_IN_PROGRESS"
"DELETE_FAILED"
"DELETE_COMPLETE"
"CANCELLING"
"CANCELLED"
deploymentStatusMessage
— (String
)The message associated with the component deployment status.
description
— (String
)A description of the component.
environmentName
— required — (String
)The name of the Proton environment that this component is associated with.
lastAttemptedDeploymentId
— (String
)The ID of the last attempted deployment of this component.
lastClientRequestToken
— (String
)The last token the client requested.
lastDeploymentAttemptedAt
— (Date
)The time when a deployment of the component was last attempted.
lastDeploymentSucceededAt
— (Date
)The time when the component was last deployed successfully.
lastModifiedAt
— required — (Date
)The time when the component was last modified.
lastSucceededDeploymentId
— (String
)The ID of the last successful deployment of this component.
name
— required — (String
)The name of the component.
serviceInstanceName
— (String
)The name of the service instance that this component is attached to. Provided when a component is attached to a service instance.
serviceName
— (String
)The name of the service that
serviceInstanceName
is associated with. Provided when a component is attached to a service instance.serviceSpec
— (String
)The service spec that the component uses to access service inputs. Provided when a component is attached to a service instance.
-
(AWS.Response)
—
Returns:
Waiter Resource States:
getDeployment(params = {}, callback) ⇒ AWS.Request
Get detailed data for a deployment.
Service Reference:
Examples:
Calling the getDeployment operation
var params = { id: 'STRING_VALUE', /* required */ componentName: 'STRING_VALUE', environmentName: 'STRING_VALUE', serviceInstanceName: 'STRING_VALUE', serviceName: 'STRING_VALUE' }; proton.getDeployment(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
componentName
— (String
)The name of a component that you want to get the detailed data for.
environmentName
— (String
)The name of a environment that you want to get the detailed data for.
id
— (String
)The ID of the deployment that you want to get the detailed data for.
serviceInstanceName
— (String
)The name of the service instance associated with the given deployment ID.
serviceName
must be specified to identify the service instance.serviceName
— (String
)The name of the service associated with the given deployment ID.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:deployment
— (map
)The detailed data of the requested deployment.
arn
— required — (String
)The Amazon Resource Name (ARN) of the deployment.
completedAt
— (Date
)The date and time the deployment was completed.
componentName
— (String
)The name of the component associated with this deployment.
createdAt
— required — (Date
)The date and time the deployment was created.
deploymentStatus
— required — (String
)The status of the deployment.
Possible values include:"IN_PROGRESS"
"FAILED"
"SUCCEEDED"
"DELETE_IN_PROGRESS"
"DELETE_FAILED"
"DELETE_COMPLETE"
"CANCELLING"
"CANCELLED"
deploymentStatusMessage
— (String
)The deployment status message.
environmentName
— required — (String
)The name of the environment associated with this deployment.
id
— required — (String
)The ID of the deployment.
initialState
— (map
)The initial state of the target resource at the time of the deployment.
component
— (map
)The state of the component associated with the deployment.
serviceInstanceName
— (String
)The name of the service instance that this component is attached to. Provided when a component is attached to a service instance.
serviceName
— (String
)The name of the service that
serviceInstanceName
is associated with. Provided when a component is attached to a service instance.serviceSpec
— (String
)The service spec that the component uses to access service inputs. Provided when a component is attached to a service instance.
templateFile
— (String
)The template file used.
environment
— (map
)The state of the environment associated with the deployment.
spec
— (String
)The environment spec that was used to create the environment.
templateMajorVersion
— required — (String
)The major version of the environment template that was used to create the environment.
templateMinorVersion
— required — (String
)The minor version of the environment template that was used to create the environment.
templateName
— required — (String
)The name of the environment template that was used to create the environment.
serviceInstance
— (map
)The state of the service instance associated with the deployment.
lastSuccessfulComponentDeploymentIds
— (Array<String>
)The IDs for the last successful components deployed for this service instance.
lastSuccessfulEnvironmentDeploymentId
— (String
)The ID for the last successful environment deployed for this service instance.
lastSuccessfulServicePipelineDeploymentId
— (String
)The ID for the last successful service pipeline deployed for this service instance.
spec
— required — (String
)The service spec that was used to create the service instance.
templateMajorVersion
— required — (String
)The major version of the service template that was used to create the service pipeline.
templateMinorVersion
— required — (String
)The minor version of the service template that was used to create the service pipeline.
templateName
— required — (String
)The name of the service template that was used to create the service instance.
servicePipeline
— (map
)The state of the service pipeline associated with the deployment.
spec
— (String
)The service spec that was used to create the service pipeline.
templateMajorVersion
— required — (String
)The major version of the service template that was used to create the service pipeline.
templateMinorVersion
— required — (String
)The minor version of the service template that was used to create the service pipeline.
templateName
— required — (String
)The name of the service template that was used to create the service pipeline.
lastAttemptedDeploymentId
— (String
)The ID of the last attempted deployment.
lastModifiedAt
— required — (Date
)The date and time the deployment was last modified.
lastSucceededDeploymentId
— (String
)The ID of the last successful deployment.
serviceInstanceName
— (String
)The name of the deployment's service instance.
serviceName
— (String
)The name of the service in this deployment.
targetArn
— required — (String
)The Amazon Resource Name (ARN) of the target of the deployment.
targetResourceCreatedAt
— required — (Date
)The date and time the depoyment target was created.
targetResourceType
— required — (String
)The resource type of the deployment target. It can be an environment, service, service instance, or component.
Possible values include:"ENVIRONMENT"
"SERVICE_PIPELINE"
"SERVICE_INSTANCE"
"COMPONENT"
targetState
— (map
)The target state of the target resource at the time of the deployment.
component
— (map
)The state of the component associated with the deployment.
serviceInstanceName
— (String
)The name of the service instance that this component is attached to. Provided when a component is attached to a service instance.
serviceName
— (String
)The name of the service that
serviceInstanceName
is associated with. Provided when a component is attached to a service instance.serviceSpec
— (String
)The service spec that the component uses to access service inputs. Provided when a component is attached to a service instance.
templateFile
— (String
)The template file used.
environment
— (map
)The state of the environment associated with the deployment.
spec
— (String
)The environment spec that was used to create the environment.
templateMajorVersion
— required — (String
)The major version of the environment template that was used to create the environment.
templateMinorVersion
— required — (String
)The minor version of the environment template that was used to create the environment.
templateName
— required — (String
)The name of the environment template that was used to create the environment.
serviceInstance
— (map
)The state of the service instance associated with the deployment.
lastSuccessfulComponentDeploymentIds
— (Array<String>
)The IDs for the last successful components deployed for this service instance.
lastSuccessfulEnvironmentDeploymentId
— (String
)The ID for the last successful environment deployed for this service instance.
lastSuccessfulServicePipelineDeploymentId
— (String
)The ID for the last successful service pipeline deployed for this service instance.
spec
— required — (String
)The service spec that was used to create the service instance.
templateMajorVersion
— required — (String
)The major version of the service template that was used to create the service pipeline.
templateMinorVersion
— required — (String
)The minor version of the service template that was used to create the service pipeline.
templateName
— required — (String
)The name of the service template that was used to create the service instance.
servicePipeline
— (map
)The state of the service pipeline associated with the deployment.
spec
— (String
)The service spec that was used to create the service pipeline.
templateMajorVersion
— required — (String
)The major version of the service template that was used to create the service pipeline.
templateMinorVersion
— required — (String
)The minor version of the service template that was used to create the service pipeline.
templateName
— required — (String
)The name of the service template that was used to create the service pipeline.
-
(AWS.Response)
—
Returns:
getEnvironment(params = {}, callback) ⇒ AWS.Request
Get detailed data for an environment.
Service Reference:
Examples:
Calling the getEnvironment operation
var params = { name: 'STRING_VALUE' /* required */ }; proton.getEnvironment(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
name
— (String
)The name of the environment that you want to get the detailed data for.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:environment
— (map
)The detailed data of the requested environment.
arn
— required — (String
)The Amazon Resource Name (ARN) of the environment.
codebuildRoleArn
— (String
)The Amazon Resource Name (ARN) of the IAM service role that allows Proton to provision infrastructure using CodeBuild-based provisioning on your behalf.
componentRoleArn
— (String
)The Amazon Resource Name (ARN) of the IAM service role that Proton uses when provisioning directly defined components in this environment. It determines the scope of infrastructure that a component can provision.
The environment must have a
componentRoleArn
to allow directly defined components to be associated with the environment.For more information about components, see Proton components in the Proton User Guide.
createdAt
— required — (Date
)The time when the environment was created.
deploymentStatus
— required — (String
)The environment deployment status.
Possible values include:"IN_PROGRESS"
"FAILED"
"SUCCEEDED"
"DELETE_IN_PROGRESS"
"DELETE_FAILED"
"DELETE_COMPLETE"
"CANCELLING"
"CANCELLED"
deploymentStatusMessage
— (String
)An environment deployment status message.
description
— (String
)The description of the environment.
environmentAccountConnectionId
— (String
)The ID of the environment account connection that's used to provision infrastructure resources in an environment account.
environmentAccountId
— (String
)The ID of the environment account that the environment infrastructure resources are provisioned in.
lastAttemptedDeploymentId
— (String
)The ID of the last attempted deployment of this environment.
lastDeploymentAttemptedAt
— required — (Date
)The time when a deployment of the environment was last attempted.
lastDeploymentSucceededAt
— required — (Date
)The time when the environment was last deployed successfully.
lastSucceededDeploymentId
— (String
)The ID of the last successful deployment of this environment.
name
— required — (String
)The name of the environment.
protonServiceRoleArn
— (String
)The Amazon Resource Name (ARN) of the Proton service role that allows Proton to make calls to other services on your behalf.
provisioning
— (String
)When included, indicates that the environment template is for customer provisioned and managed infrastructure.
Possible values include:"CUSTOMER_MANAGED"
provisioningRepository
— (map
)The linked repository that you use to host your rendered infrastructure templates for self-managed provisioning. A linked repository is a repository that has been registered with Proton. For more information, see CreateRepository.
arn
— required — (String
)The Amazon Resource Name (ARN) of the linked repository.
branch
— required — (String
)The repository branch.
name
— required — (String
)The repository name.
provider
— required — (String
)The repository provider.
Possible values include:"GITHUB"
"GITHUB_ENTERPRISE"
"BITBUCKET"
spec
— (String
)The environment spec.
templateMajorVersion
— required — (String
)The major version of the environment template.
templateMinorVersion
— required — (String
)The minor version of the environment template.
templateName
— required — (String
)The Amazon Resource Name (ARN) of the environment template.
-
(AWS.Response)
—
Returns:
Waiter Resource States:
getEnvironmentAccountConnection(params = {}, callback) ⇒ AWS.Request
In an environment account, get the detailed data for an environment account connection.
For more information, see Environment account connections in the Proton User guide.
Service Reference:
Examples:
Calling the getEnvironmentAccountConnection operation
var params = { id: 'STRING_VALUE' /* required */ }; proton.getEnvironmentAccountConnection(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
id
— (String
)The ID of the environment account connection that you want to get the detailed data for.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:environmentAccountConnection
— (map
)The detailed data of the requested environment account connection.
arn
— required — (String
)The Amazon Resource Name (ARN) of the environment account connection.
codebuildRoleArn
— (String
)The Amazon Resource Name (ARN) of an IAM service role in the environment account. Proton uses this role to provision infrastructure resources using CodeBuild-based provisioning in the associated environment account.
componentRoleArn
— (String
)The Amazon Resource Name (ARN) of the IAM service role that Proton uses when provisioning directly defined components in the associated environment account. It determines the scope of infrastructure that a component can provision in the account.
The environment account connection must have a
componentRoleArn
to allow directly defined components to be associated with any environments running in the account.For more information about components, see Proton components in the Proton User Guide.
environmentAccountId
— required — (String
)The environment account that's connected to the environment account connection.
environmentName
— required — (String
)The name of the environment that's associated with the environment account connection.
id
— required — (String
)The ID of the environment account connection.
lastModifiedAt
— required — (Date
)The time when the environment account connection was last modified.
managementAccountId
— required — (String
)The ID of the management account that's connected to the environment account connection.
requestedAt
— required — (Date
)The time when the environment account connection request was made.
roleArn
— required — (String
)The IAM service role that's associated with the environment account connection.
status
— required — (String
)The status of the environment account connection.
Possible values include:"PENDING"
"CONNECTED"
"REJECTED"
-
(AWS.Response)
—
Returns:
getEnvironmentTemplate(params = {}, callback) ⇒ AWS.Request
Get detailed data for an environment template.
Service Reference:
Examples:
Calling the getEnvironmentTemplate operation
var params = { name: 'STRING_VALUE' /* required */ }; proton.getEnvironmentTemplate(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
name
— (String
)The name of the environment template that you want to get the detailed data for.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:environmentTemplate
— (map
)The detailed data of the requested environment template.
arn
— required — (String
)The Amazon Resource Name (ARN) of the environment template.
createdAt
— required — (Date
)The time when the environment template was created.
description
— (String
)A description of the environment template.
displayName
— (String
)The name of the environment template as displayed in the developer interface.
encryptionKey
— (String
)The customer provided encryption key for the environment template.
lastModifiedAt
— required — (Date
)The time when the environment template was last modified.
name
— required — (String
)The name of the environment template.
provisioning
— (String
)When included, indicates that the environment template is for customer provisioned and managed infrastructure.
Possible values include:"CUSTOMER_MANAGED"
recommendedVersion
— (String
)The ID of the recommended version of the environment template.
-
(AWS.Response)
—
Returns:
getEnvironmentTemplateVersion(params = {}, callback) ⇒ AWS.Request
Get detailed data for a major or minor version of an environment template.
Service Reference:
Examples:
Calling the getEnvironmentTemplateVersion operation
var params = { majorVersion: 'STRING_VALUE', /* required */ minorVersion: 'STRING_VALUE', /* required */ templateName: 'STRING_VALUE' /* required */ }; proton.getEnvironmentTemplateVersion(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
majorVersion
— (String
)To get environment template major version detail data, include
major Version
.minorVersion
— (String
)To get environment template minor version detail data, include
minorVersion
.templateName
— (String
)The name of the environment template a version of which you want to get detailed data for.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:environmentTemplateVersion
— (map
)The detailed data of the requested environment template version.
arn
— required — (String
)The Amazon Resource Name (ARN) of the version of an environment template.
createdAt
— required — (Date
)The time when the version of an environment template was created.
description
— (String
)A description of the minor version of an environment template.
lastModifiedAt
— required — (Date
)The time when the version of an environment template was last modified.
majorVersion
— required — (String
)The latest major version that's associated with the version of an environment template.
minorVersion
— required — (String
)The minor version of an environment template.
recommendedMinorVersion
— (String
)The recommended minor version of the environment template.
schema
— (String
)The schema of the version of an environment template.
status
— required — (String
)The status of the version of an environment template.
Possible values include:"REGISTRATION_IN_PROGRESS"
"REGISTRATION_FAILED"
"DRAFT"
"PUBLISHED"
statusMessage
— (String
)The status message of the version of an environment template.
templateName
— required — (String
)The name of the version of an environment template.
-
(AWS.Response)
—
Returns:
Waiter Resource States:
getRepository(params = {}, callback) ⇒ AWS.Request
Get detail data for a linked repository.
Service Reference:
Examples:
Calling the getRepository operation
var params = { name: 'STRING_VALUE', /* required */ provider: GITHUB | GITHUB_ENTERPRISE | BITBUCKET /* required */ }; proton.getRepository(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
name
— (String
)The repository name, for example
myrepos/myrepo
.provider
— (String
)The repository provider.
Possible values include:"GITHUB"
"GITHUB_ENTERPRISE"
"BITBUCKET"
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:repository
— (map
)The repository link's detail data that's returned by Proton.
arn
— required — (String
)The Amazon Resource Name (ARN) of the linked repository.
connectionArn
— required — (String
)The Amazon Resource Name (ARN) of your AWS CodeStar connection that connects Proton to your repository provider account.
encryptionKey
— (String
)Your customer Amazon Web Services KMS encryption key.
name
— required — (String
)The repository name.
provider
— required — (String
)The repository provider.
Possible values include:"GITHUB"
"GITHUB_ENTERPRISE"
"BITBUCKET"
-
(AWS.Response)
—
Returns:
getRepositorySyncStatus(params = {}, callback) ⇒ AWS.Request
Get the sync status of a repository used for Proton template sync. For more information about template sync, see .
Note: A repository sync status isn't tied to the Proton Repository resource (or any other Proton resource). Therefore, tags on an Proton Repository resource have no effect on this action. Specifically, you can't use these tags to control access to this action using Attribute-based access control (ABAC). For more information about ABAC, see ABAC in the Proton User Guide.Service Reference:
Examples:
Calling the getRepositorySyncStatus operation
var params = { branch: 'STRING_VALUE', /* required */ repositoryName: 'STRING_VALUE', /* required */ repositoryProvider: GITHUB | GITHUB_ENTERPRISE | BITBUCKET, /* required */ syncType: TEMPLATE_SYNC | SERVICE_SYNC /* required */ }; proton.getRepositorySyncStatus(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
branch
— (String
)The repository branch.
repositoryName
— (String
)The repository name.
repositoryProvider
— (String
)The repository provider.
Possible values include:"GITHUB"
"GITHUB_ENTERPRISE"
"BITBUCKET"
syncType
— (String
)The repository sync type.
Possible values include:"TEMPLATE_SYNC"
"SERVICE_SYNC"
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:latestSync
— (map
)The repository sync status detail data that's returned by Proton.
events
— required — (Array<map>
)Detail data for sync attempt events.
event
— required — (String
)Event detail for a repository sync attempt.
externalId
— (String
)The external ID of the sync event.
time
— required — (Date
)The time that the sync event occurred.
type
— required — (String
)The type of event.
startedAt
— required — (Date
)The time when the sync attempt started.
status
— required — (String
)The sync attempt status.
Possible values include:"INITIATED"
"IN_PROGRESS"
"SUCCEEDED"
"FAILED"
"QUEUED"
-
(AWS.Response)
—
Returns:
getResourcesSummary(params = {}, callback) ⇒ AWS.Request
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
, andserviceTemplates
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.
Service Reference:
Examples:
Calling the getResourcesSummary operation
var params = { }; proton.getResourcesSummary(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
- params (Object) (defaults to: {})
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:counts
— (map
)Summary counts of each Proton resource type.
components
— (map
)The total number of components in the Amazon Web Services account.
The semantics of the
components
field are different from the semantics of results for other infrastructure-provisioning resources. That's because at this time components don't have associated templates, therefore they don't have the concept of staleness. Thecomponents
object will only containtotal
andfailed
members.behindMajor
— (Integer
)The number of resources of this type in the Amazon Web Services account that need a major template version update.
behindMinor
— (Integer
)The number of resources of this type in the Amazon Web Services account that need a minor template version update.
failed
— (Integer
)The number of resources of this type in the Amazon Web Services account that failed to deploy.
total
— required — (Integer
)The total number of resources of this type in the Amazon Web Services account.
upToDate
— (Integer
)The number of resources of this type in the Amazon Web Services account that are up-to-date with their template.
environmentTemplates
— (map
)The total number of environment templates in the Amazon Web Services account. The
environmentTemplates
object will only containtotal
members.behindMajor
— (Integer
)The number of resources of this type in the Amazon Web Services account that need a major template version update.
behindMinor
— (Integer
)The number of resources of this type in the Amazon Web Services account that need a minor template version update.
failed
— (Integer
)The number of resources of this type in the Amazon Web Services account that failed to deploy.
total
— required — (Integer
)The total number of resources of this type in the Amazon Web Services account.
upToDate
— (Integer
)The number of resources of this type in the Amazon Web Services account that are up-to-date with their template.
environments
— (map
)The staleness counts for Proton environments in the Amazon Web Services account. The
environments
object will only containtotal
members.behindMajor
— (Integer
)The number of resources of this type in the Amazon Web Services account that need a major template version update.
behindMinor
— (Integer
)The number of resources of this type in the Amazon Web Services account that need a minor template version update.
failed
— (Integer
)The number of resources of this type in the Amazon Web Services account that failed to deploy.
total
— required — (Integer
)The total number of resources of this type in the Amazon Web Services account.
upToDate
— (Integer
)The number of resources of this type in the Amazon Web Services account that are up-to-date with their template.
pipelines
— (map
)The staleness counts for Proton pipelines in the Amazon Web Services account.
behindMajor
— (Integer
)The number of resources of this type in the Amazon Web Services account that need a major template version update.
behindMinor
— (Integer
)The number of resources of this type in the Amazon Web Services account that need a minor template version update.
failed
— (Integer
)The number of resources of this type in the Amazon Web Services account that failed to deploy.
total
— required — (Integer
)The total number of resources of this type in the Amazon Web Services account.
upToDate
— (Integer
)The number of resources of this type in the Amazon Web Services account that are up-to-date with their template.
serviceInstances
— (map
)The staleness counts for Proton service instances in the Amazon Web Services account.
behindMajor
— (Integer
)The number of resources of this type in the Amazon Web Services account that need a major template version update.
behindMinor
— (Integer
)The number of resources of this type in the Amazon Web Services account that need a minor template version update.
failed
— (Integer
)The number of resources of this type in the Amazon Web Services account that failed to deploy.
total
— required — (Integer
)The total number of resources of this type in the Amazon Web Services account.
upToDate
— (Integer
)The number of resources of this type in the Amazon Web Services account that are up-to-date with their template.
serviceTemplates
— (map
)The total number of service templates in the Amazon Web Services account. The
serviceTemplates
object will only containtotal
members.behindMajor
— (Integer
)The number of resources of this type in the Amazon Web Services account that need a major template version update.
behindMinor
— (Integer
)The number of resources of this type in the Amazon Web Services account that need a minor template version update.
failed
— (Integer
)The number of resources of this type in the Amazon Web Services account that failed to deploy.
total
— required — (Integer
)The total number of resources of this type in the Amazon Web Services account.
upToDate
— (Integer
)The number of resources of this type in the Amazon Web Services account that are up-to-date with their template.
services
— (map
)The staleness counts for Proton services in the Amazon Web Services account.
behindMajor
— (Integer
)The number of resources of this type in the Amazon Web Services account that need a major template version update.
behindMinor
— (Integer
)The number of resources of this type in the Amazon Web Services account that need a minor template version update.
failed
— (Integer
)The number of resources of this type in the Amazon Web Services account that failed to deploy.
total
— required — (Integer
)The total number of resources of this type in the Amazon Web Services account.
upToDate
— (Integer
)The number of resources of this type in the Amazon Web Services account that are up-to-date with their template.
-
(AWS.Response)
—
Returns:
getService(params = {}, callback) ⇒ AWS.Request
Get detailed data for a service.
Service Reference:
Examples:
Calling the getService operation
var params = { name: 'STRING_VALUE' /* required */ }; proton.getService(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
name
— (String
)The name of the service that you want to get the detailed data for.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:service
— (map
)The detailed data of the requested service.
arn
— required — (String
)The Amazon Resource Name (ARN) of the service.
branchName
— (String
)The name of the code repository branch that holds the code that's deployed in Proton.
createdAt
— required — (Date
)The time when the service was created.
description
— (String
)A description of the service.
lastModifiedAt
— required — (Date
)The time when the service was last modified.
name
— required — (String
)The name of the service.
pipeline
— (map
)The service pipeline detail data.
arn
— required — (String
)The Amazon Resource Name (ARN) of the service pipeline.
createdAt
— required — (Date
)The time when the service pipeline was created.
deploymentStatus
— required — (String
)The deployment status of the service pipeline.
Possible values include:"IN_PROGRESS"
"FAILED"
"SUCCEEDED"
"DELETE_IN_PROGRESS"
"DELETE_FAILED"
"DELETE_COMPLETE"
"CANCELLING"
"CANCELLED"
deploymentStatusMessage
— (String
)A service pipeline deployment status message.
lastAttemptedDeploymentId
— (String
)The ID of the last attempted deployment of this service pipeline.
lastDeploymentAttemptedAt
— required — (Date
)The time when a deployment of the service pipeline was last attempted.
lastDeploymentSucceededAt
— required — (Date
)The time when the service pipeline was last deployed successfully.
lastSucceededDeploymentId
— (String
)The ID of the last successful deployment of this service pipeline.
spec
— (String
)The service spec that was used to create the service pipeline.
templateMajorVersion
— required — (String
)The major version of the service template that was used to create the service pipeline.
templateMinorVersion
— required — (String
)The minor version of the service template that was used to create the service pipeline.
templateName
— required — (String
)The name of the service template that was used to create the service pipeline.
repositoryConnectionArn
— (String
)The Amazon Resource Name (ARN) of the repository connection. For more information, see Setting up an AWS CodeStar connection in the Proton User Guide.
repositoryId
— (String
)The ID of the source code repository.
spec
— required — (String
)The formatted specification that defines the service.
status
— required — (String
)The status of the service.
Possible values include:"CREATE_IN_PROGRESS"
"CREATE_FAILED_CLEANUP_IN_PROGRESS"
"CREATE_FAILED_CLEANUP_COMPLETE"
"CREATE_FAILED_CLEANUP_FAILED"
"CREATE_FAILED"
"ACTIVE"
"DELETE_IN_PROGRESS"
"DELETE_FAILED"
"UPDATE_IN_PROGRESS"
"UPDATE_FAILED_CLEANUP_IN_PROGRESS"
"UPDATE_FAILED_CLEANUP_COMPLETE"
"UPDATE_FAILED_CLEANUP_FAILED"
"UPDATE_FAILED"
"UPDATE_COMPLETE_CLEANUP_FAILED"
statusMessage
— (String
)A service status message.
templateName
— required — (String
)The name of the service template.
-
(AWS.Response)
—
Returns:
Waiter Resource States:
getServiceInstance(params = {}, callback) ⇒ AWS.Request
Get detailed data for a service instance. A service instance is an instantiation of service template and it runs in a specific environment.
Service Reference:
Examples:
Calling the getServiceInstance operation
var params = { name: 'STRING_VALUE', /* required */ serviceName: 'STRING_VALUE' /* required */ }; proton.getServiceInstance(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
name
— (String
)The name of a service instance that you want to get the detailed data for.
serviceName
— (String
)The name of the service that you want the service instance input for.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:serviceInstance
— (map
)The detailed data of the requested service instance.
arn
— required — (String
)The Amazon Resource Name (ARN) of the service instance.
createdAt
— required — (Date
)The time when the service instance was created.
deploymentStatus
— required — (String
)The service instance deployment status.
Possible values include:"IN_PROGRESS"
"FAILED"
"SUCCEEDED"
"DELETE_IN_PROGRESS"
"DELETE_FAILED"
"DELETE_COMPLETE"
"CANCELLING"
"CANCELLED"
deploymentStatusMessage
— (String
)The message associated with the service instance deployment status.
environmentName
— required — (String
)The name of the environment that the service instance was deployed into.
lastAttemptedDeploymentId
— (String
)The ID of the last attempted deployment of this service instance.
lastClientRequestToken
— (String
)The last client request token received.
lastDeploymentAttemptedAt
— required — (Date
)The time when a deployment of the service instance was last attempted.
lastDeploymentSucceededAt
— required — (Date
)The time when the service instance was last deployed successfully.
lastSucceededDeploymentId
— (String
)The ID of the last successful deployment of this service instance.
name
— required — (String
)The name of the service instance.
serviceName
— required — (String
)The name of the service that the service instance belongs to.
spec
— (String
)The service spec that was used to create the service instance.
templateMajorVersion
— required — (String
)The major version of the service template that was used to create the service instance.
templateMinorVersion
— required — (String
)The minor version of the service template that was used to create the service instance.
templateName
— required — (String
)The name of the service template that was used to create the service instance.
-
(AWS.Response)
—
Returns:
Waiter Resource States:
getServiceInstanceSyncStatus(params = {}, callback) ⇒ AWS.Request
Get the status of the synced service instance.
Service Reference:
Examples:
Calling the getServiceInstanceSyncStatus operation
var params = { serviceInstanceName: 'STRING_VALUE', /* required */ serviceName: 'STRING_VALUE' /* required */ }; proton.getServiceInstanceSyncStatus(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
serviceInstanceName
— (String
)The name of the service instance that you want the sync status input for.
serviceName
— (String
)The name of the service that the service instance belongs to.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:desiredState
— (map
)The service instance sync desired state that's returned by Proton
branch
— required — (String
)The repository branch.
directory
— required — (String
)The repository directory changed by a commit and push that activated the sync attempt.
repositoryName
— required — (String
)The repository name.
repositoryProvider
— required — (String
)The repository provider.
Possible values include:"GITHUB"
"GITHUB_ENTERPRISE"
"BITBUCKET"
sha
— required — (String
)The secure hash algorithm (SHA) hash for the revision.
latestSuccessfulSync
— (map
)The detailed data of the latest successful sync with the service instance.
events
— required — (Array<map>
)An array of events with detail data.
event
— required — (String
)A resource sync event.
externalId
— (String
)The external ID for the event.
time
— required — (Date
)The time when the event occurred.
type
— required — (String
)The type of event.
initialRevision
— required — (map
)Detail data for the initial repository commit, path and push.
branch
— required — (String
)The repository branch.
directory
— required — (String
)The repository directory changed by a commit and push that activated the sync attempt.
repositoryName
— required — (String
)The repository name.
repositoryProvider
— required — (String
)The repository provider.
Possible values include:"GITHUB"
"GITHUB_ENTERPRISE"
"BITBUCKET"
sha
— required — (String
)The secure hash algorithm (SHA) hash for the revision.
startedAt
— required — (Date
)The time when the sync attempt started.
status
— required — (String
)The status of the sync attempt.
Possible values include:"INITIATED"
"IN_PROGRESS"
"SUCCEEDED"
"FAILED"
target
— required — (String
)The resource that is synced to.
targetRevision
— required — (map
)Detail data for the target revision.
branch
— required — (String
)The repository branch.
directory
— required — (String
)The repository directory changed by a commit and push that activated the sync attempt.
repositoryName
— required — (String
)The repository name.
repositoryProvider
— required — (String
)The repository provider.
Possible values include:"GITHUB"
"GITHUB_ENTERPRISE"
"BITBUCKET"
sha
— required — (String
)The secure hash algorithm (SHA) hash for the revision.
latestSync
— (map
)The detailed data of the latest sync with the service instance.
events
— required — (Array<map>
)An array of events with detail data.
event
— required — (String
)A resource sync event.
externalId
— (String
)The external ID for the event.
time
— required — (Date
)The time when the event occurred.
type
— required — (String
)The type of event.
initialRevision
— required — (map
)Detail data for the initial repository commit, path and push.
branch
— required — (String
)The repository branch.
directory
— required — (String
)The repository directory changed by a commit and push that activated the sync attempt.
repositoryName
— required — (String
)The repository name.
repositoryProvider
— required — (String
)The repository provider.
Possible values include:"GITHUB"
"GITHUB_ENTERPRISE"
"BITBUCKET"
sha
— required — (String
)The secure hash algorithm (SHA) hash for the revision.
startedAt
— required — (Date
)The time when the sync attempt started.
status
— required — (String
)The status of the sync attempt.
Possible values include:"INITIATED"
"IN_PROGRESS"
"SUCCEEDED"
"FAILED"
target
— required — (String
)The resource that is synced to.
targetRevision
— required — (map
)Detail data for the target revision.
branch
— required — (String
)The repository branch.
directory
— required — (String
)The repository directory changed by a commit and push that activated the sync attempt.
repositoryName
— required — (String
)The repository name.
repositoryProvider
— required — (String
)The repository provider.
Possible values include:"GITHUB"
"GITHUB_ENTERPRISE"
"BITBUCKET"
sha
— required — (String
)The secure hash algorithm (SHA) hash for the revision.
-
(AWS.Response)
—
Returns:
getServiceSyncBlockerSummary(params = {}, callback) ⇒ AWS.Request
Get detailed data for the service sync blocker summary.
Service Reference:
Examples:
Calling the getServiceSyncBlockerSummary operation
var params = { serviceName: 'STRING_VALUE', /* required */ serviceInstanceName: 'STRING_VALUE' }; proton.getServiceSyncBlockerSummary(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
serviceInstanceName
— (String
)The name of the service instance that you want to get the service sync blocker summary for. If given bothe the instance name and the service name, only the instance is blocked.
serviceName
— (String
)The name of the service that you want to get the service sync blocker summary for. If given only the service name, all instances are blocked.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:serviceSyncBlockerSummary
— (map
)The detailed data of the requested service sync blocker summary.
latestBlockers
— (Array<map>
)The latest active blockers for the synced service.
contexts
— (Array<map>
)The contexts for the sync blocker.
key
— required — (String
)The key for the sync blocker context.
value
— required — (String
)The value of the sync blocker context.
createdAt
— required — (Date
)The time when the sync blocker was created.
createdReason
— required — (String
)The reason why the sync blocker was created.
id
— required — (String
)The ID of the sync blocker.
resolvedAt
— (Date
)The time the sync blocker was resolved.
resolvedReason
— (String
)The reason the sync blocker was resolved.
status
— required — (String
)The status of the sync blocker.
Possible values include:"ACTIVE"
"RESOLVED"
type
— required — (String
)The type of the sync blocker.
Possible values include:"AUTOMATED"
serviceInstanceName
— (String
)The name of the service instance that you want sync your service configuration with.
serviceName
— required — (String
)The name of the service that you want to get the sync blocker summary for. If given a service instance name and a service name, it will return the blockers only applying to the instance that is blocked.
If given only a service name, it will return the blockers that apply to all of the instances. In order to get the blockers for a single instance, you will need to make two distinct calls, one to get the sync blocker summary for the service and the other to get the sync blocker for the service instance.
-
(AWS.Response)
—
Returns:
getServiceSyncConfig(params = {}, callback) ⇒ AWS.Request
Get detailed information for the service sync configuration.
Service Reference:
Examples:
Calling the getServiceSyncConfig operation
var params = { serviceName: 'STRING_VALUE' /* required */ }; proton.getServiceSyncConfig(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
serviceName
— (String
)The name of the service that you want to get the service sync configuration for.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:serviceSyncConfig
— (map
)The detailed data of the requested service sync configuration.
branch
— required — (String
)The name of the code repository branch that holds the service code Proton will sync with.
filePath
— required — (String
)The file path to the service sync configuration file.
repositoryName
— required — (String
)The name of the code repository that holds the service code Proton will sync with.
repositoryProvider
— required — (String
)The name of the repository provider that holds the repository Proton will sync with.
Possible values include:"GITHUB"
"GITHUB_ENTERPRISE"
"BITBUCKET"
serviceName
— required — (String
)The name of the service that the service instance is added to.
-
(AWS.Response)
—
Returns:
getServiceTemplate(params = {}, callback) ⇒ AWS.Request
Get detailed data for a service template.
Service Reference:
Examples:
Calling the getServiceTemplate operation
var params = { name: 'STRING_VALUE' /* required */ }; proton.getServiceTemplate(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
name
— (String
)The name of the service template that you want to get detailed data for.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:serviceTemplate
— (map
)The detailed data of the requested service template.
arn
— required — (String
)The Amazon Resource Name (ARN) of the service template.
createdAt
— required — (Date
)The time when the service template was created.
description
— (String
)A description of the service template.
displayName
— (String
)The service template name as displayed in the developer interface.
encryptionKey
— (String
)The customer provided service template encryption key that's used to encrypt data.
lastModifiedAt
— required — (Date
)The time when the service template was last modified.
name
— required — (String
)The name of the service template.
pipelineProvisioning
— (String
)If
Possible values include:pipelineProvisioning
istrue
, a service pipeline is included in the service template. Otherwise, a service pipeline isn't included in the service template."CUSTOMER_MANAGED"
recommendedVersion
— (String
)The recommended version of the service template.
-
(AWS.Response)
—
Returns:
getServiceTemplateVersion(params = {}, callback) ⇒ AWS.Request
Get detailed data for a major or minor version of a service template.
Service Reference:
Examples:
Calling the getServiceTemplateVersion operation
var params = { majorVersion: 'STRING_VALUE', /* required */ minorVersion: 'STRING_VALUE', /* required */ templateName: 'STRING_VALUE' /* required */ }; proton.getServiceTemplateVersion(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
majorVersion
— (String
)To get service template major version detail data, include
major Version
.minorVersion
— (String
)To get service template minor version detail data, include
minorVersion
.templateName
— (String
)The name of the service template a version of which you want to get detailed data for.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:serviceTemplateVersion
— (map
)The detailed data of the requested service template version.
arn
— required — (String
)The Amazon Resource Name (ARN) of the version of a service template.
compatibleEnvironmentTemplates
— required — (Array<map>
)An array of compatible environment template names for the major version of a service template.
majorVersion
— required — (String
)The major version of the compatible environment template.
templateName
— required — (String
)The compatible environment template name.
createdAt
— required — (Date
)The time when the version of a service template was created.
description
— (String
)A description of the version of a service template.
lastModifiedAt
— required — (Date
)The time when the version of a service template was last modified.
majorVersion
— required — (String
)The latest major version that's associated with the version of a service template.
minorVersion
— required — (String
)The minor version of a service template.
recommendedMinorVersion
— (String
)The recommended minor version of the service template.
schema
— (String
)The schema of the version of a service template.
status
— required — (String
)The service template version status.
Possible values include:"REGISTRATION_IN_PROGRESS"
"REGISTRATION_FAILED"
"DRAFT"
"PUBLISHED"
statusMessage
— (String
)A service template version status message.
supportedComponentSources
— (Array<String>
)An array of supported component sources. Components with supported sources can be attached to service instances based on this service template version.
For more information about components, see Proton components in the Proton User Guide.
templateName
— required — (String
)The name of the version of a service template.
-
(AWS.Response)
—
Returns:
Waiter Resource States:
getTemplateSyncConfig(params = {}, callback) ⇒ AWS.Request
Get detail data for a template sync configuration.
Service Reference:
Examples:
Calling the getTemplateSyncConfig operation
var params = { templateName: 'STRING_VALUE', /* required */ templateType: ENVIRONMENT | SERVICE /* required */ }; proton.getTemplateSyncConfig(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
templateName
— (String
)The template name.
templateType
— (String
)The template type.
Possible values include:"ENVIRONMENT"
"SERVICE"
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:templateSyncConfig
— (map
)The template sync configuration detail data that's returned by Proton.
branch
— required — (String
)The repository branch.
repositoryName
— required — (String
)The repository name (for example,
myrepos/myrepo
).repositoryProvider
— required — (String
)The repository provider.
Possible values include:"GITHUB"
"GITHUB_ENTERPRISE"
"BITBUCKET"
subdirectory
— (String
)A subdirectory path to your template bundle version.
templateName
— required — (String
)The template name.
templateType
— required — (String
)The template type.
Possible values include:"ENVIRONMENT"
"SERVICE"
-
(AWS.Response)
—
Returns:
getTemplateSyncStatus(params = {}, callback) ⇒ AWS.Request
Get the status of a template sync.
Service Reference:
Examples:
Calling the getTemplateSyncStatus operation
var params = { templateName: 'STRING_VALUE', /* required */ templateType: ENVIRONMENT | SERVICE, /* required */ templateVersion: 'STRING_VALUE' /* required */ }; proton.getTemplateSyncStatus(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
templateName
— (String
)The template name.
templateType
— (String
)The template type.
Possible values include:"ENVIRONMENT"
"SERVICE"
templateVersion
— (String
)The template major version.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:desiredState
— (map
)The template sync desired state that's returned by Proton.
branch
— required — (String
)The repository branch.
directory
— required — (String
)The repository directory changed by a commit and push that activated the sync attempt.
repositoryName
— required — (String
)The repository name.
repositoryProvider
— required — (String
)The repository provider.
Possible values include:"GITHUB"
"GITHUB_ENTERPRISE"
"BITBUCKET"
sha
— required — (String
)The secure hash algorithm (SHA) hash for the revision.
latestSuccessfulSync
— (map
)The details of the last successful sync that's returned by Proton.
events
— required — (Array<map>
)An array of events with detail data.
event
— required — (String
)A resource sync event.
externalId
— (String
)The external ID for the event.
time
— required — (Date
)The time when the event occurred.
type
— required — (String
)The type of event.
initialRevision
— required — (map
)Detail data for the initial repository commit, path and push.
branch
— required — (String
)The repository branch.
directory
— required — (String
)The repository directory changed by a commit and push that activated the sync attempt.
repositoryName
— required — (String
)The repository name.
repositoryProvider
— required — (String
)The repository provider.
Possible values include:"GITHUB"
"GITHUB_ENTERPRISE"
"BITBUCKET"
sha
— required — (String
)The secure hash algorithm (SHA) hash for the revision.
startedAt
— required — (Date
)The time when the sync attempt started.
status
— required — (String
)The status of the sync attempt.
Possible values include:"INITIATED"
"IN_PROGRESS"
"SUCCEEDED"
"FAILED"
target
— required — (String
)The resource that is synced to.
targetRevision
— required — (map
)Detail data for the target revision.
branch
— required — (String
)The repository branch.
directory
— required — (String
)The repository directory changed by a commit and push that activated the sync attempt.
repositoryName
— required — (String
)The repository name.
repositoryProvider
— required — (String
)The repository provider.
Possible values include:"GITHUB"
"GITHUB_ENTERPRISE"
"BITBUCKET"
sha
— required — (String
)The secure hash algorithm (SHA) hash for the revision.
latestSync
— (map
)The details of the last sync that's returned by Proton.
events
— required — (Array<map>
)An array of events with detail data.
event
— required — (String
)A resource sync event.
externalId
— (String
)The external ID for the event.
time
— required — (Date
)The time when the event occurred.
type
— required — (String
)The type of event.
initialRevision
— required — (map
)Detail data for the initial repository commit, path and push.
branch
— required — (String
)The repository branch.
directory
— required — (String
)The repository directory changed by a commit and push that activated the sync attempt.
repositoryName
— required — (String
)The repository name.
repositoryProvider
— required — (String
)The repository provider.
Possible values include:"GITHUB"
"GITHUB_ENTERPRISE"
"BITBUCKET"
sha
— required — (String
)The secure hash algorithm (SHA) hash for the revision.
startedAt
— required — (Date
)The time when the sync attempt started.
status
— required — (String
)The status of the sync attempt.
Possible values include:"INITIATED"
"IN_PROGRESS"
"SUCCEEDED"
"FAILED"
target
— required — (String
)The resource that is synced to.
targetRevision
— required — (map
)Detail data for the target revision.
branch
— required — (String
)The repository branch.
directory
— required — (String
)The repository directory changed by a commit and push that activated the sync attempt.
repositoryName
— required — (String
)The repository name.
repositoryProvider
— required — (String
)The repository provider.
Possible values include:"GITHUB"
"GITHUB_ENTERPRISE"
"BITBUCKET"
sha
— required — (String
)The secure hash algorithm (SHA) hash for the revision.
-
(AWS.Response)
—
Returns:
listComponentOutputs(params = {}, callback) ⇒ AWS.Request
Get a list of component Infrastructure as Code (IaC) outputs.
For more information about components, see Proton components in the Proton User Guide.
Service Reference:
Examples:
Calling the listComponentOutputs operation
var params = { componentName: 'STRING_VALUE', /* required */ deploymentId: 'STRING_VALUE', nextToken: 'STRING_VALUE' }; proton.listComponentOutputs(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
componentName
— (String
)The name of the component whose outputs you want.
deploymentId
— (String
)The ID of the deployment whose outputs you want.
nextToken
— (String
)A token that indicates the location of the next output in the array of outputs, after the list of outputs that was previously requested.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:nextToken
— (String
)A token that indicates the location of the next output in the array of outputs, after the list of outputs that was previously requested.
outputs
— (Array<map>
)An array of component Infrastructure as Code (IaC) outputs.
key
— (String
)The output key.
valueString
— (String
)The output value.
-
(AWS.Response)
—
Returns:
listComponentProvisionedResources(params = {}, callback) ⇒ AWS.Request
List provisioned resources for a component with details.
For more information about components, see Proton components in the Proton User Guide.
Service Reference:
Examples:
Calling the listComponentProvisionedResources operation
var params = { componentName: 'STRING_VALUE', /* required */ nextToken: 'STRING_VALUE' }; proton.listComponentProvisionedResources(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
componentName
— (String
)The name of the component whose provisioned resources you want.
nextToken
— (String
)A token that indicates the location of the next provisioned resource in the array of provisioned resources, after the list of provisioned resources that was previously requested.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:nextToken
— (String
)A token that indicates the location of the next provisioned resource in the array of provisioned resources, after the current requested list of provisioned resources.
provisionedResources
— (Array<map>
)An array of provisioned resources for a component.
identifier
— (String
)The provisioned resource identifier.
name
— (String
)The provisioned resource name.
provisioningEngine
— (String
)The resource provisioning engine. At this time,
CLOUDFORMATION
can be used for Amazon Web Services-managed provisioning, andTERRAFORM
can be used for self-managed provisioning.For more information, see Self-managed provisioning in the Proton User Guide.
Possible values include:"CLOUDFORMATION"
"TERRAFORM"
-
(AWS.Response)
—
Returns:
listComponents(params = {}, callback) ⇒ AWS.Request
List components with summary data. You can filter the result list by environment, service, or a single service instance.
For more information about components, see Proton components in the Proton User Guide.
Service Reference:
Examples:
Calling the listComponents operation
var params = { environmentName: 'STRING_VALUE', maxResults: 'NUMBER_VALUE', nextToken: 'STRING_VALUE', serviceInstanceName: 'STRING_VALUE', serviceName: 'STRING_VALUE' }; proton.listComponents(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
environmentName
— (String
)The name of an environment for result list filtering. Proton returns components associated with the environment or attached to service instances running in it.
maxResults
— (Integer
)The maximum number of components to list.
nextToken
— (String
)A token that indicates the location of the next component in the array of components, after the list of components that was previously requested.
serviceInstanceName
— (String
)The name of a service instance for result list filtering. Proton returns the component attached to the service instance, if any.
serviceName
— (String
)The name of a service for result list filtering. Proton returns components attached to service instances of the service.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:components
— (Array<map>
)An array of components with summary data.
arn
— required — (String
)The Amazon Resource Name (ARN) of the component.
createdAt
— required — (Date
)The time when the component was created.
deploymentStatus
— required — (String
)The component deployment status.
Possible values include:"IN_PROGRESS"
"FAILED"
"SUCCEEDED"
"DELETE_IN_PROGRESS"
"DELETE_FAILED"
"DELETE_COMPLETE"
"CANCELLING"
"CANCELLED"
deploymentStatusMessage
— (String
)The message associated with the component deployment status.
environmentName
— required — (String
)The name of the Proton environment that this component is associated with.
lastAttemptedDeploymentId
— (String
)The ID of the last attempted deployment of this component.
lastDeploymentAttemptedAt
— (Date
)The time when a deployment of the component was last attempted.
lastDeploymentSucceededAt
— (Date
)The time when the component was last deployed successfully.
lastModifiedAt
— required — (Date
)The time when the component was last modified.
lastSucceededDeploymentId
— (String
)The ID of the last successful deployment of this component.
name
— required — (String
)The name of the component.
serviceInstanceName
— (String
)The name of the service instance that this component is attached to. Provided when a component is attached to a service instance.
serviceName
— (String
)The name of the service that
serviceInstanceName
is associated with. Provided when a component is attached to a service instance.
nextToken
— (String
)A token that indicates the location of the next component in the array of components, after the current requested list of components.
-
(AWS.Response)
—
Returns:
listDeployments(params = {}, callback) ⇒ AWS.Request
List deployments. You can filter the result list by environment, service, or a single service instance.
Service Reference:
Examples:
Calling the listDeployments operation
var params = { componentName: 'STRING_VALUE', environmentName: 'STRING_VALUE', maxResults: 'NUMBER_VALUE', nextToken: 'STRING_VALUE', serviceInstanceName: 'STRING_VALUE', serviceName: 'STRING_VALUE' }; proton.listDeployments(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
componentName
— (String
)The name of a component for result list filtering. Proton returns deployments associated with that component.
environmentName
— (String
)The name of an environment for result list filtering. Proton returns deployments associated with the environment.
maxResults
— (Integer
)The maximum number of deployments to list.
nextToken
— (String
)A token that indicates the location of the next deployment in the array of deployment, after the list of deployment that was previously requested.
serviceInstanceName
— (String
)The name of a service instance for result list filtering. Proton returns the deployments associated with the service instance.
serviceName
— (String
)The name of a service for result list filtering. Proton returns deployments associated with service instances of the service.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:deployments
— (Array<map>
)An array of deployment with summary data.
arn
— required — (String
)The Amazon Resource Name (ARN) of the deployment.
completedAt
— (Date
)The date and time the deployment was completed.
componentName
— (String
)The name of the component associated with the deployment.
createdAt
— required — (Date
)The date and time the deployment was created.
deploymentStatus
— required — (String
)The current status of the deployment.
Possible values include:"IN_PROGRESS"
"FAILED"
"SUCCEEDED"
"DELETE_IN_PROGRESS"
"DELETE_FAILED"
"DELETE_COMPLETE"
"CANCELLING"
"CANCELLED"
environmentName
— required — (String
)The name of the environment associated with the deployment.
id
— required — (String
)The ID of the deployment.
lastAttemptedDeploymentId
— (String
)The ID of the last attempted deployment.
lastModifiedAt
— required — (Date
)The date and time the deployment was last modified.
lastSucceededDeploymentId
— (String
)The ID of the last successful deployment.
serviceInstanceName
— (String
)The name of the service instance associated with the deployment.
serviceName
— (String
)The name of the service associated with the deployment.
targetArn
— required — (String
)The Amazon Resource Name (ARN) of the target of the deployment.
targetResourceCreatedAt
— required — (Date
)The date and time the target resource was created.
targetResourceType
— required — (String
)The resource type of the deployment target. It can be an environment, service, service instance, or component.
Possible values include:"ENVIRONMENT"
"SERVICE_PIPELINE"
"SERVICE_INSTANCE"
"COMPONENT"
nextToken
— (String
)A token that indicates the location of the next deployment in the array of deployment, after the current requested list of deployment.
-
(AWS.Response)
—
Returns:
listEnvironmentAccountConnections(params = {}, callback) ⇒ AWS.Request
View a list of environment account connections.
For more information, see Environment account connections in the Proton User guide.
Service Reference:
Examples:
Calling the listEnvironmentAccountConnections operation
var params = { requestedBy: MANAGEMENT_ACCOUNT | ENVIRONMENT_ACCOUNT, /* required */ environmentName: 'STRING_VALUE', maxResults: 'NUMBER_VALUE', nextToken: 'STRING_VALUE', statuses: [ PENDING | CONNECTED | REJECTED, /* more items */ ] }; proton.listEnvironmentAccountConnections(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
environmentName
— (String
)The environment name that's associated with each listed environment account connection.
maxResults
— (Integer
)The maximum number of environment account connections to list.
nextToken
— (String
)A token that indicates the location of the next environment account connection in the array of environment account connections, after the list of environment account connections that was previously requested.
requestedBy
— (String
)The type of account making the
Possible values include:ListEnvironmentAccountConnections
request."MANAGEMENT_ACCOUNT"
"ENVIRONMENT_ACCOUNT"
statuses
— (Array<String>
)The status details for each listed environment account connection.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:environmentAccountConnections
— (Array<map>
)An array of environment account connections with details that's returned by Proton.
arn
— required — (String
)The Amazon Resource Name (ARN) of the environment account connection.
componentRoleArn
— (String
)The Amazon Resource Name (ARN) of the IAM service role that Proton uses when provisioning directly defined components in the associated environment account. It determines the scope of infrastructure that a component can provision in the account.
The environment account connection must have a
componentRoleArn
to allow directly defined components to be associated with any environments running in the account.For more information about components, see Proton components in the Proton User Guide.
environmentAccountId
— required — (String
)The ID of the environment account that's connected to the environment account connection.
environmentName
— required — (String
)The name of the environment that's associated with the environment account connection.
id
— required — (String
)The ID of the environment account connection.
lastModifiedAt
— required — (Date
)The time when the environment account connection was last modified.
managementAccountId
— required — (String
)The ID of the management account that's connected to the environment account connection.
requestedAt
— required — (Date
)The time when the environment account connection request was made.
roleArn
— required — (String
)The IAM service role that's associated with the environment account connection.
status
— required — (String
)The status of the environment account connection.
Possible values include:"PENDING"
"CONNECTED"
"REJECTED"
nextToken
— (String
)A token that indicates the location of the next environment account connection in the array of environment account connections, after the current requested list of environment account connections.
-
(AWS.Response)
—
Returns:
listEnvironmentOutputs(params = {}, callback) ⇒ AWS.Request
List the infrastructure as code outputs for your environment.
Service Reference:
Examples:
Calling the listEnvironmentOutputs operation
var params = { environmentName: 'STRING_VALUE', /* required */ deploymentId: 'STRING_VALUE', nextToken: 'STRING_VALUE' }; proton.listEnvironmentOutputs(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
deploymentId
— (String
)The ID of the deployment whose outputs you want.
environmentName
— (String
)The environment name.
nextToken
— (String
)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 previously requested.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:nextToken
— (String
)A token that indicates the location of the next environment output in the array of environment outputs, after the current requested list of environment outputs.
outputs
— (Array<map>
)An array of environment outputs with detail data.
key
— (String
)The output key.
valueString
— (String
)The output value.
-
(AWS.Response)
—
Returns:
listEnvironmentProvisionedResources(params = {}, callback) ⇒ AWS.Request
List the provisioned resources for your environment.
Service Reference:
Examples:
Calling the listEnvironmentProvisionedResources operation
var params = { environmentName: 'STRING_VALUE', /* required */ nextToken: 'STRING_VALUE' }; proton.listEnvironmentProvisionedResources(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
environmentName
— (String
)The environment name.
nextToken
— (String
)A token that indicates the location of the next environment provisioned resource in the array of environment provisioned resources, after the list of environment provisioned resources that was previously requested.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:nextToken
— (String
)A token that indicates the location of the next environment provisioned resource in the array of provisioned resources, after the current requested list of environment provisioned resources.
provisionedResources
— (Array<map>
)An array of environment provisioned resources.
identifier
— (String
)The provisioned resource identifier.
name
— (String
)The provisioned resource name.
provisioningEngine
— (String
)The resource provisioning engine. At this time,
CLOUDFORMATION
can be used for Amazon Web Services-managed provisioning, andTERRAFORM
can be used for self-managed provisioning.For more information, see Self-managed provisioning in the Proton User Guide.
Possible values include:"CLOUDFORMATION"
"TERRAFORM"
-
(AWS.Response)
—
Returns:
listEnvironments(params = {}, callback) ⇒ AWS.Request
List environments with detail data summaries.
Service Reference:
Examples:
Calling the listEnvironments operation
var params = { environmentTemplates: [ { majorVersion: 'STRING_VALUE', /* required */ templateName: 'STRING_VALUE' /* required */ }, /* more items */ ], maxResults: 'NUMBER_VALUE', nextToken: 'STRING_VALUE' }; proton.listEnvironments(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
environmentTemplates
— (Array<map>
)An array of the versions of the environment template.
majorVersion
— required — (String
)Include
majorVersion
to filter search for a major version.templateName
— required — (String
)Include
templateName
to filter search for a template name.
maxResults
— (Integer
)The maximum number of environments to list.
nextToken
— (String
)A token that indicates the location of the next environment in the array of environments, after the list of environments that was previously requested.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:environments
— (Array<map>
)An array of environment detail data summaries.
arn
— required — (String
)The Amazon Resource Name (ARN) of the environment.
componentRoleArn
— (String
)The Amazon Resource Name (ARN) of the IAM service role that Proton uses when provisioning directly defined components in this environment. It determines the scope of infrastructure that a component can provision.
The environment must have a
componentRoleArn
to allow directly defined components to be associated with the environment.For more information about components, see Proton components in the Proton User Guide.
createdAt
— required — (Date
)The time when the environment was created.
deploymentStatus
— required — (String
)The environment deployment status.
Possible values include:"IN_PROGRESS"
"FAILED"
"SUCCEEDED"
"DELETE_IN_PROGRESS"
"DELETE_FAILED"
"DELETE_COMPLETE"
"CANCELLING"
"CANCELLED"
deploymentStatusMessage
— (String
)An environment deployment status message.
description
— (String
)The description of the environment.
environmentAccountConnectionId
— (String
)The ID of the environment account connection that the environment is associated with.
environmentAccountId
— (String
)The ID of the environment account that the environment infrastructure resources are provisioned in.
lastAttemptedDeploymentId
— (String
)The ID of the last attempted deployment of this environment.
lastDeploymentAttemptedAt
— required — (Date
)The time when a deployment of the environment was last attempted.
lastDeploymentSucceededAt
— required — (Date
)The time when the environment was last deployed successfully.
lastSucceededDeploymentId
— (String
)The ID of the last successful deployment of this environment.
name
— required — (String
)The name of the environment.
protonServiceRoleArn
— (String
)The Amazon Resource Name (ARN) of the Proton service role that allows Proton to make calls to other services on your behalf.
provisioning
— (String
)When included, indicates that the environment template is for customer provisioned and managed infrastructure.
Possible values include:"CUSTOMER_MANAGED"
templateMajorVersion
— required — (String
)The major version of the environment template.
templateMinorVersion
— required — (String
)The minor version of the environment template.
templateName
— required — (String
)The name of the environment template.
nextToken
— (String
)A token that indicates the location of the next environment in the array of environments, after the current requested list of environments.
-
(AWS.Response)
—
Returns:
listEnvironmentTemplates(params = {}, callback) ⇒ AWS.Request
List environment templates.
Service Reference:
Examples:
Calling the listEnvironmentTemplates operation
var params = { maxResults: 'NUMBER_VALUE', nextToken: 'STRING_VALUE' }; proton.listEnvironmentTemplates(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
maxResults
— (Integer
)The maximum number of environment templates to list.
nextToken
— (String
)A token that indicates the location of the next environment template in the array of environment templates, after the list of environment templates that was previously requested.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:nextToken
— (String
)A token that indicates the location of the next environment template in the array of environment templates, after the current requested list of environment templates.
templates
— (Array<map>
)An array of environment templates with detail data.
arn
— required — (String
)The Amazon Resource Name (ARN) of the environment template.
createdAt
— required — (Date
)The time when the environment template was created.
description
— (String
)A description of the environment template.
displayName
— (String
)The name of the environment template as displayed in the developer interface.
lastModifiedAt
— required — (Date
)The time when the environment template was last modified.
name
— required — (String
)The name of the environment template.
provisioning
— (String
)When included, indicates that the environment template is for customer provisioned and managed infrastructure.
Possible values include:"CUSTOMER_MANAGED"
recommendedVersion
— (String
)The recommended version of the environment template.
-
(AWS.Response)
—
Returns:
listEnvironmentTemplateVersions(params = {}, callback) ⇒ AWS.Request
List major or minor versions of an environment template with detail data.
Service Reference:
Examples:
Calling the listEnvironmentTemplateVersions operation
var params = { templateName: 'STRING_VALUE', /* required */ majorVersion: 'STRING_VALUE', maxResults: 'NUMBER_VALUE', nextToken: 'STRING_VALUE' }; proton.listEnvironmentTemplateVersions(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
majorVersion
— (String
)To view a list of minor of versions under a major version of an environment template, include
major Version
.To view a list of major versions of an environment template, exclude
major Version
.maxResults
— (Integer
)The maximum number of major or minor versions of an environment template to list.
nextToken
— (String
)A token that indicates the location of the next major or minor version in the array of major or minor versions of an environment template, after the list of major or minor versions that was previously requested.
templateName
— (String
)The name of the environment template.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:nextToken
— (String
)A token that indicates the location of the next major or minor version in the array of major or minor versions of an environment template, after the list of major or minor versions that was previously requested.
templateVersions
— (Array<map>
)An array of major or minor versions of an environment template detail data.
arn
— required — (String
)The Amazon Resource Name (ARN) of the version of an environment template.
createdAt
— required — (Date
)The time when the version of an environment template was created.
description
— (String
)A description of the version of an environment template.
lastModifiedAt
— required — (Date
)The time when the version of an environment template was last modified.
majorVersion
— required — (String
)The latest major version that's associated with the version of an environment template.
minorVersion
— required — (String
)The version of an environment template.
recommendedMinorVersion
— (String
)The recommended minor version of the environment template.
status
— required — (String
)The status of the version of an environment template.
Possible values include:"REGISTRATION_IN_PROGRESS"
"REGISTRATION_FAILED"
"DRAFT"
"PUBLISHED"
statusMessage
— (String
)The status message of the version of an environment template.
templateName
— required — (String
)The name of the environment template.
-
(AWS.Response)
—
Returns:
listRepositories(params = {}, callback) ⇒ AWS.Request
List linked repositories with detail data.
Service Reference:
Examples:
Calling the listRepositories operation
var params = { maxResults: 'NUMBER_VALUE', nextToken: 'STRING_VALUE' }; proton.listRepositories(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
maxResults
— (Integer
)The maximum number of repositories to list.
nextToken
— (String
)A token that indicates the location of the next repository in the array of repositories, after the list of repositories previously requested.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:nextToken
— (String
)A token that indicates the location of the next repository in the array of repositories, after the current requested list of repositories.
repositories
— (Array<map>
)An array of repository links.
arn
— required — (String
)The Amazon Resource Name (ARN) of the linked repository.
connectionArn
— required — (String
)The Amazon Resource Name (ARN) of the of your connection that connects Proton to your repository.
name
— required — (String
)The repository name.
provider
— required — (String
)The repository provider.
Possible values include:"GITHUB"
"GITHUB_ENTERPRISE"
"BITBUCKET"
-
(AWS.Response)
—
Returns:
listRepositorySyncDefinitions(params = {}, callback) ⇒ AWS.Request
List repository sync definitions with detail data.
Service Reference:
Examples:
Calling the listRepositorySyncDefinitions operation
var params = { repositoryName: 'STRING_VALUE', /* required */ repositoryProvider: GITHUB | GITHUB_ENTERPRISE | BITBUCKET, /* required */ syncType: TEMPLATE_SYNC | SERVICE_SYNC, /* required */ nextToken: 'STRING_VALUE' }; proton.listRepositorySyncDefinitions(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
nextToken
— (String
)A token that indicates the location of the next repository sync definition in the array of repository sync definitions, after the list of repository sync definitions previously requested.
repositoryName
— (String
)The repository name.
repositoryProvider
— (String
)The repository provider.
Possible values include:"GITHUB"
"GITHUB_ENTERPRISE"
"BITBUCKET"
syncType
— (String
)The sync type. The only supported value is
Possible values include:TEMPLATE_SYNC
."TEMPLATE_SYNC"
"SERVICE_SYNC"
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:nextToken
— (String
)A token that indicates the location of the next repository sync definition in the array of repository sync definitions, after the current requested list of repository sync definitions.
syncDefinitions
— (Array<map>
)An array of repository sync definitions.
branch
— required — (String
)The repository branch.
directory
— required — (String
)The directory in the repository.
parent
— required — (String
)The resource that is synced from.
target
— required — (String
)The resource that is synced to.
-
(AWS.Response)
—
Returns:
listServiceInstanceOutputs(params = {}, callback) ⇒ AWS.Request
Get a list service of instance Infrastructure as Code (IaC) outputs.
Service Reference:
Examples:
Calling the listServiceInstanceOutputs operation
var params = { serviceInstanceName: 'STRING_VALUE', /* required */ serviceName: 'STRING_VALUE', /* required */ deploymentId: 'STRING_VALUE', nextToken: 'STRING_VALUE' }; proton.listServiceInstanceOutputs(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
deploymentId
— (String
)The ID of the deployment whose outputs you want.
nextToken
— (String
)A token that indicates the location of the next output in the array of outputs, after the list of outputs that was previously requested.
serviceInstanceName
— (String
)The name of the service instance whose outputs you want.
serviceName
— (String
)The name of the service that
serviceInstanceName
is associated to.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:nextToken
— (String
)A token that indicates the location of the next output in the array of outputs, after the current requested list of outputs.
outputs
— (Array<map>
)An array of service instance Infrastructure as Code (IaC) outputs.
key
— (String
)The output key.
valueString
— (String
)The output value.
-
(AWS.Response)
—
Returns:
listServiceInstanceProvisionedResources(params = {}, callback) ⇒ AWS.Request
List provisioned resources for a service instance with details.
Service Reference:
Examples:
Calling the listServiceInstanceProvisionedResources operation
var params = { serviceInstanceName: 'STRING_VALUE', /* required */ serviceName: 'STRING_VALUE', /* required */ nextToken: 'STRING_VALUE' }; proton.listServiceInstanceProvisionedResources(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
nextToken
— (String
)A token that indicates the location of the next provisioned resource in the array of provisioned resources, after the list of provisioned resources that was previously requested.
serviceInstanceName
— (String
)The name of the service instance whose provisioned resources you want.
serviceName
— (String
)The name of the service that
serviceInstanceName
is associated to.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:nextToken
— (String
)A token that indicates the location of the next provisioned resource in the array of provisioned resources, after the current requested list of provisioned resources.
provisionedResources
— (Array<map>
)An array of provisioned resources for a service instance.
identifier
— (String
)The provisioned resource identifier.
name
— (String
)The provisioned resource name.
provisioningEngine
— (String
)The resource provisioning engine. At this time,
CLOUDFORMATION
can be used for Amazon Web Services-managed provisioning, andTERRAFORM
can be used for self-managed provisioning.For more information, see Self-managed provisioning in the Proton User Guide.
Possible values include:"CLOUDFORMATION"
"TERRAFORM"
-
(AWS.Response)
—
Returns:
listServiceInstances(params = {}, callback) ⇒ AWS.Request
List service instances with summary data. This action lists service instances of all services in the Amazon Web Services account.
Service Reference:
Examples:
Calling the listServiceInstances operation
var params = { filters: [ { key: name | deploymentStatus | templateName | serviceName | deployedTemplateVersionStatus | environmentName | lastDeploymentAttemptedAtBefore | lastDeploymentAttemptedAtAfter | createdAtBefore | createdAtAfter, value: 'STRING_VALUE' }, /* more items */ ], maxResults: 'NUMBER_VALUE', nextToken: 'STRING_VALUE', serviceName: 'STRING_VALUE', sortBy: name | deploymentStatus | templateName | serviceName | environmentName | lastDeploymentAttemptedAt | createdAt, sortOrder: ASCENDING | DESCENDING }; proton.listServiceInstances(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
filters
— (Array<map>
)An array of filtering criteria that scope down the result list. By default, all service instances in the Amazon Web Services account are returned.
key
— (String
)The name of a filtering criterion.
Possible values include:"name"
"deploymentStatus"
"templateName"
"serviceName"
"deployedTemplateVersionStatus"
"environmentName"
"lastDeploymentAttemptedAtBefore"
"lastDeploymentAttemptedAtAfter"
"createdAtBefore"
"createdAtAfter"
value
— (String
)A value to filter by.
With the date/time keys (
*At{Before,After}
), the value is a valid RFC 3339 string with no UTC offset and with an optional fractional precision (for example,1985-04-12T23:20:50.52Z
).
maxResults
— (Integer
)The maximum number of service instances to list.
nextToken
— (String
)A token that indicates the location of the next service in the array of service instances, after the list of service instances that was previously requested.
serviceName
— (String
)The name of the service that the service instance belongs to.
sortBy
— (String
)The field that the result list is sorted by.
When you choose to sort by
serviceName
, service instances within each service are sorted by service instance name.Default:
Possible values include:serviceName
"name"
"deploymentStatus"
"templateName"
"serviceName"
"environmentName"
"lastDeploymentAttemptedAt"
"createdAt"
sortOrder
— (String
)Result list sort order.
Default:
Possible values include:ASCENDING
"ASCENDING"
"DESCENDING"
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:nextToken
— (String
)A token that indicates the location of the next service instance in the array of service instances, after the current requested list of service instances.
serviceInstances
— (Array<map>
)An array of service instances with summary data.
arn
— required — (String
)The Amazon Resource Name (ARN) of the service instance.
createdAt
— required — (Date
)The time when the service instance was created.
deploymentStatus
— required — (String
)The service instance deployment status.
Possible values include:"IN_PROGRESS"
"FAILED"
"SUCCEEDED"
"DELETE_IN_PROGRESS"
"DELETE_FAILED"
"DELETE_COMPLETE"
"CANCELLING"
"CANCELLED"
deploymentStatusMessage
— (String
)A service instance deployment status message.
environmentName
— required — (String
)The name of the environment that the service instance was deployed into.
lastAttemptedDeploymentId
— (String
)The ID of the last attempted deployment of this service instance.
lastDeploymentAttemptedAt
— required — (Date
)The time when a deployment of the service was last attempted.
lastDeploymentSucceededAt
— required — (Date
)The time when the service was last deployed successfully.
lastSucceededDeploymentId
— (String
)The ID of the last successful deployment of this service instance.
name
— required — (String
)The name of the service instance.
serviceName
— required — (String
)The name of the service that the service instance belongs to.
templateMajorVersion
— required — (String
)The service instance template major version.
templateMinorVersion
— required — (String
)The service instance template minor version.
templateName
— required — (String
)The name of the service template.
-
(AWS.Response)
—
Returns:
listServicePipelineOutputs(params = {}, callback) ⇒ AWS.Request
Get a list of service pipeline Infrastructure as Code (IaC) outputs.
Service Reference:
Examples:
Calling the listServicePipelineOutputs operation
var params = { serviceName: 'STRING_VALUE', /* required */ deploymentId: 'STRING_VALUE', nextToken: 'STRING_VALUE' }; proton.listServicePipelineOutputs(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
deploymentId
— (String
)The ID of the deployment you want the outputs for.
nextToken
— (String
)A token that indicates the location of the next output in the array of outputs, after the list of outputs that was previously requested.
serviceName
— (String
)The name of the service whose pipeline's outputs you want.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:nextToken
— (String
)A token that indicates the location of the next output in the array of outputs, after the current requested list of outputs.
outputs
— (Array<map>
)An array of service pipeline Infrastructure as Code (IaC) outputs.
key
— (String
)The output key.
valueString
— (String
)The output value.
-
(AWS.Response)
—
Returns:
listServicePipelineProvisionedResources(params = {}, callback) ⇒ AWS.Request
List provisioned resources for a service and pipeline with details.
Service Reference:
Examples:
Calling the listServicePipelineProvisionedResources operation
var params = { serviceName: 'STRING_VALUE', /* required */ nextToken: 'STRING_VALUE' }; proton.listServicePipelineProvisionedResources(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
nextToken
— (String
)A token that indicates the location of the next provisioned resource in the array of provisioned resources, after the list of provisioned resources that was previously requested.
serviceName
— (String
)The name of the service whose pipeline's provisioned resources you want.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:nextToken
— (String
)A token that indicates the location of the next provisioned resource in the array of provisioned resources, after the current requested list of provisioned resources.
provisionedResources
— (Array<map>
)An array of provisioned resources for a service and pipeline.
identifier
— (String
)The provisioned resource identifier.
name
— (String
)The provisioned resource name.
provisioningEngine
— (String
)The resource provisioning engine. At this time,
CLOUDFORMATION
can be used for Amazon Web Services-managed provisioning, andTERRAFORM
can be used for self-managed provisioning.For more information, see Self-managed provisioning in the Proton User Guide.
Possible values include:"CLOUDFORMATION"
"TERRAFORM"
-
(AWS.Response)
—
Returns:
listServices(params = {}, callback) ⇒ AWS.Request
List services with summaries of detail data.
Service Reference:
Examples:
Calling the listServices operation
var params = { maxResults: 'NUMBER_VALUE', nextToken: 'STRING_VALUE' }; proton.listServices(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
maxResults
— (Integer
)The maximum number of services to list.
nextToken
— (String
)A token that indicates the location of the next service in the array of services, after the list of services that was previously requested.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:nextToken
— (String
)A token that indicates the location of the next service in the array of services, after the current requested list of services.
services
— (Array<map>
)An array of services with summaries of detail data.
arn
— required — (String
)The Amazon Resource Name (ARN) of the service.
createdAt
— required — (Date
)The time when the service was created.
description
— (String
)A description of the service.
lastModifiedAt
— required — (Date
)The time when the service was last modified.
name
— required — (String
)The name of the service.
status
— required — (String
)The status of the service.
Possible values include:"CREATE_IN_PROGRESS"
"CREATE_FAILED_CLEANUP_IN_PROGRESS"
"CREATE_FAILED_CLEANUP_COMPLETE"
"CREATE_FAILED_CLEANUP_FAILED"
"CREATE_FAILED"
"ACTIVE"
"DELETE_IN_PROGRESS"
"DELETE_FAILED"
"UPDATE_IN_PROGRESS"
"UPDATE_FAILED_CLEANUP_IN_PROGRESS"
"UPDATE_FAILED_CLEANUP_COMPLETE"
"UPDATE_FAILED_CLEANUP_FAILED"
"UPDATE_FAILED"
"UPDATE_COMPLETE_CLEANUP_FAILED"
statusMessage
— (String
)A service status message.
templateName
— required — (String
)The name of the service template.
-
(AWS.Response)
—
Returns:
listServiceTemplates(params = {}, callback) ⇒ AWS.Request
List service templates with detail data.
Service Reference:
Examples:
Calling the listServiceTemplates operation
var params = { maxResults: 'NUMBER_VALUE', nextToken: 'STRING_VALUE' }; proton.listServiceTemplates(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
maxResults
— (Integer
)The maximum number of service templates to list.
nextToken
— (String
)A token that indicates the location of the next service template in the array of service templates, after the list of service templates previously requested.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:nextToken
— (String
)A token that indicates the location of the next service template in the array of service templates, after the current requested list of service templates.
templates
— (Array<map>
)An array of service templates with detail data.
arn
— required — (String
)The Amazon Resource Name (ARN) of the service template.
createdAt
— required — (Date
)The time when the service template was created.
description
— (String
)A description of the service template.
displayName
— (String
)The service template name as displayed in the developer interface.
lastModifiedAt
— required — (Date
)The time when the service template was last modified.
name
— required — (String
)The name of the service template.
pipelineProvisioning
— (String
)If
Possible values include:pipelineProvisioning
istrue
, a service pipeline is included in the service template, otherwise a service pipeline isn't included in the service template."CUSTOMER_MANAGED"
recommendedVersion
— (String
)The recommended version of the service template.
-
(AWS.Response)
—
Returns:
listServiceTemplateVersions(params = {}, callback) ⇒ AWS.Request
List major or minor versions of a service template with detail data.
Service Reference:
Examples:
Calling the listServiceTemplateVersions operation
var params = { templateName: 'STRING_VALUE', /* required */ majorVersion: 'STRING_VALUE', maxResults: 'NUMBER_VALUE', nextToken: 'STRING_VALUE' }; proton.listServiceTemplateVersions(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
majorVersion
— (String
)To view a list of minor of versions under a major version of a service template, include
major Version
.To view a list of major versions of a service template, exclude
major Version
.maxResults
— (Integer
)The maximum number of major or minor versions of a service template to list.
nextToken
— (String
)A token that indicates the location of the next major or minor version in the array of major or minor versions of a service template, after the list of major or minor versions that was previously requested.
templateName
— (String
)The name of the service template.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:nextToken
— (String
)A token that indicates the location of the next major or minor version in the array of major or minor versions of a service template, after the current requested list of service major or minor versions.
templateVersions
— (Array<map>
)An array of major or minor versions of a service template with detail data.
arn
— required — (String
)The Amazon Resource Name (ARN) of the version of a service template.
createdAt
— required — (Date
)The time when the version of a service template was created.
description
— (String
)A description of the version of a service template.
lastModifiedAt
— required — (Date
)The time when the version of a service template was last modified.
majorVersion
— required — (String
)The latest major version that's associated with the version of a service template.
minorVersion
— required — (String
)The minor version of a service template.
recommendedMinorVersion
— (String
)The recommended minor version of the service template.
status
— required — (String
)The service template minor version status.
Possible values include:"REGISTRATION_IN_PROGRESS"
"REGISTRATION_FAILED"
"DRAFT"
"PUBLISHED"
statusMessage
— (String
)A service template minor version status message.
templateName
— required — (String
)The name of the service template.
-
(AWS.Response)
—
Returns:
listTagsForResource(params = {}, callback) ⇒ AWS.Request
List tags for a resource. For more information, see Proton resources and tagging in the Proton User Guide.
Service Reference:
Examples:
Calling the listTagsForResource operation
var params = { resourceArn: 'STRING_VALUE', /* required */ maxResults: 'NUMBER_VALUE', nextToken: 'STRING_VALUE' }; proton.listTagsForResource(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
maxResults
— (Integer
)The maximum number of tags to list.
nextToken
— (String
)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.
resourceArn
— (String
)The Amazon Resource Name (ARN) of the resource for the listed tags.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:nextToken
— (String
)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.
tags
— (Array<map>
)A list of resource tags with detail data.
key
— required — (String
)The key of the resource tag.
value
— required — (String
)The value of the resource tag.
-
(AWS.Response)
—
Returns:
notifyResourceDeploymentStatusChange(params = {}, callback) ⇒ AWS.Request
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.
Service Reference:
Examples:
Calling the notifyResourceDeploymentStatusChange operation
var params = { resourceArn: 'STRING_VALUE', /* required */ deploymentId: 'STRING_VALUE', outputs: [ { key: 'STRING_VALUE', valueString: 'STRING_VALUE' }, /* more items */ ], status: IN_PROGRESS | FAILED | SUCCEEDED, statusMessage: 'STRING_VALUE' }; proton.notifyResourceDeploymentStatusChange(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
deploymentId
— (String
)The deployment ID for your provisioned resource.
outputs
— (Array<map>
)The provisioned resource state change detail data that's returned by Proton.
key
— (String
)The output key.
valueString
— (String
)The output value.
resourceArn
— (String
)The provisioned resource Amazon Resource Name (ARN).
status
— (String
)The status of your provisioned resource.
Possible values include:"IN_PROGRESS"
"FAILED"
"SUCCEEDED"
statusMessage
— (String
)The deployment status message for your provisioned resource.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
rejectEnvironmentAccountConnection(params = {}, callback) ⇒ AWS.Request
In a management account, reject an environment account connection from another environment account.
After you reject an environment account connection request, you can't accept or use the rejected environment account connection.
You can’t reject an environment account connection that's connected to an environment.
For more information, see Environment account connections in the Proton User guide.
Service Reference:
Examples:
Calling the rejectEnvironmentAccountConnection operation
var params = { id: 'STRING_VALUE' /* required */ }; proton.rejectEnvironmentAccountConnection(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
id
— (String
)The ID of the environment account connection to reject.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:environmentAccountConnection
— (map
)The environment connection account detail data that's returned by Proton.
arn
— required — (String
)The Amazon Resource Name (ARN) of the environment account connection.
codebuildRoleArn
— (String
)The Amazon Resource Name (ARN) of an IAM service role in the environment account. Proton uses this role to provision infrastructure resources using CodeBuild-based provisioning in the associated environment account.
componentRoleArn
— (String
)The Amazon Resource Name (ARN) of the IAM service role that Proton uses when provisioning directly defined components in the associated environment account. It determines the scope of infrastructure that a component can provision in the account.
The environment account connection must have a
componentRoleArn
to allow directly defined components to be associated with any environments running in the account.For more information about components, see Proton components in the Proton User Guide.
environmentAccountId
— required — (String
)The environment account that's connected to the environment account connection.
environmentName
— required — (String
)The name of the environment that's associated with the environment account connection.
id
— required — (String
)The ID of the environment account connection.
lastModifiedAt
— required — (Date
)The time when the environment account connection was last modified.
managementAccountId
— required — (String
)The ID of the management account that's connected to the environment account connection.
requestedAt
— required — (Date
)The time when the environment account connection request was made.
roleArn
— required — (String
)The IAM service role that's associated with the environment account connection.
status
— required — (String
)The status of the environment account connection.
Possible values include:"PENDING"
"CONNECTED"
"REJECTED"
-
(AWS.Response)
—
Returns:
tagResource(params = {}, callback) ⇒ AWS.Request
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.
Service Reference:
Examples:
Calling the tagResource operation
var params = { resourceArn: 'STRING_VALUE', /* required */ tags: [ /* required */ { key: 'STRING_VALUE', /* required */ value: 'STRING_VALUE' /* required */ }, /* more items */ ] }; proton.tagResource(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
resourceArn
— (String
)The Amazon Resource Name (ARN) of the Proton resource to apply customer tags to.
tags
— (Array<map>
)A list of customer tags to apply to the Proton resource.
key
— required — (String
)The key of the resource tag.
value
— required — (String
)The value of the resource tag.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
untagResource(params = {}, callback) ⇒ AWS.Request
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.
Service Reference:
Examples:
Calling the untagResource operation
var params = { resourceArn: 'STRING_VALUE', /* required */ tagKeys: [ /* required */ 'STRING_VALUE', /* more items */ ] }; proton.untagResource(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
resourceArn
— (String
)The Amazon Resource Name (ARN) of the resource to remove customer tags from.
tagKeys
— (Array<String>
)A list of customer tag keys that indicate the customer tags to be removed from the resource.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs.
-
(AWS.Response)
—
Returns:
updateAccountSettings(params = {}, callback) ⇒ AWS.Request
Update Proton settings that are used for multiple services in the Amazon Web Services account.
Service Reference:
Examples:
Calling the updateAccountSettings operation
var params = { deletePipelineProvisioningRepository: true || false, pipelineCodebuildRoleArn: 'STRING_VALUE', pipelineProvisioningRepository: { branch: 'STRING_VALUE', /* required */ name: 'STRING_VALUE', /* required */ provider: GITHUB | GITHUB_ENTERPRISE | BITBUCKET /* required */ }, pipelineServiceRoleArn: 'STRING_VALUE' }; proton.updateAccountSettings(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
deletePipelineProvisioningRepository
— (Boolean
)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.pipelineCodebuildRoleArn
— (String
)The Amazon Resource Name (ARN) of the service role you want to use for provisioning pipelines. Proton assumes this role for CodeBuild-based provisioning.
pipelineProvisioningRepository
— (map
)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
totrue
, and don't setpipelineProvisioningRepository
.branch
— required — (String
)The repository branch.
name
— required — (String
)The repository name.
provider
— required — (String
)The repository provider.
Possible values include:"GITHUB"
"GITHUB_ENTERPRISE"
"BITBUCKET"
pipelineServiceRoleArn
— (String
)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.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:accountSettings
— (map
)The Proton pipeline service role and repository data shared across the Amazon Web Services account.
pipelineCodebuildRoleArn
— (String
)The Amazon Resource Name (ARN) of the service role that Proton uses for provisioning pipelines. Proton assumes this role for CodeBuild-based provisioning.
pipelineProvisioningRepository
— (map
)The linked repository for pipeline provisioning. Required 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.
arn
— required — (String
)The Amazon Resource Name (ARN) of the linked repository.
branch
— required — (String
)The repository branch.
name
— required — (String
)The repository name.
provider
— required — (String
)The repository provider.
Possible values include:"GITHUB"
"GITHUB_ENTERPRISE"
"BITBUCKET"
pipelineServiceRoleArn
— (String
)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.
-
(AWS.Response)
—
Returns:
updateComponent(params = {}, callback) ⇒ AWS.Request
Update a component.
There are a few modes for updating a component. The
deploymentType
field defines the mode.Note: You can't update a component while its deployment status, or the deployment status of a service instance attached to it, isIN_PROGRESS
.For more information about components, see Proton components in the Proton User Guide.
Service Reference:
Examples:
Calling the updateComponent operation
var params = { deploymentType: NONE | CURRENT_VERSION, /* required */ name: 'STRING_VALUE', /* required */ clientToken: 'STRING_VALUE', description: 'STRING_VALUE', serviceInstanceName: 'STRING_VALUE', serviceName: 'STRING_VALUE', serviceSpec: 'STRING_VALUE', templateFile: 'STRING_VALUE' }; proton.updateComponent(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
clientToken
— (String
)The client token for the updated component.
If a token is not provided, the SDK will use a version 4 UUID.deploymentType
— (String
)The deployment type. It defines the mode for updating a component, as follows:
-
NONE
In this mode, a deployment doesn't occur. Only the requested metadata parameters are updated. You can only specify
description
in this mode. -
CURRENT_VERSION
In this mode, the component is deployed and updated with the new
serviceSpec
,templateSource
, and/ortype
that you provide. Only requested parameters are updated.
"NONE"
"CURRENT_VERSION"
-
description
— (String
)An optional customer-provided description of the component.
name
— (String
)The name of the component to update.
serviceInstanceName
— (String
)The name of the service instance that you want to attach this component to. Don't specify to keep the component's current service instance attachment. Specify an empty string to detach the component from the service instance it's attached to. Specify non-empty values for both
serviceInstanceName
andserviceName
or for neither of them.serviceName
— (String
)The name of the service that
serviceInstanceName
is associated with. Don't specify to keep the component's current service instance attachment. Specify an empty string to detach the component from the service instance it's attached to. Specify non-empty values for bothserviceInstanceName
andserviceName
or for neither of them.serviceSpec
— (String
)The service spec that you want the component to use to access service inputs. Set this only when the component is attached to a service instance.
templateFile
— (String
)A path to the Infrastructure as Code (IaC) file describing infrastructure that a custom component provisions.
Note: Components support a single IaC file, even if you use Terraform as your template language.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:component
— (map
)The detailed data of the updated component.
arn
— required — (String
)The Amazon Resource Name (ARN) of the component.
createdAt
— required — (Date
)The time when the component was created.
deploymentStatus
— required — (String
)The component deployment status.
Possible values include:"IN_PROGRESS"
"FAILED"
"SUCCEEDED"
"DELETE_IN_PROGRESS"
"DELETE_FAILED"
"DELETE_COMPLETE"
"CANCELLING"
"CANCELLED"
deploymentStatusMessage
— (String
)The message associated with the component deployment status.
description
— (String
)A description of the component.
environmentName
— required — (String
)The name of the Proton environment that this component is associated with.
lastAttemptedDeploymentId
— (String
)The ID of the last attempted deployment of this component.
lastClientRequestToken
— (String
)The last token the client requested.
lastDeploymentAttemptedAt
— (Date
)The time when a deployment of the component was last attempted.
lastDeploymentSucceededAt
— (Date
)The time when the component was last deployed successfully.
lastModifiedAt
— required — (Date
)The time when the component was last modified.
lastSucceededDeploymentId
— (String
)The ID of the last successful deployment of this component.
name
— required — (String
)The name of the component.
serviceInstanceName
— (String
)The name of the service instance that this component is attached to. Provided when a component is attached to a service instance.
serviceName
— (String
)The name of the service that
serviceInstanceName
is associated with. Provided when a component is attached to a service instance.serviceSpec
— (String
)The service spec that the component uses to access service inputs. Provided when a component is attached to a service instance.
-
(AWS.Response)
—
Returns:
updateEnvironment(params = {}, callback) ⇒ AWS.Request
Update an environment.
If the environment is associated with an environment account connection, don't update or include the
protonServiceRoleArn
andprovisioningRepository
parameter to update or connect to an environment account connection.You can only update to a new environment account connection if that connection was created in the same environment account that the current environment account connection was created in. The account connection must also be associated with the current environment.
If the environment isn't associated with an environment account connection, don't update or include the
environmentAccountConnectionId
parameter. You can't update or connect the environment to an environment account connection if it isn't already associated with an environment connection.You can update either the
environmentAccountConnectionId
orprotonServiceRoleArn
parameter and value. You can’t update both.If the environment was configured for Amazon Web Services-managed provisioning, omit the
provisioningRepository
parameter.If the environment was configured for self-managed provisioning, specify the
provisioningRepository
parameter and omit theprotonServiceRoleArn
andenvironmentAccountConnectionId
parameters.For more information, see Environments and Provisioning methods in the Proton User Guide.
There are four modes for updating an environment. The
deploymentType
field defines the mode.-
NONE
In this mode, a deployment doesn't occur. Only the requested metadata parameters are updated.
-
CURRENT_VERSION
In this mode, the environment is deployed and updated with the new spec that you provide. Only requested parameters are updated. Don’t include minor or major version parameters when you use this
deployment-type
. -
MINOR_VERSION
In this mode, the environment is deployed and updated with the published, recommended (latest) minor version of the current major version in use, by default. You can also specify a different minor version of the current major version in use.
-
MAJOR_VERSION
In this mode, the environment is deployed and updated with the published, recommended (latest) major and minor version of the current template, by default. You can also specify a different major version that's higher than the major version in use and a minor version.
Service Reference:
Examples:
Calling the updateEnvironment operation
var params = { deploymentType: NONE | CURRENT_VERSION | MINOR_VERSION | MAJOR_VERSION, /* required */ name: 'STRING_VALUE', /* required */ codebuildRoleArn: 'STRING_VALUE', componentRoleArn: 'STRING_VALUE', description: 'STRING_VALUE', environmentAccountConnectionId: 'STRING_VALUE', protonServiceRoleArn: 'STRING_VALUE', provisioningRepository: { branch: 'STRING_VALUE', /* required */ name: 'STRING_VALUE', /* required */ provider: GITHUB | GITHUB_ENTERPRISE | BITBUCKET /* required */ }, spec: 'STRING_VALUE', templateMajorVersion: 'STRING_VALUE', templateMinorVersion: 'STRING_VALUE' }; proton.updateEnvironment(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
codebuildRoleArn
— (String
)The Amazon Resource Name (ARN) of the IAM service role that allows Proton to provision infrastructure using CodeBuild-based provisioning on your behalf.
componentRoleArn
— (String
)The Amazon Resource Name (ARN) of the IAM service role that Proton uses when provisioning directly defined components in this environment. It determines the scope of infrastructure that a component can provision.
The environment must have a
componentRoleArn
to allow directly defined components to be associated with the environment.For more information about components, see Proton components in the Proton User Guide.
deploymentType
— (String
)There are four modes for updating an environment. The
deploymentType
field defines the mode.-
NONE
In this mode, a deployment doesn't occur. Only the requested metadata parameters are updated.
-
CURRENT_VERSION
In this mode, the environment is deployed and updated with the new spec that you provide. Only requested parameters are updated. Don’t include major or minor version parameters when you use this
deployment-type
. -
MINOR_VERSION
In this mode, the environment is deployed and updated with the published, recommended (latest) minor version of the current major version in use, by default. You can also specify a different minor version of the current major version in use.
-
MAJOR_VERSION
In this mode, the environment is deployed and updated with the published, recommended (latest) major and minor version of the current template, by default. You can also specify a different major version that is higher than the major version in use and a minor version (optional).
"NONE"
"CURRENT_VERSION"
"MINOR_VERSION"
"MAJOR_VERSION"
-
description
— (String
)A description of the environment update.
environmentAccountConnectionId
— (String
)The ID of the environment account connection.
You can only update to a new environment account connection if it was created in the same environment account that the current environment account connection was created in and is associated with the current environment.
name
— (String
)The name of the environment to update.
protonServiceRoleArn
— (String
)The Amazon Resource Name (ARN) of the Proton service role that allows Proton to make API calls to other services your behalf.
provisioningRepository
— (map
)The linked repository that you use to host your rendered infrastructure templates for self-managed provisioning. A linked repository is a repository that has been registered with Proton. For more information, see CreateRepository.
branch
— required — (String
)The repository branch.
name
— required — (String
)The repository name.
provider
— required — (String
)The repository provider.
Possible values include:"GITHUB"
"GITHUB_ENTERPRISE"
"BITBUCKET"
spec
— (String
)The formatted specification that defines the update.
templateMajorVersion
— (String
)The major version of the environment to update.
templateMinorVersion
— (String
)The minor version of the environment to update.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:environment
— (map
)The environment detail data that's returned by Proton.
arn
— required — (String
)The Amazon Resource Name (ARN) of the environment.
codebuildRoleArn
— (String
)The Amazon Resource Name (ARN) of the IAM service role that allows Proton to provision infrastructure using CodeBuild-based provisioning on your behalf.
componentRoleArn
— (String
)The Amazon Resource Name (ARN) of the IAM service role that Proton uses when provisioning directly defined components in this environment. It determines the scope of infrastructure that a component can provision.
The environment must have a
componentRoleArn
to allow directly defined components to be associated with the environment.For more information about components, see Proton components in the Proton User Guide.
createdAt
— required — (Date
)The time when the environment was created.
deploymentStatus
— required — (String
)The environment deployment status.
Possible values include:"IN_PROGRESS"
"FAILED"
"SUCCEEDED"
"DELETE_IN_PROGRESS"
"DELETE_FAILED"
"DELETE_COMPLETE"
"CANCELLING"
"CANCELLED"
deploymentStatusMessage
— (String
)An environment deployment status message.
description
— (String
)The description of the environment.
environmentAccountConnectionId
— (String
)The ID of the environment account connection that's used to provision infrastructure resources in an environment account.
environmentAccountId
— (String
)The ID of the environment account that the environment infrastructure resources are provisioned in.
lastAttemptedDeploymentId
— (String
)The ID of the last attempted deployment of this environment.
lastDeploymentAttemptedAt
— required — (Date
)The time when a deployment of the environment was last attempted.
lastDeploymentSucceededAt
— required — (Date
)The time when the environment was last deployed successfully.
lastSucceededDeploymentId
— (String
)The ID of the last successful deployment of this environment.
name
— required — (String
)The name of the environment.
protonServiceRoleArn
— (String
)The Amazon Resource Name (ARN) of the Proton service role that allows Proton to make calls to other services on your behalf.
provisioning
— (String
)When included, indicates that the environment template is for customer provisioned and managed infrastructure.
Possible values include:"CUSTOMER_MANAGED"
provisioningRepository
— (map
)The linked repository that you use to host your rendered infrastructure templates for self-managed provisioning. A linked repository is a repository that has been registered with Proton. For more information, see CreateRepository.
arn
— required — (String
)The Amazon Resource Name (ARN) of the linked repository.
branch
— required — (String
)The repository branch.
name
— required — (String
)The repository name.
provider
— required — (String
)The repository provider.
Possible values include:"GITHUB"
"GITHUB_ENTERPRISE"
"BITBUCKET"
spec
— (String
)The environment spec.
templateMajorVersion
— required — (String
)The major version of the environment template.
templateMinorVersion
— required — (String
)The minor version of the environment template.
templateName
— required — (String
)The Amazon Resource Name (ARN) of the environment template.
-
(AWS.Response)
—
Returns:
updateEnvironmentAccountConnection(params = {}, callback) ⇒ AWS.Request
In an environment account, update an environment account connection to use a new IAM role.
For more information, see Environment account connections in the Proton User guide.
Service Reference:
Examples:
Calling the updateEnvironmentAccountConnection operation
var params = { id: 'STRING_VALUE', /* required */ codebuildRoleArn: 'STRING_VALUE', componentRoleArn: 'STRING_VALUE', roleArn: 'STRING_VALUE' }; proton.updateEnvironmentAccountConnection(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
codebuildRoleArn
— (String
)The Amazon Resource Name (ARN) of an IAM service role in the environment account. Proton uses this role to provision infrastructure resources using CodeBuild-based provisioning in the associated environment account.
componentRoleArn
— (String
)The Amazon Resource Name (ARN) of the IAM service role that Proton uses when provisioning directly defined components in the associated environment account. It determines the scope of infrastructure that a component can provision in the account.
The environment account connection must have a
componentRoleArn
to allow directly defined components to be associated with any environments running in the account.For more information about components, see Proton components in the Proton User Guide.
id
— (String
)The ID of the environment account connection to update.
roleArn
— (String
)The Amazon Resource Name (ARN) of the IAM service role that's associated with the environment account connection to update.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:environmentAccountConnection
— (map
)The environment account connection detail data that's returned by Proton.
arn
— required — (String
)The Amazon Resource Name (ARN) of the environment account connection.
codebuildRoleArn
— (String
)The Amazon Resource Name (ARN) of an IAM service role in the environment account. Proton uses this role to provision infrastructure resources using CodeBuild-based provisioning in the associated environment account.
componentRoleArn
— (String
)The Amazon Resource Name (ARN) of the IAM service role that Proton uses when provisioning directly defined components in the associated environment account. It determines the scope of infrastructure that a component can provision in the account.
The environment account connection must have a
componentRoleArn
to allow directly defined components to be associated with any environments running in the account.For more information about components, see Proton components in the Proton User Guide.
environmentAccountId
— required — (String
)The environment account that's connected to the environment account connection.
environmentName
— required — (String
)The name of the environment that's associated with the environment account connection.
id
— required — (String
)The ID of the environment account connection.
lastModifiedAt
— required — (Date
)The time when the environment account connection was last modified.
managementAccountId
— required — (String
)The ID of the management account that's connected to the environment account connection.
requestedAt
— required — (Date
)The time when the environment account connection request was made.
roleArn
— required — (String
)The IAM service role that's associated with the environment account connection.
status
— required — (String
)The status of the environment account connection.
Possible values include:"PENDING"
"CONNECTED"
"REJECTED"
-
(AWS.Response)
—
Returns:
updateEnvironmentTemplate(params = {}, callback) ⇒ AWS.Request
Update an environment template.
Service Reference:
Examples:
Calling the updateEnvironmentTemplate operation
var params = { name: 'STRING_VALUE', /* required */ description: 'STRING_VALUE', displayName: 'STRING_VALUE' }; proton.updateEnvironmentTemplate(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
description
— (String
)A description of the environment template update.
displayName
— (String
)The name of the environment template to update as displayed in the developer interface.
name
— (String
)The name of the environment template to update.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:environmentTemplate
— (map
)The environment template detail data that's returned by Proton.
arn
— required — (String
)The Amazon Resource Name (ARN) of the environment template.
createdAt
— required — (Date
)The time when the environment template was created.
description
— (String
)A description of the environment template.
displayName
— (String
)The name of the environment template as displayed in the developer interface.
encryptionKey
— (String
)The customer provided encryption key for the environment template.
lastModifiedAt
— required — (Date
)The time when the environment template was last modified.
name
— required — (String
)The name of the environment template.
provisioning
— (String
)When included, indicates that the environment template is for customer provisioned and managed infrastructure.
Possible values include:"CUSTOMER_MANAGED"
recommendedVersion
— (String
)The ID of the recommended version of the environment template.
-
(AWS.Response)
—
Returns:
updateEnvironmentTemplateVersion(params = {}, callback) ⇒ AWS.Request
Update a major or minor version of an environment template.
Service Reference:
Examples:
Calling the updateEnvironmentTemplateVersion operation
var params = { majorVersion: 'STRING_VALUE', /* required */ minorVersion: 'STRING_VALUE', /* required */ templateName: 'STRING_VALUE', /* required */ description: 'STRING_VALUE', status: REGISTRATION_IN_PROGRESS | REGISTRATION_FAILED | DRAFT | PUBLISHED }; proton.updateEnvironmentTemplateVersion(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
description
— (String
)A description of environment template version to update.
majorVersion
— (String
)To update a major version of an environment template, include
major Version
.minorVersion
— (String
)To update a minor version of an environment template, include
minorVersion
.status
— (String
)The status of the environment template minor version to update.
Possible values include:"REGISTRATION_IN_PROGRESS"
"REGISTRATION_FAILED"
"DRAFT"
"PUBLISHED"
templateName
— (String
)The name of the environment template.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:environmentTemplateVersion
— (map
)The environment template version detail data that's returned by Proton.
arn
— required — (String
)The Amazon Resource Name (ARN) of the version of an environment template.
createdAt
— required — (Date
)The time when the version of an environment template was created.
description
— (String
)A description of the minor version of an environment template.
lastModifiedAt
— required — (Date
)The time when the version of an environment template was last modified.
majorVersion
— required — (String
)The latest major version that's associated with the version of an environment template.
minorVersion
— required — (String
)The minor version of an environment template.
recommendedMinorVersion
— (String
)The recommended minor version of the environment template.
schema
— (String
)The schema of the version of an environment template.
status
— required — (String
)The status of the version of an environment template.
Possible values include:"REGISTRATION_IN_PROGRESS"
"REGISTRATION_FAILED"
"DRAFT"
"PUBLISHED"
statusMessage
— (String
)The status message of the version of an environment template.
templateName
— required — (String
)The name of the version of an environment template.
-
(AWS.Response)
—
Returns:
updateService(params = {}, callback) ⇒ AWS.Request
Edit a service description or use a spec to add and delete service instances.
Note: Existing service instances and the service pipeline can't be edited using this API. They can only be deleted.Use the
description
parameter to modify the description.Edit the
spec
parameter to add or delete instances.Note: You can't delete a service instance (remove it from the spec) if it has an attached component. For more information about components, see Proton components in the Proton User Guide.Service Reference:
Examples:
Calling the updateService operation
var params = { name: 'STRING_VALUE', /* required */ description: 'STRING_VALUE', spec: 'STRING_VALUE' }; proton.updateService(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
description
— (String
)The edited service description.
name
— (String
)The name of the service to edit.
spec
— (String
)Lists the service instances to add and the existing service instances to remain. Omit the existing service instances to delete from the list. Don't include edits to the existing service instances or pipeline. For more information, see Edit a service in the Proton User Guide.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:service
— (map
)The service detail data that's returned by Proton.
arn
— required — (String
)The Amazon Resource Name (ARN) of the service.
branchName
— (String
)The name of the code repository branch that holds the code that's deployed in Proton.
createdAt
— required — (Date
)The time when the service was created.
description
— (String
)A description of the service.
lastModifiedAt
— required — (Date
)The time when the service was last modified.
name
— required — (String
)The name of the service.
pipeline
— (map
)The service pipeline detail data.
arn
— required — (String
)The Amazon Resource Name (ARN) of the service pipeline.
createdAt
— required — (Date
)The time when the service pipeline was created.
deploymentStatus
— required — (String
)The deployment status of the service pipeline.
Possible values include:"IN_PROGRESS"
"FAILED"
"SUCCEEDED"
"DELETE_IN_PROGRESS"
"DELETE_FAILED"
"DELETE_COMPLETE"
"CANCELLING"
"CANCELLED"
deploymentStatusMessage
— (String
)A service pipeline deployment status message.
lastAttemptedDeploymentId
— (String
)The ID of the last attempted deployment of this service pipeline.
lastDeploymentAttemptedAt
— required — (Date
)The time when a deployment of the service pipeline was last attempted.
lastDeploymentSucceededAt
— required — (Date
)The time when the service pipeline was last deployed successfully.
lastSucceededDeploymentId
— (String
)The ID of the last successful deployment of this service pipeline.
spec
— (String
)The service spec that was used to create the service pipeline.
templateMajorVersion
— required — (String
)The major version of the service template that was used to create the service pipeline.
templateMinorVersion
— required — (String
)The minor version of the service template that was used to create the service pipeline.
templateName
— required — (String
)The name of the service template that was used to create the service pipeline.
repositoryConnectionArn
— (String
)The Amazon Resource Name (ARN) of the repository connection. For more information, see Setting up an AWS CodeStar connection in the Proton User Guide.
repositoryId
— (String
)The ID of the source code repository.
spec
— required — (String
)The formatted specification that defines the service.
status
— required — (String
)The status of the service.
Possible values include:"CREATE_IN_PROGRESS"
"CREATE_FAILED_CLEANUP_IN_PROGRESS"
"CREATE_FAILED_CLEANUP_COMPLETE"
"CREATE_FAILED_CLEANUP_FAILED"
"CREATE_FAILED"
"ACTIVE"
"DELETE_IN_PROGRESS"
"DELETE_FAILED"
"UPDATE_IN_PROGRESS"
"UPDATE_FAILED_CLEANUP_IN_PROGRESS"
"UPDATE_FAILED_CLEANUP_COMPLETE"
"UPDATE_FAILED_CLEANUP_FAILED"
"UPDATE_FAILED"
"UPDATE_COMPLETE_CLEANUP_FAILED"
statusMessage
— (String
)A service status message.
templateName
— required — (String
)The name of the service template.
-
(AWS.Response)
—
Returns:
updateServiceInstance(params = {}, callback) ⇒ AWS.Request
Update a service instance.
There are a few modes for updating a service instance. The
deploymentType
field defines the mode.Note: You can't update a service instance while its deployment status, or the deployment status of a component attached to it, isIN_PROGRESS
. For more information about components, see Proton components in the Proton User Guide.Service Reference:
Examples:
Calling the updateServiceInstance operation
var params = { deploymentType: NONE | CURRENT_VERSION | MINOR_VERSION | MAJOR_VERSION, /* required */ name: 'STRING_VALUE', /* required */ serviceName: 'STRING_VALUE', /* required */ clientToken: 'STRING_VALUE', spec: 'STRING_VALUE', templateMajorVersion: 'STRING_VALUE', templateMinorVersion: 'STRING_VALUE' }; proton.updateServiceInstance(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
clientToken
— (String
)The client token of the service instance to update.
If a token is not provided, the SDK will use a version 4 UUID.deploymentType
— (String
)The deployment type. It defines the mode for updating a service instance, as follows:
-
NONE
In this mode, a deployment doesn't occur. Only the requested metadata parameters are updated.
-
CURRENT_VERSION
In this mode, the service instance is deployed and updated with the new spec that you provide. Only requested parameters are updated. Don’t include major or minor version parameters when you use this deployment type.
-
MINOR_VERSION
In this mode, the service instance is deployed and updated with the published, recommended (latest) minor version of the current major version in use, by default. You can also specify a different minor version of the current major version in use.
-
MAJOR_VERSION
In this mode, the service instance is deployed and updated with the published, recommended (latest) major and minor version of the current template, by default. You can specify a different major version that's higher than the major version in use and a minor version.
"NONE"
"CURRENT_VERSION"
"MINOR_VERSION"
"MAJOR_VERSION"
-
name
— (String
)The name of the service instance to update.
serviceName
— (String
)The name of the service that the service instance belongs to.
spec
— (String
)The formatted specification that defines the service instance update.
templateMajorVersion
— (String
)The major version of the service template to update.
templateMinorVersion
— (String
)The minor version of the service template to update.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:serviceInstance
— (map
)The service instance summary data that's returned by Proton.
arn
— required — (String
)The Amazon Resource Name (ARN) of the service instance.
createdAt
— required — (Date
)The time when the service instance was created.
deploymentStatus
— required — (String
)The service instance deployment status.
Possible values include:"IN_PROGRESS"
"FAILED"
"SUCCEEDED"
"DELETE_IN_PROGRESS"
"DELETE_FAILED"
"DELETE_COMPLETE"
"CANCELLING"
"CANCELLED"
deploymentStatusMessage
— (String
)The message associated with the service instance deployment status.
environmentName
— required — (String
)The name of the environment that the service instance was deployed into.
lastAttemptedDeploymentId
— (String
)The ID of the last attempted deployment of this service instance.
lastClientRequestToken
— (String
)The last client request token received.
lastDeploymentAttemptedAt
— required — (Date
)The time when a deployment of the service instance was last attempted.
lastDeploymentSucceededAt
— required — (Date
)The time when the service instance was last deployed successfully.
lastSucceededDeploymentId
— (String
)The ID of the last successful deployment of this service instance.
name
— required — (String
)The name of the service instance.
serviceName
— required — (String
)The name of the service that the service instance belongs to.
spec
— (String
)The service spec that was used to create the service instance.
templateMajorVersion
— required — (String
)The major version of the service template that was used to create the service instance.
templateMinorVersion
— required — (String
)The minor version of the service template that was used to create the service instance.
templateName
— required — (String
)The name of the service template that was used to create the service instance.
-
(AWS.Response)
—
Returns:
updateServicePipeline(params = {}, callback) ⇒ AWS.Request
Update the service pipeline.
There are four modes for updating a service pipeline. The
deploymentType
field defines the mode.-
NONE
In this mode, a deployment doesn't occur. Only the requested metadata parameters are updated.
-
CURRENT_VERSION
In this mode, the service pipeline is deployed and updated with the new spec that you provide. Only requested parameters are updated. Don’t include major or minor version parameters when you use this
deployment-type
. -
MINOR_VERSION
In this mode, the service pipeline is deployed and updated with the published, recommended (latest) minor version of the current major version in use, by default. You can specify a different minor version of the current major version in use.
-
MAJOR_VERSION
In this mode, the service pipeline is deployed and updated with the published, recommended (latest) major and minor version of the current template by default. You can specify a different major version that's higher than the major version in use and a minor version.
Service Reference:
Examples:
Calling the updateServicePipeline operation
var params = { deploymentType: NONE | CURRENT_VERSION | MINOR_VERSION | MAJOR_VERSION, /* required */ serviceName: 'STRING_VALUE', /* required */ spec: 'STRING_VALUE', /* required */ templateMajorVersion: 'STRING_VALUE', templateMinorVersion: 'STRING_VALUE' }; proton.updateServicePipeline(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
deploymentType
— (String
)The deployment type.
There are four modes for updating a service pipeline. The
deploymentType
field defines the mode.-
NONE
In this mode, a deployment doesn't occur. Only the requested metadata parameters are updated.
-
CURRENT_VERSION
In this mode, the service pipeline is deployed and updated with the new spec that you provide. Only requested parameters are updated. Don’t include major or minor version parameters when you use this
deployment-type
. -
MINOR_VERSION
In this mode, the service pipeline is deployed and updated with the published, recommended (latest) minor version of the current major version in use, by default. You can specify a different minor version of the current major version in use.
-
MAJOR_VERSION
In this mode, the service pipeline is deployed and updated with the published, recommended (latest) major and minor version of the current template, by default. You can specify a different major version that's higher than the major version in use and a minor version.
"NONE"
"CURRENT_VERSION"
"MINOR_VERSION"
"MAJOR_VERSION"
-
serviceName
— (String
)The name of the service to that the pipeline is associated with.
spec
— (String
)The spec for the service pipeline to update.
templateMajorVersion
— (String
)The major version of the service template that was used to create the service that the pipeline is associated with.
templateMinorVersion
— (String
)The minor version of the service template that was used to create the service that the pipeline is associated with.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:pipeline
— (map
)The pipeline details that are returned by Proton.
arn
— required — (String
)The Amazon Resource Name (ARN) of the service pipeline.
createdAt
— required — (Date
)The time when the service pipeline was created.
deploymentStatus
— required — (String
)The deployment status of the service pipeline.
Possible values include:"IN_PROGRESS"
"FAILED"
"SUCCEEDED"
"DELETE_IN_PROGRESS"
"DELETE_FAILED"
"DELETE_COMPLETE"
"CANCELLING"
"CANCELLED"
deploymentStatusMessage
— (String
)A service pipeline deployment status message.
lastAttemptedDeploymentId
— (String
)The ID of the last attempted deployment of this service pipeline.
lastDeploymentAttemptedAt
— required — (Date
)The time when a deployment of the service pipeline was last attempted.
lastDeploymentSucceededAt
— required — (Date
)The time when the service pipeline was last deployed successfully.
lastSucceededDeploymentId
— (String
)The ID of the last successful deployment of this service pipeline.
spec
— (String
)The service spec that was used to create the service pipeline.
templateMajorVersion
— required — (String
)The major version of the service template that was used to create the service pipeline.
templateMinorVersion
— required — (String
)The minor version of the service template that was used to create the service pipeline.
templateName
— required — (String
)The name of the service template that was used to create the service pipeline.
-
(AWS.Response)
—
Returns:
updateServiceSyncBlocker(params = {}, callback) ⇒ AWS.Request
Update the service sync blocker by resolving it.
Service Reference:
Examples:
Calling the updateServiceSyncBlocker operation
var params = { id: 'STRING_VALUE', /* required */ resolvedReason: 'STRING_VALUE' /* required */ }; proton.updateServiceSyncBlocker(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
id
— (String
)The ID of the service sync blocker.
resolvedReason
— (String
)The reason the service sync blocker was resolved.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:serviceInstanceName
— (String
)The name of the service instance that you want to update the service sync blocker for.
serviceName
— (String
)The name of the service that you want to update the service sync blocker for.
serviceSyncBlocker
— (map
)The detailed data on the service sync blocker that was updated.
contexts
— (Array<map>
)The contexts for the sync blocker.
key
— required — (String
)The key for the sync blocker context.
value
— required — (String
)The value of the sync blocker context.
createdAt
— required — (Date
)The time when the sync blocker was created.
createdReason
— required — (String
)The reason why the sync blocker was created.
id
— required — (String
)The ID of the sync blocker.
resolvedAt
— (Date
)The time the sync blocker was resolved.
resolvedReason
— (String
)The reason the sync blocker was resolved.
status
— required — (String
)The status of the sync blocker.
Possible values include:"ACTIVE"
"RESOLVED"
type
— required — (String
)The type of the sync blocker.
Possible values include:"AUTOMATED"
-
(AWS.Response)
—
Returns:
updateServiceSyncConfig(params = {}, callback) ⇒ AWS.Request
Update the Proton Ops config file.
Service Reference:
Examples:
Calling the updateServiceSyncConfig operation
var params = { branch: 'STRING_VALUE', /* required */ filePath: 'STRING_VALUE', /* required */ repositoryName: 'STRING_VALUE', /* required */ repositoryProvider: GITHUB | GITHUB_ENTERPRISE | BITBUCKET, /* required */ serviceName: 'STRING_VALUE' /* required */ }; proton.updateServiceSyncConfig(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
branch
— (String
)The name of the code repository branch where the Proton Ops file is found.
filePath
— (String
)The path to the Proton Ops file.
repositoryName
— (String
)The name of the repository where the Proton Ops file is found.
repositoryProvider
— (String
)The name of the repository provider where the Proton Ops file is found.
Possible values include:"GITHUB"
"GITHUB_ENTERPRISE"
"BITBUCKET"
serviceName
— (String
)The name of the service the Proton Ops file is for.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:serviceSyncConfig
— (map
)The detailed data of the Proton Ops file.
branch
— required — (String
)The name of the code repository branch that holds the service code Proton will sync with.
filePath
— required — (String
)The file path to the service sync configuration file.
repositoryName
— required — (String
)The name of the code repository that holds the service code Proton will sync with.
repositoryProvider
— required — (String
)The name of the repository provider that holds the repository Proton will sync with.
Possible values include:"GITHUB"
"GITHUB_ENTERPRISE"
"BITBUCKET"
serviceName
— required — (String
)The name of the service that the service instance is added to.
-
(AWS.Response)
—
Returns:
updateServiceTemplate(params = {}, callback) ⇒ AWS.Request
Update a service template.
Service Reference:
Examples:
Calling the updateServiceTemplate operation
var params = { name: 'STRING_VALUE', /* required */ description: 'STRING_VALUE', displayName: 'STRING_VALUE' }; proton.updateServiceTemplate(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
description
— (String
)A description of the service template update.
displayName
— (String
)The name of the service template to update that's displayed in the developer interface.
name
— (String
)The name of the service template to update.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:serviceTemplate
— (map
)The service template detail data that's returned by Proton.
arn
— required — (String
)The Amazon Resource Name (ARN) of the service template.
createdAt
— required — (Date
)The time when the service template was created.
description
— (String
)A description of the service template.
displayName
— (String
)The service template name as displayed in the developer interface.
encryptionKey
— (String
)The customer provided service template encryption key that's used to encrypt data.
lastModifiedAt
— required — (Date
)The time when the service template was last modified.
name
— required — (String
)The name of the service template.
pipelineProvisioning
— (String
)If
Possible values include:pipelineProvisioning
istrue
, a service pipeline is included in the service template. Otherwise, a service pipeline isn't included in the service template."CUSTOMER_MANAGED"
recommendedVersion
— (String
)The recommended version of the service template.
-
(AWS.Response)
—
Returns:
updateServiceTemplateVersion(params = {}, callback) ⇒ AWS.Request
Update a major or minor version of a service template.
Service Reference:
Examples:
Calling the updateServiceTemplateVersion operation
var params = { majorVersion: 'STRING_VALUE', /* required */ minorVersion: 'STRING_VALUE', /* required */ templateName: 'STRING_VALUE', /* required */ compatibleEnvironmentTemplates: [ { majorVersion: 'STRING_VALUE', /* required */ templateName: 'STRING_VALUE' /* required */ }, /* more items */ ], description: 'STRING_VALUE', status: REGISTRATION_IN_PROGRESS | REGISTRATION_FAILED | DRAFT | PUBLISHED, supportedComponentSources: [ DIRECTLY_DEFINED, /* more items */ ] }; proton.updateServiceTemplateVersion(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
compatibleEnvironmentTemplates
— (Array<map>
)An array of environment template objects that are compatible with this service template version. A service instance based on this service template version can run in environments based on compatible templates.
majorVersion
— required — (String
)The major version of the compatible environment template.
templateName
— required — (String
)The compatible environment template name.
description
— (String
)A description of a service template version to update.
majorVersion
— (String
)To update a major version of a service template, include
major Version
.minorVersion
— (String
)To update a minor version of a service template, include
minorVersion
.status
— (String
)The status of the service template minor version to update.
Possible values include:"REGISTRATION_IN_PROGRESS"
"REGISTRATION_FAILED"
"DRAFT"
"PUBLISHED"
supportedComponentSources
— (Array<String>
)An array of supported component sources. Components with supported sources can be attached to service instances based on this service template version.
Note: A change tosupportedComponentSources
doesn't impact existing component attachments to instances based on this template version. A change only affects later associations.For more information about components, see Proton components in the Proton User Guide.
templateName
— (String
)The name of the service template.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:serviceTemplateVersion
— (map
)The service template version detail data that's returned by Proton.
arn
— required — (String
)The Amazon Resource Name (ARN) of the version of a service template.
compatibleEnvironmentTemplates
— required — (Array<map>
)An array of compatible environment template names for the major version of a service template.
majorVersion
— required — (String
)The major version of the compatible environment template.
templateName
— required — (String
)The compatible environment template name.
createdAt
— required — (Date
)The time when the version of a service template was created.
description
— (String
)A description of the version of a service template.
lastModifiedAt
— required — (Date
)The time when the version of a service template was last modified.
majorVersion
— required — (String
)The latest major version that's associated with the version of a service template.
minorVersion
— required — (String
)The minor version of a service template.
recommendedMinorVersion
— (String
)The recommended minor version of the service template.
schema
— (String
)The schema of the version of a service template.
status
— required — (String
)The service template version status.
Possible values include:"REGISTRATION_IN_PROGRESS"
"REGISTRATION_FAILED"
"DRAFT"
"PUBLISHED"
statusMessage
— (String
)A service template version status message.
supportedComponentSources
— (Array<String>
)An array of supported component sources. Components with supported sources can be attached to service instances based on this service template version.
For more information about components, see Proton components in the Proton User Guide.
templateName
— required — (String
)The name of the version of a service template.
-
(AWS.Response)
—
Returns:
updateTemplateSyncConfig(params = {}, callback) ⇒ AWS.Request
Update template sync configuration parameters, except for the
templateName
andtemplateType
. 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.Service Reference:
Examples:
Calling the updateTemplateSyncConfig operation
var params = { branch: 'STRING_VALUE', /* required */ repositoryName: 'STRING_VALUE', /* required */ repositoryProvider: GITHUB | GITHUB_ENTERPRISE | BITBUCKET, /* required */ templateName: 'STRING_VALUE', /* required */ templateType: ENVIRONMENT | SERVICE, /* required */ subdirectory: 'STRING_VALUE' }; proton.updateTemplateSyncConfig(params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
(defaults to: {})
—
branch
— (String
)The repository branch for your template.
repositoryName
— (String
)The repository name (for example,
myrepos/myrepo
).repositoryProvider
— (String
)The repository provider.
Possible values include:"GITHUB"
"GITHUB_ENTERPRISE"
"BITBUCKET"
subdirectory
— (String
)A subdirectory path to your template bundle version. When included, limits the template bundle search to this repository directory.
templateName
— (String
)The synced template name.
templateType
— (String
)The synced template type.
Possible values include:"ENVIRONMENT"
"SERVICE"
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:templateSyncConfig
— (map
)The template sync configuration detail data that's returned by Proton.
branch
— required — (String
)The repository branch.
repositoryName
— required — (String
)The repository name (for example,
myrepos/myrepo
).repositoryProvider
— required — (String
)The repository provider.
Possible values include:"GITHUB"
"GITHUB_ENTERPRISE"
"BITBUCKET"
subdirectory
— (String
)A subdirectory path to your template bundle version.
templateName
— required — (String
)The template name.
templateType
— required — (String
)The template type.
Possible values include:"ENVIRONMENT"
"SERVICE"
-
(AWS.Response)
—
Returns:
waitFor(state, params = {}, callback) ⇒ AWS.Request
Waits for a given Proton resource. The final callback or 'complete' event will be fired only when the resource is either in its final state or the waiter has timed out and stopped polling for the final state.
Examples:
Waiting for the componentDeleted state
var params = { name: 'STRING_VALUE' /* required */ }; proton.waitFor('componentDeleted', params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
state
(String)
—
the resource state to wait for. Available states for this service are listed in "Waiter Resource States" below.
-
params
(map)
(defaults to: {})
—
a list of parameters for the given state. See each waiter resource state for required parameters.
Callback (callback):
-
function(err, data) { ... }
Callback containing error and data information. See the respective resource state for the expected error or data information.
If the waiter times out its requests, it will return a
ResourceNotReady
error.
Returns:
Waiter Resource States:
Waiter Resource Details
proton.waitFor('componentDeleted', params = {}, [callback]) ⇒ AWS.Request
Waits for the
componentDeleted
state by periodically calling the underlying Proton.getComponent() operation every 5 seconds (at most 999 times).Examples:
Waiting for the componentDeleted state
var params = { name: 'STRING_VALUE' /* required */ }; proton.waitFor('componentDeleted', params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
—
name
— (String
)The name of the component that you want to get the detailed data for.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:component
— (map
)The detailed data of the requested component.
arn
— required — (String
)The Amazon Resource Name (ARN) of the component.
createdAt
— required — (Date
)The time when the component was created.
deploymentStatus
— required — (String
)The component deployment status.
Possible values include:"IN_PROGRESS"
"FAILED"
"SUCCEEDED"
"DELETE_IN_PROGRESS"
"DELETE_FAILED"
"DELETE_COMPLETE"
"CANCELLING"
"CANCELLED"
deploymentStatusMessage
— (String
)The message associated with the component deployment status.
description
— (String
)A description of the component.
environmentName
— required — (String
)The name of the Proton environment that this component is associated with.
lastAttemptedDeploymentId
— (String
)The ID of the last attempted deployment of this component.
lastClientRequestToken
— (String
)The last token the client requested.
lastDeploymentAttemptedAt
— (Date
)The time when a deployment of the component was last attempted.
lastDeploymentSucceededAt
— (Date
)The time when the component was last deployed successfully.
lastModifiedAt
— required — (Date
)The time when the component was last modified.
lastSucceededDeploymentId
— (String
)The ID of the last successful deployment of this component.
name
— required — (String
)The name of the component.
serviceInstanceName
— (String
)The name of the service instance that this component is attached to. Provided when a component is attached to a service instance.
serviceName
— (String
)The name of the service that
serviceInstanceName
is associated with. Provided when a component is attached to a service instance.serviceSpec
— (String
)The service spec that the component uses to access service inputs. Provided when a component is attached to a service instance.
-
(AWS.Response)
—
Returns:
See Also:
proton.waitFor('componentDeployed', params = {}, [callback]) ⇒ AWS.Request
Waits for the
componentDeployed
state by periodically calling the underlying Proton.getComponent() operation every 5 seconds (at most 999 times).Examples:
Waiting for the componentDeployed state
var params = { name: 'STRING_VALUE' /* required */ }; proton.waitFor('componentDeployed', params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
—
name
— (String
)The name of the component that you want to get the detailed data for.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:component
— (map
)The detailed data of the requested component.
arn
— required — (String
)The Amazon Resource Name (ARN) of the component.
createdAt
— required — (Date
)The time when the component was created.
deploymentStatus
— required — (String
)The component deployment status.
Possible values include:"IN_PROGRESS"
"FAILED"
"SUCCEEDED"
"DELETE_IN_PROGRESS"
"DELETE_FAILED"
"DELETE_COMPLETE"
"CANCELLING"
"CANCELLED"
deploymentStatusMessage
— (String
)The message associated with the component deployment status.
description
— (String
)A description of the component.
environmentName
— required — (String
)The name of the Proton environment that this component is associated with.
lastAttemptedDeploymentId
— (String
)The ID of the last attempted deployment of this component.
lastClientRequestToken
— (String
)The last token the client requested.
lastDeploymentAttemptedAt
— (Date
)The time when a deployment of the component was last attempted.
lastDeploymentSucceededAt
— (Date
)The time when the component was last deployed successfully.
lastModifiedAt
— required — (Date
)The time when the component was last modified.
lastSucceededDeploymentId
— (String
)The ID of the last successful deployment of this component.
name
— required — (String
)The name of the component.
serviceInstanceName
— (String
)The name of the service instance that this component is attached to. Provided when a component is attached to a service instance.
serviceName
— (String
)The name of the service that
serviceInstanceName
is associated with. Provided when a component is attached to a service instance.serviceSpec
— (String
)The service spec that the component uses to access service inputs. Provided when a component is attached to a service instance.
-
(AWS.Response)
—
Returns:
See Also:
proton.waitFor('environmentDeployed', params = {}, [callback]) ⇒ AWS.Request
Waits for the
environmentDeployed
state by periodically calling the underlying Proton.getEnvironment() operation every 5 seconds (at most 999 times).Examples:
Waiting for the environmentDeployed state
var params = { name: 'STRING_VALUE' /* required */ }; proton.waitFor('environmentDeployed', params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
—
name
— (String
)The name of the environment that you want to get the detailed data for.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:environment
— (map
)The detailed data of the requested environment.
arn
— required — (String
)The Amazon Resource Name (ARN) of the environment.
codebuildRoleArn
— (String
)The Amazon Resource Name (ARN) of the IAM service role that allows Proton to provision infrastructure using CodeBuild-based provisioning on your behalf.
componentRoleArn
— (String
)The Amazon Resource Name (ARN) of the IAM service role that Proton uses when provisioning directly defined components in this environment. It determines the scope of infrastructure that a component can provision.
The environment must have a
componentRoleArn
to allow directly defined components to be associated with the environment.For more information about components, see Proton components in the Proton User Guide.
createdAt
— required — (Date
)The time when the environment was created.
deploymentStatus
— required — (String
)The environment deployment status.
Possible values include:"IN_PROGRESS"
"FAILED"
"SUCCEEDED"
"DELETE_IN_PROGRESS"
"DELETE_FAILED"
"DELETE_COMPLETE"
"CANCELLING"
"CANCELLED"
deploymentStatusMessage
— (String
)An environment deployment status message.
description
— (String
)The description of the environment.
environmentAccountConnectionId
— (String
)The ID of the environment account connection that's used to provision infrastructure resources in an environment account.
environmentAccountId
— (String
)The ID of the environment account that the environment infrastructure resources are provisioned in.
lastAttemptedDeploymentId
— (String
)The ID of the last attempted deployment of this environment.
lastDeploymentAttemptedAt
— required — (Date
)The time when a deployment of the environment was last attempted.
lastDeploymentSucceededAt
— required — (Date
)The time when the environment was last deployed successfully.
lastSucceededDeploymentId
— (String
)The ID of the last successful deployment of this environment.
name
— required — (String
)The name of the environment.
protonServiceRoleArn
— (String
)The Amazon Resource Name (ARN) of the Proton service role that allows Proton to make calls to other services on your behalf.
provisioning
— (String
)When included, indicates that the environment template is for customer provisioned and managed infrastructure.
Possible values include:"CUSTOMER_MANAGED"
provisioningRepository
— (map
)The linked repository that you use to host your rendered infrastructure templates for self-managed provisioning. A linked repository is a repository that has been registered with Proton. For more information, see CreateRepository.
arn
— required — (String
)The Amazon Resource Name (ARN) of the linked repository.
branch
— required — (String
)The repository branch.
name
— required — (String
)The repository name.
provider
— required — (String
)The repository provider.
Possible values include:"GITHUB"
"GITHUB_ENTERPRISE"
"BITBUCKET"
spec
— (String
)The environment spec.
templateMajorVersion
— required — (String
)The major version of the environment template.
templateMinorVersion
— required — (String
)The minor version of the environment template.
templateName
— required — (String
)The Amazon Resource Name (ARN) of the environment template.
-
(AWS.Response)
—
Returns:
See Also:
proton.waitFor('environmentTemplateVersionRegistered', params = {}, [callback]) ⇒ AWS.Request
Waits for the
environmentTemplateVersionRegistered
state by periodically calling the underlying Proton.getEnvironmentTemplateVersion() operation every 2 seconds (at most 150 times).Examples:
Waiting for the environmentTemplateVersionRegistered state
var params = { majorVersion: 'STRING_VALUE', /* required */ minorVersion: 'STRING_VALUE', /* required */ templateName: 'STRING_VALUE' /* required */ }; proton.waitFor('environmentTemplateVersionRegistered', params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
—
majorVersion
— (String
)To get environment template major version detail data, include
major Version
.minorVersion
— (String
)To get environment template minor version detail data, include
minorVersion
.templateName
— (String
)The name of the environment template a version of which you want to get detailed data for.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:environmentTemplateVersion
— (map
)The detailed data of the requested environment template version.
arn
— required — (String
)The Amazon Resource Name (ARN) of the version of an environment template.
createdAt
— required — (Date
)The time when the version of an environment template was created.
description
— (String
)A description of the minor version of an environment template.
lastModifiedAt
— required — (Date
)The time when the version of an environment template was last modified.
majorVersion
— required — (String
)The latest major version that's associated with the version of an environment template.
minorVersion
— required — (String
)The minor version of an environment template.
recommendedMinorVersion
— (String
)The recommended minor version of the environment template.
schema
— (String
)The schema of the version of an environment template.
status
— required — (String
)The status of the version of an environment template.
Possible values include:"REGISTRATION_IN_PROGRESS"
"REGISTRATION_FAILED"
"DRAFT"
"PUBLISHED"
statusMessage
— (String
)The status message of the version of an environment template.
templateName
— required — (String
)The name of the version of an environment template.
-
(AWS.Response)
—
Returns:
See Also:
proton.waitFor('serviceCreated', params = {}, [callback]) ⇒ AWS.Request
Waits for the
serviceCreated
state by periodically calling the underlying Proton.getService() operation every 5 seconds (at most 999 times).Examples:
Waiting for the serviceCreated state
var params = { name: 'STRING_VALUE' /* required */ }; proton.waitFor('serviceCreated', params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
—
name
— (String
)The name of the service that you want to get the detailed data for.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:service
— (map
)The detailed data of the requested service.
arn
— required — (String
)The Amazon Resource Name (ARN) of the service.
branchName
— (String
)The name of the code repository branch that holds the code that's deployed in Proton.
createdAt
— required — (Date
)The time when the service was created.
description
— (String
)A description of the service.
lastModifiedAt
— required — (Date
)The time when the service was last modified.
name
— required — (String
)The name of the service.
pipeline
— (map
)The service pipeline detail data.
arn
— required — (String
)The Amazon Resource Name (ARN) of the service pipeline.
createdAt
— required — (Date
)The time when the service pipeline was created.
deploymentStatus
— required — (String
)The deployment status of the service pipeline.
Possible values include:"IN_PROGRESS"
"FAILED"
"SUCCEEDED"
"DELETE_IN_PROGRESS"
"DELETE_FAILED"
"DELETE_COMPLETE"
"CANCELLING"
"CANCELLED"
deploymentStatusMessage
— (String
)A service pipeline deployment status message.
lastAttemptedDeploymentId
— (String
)The ID of the last attempted deployment of this service pipeline.
lastDeploymentAttemptedAt
— required — (Date
)The time when a deployment of the service pipeline was last attempted.
lastDeploymentSucceededAt
— required — (Date
)The time when the service pipeline was last deployed successfully.
lastSucceededDeploymentId
— (String
)The ID of the last successful deployment of this service pipeline.
spec
— (String
)The service spec that was used to create the service pipeline.
templateMajorVersion
— required — (String
)The major version of the service template that was used to create the service pipeline.
templateMinorVersion
— required — (String
)The minor version of the service template that was used to create the service pipeline.
templateName
— required — (String
)The name of the service template that was used to create the service pipeline.
repositoryConnectionArn
— (String
)The Amazon Resource Name (ARN) of the repository connection. For more information, see Setting up an AWS CodeStar connection in the Proton User Guide.
repositoryId
— (String
)The ID of the source code repository.
spec
— required — (String
)The formatted specification that defines the service.
status
— required — (String
)The status of the service.
Possible values include:"CREATE_IN_PROGRESS"
"CREATE_FAILED_CLEANUP_IN_PROGRESS"
"CREATE_FAILED_CLEANUP_COMPLETE"
"CREATE_FAILED_CLEANUP_FAILED"
"CREATE_FAILED"
"ACTIVE"
"DELETE_IN_PROGRESS"
"DELETE_FAILED"
"UPDATE_IN_PROGRESS"
"UPDATE_FAILED_CLEANUP_IN_PROGRESS"
"UPDATE_FAILED_CLEANUP_COMPLETE"
"UPDATE_FAILED_CLEANUP_FAILED"
"UPDATE_FAILED"
"UPDATE_COMPLETE_CLEANUP_FAILED"
statusMessage
— (String
)A service status message.
templateName
— required — (String
)The name of the service template.
-
(AWS.Response)
—
Returns:
See Also:
proton.waitFor('serviceDeleted', params = {}, [callback]) ⇒ AWS.Request
Waits for the
serviceDeleted
state by periodically calling the underlying Proton.getService() operation every 5 seconds (at most 999 times).Examples:
Waiting for the serviceDeleted state
var params = { name: 'STRING_VALUE' /* required */ }; proton.waitFor('serviceDeleted', params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
—
name
— (String
)The name of the service that you want to get the detailed data for.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:service
— (map
)The detailed data of the requested service.
arn
— required — (String
)The Amazon Resource Name (ARN) of the service.
branchName
— (String
)The name of the code repository branch that holds the code that's deployed in Proton.
createdAt
— required — (Date
)The time when the service was created.
description
— (String
)A description of the service.
lastModifiedAt
— required — (Date
)The time when the service was last modified.
name
— required — (String
)The name of the service.
pipeline
— (map
)The service pipeline detail data.
arn
— required — (String
)The Amazon Resource Name (ARN) of the service pipeline.
createdAt
— required — (Date
)The time when the service pipeline was created.
deploymentStatus
— required — (String
)The deployment status of the service pipeline.
Possible values include:"IN_PROGRESS"
"FAILED"
"SUCCEEDED"
"DELETE_IN_PROGRESS"
"DELETE_FAILED"
"DELETE_COMPLETE"
"CANCELLING"
"CANCELLED"
deploymentStatusMessage
— (String
)A service pipeline deployment status message.
lastAttemptedDeploymentId
— (String
)The ID of the last attempted deployment of this service pipeline.
lastDeploymentAttemptedAt
— required — (Date
)The time when a deployment of the service pipeline was last attempted.
lastDeploymentSucceededAt
— required — (Date
)The time when the service pipeline was last deployed successfully.
lastSucceededDeploymentId
— (String
)The ID of the last successful deployment of this service pipeline.
spec
— (String
)The service spec that was used to create the service pipeline.
templateMajorVersion
— required — (String
)The major version of the service template that was used to create the service pipeline.
templateMinorVersion
— required — (String
)The minor version of the service template that was used to create the service pipeline.
templateName
— required — (String
)The name of the service template that was used to create the service pipeline.
repositoryConnectionArn
— (String
)The Amazon Resource Name (ARN) of the repository connection. For more information, see Setting up an AWS CodeStar connection in the Proton User Guide.
repositoryId
— (String
)The ID of the source code repository.
spec
— required — (String
)The formatted specification that defines the service.
status
— required — (String
)The status of the service.
Possible values include:"CREATE_IN_PROGRESS"
"CREATE_FAILED_CLEANUP_IN_PROGRESS"
"CREATE_FAILED_CLEANUP_COMPLETE"
"CREATE_FAILED_CLEANUP_FAILED"
"CREATE_FAILED"
"ACTIVE"
"DELETE_IN_PROGRESS"
"DELETE_FAILED"
"UPDATE_IN_PROGRESS"
"UPDATE_FAILED_CLEANUP_IN_PROGRESS"
"UPDATE_FAILED_CLEANUP_COMPLETE"
"UPDATE_FAILED_CLEANUP_FAILED"
"UPDATE_FAILED"
"UPDATE_COMPLETE_CLEANUP_FAILED"
statusMessage
— (String
)A service status message.
templateName
— required — (String
)The name of the service template.
-
(AWS.Response)
—
Returns:
See Also:
proton.waitFor('serviceInstanceDeployed', params = {}, [callback]) ⇒ AWS.Request
Waits for the
serviceInstanceDeployed
state by periodically calling the underlying Proton.getServiceInstance() operation every 5 seconds (at most 999 times).Examples:
Waiting for the serviceInstanceDeployed state
var params = { name: 'STRING_VALUE', /* required */ serviceName: 'STRING_VALUE' /* required */ }; proton.waitFor('serviceInstanceDeployed', params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
—
name
— (String
)The name of a service instance that you want to get the detailed data for.
serviceName
— (String
)The name of the service that you want the service instance input for.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:serviceInstance
— (map
)The detailed data of the requested service instance.
arn
— required — (String
)The Amazon Resource Name (ARN) of the service instance.
createdAt
— required — (Date
)The time when the service instance was created.
deploymentStatus
— required — (String
)The service instance deployment status.
Possible values include:"IN_PROGRESS"
"FAILED"
"SUCCEEDED"
"DELETE_IN_PROGRESS"
"DELETE_FAILED"
"DELETE_COMPLETE"
"CANCELLING"
"CANCELLED"
deploymentStatusMessage
— (String
)The message associated with the service instance deployment status.
environmentName
— required — (String
)The name of the environment that the service instance was deployed into.
lastAttemptedDeploymentId
— (String
)The ID of the last attempted deployment of this service instance.
lastClientRequestToken
— (String
)The last client request token received.
lastDeploymentAttemptedAt
— required — (Date
)The time when a deployment of the service instance was last attempted.
lastDeploymentSucceededAt
— required — (Date
)The time when the service instance was last deployed successfully.
lastSucceededDeploymentId
— (String
)The ID of the last successful deployment of this service instance.
name
— required — (String
)The name of the service instance.
serviceName
— required — (String
)The name of the service that the service instance belongs to.
spec
— (String
)The service spec that was used to create the service instance.
templateMajorVersion
— required — (String
)The major version of the service template that was used to create the service instance.
templateMinorVersion
— required — (String
)The minor version of the service template that was used to create the service instance.
templateName
— required — (String
)The name of the service template that was used to create the service instance.
-
(AWS.Response)
—
Returns:
See Also:
proton.waitFor('servicePipelineDeployed', params = {}, [callback]) ⇒ AWS.Request
Waits for the
servicePipelineDeployed
state by periodically calling the underlying Proton.getService() operation every 10 seconds (at most 360 times).Examples:
Waiting for the servicePipelineDeployed state
var params = { name: 'STRING_VALUE' /* required */ }; proton.waitFor('servicePipelineDeployed', params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
—
name
— (String
)The name of the service that you want to get the detailed data for.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:service
— (map
)The detailed data of the requested service.
arn
— required — (String
)The Amazon Resource Name (ARN) of the service.
branchName
— (String
)The name of the code repository branch that holds the code that's deployed in Proton.
createdAt
— required — (Date
)The time when the service was created.
description
— (String
)A description of the service.
lastModifiedAt
— required — (Date
)The time when the service was last modified.
name
— required — (String
)The name of the service.
pipeline
— (map
)The service pipeline detail data.
arn
— required — (String
)The Amazon Resource Name (ARN) of the service pipeline.
createdAt
— required — (Date
)The time when the service pipeline was created.
deploymentStatus
— required — (String
)The deployment status of the service pipeline.
Possible values include:"IN_PROGRESS"
"FAILED"
"SUCCEEDED"
"DELETE_IN_PROGRESS"
"DELETE_FAILED"
"DELETE_COMPLETE"
"CANCELLING"
"CANCELLED"
deploymentStatusMessage
— (String
)A service pipeline deployment status message.
lastAttemptedDeploymentId
— (String
)The ID of the last attempted deployment of this service pipeline.
lastDeploymentAttemptedAt
— required — (Date
)The time when a deployment of the service pipeline was last attempted.
lastDeploymentSucceededAt
— required — (Date
)The time when the service pipeline was last deployed successfully.
lastSucceededDeploymentId
— (String
)The ID of the last successful deployment of this service pipeline.
spec
— (String
)The service spec that was used to create the service pipeline.
templateMajorVersion
— required — (String
)The major version of the service template that was used to create the service pipeline.
templateMinorVersion
— required — (String
)The minor version of the service template that was used to create the service pipeline.
templateName
— required — (String
)The name of the service template that was used to create the service pipeline.
repositoryConnectionArn
— (String
)The Amazon Resource Name (ARN) of the repository connection. For more information, see Setting up an AWS CodeStar connection in the Proton User Guide.
repositoryId
— (String
)The ID of the source code repository.
spec
— required — (String
)The formatted specification that defines the service.
status
— required — (String
)The status of the service.
Possible values include:"CREATE_IN_PROGRESS"
"CREATE_FAILED_CLEANUP_IN_PROGRESS"
"CREATE_FAILED_CLEANUP_COMPLETE"
"CREATE_FAILED_CLEANUP_FAILED"
"CREATE_FAILED"
"ACTIVE"
"DELETE_IN_PROGRESS"
"DELETE_FAILED"
"UPDATE_IN_PROGRESS"
"UPDATE_FAILED_CLEANUP_IN_PROGRESS"
"UPDATE_FAILED_CLEANUP_COMPLETE"
"UPDATE_FAILED_CLEANUP_FAILED"
"UPDATE_FAILED"
"UPDATE_COMPLETE_CLEANUP_FAILED"
statusMessage
— (String
)A service status message.
templateName
— required — (String
)The name of the service template.
-
(AWS.Response)
—
Returns:
See Also:
proton.waitFor('serviceTemplateVersionRegistered', params = {}, [callback]) ⇒ AWS.Request
Waits for the
serviceTemplateVersionRegistered
state by periodically calling the underlying Proton.getServiceTemplateVersion() operation every 2 seconds (at most 150 times).Examples:
Waiting for the serviceTemplateVersionRegistered state
var params = { majorVersion: 'STRING_VALUE', /* required */ minorVersion: 'STRING_VALUE', /* required */ templateName: 'STRING_VALUE' /* required */ }; proton.waitFor('serviceTemplateVersionRegistered', params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
—
majorVersion
— (String
)To get service template major version detail data, include
major Version
.minorVersion
— (String
)To get service template minor version detail data, include
minorVersion
.templateName
— (String
)The name of the service template a version of which you want to get detailed data for.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:serviceTemplateVersion
— (map
)The detailed data of the requested service template version.
arn
— required — (String
)The Amazon Resource Name (ARN) of the version of a service template.
compatibleEnvironmentTemplates
— required — (Array<map>
)An array of compatible environment template names for the major version of a service template.
majorVersion
— required — (String
)The major version of the compatible environment template.
templateName
— required — (String
)The compatible environment template name.
createdAt
— required — (Date
)The time when the version of a service template was created.
description
— (String
)A description of the version of a service template.
lastModifiedAt
— required — (Date
)The time when the version of a service template was last modified.
majorVersion
— required — (String
)The latest major version that's associated with the version of a service template.
minorVersion
— required — (String
)The minor version of a service template.
recommendedMinorVersion
— (String
)The recommended minor version of the service template.
schema
— (String
)The schema of the version of a service template.
status
— required — (String
)The service template version status.
Possible values include:"REGISTRATION_IN_PROGRESS"
"REGISTRATION_FAILED"
"DRAFT"
"PUBLISHED"
statusMessage
— (String
)A service template version status message.
supportedComponentSources
— (Array<String>
)An array of supported component sources. Components with supported sources can be attached to service instances based on this service template version.
For more information about components, see Proton components in the Proton User Guide.
templateName
— required — (String
)The name of the version of a service template.
-
(AWS.Response)
—
Returns:
See Also:
proton.waitFor('serviceUpdated', params = {}, [callback]) ⇒ AWS.Request
Waits for the
serviceUpdated
state by periodically calling the underlying Proton.getService() operation every 5 seconds (at most 999 times).Examples:
Waiting for the serviceUpdated state
var params = { name: 'STRING_VALUE' /* required */ }; proton.waitFor('serviceUpdated', params, function(err, data) { if (err) console.log(err, err.stack); // an error occurred else console.log(data); // successful response });
Parameters:
-
params
(Object)
—
name
— (String
)The name of the service that you want to get the detailed data for.
Callback (callback):
-
function(err, data) { ... }
Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.
Context (this):
-
(AWS.Response)
—
the response object containing error, data properties, and the original request object.
Parameters:
-
err
(Error)
—
the error object returned from the request. Set to
null
if the request is successful. -
data
(Object)
—
the de-serialized data returned from the request. Set to
null
if a request error occurs. Thedata
object has the following properties:service
— (map
)The detailed data of the requested service.
arn
— required — (String
)The Amazon Resource Name (ARN) of the service.
branchName
— (String
)The name of the code repository branch that holds the code that's deployed in Proton.
createdAt
— required — (Date
)The time when the service was created.
description
— (String
)A description of the service.
lastModifiedAt
— required — (Date
)The time when the service was last modified.
name
— required — (String
)The name of the service.
pipeline
— (map
)The service pipeline detail data.
arn
— required — (String
)The Amazon Resource Name (ARN) of the service pipeline.
createdAt
— required — (Date
)The time when the service pipeline was created.
deploymentStatus
— required — (String
)The deployment status of the service pipeline.
Possible values include:"IN_PROGRESS"
"FAILED"
"SUCCEEDED"
"DELETE_IN_PROGRESS"
"DELETE_FAILED"
"DELETE_COMPLETE"
"CANCELLING"
"CANCELLED"
deploymentStatusMessage
— (String
)A service pipeline deployment status message.
lastAttemptedDeploymentId
— (String
)The ID of the last attempted deployment of this service pipeline.
lastDeploymentAttemptedAt
— required — (Date
)The time when a deployment of the service pipeline was last attempted.
lastDeploymentSucceededAt
— required — (Date
)The time when the service pipeline was last deployed successfully.
lastSucceededDeploymentId
— (String
)The ID of the last successful deployment of this service pipeline.
spec
— (String
)The service spec that was used to create the service pipeline.
templateMajorVersion
— required — (String
)The major version of the service template that was used to create the service pipeline.
templateMinorVersion
— required — (String
)The minor version of the service template that was used to create the service pipeline.
templateName
— required — (String
)The name of the service template that was used to create the service pipeline.
repositoryConnectionArn
— (String
)The Amazon Resource Name (ARN) of the repository connection. For more information, see Setting up an AWS CodeStar connection in the Proton User Guide.
repositoryId
— (String
)The ID of the source code repository.
spec
— required — (String
)The formatted specification that defines the service.
status
— required — (String
)The status of the service.
Possible values include:"CREATE_IN_PROGRESS"
"CREATE_FAILED_CLEANUP_IN_PROGRESS"
"CREATE_FAILED_CLEANUP_COMPLETE"
"CREATE_FAILED_CLEANUP_FAILED"
"CREATE_FAILED"
"ACTIVE"
"DELETE_IN_PROGRESS"
"DELETE_FAILED"
"UPDATE_IN_PROGRESS"
"UPDATE_FAILED_CLEANUP_IN_PROGRESS"
"UPDATE_FAILED_CLEANUP_COMPLETE"
"UPDATE_FAILED_CLEANUP_FAILED"
"UPDATE_FAILED"
"UPDATE_COMPLETE_CLEANUP_FAILED"
statusMessage
— (String
)A service status message.
templateName
— required — (String
)The name of the service template.
-
(AWS.Response)
—
Returns:
See Also:
Generated on Wed Nov 6 18:51:29 2024 by yard 0.9.36 (ruby-2.5.1). - deleteServiceSyncConfig(params = {}, callback) ⇒ AWS.Request