openapi: 3.0.0 info: version: '2014-10-06' x-release: v4 title: 'AWS CodeDeploy Applications #X Amz Target=CodeDeploy 20141006.ListOnPremisesInstances 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
Gets a list of names for one or more on-premises instances.
Unless otherwise specified, both registered and deregistered on-premises instance names are listed. To list only registered or deregistered on-premises instance names, use the registration status parameter.
responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/ListOnPremisesInstancesOutput' examples: ListOnPremisesInstances200Example: summary: Default ListOnPremisesInstances 200 response x-microcks-default: true value: instanceNames: example-resource nextToken: example-value '480': description: InvalidRegistrationStatusException content: application/json: schema: $ref: '#/components/schemas/InvalidRegistrationStatusException' examples: ListOnPremisesInstances480Example: summary: Default ListOnPremisesInstances 480 response x-microcks-default: true value: example-value '481': description: InvalidTagFilterException content: application/json: schema: $ref: '#/components/schemas/InvalidTagFilterException' examples: ListOnPremisesInstances481Example: summary: Default ListOnPremisesInstances 481 response x-microcks-default: true value: example-value '482': description: InvalidNextTokenException content: application/json: schema: $ref: '#/components/schemas/InvalidNextTokenException' examples: ListOnPremisesInstances482Example: summary: Default ListOnPremisesInstances 482 response x-microcks-default: true value: example-value requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ListOnPremisesInstancesInput' examples: ListOnPremisesInstancesRequestExample: summary: Default ListOnPremisesInstances request x-microcks-default: true value: registrationStatus: ACTIVE tagFilters: example-value nextToken: example-value parameters: - name: X-Amz-Target in: header required: true schema: type: string enum: - CodeDeploy_20141006.ListOnPremisesInstances summary: Amazon CodeDeploy List on Premises Instances x-microcks-operation: delay: 0 dispatcher: FALLBACK tags: - '#X Amz Target=CodeDeploy 20141006.ListOnPremisesInstances' components: schemas: InstanceName: type: string InvalidNextTokenException: {} ListOnPremisesInstancesOutput: type: object properties: instanceNames: allOf: - $ref: '#/components/schemas/InstanceNameList' - description: The list of matching on-premises instance names. 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 on-premises instances call to return the next set of on-premises instances in the list. description: Represents the output of the list on-premises instances operation. InstanceNameList: type: array items: $ref: '#/components/schemas/InstanceName' ListOnPremisesInstancesInput: type: object title: ListOnPremisesInstancesInput properties: registrationStatus: allOf: - $ref: '#/components/schemas/RegistrationStatus' - description: 'The registration status of the on-premises instances:
Deregistered: Include deregistered on-premises instances in the resulting list.
Registered: Include registered on-premises instances in the resulting list.
ListOnPremisesInstances operation.
TagFilterType:
type: string
enum:
- KEY_ONLY
- VALUE_ONLY
- KEY_AND_VALUE
Key:
type: string
Value:
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.