openapi: 3.0.0 info: version: '2014-10-06' x-release: v4 title: 'AWS CodeDeploy Applications #X Amz Target=CodeDeploy 20141006.BatchGetDeployments 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:

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

' x-logo: url: https://twitter.com/awscloud/profile_image?size=original backgroundColor: '#FFFFFF' termsOfService: https://aws.amazon.com/service-terms/ contact: name: Mike Ralphson email: mike.ralphson@gmail.com url: https://github.com/mermade/aws2openapi x-twitter: PermittedSoc license: name: Apache 2.0 License url: http://www.apache.org/licenses/ x-providerName: amazonaws.com x-serviceName: codedeploy x-origin: - contentType: application/json url: https://raw.githubusercontent.com/aws/aws-sdk-js/master/apis/codedeploy-2014-10-06.normal.json converter: url: https://github.com/mermade/aws2openapi version: 1.0.0 x-apisguru-driver: external x-apiClientRegistration: url: https://portal.aws.amazon.com/gp/aws/developer/registration/index.html?nc2=h_ct x-apisguru-categories: - cloud x-preferred: true servers: - url: http://codedeploy.{region}.amazonaws.com variables: region: description: The AWS region enum: - us-east-1 - us-east-2 - us-west-1 - us-west-2 - us-gov-west-1 - us-gov-east-1 - ca-central-1 - eu-north-1 - eu-west-1 - eu-west-2 - eu-west-3 - eu-central-1 - eu-south-1 - af-south-1 - ap-northeast-1 - ap-northeast-2 - ap-northeast-3 - ap-southeast-1 - ap-southeast-2 - ap-east-1 - ap-south-1 - sa-east-1 - me-south-1 default: us-east-1 description: The CodeDeploy multi-region endpoint - url: https://codedeploy.{region}.amazonaws.com variables: region: description: The AWS region enum: - us-east-1 - us-east-2 - us-west-1 - us-west-2 - us-gov-west-1 - us-gov-east-1 - ca-central-1 - eu-north-1 - eu-west-1 - eu-west-2 - eu-west-3 - eu-central-1 - eu-south-1 - af-south-1 - ap-northeast-1 - ap-northeast-2 - ap-northeast-3 - ap-southeast-1 - ap-southeast-2 - ap-east-1 - ap-south-1 - sa-east-1 - me-south-1 default: us-east-1 description: The CodeDeploy multi-region endpoint - url: http://codedeploy.{region}.amazonaws.com.cn variables: region: description: The AWS region enum: - cn-north-1 - cn-northwest-1 default: cn-north-1 description: The CodeDeploy endpoint for China (Beijing) and China (Ningxia) - url: https://codedeploy.{region}.amazonaws.com.cn variables: region: description: The AWS region enum: - cn-north-1 - cn-northwest-1 default: cn-north-1 description: The CodeDeploy endpoint for China (Beijing) and China (Ningxia) security: - hmac: [] tags: - name: '#X Amz Target=CodeDeploy 20141006.BatchGetDeployments' paths: /#X-Amz-Target=CodeDeploy_20141006.BatchGetDeployments: parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' post: operationId: BatchGetDeployments description: Gets information about one or more deployments. The maximum number of deployments that can be returned is 25. responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/BatchGetDeploymentsOutput' examples: BatchGetDeployments200Example: summary: Default BatchGetDeployments 200 response x-microcks-default: true value: deploymentsInfo: example-value '480': description: DeploymentIdRequiredException content: application/json: schema: $ref: '#/components/schemas/DeploymentIdRequiredException' examples: BatchGetDeployments480Example: summary: Default BatchGetDeployments 480 response x-microcks-default: true value: example-value '481': description: InvalidDeploymentIdException content: application/json: schema: $ref: '#/components/schemas/InvalidDeploymentIdException' examples: BatchGetDeployments481Example: summary: Default BatchGetDeployments 481 response x-microcks-default: true value: example-value '482': description: BatchLimitExceededException content: application/json: schema: $ref: '#/components/schemas/BatchLimitExceededException' examples: BatchGetDeployments482Example: summary: Default BatchGetDeployments 482 response x-microcks-default: true value: example-value requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/BatchGetDeploymentsInput' examples: BatchGetDeploymentsRequestExample: summary: Default BatchGetDeployments request x-microcks-default: true value: deploymentIds: '500123' parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - CodeDeploy_20141006.BatchGetDeployments summary: Amazon CodeDeploy Batch Get Deployments x-microcks-operation: delay: 0 dispatcher: FALLBACK tags: - '#X Amz Target=CodeDeploy 20141006.BatchGetDeployments' components: schemas: ExternalId: type: string EC2TagFilter: type: object properties: Key: allOf: - $ref: '#/components/schemas/Key' - description: The tag filter key. Value: allOf: - $ref: '#/components/schemas/Value' - description: The tag filter value. Type: allOf: - $ref: '#/components/schemas/EC2TagFilterType' - description: '

The tag filter type:

' description: Information about an EC2 tag filter. 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. RollbackInfo: type: object properties: rollbackDeploymentId: allOf: - $ref: '#/components/schemas/DeploymentId' - description: The ID of the deployment rollback. rollbackTriggeringDeploymentId: allOf: - $ref: '#/components/schemas/DeploymentId' - description: The deployment ID of the deployment that was underway and triggered a rollback deployment because it failed or was stopped. rollbackMessage: allOf: - $ref: '#/components/schemas/Description' - description: 'Information that describes the status of a deployment rollback (for example, whether the deployment can''t be rolled back, is in progress, failed, or succeeded). ' description: Information about a deployment rollback. DeploymentStatusMessageList: type: array items: $ref: '#/components/schemas/ErrorMessage' 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.

sha256: allOf: - $ref: '#/components/schemas/RawStringSha256' - description: ' The SHA256 hash value of the revision content. ' description: ' A revision for an Lambda or Amazon ECS deployment that is a YAML-formatted or JSON-formatted string. For Lambda and Amazon ECS deployments, the revision is the same as the AppSpec file. This method replaces the deprecated RawString data type. ' ErrorCode: type: string enum: - AGENT_ISSUE - ALARM_ACTIVE - APPLICATION_MISSING - AUTOSCALING_VALIDATION_ERROR - AUTO_SCALING_CONFIGURATION - AUTO_SCALING_IAM_ROLE_PERMISSIONS - CODEDEPLOY_RESOURCE_CANNOT_BE_FOUND - CUSTOMER_APPLICATION_UNHEALTHY - DEPLOYMENT_GROUP_MISSING - ECS_UPDATE_ERROR - ELASTIC_LOAD_BALANCING_INVALID - ELB_INVALID_INSTANCE - HEALTH_CONSTRAINTS - HEALTH_CONSTRAINTS_INVALID - HOOK_EXECUTION_FAILURE - IAM_ROLE_MISSING - IAM_ROLE_PERMISSIONS - INTERNAL_ERROR - INVALID_ECS_SERVICE - INVALID_LAMBDA_CONFIGURATION - INVALID_LAMBDA_FUNCTION - INVALID_REVISION - MANUAL_STOP - MISSING_BLUE_GREEN_DEPLOYMENT_CONFIGURATION - MISSING_ELB_INFORMATION - MISSING_GITHUB_TOKEN - NO_EC2_SUBSCRIPTION - NO_INSTANCES - OVER_MAX_INSTANCES - RESOURCE_LIMIT_EXCEEDED - REVISION_MISSING - THROTTLED - TIMEOUT - CLOUDFORMATION_STACK_FAILURE 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. RelatedDeployments: type: object properties: autoUpdateOutdatedInstancesRootDeploymentId: allOf: - $ref: '#/components/schemas/DeploymentId' - description: The deployment ID of the root deployment that triggered this deployment. autoUpdateOutdatedInstancesDeploymentIds: allOf: - $ref: '#/components/schemas/DeploymentsList' - description: The deployment IDs of 'auto-update outdated instances' deployments triggered by this deployment. description: Information about deployments related to the specified deployment. DeploymentCreator: type: string enum: - user - autoscaling - codeDeployRollback - CodeDeploy - CodeDeployAutoUpdate - CloudFormation - CloudFormationRollback BatchGetDeploymentsInput: type: object required: - deploymentIds title: BatchGetDeploymentsInput properties: deploymentIds: allOf: - $ref: '#/components/schemas/DeploymentsList' - description: ' A list of deployment IDs, separated by spaces. The maximum number of deployment IDs you can specify is 25.' description: ' Represents the input of a BatchGetDeployments operation. ' RevisionLocation: type: object properties: revisionType: allOf: - $ref: '#/components/schemas/RevisionLocationType' - description: '

The type of application revision:

' s3Location: allOf: - $ref: '#/components/schemas/S3Location' - description: 'Information about the location of a revision stored in Amazon S3. ' gitHubLocation: allOf: - $ref: '#/components/schemas/GitHubLocation' - description: Information about the location of application artifacts stored in GitHub. string: allOf: - $ref: '#/components/schemas/RawString' - description: Information about the location of an Lambda deployment revision stored as a RawString. appSpecContent: allOf: - $ref: '#/components/schemas/AppSpecContent' - description: ' The content of an AppSpec file for an Lambda or Amazon ECS deployment. The content is formatted as JSON or YAML and stored as a RawString. ' description: Information about the location of an application revision. ListenerArnList: type: array items: $ref: '#/components/schemas/ListenerArn' RawString: type: object deprecated: true properties: content: allOf: - $ref: '#/components/schemas/RawStringContent' - description: The YAML-formatted or JSON-formatted revision string. It includes information about which Lambda function to update and optional Lambda functions that validate deployment lifecycle events. sha256: allOf: - $ref: '#/components/schemas/RawStringSha256' - description: The SHA256 hash value of the revision content. description: A revision for an Lambda deployment that is a YAML-formatted or JSON-formatted string. For Lambda deployments, the revision is the same as the AppSpec file.RawString and String revision type are deprecated, use AppSpecContent type instead. S3Key: type: string AutoRollbackConfiguration: type: object properties: enabled: allOf: - $ref: '#/components/schemas/Boolean' - description: Indicates whether a defined automatic rollback configuration is currently enabled. events: allOf: - $ref: '#/components/schemas/AutoRollbackEventsList' - description: The event type or types that trigger a rollback. description: Information about a configuration for automatically rolling back to a previous version of an application revision when a deployment is not completed successfully. Value: type: string LoadBalancerInfo: type: object properties: elbInfoList: allOf: - $ref: '#/components/schemas/ELBInfoList' - description:

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.

targetGroupInfoList: allOf: - $ref: '#/components/schemas/TargetGroupInfoList' - description:

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.

targetGroupPairInfoList: allOf: - $ref: '#/components/schemas/TargetGroupPairInfoList' - description: ' The target group pair information. This is an array of 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 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.

' terminationWaitTimeInMinutes: allOf: - $ref: '#/components/schemas/Duration' - description:

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. 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 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.

' description: Information about the instances that belong to the replacement environment in a blue/green deployment. FileExistsBehavior: type: string enum: - DISALLOW - OVERWRITE - RETAIN InstanceCount: type: integer DeploymentIdRequiredException: {} InstanceAction: type: string enum: - TERMINATE - KEEP_ALIVE DeploymentGroupName: type: string minLength: 1 maxLength: 100 Key: type: string Description: type: string GreenFleetProvisioningAction: type: string enum: - DISCOVER_EXISTING - COPY_AUTO_SCALING_GROUP DeploymentsInfoList: type: array items: $ref: '#/components/schemas/DeploymentInfo' TargetGroupPairInfo: type: object properties: targetGroups: allOf: - $ref: '#/components/schemas/TargetGroupInfoList' - description: ' One pair of target groups. One is associated with the original task set. The second is associated with the task set that serves traffic after the deployment is complete. ' prodTrafficRoute: allOf: - $ref: '#/components/schemas/TrafficRoute' - description: ' The path used by a load balancer to route production traffic when an Amazon ECS deployment is complete. ' testTrafficRoute: allOf: - $ref: '#/components/schemas/TrafficRoute' - description: ' An optional path used by a load balancer to route test traffic after an Amazon ECS deployment. Validation can occur while test traffic is served during a deployment. ' description: ' Information about two target groups and how traffic is routed during an Amazon ECS deployment. An optional test traffic route can be specified. ' AdditionalDeploymentStatusInfo: type: string deprecated: true description: AdditionalDeploymentStatusInfo is deprecated, use DeploymentStatusMessageList instead. DeploymentStyle: type: object properties: deploymentType: allOf: - $ref: '#/components/schemas/DeploymentType' - description: Indicates whether to run an in-place deployment or a blue/green deployment. deploymentOption: allOf: - $ref: '#/components/schemas/DeploymentOption' - description: Indicates whether to route deployment traffic behind a load balancer. description: Information about the type of deployment, either in-place or blue/green, you want to run and whether to route deployment traffic behind a load balancer. TargetGroupName: type: string BlueGreenDeploymentConfiguration: type: object properties: terminateBlueInstancesOnDeploymentSuccess: allOf: - $ref: '#/components/schemas/BlueInstanceTerminationOption' - description: Information about whether to terminate instances in the original fleet during a blue/green deployment. deploymentReadyOption: allOf: - $ref: '#/components/schemas/DeploymentReadyOption' - description: Information about the action to take when newly provisioned instances are ready to receive traffic in a blue/green deployment. greenFleetProvisioningOption: allOf: - $ref: '#/components/schemas/GreenFleetProvisioningOption' - description: Information about how instances are provisioned for a replacement environment in a blue/green deployment. description: Information about blue/green deployment options for a deployment group. Repository: type: string Boolean: type: boolean RawStringContent: type: string AlarmName: type: string AutoScalingGroupNameList: type: array items: $ref: '#/components/schemas/AutoScalingGroupName' ETag: type: string InvalidDeploymentIdException: {} DeploymentStatus: type: string enum: - Created - Queued - InProgress - Baking - Succeeded - Failed - Stopped - Ready RevisionLocationType: type: string enum: - S3 - GitHub - String - AppSpecContent DeploymentsList: type: array items: $ref: '#/components/schemas/DeploymentId' DeploymentReadyOption: type: object properties: actionOnTimeout: allOf: - $ref: '#/components/schemas/DeploymentReadyAction' - description: '

Information about when to reroute traffic from an original environment to a replacement environment in a blue/green deployment.

' waitTimeInMinutes: allOf: - $ref: '#/components/schemas/Duration' - description: The number of minutes to wait before the status of a blue/green deployment is changed to Stopped if rerouting is not started manually. Applies only to the STOP_DEPLOYMENT option for actionOnTimeout. description: Information about how traffic is rerouted to instances in a replacement environment in a blue/green deployment. ErrorMessage: type: string S3Bucket: type: string TargetInstances: type: object properties: tagFilters: allOf: - $ref: '#/components/schemas/EC2TagFilterList' - description: The tag filter key, type, and value used to identify Amazon EC2 instances in a replacement environment for a blue/green deployment. Cannot be used in the same call as ec2TagSet. autoScalingGroups: allOf: - $ref: '#/components/schemas/AutoScalingGroupNameList' - description: The names of one or more Auto Scaling groups to identify a replacement environment for a blue/green deployment. ec2TagSet: allOf: - $ref: '#/components/schemas/EC2TagSet' - description: Information about the groups of Amazon EC2 instance tags that an instance must be identified by in order for it to be included in the replacement environment for a blue/green deployment. Cannot be used in the same call as tagFilters. description: Information about the instances to be used in the replacement environment in a blue/green deployment. DeploymentOption: type: string enum: - WITH_TRAFFIC_CONTROL - WITHOUT_TRAFFIC_CONTROL ListenerArn: type: string ComputePlatform: type: string enum: - Server - Lambda - ECS DeploymentOverview: type: object properties: Pending: allOf: - $ref: '#/components/schemas/InstanceCount' - description: The number of instances in the deployment in a pending state. InProgress: allOf: - $ref: '#/components/schemas/InstanceCount' - description: The number of instances in which the deployment is in progress. Succeeded: allOf: - $ref: '#/components/schemas/InstanceCount' - description: The number of instances in the deployment to which revisions have been successfully deployed. Failed: allOf: - $ref: '#/components/schemas/InstanceCount' - description: The number of instances in the deployment in a failed state. Skipped: allOf: - $ref: '#/components/schemas/InstanceCount' - description: The number of instances in the deployment in a skipped state. Ready: allOf: - $ref: '#/components/schemas/InstanceCount' - description: The number of instances in a replacement environment ready to receive traffic in a blue/green deployment. description: Information about the deployment status of the instances in the deployment. DeploymentId: type: string VersionId: type: string DeploymentType: type: string enum: - IN_PLACE - BLUE_GREEN AlarmList: type: array items: $ref: '#/components/schemas/Alarm' RawStringSha256: type: string ApplicationName: type: string minLength: 1 maxLength: 100 ErrorInformation: type: object properties: code: allOf: - $ref: '#/components/schemas/ErrorCode' - description: '

For more information, see Error Codes for CodeDeploy in the CodeDeploy User Guide.

The error code:

' message: allOf: - $ref: '#/components/schemas/ErrorMessage' - description: An accompanying error message. description: Information about a deployment error. ELBName: 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:

' version: allOf: - $ref: '#/components/schemas/VersionId' - description:

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. BatchGetDeploymentsOutput: type: object properties: deploymentsInfo: allOf: - $ref: '#/components/schemas/DeploymentsInfoList' - description: ' Information about the deployments. ' description: ' Represents the output of a BatchGetDeployments operation. ' BatchLimitExceededException: {} DeploymentConfigName: type: string minLength: 1 maxLength: 100 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. ' DeploymentInfo: type: object properties: applicationName: allOf: - $ref: '#/components/schemas/ApplicationName' - description: The application name. deploymentGroupName: allOf: - $ref: '#/components/schemas/DeploymentGroupName' - description: ' The deployment group name. ' deploymentConfigName: allOf: - $ref: '#/components/schemas/DeploymentConfigName' - description: ' The deployment configuration name. ' deploymentId: allOf: - $ref: '#/components/schemas/DeploymentId' - description: ' The unique ID of a deployment. ' previousRevision: allOf: - $ref: '#/components/schemas/RevisionLocation' - description: Information about the application revision that was deployed to the deployment group before the most recent successful deployment. revision: allOf: - $ref: '#/components/schemas/RevisionLocation' - description: Information about the location of stored application artifacts and the service from which to retrieve them. status: allOf: - $ref: '#/components/schemas/DeploymentStatus' - description: The current state of the deployment as a whole. errorInformation: allOf: - $ref: '#/components/schemas/ErrorInformation' - description: Information about any error associated with this deployment. createTime: allOf: - $ref: '#/components/schemas/Timestamp' - description: A timestamp that indicates when the deployment was created. startTime: allOf: - $ref: '#/components/schemas/Timestamp' - description:

A timestamp that indicates when the deployment was deployed to the deployment group.

In some cases, the reported value of the start time might be later than the complete time. This is due to differences in the clock settings of backend servers that participate in the deployment process.

completeTime: allOf: - $ref: '#/components/schemas/Timestamp' - description: A timestamp that indicates when the deployment was complete. deploymentOverview: allOf: - $ref: '#/components/schemas/DeploymentOverview' - description: A summary of the deployment status of the instances in the deployment. description: allOf: - $ref: '#/components/schemas/Description' - description: A comment about the deployment. creator: allOf: - $ref: '#/components/schemas/DeploymentCreator' - description: '

The means by which the deployment was created:

' ignoreApplicationStopFailures: allOf: - $ref: '#/components/schemas/Boolean' - description:

If true, then if an ApplicationStop, BeforeBlockTraffic, or AfterBlockTraffic deployment lifecycle event to an instance fails, then the deployment continues to the next deployment lifecycle event. For example, if ApplicationStop fails, the deployment continues with DownloadBundle. If BeforeBlockTraffic fails, the deployment continues with BlockTraffic. If AfterBlockTraffic fails, the deployment continues with ApplicationStop.

If false or not specified, then if a lifecycle event fails during a deployment to an instance, that deployment fails. If deployment to that instance is part of an overall deployment and the number of healthy hosts is not less than the minimum number of healthy hosts, then a deployment to the next instance is attempted.

During a deployment, the CodeDeploy agent runs the scripts specified for ApplicationStop, BeforeBlockTraffic, and AfterBlockTraffic in the AppSpec file from the previous successful deployment. (All other scripts are run from the AppSpec file in the current deployment.) If one of these scripts contains an error and does not run successfully, the deployment can fail.

If the cause of the failure is a script from the last successful deployment that will never run successfully, create a new deployment and use ignoreApplicationStopFailures to specify that the ApplicationStop, BeforeBlockTraffic, and AfterBlockTraffic failures should be ignored.

autoRollbackConfiguration: allOf: - $ref: '#/components/schemas/AutoRollbackConfiguration' - description: Information about the automatic rollback configuration associated with the deployment. updateOutdatedInstancesOnly: allOf: - $ref: '#/components/schemas/Boolean' - description: Indicates whether only instances that are not running the latest application revision are to be deployed to. rollbackInfo: allOf: - $ref: '#/components/schemas/RollbackInfo' - description: Information about a deployment rollback. deploymentStyle: allOf: - $ref: '#/components/schemas/DeploymentStyle' - description: Information about the type of deployment, either in-place or blue/green, you want to run and whether to route deployment traffic behind a load balancer. targetInstances: allOf: - $ref: '#/components/schemas/TargetInstances' - description: Information about the instances that belong to the replacement environment in a blue/green deployment. instanceTerminationWaitTimeStarted: allOf: - $ref: '#/components/schemas/Boolean' - description: Indicates whether the wait period set for the termination of instances in the original environment has started. Status is 'false' if the KEEP_ALIVE option is specified. Otherwise, 'true' as soon as the termination wait period starts. blueGreenDeploymentConfiguration: allOf: - $ref: '#/components/schemas/BlueGreenDeploymentConfiguration' - description: Information about blue/green deployment options for this deployment. loadBalancerInfo: allOf: - $ref: '#/components/schemas/LoadBalancerInfo' - description: Information about the load balancer used in the deployment. additionalDeploymentStatusInfo: allOf: - $ref: '#/components/schemas/AdditionalDeploymentStatusInfo' - description: Provides information about the results of a deployment, such as whether instances in the original environment in a blue/green deployment were not terminated. fileExistsBehavior: allOf: - $ref: '#/components/schemas/FileExistsBehavior' - description: '

Information about how CodeDeploy handles files that already exist in a deployment target location but weren''t part of the previous successful deployment.

' deploymentStatusMessages: allOf: - $ref: '#/components/schemas/DeploymentStatusMessageList' - description: Messages that contain information about the status of a deployment. computePlatform: allOf: - $ref: '#/components/schemas/ComputePlatform' - description: The destination platform type for the deployment (Lambda, Server, or ECS). externalId: allOf: - $ref: '#/components/schemas/ExternalId' - description: The unique ID for an external resource (for example, a CloudFormation stack ID) that is linked to this deployment. relatedDeployments: $ref: '#/components/schemas/RelatedDeployments' overrideAlarmConfiguration: $ref: '#/components/schemas/AlarmConfiguration' description: Information about a deployment. 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.

' alarms: allOf: - $ref: '#/components/schemas/AlarmList' - description: A list of alarms configured for the deployment or deployment group. A maximum of 10 alarms can be added. description: Information about alarms associated with a deployment or deployment group. TargetGroupPairInfoList: type: array items: $ref: '#/components/schemas/TargetGroupPairInfo' parameters: X-Amz-Security-Token: name: X-Amz-Security-Token in: header schema: type: string required: false X-Amz-Signature: name: X-Amz-Signature in: header schema: type: string required: false X-Amz-Credential: name: X-Amz-Credential 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-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-Algorithm: name: X-Amz-Algorithm 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