CreateSourceLocation - AWS Elemental MediaTailor

CreateSourceLocation

Creates a source location. A source location is a container for sources. For more information about source locations, see Working with source locations in the MediaTailor User Guide.

Request Syntax

POST /sourceLocation/SourceLocationName HTTP/1.1 Content-type: application/json { "AccessConfiguration": { "AccessType": "string", "SecretsManagerAccessTokenConfiguration": { "HeaderName": "string", "SecretArn": "string", "SecretStringKey": "string" } }, "DefaultSegmentDeliveryConfiguration": { "BaseUrl": "string" }, "HttpConfiguration": { "BaseUrl": "string" }, "SegmentDeliveryConfigurations": [ { "BaseUrl": "string", "Name": "string" } ], "tags": { "string" : "string" } }

URI Request Parameters

The request uses the following URI parameters.

SourceLocationName

The name associated with the source location.

Required: Yes

Request Body

The request accepts the following data in JSON format.

AccessConfiguration

Access configuration parameters. Configures the type of authentication used to access content from your source location.

Type: AccessConfiguration object

Required: No

DefaultSegmentDeliveryConfiguration

The optional configuration for the server that serves segments.

Type: DefaultSegmentDeliveryConfiguration object

Required: No

HttpConfiguration

The source's HTTP package configurations.

Type: HttpConfiguration object

Required: Yes

SegmentDeliveryConfigurations

A list of the segment delivery configurations associated with this resource.

Type: Array of SegmentDeliveryConfiguration objects

Required: No

tags

The tags to assign to the source location. 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.

Type: String to string map

Required: No

Response Syntax

HTTP/1.1 200 Content-type: application/json { "AccessConfiguration": { "AccessType": "string", "SecretsManagerAccessTokenConfiguration": { "HeaderName": "string", "SecretArn": "string", "SecretStringKey": "string" } }, "Arn": "string", "CreationTime": number, "DefaultSegmentDeliveryConfiguration": { "BaseUrl": "string" }, "HttpConfiguration": { "BaseUrl": "string" }, "LastModifiedTime": number, "SegmentDeliveryConfigurations": [ { "BaseUrl": "string", "Name": "string" } ], "SourceLocationName": "string", "tags": { "string" : "string" } }

Response Elements

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

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

AccessConfiguration

Access configuration parameters. Configures the type of authentication used to access content from your source location.

Type: AccessConfiguration object

Arn

The ARN to assign to the source location.

Type: String

CreationTime

The time the source location was created.

Type: Timestamp

DefaultSegmentDeliveryConfiguration

The optional configuration for the server that serves segments.

Type: DefaultSegmentDeliveryConfiguration object

HttpConfiguration

The source's HTTP package configurations.

Type: HttpConfiguration object

LastModifiedTime

The time the source location was last modified.

Type: Timestamp

SegmentDeliveryConfigurations

The segment delivery configurations for the source location. For information about MediaTailor configurations, see Working with configurations in AWS Elemental MediaTailor.

Type: Array of SegmentDeliveryConfiguration objects

SourceLocationName

The name to assign to the source location.

Type: String

tags

The tags to assign to the source location. 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.

Type: String to string map

Errors

For information about the errors that are common to all actions, see Common Errors.

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: