libZSservicesZSamazonka-elastictranscoderZSamazonka-elastictranscoder
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.ElasticTranscoder.Types.HlsContentProtection

Description

 
Synopsis

Documentation

data HlsContentProtection Source #

The HLS content protection settings, if any, that you want Elastic Transcoder to apply to your output files.

See: newHlsContentProtection smart constructor.

Constructors

HlsContentProtection' 

Fields

  • keyMd5 :: Maybe Text

    If Elastic Transcoder is generating your key for you, you must leave this field blank.

    The MD5 digest of the key that you want Elastic Transcoder to use to encrypt your output file, and that you want Elastic Transcoder to use as a checksum to make sure your key was not corrupted in transit. The key MD5 must be base64-encoded, and it must be exactly 16 bytes before being base64- encoded.

  • keyStoragePolicy :: Maybe Text

    Specify whether you want Elastic Transcoder to write your HLS license key to an Amazon S3 bucket. If you choose WithVariantPlaylists, LicenseAcquisitionUrl must be left blank and Elastic Transcoder writes your data key into the same bucket as the associated playlist.

  • key :: Maybe Text

    If you want Elastic Transcoder to generate a key for you, leave this field blank.

    If you choose to supply your own key, you must encrypt the key by using AWS KMS. The key must be base64-encoded, and it must be one of the following bit lengths before being base64-encoded:

    128, 192, or 256.

  • method :: Maybe Text

    The content protection method for your output. The only valid value is: aes-128.

    This value is written into the method attribute of the EXT-X-KEY metadata tag in the output playlist.

  • initializationVector :: Maybe Text

    If Elastic Transcoder is generating your key for you, you must leave this field blank.

    The series of random bits created by a random bit generator, unique for every encryption operation, that you want Elastic Transcoder to use to encrypt your output files. The initialization vector must be base64-encoded, and it must be exactly 16 bytes before being base64-encoded.

  • licenseAcquisitionUrl :: Maybe Text

    The location of the license key required to decrypt your HLS playlist. The URL must be an absolute path, and is referenced in the URI attribute of the EXT-X-KEY metadata tag in the playlist file.

Instances

Instances details
Eq HlsContentProtection Source # 
Instance details

Defined in Amazonka.ElasticTranscoder.Types.HlsContentProtection

Read HlsContentProtection Source # 
Instance details

Defined in Amazonka.ElasticTranscoder.Types.HlsContentProtection

Show HlsContentProtection Source # 
Instance details

Defined in Amazonka.ElasticTranscoder.Types.HlsContentProtection

Generic HlsContentProtection Source # 
Instance details

Defined in Amazonka.ElasticTranscoder.Types.HlsContentProtection

Associated Types

type Rep HlsContentProtection :: Type -> Type #

NFData HlsContentProtection Source # 
Instance details

Defined in Amazonka.ElasticTranscoder.Types.HlsContentProtection

Methods

rnf :: HlsContentProtection -> () #

Hashable HlsContentProtection Source # 
Instance details

Defined in Amazonka.ElasticTranscoder.Types.HlsContentProtection

ToJSON HlsContentProtection Source # 
Instance details

Defined in Amazonka.ElasticTranscoder.Types.HlsContentProtection

FromJSON HlsContentProtection Source # 
Instance details

Defined in Amazonka.ElasticTranscoder.Types.HlsContentProtection

type Rep HlsContentProtection Source # 
Instance details

Defined in Amazonka.ElasticTranscoder.Types.HlsContentProtection

type Rep HlsContentProtection = D1 ('MetaData "HlsContentProtection" "Amazonka.ElasticTranscoder.Types.HlsContentProtection" "libZSservicesZSamazonka-elastictranscoderZSamazonka-elastictranscoder" 'False) (C1 ('MetaCons "HlsContentProtection'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "keyMd5") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "keyStoragePolicy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "key") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "method") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "initializationVector") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "licenseAcquisitionUrl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))))

newHlsContentProtection :: HlsContentProtection Source #

Create a value of HlsContentProtection with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:keyMd5:HlsContentProtection', hlsContentProtection_keyMd5 - If Elastic Transcoder is generating your key for you, you must leave this field blank.

The MD5 digest of the key that you want Elastic Transcoder to use to encrypt your output file, and that you want Elastic Transcoder to use as a checksum to make sure your key was not corrupted in transit. The key MD5 must be base64-encoded, and it must be exactly 16 bytes before being base64- encoded.

$sel:keyStoragePolicy:HlsContentProtection', hlsContentProtection_keyStoragePolicy - Specify whether you want Elastic Transcoder to write your HLS license key to an Amazon S3 bucket. If you choose WithVariantPlaylists, LicenseAcquisitionUrl must be left blank and Elastic Transcoder writes your data key into the same bucket as the associated playlist.

$sel:key:HlsContentProtection', hlsContentProtection_key - If you want Elastic Transcoder to generate a key for you, leave this field blank.

If you choose to supply your own key, you must encrypt the key by using AWS KMS. The key must be base64-encoded, and it must be one of the following bit lengths before being base64-encoded:

128, 192, or 256.

$sel:method:HlsContentProtection', hlsContentProtection_method - The content protection method for your output. The only valid value is: aes-128.

This value is written into the method attribute of the EXT-X-KEY metadata tag in the output playlist.

$sel:initializationVector:HlsContentProtection', hlsContentProtection_initializationVector - If Elastic Transcoder is generating your key for you, you must leave this field blank.

The series of random bits created by a random bit generator, unique for every encryption operation, that you want Elastic Transcoder to use to encrypt your output files. The initialization vector must be base64-encoded, and it must be exactly 16 bytes before being base64-encoded.

$sel:licenseAcquisitionUrl:HlsContentProtection', hlsContentProtection_licenseAcquisitionUrl - The location of the license key required to decrypt your HLS playlist. The URL must be an absolute path, and is referenced in the URI attribute of the EXT-X-KEY metadata tag in the playlist file.

hlsContentProtection_keyMd5 :: Lens' HlsContentProtection (Maybe Text) Source #

If Elastic Transcoder is generating your key for you, you must leave this field blank.

The MD5 digest of the key that you want Elastic Transcoder to use to encrypt your output file, and that you want Elastic Transcoder to use as a checksum to make sure your key was not corrupted in transit. The key MD5 must be base64-encoded, and it must be exactly 16 bytes before being base64- encoded.

hlsContentProtection_keyStoragePolicy :: Lens' HlsContentProtection (Maybe Text) Source #

Specify whether you want Elastic Transcoder to write your HLS license key to an Amazon S3 bucket. If you choose WithVariantPlaylists, LicenseAcquisitionUrl must be left blank and Elastic Transcoder writes your data key into the same bucket as the associated playlist.

hlsContentProtection_key :: Lens' HlsContentProtection (Maybe Text) Source #

If you want Elastic Transcoder to generate a key for you, leave this field blank.

If you choose to supply your own key, you must encrypt the key by using AWS KMS. The key must be base64-encoded, and it must be one of the following bit lengths before being base64-encoded:

128, 192, or 256.

hlsContentProtection_method :: Lens' HlsContentProtection (Maybe Text) Source #

The content protection method for your output. The only valid value is: aes-128.

This value is written into the method attribute of the EXT-X-KEY metadata tag in the output playlist.

hlsContentProtection_initializationVector :: Lens' HlsContentProtection (Maybe Text) Source #

If Elastic Transcoder is generating your key for you, you must leave this field blank.

The series of random bits created by a random bit generator, unique for every encryption operation, that you want Elastic Transcoder to use to encrypt your output files. The initialization vector must be base64-encoded, and it must be exactly 16 bytes before being base64-encoded.

hlsContentProtection_licenseAcquisitionUrl :: Lens' HlsContentProtection (Maybe Text) Source #

The location of the license key required to decrypt your HLS playlist. The URL must be an absolute path, and is referenced in the URI attribute of the EXT-X-KEY metadata tag in the playlist file.