<commit_before>---
layout: "aws"
page_title: "AWS: aws_media_package_channel"
sidebar_current: "docs-aws-resource-media-package-channel"
description: |-
  Provides an AWS Elemental MediaPackage Channel.
---

# aws_media_package_channel

Provides an AWS Elemental MediaPackage Channel.

## Example Usage

```hcl
resource "aws_media_package_channel" "kittens" {
  channel_id  = "kitten-channel"
  description = "A channel dedicated to amusing videos of kittens."
}
```

## Argument Reference

The following arguments are supported:

* `channel_id` - (Required) A unique identifier describing the channel
* `description` - (Optional) A description of the channel

## Attributes Reference

In addition to all arguments above, the following attributes are exported:

* `id` - The same as `channel_id`
* `arn` - The ARN of the channel
* `ingest_endpoints` - A list of the ingest endpoints (see below)

Ingest endpoints export the following attributes:

* `password` - The password
* `url` - The URL
* `username` - The username

## Import

Media Package Channels can be imported via the channel ID, e.g.

```
$ terraform import aws_media_package_channel.kittens kittens-channel
```<commit_msg>docs/resource/aws_media_package_channel: hls_ingest attribute docs<commit_after>---
layout: "aws"
page_title: "AWS: aws_media_package_channel"
sidebar_current: "docs-aws-resource-media-package-channel"
description: |-
  Provides an AWS Elemental MediaPackage Channel.
---

# aws_media_package_channel

Provides an AWS Elemental MediaPackage Channel.

## Example Usage

```hcl
resource "aws_media_package_channel" "kittens" {
  channel_id  = "kitten-channel"
  description = "A channel dedicated to amusing videos of kittens."
}
```

## Argument Reference

The following arguments are supported:

* `channel_id` - (Required) A unique identifier describing the channel
* `description` - (Optional) A description of the channel

## Attributes Reference

In addition to all arguments above, the following attributes are exported:

* `id` - The same as `channel_id`
* `arn` - The ARN of the channel
* `hls_ingest` - A single item list of HLS ingest information
  * `ingest_endpoints` - A list of the ingest endpoints
    * `password` - The password
    * `url` - The URL
    * `username` - The username

## Import

Media Package Channels can be imported via the channel ID, e.g.

```
$ terraform import aws_media_package_channel.kittens kittens-channel
```
{'fraction_non_alphanumeric': 0.09519901518260156, 'fraction_numerical': 0.0, 'mean_word_length': 4.643518518518518, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2885246', 'n_tokens_mistral': 742, 'n_tokens_neox': 731, 'n_words': 254}