Skip to content

Commit 874e200

Browse files
author
awstools
committed
feat(client-healthlake): Added new CREATE_FAILED status for data stores. Added new errorCause to DescribeFHIRDatastore API and ListFHIRDatastores API response for additional insights into data store creation and deletion workflows.
1 parent 22f08b7 commit 874e200

File tree

7 files changed

+113
-5
lines changed

7 files changed

+113
-5
lines changed

clients/client-healthlake/src/commands/CreateFHIRDatastoreCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export interface CreateFHIRDatastoreCommandOutput extends CreateFHIRDatastoreRes
6565
* // { // CreateFHIRDatastoreResponse
6666
* // DatastoreId: "STRING_VALUE", // required
6767
* // DatastoreArn: "STRING_VALUE", // required
68-
* // DatastoreStatus: "CREATING" || "ACTIVE" || "DELETING" || "DELETED", // required
68+
* // DatastoreStatus: "CREATING" || "ACTIVE" || "DELETING" || "DELETED" || "CREATE_FAILED", // required
6969
* // DatastoreEndpoint: "STRING_VALUE", // required
7070
* // };
7171
*

clients/client-healthlake/src/commands/DeleteFHIRDatastoreCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export interface DeleteFHIRDatastoreCommandOutput extends DeleteFHIRDatastoreRes
4242
* // { // DeleteFHIRDatastoreResponse
4343
* // DatastoreId: "STRING_VALUE", // required
4444
* // DatastoreArn: "STRING_VALUE", // required
45-
* // DatastoreStatus: "CREATING" || "ACTIVE" || "DELETING" || "DELETED", // required
45+
* // DatastoreStatus: "CREATING" || "ACTIVE" || "DELETING" || "DELETED" || "CREATE_FAILED", // required
4646
* // DatastoreEndpoint: "STRING_VALUE", // required
4747
* // };
4848
*

clients/client-healthlake/src/commands/DescribeFHIRDatastoreCommand.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export interface DescribeFHIRDatastoreCommandOutput extends DescribeFHIRDatastor
4545
* // DatastoreId: "STRING_VALUE", // required
4646
* // DatastoreArn: "STRING_VALUE", // required
4747
* // DatastoreName: "STRING_VALUE",
48-
* // DatastoreStatus: "CREATING" || "ACTIVE" || "DELETING" || "DELETED", // required
48+
* // DatastoreStatus: "CREATING" || "ACTIVE" || "DELETING" || "DELETED" || "CREATE_FAILED", // required
4949
* // CreatedAt: new Date("TIMESTAMP"),
5050
* // DatastoreTypeVersion: "R4", // required
5151
* // DatastoreEndpoint: "STRING_VALUE", // required
@@ -64,6 +64,10 @@ export interface DescribeFHIRDatastoreCommandOutput extends DescribeFHIRDatastor
6464
* // Metadata: "STRING_VALUE",
6565
* // IdpLambdaArn: "STRING_VALUE",
6666
* // },
67+
* // ErrorCause: { // ErrorCause
68+
* // ErrorMessage: "STRING_VALUE",
69+
* // ErrorCategory: "RETRYABLE_ERROR" || "NON_RETRYABLE_ERROR",
70+
* // },
6771
* // },
6872
* // };
6973
*

clients/client-healthlake/src/commands/ListFHIRDatastoresCommand.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export interface ListFHIRDatastoresCommandOutput extends ListFHIRDatastoresRespo
3737
* const input = { // ListFHIRDatastoresRequest
3838
* Filter: { // DatastoreFilter
3939
* DatastoreName: "STRING_VALUE",
40-
* DatastoreStatus: "CREATING" || "ACTIVE" || "DELETING" || "DELETED",
40+
* DatastoreStatus: "CREATING" || "ACTIVE" || "DELETING" || "DELETED" || "CREATE_FAILED",
4141
* CreatedBefore: new Date("TIMESTAMP"),
4242
* CreatedAfter: new Date("TIMESTAMP"),
4343
* },
@@ -52,7 +52,7 @@ export interface ListFHIRDatastoresCommandOutput extends ListFHIRDatastoresRespo
5252
* // DatastoreId: "STRING_VALUE", // required
5353
* // DatastoreArn: "STRING_VALUE", // required
5454
* // DatastoreName: "STRING_VALUE",
55-
* // DatastoreStatus: "CREATING" || "ACTIVE" || "DELETING" || "DELETED", // required
55+
* // DatastoreStatus: "CREATING" || "ACTIVE" || "DELETING" || "DELETED" || "CREATE_FAILED", // required
5656
* // CreatedAt: new Date("TIMESTAMP"),
5757
* // DatastoreTypeVersion: "R4", // required
5858
* // DatastoreEndpoint: "STRING_VALUE", // required
@@ -71,6 +71,10 @@ export interface ListFHIRDatastoresCommandOutput extends ListFHIRDatastoresRespo
7171
* // Metadata: "STRING_VALUE",
7272
* // IdpLambdaArn: "STRING_VALUE",
7373
* // },
74+
* // ErrorCause: { // ErrorCause
75+
* // ErrorMessage: "STRING_VALUE",
76+
* // ErrorCategory: "RETRYABLE_ERROR" || "NON_RETRYABLE_ERROR",
77+
* // },
7478
* // },
7579
* // ],
7680
* // NextToken: "STRING_VALUE",

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

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ export interface CreateFHIRDatastoreRequest {
275275
*/
276276
export const DatastoreStatus = {
277277
ACTIVE: "ACTIVE",
278+
CREATE_FAILED: "CREATE_FAILED",
278279
CREATING: "CREATING",
279280
DELETED: "DELETED",
280281
DELETING: "DELETING",
@@ -414,6 +415,38 @@ export interface DatastoreFilter {
414415
CreatedAfter?: Date;
415416
}
416417

418+
/**
419+
* @public
420+
* @enum
421+
*/
422+
export const ErrorCategory = {
423+
NON_RETRYABLE_ERROR: "NON_RETRYABLE_ERROR",
424+
RETRYABLE_ERROR: "RETRYABLE_ERROR",
425+
} as const;
426+
427+
/**
428+
* @public
429+
*/
430+
export type ErrorCategory = (typeof ErrorCategory)[keyof typeof ErrorCategory];
431+
432+
/**
433+
* <p>The error info of the create/delete data store operation.</p>
434+
* @public
435+
*/
436+
export interface ErrorCause {
437+
/**
438+
* <p>The text of the error message.</p>
439+
* @public
440+
*/
441+
ErrorMessage?: string;
442+
443+
/**
444+
* <p>The error category of the create/delete data store operation. Possible statuses are RETRYABLE_ERROR or NON_RETRYABLE_ERROR.</p>
445+
* @public
446+
*/
447+
ErrorCategory?: ErrorCategory;
448+
}
449+
417450
/**
418451
* <p>Displays the properties of the data store, including the ID, ARN, name, and the status of the data store.</p>
419452
* @public
@@ -480,6 +513,12 @@ export interface DatastoreProperties {
480513
* @public
481514
*/
482515
IdentityProviderConfiguration?: IdentityProviderConfiguration;
516+
517+
/**
518+
* <p>The error cause for the current data store operation.</p>
519+
* @public
520+
*/
521+
ErrorCause?: ErrorCause;
483522
}
484523

485524
/**

clients/client-healthlake/src/protocols/Aws_json1_0.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -801,6 +801,7 @@ const de_DatastoreProperties = (output: any, context: __SerdeContext): Datastore
801801
DatastoreName: __expectString,
802802
DatastoreStatus: __expectString,
803803
DatastoreTypeVersion: __expectString,
804+
ErrorCause: _json,
804805
IdentityProviderConfiguration: _json,
805806
PreloadDataConfig: _json,
806807
SseConfiguration: _json,
@@ -848,6 +849,8 @@ const de_DescribeFHIRImportJobResponse = (output: any, context: __SerdeContext):
848849
}) as any;
849850
};
850851

852+
// de_ErrorCause omitted.
853+
851854
/**
852855
* deserializeAws_json1_0ExportJobProperties
853856
*/

codegen/sdk-codegen/aws-models/healthlake.json

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,12 @@
367367
"traits": {
368368
"smithy.api#documentation": "<p>The identity provider that you selected when you created the data store.</p>"
369369
}
370+
},
371+
"ErrorCause": {
372+
"target": "com.amazonaws.healthlake#ErrorCause",
373+
"traits": {
374+
"smithy.api#documentation": "<p>The error cause for the current data store operation.</p>"
375+
}
370376
}
371377
},
372378
"traits": {
@@ -405,6 +411,12 @@
405411
"traits": {
406412
"smithy.api#enumValue": "DELETED"
407413
}
414+
},
415+
"CREATE_FAILED": {
416+
"target": "smithy.api#Unit",
417+
"traits": {
418+
"smithy.api#enumValue": "CREATE_FAILED"
419+
}
408420
}
409421
}
410422
},
@@ -683,6 +695,52 @@
683695
"smithy.api#pattern": "^(arn:aws((-us-gov)|(-iso)|(-iso-b)|(-cn))?:kms:)?([a-z]{2}-[a-z]+(-[a-z]+)?-\\d:)?(\\d{12}:)?(((key/)?[a-zA-Z0-9-_]+)|(alias/[a-zA-Z0-9:/_-]+))$"
684696
}
685697
},
698+
"com.amazonaws.healthlake#ErrorCategory": {
699+
"type": "enum",
700+
"members": {
701+
"RETRYABLE_ERROR": {
702+
"target": "smithy.api#Unit",
703+
"traits": {
704+
"smithy.api#enumValue": "RETRYABLE_ERROR"
705+
}
706+
},
707+
"NON_RETRYABLE_ERROR": {
708+
"target": "smithy.api#Unit",
709+
"traits": {
710+
"smithy.api#enumValue": "NON_RETRYABLE_ERROR"
711+
}
712+
}
713+
}
714+
},
715+
"com.amazonaws.healthlake#ErrorCause": {
716+
"type": "structure",
717+
"members": {
718+
"ErrorMessage": {
719+
"target": "com.amazonaws.healthlake#ErrorMessage",
720+
"traits": {
721+
"smithy.api#documentation": "<p>The text of the error message.</p>"
722+
}
723+
},
724+
"ErrorCategory": {
725+
"target": "com.amazonaws.healthlake#ErrorCategory",
726+
"traits": {
727+
"smithy.api#documentation": "<p>The error category of the create/delete data store operation. Possible statuses are RETRYABLE_ERROR or NON_RETRYABLE_ERROR.</p>"
728+
}
729+
}
730+
},
731+
"traits": {
732+
"smithy.api#documentation": "<p>The error info of the create/delete data store operation.</p>"
733+
}
734+
},
735+
"com.amazonaws.healthlake#ErrorMessage": {
736+
"type": "string",
737+
"traits": {
738+
"smithy.api#length": {
739+
"min": 1,
740+
"max": 4096
741+
}
742+
}
743+
},
686744
"com.amazonaws.healthlake#ExportJobProperties": {
687745
"type": "structure",
688746
"members": {

0 commit comments

Comments
 (0)