application_revisions
Creates, updates, deletes, gets or lists an application_revisions resource.
Overview
| Name | application_revisions |
| Type | Resource |
| Id | aws.codedeploy.application_revisions |
Fields
The following fields are returned by SELECT queries:
- batch_get_application_revisions
- get_application_revision
- list_application_revisions
| Name | Datatype | Description |
|---|---|---|
application_name | string | The name of the application that corresponds to the revisions. |
error_message | string | Information about errors that might have occurred during the API call. |
revisions | array | Additional information about the revisions, including the type and location. |
| Name | Datatype | Description |
|---|---|---|
application_name | string | The name of the application that corresponds to the revision. |
revision | object | Information about the location of an application revision. |
revision_info | object | General information about the revision. |
| Name | Datatype | Description |
|---|---|---|
app_spec_content | object | 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. |
git_hub_location | object | Information about the location of application artifacts stored in GitHub. |
revision_type | string | 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. (S3, GitHub, String, AppSpecContent) |
s_3_location | object | Information about the location of a revision stored in Amazon S3. |
string | object | Information about the location of an Lambda deployment revision stored as a RawString. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
batch_get_application_revisions | select | region | Gets information about one or more application revisions. The maximum number of application revisions that can be returned is 25. | |
get_application_revision | select | region | Gets information about an application revision. | |
list_application_revisions | select | region | Lists information about revisions for an application. | |
register_application_revision | insert | region, applicationName, revision | Registers with CodeDeploy a revision for the specified application. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- batch_get_application_revisions
- get_application_revision
- list_application_revisions
Gets information about one or more application revisions. The maximum number of application revisions that can be returned is 25.
SELECT
application_name,
error_message,
revisions
FROM aws.codedeploy.application_revisions
WHERE region = '{{ region }}' -- required
;
Gets information about an application revision.
SELECT
application_name,
revision,
revision_info
FROM aws.codedeploy.application_revisions
WHERE region = '{{ region }}' -- required
;
Lists information about revisions for an application.
SELECT
app_spec_content,
git_hub_location,
revision_type,
s_3_location,
string
FROM aws.codedeploy.application_revisions
WHERE region = '{{ region }}' -- required
;
INSERT examples
- register_application_revision
- Manifest
Registers with CodeDeploy a revision for the specified application.
INSERT INTO aws.codedeploy.application_revisions (
applicationName,
description,
revision,
region
)
SELECT
'{{ applicationName }}' /* required */,
'{{ description }}',
'{{ revision }}' /* required */,
'{{ region }}'
;
# Description fields are for documentation purposes
- name: application_revisions
props:
- name: region
value: "{{ region }}"
description: Required parameter for the application_revisions resource.
- name: applicationName
value: "{{ applicationName }}"
description: |
The name of an CodeDeploy application associated with the user or Amazon Web Services account.
- name: description
value: "{{ description }}"
description: |
A comment about the revision.
- name: revision
description: |
Information about the location of an application revision.
value:
revisionType: "{{ revisionType }}"
s3Location:
bucket: "{{ bucket }}"
key: "{{ key }}"
bundleType: "{{ bundleType }}"
version: "{{ version }}"
eTag: "{{ eTag }}"
gitHubLocation:
repository: "{{ repository }}"
commitId: "{{ commitId }}"
string:
content: "{{ content }}"
sha256: "{{ sha256 }}"
appSpecContent:
content: "{{ content }}"
sha256: "{{ sha256 }}"