create_run_cache
¶
create_run_cache(
cache_s3_location: S3UriForBucketOrObject,
request_id: RunCacheRequestId,
*,
config_overrides: Optional[OmicsClientConfig] = None,
cache_behavior: Optional[CacheBehavior] = None,
description: Optional[UserCustomDescription] = None,
name: Optional[UserCustomName] = None,
tags: Optional[TagMap] = None,
cache_bucket_owner_id: Optional[AwsAccountId] = None,
) -> CreateRunCacheResponse
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.
Parameters:
-
cache_behavior(Optional[CacheBehavior], default:None) –Default cache behavior for runs that use this cache. Supported values are:
CACHE_ON_FAILURE: Caches task outputs from completed tasks for runs that fail. This setting is useful if you're debugging a workflow that fails after several tasks completed successfully. The subsequent run uses the cache outputs for previously-completed tasks if the task definition, inputs, and container in ECR are identical to the prior run.CACHE_ALWAYS: Caches task outputs from completed tasks for all runs. This setting is useful in development mode, but do not use it in a production setting.If you don't specify a value, the default behavior is CACHE_ON_FAILURE. When you start a run that uses this cache, you can override the default cache behavior.
For more information, see Run cache behavior in the Amazon Web Services HealthOmics User Guide.
-
cache_s3_location(S3UriForBucketOrObject) –Specify the S3 location for storing the cached task outputs. This data must be immediately accessible (not in an archived state).
-
description(Optional[UserCustomDescription], default:None) –Enter a description of the run cache.
-
name(Optional[UserCustomName], default:None) –Enter a user-friendly name for the run cache.
-
request_id(RunCacheRequestId) –A unique request token, to ensure idempotency. If you don't specify a token, Amazon Web Services HealthOmics automatically generates a universally unique identifier (UUID) for the request.
-
tags(Optional[TagMap], default:None) –Specify one or more tags to associate with this run cache.
-
cache_bucket_owner_id(Optional[AwsAccountId], default:None) –The Amazon Web Services account ID of the expected owner of the S3 bucket for the run cache. If not provided, your account ID is set as the owner of the bucket.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ConflictException–The request cannot be applied to the target resource in its current state.
-
InternalServerException–An unexpected error occurred. Try the request again.
-
RequestTimeoutException–The request timed out.
-
ResourceNotFoundException–The target resource was not found in the current Region.
-
ServiceQuotaExceededException–The request exceeds a service quota.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the constraints specified by an Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_omics/_services/omics.py
3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 | |