Skip to main content

run_caches

Creates, updates, deletes, gets or lists a run_caches resource.

Overview

Namerun_caches
TypeResource
Idaws.omics.run_caches

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe run cache ID. (pattern: <code>[0-9]+</code>)
namestringThe run cache name. (pattern: <code>[\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+</code>)
arnstringUnique resource identifier for the run cache. (pattern: <code>arn:.+</code>)
cache_behaviorstringThe default cache behavior for runs using this cache. (CACHE_ON_FAILURE, CACHE_ALWAYS)
cache_bucket_owner_idstringThe identifier of the bucket owner. (pattern: <code>[0-9]+</code>)
cache_s3_uristringUri to a S3 object or bucket (pattern: <code>s3:​//([a-z0-9][a-z0-9-.]{1,61}[a-z0-9])(/(.{0,1024}))?</code>)
creation_timestring (date-time)Creation time of the run cache (an ISO 8601 formatted string).
descriptionstringThe run cache description. (pattern: <code>[\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+</code>)
statusstringThe run cache status. (ACTIVE, DELETED, FAILED)
tagsobjectThe tags associated with the run cache.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_run_cacheselectid, regionRetrieves detailed information about the specified run cache using its ID. For more information, see Call caching for Amazon Web Services HealthOmics runs in the Amazon Web Services HealthOmics User Guide.
list_run_cachesselectregionmaxResults, startingTokenRetrieves a list of your run caches and the metadata for each cache.
create_run_cacheinsertregion, cacheS3Location, requestIdCreates a run cache to store and reference task outputs from completed private runs. Specify an Amazon S3 location where Amazon Web Services HealthOmics saves the cached data. This data must be immediately accessible and not in an archived state. You can save intermediate task files to a run cache if they are declared as task outputs in the workflow definition file. For more information, see Call caching and Creating a run cache in the Amazon Web Services HealthOmics User Guide.
update_run_cacheupdateid, regionUpdates a run cache using its ID and returns a response with no body if the operation is successful. You can update the run cache description, name, or the default run cache behavior with CACHE_ON_FAILURE or CACHE_ALWAYS. To confirm that your run cache settings have been properly updated, use the GetRunCache API operation. For more information, see How call caching works in the Amazon Web Services HealthOmics User Guide.
delete_run_cachedeleteid, regionDeletes a run cache and returns a response with no body if the operation is successful. This action removes the cache metadata stored in the service account, but does not delete the data in Amazon S3. You can access the cache data in Amazon S3, for inspection or to troubleshoot issues. You can remove old cache data using standard S3 Delete operations. For more information, see Deleting a run cache in the Amazon Web Services HealthOmics User Guide.

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
idstringRun cache identifier for the cache you want to delete.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of results to return.
startingTokenstringOptional pagination token returned from a prior call to the ListRunCaches API operation.

SELECT examples

Retrieves detailed information about the specified run cache using its ID. For more information, see Call caching for Amazon Web Services HealthOmics runs in the Amazon Web Services HealthOmics User Guide.

SELECT
id,
name,
arn,
cache_behavior,
cache_bucket_owner_id,
cache_s3_uri,
creation_time,
description,
status,
tags
FROM aws.omics.run_caches
WHERE id = '{{ id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a run cache to store and reference task outputs from completed private runs. Specify an Amazon S3 location where Amazon Web Services HealthOmics saves the cached data. This data must be immediately accessible and not in an archived state. You can save intermediate task files to a run cache if they are declared as task outputs in the workflow definition file. For more information, see Call caching and Creating a run cache in the Amazon Web Services HealthOmics User Guide.

INSERT INTO aws.omics.run_caches (
cacheBehavior,
cacheS3Location,
description,
name,
requestId,
tags,
cacheBucketOwnerId,
region
)
SELECT
'{{ cacheBehavior }}',
'{{ cacheS3Location }}' /* required */,
'{{ description }}',
'{{ name }}',
'{{ requestId }}' /* required */,
'{{ tags }}',
'{{ cacheBucketOwnerId }}',
'{{ region }}'
RETURNING
id,
arn,
status,
tags
;

UPDATE examples

Updates a run cache using its ID and returns a response with no body if the operation is successful. You can update the run cache description, name, or the default run cache behavior with CACHE_ON_FAILURE or CACHE_ALWAYS. To confirm that your run cache settings have been properly updated, use the GetRunCache API operation. For more information, see How call caching works in the Amazon Web Services HealthOmics User Guide.

UPDATE aws.omics.run_caches
SET
cacheBehavior = '{{ cacheBehavior }}',
description = '{{ description }}',
name = '{{ name }}'
WHERE
id = '{{ id }}' --required
AND region = '{{ region }}' --required;

DELETE examples

Deletes a run cache and returns a response with no body if the operation is successful. This action removes the cache metadata stored in the service account, but does not delete the data in Amazon S3. You can access the cache data in Amazon S3, for inspection or to troubleshoot issues. You can remove old cache data using standard S3 Delete operations. For more information, see Deleting a run cache in the Amazon Web Services HealthOmics User Guide.

DELETE FROM aws.omics.run_caches
WHERE id = '{{ id }}' --required
AND region = '{{ region }}' --required
;