

# CreateLiveSource
<a name="API_CreateLiveSource"></a>

The live source configuration.

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

```
POST /sourceLocation/SourceLocationName/liveSource/LiveSourceName HTTP/1.1
Content-type: application/json

{
   "HttpPackageConfigurations": [ 
      { 
         "Path": "string",
         "SourceGroup": "string",
         "Type": "string"
      }
   ],
   "tags": { 
      "string" : "string" 
   }
}
```

## URI Request Parameters
<a name="API_CreateLiveSource_RequestParameters"></a>

The request uses the following URI parameters.

 ** [LiveSourceName](#API_CreateLiveSource_RequestSyntax) **   <a name="mediatailor-CreateLiveSource-request-uri-LiveSourceName"></a>
The name of the live source.  
Required: Yes

 ** [SourceLocationName](#API_CreateLiveSource_RequestSyntax) **   <a name="mediatailor-CreateLiveSource-request-uri-SourceLocationName"></a>
The name of the source location.  
Required: Yes

## Request Body
<a name="API_CreateLiveSource_RequestBody"></a>

The request accepts the following data in JSON format.

 ** [HttpPackageConfigurations](#API_CreateLiveSource_RequestSyntax) **   <a name="mediatailor-CreateLiveSource-request-HttpPackageConfigurations"></a>
A list of HTTP package configuration parameters for this live source.  
Type: Array of [HttpPackageConfiguration](API_HttpPackageConfiguration.md) objects  
Required: Yes

 ** [tags](#API_CreateLiveSource_RequestSyntax) **   <a name="mediatailor-CreateLiveSource-request-tags"></a>
The tags to assign to the live source. Tags are key-value pairs that you can associate with Amazon resources to help with organization, access control, and cost tracking. For more information, see [Tagging AWS Elemental MediaTailor Resources](https://docs.aws.amazon.com/mediatailor/latest/ug/tagging.html).  
Type: String to string map  
Required: No

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

```
HTTP/1.1 200
Content-type: application/json

{
   "Arn": "string",
   "CreationTime": number,
   "HttpPackageConfigurations": [ 
      { 
         "Path": "string",
         "SourceGroup": "string",
         "Type": "string"
      }
   ],
   "LastModifiedTime": number,
   "LiveSourceName": "string",
   "SourceLocationName": "string",
   "tags": { 
      "string" : "string" 
   }
}
```

## Response Elements
<a name="API_CreateLiveSource_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.

 ** [Arn](#API_CreateLiveSource_ResponseSyntax) **   <a name="mediatailor-CreateLiveSource-response-Arn"></a>
The ARN to assign to the live source.  
Type: String

 ** [CreationTime](#API_CreateLiveSource_ResponseSyntax) **   <a name="mediatailor-CreateLiveSource-response-CreationTime"></a>
The time the live source was created.  
Type: Timestamp

 ** [HttpPackageConfigurations](#API_CreateLiveSource_ResponseSyntax) **   <a name="mediatailor-CreateLiveSource-response-HttpPackageConfigurations"></a>
A list of HTTP package configuration parameters for this live source.  
Type: Array of [HttpPackageConfiguration](API_HttpPackageConfiguration.md) objects

 ** [LastModifiedTime](#API_CreateLiveSource_ResponseSyntax) **   <a name="mediatailor-CreateLiveSource-response-LastModifiedTime"></a>
The time the live source was last modified.  
Type: Timestamp

 ** [LiveSourceName](#API_CreateLiveSource_ResponseSyntax) **   <a name="mediatailor-CreateLiveSource-response-LiveSourceName"></a>
The name to assign to the live source.  
Type: String

 ** [SourceLocationName](#API_CreateLiveSource_ResponseSyntax) **   <a name="mediatailor-CreateLiveSource-response-SourceLocationName"></a>
The name to assign to the source location of the live source.  
Type: String

 ** [tags](#API_CreateLiveSource_ResponseSyntax) **   <a name="mediatailor-CreateLiveSource-response-tags"></a>
The tags to assign to the live source. Tags are key-value pairs that you can associate with Amazon resources to help with organization, access control, and cost tracking. For more information, see [Tagging AWS Elemental MediaTailor Resources](https://docs.aws.amazon.com/mediatailor/latest/ug/tagging.html).  
Type: String to string map

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

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

## See Also
<a name="API_CreateLiveSource_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/mediatailor-2018-04-23/CreateLiveSource) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/mediatailor-2018-04-23/CreateLiveSource) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/mediatailor-2018-04-23/CreateLiveSource) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/mediatailor-2018-04-23/CreateLiveSource) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/mediatailor-2018-04-23/CreateLiveSource) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/mediatailor-2018-04-23/CreateLiveSource) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/mediatailor-2018-04-23/CreateLiveSource) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/mediatailor-2018-04-23/CreateLiveSource) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/mediatailor-2018-04-23/CreateLiveSource) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/mediatailor-2018-04-23/CreateLiveSource) 