app_versions
Creates, updates, deletes, gets or lists an app_versions resource.
Overview
| Name | app_versions |
| Type | Resource |
| Id | aws.resiliencehub.app_versions |
Fields
The following fields are returned by SELECT queries:
- describe_app_version
- list_app_versions
| Name | Datatype | Description |
|---|---|---|
additional_info | object | Additional configuration parameters for an Resilience Hub application. If you want to implement additionalInfo through the Resilience Hub console rather than using an API call, see Configure the application configuration parameters. Currently, this parameter supports only failover region and account. |
app_arn | string | Amazon Resource Name (ARN) of the Resilience Hub application. The format for this ARN is: arn:partition:resiliencehub:region:account:app/app-id. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide. (pattern: <code>^arn:(aws|aws-cn|aws-iso|aws-iso-[a-z]{1}|aws-us-gov):[A-Za-z0-9][A-Za-z0-9_/.-]{0,62}:([a-z]{2}-((iso[a-z]{0,1}-)|(gov-)){0,1}[a-z]+-[0-9]):[0-9]{12}:[A-Za-z0-9/][A-Za-z0-9:_/+.-]{0,1023}$</code>) |
app_version | string | Resilience Hub application version. (pattern: <code>^\S{1,50}$</code>) |
| Name | Datatype | Description |
|---|---|---|
app_versions | array | The version of the application. |
next_token | string | Token for the next set of results, or null if there are no more results. (pattern: <code>^\S{1,2000}$</code>) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
describe_app_version | select | region | Describes the Resilience Hub application version. | |
list_app_versions | select | region | Lists the different versions for the Resilience Hub applications. | |
update_app_version | update | region, appArn | Updates the Resilience Hub application version. This API updates the Resilience Hub application draft version. To use this information for running resiliency assessments, you must publish the Resilience Hub application using the PublishAppVersion API. |
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
- describe_app_version
- list_app_versions
Describes the Resilience Hub application version.
SELECT
additional_info,
app_arn,
app_version
FROM aws.resiliencehub.app_versions
WHERE region = '{{ region }}' -- required
;
Lists the different versions for the Resilience Hub applications.
SELECT
app_versions,
next_token
FROM aws.resiliencehub.app_versions
WHERE region = '{{ region }}' -- required
;
UPDATE examples
- update_app_version
Updates the Resilience Hub application version. This API updates the Resilience Hub application draft version. To use this information for running resiliency assessments, you must publish the Resilience Hub application using the PublishAppVersion API.
UPDATE aws.resiliencehub.app_versions
SET
additionalInfo = '{{ additionalInfo }}',
appArn = '{{ appArn }}'
WHERE
region = '{{ region }}' --required
AND appArn = '{{ appArn }}' --required
RETURNING
additional_info,
app_arn,
app_version;