Skip to main content

app_versions

Creates, updates, deletes, gets or lists an app_versions resource.

Overview

Nameapp_versions
TypeResource
Idaws.resiliencehub.app_versions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
additional_infoobjectAdditional 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_arnstringAmazon 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_versionstringResilience Hub application version. (pattern: <code>^\S{1,50}$</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_app_versionselectregionDescribes the Resilience Hub application version.
list_app_versionsselectregionLists the different versions for the Resilience Hub applications.
update_app_versionupdateregion, appArnUpdates 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.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Describes the Resilience Hub application version.

SELECT
additional_info,
app_arn,
app_version
FROM aws.resiliencehub.app_versions
WHERE region = '{{ region }}' -- required
;

UPDATE examples

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;