UNPKG

cdk-iam-floyd

Version:

AWS IAM policy statement generator with fluent interface for AWS CDK

1,312 lines 129 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Omics = void 0; const shared_1 = require("../../shared"); /** * Statement provider for service [omics](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awshealthomics.html). * * @param sid [SID](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_sid.html) of the statement */ class Omics extends shared_1.PolicyStatement { /** * Grants permission to abort multipart read set uploads * * Access Level: Write * * https://docs.aws.amazon.com/omics/latest/api/API_AbortMultipartReadSetUpload.html */ toAbortMultipartReadSetUpload() { return this.to('AbortMultipartReadSetUpload'); } /** * Grants permission to accept a share * * Access Level: Write * * https://docs.aws.amazon.com/omics/latest/api/API_AcceptShare.html */ toAcceptShare() { return this.to('AcceptShare'); } /** * Grants permission to batch delete Read Sets in the given Sequence Store * * Access Level: Write * * https://docs.aws.amazon.com/omics/latest/api/API_BatchDeleteReadSet.html */ toBatchDeleteReadSet() { return this.to('BatchDeleteReadSet'); } /** * Grants permission to cancel an Annotation Import Job * * Access Level: Write * * https://docs.aws.amazon.com/omics/latest/api/API_CancelAnnotationImportJob.html */ toCancelAnnotationImportJob() { return this.to('CancelAnnotationImportJob'); } /** * Grants permission to cancel a workflow run and stop all workflow tasks * * Access Level: Write * * https://docs.aws.amazon.com/omics/latest/api/API_CancelRun.html */ toCancelRun() { return this.to('CancelRun'); } /** * Grants permission to cancel a Variant Import Job * * Access Level: Write * * https://docs.aws.amazon.com/omics/latest/api/API_CancelVariantImportJob.html */ toCancelVariantImportJob() { return this.to('CancelVariantImportJob'); } /** * Grants permission to complete a multipart read set upload * * Access Level: Write * * https://docs.aws.amazon.com/omics/latest/api/API_CompleteMultipartReadSetUpload.html */ toCompleteMultipartReadSetUpload() { return this.to('CompleteMultipartReadSetUpload'); } /** * Grants permission to create an Annotation Store * * Access Level: Write * * https://docs.aws.amazon.com/omics/latest/api/API_CreateAnnotationStore.html */ toCreateAnnotationStore() { return this.to('CreateAnnotationStore'); } /** * Grants permission to create a Version in an Annotation Store * * Access Level: Write * * https://docs.aws.amazon.com/omics/latest/api/API_CreateAnnotationStoreVersion.html */ toCreateAnnotationStoreVersion() { return this.to('CreateAnnotationStoreVersion'); } /** * Grants permission to create a multipart read set upload * * Access Level: Write * * https://docs.aws.amazon.com/omics/latest/api/API_CreateMultipartReadSetUpload.html */ toCreateMultipartReadSetUpload() { return this.to('CreateMultipartReadSetUpload'); } /** * Grants permission to create a Reference Store * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/omics/latest/api/API_CreateReferenceStore.html */ toCreateReferenceStore() { return this.to('CreateReferenceStore'); } /** * Grants permission to create a new workflow run group * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/omics/latest/api/API_CreateRunGroup.html */ toCreateRunGroup() { return this.to('CreateRunGroup'); } /** * Grants permission to create a Sequence Store * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/omics/latest/api/API_CreateSequenceStore.html */ toCreateSequenceStore() { return this.to('CreateSequenceStore'); } /** * Grants permission to create a share * * Access Level: Write * * https://docs.aws.amazon.com/omics/latest/api/API_CreateShare.html */ toCreateShare() { return this.to('CreateShare'); } /** * Grants permission to create a Variant Store * * Access Level: Write * * https://docs.aws.amazon.com/omics/latest/api/API_CreateVariantStore.html */ toCreateVariantStore() { return this.to('CreateVariantStore'); } /** * Grants permission to create a new workflow with a workflow definition and template of workflow parameters * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/omics/latest/api/API_CreateWorkflow.html */ toCreateWorkflow() { return this.to('CreateWorkflow'); } /** * Grants permission to delete an Annotation Store * * Access Level: Write * * https://docs.aws.amazon.com/omics/latest/api/API_DeleteAnnotationStore.html */ toDeleteAnnotationStore() { return this.to('DeleteAnnotationStore'); } /** * Grants permission to delete Versions in an Annotation Store * * Access Level: Write * * https://docs.aws.amazon.com/omics/latest/api/API_DeleteAnnotationStoreVersions.html */ toDeleteAnnotationStoreVersions() { return this.to('DeleteAnnotationStoreVersions'); } /** * Grants permission to delete a Reference in the given Reference Store * * Access Level: Write * * https://docs.aws.amazon.com/omics/latest/api/API_DeleteReference.html */ toDeleteReference() { return this.to('DeleteReference'); } /** * Grants permission to delete a Reference Store * * Access Level: Write * * https://docs.aws.amazon.com/omics/latest/api/API_DeleteReferenceStore.html */ toDeleteReferenceStore() { return this.to('DeleteReferenceStore'); } /** * Grants permission to delete a workflow run * * Access Level: Write * * https://docs.aws.amazon.com/omics/latest/api/API_DeleteRun.html */ toDeleteRun() { return this.to('DeleteRun'); } /** * Grants permission to delete a workflow run group * * Access Level: Write * * https://docs.aws.amazon.com/omics/latest/api/API_DeleteRunGroup.html */ toDeleteRunGroup() { return this.to('DeleteRunGroup'); } /** * Grants permission to delete a Sequence Store * * Access Level: Write * * https://docs.aws.amazon.com/omics/latest/api/API_DeleteSequenceStore.html */ toDeleteSequenceStore() { return this.to('DeleteSequenceStore'); } /** * Grants permission to delete a share * * Access Level: Write * * https://docs.aws.amazon.com/omics/latest/api/API_DeleteShare.html */ toDeleteShare() { return this.to('DeleteShare'); } /** * Grants permission to delete a Variant Store * * Access Level: Write * * https://docs.aws.amazon.com/omics/latest/api/API_DeleteVariantStore.html */ toDeleteVariantStore() { return this.to('DeleteVariantStore'); } /** * Grants permission to delete a workflow * * Access Level: Write * * https://docs.aws.amazon.com/omics/latest/api/API_DeleteWorkflow.html */ toDeleteWorkflow() { return this.to('DeleteWorkflow'); } /** * Grants permission to get the status of an Annotation Import Job * * Access Level: Read * * https://docs.aws.amazon.com/omics/latest/api/API_GetAnnotationImportJob.html */ toGetAnnotationImportJob() { return this.to('GetAnnotationImportJob'); } /** * Grants permission to get detailed information about an Annotation Store * * Access Level: Read * * https://docs.aws.amazon.com/omics/latest/api/API_GetAnnotationStore.html */ toGetAnnotationStore() { return this.to('GetAnnotationStore'); } /** * Grants permission to get detailed information about a version in an Annotation Store * * Access Level: Read * * https://docs.aws.amazon.com/omics/latest/api/API_GetAnnotationStoreVersion.html */ toGetAnnotationStoreVersion() { return this.to('GetAnnotationStoreVersion'); } /** * Grants permission to get a Read Set in the given Sequence Store * * Access Level: Read * * https://docs.aws.amazon.com/omics/latest/api/API_GetReadSet.html */ toGetReadSet() { return this.to('GetReadSet'); } /** * Grants permission to get details about a Read Set activation job for the given Sequence Store * * Access Level: Read * * https://docs.aws.amazon.com/omics/latest/api/API_GetReadSetActivationJob.html */ toGetReadSetActivationJob() { return this.to('GetReadSetActivationJob'); } /** * Grants permission to get details about a Read Set export job for the given Sequence Store * * Access Level: Read * * https://docs.aws.amazon.com/omics/latest/api/API_GetReadSetExportJob.html */ toGetReadSetExportJob() { return this.to('GetReadSetExportJob'); } /** * Grants permission to get details about a Read Set import job for the given Sequence Store * * Access Level: Read * * https://docs.aws.amazon.com/omics/latest/api/API_GetReadSetImportJob.html */ toGetReadSetImportJob() { return this.to('GetReadSetImportJob'); } /** * Grants permission to get details about a Read Set in the given Sequence Store * * Access Level: Read * * https://docs.aws.amazon.com/omics/latest/api/API_GetReadSetMetadata.html */ toGetReadSetMetadata() { return this.to('GetReadSetMetadata'); } /** * Grants permission to get a Reference in the given Reference Store * * Access Level: Read * * https://docs.aws.amazon.com/omics/latest/api/API_GetReference.html */ toGetReference() { return this.to('GetReference'); } /** * Grants permission to get details about a Reference import job for the given Reference Store * * Access Level: Read * * https://docs.aws.amazon.com/omics/latest/api/API_GetReferenceImportJob.html */ toGetReferenceImportJob() { return this.to('GetReferenceImportJob'); } /** * Grants permission to get details about a Reference in the given Reference Store * * Access Level: Read * * https://docs.aws.amazon.com/omics/latest/api/API_GetReferenceMetadata.html */ toGetReferenceMetadata() { return this.to('GetReferenceMetadata'); } /** * Grants permission to get details about a Reference Store * * Access Level: Read * * https://docs.aws.amazon.com/omics/latest/api/API_GetReferenceStore.html */ toGetReferenceStore() { return this.to('GetReferenceStore'); } /** * Grants permission to retrieve workflow run details * * Access Level: Read * * https://docs.aws.amazon.com/omics/latest/api/API_GetRun.html */ toGetRun() { return this.to('GetRun'); } /** * Grants permission to retrieve workflow run group details * * Access Level: Read * * https://docs.aws.amazon.com/omics/latest/api/API_GetRunGroup.html */ toGetRunGroup() { return this.to('GetRunGroup'); } /** * Grants permission to retrieve workflow task details * * Access Level: Read * * https://docs.aws.amazon.com/omics/latest/api/API_GetRunTask.html */ toGetRunTask() { return this.to('GetRunTask'); } /** * Grants permission to get details about a Sequence Store * * Access Level: Read * * https://docs.aws.amazon.com/omics/latest/api/API_GetSequenceStore.html */ toGetSequenceStore() { return this.to('GetSequenceStore'); } /** * Grants permission to get detailed information about a Share * * Access Level: Read * * https://docs.aws.amazon.com/omics/latest/api/API_GetShare.html */ toGetShare() { return this.to('GetShare'); } /** * Grants permission to get the status of a Variant Import Job * * Access Level: Read * * https://docs.aws.amazon.com/omics/latest/api/API_GetVariantImportJob.html */ toGetVariantImportJob() { return this.to('GetVariantImportJob'); } /** * Grants permission to get detailed information about a Variant Store * * Access Level: Read * * https://docs.aws.amazon.com/omics/latest/api/API_GetVariantStore.html */ toGetVariantStore() { return this.to('GetVariantStore'); } /** * Grants permission to retrieve workflow details * * Access Level: Read * * https://docs.aws.amazon.com/omics/latest/api/API_GetWorkflow.html */ toGetWorkflow() { return this.to('GetWorkflow'); } /** * Grants permission to get a list of Annotation Import Jobs * * Access Level: List * * https://docs.aws.amazon.com/omics/latest/api/API_ListAnnotationImportJobs.html */ toListAnnotationImportJobs() { return this.to('ListAnnotationImportJobs'); } /** * Grants permission to retrieve a list of information about Versions in an Annotation Store * * Access Level: List * * https://docs.aws.amazon.com/omics/latest/api/API_ListAnnotationStoreVersions.html */ toListAnnotationStoreVersions() { return this.to('ListAnnotationStoreVersions'); } /** * Grants permission to retrieve a list of information about Annotation Stores * * Access Level: List * * https://docs.aws.amazon.com/omics/latest/api/API_ListAnnotationStores.html */ toListAnnotationStores() { return this.to('ListAnnotationStores'); } /** * Grants permission to list multipart read set uploads * * Access Level: List * * https://docs.aws.amazon.com/omics/latest/api/API_ListMultipartReadSetUploads.html */ toListMultipartReadSetUploads() { return this.to('ListMultipartReadSetUploads'); } /** * Grants permission to list Read Set activation jobs for the given Sequence Store * * Access Level: List * * https://docs.aws.amazon.com/omics/latest/api/API_ListReadSetActivationJobs.html */ toListReadSetActivationJobs() { return this.to('ListReadSetActivationJobs'); } /** * Grants permission to list Read Set export jobs for the given Sequence Store * * Access Level: List * * https://docs.aws.amazon.com/omics/latest/api/API_ListReadSetExportJobs.html */ toListReadSetExportJobs() { return this.to('ListReadSetExportJobs'); } /** * Grants permission to list Read Set import jobs for the given Sequence Store * * Access Level: List * * https://docs.aws.amazon.com/omics/latest/api/API_ListReadSetImportJobs.html */ toListReadSetImportJobs() { return this.to('ListReadSetImportJobs'); } /** * Grants permission to list read set upload parts * * Access Level: List * * https://docs.aws.amazon.com/omics/latest/api/API_ListReadSetUploadParts.html */ toListReadSetUploadParts() { return this.to('ListReadSetUploadParts'); } /** * Grants permission to list Read Sets in the given Sequence Store * * Access Level: List * * https://docs.aws.amazon.com/omics/latest/api/API_ListReadSets.html */ toListReadSets() { return this.to('ListReadSets'); } /** * Grants permission to list Reference import jobs for the given Reference Store * * Access Level: List * * https://docs.aws.amazon.com/omics/latest/api/API_ListReferenceImportJobs.html */ toListReferenceImportJobs() { return this.to('ListReferenceImportJobs'); } /** * Grants permission to list Reference Stores * * Access Level: List * * https://docs.aws.amazon.com/omics/latest/api/API_ListReferenceStores.html */ toListReferenceStores() { return this.to('ListReferenceStores'); } /** * Grants permission to list References in the given Reference Store * * Access Level: List * * https://docs.aws.amazon.com/omics/latest/api/API_ListReferences.html */ toListReferences() { return this.to('ListReferences'); } /** * Grants permission to retrieve a list of workflow run groups * * Access Level: List * * https://docs.aws.amazon.com/omics/latest/api/API_ListRunGroups.html */ toListRunGroups() { return this.to('ListRunGroups'); } /** * Grants permission to retrieve a list of tasks for a workflow run * * Access Level: List * * https://docs.aws.amazon.com/omics/latest/api/API_ListRunTasks.html */ toListRunTasks() { return this.to('ListRunTasks'); } /** * Grants permission to retrieve a list of workflow runs * * Access Level: List * * https://docs.aws.amazon.com/omics/latest/api/API_ListRuns.html */ toListRuns() { return this.to('ListRuns'); } /** * Grants permission to list Sequence Stores * * Access Level: List * * https://docs.aws.amazon.com/omics/latest/api/API_ListSequenceStores.html */ toListSequenceStores() { return this.to('ListSequenceStores'); } /** * Grants permission to retrieve a list of information about shares * * Access Level: List * * https://docs.aws.amazon.com/omics/latest/api/API_ListShares.html */ toListShares() { return this.to('ListShares'); } /** * Grants permission to retrieve a list of resource AWS tags * * Access Level: List * * https://docs.aws.amazon.com/omics/latest/api/API_ListTagsForResource.html */ toListTagsForResource() { return this.to('ListTagsForResource'); } /** * Grants permission to get a list of Variant Import Jobs * * Access Level: List * * https://docs.aws.amazon.com/omics/latest/api/API_ListVariantImportJobs.html */ toListVariantImportJobs() { return this.to('ListVariantImportJobs'); } /** * Grants permission to retrieve a list of metadata for Variant Stores * * Access Level: List * * https://docs.aws.amazon.com/omics/latest/api/API_ListVariantStores.html */ toListVariantStores() { return this.to('ListVariantStores'); } /** * Grants permission to retrieve a list of available workflows * * Access Level: List * * https://docs.aws.amazon.com/omics/latest/api/API_ListWorkflows.html */ toListWorkflows() { return this.to('ListWorkflows'); } /** * Grants permission to import a list of Annotation files to an Annotation Store * * Access Level: Write * * https://docs.aws.amazon.com/omics/latest/api/API_StartAnnotationImportJob.html */ toStartAnnotationImportJob() { return this.to('StartAnnotationImportJob'); } /** * Grants permission to start a Read Set activation job from the given Sequence Store * * Access Level: Write * * https://docs.aws.amazon.com/omics/latest/api/API_StartReadSetActivationJob.html */ toStartReadSetActivationJob() { return this.to('StartReadSetActivationJob'); } /** * Grants permission to start a Read Set export job from the given Sequence Store * * Access Level: Write * * https://docs.aws.amazon.com/omics/latest/api/API_StartReadSetExportJob.html */ toStartReadSetExportJob() { return this.to('StartReadSetExportJob'); } /** * Grants permission to start a Read Set import job into the given Sequence Store * * Access Level: Write * * https://docs.aws.amazon.com/omics/latest/api/API_StartReadSetImportJob.html */ toStartReadSetImportJob() { return this.to('StartReadSetImportJob'); } /** * Grants permission to start a Reference import job into the given Reference Store * * Access Level: Write * * https://docs.aws.amazon.com/omics/latest/api/API_StartReferenceImportJob.html */ toStartReferenceImportJob() { return this.to('StartReferenceImportJob'); } /** * Grants permission to start a workflow run * * Access Level: Write * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/omics/latest/api/API_StartRun.html */ toStartRun() { return this.to('StartRun'); } /** * Grants permission to import a list of variant files to an Variant Store * * Access Level: Write * * https://docs.aws.amazon.com/omics/latest/api/API_StartVariantImportJob.html */ toStartVariantImportJob() { return this.to('StartVariantImportJob'); } /** * Grants permission to add AWS tags to a resource * * Access Level: Tagging * * Possible conditions: * - .ifAwsRequestTag() * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/omics/latest/api/API_TagResource.html */ toTagResource() { return this.to('TagResource'); } /** * Grants permission to remove resource AWS tags * * Access Level: Tagging * * Possible conditions: * - .ifAwsTagKeys() * * https://docs.aws.amazon.com/omics/latest/api/API_UntagResource.html */ toUntagResource() { return this.to('UntagResource'); } /** * Grants permission to update information about the Annotation Store * * Access Level: Write * * https://docs.aws.amazon.com/omics/latest/api/API_UpdateAnnotationStore.html */ toUpdateAnnotationStore() { return this.to('UpdateAnnotationStore'); } /** * Grants permission to update information about the Version in an Annotation Store * * Access Level: Write * * https://docs.aws.amazon.com/omics/latest/api/API_UpdateAnnotationStoreVersion.html */ toUpdateAnnotationStoreVersion() { return this.to('UpdateAnnotationStoreVersion'); } /** * Grants permission to update a workflow run group * * Access Level: Write * * https://docs.aws.amazon.com/omics/latest/api/API_UpdateRunGroup.html */ toUpdateRunGroup() { return this.to('UpdateRunGroup'); } /** * Grants permission to update metadata about the Variant Store * * Access Level: Write * * https://docs.aws.amazon.com/omics/latest/api/API_UpdateVariantStore.html */ toUpdateVariantStore() { return this.to('UpdateVariantStore'); } /** * Grants permission to update workflow details * * Access Level: Write * * https://docs.aws.amazon.com/omics/latest/api/API_UpdateWorkflow.html */ toUpdateWorkflow() { return this.to('UpdateWorkflow'); } /** * Grants permission to upload read set parts * * Access Level: Write * * https://docs.aws.amazon.com/omics/latest/api/API_UploadReadSetPart.html */ toUploadReadSetPart() { return this.to('UploadReadSetPart'); } /** * Adds a resource of type AnnotationImportJob to the statement * * https://docs.aws.amazon.com/omics/latest/api/API_AnnotationImportJobItem.html * * @param annotationImportJobId - Identifier for the annotationImportJobId. * @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account. * @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region. * @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition. * * Possible conditions: * - .ifAnnotationImportJobJobId() */ onAnnotationImportJob(annotationImportJobId, account, region, partition) { return this.on(`arn:${partition ?? this.defaultPartition}:omics:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:annotationImportJob/${annotationImportJobId}`); } /** * Adds a resource of type AnnotationStore to the statement * * https://docs.aws.amazon.com/omics/latest/api/API_AnnotationStoreItem.html * * @param annotationStoreId - Identifier for the annotationStoreId. * @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account. * @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region. * @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition. * * Possible conditions: * - .ifAnnotationStoreName() */ onAnnotationStore(annotationStoreId, account, region, partition) { return this.on(`arn:${partition ?? this.defaultPartition}:omics:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:annotationStore/${annotationStoreId}`); } /** * Adds a resource of type AnnotationStoreVersion to the statement * * https://docs.aws.amazon.com/omics/latest/api/API_AnnotationStoreVersionItem.html * * @param annotationStoreName - Identifier for the annotationStoreName. * @param annotationStoreVersionName - Identifier for the annotationStoreVersionName. * @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account. * @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region. * @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition. * * Possible conditions: * - .ifAnnotationStoreVersionName() */ onAnnotationStoreVersion(annotationStoreName, annotationStoreVersionName, account, region, partition) { return this.on(`arn:${partition ?? this.defaultPartition}:omics:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:annotationStore/${annotationStoreName}/version/${annotationStoreVersionName}`); } /** * Adds a resource of type readSet to the statement * * https://docs.aws.amazon.com/omics/latest/api/API_ReadSetFiles.html * * @param sequenceStoreId - Identifier for the sequenceStoreId. * @param readSetId - Identifier for the readSetId. * @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account. * @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region. * @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition. * * Possible conditions: * - .ifAwsResourceTag() */ onReadSet(sequenceStoreId, readSetId, account, region, partition) { return this.on(`arn:${partition ?? this.defaultPartition}:omics:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:sequenceStore/${sequenceStoreId}/readSet/${readSetId}`); } /** * Adds a resource of type reference to the statement * * https://docs.aws.amazon.com/omics/latest/api/API_ReferenceFiles.html * * @param referenceStoreId - Identifier for the referenceStoreId. * @param referenceId - Identifier for the referenceId. * @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account. * @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region. * @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition. * * Possible conditions: * - .ifAwsResourceTag() */ onReference(referenceStoreId, referenceId, account, region, partition) { return this.on(`arn:${partition ?? this.defaultPartition}:omics:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:referenceStore/${referenceStoreId}/reference/${referenceId}`); } /** * Adds a resource of type referenceStore to the statement * * https://docs.aws.amazon.com/omics/latest/api/API_ReferenceStoreDetail.html * * @param referenceStoreId - Identifier for the referenceStoreId. * @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account. * @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region. * @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition. * * Possible conditions: * - .ifAwsResourceTag() */ onReferenceStore(referenceStoreId, account, region, partition) { return this.on(`arn:${partition ?? this.defaultPartition}:omics:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:referenceStore/${referenceStoreId}`); } /** * Adds a resource of type run to the statement * * https://docs.aws.amazon.com/omics/latest/api/API_RunListItem.html * * @param id - Identifier for the id. * @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account. * @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region. * @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition. * * Possible conditions: * - .ifAwsResourceTag() */ onRun(id, account, region, partition) { return this.on(`arn:${partition ?? this.defaultPartition}:omics:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:run/${id}`); } /** * Adds a resource of type runGroup to the statement * * https://docs.aws.amazon.com/omics/latest/api/API_RunGroupListItem.html * * @param id - Identifier for the id. * @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account. * @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region. * @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition. * * Possible conditions: * - .ifAwsResourceTag() */ onRunGroup(id, account, region, partition) { return this.on(`arn:${partition ?? this.defaultPartition}:omics:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:runGroup/${id}`); } /** * Adds a resource of type sequenceStore to the statement * * https://docs.aws.amazon.com/omics/latest/api/API_SequenceStoreDetail.html * * @param sequenceStoreId - Identifier for the sequenceStoreId. * @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account. * @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region. * @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition. * * Possible conditions: * - .ifAwsResourceTag() */ onSequenceStore(sequenceStoreId, account, region, partition) { return this.on(`arn:${partition ?? this.defaultPartition}:omics:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:sequenceStore/${sequenceStoreId}`); } /** * Adds a resource of type TaggingResource to the statement * * https://docs.aws.amazon.com/omics/latest/api/API_TagResource.html * * @param tagKey - Identifier for the tagKey. * @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account. * @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region. * @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition. */ onTaggingResource(tagKey, account, region, partition) { return this.on(`arn:${partition ?? this.defaultPartition}:omics:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:tag/${tagKey}`); } /** * Adds a resource of type TaskResource to the statement * * https://docs.aws.amazon.com/omics/latest/api/API_TaskListItem.html * * @param id - Identifier for the id. * @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account. * @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region. * @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition. */ onTaskResource(id, account, region, partition) { return this.on(`arn:${partition ?? this.defaultPartition}:omics:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:task/${id}`); } /** * Adds a resource of type VariantImportJob to the statement * * https://docs.aws.amazon.com/omics/latest/api/API_VariantImportJobItem.html * * @param variantImportJobId - Identifier for the variantImportJobId. * @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account. * @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region. * @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition. * * Possible conditions: * - .ifVariantImportJobJobId() */ onVariantImportJob(variantImportJobId, account, region, partition) { return this.on(`arn:${partition ?? this.defaultPartition}:omics:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:variantImportJob/${variantImportJobId}`); } /** * Adds a resource of type VariantStore to the statement * * https://docs.aws.amazon.com/omics/latest/api/API_VariantStoreItem.html * * @param variantStoreId - Identifier for the variantStoreId. * @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account. * @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region. * @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition. * * Possible conditions: * - .ifVariantStoreName() */ onVariantStore(variantStoreId, account, region, partition) { return this.on(`arn:${partition ?? this.defaultPartition}:omics:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:variantStore/${variantStoreId}`); } /** * Adds a resource of type workflow to the statement * * https://docs.aws.amazon.com/omics/latest/api/API_WorkflowListItem.html * * @param id - Identifier for the id. * @param account - Account of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's account. * @param region - Region of the resource; defaults to `*`, unless using the CDK, where the default is the current Stack's region. * @param partition - Partition of the AWS account [aws, aws-cn, aws-us-gov]; defaults to `aws`, unless using the CDK, where the default is the current Stack's partition. * * Possible conditions: * - .ifAwsResourceTag() */ onWorkflow(id, account, region, partition) { return this.on(`arn:${partition ?? this.defaultPartition}:omics:${region ?? this.defaultRegion}:${account ?? this.defaultAccount}:workflow/${id}`); } /** * Filters access by the presence of tag key-value pairs in the request * * https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-requesttag * * Applies to actions: * - .toCreateReferenceStore() * - .toCreateRunGroup() * - .toCreateSequenceStore() * - .toCreateWorkflow() * - .toStartRun() * - .toTagResource() * * @param tagKey The tag key to check * @param value The value(s) to check * @param operator Works with [string operators](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html#Conditions_String). **Default:** `StringLike` */ ifAwsRequestTag(tagKey, value, operator) { return this.if(`aws:RequestTag/${tagKey}`, value, operator ?? 'StringLike'); } /** * Filters access by the presence of tag key-value pairs attached to the resource * * https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-resourcetag * * Applies to resource types: * - readSet * - reference * - referenceStore * - run * - runGroup * - sequenceStore * - workflow * * @param tagKey The tag key to check * @param value The value(s) to check * @param operator Works with [string operators](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html#Conditions_String). **Default:** `StringLike` */ ifAwsResourceTag(tagKey, value, operator) { return this.if(`aws:ResourceTag/${tagKey}`, value, operator ?? 'StringLike'); } /** * Filters access by the presence of tag keys in the request * * https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-keys-tagkeys * * Applies to actions: * - .toCreateReferenceStore() * - .toCreateRunGroup() * - .toCreateSequenceStore() * - .toCreateWorkflow() * - .toStartRun() * - .toTagResource() * - .toUntagResource() * * @param value The value(s) to check * @param operator Works with [string operators](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html#Conditions_String). **Default:** `StringLike` */ ifAwsTagKeys(value, operator) { return this.if(`aws:TagKeys`, value, operator ?? 'StringLike'); } /** * Filters access by a unique resource identifier * * https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-annotation-import-job-id * * Applies to resource types: * - AnnotationImportJob * * @param value The value(s) to check * @param operator Works with [string operators](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html#Conditions_String). **Default:** `StringLike` */ ifAnnotationImportJobJobId(value, operator) { return this.if(`AnnotationImportJobJobId`, value, operator ?? 'StringLike'); } /** * Filters access by the name of the store * * https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-annotation-store-name * * Applies to resource types: * - AnnotationStore * * @param value The value(s) to check * @param operator Works with [string operators](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html#Conditions_String). **Default:** `StringLike` */ ifAnnotationStoreName(value, operator) { return this.if(`AnnotationStoreName`, value, operator ?? 'StringLike'); } /** * Filters access by the name of the annotation store version * * https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-annotation-store-version-name * * Applies to resource types: * - AnnotationStoreVersion * * @param value The value(s) to check * @param operator Works with [string operators](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html#Conditions_String). **Default:** `StringLike` */ ifAnnotationStoreVersionName(value, operator) { return this.if(`AnnotationStoreVersionName`, value, operator ?? 'StringLike'); } /** * Filters access by a unique resource identifier * * https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-variant-import-job-id * * Applies to resource types: * - VariantImportJob * * @param value The value(s) to check * @param operator Works with [string operators](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html#Conditions_String). **Default:** `StringLike` */ ifVariantImportJobJobId(value, operator) { return this.if(`VariantImportJobJobId`, value, operator ?? 'StringLike'); } /** * Filters access by the name of the store * * https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html#condition-variant-store-name * * Applies to resource types: * - VariantStore * * @param value The value(s) to check * @param operator Works with [string operators](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html#Conditions_String). **Default:** `StringLike` */ ifVariantStoreName(value, operator) { return this.if(`VariantStoreName`, value, operator ?? 'StringLike'); } /** * Statement provider for service [omics](https://docs.aws.amazon.com/service-authorization/latest/reference/list_awshealthomics.html). * */ constructor(props) { super(props); this.servicePrefix = 'omics'; this.accessLevelList = { Write: [ 'AbortMultipartReadSetUpload', 'AcceptShare', 'BatchDeleteReadSet', 'CancelAnnotationImportJob', 'CancelRun', 'CancelVariantImportJob', 'CompleteMultipartReadSetUpload', 'CreateAnnotationStore', 'CreateAnnotationStoreVersion', 'CreateMultipartReadSetUpload', 'CreateReferenceStore', 'CreateRunGroup', 'CreateSequenceStore', 'CreateShare', 'CreateVariantStore', 'CreateWorkflow', 'DeleteAnnotationStore', 'DeleteAnnotationStoreVersions', 'DeleteReference', 'DeleteReferenceStore', 'DeleteRun', 'DeleteRunGroup', 'DeleteSequenceStore', 'DeleteShare', 'DeleteVariantStore', 'DeleteWorkflow', 'StartAnnotationImportJob', 'StartReadSetActivationJob', 'StartReadSetExportJob', 'StartReadSetImportJob', 'StartReferenceImportJob', 'StartRun', 'StartVariantImportJob', 'UpdateAnnotationStore', 'UpdateAnnotationStoreVersion', 'UpdateRunGroup', 'UpdateVariantStore', 'UpdateWorkflow', 'UploadReadSetPart' ], Read: [ 'GetAnnotationImportJob', 'GetAnnotationStore', 'GetAnnotationStoreVersion', 'GetReadSet', 'GetReadSetActivationJob', 'GetReadSetExportJob', 'GetReadSetImportJob', 'GetReadSetMetadata', 'GetReference', 'GetReferenceImportJob', 'GetReferenceMetadata', 'GetReferenceStore', 'GetRun', 'GetRunGroup', 'GetRunTask', 'GetSequenceStore', 'GetShare', 'GetVariantImportJob', 'GetVariantStore', 'GetWorkflow' ], List: [ 'ListAnnotationImportJobs', 'ListAnnotationStoreVersions', 'ListAnnotationStores', 'ListMultipartReadSetUploads', 'ListReadSetActivationJobs', 'ListReadSetExportJobs', 'ListReadSetImportJobs', 'ListReadSetUploadParts', 'ListReadSets', 'ListReferenceImportJobs', 'ListReferenceStores', 'ListReferences', 'ListRunGroups', 'ListRunTasks', 'ListRuns', 'ListSequenceStores', 'ListShares', 'ListTagsForResource', 'ListVariantImportJobs', 'ListVariantStores', 'ListWorkflows' ], Tagging: [ 'TagResource', 'UntagResource' ] }; } } exports.Omics = Omics; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGVhbHRob21pY3MuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJoZWFsdGhvbWljcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFDQSx5Q0FBeUQ7QUFHekQ7Ozs7R0FJRztBQUNILE1BQWEsS0FBTSxTQUFRLHdCQUFlO0lBR3hDOzs7Ozs7T0FNRztJQUNJLDZCQUE2QjtRQUNsQyxPQUFPLElBQUksQ0FBQyxFQUFFLENBQUMsNkJBQTZCLENBQUMsQ0FBQztJQUNoRCxDQUFDO0lBRUQ7Ozs7OztPQU1HO0lBQ0ksYUFBYTtRQUNsQixPQUFPLElBQUksQ0FBQyxFQUFFLENBQUMsYUFBYSxDQUFDLENBQUM7SUFDaEMsQ0FBQztJQUVEOzs7Ozs7T0FNRztJQUNJLG9CQUFvQjtRQUN6QixPQUFPLElBQUksQ0FBQyxFQUFFLENBQUMsb0JBQW9CLENBQUMsQ0FBQztJQUN2QyxDQUFDO0lBRUQ7Ozs7OztPQU1HO0lBQ0ksMkJBQTJCO1FBQ2hDLE9BQU8sSUFBSSxDQUFDLEVBQUUsQ0FBQywyQkFBMkIsQ0FBQyxDQUFDO0lBQzlDLENBQUM7SUFFRDs7Ozs7O09BTUc7SUFDSSxXQUFXO1FBQ2hCLE9BQU8sSUFBSSxDQUFDLEVBQUUsQ0FBQyxXQUFXLENBQUMsQ0FBQztJQUM5QixDQUFDO0lBRUQ7Ozs7OztPQU1HO0lBQ0ksd0JBQXdCO1FBQzdCLE9BQU8sSUFBSSxDQUFDLEVBQUUsQ0FBQyx3QkFBd0IsQ0FBQyxDQUFDO0lBQzNDLENBQUM7SUFFRDs7Ozs7O09BTUc7SUFDSSxnQ0FBZ0M7UUFDckMsT0FBTyxJQUFJLENBQUMsRUFBRSxDQUFDLGdDQUFnQyxDQUFDLENBQUM7SUFDbkQsQ0FBQztJQUVEOzs7Ozs7T0FNRztJQUNJLHVCQUF1QjtRQUM1QixPQUFPLElBQUksQ0FBQyxFQUFFLENBQUMsdUJBQXVCLENBQUMsQ0FBQztJQUMxQyxDQUFDO0lBRUQ7Ozs7OztPQU1HO0lBQ0ksOEJBQThCO1FBQ25DLE9BQU8sSUFBSSxDQUFDLEVBQUUsQ0FBQyw4QkFBOEIsQ0FBQyxDQUFDO0lBQ2pELENBQUM7SUFFRDs7Ozs7O09BTUc7SUFDSSw4QkFBOEI7UUFDbkMsT0FBTyxJQUFJLENBQUMsRUFBRSxDQUFDLDhCQUE4QixDQUFDLENBQUM7SUFDakQsQ0FBQztJQUVEOzs7Ozs7Ozs7O09BVUc7SUFDSSxzQkFBc0I7UUFDM0IsT0FBTyxJQUFJLENBQUMsRUFBRSxDQUFDLHNCQUFzQixDQUFDLENBQUM7SUFDekMsQ0FBQztJQUVEOzs7Ozs7Ozs7O09BVUc7SUFDSSxnQkFBZ0I7UUFDckIsT0FBTyxJQUFJLENBQUMsRUFBRSxDQUFDLGdCQUFnQixDQUFDLENBQUM7SUFDbkMsQ0FBQztJQUVEOzs7Ozs7Ozs7O09BVUc7SUFDSSxxQkFBcUI7UUFDMUIsT0FBTyxJQUFJLENBQUMsRUFBRSxDQUFDLHFCQUFxQixDQUFDLENBQUM7SUFDeEMsQ0FBQztJQUVEOzs7Ozs7T0FNRztJQUNJLGFBQWE7UUFDbEIsT0FBTyxJQUFJLENBQUMsRUFBRSxDQUFDLGFBQWEsQ0FBQyxDQUFDO0lBQ2hDLENBQUM7SUFFRDs7Ozs7O09BTUc7SUFDSSxvQkFBb0I7UUFDekIsT0FBTyxJQUFJLENBQUMsRUFBRSxDQUFDLG9CQUFvQixDQUFDLENBQUM7SUFDdkMsQ0FBQztJQUVEOzs7Ozs7Ozs7O09BVUc7SUFDSSxnQkFBZ0I7UUFDckIsT0FBTyxJQUFJLENBQUMsRUFBRSxDQUFDLGdCQUFnQixDQUFDLENBQUM7SUFDbkMsQ0FBQztJQUVEOzs7Ozs7T0FNRztJQUNJLHVCQUF1QjtRQUM1QixPQUF