

# StartFHIRImportJob
<a name="API_StartFHIRImportJob"></a>

Start importing bulk FHIR data into an ACTIVE data store. The import job imports FHIR data found in the `InputDataConfig` object and stores processing results in the `JobOutputDataConfig` object.

## Request Syntax
<a name="API_StartFHIRImportJob_RequestSyntax"></a>

```
{
   "ClientToken": "string",
   "DataAccessRoleArn": "string",
   "DatastoreId": "string",
   "InputDataConfig": { ... },
   "JobName": "string",
   "JobOutputDataConfig": { ... },
   "ValidationLevel": "string"
}
```

## Request Parameters
<a name="API_StartFHIRImportJob_RequestParameters"></a>

For information about the parameters that are common to all actions, see [Common Parameters](CommonParameters.md).

The request accepts the following data in JSON format.

 ** [ClientToken](#API_StartFHIRImportJob_RequestSyntax) **   <a name="HealthLake-StartFHIRImportJob-request-ClientToken"></a>
The optional user-provided token used for ensuring API idempotency.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 64.  
Pattern: `^[a-zA-Z0-9-]+$`   
Required: No

 ** [DataAccessRoleArn](#API_StartFHIRImportJob_RequestSyntax) **   <a name="HealthLake-StartFHIRImportJob-request-DataAccessRoleArn"></a>
The Amazon Resource Name (ARN) that grants access permission to AWS HealthLake.  
Type: String  
Length Constraints: Minimum length of 20. Maximum length of 2048.  
Pattern: `arn:aws(-[^:]+)?:iam::[0-9]{12}:role/.+`   
Required: Yes

 ** [DatastoreId](#API_StartFHIRImportJob_RequestSyntax) **   <a name="HealthLake-StartFHIRImportJob-request-DatastoreId"></a>
The data store identifier.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 32.  
Pattern: `^([\p{L}\p{Z}\p{N}_.:/=+\-%@]*)$`   
Required: Yes

 ** [InputDataConfig](#API_StartFHIRImportJob_RequestSyntax) **   <a name="HealthLake-StartFHIRImportJob-request-InputDataConfig"></a>
The input properties for the import job request.  
Type: [InputDataConfig](API_InputDataConfig.md) object  
 **Note: **This object is a Union. Only one member of this object can be specified or returned.  
Required: Yes

 ** [JobName](#API_StartFHIRImportJob_RequestSyntax) **   <a name="HealthLake-StartFHIRImportJob-request-JobName"></a>
The import job name.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 64.  
Pattern: `^([\p{L}\p{Z}\p{N}_.:/=+\-%@]*)$`   
Required: No

 ** [JobOutputDataConfig](#API_StartFHIRImportJob_RequestSyntax) **   <a name="HealthLake-StartFHIRImportJob-request-JobOutputDataConfig"></a>
The output data configuration supplied when the export job was created.  
Type: [OutputDataConfig](API_OutputDataConfig.md) object  
 **Note: **This object is a Union. Only one member of this object can be specified or returned.  
Required: Yes

 ** [ValidationLevel](#API_StartFHIRImportJob_RequestSyntax) **   <a name="HealthLake-StartFHIRImportJob-request-ValidationLevel"></a>
The validation level of the import job.  
Type: String  
Valid Values: `strict | structure-only | minimal`   
Required: No

## Response Syntax
<a name="API_StartFHIRImportJob_ResponseSyntax"></a>

```
{
   "DatastoreId": "string",
   "JobId": "string",
   "JobStatus": "string"
}
```

## Response Elements
<a name="API_StartFHIRImportJob_ResponseElements"></a>

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

 ** [DatastoreId](#API_StartFHIRImportJob_ResponseSyntax) **   <a name="HealthLake-StartFHIRImportJob-response-DatastoreId"></a>
The data store identifier.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 32.  
Pattern: `^([\p{L}\p{Z}\p{N}_.:/=+\-%@]*)$` 

 ** [JobId](#API_StartFHIRImportJob_ResponseSyntax) **   <a name="HealthLake-StartFHIRImportJob-response-JobId"></a>
The import job identifier.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 32.  
Pattern: `^([\p{L}\p{Z}\p{N}_.:/=+\-%@]*)$` 

 ** [JobStatus](#API_StartFHIRImportJob_ResponseSyntax) **   <a name="HealthLake-StartFHIRImportJob-response-JobStatus"></a>
The import job status.  
Type: String  
Valid Values: `SUBMITTED | QUEUED | IN_PROGRESS | COMPLETED_WITH_ERRORS | COMPLETED | FAILED | CANCEL_SUBMITTED | CANCEL_IN_PROGRESS | CANCEL_COMPLETED | CANCEL_FAILED` 

## Errors
<a name="API_StartFHIRImportJob_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** AccessDeniedException **   
Access is denied. Your account is not authorized to perform this operation.  
HTTP Status Code: 400

 ** InternalServerException **   
An unknown internal error occurred in the service.  
HTTP Status Code: 500

 ** ResourceNotFoundException **   
The requested data store was not found.  
HTTP Status Code: 400

 ** ThrottlingException **   
The user has exceeded their maximum number of allowed calls to the given API.   
HTTP Status Code: 400

 ** ValidationException **   
The user input parameter was invalid.  
HTTP Status Code: 400

## See Also
<a name="API_StartFHIRImportJob_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/healthlake-2017-07-01/StartFHIRImportJob) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/healthlake-2017-07-01/StartFHIRImportJob) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/healthlake-2017-07-01/StartFHIRImportJob) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/healthlake-2017-07-01/StartFHIRImportJob) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/healthlake-2017-07-01/StartFHIRImportJob) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/healthlake-2017-07-01/StartFHIRImportJob) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/healthlake-2017-07-01/StartFHIRImportJob) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/healthlake-2017-07-01/StartFHIRImportJob) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/healthlake-2017-07-01/StartFHIRImportJob) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/healthlake-2017-07-01/StartFHIRImportJob) 