openapi: 3.0.0 info: version: '2014-10-06' x-release: v4 title: 'AWS CodeDeploy Applications #X Amz Target=CodeDeploy 20141006.ListApplicationRevisions API' description: '
CodeDeploy is a deployment service that automates application deployments to Amazon EC2 instances, on-premises instances running in your own facility, serverless Lambda functions, or applications in an Amazon ECS service.
You can deploy a nearly unlimited variety of application content, such as an updated Lambda function, updated applications in an Amazon ECS service, code, web and configuration files, executables, packages, scripts, multimedia files, and so on. CodeDeploy can deploy application content stored in Amazon S3 buckets, GitHub repositories, or Bitbucket repositories. You do not need to make changes to your existing code before you can use CodeDeploy.
CodeDeploy makes it easier for you to rapidly release new features, helps you avoid downtime during application deployment, and handles the complexity of updating your applications, without many of the risks associated with error-prone manual deployments.
CodeDeploy Components
Use the information in this guide to help you work with the following CodeDeploy components:
Application: A name that uniquely identifies the application you want to deploy. CodeDeploy uses this name, which functions as a container, to ensure the correct combination of revision, deployment configuration, and deployment group are referenced during a deployment.
Deployment group: A set of individual instances, CodeDeploy Lambda deployment configuration settings, or an Amazon ECS service and network details. A Lambda deployment group specifies how to route traffic to a new version of a Lambda function. An Amazon ECS deployment group specifies the service created in Amazon ECS to deploy, a load balancer, and a listener to reroute production traffic to an updated containerized application. An Amazon EC2/On-premises deployment group contains individually tagged instances, Amazon EC2 instances in Amazon EC2 Auto Scaling groups, or both. All deployment groups can specify optional trigger, alarm, and rollback settings.
Deployment configuration: A set of deployment rules and deployment success and failure conditions used by CodeDeploy during a deployment.
Deployment: The process and the components used when updating a Lambda function, a containerized application in an Amazon ECS service, or of installing content on one or more instances.
Application revisions: For an Lambda deployment, this is an AppSpec file that specifies the Lambda function to be updated and one or more functions to validate deployment lifecycle events. For an Amazon ECS deployment, this is an AppSpec file that specifies the Amazon ECS task definition, container, and port where production traffic is rerouted. For an EC2/On-premises deployment, this is an archive file that contains source content—source code, webpages, executable files, and deployment scripts—along with an AppSpec file. Revisions are stored in Amazon S3 buckets or GitHub repositories. For Amazon S3, a revision is uniquely identified by its Amazon S3 object key and its ETag, version, or both. For GitHub, a revision is uniquely identified by its commit ID.
This guide also contains information to help you get details about the instances in your deployments, to make on-premises instances available for CodeDeploy deployments, to get details about a Lambda function deployment, and to get details about Amazon ECS service deployments.
CodeDeploy Information Resources
The YAML-formatted or JSON-formatted revision string.
For an Lambda deployment, the content includes a Lambda function name, the alias for its original version, and the alias for its replacement version. The deployment shifts traffic from the original version of the Lambda function to the replacement version.
For an Amazon ECS deployment, the content includes the task name, information about the load balancer that serves traffic to the container, and more.
For both types of deployments, the content can specify Lambda functions that run at specified hooks, such as BeforeInstall, during a deployment.
RawString data type. '
GitHubLocation:
type: object
properties:
repository:
allOf:
- $ref: '#/components/schemas/Repository'
- description: The GitHub account and repository pair that stores a reference to the commit that represents the bundled artifacts for the application revision.
Specified as account/repository.
commitId: allOf: - $ref: '#/components/schemas/CommitId' - description: The SHA1 commit ID of the GitHub commit that represents the bundled artifacts for the application revision. description: Information about the location of application artifacts stored in GitHub. ListApplicationRevisionsOutput: type: object properties: revisions: allOf: - $ref: '#/components/schemas/RevisionLocationList' - description: A list of locations that contain the matching revisions. nextToken: allOf: - $ref: '#/components/schemas/NextToken' - description: If a large amount of information is returned, an identifier is also returned. It can be used in a subsequent list application revisions call to return the next set of application revisions in the list. description: Represents the output of aListApplicationRevisions operation.
Repository:
type: string
RawStringContent:
type: string
InvalidBucketNameFilterException: {}
S3Location:
type: object
properties:
bucket:
allOf:
- $ref: '#/components/schemas/S3Bucket'
- description: The name of the Amazon S3 bucket where the application revision is stored.
key:
allOf:
- $ref: '#/components/schemas/S3Key'
- description: The name of the Amazon S3 object that represents the bundled artifacts for the application revision.
bundleType:
allOf:
- $ref: '#/components/schemas/BundleType'
- description: 'The file type of the application revision. Must be one of the following:
tar: A tar archive file.
tgz: A compressed tar archive file.
zip: A zip archive file.
A specific version of the Amazon S3 object that represents the bundled artifacts for the application revision.
If the version is not specified, the system uses the most recent version by default.
eTag: allOf: - $ref: '#/components/schemas/ETag' - description:The ETag of the Amazon S3 object that represents the bundled artifacts for the application revision.
If the ETag is not specified as an input parameter, ETag validation of the object is skipped.
description: Information about the location of application artifacts stored in Amazon S3. RevisionLocation: type: object properties: revisionType: allOf: - $ref: '#/components/schemas/RevisionLocationType' - description: 'The type of application revision:
S3: An application revision stored in Amazon S3.
GitHub: An application revision stored in GitHub (EC2/On-premises deployments only).
String: A YAML-formatted or JSON-formatted string (Lambda deployments only).
AppSpecContent: An AppSpecContent object that contains the contents of an AppSpec file for an Lambda or Amazon ECS deployment. The content is formatted as JSON or YAML stored as a RawString.
The column name to use to sort the list results:
registerTime: Sort by the time the revisions were registered with CodeDeploy.
firstUsedTime: Sort by the time the revisions were first used in a deployment.
lastUsedTime: Sort by the time the revisions were last used in a deployment.
If not specified or set to null, the results are returned in an arbitrary order.
' sortOrder: allOf: - $ref: '#/components/schemas/SortOrder' - description: 'The order in which to sort the list results:
ascending: ascending order.
descending: descending order.
If not specified, the results are sorted in ascending order.
If set to null, the results are sorted in an arbitrary order.
' s3Bucket: allOf: - $ref: '#/components/schemas/S3Bucket' - description:An Amazon S3 bucket name to limit the search for revisions.
If set to null, all of the user's buckets are searched.
s3KeyPrefix: allOf: - $ref: '#/components/schemas/S3Key' - description: ' A key prefix for the set of Amazon S3 objects to limit the search for revisions. ' deployed: allOf: - $ref: '#/components/schemas/ListStateFilterAction' - description: 'Whether to list revisions based on whether the revision is the target revision of a deployment group:
include: List revisions that are target revisions of a deployment group.
exclude: Do not list revisions that are target revisions of a deployment group.
ignore: List all revisions.
ListApplicationRevisions call. It can be used to return the next set of applications in the list.
description: ' Represents the input of a ListApplicationRevisions operation. '
RevisionLocationType:
type: string
enum:
- S3
- GitHub
- String
- AppSpecContent
S3Bucket:
type: string
ApplicationDoesNotExistException: {}
CommitId:
type: string
ListStateFilterAction:
type: string
enum:
- include
- exclude
- ignore
SortOrder:
type: string
enum:
- ascending
- descending
RevisionLocationList:
type: array
items:
$ref: '#/components/schemas/RevisionLocation'
NextToken:
type: string
BundleType:
type: string
enum:
- tar
- tgz
- zip
- YAML
- JSON
InvalidKeyPrefixFilterException: {}
BucketNameFilterRequiredException: {}
InvalidApplicationNameException: {}
InvalidSortOrderException: {}
ApplicationRevisionSortBy:
type: string
enum:
- registerTime
- firstUsedTime
- lastUsedTime
parameters:
X-Amz-Credential:
name: X-Amz-Credential
in: header
schema:
type: string
required: false
X-Amz-Algorithm:
name: X-Amz-Algorithm
in: header
schema:
type: string
required: false
X-Amz-Content-Sha256:
name: X-Amz-Content-Sha256
in: header
schema:
type: string
required: false
X-Amz-Security-Token:
name: X-Amz-Security-Token
in: header
schema:
type: string
required: false
X-Amz-SignedHeaders:
name: X-Amz-SignedHeaders
in: header
schema:
type: string
required: false
X-Amz-Date:
name: X-Amz-Date
in: header
schema:
type: string
required: false
X-Amz-Signature:
name: X-Amz-Signature
in: header
schema:
type: string
required: false
securitySchemes:
hmac:
type: apiKey
name: Authorization
in: header
description: Amazon Signature authorization v4
x-amazon-apigateway-authtype: awsSigv4
externalDocs:
description: Amazon Web Services documentation
url: https://docs.aws.amazon.com/codedeploy/
x-hasEquivalentPaths: true