Skip to content

Commit 386065a

Browse files
author
awstools
committed
feat(client-omics): Minor model changes to accomodate batch imports feature
1 parent 95b351a commit 386065a

File tree

8 files changed

+397
-301
lines changed

8 files changed

+397
-301
lines changed

clients/client-omics/src/Omics.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -1970,7 +1970,8 @@ export class Omics extends OmicsClient {
19701970
}
19711971

19721972
/**
1973-
* <p>Starts a read set activation job.</p>
1973+
* <p>Activates an archived read set. To reduce storage charges, Amazon Omics archives unused read
1974+
* sets after 30 days.</p>
19741975
*/
19751976
public startReadSetActivationJob(
19761977
args: StartReadSetActivationJobCommandInput,
@@ -2002,7 +2003,7 @@ export class Omics extends OmicsClient {
20022003
}
20032004

20042005
/**
2005-
* <p>Starts a read set export job.</p>
2006+
* <p>Exports a read set to Amazon S3.</p>
20062007
*/
20072008
public startReadSetExportJob(
20082009
args: StartReadSetExportJobCommandInput,

clients/client-omics/src/commands/StartReadSetActivationJobCommand.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ export interface StartReadSetActivationJobCommandInput extends StartReadSetActiv
3535
export interface StartReadSetActivationJobCommandOutput extends StartReadSetActivationJobResponse, __MetadataBearer {}
3636

3737
/**
38-
* <p>Starts a read set activation job.</p>
38+
* <p>Activates an archived read set. To reduce storage charges, Amazon Omics archives unused read
39+
* sets after 30 days.</p>
3940
* @example
4041
* Use a bare-bones client and the command you need to make an API call.
4142
* ```javascript

clients/client-omics/src/commands/StartReadSetExportJobCommand.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export interface StartReadSetExportJobCommandInput extends StartReadSetExportJob
3535
export interface StartReadSetExportJobCommandOutput extends StartReadSetExportJobResponse, __MetadataBearer {}
3636

3737
/**
38-
* <p>Starts a read set export job.</p>
38+
* <p>Exports a read set to Amazon S3.</p>
3939
* @example
4040
* Use a bare-bones client and the command you need to make an API call.
4141
* ```javascript

clients/client-omics/src/endpoint/EndpointParameters.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const resolveClientEndpointParameters = <T>(
2424
};
2525

2626
export interface EndpointParameters extends __EndpointParameters {
27-
Region: string;
27+
Region?: string;
2828
UseDualStack?: boolean;
2929
UseFIPS?: boolean;
3030
Endpoint?: string;

clients/client-omics/src/endpoint/ruleset.ts

+19-19
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,25 @@ import { RuleSetObject } from "@aws-sdk/util-endpoints";
66
or see "smithy.rules#endpointRuleSet"
77
in codegen/sdk-codegen/aws-models/omics.json */
88

9-
const r="fn",
9+
const q="required",
10+
r="fn",
1011
s="argv",
1112
t="ref";
12-
const a=true,
13-
b=false,
14-
c="String",
15-
d="PartitionResult",
16-
e="tree",
17-
f="error",
18-
g="endpoint",
19-
h={"required":true,"default":false,"type":"Boolean"},
20-
i={[t]:"Endpoint"},
21-
j={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]},
22-
k={[r]:"booleanEquals",[s]:[{[t]:"UseDualStack"},true]},
23-
l={},
24-
m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"supportsFIPS"]}]},
25-
n={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:d},"supportsDualStack"]}]},
26-
o=[i],
27-
p=[j],
28-
q=[k];
29-
const _data={version:"1.0",parameters:{Region:{required:a,type:c},UseDualStack:h,UseFIPS:h,Endpoint:{required:b,type:c}},rules:[{conditions:[{[r]:"aws.partition",[s]:[{[t]:"Region"}],assign:d}],type:e,rules:[{conditions:[{[r]:"isSet",[s]:o},{[r]:"parseURL",[s]:o,assign:"url"}],type:e,rules:[{conditions:p,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{type:e,rules:[{conditions:q,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:i,properties:l,headers:l},type:g}]}]},{conditions:[j,k],type:e,rules:[{conditions:[m,n],type:e,rules:[{endpoint:{url:"https://omics-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}]},{conditions:p,type:e,rules:[{conditions:[m],type:e,rules:[{endpoint:{url:"https://omics-fips.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]},{error:"FIPS is enabled but this partition does not support FIPS",type:f}]},{conditions:q,type:e,rules:[{conditions:[n],type:e,rules:[{endpoint:{url:"https://omics.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:l,headers:l},type:g}]},{error:"DualStack is enabled but this partition does not support DualStack",type:f}]},{endpoint:{url:"https://omics.{Region}.{PartitionResult#dnsSuffix}",properties:l,headers:l},type:g}]}]};
13+
const a="isSet",
14+
b="tree",
15+
c="error",
16+
d="endpoint",
17+
e="PartitionResult",
18+
f={[q]:false,"type":"String"},
19+
g={[q]:true,"default":false,"type":"Boolean"},
20+
h={[t]:"Endpoint"},
21+
i={[r]:"booleanEquals",[s]:[{[t]:"UseFIPS"},true]},
22+
j={[r]:"booleanEquals",[s]:[{[t]:"UseDualStack"},true]},
23+
k={},
24+
l={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsFIPS"]}]},
25+
m={[r]:"booleanEquals",[s]:[true,{[r]:"getAttr",[s]:[{[t]:e},"supportsDualStack"]}]},
26+
n=[i],
27+
o=[j],
28+
p=[{[t]:"Region"}];
29+
const _data={version:"1.0",parameters:{Region:f,UseDualStack:g,UseFIPS:g,Endpoint:f},rules:[{conditions:[{[r]:a,[s]:[h]}],type:b,rules:[{conditions:n,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:o,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:h,properties:k,headers:k},type:d}]}]},{type:b,rules:[{conditions:[{[r]:a,[s]:p}],type:b,rules:[{conditions:[{[r]:"aws.partition",[s]:p,assign:e}],type:b,rules:[{conditions:[i,j],type:b,rules:[{conditions:[l,m],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://omics-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:n,type:b,rules:[{conditions:[l],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://omics-fips.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:o,type:b,rules:[{conditions:[m],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://omics.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:k,headers:k},type:d}]}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{type:b,rules:[{endpoint:{url:"https://omics.{Region}.{PartitionResult#dnsSuffix}",properties:k,headers:k},type:d}]}]}]},{error:"Invalid Configuration: Missing Region",type:c}]}]};
3030
export const ruleSet: RuleSetObject = _data;

clients/client-omics/src/models/models_0.ts

+32-21
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,10 @@ export enum JobStatus {
120120
* The Job has completed
121121
*/
122122
COMPLETED = "COMPLETED",
123+
/**
124+
* The Job completed with failed runs
125+
*/
126+
COMPLETED_WITH_FAILURES = "COMPLETED_WITH_FAILURES",
123127
/**
124128
* The Job failed
125129
*/
@@ -850,7 +854,7 @@ export interface CreateAnnotationStoreResponse {
850854
id: string | undefined;
851855

852856
/**
853-
* <p>The store's genome reference.</p>
857+
* <p>The store's genome reference. Required for all stores except TSV format with generic annotations.</p>
854858
*/
855859
reference?: ReferenceItem;
856860

@@ -1296,7 +1300,7 @@ export interface CreateRunGroupRequest {
12961300
maxRuns?: number;
12971301

12981302
/**
1299-
* <p>A max duration for the group.</p>
1303+
* <p>A maximum run time for the group in minutes.</p>
13001304
*/
13011305
maxDuration?: number;
13021306

@@ -1306,7 +1310,7 @@ export interface CreateRunGroupRequest {
13061310
tags?: Record<string, string>;
13071311

13081312
/**
1309-
* <p>A request ID for the group.</p>
1313+
* <p>To ensure that requests don't run multiple times, specify a unique ID for each request.</p>
13101314
*/
13111315
requestId?: string;
13121316
}
@@ -1498,7 +1502,7 @@ export interface CreateWorkflowRequest {
14981502
parameterTemplate?: Record<string, WorkflowParameter>;
14991503

15001504
/**
1501-
* <p>A storage capacity for the workflow.</p>
1505+
* <p>A storage capacity for the workflow in gigabytes.</p>
15021506
*/
15031507
storageCapacity?: number;
15041508

@@ -1508,7 +1512,7 @@ export interface CreateWorkflowRequest {
15081512
tags?: Record<string, string>;
15091513

15101514
/**
1511-
* <p>A request ID for the workflow.</p>
1515+
* <p>To ensure that requests don't run multiple times, specify a unique ID for each request.</p>
15121516
*/
15131517
requestId?: string;
15141518
}
@@ -1518,6 +1522,7 @@ export enum WorkflowStatus {
15181522
CREATING = "CREATING",
15191523
DELETED = "DELETED",
15201524
FAILED = "FAILED",
1525+
INACTIVE = "INACTIVE",
15211526
UPDATING = "UPDATING",
15221527
}
15231528

@@ -1842,7 +1847,7 @@ export interface GetReadSetActivationJobResponse {
18421847
completionTime?: Date;
18431848

18441849
/**
1845-
* <p>The job's sources.</p>
1850+
* <p>The job's source files.</p>
18461851
*/
18471852
sources?: ActivateReadSetSourceItem[];
18481853
}
@@ -2042,7 +2047,7 @@ export interface GetReadSetImportJobResponse {
20422047
completionTime?: Date;
20432048

20442049
/**
2045-
* <p>The job's sources.</p>
2050+
* <p>The job's source files.</p>
20462051
*/
20472052
sources: ImportReadSetSourceItem[] | undefined;
20482053
}
@@ -2319,7 +2324,7 @@ export interface GetReferenceImportJobResponse {
23192324
completionTime?: Date;
23202325

23212326
/**
2322-
* <p>The job's sources.</p>
2327+
* <p>The job's source files.</p>
23232328
*/
23242329
sources: ImportReferenceSourceItem[] | undefined;
23252330
}
@@ -2484,6 +2489,7 @@ export enum RunStatus {
24842489

24852490
export enum WorkflowType {
24862491
PRIVATE = "PRIVATE",
2492+
SERVICE = "SERVICE",
24872493
}
24882494

24892495
export interface GetRunResponse {
@@ -2553,7 +2559,7 @@ export interface GetRunResponse {
25532559
parameters?: __DocumentType;
25542560

25552561
/**
2556-
* <p>The run's storage capacity.</p>
2562+
* <p>The run's storage capacity in gigabytes.</p>
25572563
*/
25582564
storageCapacity?: number;
25592565

@@ -2637,7 +2643,7 @@ export interface GetRunGroupResponse {
26372643
maxRuns?: number;
26382644

26392645
/**
2640-
* <p>The group's maximum run duration.</p>
2646+
* <p>The group's maximum run time in minutes.</p>
26412647
*/
26422648
maxDuration?: number;
26432649

@@ -2696,7 +2702,7 @@ export interface GetRunTaskResponse {
26962702
cpus?: number;
26972703

26982704
/**
2699-
* <p>The task's memory setting.</p>
2705+
* <p>The task's memory use in gigabytes.</p>
27002706
*/
27012707
memory?: number;
27022708

@@ -2785,6 +2791,11 @@ export interface VariantImportItemDetail {
27852791
* <p>The item's job status.</p>
27862792
*/
27872793
jobStatus: JobStatus | string | undefined;
2794+
2795+
/**
2796+
* <p> A message that provides additional context about a job </p>
2797+
*/
2798+
statusMessage?: string;
27882799
}
27892800

27902801
export interface GetVariantImportResponse {
@@ -2986,7 +2997,7 @@ export interface GetWorkflowResponse {
29862997
parameterTemplate?: Record<string, WorkflowParameter>;
29872998

29882999
/**
2989-
* <p>The workflow's storage capacity.</p>
3000+
* <p>The workflow's storage capacity in gigabytes.</p>
29903001
*/
29913002
storageCapacity?: number;
29923003

@@ -3621,7 +3632,7 @@ export interface RunGroupListItem {
36213632
maxRuns?: number;
36223633

36233634
/**
3624-
* <p>The group's maximum duration setting.</p>
3635+
* <p>The group's maximum duration setting in minutes.</p>
36253636
*/
36263637
maxDuration?: number;
36273638

@@ -3779,7 +3790,7 @@ export interface TaskListItem {
37793790
cpus?: number;
37803791

37813792
/**
3782-
* <p>The task's memory.</p>
3793+
* <p>The task's memory use in gigabyes.</p>
37833794
*/
37843795
memory?: number;
37853796

@@ -4223,7 +4234,7 @@ export interface StartReferenceImportJobRequest {
42234234
clientToken?: string;
42244235

42254236
/**
4226-
* <p>Sources for the job.</p>
4237+
* <p>The job's source files.</p>
42274238
*/
42284239
sources: StartReferenceImportJobSourceItem[] | undefined;
42294240
}
@@ -4277,7 +4288,7 @@ export interface UpdateRunGroupRequest {
42774288
maxRuns?: number;
42784289

42794290
/**
4280-
* <p>The maximum amount of time to run.</p>
4291+
* <p>A maximum run time for the group in minutes.</p>
42814292
*/
42824293
maxDuration?: number;
42834294
}
@@ -4324,7 +4335,7 @@ export interface StartRunRequest {
43244335
parameters?: __DocumentType;
43254336

43264337
/**
4327-
* <p>A storage capacity for the run.</p>
4338+
* <p>A storage capacity for the run in gigabytes.</p>
43284339
*/
43294340
storageCapacity?: number;
43304341

@@ -4344,7 +4355,7 @@ export interface StartRunRequest {
43444355
tags?: Record<string, string>;
43454356

43464357
/**
4347-
* <p>A request ID for the run.</p>
4358+
* <p>To ensure that requests don't run multiple times, specify a unique ID for each request.</p>
43484359
*/
43494360
requestId?: string;
43504361
}
@@ -4393,7 +4404,7 @@ export interface StartReadSetActivationJobRequest {
43934404
clientToken?: string;
43944405

43954406
/**
4396-
* <p>The job's sources.</p>
4407+
* <p>The job's source files.</p>
43974408
*/
43984409
sources: StartReadSetActivationJobSourceItem[] | undefined;
43994410
}
@@ -4442,7 +4453,7 @@ export interface StartReadSetExportJobRequest {
44424453
clientToken?: string;
44434454

44444455
/**
4445-
* <p>Sources for the job.</p>
4456+
* <p>The job's source files.</p>
44464457
*/
44474458
sources: ExportReadSet[] | undefined;
44484459
}
@@ -4541,7 +4552,7 @@ export interface StartReadSetImportJobRequest {
45414552
clientToken?: string;
45424553

45434554
/**
4544-
* <p>Source files to import.</p>
4555+
* <p>The job's source files.</p>
45454556
*/
45464557
sources: StartReadSetImportJobSourceItem[] | undefined;
45474558
}

clients/client-omics/src/protocols/Aws_restJson1.ts

+1
Original file line numberDiff line numberDiff line change
@@ -8281,6 +8281,7 @@ const deserializeAws_restJson1VariantImportItemDetail = (
82818281
return {
82828282
jobStatus: __expectString(output.jobStatus),
82838283
source: __expectString(output.source),
8284+
statusMessage: __expectString(output.statusMessage),
82848285
} as any;
82858286
};
82868287

0 commit comments

Comments
 (0)