Skip to content

Commit c216e5c

Browse files
committed
Regenerating amazonka-elastictranscoder from latest service definition
1 parent 16320d2 commit c216e5c

File tree

13 files changed

+269
-354
lines changed

13 files changed

+269
-354
lines changed

amazonka-elastictranscoder/amazonka-elastictranscoder.cabal

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ library
5353
, Network.AWS.ElasticTranscoder.ReadJob
5454
, Network.AWS.ElasticTranscoder.ReadPipeline
5555
, Network.AWS.ElasticTranscoder.ReadPreset
56-
, Network.AWS.ElasticTranscoder.TestRole
5756
, Network.AWS.ElasticTranscoder.Types
5857
, Network.AWS.ElasticTranscoder.UpdatePipeline
5958
, Network.AWS.ElasticTranscoder.UpdatePipelineNotifications

amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder.hs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,6 @@ module Network.AWS.ElasticTranscoder
6262
-- ** ListJobsByPipeline (Paginated)
6363
, module Network.AWS.ElasticTranscoder.ListJobsByPipeline
6464

65-
-- ** TestRole
66-
, module Network.AWS.ElasticTranscoder.TestRole
67-
6865
-- ** UpdatePipeline
6966
, module Network.AWS.ElasticTranscoder.UpdatePipeline
7067

@@ -214,12 +211,19 @@ module Network.AWS.ElasticTranscoder
214211
, hcpInitializationVector
215212
, hcpLicenseAcquisitionURL
216213

214+
-- ** InputCaptions
215+
, InputCaptions
216+
, inputCaptions
217+
, icMergePolicy
218+
, icCaptionSources
219+
217220
-- ** Job'
218221
, Job'
219222
, job'
220223
, jStatus
221224
, jPipelineId
222225
, jARN
226+
, jInputs
223227
, jInput
224228
, jUserMetadata
225229
, jOutputs
@@ -241,11 +245,13 @@ module Network.AWS.ElasticTranscoder
241245
, jiFrameRate
242246
, jiResolution
243247
, jiAspectRatio
248+
, jiTimeSpan
244249
, jiEncryption
245250
, jiKey
246251
, jiDetectedProperties
247252
, jiContainer
248253
, jiInterlaced
254+
, jiInputCaptions
249255

250256
-- ** JobOutput
251257
, JobOutput
@@ -428,7 +434,6 @@ import Network.AWS.ElasticTranscoder.ListPresets
428434
import Network.AWS.ElasticTranscoder.ReadJob
429435
import Network.AWS.ElasticTranscoder.ReadPipeline
430436
import Network.AWS.ElasticTranscoder.ReadPreset
431-
import Network.AWS.ElasticTranscoder.TestRole
432437
import Network.AWS.ElasticTranscoder.Types
433438
import Network.AWS.ElasticTranscoder.UpdatePipeline
434439
import Network.AWS.ElasticTranscoder.UpdatePipelineNotifications

amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/CancelJob.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ newtype CancelJob = CancelJob'
5656
--
5757
-- Use one of the following lenses to modify other fields as desired:
5858
--
59-
-- * 'cjId' - 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.
59+
-- * 'cjId' - 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.
6060
cancelJob
6161
:: Text -- ^ 'cjId'
6262
-> CancelJob
@@ -65,7 +65,7 @@ cancelJob pId_ =
6565
{ _cjId = pId_
6666
}
6767

68-
-- | 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.
68+
-- | 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.
6969
cjId :: Lens' CancelJob Text
7070
cjId = lens _cjId (\ s a -> s{_cjId = a});
7171

amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/CreateJob.hs

Lines changed: 29 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,14 @@ module Network.AWS.ElasticTranscoder.CreateJob
2929
createJob
3030
, CreateJob
3131
-- * Request Lenses
32+
, cjInputs
33+
, cjInput
3234
, cjUserMetadata
3335
, cjOutputs
3436
, cjOutput
3537
, cjPlaylists
3638
, cjOutputKeyPrefix
3739
, cjPipelineId
38-
, cjInput
3940

4041
-- * Destructuring the Response
4142
, createJobResponse
@@ -58,56 +59,67 @@ import Network.AWS.Response
5859
--
5960
-- /See:/ 'createJob' smart constructor.
6061
data CreateJob = CreateJob'
61-
{ _cjUserMetadata :: !(Maybe (Map Text Text))
62+
{ _cjInputs :: !(Maybe [JobInput])
63+
, _cjInput :: !(Maybe JobInput)
64+
, _cjUserMetadata :: !(Maybe (Map Text Text))
6265
, _cjOutputs :: !(Maybe [CreateJobOutput])
6366
, _cjOutput :: !(Maybe CreateJobOutput)
6467
, _cjPlaylists :: !(Maybe [CreateJobPlaylist])
6568
, _cjOutputKeyPrefix :: !(Maybe Text)
6669
, _cjPipelineId :: !Text
67-
, _cjInput :: !JobInput
6870
} deriving (Eq,Read,Show,Data,Typeable,Generic)
6971

7072
-- | Creates a value of 'CreateJob' with the minimum fields required to make a request.
7173
--
7274
-- Use one of the following lenses to modify other fields as desired:
7375
--
74-
-- * 'cjUserMetadata' - 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 will be returned in the same order in which you specify them.
76+
-- * 'cjInputs' - A section of the request body that provides information about the files that are being transcoded.
77+
--
78+
-- * 'cjInput' - A section of the request body that provides information about the file that is being transcoded.
79+
--
80+
-- * 'cjUserMetadata' - 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.
7581
--
7682
-- * 'cjOutputs' - 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.
7783
--
78-
-- * 'cjOutput' - Undocumented member.
84+
-- * 'cjOutput' - 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.
7985
--
8086
-- * 'cjPlaylists' - 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.
8187
--
8288
-- * 'cjOutputKeyPrefix' - 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.
8389
--
8490
-- * 'cjPipelineId' - 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.
85-
--
86-
-- * 'cjInput' - A section of the request body that provides information about the file that is being transcoded.
8791
createJob
8892
:: Text -- ^ 'cjPipelineId'
89-
-> JobInput -- ^ 'cjInput'
9093
-> CreateJob
91-
createJob pPipelineId_ pInput_ =
94+
createJob pPipelineId_ =
9295
CreateJob'
93-
{ _cjUserMetadata = Nothing
96+
{ _cjInputs = Nothing
97+
, _cjInput = Nothing
98+
, _cjUserMetadata = Nothing
9499
, _cjOutputs = Nothing
95100
, _cjOutput = Nothing
96101
, _cjPlaylists = Nothing
97102
, _cjOutputKeyPrefix = Nothing
98103
, _cjPipelineId = pPipelineId_
99-
, _cjInput = pInput_
100104
}
101105

102-
-- | 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 will be returned in the same order in which you specify them.
106+
-- | A section of the request body that provides information about the files that are being transcoded.
107+
cjInputs :: Lens' CreateJob [JobInput]
108+
cjInputs = lens _cjInputs (\ s a -> s{_cjInputs = a}) . _Default . _Coerce;
109+
110+
-- | A section of the request body that provides information about the file that is being transcoded.
111+
cjInput :: Lens' CreateJob (Maybe JobInput)
112+
cjInput = lens _cjInput (\ s a -> s{_cjInput = a});
113+
114+
-- | 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.
103115
cjUserMetadata :: Lens' CreateJob (HashMap Text Text)
104116
cjUserMetadata = lens _cjUserMetadata (\ s a -> s{_cjUserMetadata = a}) . _Default . _Map;
105117

106118
-- | 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.
107119
cjOutputs :: Lens' CreateJob [CreateJobOutput]
108120
cjOutputs = lens _cjOutputs (\ s a -> s{_cjOutputs = a}) . _Default . _Coerce;
109121

110-
-- | Undocumented member.
122+
-- | 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.
111123
cjOutput :: Lens' CreateJob (Maybe CreateJobOutput)
112124
cjOutput = lens _cjOutput (\ s a -> s{_cjOutput = a});
113125

@@ -123,10 +135,6 @@ cjOutputKeyPrefix = lens _cjOutputKeyPrefix (\ s a -> s{_cjOutputKeyPrefix = a})
123135
cjPipelineId :: Lens' CreateJob Text
124136
cjPipelineId = lens _cjPipelineId (\ s a -> s{_cjPipelineId = a});
125137

126-
-- | A section of the request body that provides information about the file that is being transcoded.
127-
cjInput :: Lens' CreateJob JobInput
128-
cjInput = lens _cjInput (\ s a -> s{_cjInput = a});
129-
130138
instance AWSRequest CreateJob where
131139
type Rs CreateJob = CreateJobResponse
132140
request = postJSON elasticTranscoder
@@ -147,13 +155,14 @@ instance ToJSON CreateJob where
147155
toJSON CreateJob'{..}
148156
= object
149157
(catMaybes
150-
[("UserMetadata" .=) <$> _cjUserMetadata,
158+
[("Inputs" .=) <$> _cjInputs,
159+
("Input" .=) <$> _cjInput,
160+
("UserMetadata" .=) <$> _cjUserMetadata,
151161
("Outputs" .=) <$> _cjOutputs,
152162
("Output" .=) <$> _cjOutput,
153163
("Playlists" .=) <$> _cjPlaylists,
154164
("OutputKeyPrefix" .=) <$> _cjOutputKeyPrefix,
155-
Just ("PipelineId" .= _cjPipelineId),
156-
Just ("Input" .= _cjInput)])
165+
Just ("PipelineId" .= _cjPipelineId)])
157166

158167
instance ToPath CreateJob where
159168
toPath = const "/2012-09-25/jobs"

0 commit comments

Comments
 (0)