openapi: 3.0.0 info: version: '2014-10-06' x-release: v4 title: 'AWS CodeDeploy Applications #X Amz Target=CodeDeploy 20141006.GetDeploymentGroup 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 tag filter type:
KEY_ONLY: Key only.
VALUE_ONLY: Value only.
KEY_AND_VALUE: Key and value.
GetDeploymentGroup operation.
Alarm:
type: object
properties:
name:
allOf:
- $ref: '#/components/schemas/AlarmName'
- description: The name of the alarm. Maximum length is 255 characters. Each alarm name can be used only once in a list of alarms.
description: Information about an alarm.
TargetGroupInfo:
type: object
properties:
name:
allOf:
- $ref: '#/components/schemas/TargetGroupName'
- description: 'For blue/green deployments, the name of the target group that instances in the original environment are deregistered from, and instances in the replacement environment are registered with. For in-place deployments, the name of the target group that instances are deregistered from, so they are not serving traffic during a deployment, and then re-registered with after the deployment is complete. '
description: Information about a target group in Elastic Load Balancing to use in a deployment. Instances are registered as targets in a target group, and traffic is routed to the target group.
OnPremisesTagSetList:
type: array
items:
$ref: '#/components/schemas/TagFilterList'
AutoRollbackEventsList:
type: array
items:
$ref: '#/components/schemas/AutoRollbackEvent'
AppSpecContent:
type: object
properties:
content:
allOf:
- $ref: '#/components/schemas/RawStringContent'
- description: 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. 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.
An array that contains information about the load balancer to use for load balancing in a deployment. In Elastic Load Balancing, load balancers are used with Classic Load Balancers.
Adding more than one load balancer to the array is not supported.
An array that contains information about the target group to use for load balancing in a deployment. In Elastic Load Balancing, target groups are used with Application Load Balancers.
Adding more than one target group to the array is not supported.
TargeGroupPairInfo objects with a maximum size of one. '
description: Information about the Elastic Load Balancing load balancer or target group used in a deployment.
AutoScalingGroupName:
type: string
AutoRollbackEvent:
type: string
enum:
- DEPLOYMENT_FAILURE
- DEPLOYMENT_STOP_ON_ALARM
- DEPLOYMENT_STOP_ON_REQUEST
EC2TagSetList:
type: array
items:
$ref: '#/components/schemas/EC2TagFilterList'
TargetGroupInfoList:
type: array
items:
$ref: '#/components/schemas/TargetGroupInfo'
BundleType:
type: string
enum:
- tar
- tgz
- zip
- YAML
- JSON
AutoScalingGroupList:
type: array
items:
$ref: '#/components/schemas/AutoScalingGroup'
BlueInstanceTerminationOption:
type: object
properties:
action:
allOf:
- $ref: '#/components/schemas/InstanceAction'
- description: 'The action to take on instances in the original environment after a successful blue/green deployment.
TERMINATE: Instances are terminated after a specified wait time.
KEEP_ALIVE: Instances are left running after they are deregistered from the load balancer and removed from the deployment group.
For an Amazon EC2 deployment, the number of minutes to wait after a successful blue/green deployment before terminating instances from the original environment.
For an Amazon ECS deployment, the number of minutes before deleting the original (blue) task set. During an Amazon ECS deployment, CodeDeploy shifts traffic from the original (blue) task set to a replacement (green) task set.
The maximum setting is 2880 minutes (2 days).
description: 'Information about whether instances in the original environment are terminated when a blue/green deployment is successful.BlueInstanceTerminationOption does not apply to Lambda deployments. '
EC2TagFilterList:
type: array
items:
$ref: '#/components/schemas/EC2TagFilter'
Timestamp:
type: string
format: date-time
EC2TagSet:
type: object
properties:
ec2TagSetList:
allOf:
- $ref: '#/components/schemas/EC2TagSetList'
- description: A list that contains other lists of Amazon EC2 instance tag groups. For an instance to be included in the deployment group, it must be identified by all of the tag groups in the list.
description: Information about groups of Amazon EC2 instance tags.
ECSClusterName:
type: string
ELBInfo:
type: object
properties:
name:
allOf:
- $ref: '#/components/schemas/ELBName'
- description: For blue/green deployments, the name of the load balancer that is used to route traffic from original instances to replacement instances in a blue/green deployment. For in-place deployments, the name of the load balancer that instances are deregistered from so they are not serving traffic during a deployment, and then re-registered with after the deployment is complete.
description: Information about a load balancer in Elastic Load Balancing to use in a deployment. Instances are registered directly with a load balancer, and traffic is routed to the load balancer.
DeploymentReadyAction:
type: string
enum:
- CONTINUE_DEPLOYMENT
- STOP_DEPLOYMENT
TriggerTargetArn:
type: string
ELBInfoList:
type: array
items:
$ref: '#/components/schemas/ELBInfo'
GreenFleetProvisioningOption:
type: object
properties:
action:
allOf:
- $ref: '#/components/schemas/GreenFleetProvisioningAction'
- description: 'The method used to add instances to a replacement environment.
DISCOVER_EXISTING: Use instances that already exist or will be created manually.
COPY_AUTO_SCALING_GROUP: Use settings from a specified Auto Scaling group to define and create instances in a new Auto Scaling group.
Indicates what happens when new Amazon EC2 instances are launched mid-deployment and do not receive the deployed application revision.
If this option is set to UPDATE or is unspecified, CodeDeploy initiates one or more 'auto-update outdated instances' deployments to apply the deployed application revision to the new Amazon EC2 instances.
If this option is set to IGNORE, CodeDeploy does not initiate a deployment to update the new Amazon EC2 instances. This may result in instances having different revisions.
Lambda, Server, or ECS).
ecsServices:
allOf:
- $ref: '#/components/schemas/ECSServiceList'
- description: ' The target Amazon ECS services in the deployment group. This applies only to deployment groups that use the Amazon ECS compute platform. A target Amazon ECS service is specified as an Amazon ECS cluster and service name pair using the format <clustername>:<servicename>. '
description: Information about a deployment group.
DeploymentGroupNameRequiredException: {}
InvalidDeploymentGroupNameException: {}
DeploymentGroupName:
type: string
minLength: 1
maxLength: 100
InstanceAction:
type: string
enum:
- TERMINATE
- KEEP_ALIVE
Key:
type: string
TagFilter:
type: object
properties:
Key:
allOf:
- $ref: '#/components/schemas/Key'
- description: The on-premises instance tag filter key.
Value:
allOf:
- $ref: '#/components/schemas/Value'
- description: The on-premises instance tag filter value.
Type:
allOf:
- $ref: '#/components/schemas/TagFilterType'
- description: 'The on-premises instance tag filter type:
KEY_ONLY: Key only.
VALUE_ONLY: Value only.
KEY_AND_VALUE: Key and value.
Information about when to reroute traffic from an original environment to a replacement environment in a blue/green deployment.
CONTINUE_DEPLOYMENT: Register new instances with the load balancer immediately after the new application revision is installed on the instances in the replacement environment.
STOP_DEPLOYMENT: Do not register new instances with a load balancer unless traffic rerouting is started using ContinueDeployment. If traffic rerouting is not started before the end of the specified wait period, the deployment status is changed to Stopped.
STOP_DEPLOYMENT option for actionOnTimeout.
description: Information about how traffic is rerouted to instances in a replacement environment in a blue/green deployment.
S3Bucket:
type: string
ECSServiceList:
type: array
items:
$ref: '#/components/schemas/ECSService'
DeploymentConfigDoesNotExistException: {}
ApplicationDoesNotExistException: {}
ECSServiceName:
type: string
DeploymentOption:
type: string
enum:
- WITH_TRAFFIC_CONTROL
- WITHOUT_TRAFFIC_CONTROL
AutoScalingGroupHook:
type: string
ListenerArn:
type: string
TagFilterList:
type: array
items:
$ref: '#/components/schemas/TagFilter'
TriggerName:
type: string
ComputePlatform:
type: string
enum:
- Server
- Lambda
- ECS
GetDeploymentGroupOutput:
type: object
properties:
deploymentGroupInfo:
allOf:
- $ref: '#/components/schemas/DeploymentGroupInfo'
- description: Information about the deployment group.
description: Represents the output of a GetDeploymentGroup operation.
DeploymentId:
type: string
VersionId:
type: string
TriggerConfigList:
type: array
items:
$ref: '#/components/schemas/TriggerConfig'
ApplicationName:
type: string
minLength: 1
maxLength: 100
DeploymentType:
type: string
enum:
- IN_PLACE
- BLUE_GREEN
AlarmList:
type: array
items:
$ref: '#/components/schemas/Alarm'
RawStringSha256:
type: string
ELBName:
type: string
OnPremisesTagSet:
type: object
properties:
onPremisesTagSetList:
allOf:
- $ref: '#/components/schemas/OnPremisesTagSetList'
- description: A list that contains other lists of on-premises instance tag groups. For an instance to be included in the deployment group, it must be identified by all of the tag groups in the list.
description: Information about groups of on-premises instance tags.
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. DeploymentConfigName: type: string minLength: 1 maxLength: 100 TagFilterType: type: string enum: - KEY_ONLY - VALUE_ONLY - KEY_AND_VALUE ApplicationNameRequiredException: {} TrafficRoute: type: object properties: listenerArns: allOf: - $ref: '#/components/schemas/ListenerArnList' - description: ' The Amazon Resource Name (ARN) of one listener. The listener identifies the route between a target group and a load balancer. This is an array of strings with a maximum size of one. ' description: ' Information about a listener. The listener contains the path used to route traffic that is received from the load balancer to a target group. ' TriggerEventTypeList: type: array items: $ref: '#/components/schemas/TriggerEventType' EC2TagFilterType: type: string enum: - KEY_ONLY - VALUE_ONLY - KEY_AND_VALUE CommitId: type: string Duration: type: integer AlarmConfiguration: type: object properties: enabled: allOf: - $ref: '#/components/schemas/Boolean' - description: Indicates whether the alarm configuration is enabled. ignorePollAlarmFailure: allOf: - $ref: '#/components/schemas/Boolean' - description: 'Indicates whether a deployment should continue if information about the current state of alarms cannot be retrieved from Amazon CloudWatch. The default value is false.
true: The deployment proceeds even if alarm status information can''t be retrieved from Amazon CloudWatch.
false: The deployment stops if alarm status information can''t be retrieved from Amazon CloudWatch.