openapi: 3.0.0 info: version: '2014-10-06' x-release: v4 title: 'AWS CodeDeploy Applications #X Amz Target=CodeDeploy 20141006.BatchGetApplicationRevisions 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. '
BatchGetApplicationRevisionsInput:
type: object
required:
- applicationName
- revisions
title: BatchGetApplicationRevisionsInput
properties:
applicationName:
allOf:
- $ref: '#/components/schemas/ApplicationName'
- description: The name of an CodeDeploy application about which to get revision information.
revisions:
allOf:
- $ref: '#/components/schemas/RevisionLocationList'
- description: An array of RevisionLocation objects that specify information to get about the application revisions, including type and location. The maximum number of RevisionLocation objects you can specify is 25.
description: Represents the input of a BatchGetApplicationRevisions operation.
GenericRevisionInfo:
type: object
properties:
description:
allOf:
- $ref: '#/components/schemas/Description'
- description: A comment about the revision.
deploymentGroups:
allOf:
- $ref: '#/components/schemas/DeploymentGroupsList'
- description: The deployment groups for which this is the current target revision.
firstUsedTime:
allOf:
- $ref: '#/components/schemas/Timestamp'
- description: When the revision was first used by CodeDeploy.
lastUsedTime:
allOf:
- $ref: '#/components/schemas/Timestamp'
- description: When the revision was last used by CodeDeploy.
registerTime:
allOf:
- $ref: '#/components/schemas/Timestamp'
- description: When the revision was registered with CodeDeploy.
description: Information about an application revision.
RevisionRequiredException: {}
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. Repository: type: string RawStringContent: type: string 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.
BatchGetApplicationRevisions operation.
RevisionInfo:
type: object
properties:
revisionLocation:
allOf:
- $ref: '#/components/schemas/RevisionLocation'
- description: Information about the location and type of an application revision.
genericRevisionInfo:
allOf:
- $ref: '#/components/schemas/GenericRevisionInfo'
- description: Information about an application revision, including usage details and associated deployment groups.
description: Information about an application revision.
DeploymentGroupName:
type: string
minLength: 1
maxLength: 100
ApplicationNameRequiredException: {}
RevisionLocationType:
type: string
enum:
- S3
- GitHub
- String
- AppSpecContent
ErrorMessage:
type: string
S3Bucket:
type: string
ApplicationDoesNotExistException: {}
CommitId:
type: string
BundleType:
type: string
enum:
- tar
- tgz
- zip
- YAML
- JSON
RevisionLocationList:
type: array
items:
$ref: '#/components/schemas/RevisionLocation'
Description:
type: string
Timestamp:
type: string
format: date-time
InvalidApplicationNameException: {}
DeploymentGroupsList:
type: array
items:
$ref: '#/components/schemas/DeploymentGroupName'
RevisionInfoList:
type: array
items:
$ref: '#/components/schemas/RevisionInfo'
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