diff --git a/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/CancelJob.hs b/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/CancelJob.hs index 6282dcdeec8..014fa6d0e81 100644 --- a/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/CancelJob.hs +++ b/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/CancelJob.hs @@ -66,7 +66,7 @@ cancelJob pId_ = CancelJob' {_cjId = pId_} -- | The identifier of the job that you want to cancel. To get a list of the jobs (including their @jobId@ ) that have a status of @Submitted@ , use the 'ListJobsByStatus' API action. cjId :: Lens' CancelJob Text -cjId = lens _cjId (\ s a -> s{_cjId = a}); +cjId = lens _cjId (\ s a -> s{_cjId = a}) instance AWSRequest CancelJob where type Rs CancelJob = CancelJobResponse @@ -114,6 +114,6 @@ cancelJobResponse pResponseStatus_ = -- | -- | The response status code. canrsResponseStatus :: Lens' CancelJobResponse Int -canrsResponseStatus = lens _canrsResponseStatus (\ s a -> s{_canrsResponseStatus = a}); +canrsResponseStatus = lens _canrsResponseStatus (\ s a -> s{_canrsResponseStatus = a}) instance NFData CancelJobResponse where diff --git a/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/CreateJob.hs b/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/CreateJob.hs index 03cbd4853cd..4d85eb8484f 100644 --- a/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/CreateJob.hs +++ b/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/CreateJob.hs @@ -94,48 +94,48 @@ createJob -> CreateJob createJob pPipelineId_ = CreateJob' - { _cjInputs = Nothing - , _cjInput = Nothing - , _cjUserMetadata = Nothing - , _cjOutputs = Nothing - , _cjOutput = Nothing - , _cjPlaylists = Nothing - , _cjOutputKeyPrefix = Nothing - , _cjPipelineId = pPipelineId_ - } + { _cjInputs = Nothing + , _cjInput = Nothing + , _cjUserMetadata = Nothing + , _cjOutputs = Nothing + , _cjOutput = Nothing + , _cjPlaylists = Nothing + , _cjOutputKeyPrefix = Nothing + , _cjPipelineId = pPipelineId_ + } -- | A section of the request body that provides information about the files that are being transcoded. cjInputs :: Lens' CreateJob [JobInput] -cjInputs = lens _cjInputs (\ s a -> s{_cjInputs = a}) . _Default . _Coerce; +cjInputs = lens _cjInputs (\ s a -> s{_cjInputs = a}) . _Default . _Coerce -- | A section of the request body that provides information about the file that is being transcoded. cjInput :: Lens' CreateJob (Maybe JobInput) -cjInput = lens _cjInput (\ s a -> s{_cjInput = a}); +cjInput = lens _cjInput (\ s a -> s{_cjInput = a}) -- | User-defined metadata that you want to associate with an Elastic Transcoder job. You specify metadata in @key/value@ pairs, and you can add up to 10 @key/value@ pairs per job. Elastic Transcoder does not guarantee that @key/value@ pairs are returned in the same order in which you specify them. cjUserMetadata :: Lens' CreateJob (HashMap Text Text) -cjUserMetadata = lens _cjUserMetadata (\ s a -> s{_cjUserMetadata = a}) . _Default . _Map; +cjUserMetadata = lens _cjUserMetadata (\ s a -> s{_cjUserMetadata = a}) . _Default . _Map -- | A section of the request body that provides information about the transcoded (target) files. We recommend that you use the @Outputs@ syntax instead of the @Output@ syntax. cjOutputs :: Lens' CreateJob [CreateJobOutput] -cjOutputs = lens _cjOutputs (\ s a -> s{_cjOutputs = a}) . _Default . _Coerce; +cjOutputs = lens _cjOutputs (\ s a -> s{_cjOutputs = a}) . _Default . _Coerce -- | A section of the request body that provides information about the transcoded (target) file. We strongly recommend that you use the @Outputs@ syntax instead of the @Output@ syntax. cjOutput :: Lens' CreateJob (Maybe CreateJobOutput) -cjOutput = lens _cjOutput (\ s a -> s{_cjOutput = a}); +cjOutput = lens _cjOutput (\ s a -> s{_cjOutput = a}) -- | If you specify a preset in @PresetId@ for which the value of @Container@ is fmp4 (Fragmented MP4) or ts (MPEG-TS), Playlists contains information about the master playlists that you want Elastic Transcoder to create. The maximum number of master playlists in a job is 30. cjPlaylists :: Lens' CreateJob [CreateJobPlaylist] -cjPlaylists = lens _cjPlaylists (\ s a -> s{_cjPlaylists = a}) . _Default . _Coerce; +cjPlaylists = lens _cjPlaylists (\ s a -> s{_cjPlaylists = a}) . _Default . _Coerce -- | The value, if any, that you want Elastic Transcoder to prepend to the names of all files that this job creates, including output files, thumbnails, and playlists. cjOutputKeyPrefix :: Lens' CreateJob (Maybe Text) -cjOutputKeyPrefix = lens _cjOutputKeyPrefix (\ s a -> s{_cjOutputKeyPrefix = a}); +cjOutputKeyPrefix = lens _cjOutputKeyPrefix (\ s a -> s{_cjOutputKeyPrefix = a}) -- | The @Id@ of the pipeline that you want Elastic Transcoder to use for transcoding. The pipeline determines several settings, including the Amazon S3 bucket from which Elastic Transcoder gets the files to transcode and the bucket into which Elastic Transcoder puts the transcoded files. cjPipelineId :: Lens' CreateJob Text -cjPipelineId = lens _cjPipelineId (\ s a -> s{_cjPipelineId = a}); +cjPipelineId = lens _cjPipelineId (\ s a -> s{_cjPipelineId = a}) instance AWSRequest CreateJob where type Rs CreateJob = CreateJobResponse @@ -195,15 +195,15 @@ createJobResponse -> CreateJobResponse createJobResponse pResponseStatus_ = CreateJobResponse' - {_cjrsJob = Nothing, _cjrsResponseStatus = pResponseStatus_} + {_cjrsJob = Nothing, _cjrsResponseStatus = pResponseStatus_} -- | A section of the response body that provides information about the job that is created. cjrsJob :: Lens' CreateJobResponse (Maybe Job') -cjrsJob = lens _cjrsJob (\ s a -> s{_cjrsJob = a}); +cjrsJob = lens _cjrsJob (\ s a -> s{_cjrsJob = a}) -- | -- | The response status code. cjrsResponseStatus :: Lens' CreateJobResponse Int -cjrsResponseStatus = lens _cjrsResponseStatus (\ s a -> s{_cjrsResponseStatus = a}); +cjrsResponseStatus = lens _cjrsResponseStatus (\ s a -> s{_cjrsResponseStatus = a}) instance NFData CreateJobResponse where diff --git a/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/CreatePipeline.hs b/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/CreatePipeline.hs index e541ac97ef5..30085cfefe7 100644 --- a/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/CreatePipeline.hs +++ b/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/CreatePipeline.hs @@ -95,48 +95,48 @@ createPipeline -> CreatePipeline createPipeline pName_ pInputBucket_ pRole_ = CreatePipeline' - { _cContentConfig = Nothing - , _cOutputBucket = Nothing - , _cAWSKMSKeyARN = Nothing - , _cNotifications = Nothing - , _cThumbnailConfig = Nothing - , _cName = pName_ - , _cInputBucket = pInputBucket_ - , _cRole = pRole_ - } + { _cContentConfig = Nothing + , _cOutputBucket = Nothing + , _cAWSKMSKeyARN = Nothing + , _cNotifications = Nothing + , _cThumbnailConfig = Nothing + , _cName = pName_ + , _cInputBucket = pInputBucket_ + , _cRole = pRole_ + } -- | The optional @ContentConfig@ object specifies information about the Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and playlists: which bucket to use, which users you want to have access to the files, the type of access you want users to have, and the storage class that you want to assign to the files. If you specify values for @ContentConfig@ , you must also specify values for @ThumbnailConfig@ . If you specify values for @ContentConfig@ and @ThumbnailConfig@ , omit the @OutputBucket@ object. * __Bucket__ : The Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and playlists. * __Permissions__ (Optional): The Permissions object specifies which users you want to have access to transcoded files and the type of access you want them to have. You can grant permissions to a maximum of 30 users and/or predefined Amazon S3 groups. * __Grantee Type__ : Specify the type of value that appears in the @Grantee@ object: * __Canonical__ : The value in the @Grantee@ object is either the canonical user ID for an AWS account or an origin access identity for an Amazon CloudFront distribution. For more information about canonical user IDs, see Access Control List (ACL) Overview in the Amazon Simple Storage Service Developer Guide. For more information about using CloudFront origin access identities to require that users use CloudFront URLs instead of Amazon S3 URLs, see Using an Origin Access Identity to Restrict Access to Your Amazon S3 Content. /Important:/ A canonical user ID is not the same as an AWS account number. * __Email__ : The value in the @Grantee@ object is the registered email address of an AWS account. * __Group__ : The value in the @Grantee@ object is one of the following predefined Amazon S3 groups: @AllUsers@ , @AuthenticatedUsers@ , or @LogDelivery@ . * __Grantee__ : The AWS user or group that you want to have access to transcoded files and playlists. To identify the user or group, you can specify the canonical user ID for an AWS account, an origin access identity for a CloudFront distribution, the registered email address of an AWS account, or a predefined Amazon S3 group * __Access__ : The permission that you want to give to the AWS user that you specified in @Grantee@ . Permissions are granted on the files that Elastic Transcoder adds to the bucket, including playlists and video files. Valid values include: * @READ@ : The grantee can read the objects and metadata for objects that Elastic Transcoder adds to the Amazon S3 bucket. * @READ_ACP@ : The grantee can read the object ACL for objects that Elastic Transcoder adds to the Amazon S3 bucket. * @WRITE_ACP@ : The grantee can write the ACL for the objects that Elastic Transcoder adds to the Amazon S3 bucket. * @FULL_CONTROL@ : The grantee has @READ@ , @READ_ACP@ , and @WRITE_ACP@ permissions for the objects that Elastic Transcoder adds to the Amazon S3 bucket. * __StorageClass__ : The Amazon S3 storage class, @Standard@ or @ReducedRedundancy@ , that you want Elastic Transcoder to assign to the video files and playlists that it stores in your Amazon S3 bucket. cContentConfig :: Lens' CreatePipeline (Maybe PipelineOutputConfig) -cContentConfig = lens _cContentConfig (\ s a -> s{_cContentConfig = a}); +cContentConfig = lens _cContentConfig (\ s a -> s{_cContentConfig = a}) -- | The Amazon S3 bucket in which you want Elastic Transcoder to save the transcoded files. (Use this, or use ContentConfig:Bucket plus ThumbnailConfig:Bucket.) Specify this value when all of the following are true: * You want to save transcoded files, thumbnails (if any), and playlists (if any) together in one bucket. * You do not want to specify the users or groups who have access to the transcoded files, thumbnails, and playlists. * You do not want to specify the permissions that Elastic Transcoder grants to the files. /Important:/ When Elastic Transcoder saves files in @OutputBucket@ , it grants full control over the files only to the AWS account that owns the role that is specified by @Role@ . * You want to associate the transcoded files and thumbnails with the Amazon S3 Standard storage class. If you want to save transcoded files and playlists in one bucket and thumbnails in another bucket, specify which users can access the transcoded files or the permissions the users have, or change the Amazon S3 storage class, omit @OutputBucket@ and specify values for @ContentConfig@ and @ThumbnailConfig@ instead. cOutputBucket :: Lens' CreatePipeline (Maybe Text) -cOutputBucket = lens _cOutputBucket (\ s a -> s{_cOutputBucket = a}); +cOutputBucket = lens _cOutputBucket (\ s a -> s{_cOutputBucket = a}) -- | The AWS Key Management Service (AWS KMS) key that you want to use with this pipeline. If you use either @S3@ or @S3-AWS-KMS@ as your @Encryption:Mode@ , you don't need to provide a key with your job because a default key, known as an AWS-KMS key, is created for you automatically. You need to provide an AWS-KMS key only if you want to use a non-default AWS-KMS key, or if you are using an @Encryption:Mode@ of @AES-PKCS7@ , @AES-CTR@ , or @AES-GCM@ . cAWSKMSKeyARN :: Lens' CreatePipeline (Maybe Text) -cAWSKMSKeyARN = lens _cAWSKMSKeyARN (\ s a -> s{_cAWSKMSKeyARN = a}); +cAWSKMSKeyARN = lens _cAWSKMSKeyARN (\ s a -> s{_cAWSKMSKeyARN = a}) -- | The Amazon Simple Notification Service (Amazon SNS) topic that you want to notify to report job status. /Important:/ To receive notifications, you must also subscribe to the new topic in the Amazon SNS console. * __Progressing__ : The topic ARN for the Amazon Simple Notification Service (Amazon SNS) topic that you want to notify when Elastic Transcoder has started to process a job in this pipeline. This is the ARN that Amazon SNS returned when you created the topic. For more information, see Create a Topic in the Amazon Simple Notification Service Developer Guide. * __Completed__ : The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder has finished processing a job in this pipeline. This is the ARN that Amazon SNS returned when you created the topic. * __Warning__ : The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder encounters a warning condition while processing a job in this pipeline. This is the ARN that Amazon SNS returned when you created the topic. * __Error__ : The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder encounters an error condition while processing a job in this pipeline. This is the ARN that Amazon SNS returned when you created the topic. cNotifications :: Lens' CreatePipeline (Maybe Notifications) -cNotifications = lens _cNotifications (\ s a -> s{_cNotifications = a}); +cNotifications = lens _cNotifications (\ s a -> s{_cNotifications = a}) -- | The @ThumbnailConfig@ object specifies several values, including the Amazon S3 bucket in which you want Elastic Transcoder to save thumbnail files, which users you want to have access to the files, the type of access you want users to have, and the storage class that you want to assign to the files. If you specify values for @ContentConfig@ , you must also specify values for @ThumbnailConfig@ even if you don't want to create thumbnails. If you specify values for @ContentConfig@ and @ThumbnailConfig@ , omit the @OutputBucket@ object. * __Bucket__ : The Amazon S3 bucket in which you want Elastic Transcoder to save thumbnail files. * __Permissions__ (Optional): The @Permissions@ object specifies which users and/or predefined Amazon S3 groups you want to have access to thumbnail files, and the type of access you want them to have. You can grant permissions to a maximum of 30 users and/or predefined Amazon S3 groups. * __GranteeType__ : Specify the type of value that appears in the Grantee object: * __Canonical__ : The value in the @Grantee@ object is either the canonical user ID for an AWS account or an origin access identity for an Amazon CloudFront distribution. /Important:/ A canonical user ID is not the same as an AWS account number. * __Email__ : The value in the @Grantee@ object is the registered email address of an AWS account. * __Group__ : The value in the @Grantee@ object is one of the following predefined Amazon S3 groups: @AllUsers@ , @AuthenticatedUsers@ , or @LogDelivery@ . * __Grantee__ : The AWS user or group that you want to have access to thumbnail files. To identify the user or group, you can specify the canonical user ID for an AWS account, an origin access identity for a CloudFront distribution, the registered email address of an AWS account, or a predefined Amazon S3 group. * __Access__ : The permission that you want to give to the AWS user that you specified in @Grantee@ . Permissions are granted on the thumbnail files that Elastic Transcoder adds to the bucket. Valid values include: * @READ@ : The grantee can read the thumbnails and metadata for objects that Elastic Transcoder adds to the Amazon S3 bucket. * @READ_ACP@ : The grantee can read the object ACL for thumbnails that Elastic Transcoder adds to the Amazon S3 bucket. * @WRITE_ACP@ : The grantee can write the ACL for the thumbnails that Elastic Transcoder adds to the Amazon S3 bucket. * @FULL_CONTROL@ : The grantee has @READ@ , @READ_ACP@ , and @WRITE_ACP@ permissions for the thumbnails that Elastic Transcoder adds to the Amazon S3 bucket. * __StorageClass__ : The Amazon S3 storage class, @Standard@ or @ReducedRedundancy@ , that you want Elastic Transcoder to assign to the thumbnails that it stores in your Amazon S3 bucket. cThumbnailConfig :: Lens' CreatePipeline (Maybe PipelineOutputConfig) -cThumbnailConfig = lens _cThumbnailConfig (\ s a -> s{_cThumbnailConfig = a}); +cThumbnailConfig = lens _cThumbnailConfig (\ s a -> s{_cThumbnailConfig = a}) -- | The name of the pipeline. We recommend that the name be unique within the AWS account, but uniqueness is not enforced. Constraints: Maximum 40 characters. cName :: Lens' CreatePipeline Text -cName = lens _cName (\ s a -> s{_cName = a}); +cName = lens _cName (\ s a -> s{_cName = a}) -- | The Amazon S3 bucket in which you saved the media files that you want to transcode. cInputBucket :: Lens' CreatePipeline Text -cInputBucket = lens _cInputBucket (\ s a -> s{_cInputBucket = a}); +cInputBucket = lens _cInputBucket (\ s a -> s{_cInputBucket = a}) -- | The IAM Amazon Resource Name (ARN) for the role that you want Elastic Transcoder to use to create the pipeline. cRole :: Lens' CreatePipeline Text -cRole = lens _cRole (\ s a -> s{_cRole = a}); +cRole = lens _cRole (\ s a -> s{_cRole = a}) instance AWSRequest CreatePipeline where type Rs CreatePipeline = CreatePipelineResponse @@ -200,22 +200,22 @@ createPipelineResponse -> CreatePipelineResponse createPipelineResponse pResponseStatus_ = CreatePipelineResponse' - { _crsWarnings = Nothing - , _crsPipeline = Nothing - , _crsResponseStatus = pResponseStatus_ - } + { _crsWarnings = Nothing + , _crsPipeline = Nothing + , _crsResponseStatus = pResponseStatus_ + } -- | Elastic Transcoder returns a warning if the resources used by your pipeline are not in the same region as the pipeline. Using resources in the same region, such as your Amazon S3 buckets, Amazon SNS notification topics, and AWS KMS key, reduces processing time and prevents cross-regional charges. crsWarnings :: Lens' CreatePipelineResponse [Warning] -crsWarnings = lens _crsWarnings (\ s a -> s{_crsWarnings = a}) . _Default . _Coerce; +crsWarnings = lens _crsWarnings (\ s a -> s{_crsWarnings = a}) . _Default . _Coerce -- | A section of the response body that provides information about the pipeline that is created. crsPipeline :: Lens' CreatePipelineResponse (Maybe Pipeline) -crsPipeline = lens _crsPipeline (\ s a -> s{_crsPipeline = a}); +crsPipeline = lens _crsPipeline (\ s a -> s{_crsPipeline = a}) -- | -- | The response status code. crsResponseStatus :: Lens' CreatePipelineResponse Int -crsResponseStatus = lens _crsResponseStatus (\ s a -> s{_crsResponseStatus = a}); +crsResponseStatus = lens _crsResponseStatus (\ s a -> s{_crsResponseStatus = a}) instance NFData CreatePipelineResponse where diff --git a/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/CreatePreset.hs b/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/CreatePreset.hs index 18b9d8dbd08..45116cb6e39 100644 --- a/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/CreatePreset.hs +++ b/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/CreatePreset.hs @@ -90,38 +90,38 @@ createPreset -> CreatePreset createPreset pName_ pContainer_ = CreatePreset' - { _cpVideo = Nothing - , _cpThumbnails = Nothing - , _cpDescription = Nothing - , _cpAudio = Nothing - , _cpName = pName_ - , _cpContainer = pContainer_ - } + { _cpVideo = Nothing + , _cpThumbnails = Nothing + , _cpDescription = Nothing + , _cpAudio = Nothing + , _cpName = pName_ + , _cpContainer = pContainer_ + } -- | A section of the request body that specifies the video parameters. cpVideo :: Lens' CreatePreset (Maybe VideoParameters) -cpVideo = lens _cpVideo (\ s a -> s{_cpVideo = a}); +cpVideo = lens _cpVideo (\ s a -> s{_cpVideo = a}) -- | A section of the request body that specifies the thumbnail parameters, if any. cpThumbnails :: Lens' CreatePreset (Maybe Thumbnails) -cpThumbnails = lens _cpThumbnails (\ s a -> s{_cpThumbnails = a}); +cpThumbnails = lens _cpThumbnails (\ s a -> s{_cpThumbnails = a}) -- | A description of the preset. cpDescription :: Lens' CreatePreset (Maybe Text) -cpDescription = lens _cpDescription (\ s a -> s{_cpDescription = a}); +cpDescription = lens _cpDescription (\ s a -> s{_cpDescription = a}) -- | A section of the request body that specifies the audio parameters. cpAudio :: Lens' CreatePreset (Maybe AudioParameters) -cpAudio = lens _cpAudio (\ s a -> s{_cpAudio = a}); +cpAudio = lens _cpAudio (\ s a -> s{_cpAudio = a}) -- | The name of the preset. We recommend that the name be unique within the AWS account, but uniqueness is not enforced. cpName :: Lens' CreatePreset Text -cpName = lens _cpName (\ s a -> s{_cpName = a}); +cpName = lens _cpName (\ s a -> s{_cpName = a}) -- | The container type for the output file. Valid values include @flac@ , @flv@ , @fmp4@ , @gif@ , @mp3@ , @mp4@ , @mpg@ , @mxf@ , @oga@ , @ogg@ , @ts@ , and @webm@ . cpContainer :: Lens' CreatePreset Text -cpContainer = lens _cpContainer (\ s a -> s{_cpContainer = a}); +cpContainer = lens _cpContainer (\ s a -> s{_cpContainer = a}) instance AWSRequest CreatePreset where type Rs CreatePreset = CreatePresetResponse @@ -182,22 +182,22 @@ createPresetResponse -> CreatePresetResponse createPresetResponse pResponseStatus_ = CreatePresetResponse' - { _cprsWarning = Nothing - , _cprsPreset = Nothing - , _cprsResponseStatus = pResponseStatus_ - } + { _cprsWarning = Nothing + , _cprsPreset = Nothing + , _cprsResponseStatus = pResponseStatus_ + } -- | If the preset settings don't comply with the standards for the video codec but Elastic Transcoder created the preset, this message explains the reason the preset settings don't meet the standard. Elastic Transcoder created the preset because the settings might produce acceptable output. cprsWarning :: Lens' CreatePresetResponse (Maybe Text) -cprsWarning = lens _cprsWarning (\ s a -> s{_cprsWarning = a}); +cprsWarning = lens _cprsWarning (\ s a -> s{_cprsWarning = a}) -- | A section of the response body that provides information about the preset that is created. cprsPreset :: Lens' CreatePresetResponse (Maybe Preset) -cprsPreset = lens _cprsPreset (\ s a -> s{_cprsPreset = a}); +cprsPreset = lens _cprsPreset (\ s a -> s{_cprsPreset = a}) -- | -- | The response status code. cprsResponseStatus :: Lens' CreatePresetResponse Int -cprsResponseStatus = lens _cprsResponseStatus (\ s a -> s{_cprsResponseStatus = a}); +cprsResponseStatus = lens _cprsResponseStatus (\ s a -> s{_cprsResponseStatus = a}) instance NFData CreatePresetResponse where diff --git a/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/DeletePipeline.hs b/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/DeletePipeline.hs index e52c7612db7..9787dda0a3c 100644 --- a/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/DeletePipeline.hs +++ b/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/DeletePipeline.hs @@ -68,7 +68,7 @@ deletePipeline pId_ = DeletePipeline' {_dId = pId_} -- | The identifier of the pipeline that you want to delete. dId :: Lens' DeletePipeline Text -dId = lens _dId (\ s a -> s{_dId = a}); +dId = lens _dId (\ s a -> s{_dId = a}) instance AWSRequest DeletePipeline where type Rs DeletePipeline = DeletePipelineResponse @@ -116,6 +116,6 @@ deletePipelineResponse pResponseStatus_ = -- | -- | The response status code. drsResponseStatus :: Lens' DeletePipelineResponse Int -drsResponseStatus = lens _drsResponseStatus (\ s a -> s{_drsResponseStatus = a}); +drsResponseStatus = lens _drsResponseStatus (\ s a -> s{_drsResponseStatus = a}) instance NFData DeletePipelineResponse where diff --git a/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/DeletePreset.hs b/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/DeletePreset.hs index 51a36c9a822..6ba01da1a85 100644 --- a/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/DeletePreset.hs +++ b/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/DeletePreset.hs @@ -66,7 +66,7 @@ deletePreset pId_ = DeletePreset' {_dpId = pId_} -- | The identifier of the preset for which you want to get detailed information. dpId :: Lens' DeletePreset Text -dpId = lens _dpId (\ s a -> s{_dpId = a}); +dpId = lens _dpId (\ s a -> s{_dpId = a}) instance AWSRequest DeletePreset where type Rs DeletePreset = DeletePresetResponse @@ -114,6 +114,6 @@ deletePresetResponse pResponseStatus_ = -- | -- | The response status code. dprsResponseStatus :: Lens' DeletePresetResponse Int -dprsResponseStatus = lens _dprsResponseStatus (\ s a -> s{_dprsResponseStatus = a}); +dprsResponseStatus = lens _dprsResponseStatus (\ s a -> s{_dprsResponseStatus = a}) instance NFData DeletePresetResponse where diff --git a/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/ListJobsByPipeline.hs b/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/ListJobsByPipeline.hs index 1e01ec47b6e..9e52e41b9fc 100644 --- a/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/ListJobsByPipeline.hs +++ b/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/ListJobsByPipeline.hs @@ -78,23 +78,23 @@ listJobsByPipeline -> ListJobsByPipeline listJobsByPipeline pPipelineId_ = ListJobsByPipeline' - { _ljbpAscending = Nothing - , _ljbpPageToken = Nothing - , _ljbpPipelineId = pPipelineId_ - } + { _ljbpAscending = Nothing + , _ljbpPageToken = Nothing + , _ljbpPipelineId = pPipelineId_ + } -- | To list jobs in chronological order by the date and time that they were submitted, enter @true@ . To list jobs in reverse chronological order, enter @false@ . ljbpAscending :: Lens' ListJobsByPipeline (Maybe Text) -ljbpAscending = lens _ljbpAscending (\ s a -> s{_ljbpAscending = a}); +ljbpAscending = lens _ljbpAscending (\ s a -> s{_ljbpAscending = a}) -- | When Elastic Transcoder returns more than one page of results, use @pageToken@ in subsequent @GET@ requests to get each successive page of results. ljbpPageToken :: Lens' ListJobsByPipeline (Maybe Text) -ljbpPageToken = lens _ljbpPageToken (\ s a -> s{_ljbpPageToken = a}); +ljbpPageToken = lens _ljbpPageToken (\ s a -> s{_ljbpPageToken = a}) -- | The ID of the pipeline for which you want to get job information. ljbpPipelineId :: Lens' ListJobsByPipeline Text -ljbpPipelineId = lens _ljbpPipelineId (\ s a -> s{_ljbpPipelineId = a}); +ljbpPipelineId = lens _ljbpPipelineId (\ s a -> s{_ljbpPipelineId = a}) instance AWSPager ListJobsByPipeline where page rq rs @@ -159,22 +159,22 @@ listJobsByPipelineResponse -> ListJobsByPipelineResponse listJobsByPipelineResponse pResponseStatus_ = ListJobsByPipelineResponse' - { _ljbprsNextPageToken = Nothing - , _ljbprsJobs = Nothing - , _ljbprsResponseStatus = pResponseStatus_ - } + { _ljbprsNextPageToken = Nothing + , _ljbprsJobs = Nothing + , _ljbprsResponseStatus = pResponseStatus_ + } -- | A value that you use to access the second and subsequent pages of results, if any. When the jobs in the specified pipeline fit on one page or when you've reached the last page of results, the value of @NextPageToken@ is @null@ . ljbprsNextPageToken :: Lens' ListJobsByPipelineResponse (Maybe Text) -ljbprsNextPageToken = lens _ljbprsNextPageToken (\ s a -> s{_ljbprsNextPageToken = a}); +ljbprsNextPageToken = lens _ljbprsNextPageToken (\ s a -> s{_ljbprsNextPageToken = a}) -- | An array of @Job@ objects that are in the specified pipeline. ljbprsJobs :: Lens' ListJobsByPipelineResponse [Job'] -ljbprsJobs = lens _ljbprsJobs (\ s a -> s{_ljbprsJobs = a}) . _Default . _Coerce; +ljbprsJobs = lens _ljbprsJobs (\ s a -> s{_ljbprsJobs = a}) . _Default . _Coerce -- | -- | The response status code. ljbprsResponseStatus :: Lens' ListJobsByPipelineResponse Int -ljbprsResponseStatus = lens _ljbprsResponseStatus (\ s a -> s{_ljbprsResponseStatus = a}); +ljbprsResponseStatus = lens _ljbprsResponseStatus (\ s a -> s{_ljbprsResponseStatus = a}) instance NFData ListJobsByPipelineResponse where diff --git a/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/ListJobsByStatus.hs b/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/ListJobsByStatus.hs index 0cbeb8e7286..3debed92948 100644 --- a/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/ListJobsByStatus.hs +++ b/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/ListJobsByStatus.hs @@ -76,20 +76,20 @@ listJobsByStatus -> ListJobsByStatus listJobsByStatus pStatus_ = ListJobsByStatus' - {_ljbsAscending = Nothing, _ljbsPageToken = Nothing, _ljbsStatus = pStatus_} + {_ljbsAscending = Nothing, _ljbsPageToken = Nothing, _ljbsStatus = pStatus_} -- | To list jobs in chronological order by the date and time that they were submitted, enter @true@ . To list jobs in reverse chronological order, enter @false@ . ljbsAscending :: Lens' ListJobsByStatus (Maybe Text) -ljbsAscending = lens _ljbsAscending (\ s a -> s{_ljbsAscending = a}); +ljbsAscending = lens _ljbsAscending (\ s a -> s{_ljbsAscending = a}) -- | When Elastic Transcoder returns more than one page of results, use @pageToken@ in subsequent @GET@ requests to get each successive page of results. ljbsPageToken :: Lens' ListJobsByStatus (Maybe Text) -ljbsPageToken = lens _ljbsPageToken (\ s a -> s{_ljbsPageToken = a}); +ljbsPageToken = lens _ljbsPageToken (\ s a -> s{_ljbsPageToken = a}) -- | To get information about all of the jobs associated with the current AWS account that have a given status, specify the following status: @Submitted@ , @Progressing@ , @Complete@ , @Canceled@ , or @Error@ . ljbsStatus :: Lens' ListJobsByStatus Text -ljbsStatus = lens _ljbsStatus (\ s a -> s{_ljbsStatus = a}); +ljbsStatus = lens _ljbsStatus (\ s a -> s{_ljbsStatus = a}) instance AWSPager ListJobsByStatus where page rq rs @@ -153,22 +153,22 @@ listJobsByStatusResponse -> ListJobsByStatusResponse listJobsByStatusResponse pResponseStatus_ = ListJobsByStatusResponse' - { _ljbsrsNextPageToken = Nothing - , _ljbsrsJobs = Nothing - , _ljbsrsResponseStatus = pResponseStatus_ - } + { _ljbsrsNextPageToken = Nothing + , _ljbsrsJobs = Nothing + , _ljbsrsResponseStatus = pResponseStatus_ + } -- | A value that you use to access the second and subsequent pages of results, if any. When the jobs in the specified pipeline fit on one page or when you've reached the last page of results, the value of @NextPageToken@ is @null@ . ljbsrsNextPageToken :: Lens' ListJobsByStatusResponse (Maybe Text) -ljbsrsNextPageToken = lens _ljbsrsNextPageToken (\ s a -> s{_ljbsrsNextPageToken = a}); +ljbsrsNextPageToken = lens _ljbsrsNextPageToken (\ s a -> s{_ljbsrsNextPageToken = a}) -- | An array of @Job@ objects that have the specified status. ljbsrsJobs :: Lens' ListJobsByStatusResponse [Job'] -ljbsrsJobs = lens _ljbsrsJobs (\ s a -> s{_ljbsrsJobs = a}) . _Default . _Coerce; +ljbsrsJobs = lens _ljbsrsJobs (\ s a -> s{_ljbsrsJobs = a}) . _Default . _Coerce -- | -- | The response status code. ljbsrsResponseStatus :: Lens' ListJobsByStatusResponse Int -ljbsrsResponseStatus = lens _ljbsrsResponseStatus (\ s a -> s{_ljbsrsResponseStatus = a}); +ljbsrsResponseStatus = lens _ljbsrsResponseStatus (\ s a -> s{_ljbsrsResponseStatus = a}) instance NFData ListJobsByStatusResponse where diff --git a/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/ListPipelines.hs b/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/ListPipelines.hs index 43054c9e878..28ee8fd0a73 100644 --- a/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/ListPipelines.hs +++ b/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/ListPipelines.hs @@ -74,11 +74,11 @@ listPipelines = ListPipelines' {_lpAscending = Nothing, _lpPageToken = Nothing} -- | To list pipelines in chronological order by the date and time that they were created, enter @true@ . To list pipelines in reverse chronological order, enter @false@ . lpAscending :: Lens' ListPipelines (Maybe Text) -lpAscending = lens _lpAscending (\ s a -> s{_lpAscending = a}); +lpAscending = lens _lpAscending (\ s a -> s{_lpAscending = a}) -- | When Elastic Transcoder returns more than one page of results, use @pageToken@ in subsequent @GET@ requests to get each successive page of results. lpPageToken :: Lens' ListPipelines (Maybe Text) -lpPageToken = lens _lpPageToken (\ s a -> s{_lpPageToken = a}); +lpPageToken = lens _lpPageToken (\ s a -> s{_lpPageToken = a}) instance AWSPager ListPipelines where page rq rs @@ -140,22 +140,22 @@ listPipelinesResponse -> ListPipelinesResponse listPipelinesResponse pResponseStatus_ = ListPipelinesResponse' - { _lprsNextPageToken = Nothing - , _lprsPipelines = Nothing - , _lprsResponseStatus = pResponseStatus_ - } + { _lprsNextPageToken = Nothing + , _lprsPipelines = Nothing + , _lprsResponseStatus = pResponseStatus_ + } -- | A value that you use to access the second and subsequent pages of results, if any. When the pipelines fit on one page or when you've reached the last page of results, the value of @NextPageToken@ is @null@ . lprsNextPageToken :: Lens' ListPipelinesResponse (Maybe Text) -lprsNextPageToken = lens _lprsNextPageToken (\ s a -> s{_lprsNextPageToken = a}); +lprsNextPageToken = lens _lprsNextPageToken (\ s a -> s{_lprsNextPageToken = a}) -- | An array of @Pipeline@ objects. lprsPipelines :: Lens' ListPipelinesResponse [Pipeline] -lprsPipelines = lens _lprsPipelines (\ s a -> s{_lprsPipelines = a}) . _Default . _Coerce; +lprsPipelines = lens _lprsPipelines (\ s a -> s{_lprsPipelines = a}) . _Default . _Coerce -- | -- | The response status code. lprsResponseStatus :: Lens' ListPipelinesResponse Int -lprsResponseStatus = lens _lprsResponseStatus (\ s a -> s{_lprsResponseStatus = a}); +lprsResponseStatus = lens _lprsResponseStatus (\ s a -> s{_lprsResponseStatus = a}) instance NFData ListPipelinesResponse where diff --git a/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/ListPresets.hs b/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/ListPresets.hs index 0756e3fb05b..7b7547810ee 100644 --- a/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/ListPresets.hs +++ b/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/ListPresets.hs @@ -74,11 +74,11 @@ listPresets = ListPresets' {_lAscending = Nothing, _lPageToken = Nothing} -- | To list presets in chronological order by the date and time that they were created, enter @true@ . To list presets in reverse chronological order, enter @false@ . lAscending :: Lens' ListPresets (Maybe Text) -lAscending = lens _lAscending (\ s a -> s{_lAscending = a}); +lAscending = lens _lAscending (\ s a -> s{_lAscending = a}) -- | When Elastic Transcoder returns more than one page of results, use @pageToken@ in subsequent @GET@ requests to get each successive page of results. lPageToken :: Lens' ListPresets (Maybe Text) -lPageToken = lens _lPageToken (\ s a -> s{_lPageToken = a}); +lPageToken = lens _lPageToken (\ s a -> s{_lPageToken = a}) instance AWSPager ListPresets where page rq rs @@ -140,22 +140,22 @@ listPresetsResponse -> ListPresetsResponse listPresetsResponse pResponseStatus_ = ListPresetsResponse' - { _lrsNextPageToken = Nothing - , _lrsPresets = Nothing - , _lrsResponseStatus = pResponseStatus_ - } + { _lrsNextPageToken = Nothing + , _lrsPresets = Nothing + , _lrsResponseStatus = pResponseStatus_ + } -- | A value that you use to access the second and subsequent pages of results, if any. When the presets fit on one page or when you've reached the last page of results, the value of @NextPageToken@ is @null@ . lrsNextPageToken :: Lens' ListPresetsResponse (Maybe Text) -lrsNextPageToken = lens _lrsNextPageToken (\ s a -> s{_lrsNextPageToken = a}); +lrsNextPageToken = lens _lrsNextPageToken (\ s a -> s{_lrsNextPageToken = a}) -- | An array of @Preset@ objects. lrsPresets :: Lens' ListPresetsResponse [Preset] -lrsPresets = lens _lrsPresets (\ s a -> s{_lrsPresets = a}) . _Default . _Coerce; +lrsPresets = lens _lrsPresets (\ s a -> s{_lrsPresets = a}) . _Default . _Coerce -- | -- | The response status code. lrsResponseStatus :: Lens' ListPresetsResponse Int -lrsResponseStatus = lens _lrsResponseStatus (\ s a -> s{_lrsResponseStatus = a}); +lrsResponseStatus = lens _lrsResponseStatus (\ s a -> s{_lrsResponseStatus = a}) instance NFData ListPresetsResponse where diff --git a/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/ReadJob.hs b/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/ReadJob.hs index 43afd78dacf..1e6a6ecc491 100644 --- a/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/ReadJob.hs +++ b/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/ReadJob.hs @@ -67,7 +67,7 @@ readJob pId_ = ReadJob' {_rjId = pId_} -- | The identifier of the job for which you want to get detailed information. rjId :: Lens' ReadJob Text -rjId = lens _rjId (\ s a -> s{_rjId = a}); +rjId = lens _rjId (\ s a -> s{_rjId = a}) instance AWSRequest ReadJob where type Rs ReadJob = ReadJobResponse @@ -120,10 +120,10 @@ readJobResponse pResponseStatus_ pJob_ = -- | -- | The response status code. rjrsResponseStatus :: Lens' ReadJobResponse Int -rjrsResponseStatus = lens _rjrsResponseStatus (\ s a -> s{_rjrsResponseStatus = a}); +rjrsResponseStatus = lens _rjrsResponseStatus (\ s a -> s{_rjrsResponseStatus = a}) -- | A section of the response body that provides information about the job. rjrsJob :: Lens' ReadJobResponse Job' -rjrsJob = lens _rjrsJob (\ s a -> s{_rjrsJob = a}); +rjrsJob = lens _rjrsJob (\ s a -> s{_rjrsJob = a}) instance NFData ReadJobResponse where diff --git a/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/ReadPipeline.hs b/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/ReadPipeline.hs index 30f925102ef..51103e84bcd 100644 --- a/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/ReadPipeline.hs +++ b/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/ReadPipeline.hs @@ -68,7 +68,7 @@ readPipeline pId_ = ReadPipeline' {_rId = pId_} -- | The identifier of the pipeline to read. rId :: Lens' ReadPipeline Text -rId = lens _rId (\ s a -> s{_rId = a}); +rId = lens _rId (\ s a -> s{_rId = a}) instance AWSRequest ReadPipeline where type Rs ReadPipeline = ReadPipelineResponse @@ -120,22 +120,22 @@ readPipelineResponse -> ReadPipelineResponse readPipelineResponse pResponseStatus_ = ReadPipelineResponse' - { _rrsWarnings = Nothing - , _rrsPipeline = Nothing - , _rrsResponseStatus = pResponseStatus_ - } + { _rrsWarnings = Nothing + , _rrsPipeline = Nothing + , _rrsResponseStatus = pResponseStatus_ + } -- | Elastic Transcoder returns a warning if the resources used by your pipeline are not in the same region as the pipeline. Using resources in the same region, such as your Amazon S3 buckets, Amazon SNS notification topics, and AWS KMS key, reduces processing time and prevents cross-regional charges. rrsWarnings :: Lens' ReadPipelineResponse [Warning] -rrsWarnings = lens _rrsWarnings (\ s a -> s{_rrsWarnings = a}) . _Default . _Coerce; +rrsWarnings = lens _rrsWarnings (\ s a -> s{_rrsWarnings = a}) . _Default . _Coerce -- | A section of the response body that provides information about the pipeline. rrsPipeline :: Lens' ReadPipelineResponse (Maybe Pipeline) -rrsPipeline = lens _rrsPipeline (\ s a -> s{_rrsPipeline = a}); +rrsPipeline = lens _rrsPipeline (\ s a -> s{_rrsPipeline = a}) -- | -- | The response status code. rrsResponseStatus :: Lens' ReadPipelineResponse Int -rrsResponseStatus = lens _rrsResponseStatus (\ s a -> s{_rrsResponseStatus = a}); +rrsResponseStatus = lens _rrsResponseStatus (\ s a -> s{_rrsResponseStatus = a}) instance NFData ReadPipelineResponse where diff --git a/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/ReadPreset.hs b/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/ReadPreset.hs index 355ee6627f8..22d3ca68487 100644 --- a/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/ReadPreset.hs +++ b/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/ReadPreset.hs @@ -67,7 +67,7 @@ readPreset pId_ = ReadPreset' {_rpId = pId_} -- | The identifier of the preset for which you want to get detailed information. rpId :: Lens' ReadPreset Text -rpId = lens _rpId (\ s a -> s{_rpId = a}); +rpId = lens _rpId (\ s a -> s{_rpId = a}) instance AWSRequest ReadPreset where type Rs ReadPreset = ReadPresetResponse @@ -115,15 +115,15 @@ readPresetResponse -> ReadPresetResponse readPresetResponse pResponseStatus_ = ReadPresetResponse' - {_rprsPreset = Nothing, _rprsResponseStatus = pResponseStatus_} + {_rprsPreset = Nothing, _rprsResponseStatus = pResponseStatus_} -- | A section of the response body that provides information about the preset. rprsPreset :: Lens' ReadPresetResponse (Maybe Preset) -rprsPreset = lens _rprsPreset (\ s a -> s{_rprsPreset = a}); +rprsPreset = lens _rprsPreset (\ s a -> s{_rprsPreset = a}) -- | -- | The response status code. rprsResponseStatus :: Lens' ReadPresetResponse Int -rprsResponseStatus = lens _rprsResponseStatus (\ s a -> s{_rprsResponseStatus = a}); +rprsResponseStatus = lens _rprsResponseStatus (\ s a -> s{_rprsResponseStatus = a}) instance NFData ReadPresetResponse where diff --git a/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/Types.hs b/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/Types.hs index 614a6905e3c..c51458a0524 100644 --- a/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/Types.hs +++ b/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/Types.hs @@ -352,24 +352,24 @@ import Network.AWS.Sign.V4 elasticTranscoder :: Service elasticTranscoder = Service - { _svcAbbrev = "ElasticTranscoder" - , _svcSigner = v4 - , _svcPrefix = "elastictranscoder" - , _svcVersion = "2012-09-25" - , _svcEndpoint = defaultEndpoint elasticTranscoder - , _svcTimeout = Just 70 - , _svcCheck = statusSuccess - , _svcError = parseJSONError "ElasticTranscoder" - , _svcRetry = retry - } + { _svcAbbrev = "ElasticTranscoder" + , _svcSigner = v4 + , _svcPrefix = "elastictranscoder" + , _svcVersion = "2012-09-25" + , _svcEndpoint = defaultEndpoint elasticTranscoder + , _svcTimeout = Just 70 + , _svcCheck = statusSuccess + , _svcError = parseJSONError "ElasticTranscoder" + , _svcRetry = retry + } where retry = Exponential - { _retryBase = 5.0e-2 - , _retryGrowth = 2 - , _retryAttempts = 5 - , _retryCheck = check - } + { _retryBase = 5.0e-2 + , _retryGrowth = 2 + , _retryAttempts = 5 + , _retryCheck = check + } check e | has (hasCode "ThrottledException" . hasStatus 400) e = Just "throttled_exception" @@ -378,6 +378,8 @@ elasticTranscoder = Just "throttling_exception" | has (hasCode "Throttling" . hasStatus 400) e = Just "throttling" | has (hasStatus 504) e = Just "gateway_timeout" + | has (hasCode "RequestThrottledException" . hasStatus 400) e = + Just "request_throttled_exception" | has (hasStatus 502) e = Just "bad_gateway" | has (hasStatus 503) e = Just "service_unavailable" | has (hasStatus 500) e = Just "general_server_error" diff --git a/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/Types/Product.hs b/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/Types/Product.hs index 55b79c644af..08ec10cc689 100644 --- a/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/Types/Product.hs +++ b/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/Types/Product.hs @@ -62,43 +62,43 @@ artwork :: Artwork artwork = Artwork' - { _aSizingPolicy = Nothing - , _aAlbumArtFormat = Nothing - , _aMaxHeight = Nothing - , _aInputKey = Nothing - , _aPaddingPolicy = Nothing - , _aEncryption = Nothing - , _aMaxWidth = Nothing - } + { _aSizingPolicy = Nothing + , _aAlbumArtFormat = Nothing + , _aMaxHeight = Nothing + , _aInputKey = Nothing + , _aPaddingPolicy = Nothing + , _aEncryption = Nothing + , _aMaxWidth = Nothing + } -- | Specify one of the following values to control scaling of the output album art: * @Fit:@ Elastic Transcoder scales the output art so it matches the value that you specified in either @MaxWidth@ or @MaxHeight@ without exceeding the other value. * @Fill:@ Elastic Transcoder scales the output art so it matches the value that you specified in either @MaxWidth@ or @MaxHeight@ and matches or exceeds the other value. Elastic Transcoder centers the output art and then crops it in the dimension (if any) that exceeds the maximum value. * @Stretch:@ Elastic Transcoder stretches the output art to match the values that you specified for @MaxWidth@ and @MaxHeight@ . If the relative proportions of the input art and the output art are different, the output art will be distorted. * @Keep:@ Elastic Transcoder does not scale the output art. If either dimension of the input art exceeds the values that you specified for @MaxWidth@ and @MaxHeight@ , Elastic Transcoder crops the output art. * @ShrinkToFit:@ Elastic Transcoder scales the output art down so that its dimensions match the values that you specified for at least one of @MaxWidth@ and @MaxHeight@ without exceeding either value. If you specify this option, Elastic Transcoder does not scale the art up. * @ShrinkToFill@ Elastic Transcoder scales the output art down so that its dimensions match the values that you specified for at least one of @MaxWidth@ and @MaxHeight@ without dropping below either value. If you specify this option, Elastic Transcoder does not scale the art up. aSizingPolicy :: Lens' Artwork (Maybe Text) -aSizingPolicy = lens _aSizingPolicy (\ s a -> s{_aSizingPolicy = a}); +aSizingPolicy = lens _aSizingPolicy (\ s a -> s{_aSizingPolicy = a}) -- | The format of album art, if any. Valid formats are @.jpg@ and @.png@ . aAlbumArtFormat :: Lens' Artwork (Maybe Text) -aAlbumArtFormat = lens _aAlbumArtFormat (\ s a -> s{_aAlbumArtFormat = a}); +aAlbumArtFormat = lens _aAlbumArtFormat (\ s a -> s{_aAlbumArtFormat = a}) -- | The maximum height of the output album art in pixels. If you specify @auto@ , Elastic Transcoder uses 600 as the default value. If you specify a numeric value, enter an even integer between 32 and 3072, inclusive. aMaxHeight :: Lens' Artwork (Maybe Text) -aMaxHeight = lens _aMaxHeight (\ s a -> s{_aMaxHeight = a}); +aMaxHeight = lens _aMaxHeight (\ s a -> s{_aMaxHeight = a}) -- | The name of the file to be used as album art. To determine which Amazon S3 bucket contains the specified file, Elastic Transcoder checks the pipeline specified by @PipelineId@ ; the @InputBucket@ object in that pipeline identifies the bucket. If the file name includes a prefix, for example, @cooking/pie.jpg@ , include the prefix in the key. If the file isn't in the specified bucket, Elastic Transcoder returns an error. aInputKey :: Lens' Artwork (Maybe Text) -aInputKey = lens _aInputKey (\ s a -> s{_aInputKey = a}); +aInputKey = lens _aInputKey (\ s a -> s{_aInputKey = a}) -- | When you set @PaddingPolicy@ to @Pad@ , Elastic Transcoder may add white bars to the top and bottom and/or left and right sides of the output album art to make the total size of the output art match the values that you specified for @MaxWidth@ and @MaxHeight@ . aPaddingPolicy :: Lens' Artwork (Maybe Text) -aPaddingPolicy = lens _aPaddingPolicy (\ s a -> s{_aPaddingPolicy = a}); +aPaddingPolicy = lens _aPaddingPolicy (\ s a -> s{_aPaddingPolicy = a}) -- | The encryption settings, if any, that you want Elastic Transcoder to apply to your artwork. aEncryption :: Lens' Artwork (Maybe Encryption) -aEncryption = lens _aEncryption (\ s a -> s{_aEncryption = a}); +aEncryption = lens _aEncryption (\ s a -> s{_aEncryption = a}) -- | The maximum width of the output album art in pixels. If you specify @auto@ , Elastic Transcoder uses 600 as the default value. If you specify a numeric value, enter an even integer between 32 and 4096, inclusive. aMaxWidth :: Lens' Artwork (Maybe Text) -aMaxWidth = lens _aMaxWidth (\ s a -> s{_aMaxWidth = a}); +aMaxWidth = lens _aMaxWidth (\ s a -> s{_aMaxWidth = a}) instance FromJSON Artwork where parseJSON @@ -156,28 +156,28 @@ audioCodecOptions :: AudioCodecOptions audioCodecOptions = AudioCodecOptions' - { _acoSigned = Nothing - , _acoBitDepth = Nothing - , _acoProfile = Nothing - , _acoBitOrder = Nothing - } + { _acoSigned = Nothing + , _acoBitDepth = Nothing + , _acoProfile = Nothing + , _acoBitOrder = Nothing + } -- | You can only choose whether an audio sample is signed when you specify @pcm@ for the value of Audio:Codec. Whether audio samples are represented with negative and positive numbers (signed) or only positive numbers (unsigned). The supported value is @Signed@ . acoSigned :: Lens' AudioCodecOptions (Maybe Text) -acoSigned = lens _acoSigned (\ s a -> s{_acoSigned = a}); +acoSigned = lens _acoSigned (\ s a -> s{_acoSigned = a}) -- | You can only choose an audio bit depth when you specify @flac@ or @pcm@ for the value of Audio:Codec. The bit depth of a sample is how many bits of information are included in the audio samples. The higher the bit depth, the better the audio, but the larger the file. Valid values are @16@ and @24@ . The most common bit depth is @24@ . acoBitDepth :: Lens' AudioCodecOptions (Maybe Text) -acoBitDepth = lens _acoBitDepth (\ s a -> s{_acoBitDepth = a}); +acoBitDepth = lens _acoBitDepth (\ s a -> s{_acoBitDepth = a}) -- | You can only choose an audio profile when you specify AAC for the value of Audio:Codec. Specify the AAC profile for the output file. Elastic Transcoder supports the following profiles: * @auto@ : If you specify @auto@ , Elastic Transcoder selects the profile based on the bit rate selected for the output file. * @AAC-LC@ : The most common AAC profile. Use for bit rates larger than 64 kbps. * @HE-AAC@ : Not supported on some older players and devices. Use for bit rates between 40 and 80 kbps. * @HE-AACv2@ : Not supported on some players and devices. Use for bit rates less than 48 kbps. All outputs in a @Smooth@ playlist must have the same value for @Profile@ . acoProfile :: Lens' AudioCodecOptions (Maybe Text) -acoProfile = lens _acoProfile (\ s a -> s{_acoProfile = a}); +acoProfile = lens _acoProfile (\ s a -> s{_acoProfile = a}) -- | You can only choose an audio bit order when you specify @pcm@ for the value of Audio:Codec. The order the bits of a PCM sample are stored in. The supported value is @LittleEndian@ . acoBitOrder :: Lens' AudioCodecOptions (Maybe Text) -acoBitOrder = lens _acoBitOrder (\ s a -> s{_acoBitOrder = a}); +acoBitOrder = lens _acoBitOrder (\ s a -> s{_acoBitOrder = a}) instance FromJSON AudioCodecOptions where parseJSON @@ -235,38 +235,38 @@ audioParameters :: AudioParameters audioParameters = AudioParameters' - { _apChannels = Nothing - , _apCodec = Nothing - , _apAudioPackingMode = Nothing - , _apSampleRate = Nothing - , _apBitRate = Nothing - , _apCodecOptions = Nothing - } + { _apChannels = Nothing + , _apCodec = Nothing + , _apAudioPackingMode = Nothing + , _apSampleRate = Nothing + , _apBitRate = Nothing + , _apCodecOptions = Nothing + } -- | The number of audio channels in the output file. The following values are valid: @auto@ , @0@ , @1@ , @2@ One channel carries the information played by a single speaker. For example, a stereo track with two channels sends one channel to the left speaker, and the other channel to the right speaker. The output channels are organized into tracks. If you want Elastic Transcoder to automatically detect the number of audio channels in the input file and use that value for the output file, select @auto@ . The output of a specific channel value and inputs are as follows: * @auto@ __channel specified, with any input:__ Pass through up to eight input channels. * @0@ __channels specified, with any input:__ Audio omitted from the output. * @1@ __channel specified, with at least one input channel:__ Mono sound. * @2@ __channels specified, with any input:__ Two identical mono channels or stereo. For more information about tracks, see @Audio:AudioPackingMode.@ For more information about how Elastic Transcoder organizes channels and tracks, see @Audio:AudioPackingMode@ . apChannels :: Lens' AudioParameters (Maybe Text) -apChannels = lens _apChannels (\ s a -> s{_apChannels = a}); +apChannels = lens _apChannels (\ s a -> s{_apChannels = a}) -- | The audio codec for the output file. Valid values include @aac@ , @flac@ , @mp2@ , @mp3@ , @pcm@ , and @vorbis@ . apCodec :: Lens' AudioParameters (Maybe Text) -apCodec = lens _apCodec (\ s a -> s{_apCodec = a}); +apCodec = lens _apCodec (\ s a -> s{_apCodec = a}) -- | The method of organizing audio channels and tracks. Use @Audio:Channels@ to specify the number of channels in your output, and @Audio:AudioPackingMode@ to specify the number of tracks and their relation to the channels. If you do not specify an @Audio:AudioPackingMode@ , Elastic Transcoder uses @SingleTrack@ . The following values are valid: @SingleTrack@ , @OneChannelPerTrack@ , and @OneChannelPerTrackWithMosTo8Tracks@ When you specify @SingleTrack@ , Elastic Transcoder creates a single track for your output. The track can have up to eight channels. Use @SingleTrack@ for all non-@mxf@ containers. The outputs of @SingleTrack@ for a specific channel value and inputs are as follows: * @0@ __channels with any input:__ Audio omitted from the output * @1, 2, or auto @ __channels with no audio input:__ Audio omitted from the output * @1 @ __channel with any input with audio:__ One track with one channel, downmixed if necessary * @2 @ __channels with one track with one channel:__ One track with two identical channels * @2 or auto @ __channels with two tracks with one channel each:__ One track with two channels * @2 or auto @ __channels with one track with two channels:__ One track with two channels * @2 @ __channels with one track with multiple channels:__ One track with two channels * @auto @ __channels with one track with one channel:__ One track with one channel * @auto @ __channels with one track with multiple channels:__ One track with multiple channels When you specify @OneChannelPerTrack@ , Elastic Transcoder creates a new track for every channel in your output. Your output can have up to eight single-channel tracks. The outputs of @OneChannelPerTrack@ for a specific channel value and inputs are as follows: * @0 @ __channels with any input:__ Audio omitted from the output * @1, 2, or auto @ __channels with no audio input:__ Audio omitted from the output * @1 @ __channel with any input with audio:__ One track with one channel, downmixed if necessary * @2 @ __channels with one track with one channel:__ Two tracks with one identical channel each * @2 or auto @ __channels with two tracks with one channel each:__ Two tracks with one channel each * @2 or auto @ __channels with one track with two channels:__ Two tracks with one channel each * @2 @ __channels with one track with multiple channels:__ Two tracks with one channel each * @auto @ __channels with one track with one channel:__ One track with one channel * @auto @ __channels with one track with multiple channels:__ Up to eight tracks with one channel each When you specify @OneChannelPerTrackWithMosTo8Tracks@ , Elastic Transcoder creates eight single-channel tracks for your output. All tracks that do not contain audio data from an input channel are MOS, or Mit Out Sound, tracks. The outputs of @OneChannelPerTrackWithMosTo8Tracks@ for a specific channel value and inputs are as follows: * @0 @ __channels with any input:__ Audio omitted from the output * @1, 2, or auto @ __channels with no audio input:__ Audio omitted from the output * @1 @ __channel with any input with audio:__ One track with one channel, downmixed if necessary, plus six MOS tracks * @2 @ __channels with one track with one channel:__ Two tracks with one identical channel each, plus six MOS tracks * @2 or auto @ __channels with two tracks with one channel each:__ Two tracks with one channel each, plus six MOS tracks * @2 or auto @ __channels with one track with two channels:__ Two tracks with one channel each, plus six MOS tracks * @2 @ __channels with one track with multiple channels:__ Two tracks with one channel each, plus six MOS tracks * @auto @ __channels with one track with one channel:__ One track with one channel, plus seven MOS tracks * @auto @ __channels with one track with multiple channels:__ Up to eight tracks with one channel each, plus MOS tracks until there are eight tracks in all apAudioPackingMode :: Lens' AudioParameters (Maybe Text) -apAudioPackingMode = lens _apAudioPackingMode (\ s a -> s{_apAudioPackingMode = a}); +apAudioPackingMode = lens _apAudioPackingMode (\ s a -> s{_apAudioPackingMode = a}) -- | The sample rate of the audio stream in the output file, in Hertz. Valid values include: @auto@ , @22050@ , @32000@ , @44100@ , @48000@ , @96000@ If you specify @auto@ , Elastic Transcoder automatically detects the sample rate. apSampleRate :: Lens' AudioParameters (Maybe Text) -apSampleRate = lens _apSampleRate (\ s a -> s{_apSampleRate = a}); +apSampleRate = lens _apSampleRate (\ s a -> s{_apSampleRate = a}) -- | The bit rate of the audio stream in the output file, in kilobits/second. Enter an integer between 64 and 320, inclusive. apBitRate :: Lens' AudioParameters (Maybe Text) -apBitRate = lens _apBitRate (\ s a -> s{_apBitRate = a}); +apBitRate = lens _apBitRate (\ s a -> s{_apBitRate = a}) -- | If you specified @AAC@ for @Audio:Codec@ , this is the @AAC@ compression profile to use. Valid values include: @auto@ , @AAC-LC@ , @HE-AAC@ , @HE-AACv2@ If you specify @auto@ , Elastic Transcoder chooses a profile based on the bit rate of the output file. apCodecOptions :: Lens' AudioParameters (Maybe AudioCodecOptions) -apCodecOptions = lens _apCodecOptions (\ s a -> s{_apCodecOptions = a}); +apCodecOptions = lens _apCodecOptions (\ s a -> s{_apCodecOptions = a}) instance FromJSON AudioParameters where parseJSON @@ -319,20 +319,20 @@ captionFormat :: CaptionFormat captionFormat = CaptionFormat' - {_cfPattern = Nothing, _cfFormat = Nothing, _cfEncryption = Nothing} + {_cfPattern = Nothing, _cfFormat = Nothing, _cfEncryption = Nothing} -- | The prefix for caption filenames, in the form /description/ -@{language}@ , where: * /description/ is a description of the video. * @{language}@ is a literal value that Elastic Transcoder replaces with the two- or three-letter code for the language of the caption in the output file names. If you don't include @{language}@ in the file name pattern, Elastic Transcoder automatically appends "@{language}@ " to the value that you specify for the description. In addition, Elastic Transcoder automatically appends the count to the end of the segment files. For example, suppose you're transcoding into srt format. When you enter "Sydney-{language}-sunrise", and the language of the captions is English (en), the name of the first caption file is be Sydney-en-sunrise00000.srt. cfPattern :: Lens' CaptionFormat (Maybe Text) -cfPattern = lens _cfPattern (\ s a -> s{_cfPattern = a}); +cfPattern = lens _cfPattern (\ s a -> s{_cfPattern = a}) -- | The format you specify determines whether Elastic Transcoder generates an embedded or sidecar caption for this output. * __Valid Embedded Caption Formats:__ * __for FLAC__ : None * __For MP3__ : None * __For MP4__ : mov-text * __For MPEG-TS__ : None * __For ogg__ : None * __For webm__ : None * __Valid Sidecar Caption Formats:__ Elastic Transcoder supports dfxp (first div element only), scc, srt, and webvtt. If you want ttml or smpte-tt compatible captions, specify dfxp as your output format. * __For FMP4__ : dfxp * __Non-FMP4 outputs__ : All sidecar types @fmp4@ captions have an extension of @.ismt@ cfFormat :: Lens' CaptionFormat (Maybe Text) -cfFormat = lens _cfFormat (\ s a -> s{_cfFormat = a}); +cfFormat = lens _cfFormat (\ s a -> s{_cfFormat = a}) -- | The encryption settings, if any, that you want Elastic Transcoder to apply to your caption formats. cfEncryption :: Lens' CaptionFormat (Maybe Encryption) -cfEncryption = lens _cfEncryption (\ s a -> s{_cfEncryption = a}); +cfEncryption = lens _cfEncryption (\ s a -> s{_cfEncryption = a}) instance FromJSON CaptionFormat where parseJSON @@ -385,33 +385,33 @@ captionSource :: CaptionSource captionSource = CaptionSource' - { _csTimeOffset = Nothing - , _csEncryption = Nothing - , _csKey = Nothing - , _csLanguage = Nothing - , _csLabel = Nothing - } + { _csTimeOffset = Nothing + , _csEncryption = Nothing + , _csKey = Nothing + , _csLanguage = Nothing + , _csLabel = Nothing + } -- | For clip generation or captions that do not start at the same time as the associated video file, the @TimeOffset@ tells Elastic Transcoder how much of the video to encode before including captions. Specify the TimeOffset in the form [+-]SS.sss or [+-]HH:mm:SS.ss. csTimeOffset :: Lens' CaptionSource (Maybe Text) -csTimeOffset = lens _csTimeOffset (\ s a -> s{_csTimeOffset = a}); +csTimeOffset = lens _csTimeOffset (\ s a -> s{_csTimeOffset = a}) -- | The encryption settings, if any, that Elastic Transcoder needs to decyrpt your caption sources, or that you want Elastic Transcoder to apply to your caption sources. csEncryption :: Lens' CaptionSource (Maybe Encryption) -csEncryption = lens _csEncryption (\ s a -> s{_csEncryption = a}); +csEncryption = lens _csEncryption (\ s a -> s{_csEncryption = a}) -- | The name of the sidecar caption file that you want Elastic Transcoder to include in the output file. csKey :: Lens' CaptionSource (Maybe Text) -csKey = lens _csKey (\ s a -> s{_csKey = a}); +csKey = lens _csKey (\ s a -> s{_csKey = a}) -- | A string that specifies the language of the caption. If you specified multiple inputs with captions, the caption language must match in order to be included in the output. Specify this as one of: * 2-character ISO 639-1 code * 3-character ISO 639-2 code For more information on ISO language codes and language names, see the List of ISO 639-1 codes. csLanguage :: Lens' CaptionSource (Maybe Text) -csLanguage = lens _csLanguage (\ s a -> s{_csLanguage = a}); +csLanguage = lens _csLanguage (\ s a -> s{_csLanguage = a}) -- | The label of the caption shown in the player when choosing a language. We recommend that you put the caption language name here, in the language of the captions. csLabel :: Lens' CaptionSource (Maybe Text) -csLabel = lens _csLabel (\ s a -> s{_csLabel = a}); +csLabel = lens _csLabel (\ s a -> s{_csLabel = a}) instance FromJSON CaptionSource where parseJSON @@ -462,23 +462,23 @@ captions :: Captions captions = Captions' - { _cMergePolicy = Nothing - , _cCaptionSources = Nothing - , _cCaptionFormats = Nothing - } + { _cMergePolicy = Nothing + , _cCaptionSources = Nothing + , _cCaptionFormats = Nothing + } -- | A policy that determines how Elastic Transcoder handles the existence of multiple captions. * __MergeOverride:__ Elastic Transcoder transcodes both embedded and sidecar captions into outputs. If captions for a language are embedded in the input file and also appear in a sidecar file, Elastic Transcoder uses the sidecar captions and ignores the embedded captions for that language. * __MergeRetain:__ Elastic Transcoder transcodes both embedded and sidecar captions into outputs. If captions for a language are embedded in the input file and also appear in a sidecar file, Elastic Transcoder uses the embedded captions and ignores the sidecar captions for that language. If @CaptionSources@ is empty, Elastic Transcoder omits all sidecar captions from the output files. * __Override:__ Elastic Transcoder transcodes only the sidecar captions that you specify in @CaptionSources@ . @MergePolicy@ cannot be null. cMergePolicy :: Lens' Captions (Maybe Text) -cMergePolicy = lens _cMergePolicy (\ s a -> s{_cMergePolicy = a}); +cMergePolicy = lens _cMergePolicy (\ s a -> s{_cMergePolicy = a}) -- | Source files for the input sidecar captions used during the transcoding process. To omit all sidecar captions, leave @CaptionSources@ blank. cCaptionSources :: Lens' Captions [CaptionSource] -cCaptionSources = lens _cCaptionSources (\ s a -> s{_cCaptionSources = a}) . _Default . _Coerce; +cCaptionSources = lens _cCaptionSources (\ s a -> s{_cCaptionSources = a}) . _Default . _Coerce -- | The array of file formats for the output captions. If you leave this value blank, Elastic Transcoder returns an error. cCaptionFormats :: Lens' Captions [CaptionFormat] -cCaptionFormats = lens _cCaptionFormats (\ s a -> s{_cCaptionFormats = a}) . _Default . _Coerce; +cCaptionFormats = lens _cCaptionFormats (\ s a -> s{_cCaptionFormats = a}) . _Default . _Coerce instance FromJSON Captions where parseJSON @@ -523,7 +523,7 @@ clip = Clip' {_cTimeSpan = Nothing} -- | Settings that determine when a clip begins and how long it lasts. cTimeSpan :: Lens' Clip (Maybe TimeSpan) -cTimeSpan = lens _cTimeSpan (\ s a -> s{_cTimeSpan = a}); +cTimeSpan = lens _cTimeSpan (\ s a -> s{_cTimeSpan = a}) instance FromJSON Clip where parseJSON @@ -587,63 +587,63 @@ createJobOutput :: CreateJobOutput createJobOutput = CreateJobOutput' - { _cjoThumbnailPattern = Nothing - , _cjoCaptions = Nothing - , _cjoPresetId = Nothing - , _cjoComposition = Nothing - , _cjoAlbumArt = Nothing - , _cjoWatermarks = Nothing - , _cjoEncryption = Nothing - , _cjoKey = Nothing - , _cjoSegmentDuration = Nothing - , _cjoThumbnailEncryption = Nothing - , _cjoRotate = Nothing - } + { _cjoThumbnailPattern = Nothing + , _cjoCaptions = Nothing + , _cjoPresetId = Nothing + , _cjoComposition = Nothing + , _cjoAlbumArt = Nothing + , _cjoWatermarks = Nothing + , _cjoEncryption = Nothing + , _cjoKey = Nothing + , _cjoSegmentDuration = Nothing + , _cjoThumbnailEncryption = Nothing + , _cjoRotate = Nothing + } -- | Whether you want Elastic Transcoder to create thumbnails for your videos and, if so, how you want Elastic Transcoder to name the files. If you don't want Elastic Transcoder to create thumbnails, specify "". If you do want Elastic Transcoder to create thumbnails, specify the information that you want to include in the file name for each thumbnail. You can specify the following values in any sequence: * __@{count}@ (Required)__ : If you want to create thumbnails, you must include @{count}@ in the @ThumbnailPattern@ object. Wherever you specify @{count}@ , Elastic Transcoder adds a five-digit sequence number (beginning with __00001__ ) to thumbnail file names. The number indicates where a given thumbnail appears in the sequence of thumbnails for a transcoded file. /Important:/ If you specify a literal value and/or @{resolution}@ but you omit @{count}@ , Elastic Transcoder returns a validation error and does not create the job. * __Literal values (Optional)__ : You can specify literal values anywhere in the @ThumbnailPattern@ object. For example, you can include them as a file name prefix or as a delimiter between @{resolution}@ and @{count}@ . * __@{resolution}@ (Optional)__ : If you want Elastic Transcoder to include the resolution in the file name, include @{resolution}@ in the @ThumbnailPattern@ object. When creating thumbnails, Elastic Transcoder automatically saves the files in the format (.jpg or .png) that appears in the preset that you specified in the @PresetID@ value of @CreateJobOutput@ . Elastic Transcoder also appends the applicable file name extension. cjoThumbnailPattern :: Lens' CreateJobOutput (Maybe Text) -cjoThumbnailPattern = lens _cjoThumbnailPattern (\ s a -> s{_cjoThumbnailPattern = a}); +cjoThumbnailPattern = lens _cjoThumbnailPattern (\ s a -> s{_cjoThumbnailPattern = a}) -- | You can configure Elastic Transcoder to transcode captions, or subtitles, from one format to another. All captions must be in UTF-8. Elastic Transcoder supports two types of captions: * __Embedded:__ Embedded captions are included in the same file as the audio and video. Elastic Transcoder supports only one embedded caption per language, to a maximum of 300 embedded captions per file. Valid input values include: @CEA-608 (EIA-608@ , first non-empty channel only), @CEA-708 (EIA-708@ , first non-empty channel only), and @mov-text@ Valid outputs include: @mov-text@ Elastic Transcoder supports a maximum of one embedded format per output. * __Sidecar:__ Sidecar captions are kept in a separate metadata file from the audio and video data. Sidecar captions require a player that is capable of understanding the relationship between the video file and the sidecar file. Elastic Transcoder supports only one sidecar caption per language, to a maximum of 20 sidecar captions per file. Valid input values include: @dfxp@ (first div element only), @ebu-tt@ , @scc@ , @smpt@ , @srt@ , @ttml@ (first div element only), and @webvtt@ Valid outputs include: @dfxp@ (first div element only), @scc@ , @srt@ , and @webvtt@ . If you want ttml or smpte-tt compatible captions, specify dfxp as your output format. Elastic Transcoder does not support OCR (Optical Character Recognition), does not accept pictures as a valid input for captions, and is not available for audio-only transcoding. Elastic Transcoder does not preserve text formatting (for example, italics) during the transcoding process. To remove captions or leave the captions empty, set @Captions@ to null. To pass through existing captions unchanged, set the @MergePolicy@ to @MergeRetain@ , and pass in a null @CaptionSources@ array. For more information on embedded files, see the Subtitles Wikipedia page. For more information on sidecar files, see the Extensible Metadata Platform and Sidecar file Wikipedia pages. cjoCaptions :: Lens' CreateJobOutput (Maybe Captions) -cjoCaptions = lens _cjoCaptions (\ s a -> s{_cjoCaptions = a}); +cjoCaptions = lens _cjoCaptions (\ s a -> s{_cjoCaptions = a}) -- | The @Id@ of the preset to use for this job. The preset determines the audio, video, and thumbnail settings that Elastic Transcoder uses for transcoding. cjoPresetId :: Lens' CreateJobOutput (Maybe Text) -cjoPresetId = lens _cjoPresetId (\ s a -> s{_cjoPresetId = a}); +cjoPresetId = lens _cjoPresetId (\ s a -> s{_cjoPresetId = a}) -- | You can create an output file that contains an excerpt from the input file. This excerpt, called a clip, can come from the beginning, middle, or end of the file. The Composition object contains settings for the clips that make up an output file. For the current release, you can only specify settings for a single clip per output file. The Composition object cannot be null. cjoComposition :: Lens' CreateJobOutput [Clip] -cjoComposition = lens _cjoComposition (\ s a -> s{_cjoComposition = a}) . _Default . _Coerce; +cjoComposition = lens _cjoComposition (\ s a -> s{_cjoComposition = a}) . _Default . _Coerce -- | Information about the album art that you want Elastic Transcoder to add to the file during transcoding. You can specify up to twenty album artworks for each output. Settings for each artwork must be defined in the job for the current output. cjoAlbumArt :: Lens' CreateJobOutput (Maybe JobAlbumArt) -cjoAlbumArt = lens _cjoAlbumArt (\ s a -> s{_cjoAlbumArt = a}); +cjoAlbumArt = lens _cjoAlbumArt (\ s a -> s{_cjoAlbumArt = a}) -- | Information about the watermarks that you want Elastic Transcoder to add to the video during transcoding. You can specify up to four watermarks for each output. Settings for each watermark must be defined in the preset for the current output. cjoWatermarks :: Lens' CreateJobOutput [JobWatermark] -cjoWatermarks = lens _cjoWatermarks (\ s a -> s{_cjoWatermarks = a}) . _Default . _Coerce; +cjoWatermarks = lens _cjoWatermarks (\ s a -> s{_cjoWatermarks = a}) . _Default . _Coerce -- | You can specify encryption settings for any output files that you want to use for a transcoding job. This includes the output file and any watermarks, thumbnails, album art, or captions that you want to use. You must specify encryption settings for each file individually. cjoEncryption :: Lens' CreateJobOutput (Maybe Encryption) -cjoEncryption = lens _cjoEncryption (\ s a -> s{_cjoEncryption = a}); +cjoEncryption = lens _cjoEncryption (\ s a -> s{_cjoEncryption = a}) -- | The name to assign to the transcoded file. Elastic Transcoder saves the file in the Amazon S3 bucket specified by the @OutputBucket@ object in the pipeline that is specified by the pipeline ID. If a file with the specified name already exists in the output bucket, the job fails. cjoKey :: Lens' CreateJobOutput (Maybe Text) -cjoKey = lens _cjoKey (\ s a -> s{_cjoKey = a}); +cjoKey = lens _cjoKey (\ s a -> s{_cjoKey = a}) -- | /Important:/ (Outputs in Fragmented MP4 or MPEG-TS format only. If you specify a preset in @PresetId@ for which the value of @Container@ is @fmp4@ (Fragmented MP4) or @ts@ (MPEG-TS), @SegmentDuration@ is the target maximum duration of each segment in seconds. For @HLSv3@ format playlists, each media segment is stored in a separate @.ts@ file. For @HLSv4@ and @Smooth@ playlists, all media segments for an output are stored in a single file. Each segment is approximately the length of the @SegmentDuration@ , though individual segments might be shorter or longer. The range of valid values is 1 to 60 seconds. If the duration of the video is not evenly divisible by @SegmentDuration@ , the duration of the last segment is the remainder of total length/SegmentDuration. Elastic Transcoder creates an output-specific playlist for each output @HLS@ output that you specify in OutputKeys. To add an output to the master playlist for this job, include it in the @OutputKeys@ of the associated playlist. cjoSegmentDuration :: Lens' CreateJobOutput (Maybe Text) -cjoSegmentDuration = lens _cjoSegmentDuration (\ s a -> s{_cjoSegmentDuration = a}); +cjoSegmentDuration = lens _cjoSegmentDuration (\ s a -> s{_cjoSegmentDuration = a}) -- | The encryption settings, if any, that you want Elastic Transcoder to apply to your thumbnail. cjoThumbnailEncryption :: Lens' CreateJobOutput (Maybe Encryption) -cjoThumbnailEncryption = lens _cjoThumbnailEncryption (\ s a -> s{_cjoThumbnailEncryption = a}); +cjoThumbnailEncryption = lens _cjoThumbnailEncryption (\ s a -> s{_cjoThumbnailEncryption = a}) -- | The number of degrees clockwise by which you want Elastic Transcoder to rotate the output relative to the input. Enter one of the following values: @auto@ , @0@ , @90@ , @180@ , @270@ . The value @auto@ generally works only if the file that you're transcoding contains rotation metadata. cjoRotate :: Lens' CreateJobOutput (Maybe Text) -cjoRotate = lens _cjoRotate (\ s a -> s{_cjoRotate = a}); +cjoRotate = lens _cjoRotate (\ s a -> s{_cjoRotate = a}) instance Hashable CreateJobOutput where @@ -697,33 +697,33 @@ createJobPlaylist :: CreateJobPlaylist createJobPlaylist = CreateJobPlaylist' - { _cjpPlayReadyDrm = Nothing - , _cjpFormat = Nothing - , _cjpOutputKeys = Nothing - , _cjpName = Nothing - , _cjpHlsContentProtection = Nothing - } + { _cjpPlayReadyDrm = Nothing + , _cjpFormat = Nothing + , _cjpOutputKeys = Nothing + , _cjpName = Nothing + , _cjpHlsContentProtection = Nothing + } -- | The DRM settings, if any, that you want Elastic Transcoder to apply to the output files associated with this playlist. cjpPlayReadyDrm :: Lens' CreateJobPlaylist (Maybe PlayReadyDrm) -cjpPlayReadyDrm = lens _cjpPlayReadyDrm (\ s a -> s{_cjpPlayReadyDrm = a}); +cjpPlayReadyDrm = lens _cjpPlayReadyDrm (\ s a -> s{_cjpPlayReadyDrm = a}) -- | The format of the output playlist. Valid formats include @HLSv3@ , @HLSv4@ , and @Smooth@ . cjpFormat :: Lens' CreateJobPlaylist (Maybe Text) -cjpFormat = lens _cjpFormat (\ s a -> s{_cjpFormat = a}); +cjpFormat = lens _cjpFormat (\ s a -> s{_cjpFormat = a}) -- | For each output in this job that you want to include in a master playlist, the value of the @Outputs:Key@ object. * If your output is not @HLS@ or does not have a segment duration set, the name of the output file is a concatenation of @OutputKeyPrefix@ and @Outputs:Key@ : OutputKeyPrefix@Outputs:Key@ * If your output is @HLSv3@ and has a segment duration set, or is not included in a playlist, Elastic Transcoder creates an output playlist file with a file extension of @.m3u8@ , and a series of @.ts@ files that include a five-digit sequential counter beginning with 00000: OutputKeyPrefix@Outputs:Key@ .m3u8 OutputKeyPrefix@Outputs:Key@ 00000.ts * If your output is @HLSv4@ , has a segment duration set, and is included in an @HLSv4@ playlist, Elastic Transcoder creates an output playlist file with a file extension of @_v4.m3u8@ . If the output is video, Elastic Transcoder also creates an output file with an extension of @_iframe.m3u8@ : OutputKeyPrefix@Outputs:Key@ _v4.m3u8 OutputKeyPrefix@Outputs:Key@ _iframe.m3u8 OutputKeyPrefix@Outputs:Key@ .ts Elastic Transcoder automatically appends the relevant file extension to the file name. If you include a file extension in Output Key, the file name will have two extensions. If you include more than one output in a playlist, any segment duration settings, clip settings, or caption settings must be the same for all outputs in the playlist. For @Smooth@ playlists, the @Audio:Profile@ , @Video:Profile@ , and @Video:FrameRate@ to @Video:KeyframesMaxDist@ ratio must be the same for all outputs. cjpOutputKeys :: Lens' CreateJobPlaylist [Text] -cjpOutputKeys = lens _cjpOutputKeys (\ s a -> s{_cjpOutputKeys = a}) . _Default . _Coerce; +cjpOutputKeys = lens _cjpOutputKeys (\ s a -> s{_cjpOutputKeys = a}) . _Default . _Coerce -- | The name that you want Elastic Transcoder to assign to the master playlist, for example, nyc-vacation.m3u8. If the name includes a @/@ character, the section of the name before the last @/@ must be identical for all @Name@ objects. If you create more than one master playlist, the values of all @Name@ objects must be unique. cjpName :: Lens' CreateJobPlaylist (Maybe Text) -cjpName = lens _cjpName (\ s a -> s{_cjpName = a}); +cjpName = lens _cjpName (\ s a -> s{_cjpName = a}) -- | The HLS content protection settings, if any, that you want Elastic Transcoder to apply to the output files associated with this playlist. cjpHlsContentProtection :: Lens' CreateJobPlaylist (Maybe HlsContentProtection) -cjpHlsContentProtection = lens _cjpHlsContentProtection (\ s a -> s{_cjpHlsContentProtection = a}); +cjpHlsContentProtection = lens _cjpHlsContentProtection (\ s a -> s{_cjpHlsContentProtection = a}) instance Hashable CreateJobPlaylist where @@ -771,33 +771,33 @@ detectedProperties :: DetectedProperties detectedProperties = DetectedProperties' - { _dpHeight = Nothing - , _dpFrameRate = Nothing - , _dpFileSize = Nothing - , _dpWidth = Nothing - , _dpDurationMillis = Nothing - } + { _dpHeight = Nothing + , _dpFrameRate = Nothing + , _dpFileSize = Nothing + , _dpWidth = Nothing + , _dpDurationMillis = Nothing + } -- | The detected height of the input file, in pixels. dpHeight :: Lens' DetectedProperties (Maybe Int) -dpHeight = lens _dpHeight (\ s a -> s{_dpHeight = a}); +dpHeight = lens _dpHeight (\ s a -> s{_dpHeight = a}) -- | The detected frame rate of the input file, in frames per second. dpFrameRate :: Lens' DetectedProperties (Maybe Text) -dpFrameRate = lens _dpFrameRate (\ s a -> s{_dpFrameRate = a}); +dpFrameRate = lens _dpFrameRate (\ s a -> s{_dpFrameRate = a}) -- | The detected file size of the input file, in bytes. dpFileSize :: Lens' DetectedProperties (Maybe Integer) -dpFileSize = lens _dpFileSize (\ s a -> s{_dpFileSize = a}); +dpFileSize = lens _dpFileSize (\ s a -> s{_dpFileSize = a}) -- | The detected width of the input file, in pixels. dpWidth :: Lens' DetectedProperties (Maybe Int) -dpWidth = lens _dpWidth (\ s a -> s{_dpWidth = a}); +dpWidth = lens _dpWidth (\ s a -> s{_dpWidth = a}) -- | The detected duration of the input file, in milliseconds. dpDurationMillis :: Lens' DetectedProperties (Maybe Integer) -dpDurationMillis = lens _dpDurationMillis (\ s a -> s{_dpDurationMillis = a}); +dpDurationMillis = lens _dpDurationMillis (\ s a -> s{_dpDurationMillis = a}) instance FromJSON DetectedProperties where parseJSON @@ -851,28 +851,28 @@ encryption :: Encryption encryption = Encryption' - { _eMode = Nothing - , _eKeyMD5 = Nothing - , _eKey = Nothing - , _eInitializationVector = Nothing - } + { _eMode = Nothing + , _eKeyMD5 = Nothing + , _eKey = Nothing + , _eInitializationVector = Nothing + } -- | The specific server-side encryption mode that you want Elastic Transcoder to use when decrypting your input files or encrypting your output files. Elastic Transcoder supports the following options: * __S3:__ Amazon S3 creates and manages the keys used for encrypting your files. * __S3-AWS-KMS:__ Amazon S3 calls the Amazon Key Management Service, which creates and manages the keys that are used for encrypting your files. If you specify @S3-AWS-KMS@ and you don't want to use the default key, you must add the AWS-KMS key that you want to use to your pipeline. * __AES-CBC-PKCS7:__ A padded cipher-block mode of operation originally used for HLS files. * __AES-CTR:__ AES Counter Mode. * __AES-GCM:__ AES Galois Counter Mode, a mode of operation that is an authenticated encryption format, meaning that a file, key, or initialization vector that has been tampered with fails the decryption process. For all three AES options, you must provide the following settings, which must be base64-encoded: * __Key__ * __Key MD5__ * __Initialization Vector__ /Important:/ For the AES modes, your private encryption keys and your unencrypted data are never stored by AWS; therefore, it is important that you safely manage your encryption keys. If you lose them, you won't be able to unencrypt your data. eMode :: Lens' Encryption (Maybe Text) -eMode = lens _eMode (\ s a -> s{_eMode = a}); +eMode = lens _eMode (\ s a -> s{_eMode = a}) -- | The MD5 digest of the key that you used to encrypt your input file, or that you want Elastic Transcoder to use to encrypt your output file. Elastic Transcoder uses the key digest 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 long before being base64-encoded. eKeyMD5 :: Lens' Encryption (Maybe Text) -eKeyMD5 = lens _eKeyMD5 (\ s a -> s{_eKeyMD5 = a}); +eKeyMD5 = lens _eKeyMD5 (\ s a -> s{_eKeyMD5 = a}) -- | The data encryption key that you want Elastic Transcoder to use to encrypt your output file, or that was used to encrypt your input file. The key must be base64-encoded and it must be one of the following bit lengths before being base64-encoded: @128@ , @192@ , or @256@ . The key must also be encrypted by using the Amazon Key Management Service. eKey :: Lens' Encryption (Maybe Text) -eKey = lens _eKey (\ s a -> s{_eKey = a}); +eKey = lens _eKey (\ s a -> s{_eKey = a}) -- | The series of random bits created by a random bit generator, unique for every encryption operation, that you used to encrypt your input files or 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 long before being base64-encoded. eInitializationVector :: Lens' Encryption (Maybe Text) -eInitializationVector = lens _eInitializationVector (\ s a -> s{_eInitializationVector = a}); +eInitializationVector = lens _eInitializationVector (\ s a -> s{_eInitializationVector = a}) instance FromJSON Encryption where parseJSON @@ -929,38 +929,38 @@ hlsContentProtection :: HlsContentProtection hlsContentProtection = HlsContentProtection' - { _hcpKeyMD5 = Nothing - , _hcpKeyStoragePolicy = Nothing - , _hcpKey = Nothing - , _hcpMethod = Nothing - , _hcpInitializationVector = Nothing - , _hcpLicenseAcquisitionURL = Nothing - } + { _hcpKeyMD5 = Nothing + , _hcpKeyStoragePolicy = Nothing + , _hcpKey = Nothing + , _hcpMethod = Nothing + , _hcpInitializationVector = Nothing + , _hcpLicenseAcquisitionURL = Nothing + } -- | 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. hcpKeyMD5 :: Lens' HlsContentProtection (Maybe Text) -hcpKeyMD5 = lens _hcpKeyMD5 (\ s a -> s{_hcpKeyMD5 = a}); +hcpKeyMD5 = lens _hcpKeyMD5 (\ s a -> s{_hcpKeyMD5 = a}) -- | 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. hcpKeyStoragePolicy :: Lens' HlsContentProtection (Maybe Text) -hcpKeyStoragePolicy = lens _hcpKeyStoragePolicy (\ s a -> s{_hcpKeyStoragePolicy = a}); +hcpKeyStoragePolicy = lens _hcpKeyStoragePolicy (\ s a -> s{_hcpKeyStoragePolicy = a}) -- | 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@ . hcpKey :: Lens' HlsContentProtection (Maybe Text) -hcpKey = lens _hcpKey (\ s a -> s{_hcpKey = a}); +hcpKey = lens _hcpKey (\ s a -> s{_hcpKey = a}) -- | 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. hcpMethod :: Lens' HlsContentProtection (Maybe Text) -hcpMethod = lens _hcpMethod (\ s a -> s{_hcpMethod = a}); +hcpMethod = lens _hcpMethod (\ s a -> s{_hcpMethod = a}) -- | 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. hcpInitializationVector :: Lens' HlsContentProtection (Maybe Text) -hcpInitializationVector = lens _hcpInitializationVector (\ s a -> s{_hcpInitializationVector = a}); +hcpInitializationVector = lens _hcpInitializationVector (\ s a -> s{_hcpInitializationVector = a}) -- | 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. hcpLicenseAcquisitionURL :: Lens' HlsContentProtection (Maybe Text) -hcpLicenseAcquisitionURL = lens _hcpLicenseAcquisitionURL (\ s a -> s{_hcpLicenseAcquisitionURL = a}); +hcpLicenseAcquisitionURL = lens _hcpLicenseAcquisitionURL (\ s a -> s{_hcpLicenseAcquisitionURL = a}) instance FromJSON HlsContentProtection where parseJSON @@ -1015,11 +1015,11 @@ inputCaptions = -- | A policy that determines how Elastic Transcoder handles the existence of multiple captions. * __MergeOverride:__ Elastic Transcoder transcodes both embedded and sidecar captions into outputs. If captions for a language are embedded in the input file and also appear in a sidecar file, Elastic Transcoder uses the sidecar captions and ignores the embedded captions for that language. * __MergeRetain:__ Elastic Transcoder transcodes both embedded and sidecar captions into outputs. If captions for a language are embedded in the input file and also appear in a sidecar file, Elastic Transcoder uses the embedded captions and ignores the sidecar captions for that language. If @CaptionSources@ is empty, Elastic Transcoder omits all sidecar captions from the output files. * __Override:__ Elastic Transcoder transcodes only the sidecar captions that you specify in @CaptionSources@ . @MergePolicy@ cannot be null. icMergePolicy :: Lens' InputCaptions (Maybe Text) -icMergePolicy = lens _icMergePolicy (\ s a -> s{_icMergePolicy = a}); +icMergePolicy = lens _icMergePolicy (\ s a -> s{_icMergePolicy = a}) -- | Source files for the input sidecar captions used during the transcoding process. To omit all sidecar captions, leave @CaptionSources@ blank. icCaptionSources :: Lens' InputCaptions [CaptionSource] -icCaptionSources = lens _icCaptionSources (\ s a -> s{_icCaptionSources = a}) . _Default . _Coerce; +icCaptionSources = lens _icCaptionSources (\ s a -> s{_icCaptionSources = a}) . _Default . _Coerce instance FromJSON InputCaptions where parseJSON @@ -1092,68 +1092,68 @@ job' :: Job' job' = Job'' - { _jStatus = Nothing - , _jPipelineId = Nothing - , _jARN = Nothing - , _jInputs = Nothing - , _jInput = Nothing - , _jUserMetadata = Nothing - , _jOutputs = Nothing - , _jOutput = Nothing - , _jId = Nothing - , _jPlaylists = Nothing - , _jOutputKeyPrefix = Nothing - , _jTiming = Nothing - } + { _jStatus = Nothing + , _jPipelineId = Nothing + , _jARN = Nothing + , _jInputs = Nothing + , _jInput = Nothing + , _jUserMetadata = Nothing + , _jOutputs = Nothing + , _jOutput = Nothing + , _jId = Nothing + , _jPlaylists = Nothing + , _jOutputKeyPrefix = Nothing + , _jTiming = Nothing + } -- | The status of the job: @Submitted@ , @Progressing@ , @Complete@ , @Canceled@ , or @Error@ . jStatus :: Lens' Job' (Maybe Text) -jStatus = lens _jStatus (\ s a -> s{_jStatus = a}); +jStatus = lens _jStatus (\ s a -> s{_jStatus = a}) -- | The @Id@ of the pipeline that you want Elastic Transcoder to use for transcoding. The pipeline determines several settings, including the Amazon S3 bucket from which Elastic Transcoder gets the files to transcode and the bucket into which Elastic Transcoder puts the transcoded files. jPipelineId :: Lens' Job' (Maybe Text) -jPipelineId = lens _jPipelineId (\ s a -> s{_jPipelineId = a}); +jPipelineId = lens _jPipelineId (\ s a -> s{_jPipelineId = a}) -- | The Amazon Resource Name (ARN) for the job. jARN :: Lens' Job' (Maybe Text) -jARN = lens _jARN (\ s a -> s{_jARN = a}); +jARN = lens _jARN (\ s a -> s{_jARN = a}) -- | Information about the files that you're transcoding. If you specified multiple files for this job, Elastic Transcoder stitches the files together to make one output. jInputs :: Lens' Job' [JobInput] -jInputs = lens _jInputs (\ s a -> s{_jInputs = a}) . _Default . _Coerce; +jInputs = lens _jInputs (\ s a -> s{_jInputs = a}) . _Default . _Coerce -- | A section of the request or response body that provides information about the file that is being transcoded. jInput :: Lens' Job' (Maybe JobInput) -jInput = lens _jInput (\ s a -> s{_jInput = a}); +jInput = lens _jInput (\ s a -> s{_jInput = a}) -- | User-defined metadata that you want to associate with an Elastic Transcoder job. You specify metadata in @key/value@ pairs, and you can add up to 10 @key/value@ pairs per job. Elastic Transcoder does not guarantee that @key/value@ pairs are returned in the same order in which you specify them. Metadata @keys@ and @values@ must use characters from the following list: * @0-9@ * @A-Z@ and @a-z@ * @Space@ * The following symbols: @_.:/=+-%@@ jUserMetadata :: Lens' Job' (HashMap Text Text) -jUserMetadata = lens _jUserMetadata (\ s a -> s{_jUserMetadata = a}) . _Default . _Map; +jUserMetadata = lens _jUserMetadata (\ s a -> s{_jUserMetadata = a}) . _Default . _Map -- | Information about the output files. We recommend that you use the @Outputs@ syntax for all jobs, even when you want Elastic Transcoder to transcode a file into only one format. Do not use both the @Outputs@ and @Output@ syntaxes in the same request. You can create a maximum of 30 outputs per job. If you specify more than one output for a job, Elastic Transcoder creates the files for each output in the order in which you specify them in the job. jOutputs :: Lens' Job' [JobOutput] -jOutputs = lens _jOutputs (\ s a -> s{_jOutputs = a}) . _Default . _Coerce; +jOutputs = lens _jOutputs (\ s a -> s{_jOutputs = a}) . _Default . _Coerce -- | If you specified one output for a job, information about that output. If you specified multiple outputs for a job, the Output object lists information about the first output. This duplicates the information that is listed for the first output in the Outputs object. /Important:/ Outputs recommended instead. A section of the request or response body that provides information about the transcoded (target) file. jOutput :: Lens' Job' (Maybe JobOutput) -jOutput = lens _jOutput (\ s a -> s{_jOutput = a}); +jOutput = lens _jOutput (\ s a -> s{_jOutput = a}) -- | The identifier that Elastic Transcoder assigned to the job. You use this value to get settings for the job or to delete the job. jId :: Lens' Job' (Maybe Text) -jId = lens _jId (\ s a -> s{_jId = a}); +jId = lens _jId (\ s a -> s{_jId = a}) -- | /Important:/ Outputs in Fragmented MP4 or MPEG-TS format only. If you specify a preset in @PresetId@ for which the value of @Container@ is fmp4 (Fragmented MP4) or ts (MPEG-TS), @Playlists@ contains information about the master playlists that you want Elastic Transcoder to create. The maximum number of master playlists in a job is 30. jPlaylists :: Lens' Job' [Playlist] -jPlaylists = lens _jPlaylists (\ s a -> s{_jPlaylists = a}) . _Default . _Coerce; +jPlaylists = lens _jPlaylists (\ s a -> s{_jPlaylists = a}) . _Default . _Coerce -- | The value, if any, that you want Elastic Transcoder to prepend to the names of all files that this job creates, including output files, thumbnails, and playlists. We recommend that you add a / or some other delimiter to the end of the @OutputKeyPrefix@ . jOutputKeyPrefix :: Lens' Job' (Maybe Text) -jOutputKeyPrefix = lens _jOutputKeyPrefix (\ s a -> s{_jOutputKeyPrefix = a}); +jOutputKeyPrefix = lens _jOutputKeyPrefix (\ s a -> s{_jOutputKeyPrefix = a}) -- | Details about the timing of a job. jTiming :: Lens' Job' (Maybe Timing) -jTiming = lens _jTiming (\ s a -> s{_jTiming = a}); +jTiming = lens _jTiming (\ s a -> s{_jTiming = a}) instance FromJSON Job' where parseJSON @@ -1201,11 +1201,11 @@ jobAlbumArt = JobAlbumArt' {_jaaMergePolicy = Nothing, _jaaArtwork = Nothing} -- | A policy that determines how Elastic Transcoder handles the existence of multiple album artwork files. * @Replace:@ The specified album art replaces any existing album art. * @Prepend:@ The specified album art is placed in front of any existing album art. * @Append:@ The specified album art is placed after any existing album art. * @Fallback:@ If the original input file contains artwork, Elastic Transcoder uses that artwork for the output. If the original input does not contain artwork, Elastic Transcoder uses the specified album art file. jaaMergePolicy :: Lens' JobAlbumArt (Maybe Text) -jaaMergePolicy = lens _jaaMergePolicy (\ s a -> s{_jaaMergePolicy = a}); +jaaMergePolicy = lens _jaaMergePolicy (\ s a -> s{_jaaMergePolicy = a}) -- | The file to be used as album art. There can be multiple artworks associated with an audio file, to a maximum of 20. Valid formats are @.jpg@ and @.png@ jaaArtwork :: Lens' JobAlbumArt [Artwork] -jaaArtwork = lens _jaaArtwork (\ s a -> s{_jaaArtwork = a}) . _Default . _Coerce; +jaaArtwork = lens _jaaArtwork (\ s a -> s{_jaaArtwork = a}) . _Default . _Coerce instance FromJSON JobAlbumArt where parseJSON @@ -1272,58 +1272,58 @@ jobInput :: JobInput jobInput = JobInput' - { _jiFrameRate = Nothing - , _jiResolution = Nothing - , _jiAspectRatio = Nothing - , _jiTimeSpan = Nothing - , _jiEncryption = Nothing - , _jiKey = Nothing - , _jiDetectedProperties = Nothing - , _jiContainer = Nothing - , _jiInterlaced = Nothing - , _jiInputCaptions = Nothing - } + { _jiFrameRate = Nothing + , _jiResolution = Nothing + , _jiAspectRatio = Nothing + , _jiTimeSpan = Nothing + , _jiEncryption = Nothing + , _jiKey = Nothing + , _jiDetectedProperties = Nothing + , _jiContainer = Nothing + , _jiInterlaced = Nothing + , _jiInputCaptions = Nothing + } -- | The frame rate of the input file. If you want Elastic Transcoder to automatically detect the frame rate of the input file, specify @auto@ . If you want to specify the frame rate for the input file, enter one of the following values: @10@ , @15@ , @23.97@ , @24@ , @25@ , @29.97@ , @30@ , @60@ If you specify a value other than @auto@ , Elastic Transcoder disables automatic detection of the frame rate. jiFrameRate :: Lens' JobInput (Maybe Text) -jiFrameRate = lens _jiFrameRate (\ s a -> s{_jiFrameRate = a}); +jiFrameRate = lens _jiFrameRate (\ s a -> s{_jiFrameRate = a}) -- | This value must be @auto@ , which causes Elastic Transcoder to automatically detect the resolution of the input file. jiResolution :: Lens' JobInput (Maybe Text) -jiResolution = lens _jiResolution (\ s a -> s{_jiResolution = a}); +jiResolution = lens _jiResolution (\ s a -> s{_jiResolution = a}) -- | The aspect ratio of the input file. If you want Elastic Transcoder to automatically detect the aspect ratio of the input file, specify @auto@ . If you want to specify the aspect ratio for the output file, enter one of the following values: @1:1@ , @4:3@ , @3:2@ , @16:9@ If you specify a value other than @auto@ , Elastic Transcoder disables automatic detection of the aspect ratio. jiAspectRatio :: Lens' JobInput (Maybe Text) -jiAspectRatio = lens _jiAspectRatio (\ s a -> s{_jiAspectRatio = a}); +jiAspectRatio = lens _jiAspectRatio (\ s a -> s{_jiAspectRatio = a}) -- | Settings for clipping an input. Each input can have different clip settings. jiTimeSpan :: Lens' JobInput (Maybe TimeSpan) -jiTimeSpan = lens _jiTimeSpan (\ s a -> s{_jiTimeSpan = a}); +jiTimeSpan = lens _jiTimeSpan (\ s a -> s{_jiTimeSpan = a}) -- | The encryption settings, if any, that are used for decrypting your input files. If your input file is encrypted, you must specify the mode that Elastic Transcoder uses to decrypt your file. jiEncryption :: Lens' JobInput (Maybe Encryption) -jiEncryption = lens _jiEncryption (\ s a -> s{_jiEncryption = a}); +jiEncryption = lens _jiEncryption (\ s a -> s{_jiEncryption = a}) -- | The name of the file to transcode. Elsewhere in the body of the JSON block is the the ID of the pipeline to use for processing the job. The @InputBucket@ object in that pipeline tells Elastic Transcoder which Amazon S3 bucket to get the file from. If the file name includes a prefix, such as @cooking/lasagna.mpg@ , include the prefix in the key. If the file isn't in the specified bucket, Elastic Transcoder returns an error. jiKey :: Lens' JobInput (Maybe Text) -jiKey = lens _jiKey (\ s a -> s{_jiKey = a}); +jiKey = lens _jiKey (\ s a -> s{_jiKey = a}) -- | The detected properties of the input file. jiDetectedProperties :: Lens' JobInput (Maybe DetectedProperties) -jiDetectedProperties = lens _jiDetectedProperties (\ s a -> s{_jiDetectedProperties = a}); +jiDetectedProperties = lens _jiDetectedProperties (\ s a -> s{_jiDetectedProperties = a}) -- | The container type for the input file. If you want Elastic Transcoder to automatically detect the container type of the input file, specify @auto@ . If you want to specify the container type for the input file, enter one of the following values: @3gp@ , @aac@ , @asf@ , @avi@ , @divx@ , @flv@ , @m4a@ , @mkv@ , @mov@ , @mp3@ , @mp4@ , @mpeg@ , @mpeg-ps@ , @mpeg-ts@ , @mxf@ , @ogg@ , @vob@ , @wav@ , @webm@ jiContainer :: Lens' JobInput (Maybe Text) -jiContainer = lens _jiContainer (\ s a -> s{_jiContainer = a}); +jiContainer = lens _jiContainer (\ s a -> s{_jiContainer = a}) -- | Whether the input file is interlaced. If you want Elastic Transcoder to automatically detect whether the input file is interlaced, specify @auto@ . If you want to specify whether the input file is interlaced, enter one of the following values: @true@ , @false@ If you specify a value other than @auto@ , Elastic Transcoder disables automatic detection of interlacing. jiInterlaced :: Lens' JobInput (Maybe Text) -jiInterlaced = lens _jiInterlaced (\ s a -> s{_jiInterlaced = a}); +jiInterlaced = lens _jiInterlaced (\ s a -> s{_jiInterlaced = a}) -- | You can configure Elastic Transcoder to transcode captions, or subtitles, from one format to another. All captions must be in UTF-8. Elastic Transcoder supports two types of captions: * __Embedded:__ Embedded captions are included in the same file as the audio and video. Elastic Transcoder supports only one embedded caption per language, to a maximum of 300 embedded captions per file. Valid input values include: @CEA-608 (EIA-608@ , first non-empty channel only), @CEA-708 (EIA-708@ , first non-empty channel only), and @mov-text@ Valid outputs include: @mov-text@ Elastic Transcoder supports a maximum of one embedded format per output. * __Sidecar:__ Sidecar captions are kept in a separate metadata file from the audio and video data. Sidecar captions require a player that is capable of understanding the relationship between the video file and the sidecar file. Elastic Transcoder supports only one sidecar caption per language, to a maximum of 20 sidecar captions per file. Valid input values include: @dfxp@ (first div element only), @ebu-tt@ , @scc@ , @smpt@ , @srt@ , @ttml@ (first div element only), and @webvtt@ Valid outputs include: @dfxp@ (first div element only), @scc@ , @srt@ , and @webvtt@ . If you want ttml or smpte-tt compatible captions, specify dfxp as your output format. Elastic Transcoder does not support OCR (Optical Character Recognition), does not accept pictures as a valid input for captions, and is not available for audio-only transcoding. Elastic Transcoder does not preserve text formatting (for example, italics) during the transcoding process. To remove captions or leave the captions empty, set @Captions@ to null. To pass through existing captions unchanged, set the @MergePolicy@ to @MergeRetain@ , and pass in a null @CaptionSources@ array. For more information on embedded files, see the Subtitles Wikipedia page. For more information on sidecar files, see the Extensible Metadata Platform and Sidecar file Wikipedia pages. jiInputCaptions :: Lens' JobInput (Maybe InputCaptions) -jiInputCaptions = lens _jiInputCaptions (\ s a -> s{_jiInputCaptions = a}); +jiInputCaptions = lens _jiInputCaptions (\ s a -> s{_jiInputCaptions = a}) instance FromJSON JobInput where parseJSON @@ -1440,113 +1440,113 @@ jobOutput :: JobOutput jobOutput = JobOutput' - { _joAppliedColorSpaceConversion = Nothing - , _joThumbnailPattern = Nothing - , _joStatus = Nothing - , _joHeight = Nothing - , _joFrameRate = Nothing - , _joCaptions = Nothing - , _joPresetId = Nothing - , _joComposition = Nothing - , _joAlbumArt = Nothing - , _joFileSize = Nothing - , _joWatermarks = Nothing - , _joWidth = Nothing - , _joEncryption = Nothing - , _joKey = Nothing - , _joStatusDetail = Nothing - , _joId = Nothing - , _joSegmentDuration = Nothing - , _joDurationMillis = Nothing - , _joThumbnailEncryption = Nothing - , _joDuration = Nothing - , _joRotate = Nothing - } + { _joAppliedColorSpaceConversion = Nothing + , _joThumbnailPattern = Nothing + , _joStatus = Nothing + , _joHeight = Nothing + , _joFrameRate = Nothing + , _joCaptions = Nothing + , _joPresetId = Nothing + , _joComposition = Nothing + , _joAlbumArt = Nothing + , _joFileSize = Nothing + , _joWatermarks = Nothing + , _joWidth = Nothing + , _joEncryption = Nothing + , _joKey = Nothing + , _joStatusDetail = Nothing + , _joId = Nothing + , _joSegmentDuration = Nothing + , _joDurationMillis = Nothing + , _joThumbnailEncryption = Nothing + , _joDuration = Nothing + , _joRotate = Nothing + } -- | If Elastic Transcoder used a preset with a @ColorSpaceConversionMode@ to transcode the output file, the @AppliedColorSpaceConversion@ parameter shows the conversion used. If no @ColorSpaceConversionMode@ was defined in the preset, this parameter is not be included in the job response. joAppliedColorSpaceConversion :: Lens' JobOutput (Maybe Text) -joAppliedColorSpaceConversion = lens _joAppliedColorSpaceConversion (\ s a -> s{_joAppliedColorSpaceConversion = a}); +joAppliedColorSpaceConversion = lens _joAppliedColorSpaceConversion (\ s a -> s{_joAppliedColorSpaceConversion = a}) -- | Whether you want Elastic Transcoder to create thumbnails for your videos and, if so, how you want Elastic Transcoder to name the files. If you don't want Elastic Transcoder to create thumbnails, specify "". If you do want Elastic Transcoder to create thumbnails, specify the information that you want to include in the file name for each thumbnail. You can specify the following values in any sequence: * __@{count}@ (Required)__ : If you want to create thumbnails, you must include @{count}@ in the @ThumbnailPattern@ object. Wherever you specify @{count}@ , Elastic Transcoder adds a five-digit sequence number (beginning with __00001__ ) to thumbnail file names. The number indicates where a given thumbnail appears in the sequence of thumbnails for a transcoded file. /Important:/ If you specify a literal value and/or @{resolution}@ but you omit @{count}@ , Elastic Transcoder returns a validation error and does not create the job. * __Literal values (Optional)__ : You can specify literal values anywhere in the @ThumbnailPattern@ object. For example, you can include them as a file name prefix or as a delimiter between @{resolution}@ and @{count}@ . * __@{resolution}@ (Optional)__ : If you want Elastic Transcoder to include the resolution in the file name, include @{resolution}@ in the @ThumbnailPattern@ object. When creating thumbnails, Elastic Transcoder automatically saves the files in the format (.jpg or .png) that appears in the preset that you specified in the @PresetID@ value of @CreateJobOutput@ . Elastic Transcoder also appends the applicable file name extension. joThumbnailPattern :: Lens' JobOutput (Maybe Text) -joThumbnailPattern = lens _joThumbnailPattern (\ s a -> s{_joThumbnailPattern = a}); +joThumbnailPattern = lens _joThumbnailPattern (\ s a -> s{_joThumbnailPattern = a}) -- | The status of one output in a job. If you specified only one output for the job, @Outputs:Status@ is always the same as @Job:Status@ . If you specified more than one output: * @Job:Status@ and @Outputs:Status@ for all of the outputs is Submitted until Elastic Transcoder starts to process the first output. * When Elastic Transcoder starts to process the first output, @Outputs:Status@ for that output and @Job:Status@ both change to Progressing. For each output, the value of @Outputs:Status@ remains Submitted until Elastic Transcoder starts to process the output. * Job:Status remains Progressing until all of the outputs reach a terminal status, either Complete or Error. * When all of the outputs reach a terminal status, @Job:Status@ changes to Complete only if @Outputs:Status@ for all of the outputs is @Complete@ . If @Outputs:Status@ for one or more outputs is @Error@ , the terminal status for @Job:Status@ is also @Error@ . The value of @Status@ is one of the following: @Submitted@ , @Progressing@ , @Complete@ , @Canceled@ , or @Error@ . joStatus :: Lens' JobOutput (Maybe Text) -joStatus = lens _joStatus (\ s a -> s{_joStatus = a}); +joStatus = lens _joStatus (\ s a -> s{_joStatus = a}) -- | Height of the output file, in pixels. joHeight :: Lens' JobOutput (Maybe Int) -joHeight = lens _joHeight (\ s a -> s{_joHeight = a}); +joHeight = lens _joHeight (\ s a -> s{_joHeight = a}) -- | Frame rate of the output file, in frames per second. joFrameRate :: Lens' JobOutput (Maybe Text) -joFrameRate = lens _joFrameRate (\ s a -> s{_joFrameRate = a}); +joFrameRate = lens _joFrameRate (\ s a -> s{_joFrameRate = a}) -- | You can configure Elastic Transcoder to transcode captions, or subtitles, from one format to another. All captions must be in UTF-8. Elastic Transcoder supports two types of captions: * __Embedded:__ Embedded captions are included in the same file as the audio and video. Elastic Transcoder supports only one embedded caption per language, to a maximum of 300 embedded captions per file. Valid input values include: @CEA-608 (EIA-608@ , first non-empty channel only), @CEA-708 (EIA-708@ , first non-empty channel only), and @mov-text@ Valid outputs include: @mov-text@ Elastic Transcoder supports a maximum of one embedded format per output. * __Sidecar:__ Sidecar captions are kept in a separate metadata file from the audio and video data. Sidecar captions require a player that is capable of understanding the relationship between the video file and the sidecar file. Elastic Transcoder supports only one sidecar caption per language, to a maximum of 20 sidecar captions per file. Valid input values include: @dfxp@ (first div element only), @ebu-tt@ , @scc@ , @smpt@ , @srt@ , @ttml@ (first div element only), and @webvtt@ Valid outputs include: @dfxp@ (first div element only), @scc@ , @srt@ , and @webvtt@ . If you want ttml or smpte-tt compatible captions, specify dfxp as your output format. Elastic Transcoder does not support OCR (Optical Character Recognition), does not accept pictures as a valid input for captions, and is not available for audio-only transcoding. Elastic Transcoder does not preserve text formatting (for example, italics) during the transcoding process. To remove captions or leave the captions empty, set @Captions@ to null. To pass through existing captions unchanged, set the @MergePolicy@ to @MergeRetain@ , and pass in a null @CaptionSources@ array. For more information on embedded files, see the Subtitles Wikipedia page. For more information on sidecar files, see the Extensible Metadata Platform and Sidecar file Wikipedia pages. joCaptions :: Lens' JobOutput (Maybe Captions) -joCaptions = lens _joCaptions (\ s a -> s{_joCaptions = a}); +joCaptions = lens _joCaptions (\ s a -> s{_joCaptions = a}) -- | The value of the @Id@ object for the preset that you want to use for this job. The preset determines the audio, video, and thumbnail settings that Elastic Transcoder uses for transcoding. To use a preset that you created, specify the preset ID that Elastic Transcoder returned in the response when you created the preset. You can also use the Elastic Transcoder system presets, which you can get with @ListPresets@ . joPresetId :: Lens' JobOutput (Maybe Text) -joPresetId = lens _joPresetId (\ s a -> s{_joPresetId = a}); +joPresetId = lens _joPresetId (\ s a -> s{_joPresetId = a}) -- | You can create an output file that contains an excerpt from the input file. This excerpt, called a clip, can come from the beginning, middle, or end of the file. The Composition object contains settings for the clips that make up an output file. For the current release, you can only specify settings for a single clip per output file. The Composition object cannot be null. joComposition :: Lens' JobOutput [Clip] -joComposition = lens _joComposition (\ s a -> s{_joComposition = a}) . _Default . _Coerce; +joComposition = lens _joComposition (\ s a -> s{_joComposition = a}) . _Default . _Coerce -- | The album art to be associated with the output file, if any. joAlbumArt :: Lens' JobOutput (Maybe JobAlbumArt) -joAlbumArt = lens _joAlbumArt (\ s a -> s{_joAlbumArt = a}); +joAlbumArt = lens _joAlbumArt (\ s a -> s{_joAlbumArt = a}) -- | File size of the output file, in bytes. joFileSize :: Lens' JobOutput (Maybe Integer) -joFileSize = lens _joFileSize (\ s a -> s{_joFileSize = a}); +joFileSize = lens _joFileSize (\ s a -> s{_joFileSize = a}) -- | Information about the watermarks that you want Elastic Transcoder to add to the video during transcoding. You can specify up to four watermarks for each output. Settings for each watermark must be defined in the preset that you specify in @Preset@ for the current output. Watermarks are added to the output video in the sequence in which you list them in the job output—the first watermark in the list is added to the output video first, the second watermark in the list is added next, and so on. As a result, if the settings in a preset cause Elastic Transcoder to place all watermarks in the same location, the second watermark that you add covers the first one, the third one covers the second, and the fourth one covers the third. joWatermarks :: Lens' JobOutput [JobWatermark] -joWatermarks = lens _joWatermarks (\ s a -> s{_joWatermarks = a}) . _Default . _Coerce; +joWatermarks = lens _joWatermarks (\ s a -> s{_joWatermarks = a}) . _Default . _Coerce -- | Specifies the width of the output file in pixels. joWidth :: Lens' JobOutput (Maybe Int) -joWidth = lens _joWidth (\ s a -> s{_joWidth = a}); +joWidth = lens _joWidth (\ s a -> s{_joWidth = a}) -- | The encryption settings, if any, that you want Elastic Transcoder to apply to your output files. If you choose to use encryption, you must specify a mode to use. If you choose not to use encryption, Elastic Transcoder writes an unencrypted file to your Amazon S3 bucket. joEncryption :: Lens' JobOutput (Maybe Encryption) -joEncryption = lens _joEncryption (\ s a -> s{_joEncryption = a}); +joEncryption = lens _joEncryption (\ s a -> s{_joEncryption = a}) -- | The name to assign to the transcoded file. Elastic Transcoder saves the file in the Amazon S3 bucket specified by the @OutputBucket@ object in the pipeline that is specified by the pipeline ID. joKey :: Lens' JobOutput (Maybe Text) -joKey = lens _joKey (\ s a -> s{_joKey = a}); +joKey = lens _joKey (\ s a -> s{_joKey = a}) -- | Information that further explains @Status@ . joStatusDetail :: Lens' JobOutput (Maybe Text) -joStatusDetail = lens _joStatusDetail (\ s a -> s{_joStatusDetail = a}); +joStatusDetail = lens _joStatusDetail (\ s a -> s{_joStatusDetail = a}) -- | A sequential counter, starting with 1, that identifies an output among the outputs from the current job. In the Output syntax, this value is always 1. joId :: Lens' JobOutput (Maybe Text) -joId = lens _joId (\ s a -> s{_joId = a}); +joId = lens _joId (\ s a -> s{_joId = a}) -- | /Important:/ (Outputs in Fragmented MP4 or MPEG-TS format only. If you specify a preset in @PresetId@ for which the value of @Container@ is @fmp4@ (Fragmented MP4) or @ts@ (MPEG-TS), @SegmentDuration@ is the target maximum duration of each segment in seconds. For @HLSv3@ format playlists, each media segment is stored in a separate @.ts@ file. For @HLSv4@ , @MPEG-DASH@ , and @Smooth@ playlists, all media segments for an output are stored in a single file. Each segment is approximately the length of the @SegmentDuration@ , though individual segments might be shorter or longer. The range of valid values is 1 to 60 seconds. If the duration of the video is not evenly divisible by @SegmentDuration@ , the duration of the last segment is the remainder of total length/SegmentDuration. Elastic Transcoder creates an output-specific playlist for each output @HLS@ output that you specify in OutputKeys. To add an output to the master playlist for this job, include it in the @OutputKeys@ of the associated playlist. joSegmentDuration :: Lens' JobOutput (Maybe Text) -joSegmentDuration = lens _joSegmentDuration (\ s a -> s{_joSegmentDuration = a}); +joSegmentDuration = lens _joSegmentDuration (\ s a -> s{_joSegmentDuration = a}) -- | Duration of the output file, in milliseconds. joDurationMillis :: Lens' JobOutput (Maybe Integer) -joDurationMillis = lens _joDurationMillis (\ s a -> s{_joDurationMillis = a}); +joDurationMillis = lens _joDurationMillis (\ s a -> s{_joDurationMillis = a}) -- | The encryption settings, if any, that you want Elastic Transcoder to apply to your thumbnail. joThumbnailEncryption :: Lens' JobOutput (Maybe Encryption) -joThumbnailEncryption = lens _joThumbnailEncryption (\ s a -> s{_joThumbnailEncryption = a}); +joThumbnailEncryption = lens _joThumbnailEncryption (\ s a -> s{_joThumbnailEncryption = a}) -- | Duration of the output file, in seconds. joDuration :: Lens' JobOutput (Maybe Integer) -joDuration = lens _joDuration (\ s a -> s{_joDuration = a}); +joDuration = lens _joDuration (\ s a -> s{_joDuration = a}) -- | The number of degrees clockwise by which you want Elastic Transcoder to rotate the output relative to the input. Enter one of the following values: @auto@ , @0@ , @90@ , @180@ , @270@ The value @auto@ generally works only if the file that you're transcoding contains rotation metadata. joRotate :: Lens' JobOutput (Maybe Text) -joRotate = lens _joRotate (\ s a -> s{_joRotate = a}); +joRotate = lens _joRotate (\ s a -> s{_joRotate = a}) instance FromJSON JobOutput where parseJSON @@ -1604,23 +1604,23 @@ jobWatermark :: JobWatermark jobWatermark = JobWatermark' - { _jwPresetWatermarkId = Nothing - , _jwInputKey = Nothing - , _jwEncryption = Nothing - } + { _jwPresetWatermarkId = Nothing + , _jwInputKey = Nothing + , _jwEncryption = Nothing + } -- | The ID of the watermark settings that Elastic Transcoder uses to add watermarks to the video during transcoding. The settings are in the preset specified by Preset for the current output. In that preset, the value of Watermarks Id tells Elastic Transcoder which settings to use. jwPresetWatermarkId :: Lens' JobWatermark (Maybe Text) -jwPresetWatermarkId = lens _jwPresetWatermarkId (\ s a -> s{_jwPresetWatermarkId = a}); +jwPresetWatermarkId = lens _jwPresetWatermarkId (\ s a -> s{_jwPresetWatermarkId = a}) -- | The name of the .png or .jpg file that you want to use for the watermark. To determine which Amazon S3 bucket contains the specified file, Elastic Transcoder checks the pipeline specified by @Pipeline@ ; the @Input Bucket@ object in that pipeline identifies the bucket. If the file name includes a prefix, for example, __logos/128x64.png__ , include the prefix in the key. If the file isn't in the specified bucket, Elastic Transcoder returns an error. jwInputKey :: Lens' JobWatermark (Maybe Text) -jwInputKey = lens _jwInputKey (\ s a -> s{_jwInputKey = a}); +jwInputKey = lens _jwInputKey (\ s a -> s{_jwInputKey = a}) -- | The encryption settings, if any, that you want Elastic Transcoder to apply to your watermarks. jwEncryption :: Lens' JobWatermark (Maybe Encryption) -jwEncryption = lens _jwEncryption (\ s a -> s{_jwEncryption = a}); +jwEncryption = lens _jwEncryption (\ s a -> s{_jwEncryption = a}) instance FromJSON JobWatermark where parseJSON @@ -1672,28 +1672,28 @@ notifications :: Notifications notifications = Notifications' - { _nError = Nothing - , _nWarning = Nothing - , _nProgressing = Nothing - , _nCompleted = Nothing - } + { _nError = Nothing + , _nWarning = Nothing + , _nProgressing = Nothing + , _nCompleted = Nothing + } -- | The Amazon SNS topic that you want to notify when Elastic Transcoder encounters an error condition. nError :: Lens' Notifications (Maybe Text) -nError = lens _nError (\ s a -> s{_nError = a}); +nError = lens _nError (\ s a -> s{_nError = a}) -- | The Amazon SNS topic that you want to notify when Elastic Transcoder encounters a warning condition. nWarning :: Lens' Notifications (Maybe Text) -nWarning = lens _nWarning (\ s a -> s{_nWarning = a}); +nWarning = lens _nWarning (\ s a -> s{_nWarning = a}) -- | The Amazon Simple Notification Service (Amazon SNS) topic that you want to notify when Elastic Transcoder has started to process the job. nProgressing :: Lens' Notifications (Maybe Text) -nProgressing = lens _nProgressing (\ s a -> s{_nProgressing = a}); +nProgressing = lens _nProgressing (\ s a -> s{_nProgressing = a}) -- | The Amazon SNS topic that you want to notify when Elastic Transcoder has finished processing the job. nCompleted :: Lens' Notifications (Maybe Text) -nCompleted = lens _nCompleted (\ s a -> s{_nCompleted = a}); +nCompleted = lens _nCompleted (\ s a -> s{_nCompleted = a}) instance FromJSON Notifications where parseJSON @@ -1746,15 +1746,15 @@ permission = -- | The permission that you want to give to the AWS user that is listed in Grantee. Valid values include: * @READ@ : The grantee can read the thumbnails and metadata for thumbnails that Elastic Transcoder adds to the Amazon S3 bucket. * @READ_ACP@ : The grantee can read the object ACL for thumbnails that Elastic Transcoder adds to the Amazon S3 bucket. * @WRITE_ACP@ : The grantee can write the ACL for the thumbnails that Elastic Transcoder adds to the Amazon S3 bucket. * @FULL_CONTROL@ : The grantee has READ, READ_ACP, and WRITE_ACP permissions for the thumbnails that Elastic Transcoder adds to the Amazon S3 bucket. pAccess :: Lens' Permission [Text] -pAccess = lens _pAccess (\ s a -> s{_pAccess = a}) . _Default . _Coerce; +pAccess = lens _pAccess (\ s a -> s{_pAccess = a}) . _Default . _Coerce -- | The type of value that appears in the Grantee object: * @Canonical@ : Either the canonical user ID for an AWS account or an origin access identity for an Amazon CloudFront distribution. /Important:/ A canonical user ID is not the same as an AWS account number. * @Email@ : The registered email address of an AWS account. * @Group@ : One of the following predefined Amazon S3 groups: @AllUsers@ , @AuthenticatedUsers@ , or @LogDelivery@ . pGranteeType :: Lens' Permission (Maybe Text) -pGranteeType = lens _pGranteeType (\ s a -> s{_pGranteeType = a}); +pGranteeType = lens _pGranteeType (\ s a -> s{_pGranteeType = a}) -- | The AWS user or group that you want to have access to transcoded files and playlists. To identify the user or group, you can specify the canonical user ID for an AWS account, an origin access identity for a CloudFront distribution, the registered email address of an AWS account, or a predefined Amazon S3 group. pGrantee :: Lens' Permission (Maybe Text) -pGrantee = lens _pGrantee (\ s a -> s{_pGrantee = a}); +pGrantee = lens _pGrantee (\ s a -> s{_pGrantee = a}) instance FromJSON Permission where parseJSON @@ -1825,63 +1825,63 @@ pipeline :: Pipeline pipeline = Pipeline' - { _pipStatus = Nothing - , _pipARN = Nothing - , _pipInputBucket = Nothing - , _pipContentConfig = Nothing - , _pipOutputBucket = Nothing - , _pipRole = Nothing - , _pipName = Nothing - , _pipAWSKMSKeyARN = Nothing - , _pipId = Nothing - , _pipNotifications = Nothing - , _pipThumbnailConfig = Nothing - } + { _pipStatus = Nothing + , _pipARN = Nothing + , _pipInputBucket = Nothing + , _pipContentConfig = Nothing + , _pipOutputBucket = Nothing + , _pipRole = Nothing + , _pipName = Nothing + , _pipAWSKMSKeyARN = Nothing + , _pipId = Nothing + , _pipNotifications = Nothing + , _pipThumbnailConfig = Nothing + } -- | The current status of the pipeline: * @Active@ : The pipeline is processing jobs. * @Paused@ : The pipeline is not currently processing jobs. pipStatus :: Lens' Pipeline (Maybe Text) -pipStatus = lens _pipStatus (\ s a -> s{_pipStatus = a}); +pipStatus = lens _pipStatus (\ s a -> s{_pipStatus = a}) -- | The Amazon Resource Name (ARN) for the pipeline. pipARN :: Lens' Pipeline (Maybe Text) -pipARN = lens _pipARN (\ s a -> s{_pipARN = a}); +pipARN = lens _pipARN (\ s a -> s{_pipARN = a}) -- | The Amazon S3 bucket from which Elastic Transcoder gets media files for transcoding and the graphics files, if any, that you want to use for watermarks. pipInputBucket :: Lens' Pipeline (Maybe Text) -pipInputBucket = lens _pipInputBucket (\ s a -> s{_pipInputBucket = a}); +pipInputBucket = lens _pipInputBucket (\ s a -> s{_pipInputBucket = a}) -- | Information about the Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and playlists. Either you specify both @ContentConfig@ and @ThumbnailConfig@ , or you specify @OutputBucket@ . * __Bucket__ : The Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and playlists. * __Permissions__ : A list of the users and/or predefined Amazon S3 groups you want to have access to transcoded files and playlists, and the type of access that you want them to have. * GranteeType: The type of value that appears in the @Grantee@ object: * @Canonical@ : Either the canonical user ID for an AWS account or an origin access identity for an Amazon CloudFront distribution. * @Email@ : The registered email address of an AWS account. * @Group@ : One of the following predefined Amazon S3 groups: @AllUsers@ , @AuthenticatedUsers@ , or @LogDelivery@ . * @Grantee@ : The AWS user or group that you want to have access to transcoded files and playlists. * @Access@ : The permission that you want to give to the AWS user that is listed in @Grantee@ . Valid values include: * @READ@ : The grantee can read the objects and metadata for objects that Elastic Transcoder adds to the Amazon S3 bucket. * @READ_ACP@ : The grantee can read the object ACL for objects that Elastic Transcoder adds to the Amazon S3 bucket. * @WRITE_ACP@ : The grantee can write the ACL for the objects that Elastic Transcoder adds to the Amazon S3 bucket. * @FULL_CONTROL@ : The grantee has @READ@ , @READ_ACP@ , and @WRITE_ACP@ permissions for the objects that Elastic Transcoder adds to the Amazon S3 bucket. * __StorageClass__ : The Amazon S3 storage class, Standard or ReducedRedundancy, that you want Elastic Transcoder to assign to the video files and playlists that it stores in your Amazon S3 bucket. pipContentConfig :: Lens' Pipeline (Maybe PipelineOutputConfig) -pipContentConfig = lens _pipContentConfig (\ s a -> s{_pipContentConfig = a}); +pipContentConfig = lens _pipContentConfig (\ s a -> s{_pipContentConfig = a}) -- | The Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files, thumbnails, and playlists. Either you specify this value, or you specify both @ContentConfig@ and @ThumbnailConfig@ . pipOutputBucket :: Lens' Pipeline (Maybe Text) -pipOutputBucket = lens _pipOutputBucket (\ s a -> s{_pipOutputBucket = a}); +pipOutputBucket = lens _pipOutputBucket (\ s a -> s{_pipOutputBucket = a}) -- | The IAM Amazon Resource Name (ARN) for the role that Elastic Transcoder uses to transcode jobs for this pipeline. pipRole :: Lens' Pipeline (Maybe Text) -pipRole = lens _pipRole (\ s a -> s{_pipRole = a}); +pipRole = lens _pipRole (\ s a -> s{_pipRole = a}) -- | The name of the pipeline. We recommend that the name be unique within the AWS account, but uniqueness is not enforced. Constraints: Maximum 40 characters pipName :: Lens' Pipeline (Maybe Text) -pipName = lens _pipName (\ s a -> s{_pipName = a}); +pipName = lens _pipName (\ s a -> s{_pipName = a}) -- | The AWS Key Management Service (AWS KMS) key that you want to use with this pipeline. If you use either @S3@ or @S3-AWS-KMS@ as your @Encryption:Mode@ , you don't need to provide a key with your job because a default key, known as an AWS-KMS key, is created for you automatically. You need to provide an AWS-KMS key only if you want to use a non-default AWS-KMS key, or if you are using an @Encryption:Mode@ of @AES-PKCS7@ , @AES-CTR@ , or @AES-GCM@ . pipAWSKMSKeyARN :: Lens' Pipeline (Maybe Text) -pipAWSKMSKeyARN = lens _pipAWSKMSKeyARN (\ s a -> s{_pipAWSKMSKeyARN = a}); +pipAWSKMSKeyARN = lens _pipAWSKMSKeyARN (\ s a -> s{_pipAWSKMSKeyARN = a}) -- | The identifier for the pipeline. You use this value to identify the pipeline in which you want to perform a variety of operations, such as creating a job or a preset. pipId :: Lens' Pipeline (Maybe Text) -pipId = lens _pipId (\ s a -> s{_pipId = a}); +pipId = lens _pipId (\ s a -> s{_pipId = a}) -- | The Amazon Simple Notification Service (Amazon SNS) topic that you want to notify to report job status. /Important:/ To receive notifications, you must also subscribe to the new topic in the Amazon SNS console. * __Progressing__ (optional): The Amazon Simple Notification Service (Amazon SNS) topic that you want to notify when Elastic Transcoder has started to process the job. * __Completed__ (optional): The Amazon SNS topic that you want to notify when Elastic Transcoder has finished processing the job. * __Warning__ (optional): The Amazon SNS topic that you want to notify when Elastic Transcoder encounters a warning condition. * __Error__ (optional): The Amazon SNS topic that you want to notify when Elastic Transcoder encounters an error condition. pipNotifications :: Lens' Pipeline (Maybe Notifications) -pipNotifications = lens _pipNotifications (\ s a -> s{_pipNotifications = a}); +pipNotifications = lens _pipNotifications (\ s a -> s{_pipNotifications = a}) -- | Information about the Amazon S3 bucket in which you want Elastic Transcoder to save thumbnail files. Either you specify both @ContentConfig@ and @ThumbnailConfig@ , or you specify @OutputBucket@ . * @Bucket@ : The Amazon S3 bucket in which you want Elastic Transcoder to save thumbnail files. * @Permissions@ : A list of the users and/or predefined Amazon S3 groups you want to have access to thumbnail files, and the type of access that you want them to have. * GranteeType: The type of value that appears in the Grantee object: * @Canonical@ : Either the canonical user ID for an AWS account or an origin access identity for an Amazon CloudFront distribution. /Important:/ A canonical user ID is not the same as an AWS account number. * @Email@ : The registered email address of an AWS account. * @Group@ : One of the following predefined Amazon S3 groups: @AllUsers@ , @AuthenticatedUsers@ , or @LogDelivery@ . * @Grantee@ : The AWS user or group that you want to have access to thumbnail files. * Access: The permission that you want to give to the AWS user that is listed in Grantee. Valid values include: * @READ@ : The grantee can read the thumbnails and metadata for thumbnails that Elastic Transcoder adds to the Amazon S3 bucket. * @READ_ACP@ : The grantee can read the object ACL for thumbnails that Elastic Transcoder adds to the Amazon S3 bucket. * @WRITE_ACP@ : The grantee can write the ACL for the thumbnails that Elastic Transcoder adds to the Amazon S3 bucket. * @FULL_CONTROL@ : The grantee has READ, READ_ACP, and WRITE_ACP permissions for the thumbnails that Elastic Transcoder adds to the Amazon S3 bucket. * @StorageClass@ : The Amazon S3 storage class, @Standard@ or @ReducedRedundancy@ , that you want Elastic Transcoder to assign to the thumbnails that it stores in your Amazon S3 bucket. pipThumbnailConfig :: Lens' Pipeline (Maybe PipelineOutputConfig) -pipThumbnailConfig = lens _pipThumbnailConfig (\ s a -> s{_pipThumbnailConfig = a}); +pipThumbnailConfig = lens _pipThumbnailConfig (\ s a -> s{_pipThumbnailConfig = a}) instance FromJSON Pipeline where parseJSON @@ -1928,20 +1928,23 @@ pipelineOutputConfig :: PipelineOutputConfig pipelineOutputConfig = PipelineOutputConfig' - {_pocBucket = Nothing, _pocStorageClass = Nothing, _pocPermissions = Nothing} + { _pocBucket = Nothing + , _pocStorageClass = Nothing + , _pocPermissions = Nothing + } -- | The Amazon S3 bucket in which you want Elastic Transcoder to save the transcoded files. Specify this value when all of the following are true: * You want to save transcoded files, thumbnails (if any), and playlists (if any) together in one bucket. * You do not want to specify the users or groups who have access to the transcoded files, thumbnails, and playlists. * You do not want to specify the permissions that Elastic Transcoder grants to the files. * You want to associate the transcoded files and thumbnails with the Amazon S3 Standard storage class. If you want to save transcoded files and playlists in one bucket and thumbnails in another bucket, specify which users can access the transcoded files or the permissions the users have, or change the Amazon S3 storage class, omit OutputBucket and specify values for @ContentConfig@ and @ThumbnailConfig@ instead. pocBucket :: Lens' PipelineOutputConfig (Maybe Text) -pocBucket = lens _pocBucket (\ s a -> s{_pocBucket = a}); +pocBucket = lens _pocBucket (\ s a -> s{_pocBucket = a}) -- | The Amazon S3 storage class, @Standard@ or @ReducedRedundancy@ , that you want Elastic Transcoder to assign to the video files and playlists that it stores in your Amazon S3 bucket. pocStorageClass :: Lens' PipelineOutputConfig (Maybe Text) -pocStorageClass = lens _pocStorageClass (\ s a -> s{_pocStorageClass = a}); +pocStorageClass = lens _pocStorageClass (\ s a -> s{_pocStorageClass = a}) -- | Optional. The @Permissions@ object specifies which users and/or predefined Amazon S3 groups you want to have access to transcoded files and playlists, and the type of access you want them to have. You can grant permissions to a maximum of 30 users and/or predefined Amazon S3 groups. If you include @Permissions@ , Elastic Transcoder grants only the permissions that you specify. It does not grant full permissions to the owner of the role specified by @Role@ . If you want that user to have full control, you must explicitly grant full control to the user. If you omit @Permissions@ , Elastic Transcoder grants full control over the transcoded files and playlists to the owner of the role specified by @Role@ , and grants no other permissions to any other user or group. pocPermissions :: Lens' PipelineOutputConfig [Permission] -pocPermissions = lens _pocPermissions (\ s a -> s{_pocPermissions = a}) . _Default . _Coerce; +pocPermissions = lens _pocPermissions (\ s a -> s{_pocPermissions = a}) . _Default . _Coerce instance FromJSON PipelineOutputConfig where parseJSON @@ -2001,38 +2004,38 @@ playReadyDrm :: PlayReadyDrm playReadyDrm = PlayReadyDrm' - { _prdKeyId = Nothing - , _prdFormat = Nothing - , _prdKeyMD5 = Nothing - , _prdKey = Nothing - , _prdInitializationVector = Nothing - , _prdLicenseAcquisitionURL = Nothing - } + { _prdKeyId = Nothing + , _prdFormat = Nothing + , _prdKeyMD5 = Nothing + , _prdKey = Nothing + , _prdInitializationVector = Nothing + , _prdLicenseAcquisitionURL = Nothing + } -- | The ID for your DRM key, so that your DRM license provider knows which key to provide. The key ID must be provided in big endian, and Elastic Transcoder converts it to little endian before inserting it into the PlayReady DRM headers. If you are unsure whether your license server provides your key ID in big or little endian, check with your DRM provider. prdKeyId :: Lens' PlayReadyDrm (Maybe Text) -prdKeyId = lens _prdKeyId (\ s a -> s{_prdKeyId = a}); +prdKeyId = lens _prdKeyId (\ s a -> s{_prdKeyId = a}) -- | The type of DRM, if any, that you want Elastic Transcoder to apply to the output files associated with this playlist. prdFormat :: Lens' PlayReadyDrm (Maybe Text) -prdFormat = lens _prdFormat (\ s a -> s{_prdFormat = a}); +prdFormat = lens _prdFormat (\ s a -> s{_prdFormat = a}) -- | The MD5 digest of the key used for DRM on your 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. prdKeyMD5 :: Lens' PlayReadyDrm (Maybe Text) -prdKeyMD5 = lens _prdKeyMD5 (\ s a -> s{_prdKeyMD5 = a}); +prdKeyMD5 = lens _prdKeyMD5 (\ s a -> s{_prdKeyMD5 = a}) -- | The DRM key for your file, provided by your DRM license provider. The key must be base64-encoded, and it must be one of the following bit lengths before being base64-encoded: @128@ , @192@ , or @256@ . The key must also be encrypted by using AWS KMS. prdKey :: Lens' PlayReadyDrm (Maybe Text) -prdKey = lens _prdKey (\ s a -> s{_prdKey = a}); +prdKey = lens _prdKey (\ s a -> s{_prdKey = a}) -- | 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 files. The initialization vector must be base64-encoded, and it must be exactly 8 bytes long before being base64-encoded. If no initialization vector is provided, Elastic Transcoder generates one for you. prdInitializationVector :: Lens' PlayReadyDrm (Maybe Text) -prdInitializationVector = lens _prdInitializationVector (\ s a -> s{_prdInitializationVector = a}); +prdInitializationVector = lens _prdInitializationVector (\ s a -> s{_prdInitializationVector = a}) -- | The location of the license key required to play DRM content. The URL must be an absolute path, and is referenced by the PlayReady header. The PlayReady header is referenced in the protection header of the client manifest for Smooth Streaming outputs, and in the EXT-X-DXDRM and EXT-XDXDRMINFO metadata tags for HLS playlist outputs. An example URL looks like this: @https://www.example.com/exampleKey/@ prdLicenseAcquisitionURL :: Lens' PlayReadyDrm (Maybe Text) -prdLicenseAcquisitionURL = lens _prdLicenseAcquisitionURL (\ s a -> s{_prdLicenseAcquisitionURL = a}); +prdLicenseAcquisitionURL = lens _prdLicenseAcquisitionURL (\ s a -> s{_prdLicenseAcquisitionURL = a}) instance FromJSON PlayReadyDrm where parseJSON @@ -2098,43 +2101,43 @@ playlist :: Playlist playlist = Playlist' - { _pStatus = Nothing - , _pPlayReadyDrm = Nothing - , _pFormat = Nothing - , _pOutputKeys = Nothing - , _pName = Nothing - , _pStatusDetail = Nothing - , _pHlsContentProtection = Nothing - } + { _pStatus = Nothing + , _pPlayReadyDrm = Nothing + , _pFormat = Nothing + , _pOutputKeys = Nothing + , _pName = Nothing + , _pStatusDetail = Nothing + , _pHlsContentProtection = Nothing + } -- | The status of the job with which the playlist is associated. pStatus :: Lens' Playlist (Maybe Text) -pStatus = lens _pStatus (\ s a -> s{_pStatus = a}); +pStatus = lens _pStatus (\ s a -> s{_pStatus = a}) -- | The DRM settings, if any, that you want Elastic Transcoder to apply to the output files associated with this playlist. pPlayReadyDrm :: Lens' Playlist (Maybe PlayReadyDrm) -pPlayReadyDrm = lens _pPlayReadyDrm (\ s a -> s{_pPlayReadyDrm = a}); +pPlayReadyDrm = lens _pPlayReadyDrm (\ s a -> s{_pPlayReadyDrm = a}) -- | The format of the output playlist. Valid formats include @HLSv3@ , @HLSv4@ , and @Smooth@ . pFormat :: Lens' Playlist (Maybe Text) -pFormat = lens _pFormat (\ s a -> s{_pFormat = a}); +pFormat = lens _pFormat (\ s a -> s{_pFormat = a}) -- | For each output in this job that you want to include in a master playlist, the value of the Outputs:Key object. * If your output is not @HLS@ or does not have a segment duration set, the name of the output file is a concatenation of @OutputKeyPrefix@ and @Outputs:Key@ : OutputKeyPrefix@Outputs:Key@ * If your output is @HLSv3@ and has a segment duration set, or is not included in a playlist, Elastic Transcoder creates an output playlist file with a file extension of @.m3u8@ , and a series of @.ts@ files that include a five-digit sequential counter beginning with 00000: OutputKeyPrefix@Outputs:Key@ .m3u8 OutputKeyPrefix@Outputs:Key@ 00000.ts * If your output is @HLSv4@ , has a segment duration set, and is included in an @HLSv4@ playlist, Elastic Transcoder creates an output playlist file with a file extension of @_v4.m3u8@ . If the output is video, Elastic Transcoder also creates an output file with an extension of @_iframe.m3u8@ : OutputKeyPrefix@Outputs:Key@ _v4.m3u8 OutputKeyPrefix@Outputs:Key@ _iframe.m3u8 OutputKeyPrefix@Outputs:Key@ .ts Elastic Transcoder automatically appends the relevant file extension to the file name. If you include a file extension in Output Key, the file name will have two extensions. If you include more than one output in a playlist, any segment duration settings, clip settings, or caption settings must be the same for all outputs in the playlist. For @Smooth@ playlists, the @Audio:Profile@ , @Video:Profile@ , and @Video:FrameRate@ to @Video:KeyframesMaxDist@ ratio must be the same for all outputs. pOutputKeys :: Lens' Playlist [Text] -pOutputKeys = lens _pOutputKeys (\ s a -> s{_pOutputKeys = a}) . _Default . _Coerce; +pOutputKeys = lens _pOutputKeys (\ s a -> s{_pOutputKeys = a}) . _Default . _Coerce -- | The name that you want Elastic Transcoder to assign to the master playlist, for example, nyc-vacation.m3u8. If the name includes a @/@ character, the section of the name before the last @/@ must be identical for all @Name@ objects. If you create more than one master playlist, the values of all @Name@ objects must be unique. pName :: Lens' Playlist (Maybe Text) -pName = lens _pName (\ s a -> s{_pName = a}); +pName = lens _pName (\ s a -> s{_pName = a}) -- | Information that further explains the status. pStatusDetail :: Lens' Playlist (Maybe Text) -pStatusDetail = lens _pStatusDetail (\ s a -> s{_pStatusDetail = a}); +pStatusDetail = lens _pStatusDetail (\ s a -> s{_pStatusDetail = a}) -- | The HLS content protection settings, if any, that you want Elastic Transcoder to apply to the output files associated with this playlist. pHlsContentProtection :: Lens' Playlist (Maybe HlsContentProtection) -pHlsContentProtection = lens _pHlsContentProtection (\ s a -> s{_pHlsContentProtection = a}); +pHlsContentProtection = lens _pHlsContentProtection (\ s a -> s{_pHlsContentProtection = a}) instance FromJSON Playlist where parseJSON @@ -2195,53 +2198,53 @@ preset :: Preset preset = Preset' - { _preARN = Nothing - , _preVideo = Nothing - , _preThumbnails = Nothing - , _preName = Nothing - , _preContainer = Nothing - , _preId = Nothing - , _preType = Nothing - , _preDescription = Nothing - , _preAudio = Nothing - } + { _preARN = Nothing + , _preVideo = Nothing + , _preThumbnails = Nothing + , _preName = Nothing + , _preContainer = Nothing + , _preId = Nothing + , _preType = Nothing + , _preDescription = Nothing + , _preAudio = Nothing + } -- | The Amazon Resource Name (ARN) for the preset. preARN :: Lens' Preset (Maybe Text) -preARN = lens _preARN (\ s a -> s{_preARN = a}); +preARN = lens _preARN (\ s a -> s{_preARN = a}) -- | A section of the response body that provides information about the video preset values. preVideo :: Lens' Preset (Maybe VideoParameters) -preVideo = lens _preVideo (\ s a -> s{_preVideo = a}); +preVideo = lens _preVideo (\ s a -> s{_preVideo = a}) -- | A section of the response body that provides information about the thumbnail preset values, if any. preThumbnails :: Lens' Preset (Maybe Thumbnails) -preThumbnails = lens _preThumbnails (\ s a -> s{_preThumbnails = a}); +preThumbnails = lens _preThumbnails (\ s a -> s{_preThumbnails = a}) -- | The name of the preset. preName :: Lens' Preset (Maybe Text) -preName = lens _preName (\ s a -> s{_preName = a}); +preName = lens _preName (\ s a -> s{_preName = a}) -- | The container type for the output file. Valid values include @flac@ , @flv@ , @fmp4@ , @gif@ , @mp3@ , @mp4@ , @mpg@ , @mxf@ , @oga@ , @ogg@ , @ts@ , and @webm@ . preContainer :: Lens' Preset (Maybe Text) -preContainer = lens _preContainer (\ s a -> s{_preContainer = a}); +preContainer = lens _preContainer (\ s a -> s{_preContainer = a}) -- | Identifier for the new preset. You use this value to get settings for the preset or to delete it. preId :: Lens' Preset (Maybe Text) -preId = lens _preId (\ s a -> s{_preId = a}); +preId = lens _preId (\ s a -> s{_preId = a}) -- | Whether the preset is a default preset provided by Elastic Transcoder (@System@ ) or a preset that you have defined (@Custom@ ). preType :: Lens' Preset (Maybe Text) -preType = lens _preType (\ s a -> s{_preType = a}); +preType = lens _preType (\ s a -> s{_preType = a}) -- | A description of the preset. preDescription :: Lens' Preset (Maybe Text) -preDescription = lens _preDescription (\ s a -> s{_preDescription = a}); +preDescription = lens _preDescription (\ s a -> s{_preDescription = a}) -- | A section of the response body that provides information about the audio preset values. preAudio :: Lens' Preset (Maybe AudioParameters) -preAudio = lens _preAudio (\ s a -> s{_preAudio = a}); +preAudio = lens _preAudio (\ s a -> s{_preAudio = a}) instance FromJSON Preset where parseJSON @@ -2311,58 +2314,58 @@ presetWatermark :: PresetWatermark presetWatermark = PresetWatermark' - { _pwVerticalAlign = Nothing - , _pwSizingPolicy = Nothing - , _pwHorizontalOffset = Nothing - , _pwMaxHeight = Nothing - , _pwOpacity = Nothing - , _pwVerticalOffset = Nothing - , _pwMaxWidth = Nothing - , _pwId = Nothing - , _pwHorizontalAlign = Nothing - , _pwTarget = Nothing - } + { _pwVerticalAlign = Nothing + , _pwSizingPolicy = Nothing + , _pwHorizontalOffset = Nothing + , _pwMaxHeight = Nothing + , _pwOpacity = Nothing + , _pwVerticalOffset = Nothing + , _pwMaxWidth = Nothing + , _pwId = Nothing + , _pwHorizontalAlign = Nothing + , _pwTarget = Nothing + } -- | The vertical position of the watermark unless you specify a non-zero value for @VerticalOffset@ : * __Top__ : The top edge of the watermark is aligned with the top border of the video. * __Bottom__ : The bottom edge of the watermark is aligned with the bottom border of the video. * __Center__ : The watermark is centered between the top and bottom borders. pwVerticalAlign :: Lens' PresetWatermark (Maybe Text) -pwVerticalAlign = lens _pwVerticalAlign (\ s a -> s{_pwVerticalAlign = a}); +pwVerticalAlign = lens _pwVerticalAlign (\ s a -> s{_pwVerticalAlign = a}) -- | A value that controls scaling of the watermark: * __Fit__ : Elastic Transcoder scales the watermark so it matches the value that you specified in either @MaxWidth@ or @MaxHeight@ without exceeding the other value. * __Stretch__ : Elastic Transcoder stretches the watermark to match the values that you specified for @MaxWidth@ and @MaxHeight@ . If the relative proportions of the watermark and the values of @MaxWidth@ and @MaxHeight@ are different, the watermark will be distorted. * __ShrinkToFit__ : Elastic Transcoder scales the watermark down so that its dimensions match the values that you specified for at least one of @MaxWidth@ and @MaxHeight@ without exceeding either value. If you specify this option, Elastic Transcoder does not scale the watermark up. pwSizingPolicy :: Lens' PresetWatermark (Maybe Text) -pwSizingPolicy = lens _pwSizingPolicy (\ s a -> s{_pwSizingPolicy = a}); +pwSizingPolicy = lens _pwSizingPolicy (\ s a -> s{_pwSizingPolicy = a}) -- | The amount by which you want the horizontal position of the watermark to be offset from the position specified by HorizontalAlign: * number of pixels (px): The minimum value is 0 pixels, and the maximum value is the value of MaxWidth. * integer percentage (%): The range of valid values is 0 to 100. For example, if you specify Left for @HorizontalAlign@ and 5px for @HorizontalOffset@ , the left side of the watermark appears 5 pixels from the left border of the output video. @HorizontalOffset@ is only valid when the value of @HorizontalAlign@ is @Left@ or @Right@ . If you specify an offset that causes the watermark to extend beyond the left or right border and Elastic Transcoder has not added black bars, the watermark is cropped. If Elastic Transcoder has added black bars, the watermark extends into the black bars. If the watermark extends beyond the black bars, it is cropped. Use the value of @Target@ to specify whether you want to include the black bars that are added by Elastic Transcoder, if any, in the offset calculation. pwHorizontalOffset :: Lens' PresetWatermark (Maybe Text) -pwHorizontalOffset = lens _pwHorizontalOffset (\ s a -> s{_pwHorizontalOffset = a}); +pwHorizontalOffset = lens _pwHorizontalOffset (\ s a -> s{_pwHorizontalOffset = a}) -- | The maximum height of the watermark in one of the following formats: * number of pixels (px): The minimum value is 16 pixels, and the maximum value is the value of @MaxHeight@ . * integer percentage (%): The range of valid values is 0 to 100. Use the value of @Target@ to specify whether you want Elastic Transcoder to include the black bars that are added by Elastic Transcoder, if any, in the calculation. If you specify the value in pixels, it must be less than or equal to the value of @MaxHeight@ . pwMaxHeight :: Lens' PresetWatermark (Maybe Text) -pwMaxHeight = lens _pwMaxHeight (\ s a -> s{_pwMaxHeight = a}); +pwMaxHeight = lens _pwMaxHeight (\ s a -> s{_pwMaxHeight = a}) -- | A percentage that indicates how much you want a watermark to obscure the video in the location where it appears. Valid values are 0 (the watermark is invisible) to 100 (the watermark completely obscures the video in the specified location). The datatype of @Opacity@ is float. Elastic Transcoder supports transparent .png graphics. If you use a transparent .png, the transparent portion of the video appears as if you had specified a value of 0 for @Opacity@ . The .jpg file format doesn't support transparency. pwOpacity :: Lens' PresetWatermark (Maybe Text) -pwOpacity = lens _pwOpacity (\ s a -> s{_pwOpacity = a}); +pwOpacity = lens _pwOpacity (\ s a -> s{_pwOpacity = a}) -- | @VerticalOffset@ The amount by which you want the vertical position of the watermark to be offset from the position specified by VerticalAlign: * number of pixels (px): The minimum value is 0 pixels, and the maximum value is the value of @MaxHeight@ . * integer percentage (%): The range of valid values is 0 to 100. For example, if you specify @Top@ for @VerticalAlign@ and @5px@ for @VerticalOffset@ , the top of the watermark appears 5 pixels from the top border of the output video. @VerticalOffset@ is only valid when the value of VerticalAlign is Top or Bottom. If you specify an offset that causes the watermark to extend beyond the top or bottom border and Elastic Transcoder has not added black bars, the watermark is cropped. If Elastic Transcoder has added black bars, the watermark extends into the black bars. If the watermark extends beyond the black bars, it is cropped. Use the value of @Target@ to specify whether you want Elastic Transcoder to include the black bars that are added by Elastic Transcoder, if any, in the offset calculation. pwVerticalOffset :: Lens' PresetWatermark (Maybe Text) -pwVerticalOffset = lens _pwVerticalOffset (\ s a -> s{_pwVerticalOffset = a}); +pwVerticalOffset = lens _pwVerticalOffset (\ s a -> s{_pwVerticalOffset = a}) -- | The maximum width of the watermark in one of the following formats: * number of pixels (px): The minimum value is 16 pixels, and the maximum value is the value of @MaxWidth@ . * integer percentage (%): The range of valid values is 0 to 100. Use the value of @Target@ to specify whether you want Elastic Transcoder to include the black bars that are added by Elastic Transcoder, if any, in the calculation. If you specify the value in pixels, it must be less than or equal to the value of @MaxWidth@ . pwMaxWidth :: Lens' PresetWatermark (Maybe Text) -pwMaxWidth = lens _pwMaxWidth (\ s a -> s{_pwMaxWidth = a}); +pwMaxWidth = lens _pwMaxWidth (\ s a -> s{_pwMaxWidth = a}) -- | A unique identifier for the settings for one watermark. The value of @Id@ can be up to 40 characters long. pwId :: Lens' PresetWatermark (Maybe Text) -pwId = lens _pwId (\ s a -> s{_pwId = a}); +pwId = lens _pwId (\ s a -> s{_pwId = a}) -- | The horizontal position of the watermark unless you specify a non-zero value for @HorizontalOffset@ : * __Left__ : The left edge of the watermark is aligned with the left border of the video. * __Right__ : The right edge of the watermark is aligned with the right border of the video. * __Center__ : The watermark is centered between the left and right borders. pwHorizontalAlign :: Lens' PresetWatermark (Maybe Text) -pwHorizontalAlign = lens _pwHorizontalAlign (\ s a -> s{_pwHorizontalAlign = a}); +pwHorizontalAlign = lens _pwHorizontalAlign (\ s a -> s{_pwHorizontalAlign = a}) -- | A value that determines how Elastic Transcoder interprets values that you specified for @HorizontalOffset@ , @VerticalOffset@ , @MaxWidth@ , and @MaxHeight@ : * __Content__ : @HorizontalOffset@ and @VerticalOffset@ values are calculated based on the borders of the video excluding black bars added by Elastic Transcoder, if any. In addition, @MaxWidth@ and @MaxHeight@ , if specified as a percentage, are calculated based on the borders of the video excluding black bars added by Elastic Transcoder, if any. * __Frame__ : @HorizontalOffset@ and @VerticalOffset@ values are calculated based on the borders of the video including black bars added by Elastic Transcoder, if any. In addition, @MaxWidth@ and @MaxHeight@ , if specified as a percentage, are calculated based on the borders of the video including black bars added by Elastic Transcoder, if any. pwTarget :: Lens' PresetWatermark (Maybe Text) -pwTarget = lens _pwTarget (\ s a -> s{_pwTarget = a}); +pwTarget = lens _pwTarget (\ s a -> s{_pwTarget = a}) instance FromJSON PresetWatermark where parseJSON @@ -2437,48 +2440,48 @@ thumbnails :: Thumbnails thumbnails = Thumbnails' - { _tSizingPolicy = Nothing - , _tFormat = Nothing - , _tMaxHeight = Nothing - , _tResolution = Nothing - , _tAspectRatio = Nothing - , _tPaddingPolicy = Nothing - , _tInterval = Nothing - , _tMaxWidth = Nothing - } + { _tSizingPolicy = Nothing + , _tFormat = Nothing + , _tMaxHeight = Nothing + , _tResolution = Nothing + , _tAspectRatio = Nothing + , _tPaddingPolicy = Nothing + , _tInterval = Nothing + , _tMaxWidth = Nothing + } -- | Specify one of the following values to control scaling of thumbnails: * @Fit@ : Elastic Transcoder scales thumbnails so they match the value that you specified in thumbnail MaxWidth or MaxHeight settings without exceeding the other value. * @Fill@ : Elastic Transcoder scales thumbnails so they match the value that you specified in thumbnail @MaxWidth@ or @MaxHeight@ settings and matches or exceeds the other value. Elastic Transcoder centers the image in thumbnails and then crops in the dimension (if any) that exceeds the maximum value. * @Stretch@ : Elastic Transcoder stretches thumbnails to match the values that you specified for thumbnail @MaxWidth@ and @MaxHeight@ settings. If the relative proportions of the input video and thumbnails are different, the thumbnails will be distorted. * @Keep@ : Elastic Transcoder does not scale thumbnails. If either dimension of the input video exceeds the values that you specified for thumbnail @MaxWidth@ and @MaxHeight@ settings, Elastic Transcoder crops the thumbnails. * @ShrinkToFit@ : Elastic Transcoder scales thumbnails down so that their dimensions match the values that you specified for at least one of thumbnail @MaxWidth@ and @MaxHeight@ without exceeding either value. If you specify this option, Elastic Transcoder does not scale thumbnails up. * @ShrinkToFill@ : Elastic Transcoder scales thumbnails down so that their dimensions match the values that you specified for at least one of @MaxWidth@ and @MaxHeight@ without dropping below either value. If you specify this option, Elastic Transcoder does not scale thumbnails up. tSizingPolicy :: Lens' Thumbnails (Maybe Text) -tSizingPolicy = lens _tSizingPolicy (\ s a -> s{_tSizingPolicy = a}); +tSizingPolicy = lens _tSizingPolicy (\ s a -> s{_tSizingPolicy = a}) -- | The format of thumbnails, if any. Valid values are @jpg@ and @png@ . You specify whether you want Elastic Transcoder to create thumbnails when you create a job. tFormat :: Lens' Thumbnails (Maybe Text) -tFormat = lens _tFormat (\ s a -> s{_tFormat = a}); +tFormat = lens _tFormat (\ s a -> s{_tFormat = a}) -- | The maximum height of thumbnails in pixels. If you specify auto, Elastic Transcoder uses 1080 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 32 and 3072. tMaxHeight :: Lens' Thumbnails (Maybe Text) -tMaxHeight = lens _tMaxHeight (\ s a -> s{_tMaxHeight = a}); +tMaxHeight = lens _tMaxHeight (\ s a -> s{_tMaxHeight = a}) -- | /Important:/ To better control resolution and aspect ratio of thumbnails, we recommend that you use the values @MaxWidth@ , @MaxHeight@ , @SizingPolicy@ , and @PaddingPolicy@ instead of @Resolution@ and @AspectRatio@ . The two groups of settings are mutually exclusive. Do not use them together. The width and height of thumbnail files in pixels. Specify a value in the format @/width/ @ x @/height/ @ where both values are even integers. The values cannot exceed the width and height that you specified in the @Video:Resolution@ object. tResolution :: Lens' Thumbnails (Maybe Text) -tResolution = lens _tResolution (\ s a -> s{_tResolution = a}); +tResolution = lens _tResolution (\ s a -> s{_tResolution = a}) -- | /Important:/ To better control resolution and aspect ratio of thumbnails, we recommend that you use the values @MaxWidth@ , @MaxHeight@ , @SizingPolicy@ , and @PaddingPolicy@ instead of @Resolution@ and @AspectRatio@ . The two groups of settings are mutually exclusive. Do not use them together. The aspect ratio of thumbnails. Valid values include: @auto@ , @1:1@ , @4:3@ , @3:2@ , @16:9@ If you specify @auto@ , Elastic Transcoder tries to preserve the aspect ratio of the video in the output file. tAspectRatio :: Lens' Thumbnails (Maybe Text) -tAspectRatio = lens _tAspectRatio (\ s a -> s{_tAspectRatio = a}); +tAspectRatio = lens _tAspectRatio (\ s a -> s{_tAspectRatio = a}) -- | When you set @PaddingPolicy@ to @Pad@ , Elastic Transcoder may add black bars to the top and bottom and/or left and right sides of thumbnails to make the total size of the thumbnails match the values that you specified for thumbnail @MaxWidth@ and @MaxHeight@ settings. tPaddingPolicy :: Lens' Thumbnails (Maybe Text) -tPaddingPolicy = lens _tPaddingPolicy (\ s a -> s{_tPaddingPolicy = a}); +tPaddingPolicy = lens _tPaddingPolicy (\ s a -> s{_tPaddingPolicy = a}) -- | The approximate number of seconds between thumbnails. Specify an integer value. tInterval :: Lens' Thumbnails (Maybe Text) -tInterval = lens _tInterval (\ s a -> s{_tInterval = a}); +tInterval = lens _tInterval (\ s a -> s{_tInterval = a}) -- | The maximum width of thumbnails in pixels. If you specify auto, Elastic Transcoder uses 1920 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 32 and 4096. tMaxWidth :: Lens' Thumbnails (Maybe Text) -tMaxWidth = lens _tMaxWidth (\ s a -> s{_tMaxWidth = a}); +tMaxWidth = lens _tMaxWidth (\ s a -> s{_tMaxWidth = a}) instance FromJSON Thumbnails where parseJSON @@ -2535,11 +2538,11 @@ timeSpan = TimeSpan' {_tsStartTime = Nothing, _tsDuration = Nothing} -- | The place in the input file where you want a clip to start. The format can be either HH:mm:ss.SSS (maximum value: 23:59:59.999; SSS is thousandths of a second) or sssss.SSS (maximum value: 86399.999). If you don't specify a value, Elastic Transcoder starts at the beginning of the input file. tsStartTime :: Lens' TimeSpan (Maybe Text) -tsStartTime = lens _tsStartTime (\ s a -> s{_tsStartTime = a}); +tsStartTime = lens _tsStartTime (\ s a -> s{_tsStartTime = a}) -- | The duration of the clip. The format can be either HH:mm:ss.SSS (maximum value: 23:59:59.999; SSS is thousandths of a second) or sssss.SSS (maximum value: 86399.999). If you don't specify a value, Elastic Transcoder creates an output file from StartTime to the end of the file. If you specify a value longer than the duration of the input file, Elastic Transcoder transcodes the file and returns a warning message. tsDuration :: Lens' TimeSpan (Maybe Text) -tsDuration = lens _tsDuration (\ s a -> s{_tsDuration = a}); +tsDuration = lens _tsDuration (\ s a -> s{_tsDuration = a}) instance FromJSON TimeSpan where parseJSON @@ -2584,23 +2587,23 @@ timing :: Timing timing = Timing' - { _tSubmitTimeMillis = Nothing - , _tFinishTimeMillis = Nothing - , _tStartTimeMillis = Nothing - } + { _tSubmitTimeMillis = Nothing + , _tFinishTimeMillis = Nothing + , _tStartTimeMillis = Nothing + } -- | The time the job was submitted to Elastic Transcoder, in epoch milliseconds. tSubmitTimeMillis :: Lens' Timing (Maybe Integer) -tSubmitTimeMillis = lens _tSubmitTimeMillis (\ s a -> s{_tSubmitTimeMillis = a}); +tSubmitTimeMillis = lens _tSubmitTimeMillis (\ s a -> s{_tSubmitTimeMillis = a}) -- | The time the job finished transcoding, in epoch milliseconds. tFinishTimeMillis :: Lens' Timing (Maybe Integer) -tFinishTimeMillis = lens _tFinishTimeMillis (\ s a -> s{_tFinishTimeMillis = a}); +tFinishTimeMillis = lens _tFinishTimeMillis (\ s a -> s{_tFinishTimeMillis = a}) -- | The time the job began transcoding, in epoch milliseconds. tStartTimeMillis :: Lens' Timing (Maybe Integer) -tStartTimeMillis = lens _tStartTimeMillis (\ s a -> s{_tStartTimeMillis = a}); +tStartTimeMillis = lens _tStartTimeMillis (\ s a -> s{_tStartTimeMillis = a}) instance FromJSON Timing where parseJSON @@ -2676,83 +2679,83 @@ videoParameters :: VideoParameters videoParameters = VideoParameters' - { _vpKeyframesMaxDist = Nothing - , _vpFrameRate = Nothing - , _vpSizingPolicy = Nothing - , _vpMaxFrameRate = Nothing - , _vpMaxHeight = Nothing - , _vpWatermarks = Nothing - , _vpDisplayAspectRatio = Nothing - , _vpResolution = Nothing - , _vpCodec = Nothing - , _vpAspectRatio = Nothing - , _vpPaddingPolicy = Nothing - , _vpMaxWidth = Nothing - , _vpBitRate = Nothing - , _vpFixedGOP = Nothing - , _vpCodecOptions = Nothing - } + { _vpKeyframesMaxDist = Nothing + , _vpFrameRate = Nothing + , _vpSizingPolicy = Nothing + , _vpMaxFrameRate = Nothing + , _vpMaxHeight = Nothing + , _vpWatermarks = Nothing + , _vpDisplayAspectRatio = Nothing + , _vpResolution = Nothing + , _vpCodec = Nothing + , _vpAspectRatio = Nothing + , _vpPaddingPolicy = Nothing + , _vpMaxWidth = Nothing + , _vpBitRate = Nothing + , _vpFixedGOP = Nothing + , _vpCodecOptions = Nothing + } -- | Applicable only when the value of Video:Codec is one of @H.264@ , @MPEG2@ , or @VP8@ . The maximum number of frames between key frames. Key frames are fully encoded frames; the frames between key frames are encoded based, in part, on the content of the key frames. The value is an integer formatted as a string; valid values are between 1 (every frame is a key frame) and 100000, inclusive. A higher value results in higher compression but may also discernibly decrease video quality. For @Smooth@ outputs, the @FrameRate@ must have a constant ratio to the @KeyframesMaxDist@ . This allows @Smooth@ playlists to switch between different quality levels while the file is being played. For example, an input file can have a @FrameRate@ of 30 with a @KeyframesMaxDist@ of 90. The output file then needs to have a ratio of 1:3. Valid outputs would have @FrameRate@ of 30, 25, and 10, and @KeyframesMaxDist@ of 90, 75, and 30, respectively. Alternately, this can be achieved by setting @FrameRate@ to auto and having the same values for @MaxFrameRate@ and @KeyframesMaxDist@ . vpKeyframesMaxDist :: Lens' VideoParameters (Maybe Text) -vpKeyframesMaxDist = lens _vpKeyframesMaxDist (\ s a -> s{_vpKeyframesMaxDist = a}); +vpKeyframesMaxDist = lens _vpKeyframesMaxDist (\ s a -> s{_vpKeyframesMaxDist = a}) -- | The frames per second for the video stream in the output file. Valid values include: @auto@ , @10@ , @15@ , @23.97@ , @24@ , @25@ , @29.97@ , @30@ , @60@ If you specify @auto@ , Elastic Transcoder uses the detected frame rate of the input source. If you specify a frame rate, we recommend that you perform the following calculation: @Frame rate = maximum recommended decoding speed in luma samples/second / (width in pixels * height in pixels)@ where: * /width in pixels/ and /height in pixels/ represent the Resolution of the output video. * /maximum recommended decoding speed in Luma samples\/second/ is less than or equal to the maximum value listed in the following table, based on the value that you specified for Level. The maximum recommended decoding speed in Luma samples/second for each level is described in the following list (/Level - Decoding speed/ ): * 1 - 380160 * 1b - 380160 * 1.1 - 76800 * 1.2 - 1536000 * 1.3 - 3041280 * 2 - 3041280 * 2.1 - 5068800 * 2.2 - 5184000 * 3 - 10368000 * 3.1 - 27648000 * 3.2 - 55296000 * 4 - 62914560 * 4.1 - 62914560 vpFrameRate :: Lens' VideoParameters (Maybe Text) -vpFrameRate = lens _vpFrameRate (\ s a -> s{_vpFrameRate = a}); +vpFrameRate = lens _vpFrameRate (\ s a -> s{_vpFrameRate = a}) -- | Specify one of the following values to control scaling of the output video: * @Fit@ : Elastic Transcoder scales the output video so it matches the value that you specified in either @MaxWidth@ or @MaxHeight@ without exceeding the other value. * @Fill@ : Elastic Transcoder scales the output video so it matches the value that you specified in either @MaxWidth@ or @MaxHeight@ and matches or exceeds the other value. Elastic Transcoder centers the output video and then crops it in the dimension (if any) that exceeds the maximum value. * @Stretch@ : Elastic Transcoder stretches the output video to match the values that you specified for @MaxWidth@ and @MaxHeight@ . If the relative proportions of the input video and the output video are different, the output video will be distorted. * @Keep@ : Elastic Transcoder does not scale the output video. If either dimension of the input video exceeds the values that you specified for @MaxWidth@ and @MaxHeight@ , Elastic Transcoder crops the output video. * @ShrinkToFit@ : Elastic Transcoder scales the output video down so that its dimensions match the values that you specified for at least one of @MaxWidth@ and @MaxHeight@ without exceeding either value. If you specify this option, Elastic Transcoder does not scale the video up. * @ShrinkToFill@ : Elastic Transcoder scales the output video down so that its dimensions match the values that you specified for at least one of @MaxWidth@ and @MaxHeight@ without dropping below either value. If you specify this option, Elastic Transcoder does not scale the video up. vpSizingPolicy :: Lens' VideoParameters (Maybe Text) -vpSizingPolicy = lens _vpSizingPolicy (\ s a -> s{_vpSizingPolicy = a}); +vpSizingPolicy = lens _vpSizingPolicy (\ s a -> s{_vpSizingPolicy = a}) -- | If you specify @auto@ for @FrameRate@ , Elastic Transcoder uses the frame rate of the input video for the frame rate of the output video. Specify the maximum frame rate that you want Elastic Transcoder to use when the frame rate of the input video is greater than the desired maximum frame rate of the output video. Valid values include: @10@ , @15@ , @23.97@ , @24@ , @25@ , @29.97@ , @30@ , @60@ . vpMaxFrameRate :: Lens' VideoParameters (Maybe Text) -vpMaxFrameRate = lens _vpMaxFrameRate (\ s a -> s{_vpMaxFrameRate = a}); +vpMaxFrameRate = lens _vpMaxFrameRate (\ s a -> s{_vpMaxFrameRate = a}) -- | The maximum height of the output video in pixels. If you specify @auto@ , Elastic Transcoder uses 1080 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 96 and 3072. vpMaxHeight :: Lens' VideoParameters (Maybe Text) -vpMaxHeight = lens _vpMaxHeight (\ s a -> s{_vpMaxHeight = a}); +vpMaxHeight = lens _vpMaxHeight (\ s a -> s{_vpMaxHeight = a}) -- | Settings for the size, location, and opacity of graphics that you want Elastic Transcoder to overlay over videos that are transcoded using this preset. You can specify settings for up to four watermarks. Watermarks appear in the specified size and location, and with the specified opacity for the duration of the transcoded video. Watermarks can be in .png or .jpg format. If you want to display a watermark that is not rectangular, use the .png format, which supports transparency. When you create a job that uses this preset, you specify the .png or .jpg graphics that you want Elastic Transcoder to include in the transcoded videos. You can specify fewer graphics in the job than you specify watermark settings in the preset, which allows you to use the same preset for up to four watermarks that have different dimensions. vpWatermarks :: Lens' VideoParameters [PresetWatermark] -vpWatermarks = lens _vpWatermarks (\ s a -> s{_vpWatermarks = a}) . _Default . _Coerce; +vpWatermarks = lens _vpWatermarks (\ s a -> s{_vpWatermarks = a}) . _Default . _Coerce -- | The value that Elastic Transcoder adds to the metadata in the output file. vpDisplayAspectRatio :: Lens' VideoParameters (Maybe Text) -vpDisplayAspectRatio = lens _vpDisplayAspectRatio (\ s a -> s{_vpDisplayAspectRatio = a}); +vpDisplayAspectRatio = lens _vpDisplayAspectRatio (\ s a -> s{_vpDisplayAspectRatio = a}) -- | /Important:/ To better control resolution and aspect ratio of output videos, we recommend that you use the values @MaxWidth@ , @MaxHeight@ , @SizingPolicy@ , @PaddingPolicy@ , and @DisplayAspectRatio@ instead of @Resolution@ and @AspectRatio@ . The two groups of settings are mutually exclusive. Do not use them together. The width and height of the video in the output file, in pixels. Valid values are @auto@ and /width/ x /height/ : * @auto@ : Elastic Transcoder attempts to preserve the width and height of the input file, subject to the following rules. * @/width/ x /height/ @ : The width and height of the output video in pixels. Note the following about specifying the width and height: * The width must be an even integer between 128 and 4096, inclusive. * The height must be an even integer between 96 and 3072, inclusive. * If you specify a resolution that is less than the resolution of the input file, Elastic Transcoder rescales the output file to the lower resolution. * If you specify a resolution that is greater than the resolution of the input file, Elastic Transcoder rescales the output to the higher resolution. * We recommend that you specify a resolution for which the product of width and height is less than or equal to the applicable value in the following list (/List - Max width x height value/ ): * 1 - 25344 * 1b - 25344 * 1.1 - 101376 * 1.2 - 101376 * 1.3 - 101376 * 2 - 101376 * 2.1 - 202752 * 2.2 - 404720 * 3 - 404720 * 3.1 - 921600 * 3.2 - 1310720 * 4 - 2097152 * 4.1 - 2097152 vpResolution :: Lens' VideoParameters (Maybe Text) -vpResolution = lens _vpResolution (\ s a -> s{_vpResolution = a}); +vpResolution = lens _vpResolution (\ s a -> s{_vpResolution = a}) -- | The video codec for the output file. Valid values include @gif@ , @H.264@ , @mpeg2@ , @vp8@ , and @vp9@ . You can only specify @vp8@ and @vp9@ when the container type is @webm@ , @gif@ when the container type is @gif@ , and @mpeg2@ when the container type is @mpg@ . vpCodec :: Lens' VideoParameters (Maybe Text) -vpCodec = lens _vpCodec (\ s a -> s{_vpCodec = a}); +vpCodec = lens _vpCodec (\ s a -> s{_vpCodec = a}) -- | /Important:/ To better control resolution and aspect ratio of output videos, we recommend that you use the values @MaxWidth@ , @MaxHeight@ , @SizingPolicy@ , @PaddingPolicy@ , and @DisplayAspectRatio@ instead of @Resolution@ and @AspectRatio@ . The two groups of settings are mutually exclusive. Do not use them together. The display aspect ratio of the video in the output file. Valid values include: @auto@ , @1:1@ , @4:3@ , @3:2@ , @16:9@ If you specify @auto@ , Elastic Transcoder tries to preserve the aspect ratio of the input file. If you specify an aspect ratio for the output file that differs from aspect ratio of the input file, Elastic Transcoder adds pillarboxing (black bars on the sides) or letterboxing (black bars on the top and bottom) to maintain the aspect ratio of the active region of the video. vpAspectRatio :: Lens' VideoParameters (Maybe Text) -vpAspectRatio = lens _vpAspectRatio (\ s a -> s{_vpAspectRatio = a}); +vpAspectRatio = lens _vpAspectRatio (\ s a -> s{_vpAspectRatio = a}) -- | When you set @PaddingPolicy@ to @Pad@ , Elastic Transcoder may add black bars to the top and bottom and/or left and right sides of the output video to make the total size of the output video match the values that you specified for @MaxWidth@ and @MaxHeight@ . vpPaddingPolicy :: Lens' VideoParameters (Maybe Text) -vpPaddingPolicy = lens _vpPaddingPolicy (\ s a -> s{_vpPaddingPolicy = a}); +vpPaddingPolicy = lens _vpPaddingPolicy (\ s a -> s{_vpPaddingPolicy = a}) -- | The maximum width of the output video in pixels. If you specify @auto@ , Elastic Transcoder uses 1920 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 128 and 4096. vpMaxWidth :: Lens' VideoParameters (Maybe Text) -vpMaxWidth = lens _vpMaxWidth (\ s a -> s{_vpMaxWidth = a}); +vpMaxWidth = lens _vpMaxWidth (\ s a -> s{_vpMaxWidth = a}) -- | The bit rate of the video stream in the output file, in kilobits/second. Valid values depend on the values of @Level@ and @Profile@ . If you specify @auto@ , Elastic Transcoder uses the detected bit rate of the input source. If you specify a value other than @auto@ , we recommend that you specify a value less than or equal to the maximum H.264-compliant value listed for your level and profile: /Level - Maximum video bit rate in kilobits\/second (baseline and main Profile) : maximum video bit rate in kilobits\/second (high Profile)/ * 1 - 64 : 80 * 1b - 128 : 160 * 1.1 - 192 : 240 * 1.2 - 384 : 480 * 1.3 - 768 : 960 * 2 - 2000 : 2500 * 3 - 10000 : 12500 * 3.1 - 14000 : 17500 * 3.2 - 20000 : 25000 * 4 - 20000 : 25000 * 4.1 - 50000 : 62500 vpBitRate :: Lens' VideoParameters (Maybe Text) -vpBitRate = lens _vpBitRate (\ s a -> s{_vpBitRate = a}); +vpBitRate = lens _vpBitRate (\ s a -> s{_vpBitRate = a}) -- | Applicable only when the value of Video:Codec is one of @H.264@ , @MPEG2@ , or @VP8@ . Whether to use a fixed value for @FixedGOP@ . Valid values are @true@ and @false@ : * @true@ : Elastic Transcoder uses the value of @KeyframesMaxDist@ for the distance between key frames (the number of frames in a group of pictures, or GOP). * @false@ : The distance between key frames can vary. /Important:/ @FixedGOP@ must be set to @true@ for @fmp4@ containers. vpFixedGOP :: Lens' VideoParameters (Maybe Text) -vpFixedGOP = lens _vpFixedGOP (\ s a -> s{_vpFixedGOP = a}); +vpFixedGOP = lens _vpFixedGOP (\ s a -> s{_vpFixedGOP = a}) -- | __Profile (H.264/VP8/VP9 Only)__ The H.264 profile that you want to use for the output file. Elastic Transcoder supports the following profiles: * @baseline@ : The profile most commonly used for videoconferencing and for mobile applications. * @main@ : The profile used for standard-definition digital TV broadcasts. * @high@ : The profile used for high-definition digital TV broadcasts and for Blu-ray discs. __Level (H.264 Only)__ The H.264 level that you want to use for the output file. Elastic Transcoder supports the following levels: @1@ , @1b@ , @1.1@ , @1.2@ , @1.3@ , @2@ , @2.1@ , @2.2@ , @3@ , @3.1@ , @3.2@ , @4@ , @4.1@ __MaxReferenceFrames (H.264 Only)__ Applicable only when the value of Video:Codec is H.264. The maximum number of previously decoded frames to use as a reference for decoding future frames. Valid values are integers 0 through 16, but we recommend that you not use a value greater than the following: @Min(Floor(Maximum decoded picture buffer in macroblocks * 256 / (Width in pixels * Height in pixels)), 16)@ where /Width in pixels/ and /Height in pixels/ represent either MaxWidth and MaxHeight, or Resolution. /Maximum decoded picture buffer in macroblocks/ depends on the value of the @Level@ object. See the list below. (A macroblock is a block of pixels measuring 16x16.) * 1 - 396 * 1b - 396 * 1.1 - 900 * 1.2 - 2376 * 1.3 - 2376 * 2 - 2376 * 2.1 - 4752 * 2.2 - 8100 * 3 - 8100 * 3.1 - 18000 * 3.2 - 20480 * 4 - 32768 * 4.1 - 32768 __MaxBitRate (Optional, H.264/MPEG2/VP8/VP9 only)__ The maximum number of bits per second in a video buffer; the size of the buffer is specified by @BufferSize@ . Specify a value between 16 and 62,500. You can reduce the bandwidth required to stream a video by reducing the maximum bit rate, but this also reduces the quality of the video. __BufferSize (Optional, H.264/MPEG2/VP8/VP9 only)__ The maximum number of bits in any x seconds of the output video. This window is commonly 10 seconds, the standard segment duration when you're using FMP4 or MPEG-TS for the container type of the output video. Specify an integer greater than 0. If you specify @MaxBitRate@ and omit @BufferSize@ , Elastic Transcoder sets @BufferSize@ to 10 times the value of @MaxBitRate@ . __InterlacedMode (Optional, H.264/MPEG2 Only)__ The interlace mode for the output video. Interlaced video is used to double the perceived frame rate for a video by interlacing two fields (one field on every other line, the other field on the other lines) so that the human eye registers multiple pictures per frame. Interlacing reduces the bandwidth required for transmitting a video, but can result in blurred images and flickering. Valid values include @Progressive@ (no interlacing, top to bottom), @TopFirst@ (top field first), @BottomFirst@ (bottom field first), and @Auto@ . If @InterlaceMode@ is not specified, Elastic Transcoder uses @Progressive@ for the output. If @Auto@ is specified, Elastic Transcoder interlaces the output. __ColorSpaceConversionMode (Optional, H.264/MPEG2 Only)__ The color space conversion Elastic Transcoder applies to the output video. Color spaces are the algorithms used by the computer to store information about how to render color. @Bt.601@ is the standard for standard definition video, while @Bt.709@ is the standard for high definition video. Valid values include @None@ , @Bt709toBt601@ , @Bt601toBt709@ , and @Auto@ . If you chose @Auto@ for @ColorSpaceConversionMode@ and your output is interlaced, your frame rate is one of @23.97@ , @24@ , @25@ , @29.97@ , @50@ , or @60@ , your @SegmentDuration@ is null, and you are using one of the resolution changes from the list below, Elastic Transcoder applies the following color space conversions: * /Standard to HD, 720x480 to 1920x1080/ - Elastic Transcoder applies @Bt601ToBt709@ * /Standard to HD, 720x576 to 1920x1080/ - Elastic Transcoder applies @Bt601ToBt709@ * /HD to Standard, 1920x1080 to 720x480/ - Elastic Transcoder applies @Bt709ToBt601@ * /HD to Standard, 1920x1080 to 720x576/ - Elastic Transcoder applies @Bt709ToBt601@ If you do not specify a @ColorSpaceConversionMode@ , Elastic Transcoder does not change the color space of a file. If you are unsure what @ColorSpaceConversionMode@ was applied to your output file, you can check the @AppliedColorSpaceConversion@ parameter included in your job response. If your job does not have an @AppliedColorSpaceConversion@ in its response, no @ColorSpaceConversionMode@ was applied. __ChromaSubsampling__ The sampling pattern for the chroma (color) channels of the output video. Valid values include @yuv420p@ and @yuv422p@ . @yuv420p@ samples the chroma information of every other horizontal and every other vertical line, @yuv422p@ samples the color information of every horizontal line and every other vertical line. __LoopCount (Gif Only)__ The number of times you want the output gif to loop. Valid values include @Infinite@ and integers between @0@ and @100@ , inclusive. vpCodecOptions :: Lens' VideoParameters (HashMap Text Text) -vpCodecOptions = lens _vpCodecOptions (\ s a -> s{_vpCodecOptions = a}) . _Default . _Map; +vpCodecOptions = lens _vpCodecOptions (\ s a -> s{_vpCodecOptions = a}) . _Default . _Map instance FromJSON VideoParameters where parseJSON @@ -2825,11 +2828,11 @@ warning = Warning' {_wCode = Nothing, _wMessage = Nothing} -- | The code of the cross-regional warning. wCode :: Lens' Warning (Maybe Text) -wCode = lens _wCode (\ s a -> s{_wCode = a}); +wCode = lens _wCode (\ s a -> s{_wCode = a}) -- | The message explaining what resources are in a different region from the pipeline. wMessage :: Lens' Warning (Maybe Text) -wMessage = lens _wMessage (\ s a -> s{_wMessage = a}); +wMessage = lens _wMessage (\ s a -> s{_wMessage = a}) instance FromJSON Warning where parseJSON diff --git a/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/UpdatePipeline.hs b/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/UpdatePipeline.hs index 425c1587261..fc369c46f14 100644 --- a/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/UpdatePipeline.hs +++ b/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/UpdatePipeline.hs @@ -95,48 +95,48 @@ updatePipeline -> UpdatePipeline updatePipeline pId_ = UpdatePipeline' - { _upInputBucket = Nothing - , _upContentConfig = Nothing - , _upRole = Nothing - , _upName = Nothing - , _upAWSKMSKeyARN = Nothing - , _upNotifications = Nothing - , _upThumbnailConfig = Nothing - , _upId = pId_ - } + { _upInputBucket = Nothing + , _upContentConfig = Nothing + , _upRole = Nothing + , _upName = Nothing + , _upAWSKMSKeyARN = Nothing + , _upNotifications = Nothing + , _upThumbnailConfig = Nothing + , _upId = pId_ + } -- | The Amazon S3 bucket in which you saved the media files that you want to transcode and the graphics that you want to use as watermarks. upInputBucket :: Lens' UpdatePipeline (Maybe Text) -upInputBucket = lens _upInputBucket (\ s a -> s{_upInputBucket = a}); +upInputBucket = lens _upInputBucket (\ s a -> s{_upInputBucket = a}) -- | The optional @ContentConfig@ object specifies information about the Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and playlists: which bucket to use, which users you want to have access to the files, the type of access you want users to have, and the storage class that you want to assign to the files. If you specify values for @ContentConfig@ , you must also specify values for @ThumbnailConfig@ . If you specify values for @ContentConfig@ and @ThumbnailConfig@ , omit the @OutputBucket@ object. * __Bucket__ : The Amazon S3 bucket in which you want Elastic Transcoder to save transcoded files and playlists. * __Permissions__ (Optional): The Permissions object specifies which users you want to have access to transcoded files and the type of access you want them to have. You can grant permissions to a maximum of 30 users and/or predefined Amazon S3 groups. * __Grantee Type__ : Specify the type of value that appears in the @Grantee@ object: * __Canonical__ : The value in the @Grantee@ object is either the canonical user ID for an AWS account or an origin access identity for an Amazon CloudFront distribution. For more information about canonical user IDs, see Access Control List (ACL) Overview in the Amazon Simple Storage Service Developer Guide. For more information about using CloudFront origin access identities to require that users use CloudFront URLs instead of Amazon S3 URLs, see Using an Origin Access Identity to Restrict Access to Your Amazon S3 Content. /Important:/ A canonical user ID is not the same as an AWS account number. * __Email__ : The value in the @Grantee@ object is the registered email address of an AWS account. * __Group__ : The value in the @Grantee@ object is one of the following predefined Amazon S3 groups: @AllUsers@ , @AuthenticatedUsers@ , or @LogDelivery@ . * __Grantee__ : The AWS user or group that you want to have access to transcoded files and playlists. To identify the user or group, you can specify the canonical user ID for an AWS account, an origin access identity for a CloudFront distribution, the registered email address of an AWS account, or a predefined Amazon S3 group * __Access__ : The permission that you want to give to the AWS user that you specified in @Grantee@ . Permissions are granted on the files that Elastic Transcoder adds to the bucket, including playlists and video files. Valid values include: * @READ@ : The grantee can read the objects and metadata for objects that Elastic Transcoder adds to the Amazon S3 bucket. * @READ_ACP@ : The grantee can read the object ACL for objects that Elastic Transcoder adds to the Amazon S3 bucket. * @WRITE_ACP@ : The grantee can write the ACL for the objects that Elastic Transcoder adds to the Amazon S3 bucket. * @FULL_CONTROL@ : The grantee has @READ@ , @READ_ACP@ , and @WRITE_ACP@ permissions for the objects that Elastic Transcoder adds to the Amazon S3 bucket. * __StorageClass__ : The Amazon S3 storage class, @Standard@ or @ReducedRedundancy@ , that you want Elastic Transcoder to assign to the video files and playlists that it stores in your Amazon S3 bucket. upContentConfig :: Lens' UpdatePipeline (Maybe PipelineOutputConfig) -upContentConfig = lens _upContentConfig (\ s a -> s{_upContentConfig = a}); +upContentConfig = lens _upContentConfig (\ s a -> s{_upContentConfig = a}) -- | The IAM Amazon Resource Name (ARN) for the role that you want Elastic Transcoder to use to transcode jobs for this pipeline. upRole :: Lens' UpdatePipeline (Maybe Text) -upRole = lens _upRole (\ s a -> s{_upRole = a}); +upRole = lens _upRole (\ s a -> s{_upRole = a}) -- | The name of the pipeline. We recommend that the name be unique within the AWS account, but uniqueness is not enforced. Constraints: Maximum 40 characters upName :: Lens' UpdatePipeline (Maybe Text) -upName = lens _upName (\ s a -> s{_upName = a}); +upName = lens _upName (\ s a -> s{_upName = a}) -- | The AWS Key Management Service (AWS KMS) key that you want to use with this pipeline. If you use either @S3@ or @S3-AWS-KMS@ as your @Encryption:Mode@ , you don't need to provide a key with your job because a default key, known as an AWS-KMS key, is created for you automatically. You need to provide an AWS-KMS key only if you want to use a non-default AWS-KMS key, or if you are using an @Encryption:Mode@ of @AES-PKCS7@ , @AES-CTR@ , or @AES-GCM@ . upAWSKMSKeyARN :: Lens' UpdatePipeline (Maybe Text) -upAWSKMSKeyARN = lens _upAWSKMSKeyARN (\ s a -> s{_upAWSKMSKeyARN = a}); +upAWSKMSKeyARN = lens _upAWSKMSKeyARN (\ s a -> s{_upAWSKMSKeyARN = a}) -- | The topic ARN for the Amazon Simple Notification Service (Amazon SNS) topic that you want to notify to report job status. /Important:/ To receive notifications, you must also subscribe to the new topic in the Amazon SNS console. * __Progressing__ : The topic ARN for the Amazon Simple Notification Service (Amazon SNS) topic that you want to notify when Elastic Transcoder has started to process jobs that are added to this pipeline. This is the ARN that Amazon SNS returned when you created the topic. * __Completed__ : The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder has finished processing a job. This is the ARN that Amazon SNS returned when you created the topic. * __Warning__ : The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder encounters a warning condition. This is the ARN that Amazon SNS returned when you created the topic. * __Error__ : The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder encounters an error condition. This is the ARN that Amazon SNS returned when you created the topic. upNotifications :: Lens' UpdatePipeline (Maybe Notifications) -upNotifications = lens _upNotifications (\ s a -> s{_upNotifications = a}); +upNotifications = lens _upNotifications (\ s a -> s{_upNotifications = a}) -- | The @ThumbnailConfig@ object specifies several values, including the Amazon S3 bucket in which you want Elastic Transcoder to save thumbnail files, which users you want to have access to the files, the type of access you want users to have, and the storage class that you want to assign to the files. If you specify values for @ContentConfig@ , you must also specify values for @ThumbnailConfig@ even if you don't want to create thumbnails. If you specify values for @ContentConfig@ and @ThumbnailConfig@ , omit the @OutputBucket@ object. * __Bucket__ : The Amazon S3 bucket in which you want Elastic Transcoder to save thumbnail files. * __Permissions__ (Optional): The @Permissions@ object specifies which users and/or predefined Amazon S3 groups you want to have access to thumbnail files, and the type of access you want them to have. You can grant permissions to a maximum of 30 users and/or predefined Amazon S3 groups. * __GranteeType__ : Specify the type of value that appears in the Grantee object: * __Canonical__ : The value in the @Grantee@ object is either the canonical user ID for an AWS account or an origin access identity for an Amazon CloudFront distribution. /Important:/ A canonical user ID is not the same as an AWS account number. * __Email__ : The value in the @Grantee@ object is the registered email address of an AWS account. * __Group__ : The value in the @Grantee@ object is one of the following predefined Amazon S3 groups: @AllUsers@ , @AuthenticatedUsers@ , or @LogDelivery@ . * __Grantee__ : The AWS user or group that you want to have access to thumbnail files. To identify the user or group, you can specify the canonical user ID for an AWS account, an origin access identity for a CloudFront distribution, the registered email address of an AWS account, or a predefined Amazon S3 group. * __Access__ : The permission that you want to give to the AWS user that you specified in @Grantee@ . Permissions are granted on the thumbnail files that Elastic Transcoder adds to the bucket. Valid values include: * @READ@ : The grantee can read the thumbnails and metadata for objects that Elastic Transcoder adds to the Amazon S3 bucket. * @READ_ACP@ : The grantee can read the object ACL for thumbnails that Elastic Transcoder adds to the Amazon S3 bucket. * @WRITE_ACP@ : The grantee can write the ACL for the thumbnails that Elastic Transcoder adds to the Amazon S3 bucket. * @FULL_CONTROL@ : The grantee has @READ@ , @READ_ACP@ , and @WRITE_ACP@ permissions for the thumbnails that Elastic Transcoder adds to the Amazon S3 bucket. * __StorageClass__ : The Amazon S3 storage class, @Standard@ or @ReducedRedundancy@ , that you want Elastic Transcoder to assign to the thumbnails that it stores in your Amazon S3 bucket. upThumbnailConfig :: Lens' UpdatePipeline (Maybe PipelineOutputConfig) -upThumbnailConfig = lens _upThumbnailConfig (\ s a -> s{_upThumbnailConfig = a}); +upThumbnailConfig = lens _upThumbnailConfig (\ s a -> s{_upThumbnailConfig = a}) -- | The ID of the pipeline that you want to update. upId :: Lens' UpdatePipeline Text -upId = lens _upId (\ s a -> s{_upId = a}); +upId = lens _upId (\ s a -> s{_upId = a}) instance AWSRequest UpdatePipeline where type Rs UpdatePipeline = UpdatePipelineResponse @@ -199,22 +199,22 @@ updatePipelineResponse -> UpdatePipelineResponse updatePipelineResponse pResponseStatus_ = UpdatePipelineResponse' - { _uprsWarnings = Nothing - , _uprsPipeline = Nothing - , _uprsResponseStatus = pResponseStatus_ - } + { _uprsWarnings = Nothing + , _uprsPipeline = Nothing + , _uprsResponseStatus = pResponseStatus_ + } -- | Elastic Transcoder returns a warning if the resources used by your pipeline are not in the same region as the pipeline. Using resources in the same region, such as your Amazon S3 buckets, Amazon SNS notification topics, and AWS KMS key, reduces processing time and prevents cross-regional charges. uprsWarnings :: Lens' UpdatePipelineResponse [Warning] -uprsWarnings = lens _uprsWarnings (\ s a -> s{_uprsWarnings = a}) . _Default . _Coerce; +uprsWarnings = lens _uprsWarnings (\ s a -> s{_uprsWarnings = a}) . _Default . _Coerce -- | The pipeline updated by this @UpdatePipelineResponse@ call. uprsPipeline :: Lens' UpdatePipelineResponse (Maybe Pipeline) -uprsPipeline = lens _uprsPipeline (\ s a -> s{_uprsPipeline = a}); +uprsPipeline = lens _uprsPipeline (\ s a -> s{_uprsPipeline = a}) -- | -- | The response status code. uprsResponseStatus :: Lens' UpdatePipelineResponse Int -uprsResponseStatus = lens _uprsResponseStatus (\ s a -> s{_uprsResponseStatus = a}); +uprsResponseStatus = lens _uprsResponseStatus (\ s a -> s{_uprsResponseStatus = a}) instance NFData UpdatePipelineResponse where diff --git a/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/UpdatePipelineNotifications.hs b/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/UpdatePipelineNotifications.hs index 70e88fd14cc..92c9d81a910 100644 --- a/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/UpdatePipelineNotifications.hs +++ b/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/UpdatePipelineNotifications.hs @@ -71,16 +71,16 @@ updatePipelineNotifications -> UpdatePipelineNotifications updatePipelineNotifications pId_ pNotifications_ = UpdatePipelineNotifications' - {_upnId = pId_, _upnNotifications = pNotifications_} + {_upnId = pId_, _upnNotifications = pNotifications_} -- | The identifier of the pipeline for which you want to change notification settings. upnId :: Lens' UpdatePipelineNotifications Text -upnId = lens _upnId (\ s a -> s{_upnId = a}); +upnId = lens _upnId (\ s a -> s{_upnId = a}) -- | The topic ARN for the Amazon Simple Notification Service (Amazon SNS) topic that you want to notify to report job status. /Important:/ To receive notifications, you must also subscribe to the new topic in the Amazon SNS console. * __Progressing__ : The topic ARN for the Amazon Simple Notification Service (Amazon SNS) topic that you want to notify when Elastic Transcoder has started to process jobs that are added to this pipeline. This is the ARN that Amazon SNS returned when you created the topic. * __Completed__ : The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder has finished processing a job. This is the ARN that Amazon SNS returned when you created the topic. * __Warning__ : The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder encounters a warning condition. This is the ARN that Amazon SNS returned when you created the topic. * __Error__ : The topic ARN for the Amazon SNS topic that you want to notify when Elastic Transcoder encounters an error condition. This is the ARN that Amazon SNS returned when you created the topic. upnNotifications :: Lens' UpdatePipelineNotifications Notifications -upnNotifications = lens _upnNotifications (\ s a -> s{_upnNotifications = a}); +upnNotifications = lens _upnNotifications (\ s a -> s{_upnNotifications = a}) instance AWSRequest UpdatePipelineNotifications where type Rs UpdatePipelineNotifications = @@ -137,16 +137,16 @@ updatePipelineNotificationsResponse -> UpdatePipelineNotificationsResponse updatePipelineNotificationsResponse pResponseStatus_ = UpdatePipelineNotificationsResponse' - {_upnrsPipeline = Nothing, _upnrsResponseStatus = pResponseStatus_} + {_upnrsPipeline = Nothing, _upnrsResponseStatus = pResponseStatus_} -- | A section of the response body that provides information about the pipeline associated with this notification. upnrsPipeline :: Lens' UpdatePipelineNotificationsResponse (Maybe Pipeline) -upnrsPipeline = lens _upnrsPipeline (\ s a -> s{_upnrsPipeline = a}); +upnrsPipeline = lens _upnrsPipeline (\ s a -> s{_upnrsPipeline = a}) -- | -- | The response status code. upnrsResponseStatus :: Lens' UpdatePipelineNotificationsResponse Int -upnrsResponseStatus = lens _upnrsResponseStatus (\ s a -> s{_upnrsResponseStatus = a}); +upnrsResponseStatus = lens _upnrsResponseStatus (\ s a -> s{_upnrsResponseStatus = a}) instance NFData UpdatePipelineNotificationsResponse where diff --git a/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/UpdatePipelineStatus.hs b/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/UpdatePipelineStatus.hs index 0e5c07b4577..2f1ee6bd700 100644 --- a/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/UpdatePipelineStatus.hs +++ b/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/UpdatePipelineStatus.hs @@ -75,11 +75,11 @@ updatePipelineStatus pId_ pStatus_ = -- | The identifier of the pipeline to update. upsId :: Lens' UpdatePipelineStatus Text -upsId = lens _upsId (\ s a -> s{_upsId = a}); +upsId = lens _upsId (\ s a -> s{_upsId = a}) -- | The desired status of the pipeline: * @Active@ : The pipeline is processing jobs. * @Paused@ : The pipeline is not currently processing jobs. upsStatus :: Lens' UpdatePipelineStatus Text -upsStatus = lens _upsStatus (\ s a -> s{_upsStatus = a}); +upsStatus = lens _upsStatus (\ s a -> s{_upsStatus = a}) instance AWSRequest UpdatePipelineStatus where type Rs UpdatePipelineStatus = @@ -133,15 +133,15 @@ updatePipelineStatusResponse -> UpdatePipelineStatusResponse updatePipelineStatusResponse pResponseStatus_ = UpdatePipelineStatusResponse' - {_upsrsPipeline = Nothing, _upsrsResponseStatus = pResponseStatus_} + {_upsrsPipeline = Nothing, _upsrsResponseStatus = pResponseStatus_} -- | A section of the response body that provides information about the pipeline. upsrsPipeline :: Lens' UpdatePipelineStatusResponse (Maybe Pipeline) -upsrsPipeline = lens _upsrsPipeline (\ s a -> s{_upsrsPipeline = a}); +upsrsPipeline = lens _upsrsPipeline (\ s a -> s{_upsrsPipeline = a}) -- | -- | The response status code. upsrsResponseStatus :: Lens' UpdatePipelineStatusResponse Int -upsrsResponseStatus = lens _upsrsResponseStatus (\ s a -> s{_upsrsResponseStatus = a}); +upsrsResponseStatus = lens _upsrsResponseStatus (\ s a -> s{_upsrsResponseStatus = a}) instance NFData UpdatePipelineStatusResponse where diff --git a/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/Waiters.hs b/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/Waiters.hs index 083aba11c06..5a8c01f07c4 100644 --- a/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/Waiters.hs +++ b/amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/Waiters.hs @@ -25,19 +25,22 @@ import Network.AWS.Waiter jobComplete :: Wait ReadJob jobComplete = Wait - { _waitName = "JobComplete" - , _waitAttempts = 120 - , _waitDelay = 30 - , _waitAcceptors = - [ matchAll - "Complete" - AcceptSuccess - (rjrsJob . jStatus . _Just . to toTextCI) - , matchAll - "Canceled" - AcceptFailure - (rjrsJob . jStatus . _Just . to toTextCI) - , matchAll "Error" AcceptFailure (rjrsJob . jStatus . _Just . to toTextCI) - ] - } + { _waitName = "JobComplete" + , _waitAttempts = 120 + , _waitDelay = 30 + , _waitAcceptors = + [ matchAll + "Complete" + AcceptSuccess + (rjrsJob . jStatus . _Just . to toTextCI) + , matchAll + "Canceled" + AcceptFailure + (rjrsJob . jStatus . _Just . to toTextCI) + , matchAll + "Error" + AcceptFailure + (rjrsJob . jStatus . _Just . to toTextCI) + ] + }