amazonka-elastictranscoder 0.3.6 → 1.0.0
raw patch · 28 files changed
+7791/−6126 lines, 28 filesdep +amazonka-elastictranscoderdep +amazonka-testdep +bytestringdep ~amazonka-coredep ~basePVP ok
version bump matches the API change (PVP)
Dependencies added: amazonka-elastictranscoder, amazonka-test, bytestring, lens, tasty, tasty-hunit, text, time, unordered-containers
Dependency ranges changed: amazonka-core, base
API changes (from Hackage documentation)
- Network.AWS.ElasticTranscoder.CancelJob: instance IsString CancelJob
- Network.AWS.ElasticTranscoder.CancelJob: instance Monoid CancelJob
- Network.AWS.ElasticTranscoder.CancelJob: instance Ord CancelJob
- Network.AWS.ElasticTranscoder.CancelJob: instance Ord CancelJobResponse
- Network.AWS.ElasticTranscoder.CancelJob: instance ToJSON CancelJob
- Network.AWS.ElasticTranscoder.CreateJob: cjrJob :: Lens' CreateJobResponse (Maybe Job')
- Network.AWS.ElasticTranscoder.CreateJob: instance FromJSON CreateJobResponse
- Network.AWS.ElasticTranscoder.CreatePipeline: cp1AwsKmsKeyArn :: Lens' CreatePipeline (Maybe Text)
- Network.AWS.ElasticTranscoder.CreatePipeline: cp1ContentConfig :: Lens' CreatePipeline (Maybe PipelineOutputConfig)
- Network.AWS.ElasticTranscoder.CreatePipeline: cp1InputBucket :: Lens' CreatePipeline Text
- Network.AWS.ElasticTranscoder.CreatePipeline: cp1Name :: Lens' CreatePipeline Text
- Network.AWS.ElasticTranscoder.CreatePipeline: cp1Notifications :: Lens' CreatePipeline (Maybe Notifications)
- Network.AWS.ElasticTranscoder.CreatePipeline: cp1OutputBucket :: Lens' CreatePipeline (Maybe Text)
- Network.AWS.ElasticTranscoder.CreatePipeline: cp1Role :: Lens' CreatePipeline Text
- Network.AWS.ElasticTranscoder.CreatePipeline: cp1ThumbnailConfig :: Lens' CreatePipeline (Maybe PipelineOutputConfig)
- Network.AWS.ElasticTranscoder.CreatePipeline: cprPipeline :: Lens' CreatePipelineResponse (Maybe Pipeline)
- Network.AWS.ElasticTranscoder.CreatePipeline: cprWarnings :: Lens' CreatePipelineResponse [Warning]
- Network.AWS.ElasticTranscoder.CreatePipeline: instance FromJSON CreatePipelineResponse
- Network.AWS.ElasticTranscoder.CreatePreset: cprPreset :: Lens' CreatePresetResponse (Maybe Preset)
- Network.AWS.ElasticTranscoder.CreatePreset: cprWarning :: Lens' CreatePresetResponse (Maybe Text)
- Network.AWS.ElasticTranscoder.CreatePreset: instance FromJSON CreatePresetResponse
- Network.AWS.ElasticTranscoder.DeletePipeline: dp1Id :: Lens' DeletePipeline Text
- Network.AWS.ElasticTranscoder.DeletePipeline: instance IsString DeletePipeline
- Network.AWS.ElasticTranscoder.DeletePipeline: instance Monoid DeletePipeline
- Network.AWS.ElasticTranscoder.DeletePipeline: instance Ord DeletePipeline
- Network.AWS.ElasticTranscoder.DeletePipeline: instance Ord DeletePipelineResponse
- Network.AWS.ElasticTranscoder.DeletePipeline: instance ToJSON DeletePipeline
- Network.AWS.ElasticTranscoder.DeletePreset: instance IsString DeletePreset
- Network.AWS.ElasticTranscoder.DeletePreset: instance Monoid DeletePreset
- Network.AWS.ElasticTranscoder.DeletePreset: instance Ord DeletePreset
- Network.AWS.ElasticTranscoder.DeletePreset: instance Ord DeletePresetResponse
- Network.AWS.ElasticTranscoder.DeletePreset: instance ToJSON DeletePreset
- Network.AWS.ElasticTranscoder.ListJobsByPipeline: instance FromJSON ListJobsByPipelineResponse
- Network.AWS.ElasticTranscoder.ListJobsByPipeline: instance Ord ListJobsByPipeline
- Network.AWS.ElasticTranscoder.ListJobsByPipeline: instance ToJSON ListJobsByPipeline
- Network.AWS.ElasticTranscoder.ListJobsByPipeline: ljbprJobs :: Lens' ListJobsByPipelineResponse [Job']
- Network.AWS.ElasticTranscoder.ListJobsByPipeline: ljbprNextPageToken :: Lens' ListJobsByPipelineResponse (Maybe Text)
- Network.AWS.ElasticTranscoder.ListJobsByStatus: instance FromJSON ListJobsByStatusResponse
- Network.AWS.ElasticTranscoder.ListJobsByStatus: instance Ord ListJobsByStatus
- Network.AWS.ElasticTranscoder.ListJobsByStatus: instance ToJSON ListJobsByStatus
- Network.AWS.ElasticTranscoder.ListJobsByStatus: ljbsrJobs :: Lens' ListJobsByStatusResponse [Job']
- Network.AWS.ElasticTranscoder.ListJobsByStatus: ljbsrNextPageToken :: Lens' ListJobsByStatusResponse (Maybe Text)
- Network.AWS.ElasticTranscoder.ListPipelines: instance FromJSON ListPipelinesResponse
- Network.AWS.ElasticTranscoder.ListPipelines: instance Ord ListPipelines
- Network.AWS.ElasticTranscoder.ListPipelines: instance ToJSON ListPipelines
- Network.AWS.ElasticTranscoder.ListPipelines: lprNextPageToken :: Lens' ListPipelinesResponse (Maybe Text)
- Network.AWS.ElasticTranscoder.ListPipelines: lprPipelines :: Lens' ListPipelinesResponse [Pipeline]
- Network.AWS.ElasticTranscoder.ListPresets: instance FromJSON ListPresetsResponse
- Network.AWS.ElasticTranscoder.ListPresets: instance Ord ListPresets
- Network.AWS.ElasticTranscoder.ListPresets: instance ToJSON ListPresets
- Network.AWS.ElasticTranscoder.ListPresets: lp1Ascending :: Lens' ListPresets (Maybe Text)
- Network.AWS.ElasticTranscoder.ListPresets: lp1PageToken :: Lens' ListPresets (Maybe Text)
- Network.AWS.ElasticTranscoder.ListPresets: lpr1NextPageToken :: Lens' ListPresetsResponse (Maybe Text)
- Network.AWS.ElasticTranscoder.ListPresets: lpr1Presets :: Lens' ListPresetsResponse [Preset]
- Network.AWS.ElasticTranscoder.ReadJob: instance FromJSON ReadJobResponse
- Network.AWS.ElasticTranscoder.ReadJob: instance IsString ReadJob
- Network.AWS.ElasticTranscoder.ReadJob: instance Monoid ReadJob
- Network.AWS.ElasticTranscoder.ReadJob: instance Ord ReadJob
- Network.AWS.ElasticTranscoder.ReadJob: instance ToJSON ReadJob
- Network.AWS.ElasticTranscoder.ReadJob: rjrJob :: Lens' ReadJobResponse Job'
- Network.AWS.ElasticTranscoder.ReadPipeline: instance FromJSON ReadPipelineResponse
- Network.AWS.ElasticTranscoder.ReadPipeline: instance IsString ReadPipeline
- Network.AWS.ElasticTranscoder.ReadPipeline: instance Monoid ReadPipeline
- Network.AWS.ElasticTranscoder.ReadPipeline: instance Ord ReadPipeline
- Network.AWS.ElasticTranscoder.ReadPipeline: instance ToJSON ReadPipeline
- Network.AWS.ElasticTranscoder.ReadPipeline: rp1Id :: Lens' ReadPipeline Text
- Network.AWS.ElasticTranscoder.ReadPipeline: rprPipeline :: Lens' ReadPipelineResponse (Maybe Pipeline)
- Network.AWS.ElasticTranscoder.ReadPipeline: rprWarnings :: Lens' ReadPipelineResponse [Warning]
- Network.AWS.ElasticTranscoder.ReadPreset: instance FromJSON ReadPresetResponse
- Network.AWS.ElasticTranscoder.ReadPreset: instance IsString ReadPreset
- Network.AWS.ElasticTranscoder.ReadPreset: instance Monoid ReadPreset
- Network.AWS.ElasticTranscoder.ReadPreset: instance Ord ReadPreset
- Network.AWS.ElasticTranscoder.ReadPreset: instance ToJSON ReadPreset
- Network.AWS.ElasticTranscoder.ReadPreset: rprPreset :: Lens' ReadPresetResponse (Maybe Preset)
- Network.AWS.ElasticTranscoder.TestRole: instance FromJSON TestRoleResponse
- Network.AWS.ElasticTranscoder.TestRole: instance Ord TestRole
- Network.AWS.ElasticTranscoder.TestRole: instance Ord TestRoleResponse
- Network.AWS.ElasticTranscoder.TestRole: trrMessages :: Lens' TestRoleResponse [Text]
- Network.AWS.ElasticTranscoder.TestRole: trrSuccess :: Lens' TestRoleResponse (Maybe Text)
- Network.AWS.ElasticTranscoder.Types: data JSONError :: *
- Network.AWS.ElasticTranscoder.Types: eKeyMd5 :: Lens' Encryption (Maybe Text)
- Network.AWS.ElasticTranscoder.Types: hcpKeyMd5 :: Lens' HlsContentProtection (Maybe Text)
- Network.AWS.ElasticTranscoder.Types: hcpLicenseAcquisitionUrl :: Lens' HlsContentProtection (Maybe Text)
- Network.AWS.ElasticTranscoder.Types: instance Eq Artwork
- Network.AWS.ElasticTranscoder.Types: instance Eq AudioCodecOptions
- Network.AWS.ElasticTranscoder.Types: instance Eq AudioParameters
- Network.AWS.ElasticTranscoder.Types: instance Eq CaptionFormat
- Network.AWS.ElasticTranscoder.Types: instance Eq CaptionSource
- Network.AWS.ElasticTranscoder.Types: instance Eq Captions
- Network.AWS.ElasticTranscoder.Types: instance Eq Clip
- Network.AWS.ElasticTranscoder.Types: instance Eq CreateJobOutput
- Network.AWS.ElasticTranscoder.Types: instance Eq CreateJobPlaylist
- Network.AWS.ElasticTranscoder.Types: instance Eq DetectedProperties
- Network.AWS.ElasticTranscoder.Types: instance Eq Encryption
- Network.AWS.ElasticTranscoder.Types: instance Eq HlsContentProtection
- Network.AWS.ElasticTranscoder.Types: instance Eq Job'
- Network.AWS.ElasticTranscoder.Types: instance Eq JobAlbumArt
- Network.AWS.ElasticTranscoder.Types: instance Eq JobInput
- Network.AWS.ElasticTranscoder.Types: instance Eq JobOutput
- Network.AWS.ElasticTranscoder.Types: instance Eq JobWatermark
- Network.AWS.ElasticTranscoder.Types: instance Eq Notifications
- Network.AWS.ElasticTranscoder.Types: instance Eq Permission
- Network.AWS.ElasticTranscoder.Types: instance Eq Pipeline
- Network.AWS.ElasticTranscoder.Types: instance Eq PipelineOutputConfig
- Network.AWS.ElasticTranscoder.Types: instance Eq PlayReadyDrm
- Network.AWS.ElasticTranscoder.Types: instance Eq Playlist
- Network.AWS.ElasticTranscoder.Types: instance Eq Preset
- Network.AWS.ElasticTranscoder.Types: instance Eq PresetWatermark
- Network.AWS.ElasticTranscoder.Types: instance Eq Thumbnails
- Network.AWS.ElasticTranscoder.Types: instance Eq TimeSpan
- Network.AWS.ElasticTranscoder.Types: instance Eq Timing
- Network.AWS.ElasticTranscoder.Types: instance Eq VideoParameters
- Network.AWS.ElasticTranscoder.Types: instance Eq Warning
- Network.AWS.ElasticTranscoder.Types: instance FromJSON Artwork
- Network.AWS.ElasticTranscoder.Types: instance FromJSON AudioCodecOptions
- Network.AWS.ElasticTranscoder.Types: instance FromJSON AudioParameters
- Network.AWS.ElasticTranscoder.Types: instance FromJSON CaptionFormat
- Network.AWS.ElasticTranscoder.Types: instance FromJSON CaptionSource
- Network.AWS.ElasticTranscoder.Types: instance FromJSON Captions
- Network.AWS.ElasticTranscoder.Types: instance FromJSON Clip
- Network.AWS.ElasticTranscoder.Types: instance FromJSON CreateJobOutput
- Network.AWS.ElasticTranscoder.Types: instance FromJSON CreateJobPlaylist
- Network.AWS.ElasticTranscoder.Types: instance FromJSON DetectedProperties
- Network.AWS.ElasticTranscoder.Types: instance FromJSON Encryption
- Network.AWS.ElasticTranscoder.Types: instance FromJSON HlsContentProtection
- Network.AWS.ElasticTranscoder.Types: instance FromJSON Job'
- Network.AWS.ElasticTranscoder.Types: instance FromJSON JobAlbumArt
- Network.AWS.ElasticTranscoder.Types: instance FromJSON JobInput
- Network.AWS.ElasticTranscoder.Types: instance FromJSON JobOutput
- Network.AWS.ElasticTranscoder.Types: instance FromJSON JobWatermark
- Network.AWS.ElasticTranscoder.Types: instance FromJSON Notifications
- Network.AWS.ElasticTranscoder.Types: instance FromJSON Permission
- Network.AWS.ElasticTranscoder.Types: instance FromJSON Pipeline
- Network.AWS.ElasticTranscoder.Types: instance FromJSON PipelineOutputConfig
- Network.AWS.ElasticTranscoder.Types: instance FromJSON PlayReadyDrm
- Network.AWS.ElasticTranscoder.Types: instance FromJSON Playlist
- Network.AWS.ElasticTranscoder.Types: instance FromJSON Preset
- Network.AWS.ElasticTranscoder.Types: instance FromJSON PresetWatermark
- Network.AWS.ElasticTranscoder.Types: instance FromJSON Thumbnails
- Network.AWS.ElasticTranscoder.Types: instance FromJSON TimeSpan
- Network.AWS.ElasticTranscoder.Types: instance FromJSON Timing
- Network.AWS.ElasticTranscoder.Types: instance FromJSON VideoParameters
- Network.AWS.ElasticTranscoder.Types: instance FromJSON Warning
- Network.AWS.ElasticTranscoder.Types: instance Ord AudioCodecOptions
- Network.AWS.ElasticTranscoder.Types: instance Ord DetectedProperties
- Network.AWS.ElasticTranscoder.Types: instance Ord Encryption
- Network.AWS.ElasticTranscoder.Types: instance Ord HlsContentProtection
- Network.AWS.ElasticTranscoder.Types: instance Ord Notifications
- Network.AWS.ElasticTranscoder.Types: instance Ord Permission
- Network.AWS.ElasticTranscoder.Types: instance Ord PlayReadyDrm
- Network.AWS.ElasticTranscoder.Types: instance Ord PresetWatermark
- Network.AWS.ElasticTranscoder.Types: instance Ord Thumbnails
- Network.AWS.ElasticTranscoder.Types: instance Ord TimeSpan
- Network.AWS.ElasticTranscoder.Types: instance Ord Timing
- Network.AWS.ElasticTranscoder.Types: instance Ord Warning
- Network.AWS.ElasticTranscoder.Types: instance Read Artwork
- Network.AWS.ElasticTranscoder.Types: instance Read AudioCodecOptions
- Network.AWS.ElasticTranscoder.Types: instance Read AudioParameters
- Network.AWS.ElasticTranscoder.Types: instance Read CaptionFormat
- Network.AWS.ElasticTranscoder.Types: instance Read CaptionSource
- Network.AWS.ElasticTranscoder.Types: instance Read Captions
- Network.AWS.ElasticTranscoder.Types: instance Read Clip
- Network.AWS.ElasticTranscoder.Types: instance Read CreateJobOutput
- Network.AWS.ElasticTranscoder.Types: instance Read CreateJobPlaylist
- Network.AWS.ElasticTranscoder.Types: instance Read DetectedProperties
- Network.AWS.ElasticTranscoder.Types: instance Read Encryption
- Network.AWS.ElasticTranscoder.Types: instance Read HlsContentProtection
- Network.AWS.ElasticTranscoder.Types: instance Read Job'
- Network.AWS.ElasticTranscoder.Types: instance Read JobAlbumArt
- Network.AWS.ElasticTranscoder.Types: instance Read JobInput
- Network.AWS.ElasticTranscoder.Types: instance Read JobOutput
- Network.AWS.ElasticTranscoder.Types: instance Read JobWatermark
- Network.AWS.ElasticTranscoder.Types: instance Read Notifications
- Network.AWS.ElasticTranscoder.Types: instance Read Permission
- Network.AWS.ElasticTranscoder.Types: instance Read Pipeline
- Network.AWS.ElasticTranscoder.Types: instance Read PipelineOutputConfig
- Network.AWS.ElasticTranscoder.Types: instance Read PlayReadyDrm
- Network.AWS.ElasticTranscoder.Types: instance Read Playlist
- Network.AWS.ElasticTranscoder.Types: instance Read Preset
- Network.AWS.ElasticTranscoder.Types: instance Read PresetWatermark
- Network.AWS.ElasticTranscoder.Types: instance Read Thumbnails
- Network.AWS.ElasticTranscoder.Types: instance Read TimeSpan
- Network.AWS.ElasticTranscoder.Types: instance Read Timing
- Network.AWS.ElasticTranscoder.Types: instance Read VideoParameters
- Network.AWS.ElasticTranscoder.Types: instance Read Warning
- Network.AWS.ElasticTranscoder.Types: instance Show Artwork
- Network.AWS.ElasticTranscoder.Types: instance Show AudioCodecOptions
- Network.AWS.ElasticTranscoder.Types: instance Show AudioParameters
- Network.AWS.ElasticTranscoder.Types: instance Show CaptionFormat
- Network.AWS.ElasticTranscoder.Types: instance Show CaptionSource
- Network.AWS.ElasticTranscoder.Types: instance Show Captions
- Network.AWS.ElasticTranscoder.Types: instance Show Clip
- Network.AWS.ElasticTranscoder.Types: instance Show CreateJobOutput
- Network.AWS.ElasticTranscoder.Types: instance Show CreateJobPlaylist
- Network.AWS.ElasticTranscoder.Types: instance Show DetectedProperties
- Network.AWS.ElasticTranscoder.Types: instance Show Encryption
- Network.AWS.ElasticTranscoder.Types: instance Show HlsContentProtection
- Network.AWS.ElasticTranscoder.Types: instance Show Job'
- Network.AWS.ElasticTranscoder.Types: instance Show JobAlbumArt
- Network.AWS.ElasticTranscoder.Types: instance Show JobInput
- Network.AWS.ElasticTranscoder.Types: instance Show JobOutput
- Network.AWS.ElasticTranscoder.Types: instance Show JobWatermark
- Network.AWS.ElasticTranscoder.Types: instance Show Notifications
- Network.AWS.ElasticTranscoder.Types: instance Show Permission
- Network.AWS.ElasticTranscoder.Types: instance Show Pipeline
- Network.AWS.ElasticTranscoder.Types: instance Show PipelineOutputConfig
- Network.AWS.ElasticTranscoder.Types: instance Show PlayReadyDrm
- Network.AWS.ElasticTranscoder.Types: instance Show Playlist
- Network.AWS.ElasticTranscoder.Types: instance Show Preset
- Network.AWS.ElasticTranscoder.Types: instance Show PresetWatermark
- Network.AWS.ElasticTranscoder.Types: instance Show Thumbnails
- Network.AWS.ElasticTranscoder.Types: instance Show TimeSpan
- Network.AWS.ElasticTranscoder.Types: instance Show Timing
- Network.AWS.ElasticTranscoder.Types: instance Show VideoParameters
- Network.AWS.ElasticTranscoder.Types: instance Show Warning
- Network.AWS.ElasticTranscoder.Types: instance ToJSON Artwork
- Network.AWS.ElasticTranscoder.Types: instance ToJSON AudioCodecOptions
- Network.AWS.ElasticTranscoder.Types: instance ToJSON AudioParameters
- Network.AWS.ElasticTranscoder.Types: instance ToJSON CaptionFormat
- Network.AWS.ElasticTranscoder.Types: instance ToJSON CaptionSource
- Network.AWS.ElasticTranscoder.Types: instance ToJSON Captions
- Network.AWS.ElasticTranscoder.Types: instance ToJSON Clip
- Network.AWS.ElasticTranscoder.Types: instance ToJSON CreateJobOutput
- Network.AWS.ElasticTranscoder.Types: instance ToJSON CreateJobPlaylist
- Network.AWS.ElasticTranscoder.Types: instance ToJSON DetectedProperties
- Network.AWS.ElasticTranscoder.Types: instance ToJSON Encryption
- Network.AWS.ElasticTranscoder.Types: instance ToJSON HlsContentProtection
- Network.AWS.ElasticTranscoder.Types: instance ToJSON Job'
- Network.AWS.ElasticTranscoder.Types: instance ToJSON JobAlbumArt
- Network.AWS.ElasticTranscoder.Types: instance ToJSON JobInput
- Network.AWS.ElasticTranscoder.Types: instance ToJSON JobOutput
- Network.AWS.ElasticTranscoder.Types: instance ToJSON JobWatermark
- Network.AWS.ElasticTranscoder.Types: instance ToJSON Notifications
- Network.AWS.ElasticTranscoder.Types: instance ToJSON Permission
- Network.AWS.ElasticTranscoder.Types: instance ToJSON Pipeline
- Network.AWS.ElasticTranscoder.Types: instance ToJSON PipelineOutputConfig
- Network.AWS.ElasticTranscoder.Types: instance ToJSON PlayReadyDrm
- Network.AWS.ElasticTranscoder.Types: instance ToJSON Playlist
- Network.AWS.ElasticTranscoder.Types: instance ToJSON Preset
- Network.AWS.ElasticTranscoder.Types: instance ToJSON PresetWatermark
- Network.AWS.ElasticTranscoder.Types: instance ToJSON Thumbnails
- Network.AWS.ElasticTranscoder.Types: instance ToJSON TimeSpan
- Network.AWS.ElasticTranscoder.Types: instance ToJSON Timing
- Network.AWS.ElasticTranscoder.Types: instance ToJSON VideoParameters
- Network.AWS.ElasticTranscoder.Types: instance ToJSON Warning
- Network.AWS.ElasticTranscoder.Types: jArn :: Lens' Job' (Maybe Text)
- Network.AWS.ElasticTranscoder.Types: job :: Text -> Text -> JobInput -> Text -> Text -> Job'
- Network.AWS.ElasticTranscoder.Types: p1Arn :: Lens' Preset (Maybe Text)
- Network.AWS.ElasticTranscoder.Types: p1Audio :: Lens' Preset (Maybe AudioParameters)
- Network.AWS.ElasticTranscoder.Types: p1Container :: Lens' Preset (Maybe Text)
- Network.AWS.ElasticTranscoder.Types: p1Description :: Lens' Preset (Maybe Text)
- Network.AWS.ElasticTranscoder.Types: p1Id :: Lens' Preset (Maybe Text)
- Network.AWS.ElasticTranscoder.Types: p1Name :: Lens' Preset (Maybe Text)
- Network.AWS.ElasticTranscoder.Types: p1Thumbnails :: Lens' Preset (Maybe Thumbnails)
- Network.AWS.ElasticTranscoder.Types: p1Type :: Lens' Preset (Maybe Text)
- Network.AWS.ElasticTranscoder.Types: p1Video :: Lens' Preset (Maybe VideoParameters)
- Network.AWS.ElasticTranscoder.Types: p2Format :: Lens' Playlist (Maybe Text)
- Network.AWS.ElasticTranscoder.Types: p2HlsContentProtection :: Lens' Playlist (Maybe HlsContentProtection)
- Network.AWS.ElasticTranscoder.Types: p2Name :: Lens' Playlist (Maybe Text)
- Network.AWS.ElasticTranscoder.Types: p2OutputKeys :: Lens' Playlist [Text]
- Network.AWS.ElasticTranscoder.Types: p2PlayReadyDrm :: Lens' Playlist (Maybe PlayReadyDrm)
- Network.AWS.ElasticTranscoder.Types: p2Status :: Lens' Playlist (Maybe Text)
- Network.AWS.ElasticTranscoder.Types: p2StatusDetail :: Lens' Playlist (Maybe Text)
- Network.AWS.ElasticTranscoder.Types: pArn :: Lens' Pipeline (Maybe Text)
- Network.AWS.ElasticTranscoder.Types: pAwsKmsKeyArn :: Lens' Pipeline (Maybe Text)
- Network.AWS.ElasticTranscoder.Types: pContentConfig :: Lens' Pipeline (Maybe PipelineOutputConfig)
- Network.AWS.ElasticTranscoder.Types: pId :: Lens' Pipeline (Maybe Text)
- Network.AWS.ElasticTranscoder.Types: pInputBucket :: Lens' Pipeline (Maybe Text)
- Network.AWS.ElasticTranscoder.Types: pNotifications :: Lens' Pipeline (Maybe Notifications)
- Network.AWS.ElasticTranscoder.Types: pOutputBucket :: Lens' Pipeline (Maybe Text)
- Network.AWS.ElasticTranscoder.Types: pRole :: Lens' Pipeline (Maybe Text)
- Network.AWS.ElasticTranscoder.Types: pThumbnailConfig :: Lens' Pipeline (Maybe PipelineOutputConfig)
- Network.AWS.ElasticTranscoder.Types: prdKeyMd5 :: Lens' PlayReadyDrm (Maybe Text)
- Network.AWS.ElasticTranscoder.Types: prdLicenseAcquisitionUrl :: Lens' PlayReadyDrm (Maybe Text)
- Network.AWS.ElasticTranscoder.UpdatePipeline: instance FromJSON UpdatePipelineResponse
- Network.AWS.ElasticTranscoder.UpdatePipeline: upAwsKmsKeyArn :: Lens' UpdatePipeline (Maybe Text)
- Network.AWS.ElasticTranscoder.UpdatePipeline: uprPipeline :: Lens' UpdatePipelineResponse (Maybe Pipeline)
- Network.AWS.ElasticTranscoder.UpdatePipeline: uprWarnings :: Lens' UpdatePipelineResponse [Warning]
- Network.AWS.ElasticTranscoder.UpdatePipelineNotifications: instance FromJSON UpdatePipelineNotificationsResponse
- Network.AWS.ElasticTranscoder.UpdatePipelineNotifications: upnrPipeline :: Lens' UpdatePipelineNotificationsResponse (Maybe Pipeline)
- Network.AWS.ElasticTranscoder.UpdatePipelineStatus: instance FromJSON UpdatePipelineStatusResponse
- Network.AWS.ElasticTranscoder.UpdatePipelineStatus: instance Ord UpdatePipelineStatus
- Network.AWS.ElasticTranscoder.UpdatePipelineStatus: upsrPipeline :: Lens' UpdatePipelineStatusResponse (Maybe Pipeline)
+ Network.AWS.ElasticTranscoder: _AccessDeniedException :: AsError a => Getting (First ServiceError) a ServiceError
+ Network.AWS.ElasticTranscoder: _IncompatibleVersionException :: AsError a => Getting (First ServiceError) a ServiceError
+ Network.AWS.ElasticTranscoder: _InternalServiceException :: AsError a => Getting (First ServiceError) a ServiceError
+ Network.AWS.ElasticTranscoder: _LimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError
+ Network.AWS.ElasticTranscoder: _ResourceInUseException :: AsError a => Getting (First ServiceError) a ServiceError
+ Network.AWS.ElasticTranscoder: _ResourceNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError
+ Network.AWS.ElasticTranscoder: _ValidationException :: AsError a => Getting (First ServiceError) a ServiceError
+ Network.AWS.ElasticTranscoder: aAlbumArtFormat :: Lens' Artwork (Maybe Text)
+ Network.AWS.ElasticTranscoder: aEncryption :: Lens' Artwork (Maybe Encryption)
+ Network.AWS.ElasticTranscoder: aInputKey :: Lens' Artwork (Maybe Text)
+ Network.AWS.ElasticTranscoder: aMaxHeight :: Lens' Artwork (Maybe Text)
+ Network.AWS.ElasticTranscoder: aMaxWidth :: Lens' Artwork (Maybe Text)
+ Network.AWS.ElasticTranscoder: aPaddingPolicy :: Lens' Artwork (Maybe Text)
+ Network.AWS.ElasticTranscoder: aSizingPolicy :: Lens' Artwork (Maybe Text)
+ Network.AWS.ElasticTranscoder: acoBitDepth :: Lens' AudioCodecOptions (Maybe Text)
+ Network.AWS.ElasticTranscoder: acoBitOrder :: Lens' AudioCodecOptions (Maybe Text)
+ Network.AWS.ElasticTranscoder: acoProfile :: Lens' AudioCodecOptions (Maybe Text)
+ Network.AWS.ElasticTranscoder: acoSigned :: Lens' AudioCodecOptions (Maybe Text)
+ Network.AWS.ElasticTranscoder: apAudioPackingMode :: Lens' AudioParameters (Maybe Text)
+ Network.AWS.ElasticTranscoder: apBitRate :: Lens' AudioParameters (Maybe Text)
+ Network.AWS.ElasticTranscoder: apChannels :: Lens' AudioParameters (Maybe Text)
+ Network.AWS.ElasticTranscoder: apCodec :: Lens' AudioParameters (Maybe Text)
+ Network.AWS.ElasticTranscoder: apCodecOptions :: Lens' AudioParameters (Maybe AudioCodecOptions)
+ Network.AWS.ElasticTranscoder: apSampleRate :: Lens' AudioParameters (Maybe Text)
+ Network.AWS.ElasticTranscoder: artwork :: Artwork
+ Network.AWS.ElasticTranscoder: audioCodecOptions :: AudioCodecOptions
+ Network.AWS.ElasticTranscoder: audioParameters :: AudioParameters
+ Network.AWS.ElasticTranscoder: cCaptionFormats :: Lens' Captions [CaptionFormat]
+ Network.AWS.ElasticTranscoder: cCaptionSources :: Lens' Captions [CaptionSource]
+ Network.AWS.ElasticTranscoder: cMergePolicy :: Lens' Captions (Maybe Text)
+ Network.AWS.ElasticTranscoder: cTimeSpan :: Lens' Clip (Maybe TimeSpan)
+ Network.AWS.ElasticTranscoder: captionFormat :: CaptionFormat
+ Network.AWS.ElasticTranscoder: captionSource :: CaptionSource
+ Network.AWS.ElasticTranscoder: captions :: Captions
+ Network.AWS.ElasticTranscoder: cfEncryption :: Lens' CaptionFormat (Maybe Encryption)
+ Network.AWS.ElasticTranscoder: cfFormat :: Lens' CaptionFormat (Maybe Text)
+ Network.AWS.ElasticTranscoder: cfPattern :: Lens' CaptionFormat (Maybe Text)
+ Network.AWS.ElasticTranscoder: cjoAlbumArt :: Lens' CreateJobOutput (Maybe JobAlbumArt)
+ Network.AWS.ElasticTranscoder: cjoCaptions :: Lens' CreateJobOutput (Maybe Captions)
+ Network.AWS.ElasticTranscoder: cjoComposition :: Lens' CreateJobOutput [Clip]
+ Network.AWS.ElasticTranscoder: cjoEncryption :: Lens' CreateJobOutput (Maybe Encryption)
+ Network.AWS.ElasticTranscoder: cjoKey :: Lens' CreateJobOutput (Maybe Text)
+ Network.AWS.ElasticTranscoder: cjoPresetId :: Lens' CreateJobOutput (Maybe Text)
+ Network.AWS.ElasticTranscoder: cjoRotate :: Lens' CreateJobOutput (Maybe Text)
+ Network.AWS.ElasticTranscoder: cjoSegmentDuration :: Lens' CreateJobOutput (Maybe Text)
+ Network.AWS.ElasticTranscoder: cjoThumbnailEncryption :: Lens' CreateJobOutput (Maybe Encryption)
+ Network.AWS.ElasticTranscoder: cjoThumbnailPattern :: Lens' CreateJobOutput (Maybe Text)
+ Network.AWS.ElasticTranscoder: cjoWatermarks :: Lens' CreateJobOutput [JobWatermark]
+ Network.AWS.ElasticTranscoder: cjpFormat :: Lens' CreateJobPlaylist (Maybe Text)
+ Network.AWS.ElasticTranscoder: cjpHlsContentProtection :: Lens' CreateJobPlaylist (Maybe HlsContentProtection)
+ Network.AWS.ElasticTranscoder: cjpName :: Lens' CreateJobPlaylist (Maybe Text)
+ Network.AWS.ElasticTranscoder: cjpOutputKeys :: Lens' CreateJobPlaylist [Text]
+ Network.AWS.ElasticTranscoder: cjpPlayReadyDrm :: Lens' CreateJobPlaylist (Maybe PlayReadyDrm)
+ Network.AWS.ElasticTranscoder: clip :: Clip
+ Network.AWS.ElasticTranscoder: createJobOutput :: CreateJobOutput
+ Network.AWS.ElasticTranscoder: createJobPlaylist :: CreateJobPlaylist
+ Network.AWS.ElasticTranscoder: csEncryption :: Lens' CaptionSource (Maybe Encryption)
+ Network.AWS.ElasticTranscoder: csKey :: Lens' CaptionSource (Maybe Text)
+ Network.AWS.ElasticTranscoder: csLabel :: Lens' CaptionSource (Maybe Text)
+ Network.AWS.ElasticTranscoder: csLanguage :: Lens' CaptionSource (Maybe Text)
+ Network.AWS.ElasticTranscoder: csTimeOffset :: Lens' CaptionSource (Maybe Text)
+ Network.AWS.ElasticTranscoder: data Artwork
+ Network.AWS.ElasticTranscoder: data AudioCodecOptions
+ Network.AWS.ElasticTranscoder: data AudioParameters
+ Network.AWS.ElasticTranscoder: data CaptionFormat
+ Network.AWS.ElasticTranscoder: data CaptionSource
+ Network.AWS.ElasticTranscoder: data Captions
+ Network.AWS.ElasticTranscoder: data Clip
+ Network.AWS.ElasticTranscoder: data CreateJobOutput
+ Network.AWS.ElasticTranscoder: data CreateJobPlaylist
+ Network.AWS.ElasticTranscoder: data DetectedProperties
+ Network.AWS.ElasticTranscoder: data ElasticTranscoder
+ Network.AWS.ElasticTranscoder: data Encryption
+ Network.AWS.ElasticTranscoder: data HlsContentProtection
+ Network.AWS.ElasticTranscoder: data Job'
+ Network.AWS.ElasticTranscoder: data JobAlbumArt
+ Network.AWS.ElasticTranscoder: data JobInput
+ Network.AWS.ElasticTranscoder: data JobOutput
+ Network.AWS.ElasticTranscoder: data JobWatermark
+ Network.AWS.ElasticTranscoder: data Notifications
+ Network.AWS.ElasticTranscoder: data Permission
+ Network.AWS.ElasticTranscoder: data Pipeline
+ Network.AWS.ElasticTranscoder: data PipelineOutputConfig
+ Network.AWS.ElasticTranscoder: data PlayReadyDrm
+ Network.AWS.ElasticTranscoder: data Playlist
+ Network.AWS.ElasticTranscoder: data Preset
+ Network.AWS.ElasticTranscoder: data PresetWatermark
+ Network.AWS.ElasticTranscoder: data Thumbnails
+ Network.AWS.ElasticTranscoder: data TimeSpan
+ Network.AWS.ElasticTranscoder: data Timing
+ Network.AWS.ElasticTranscoder: data VideoParameters
+ Network.AWS.ElasticTranscoder: data Warning
+ Network.AWS.ElasticTranscoder: detectedProperties :: DetectedProperties
+ Network.AWS.ElasticTranscoder: dpDurationMillis :: Lens' DetectedProperties (Maybe Integer)
+ Network.AWS.ElasticTranscoder: dpFileSize :: Lens' DetectedProperties (Maybe Integer)
+ Network.AWS.ElasticTranscoder: dpFrameRate :: Lens' DetectedProperties (Maybe Text)
+ Network.AWS.ElasticTranscoder: dpHeight :: Lens' DetectedProperties (Maybe Int)
+ Network.AWS.ElasticTranscoder: dpWidth :: Lens' DetectedProperties (Maybe Int)
+ Network.AWS.ElasticTranscoder: eInitializationVector :: Lens' Encryption (Maybe Text)
+ Network.AWS.ElasticTranscoder: eKey :: Lens' Encryption (Maybe Text)
+ Network.AWS.ElasticTranscoder: eKeyMD5 :: Lens' Encryption (Maybe Text)
+ Network.AWS.ElasticTranscoder: eMode :: Lens' Encryption (Maybe Text)
+ Network.AWS.ElasticTranscoder: encryption :: Encryption
+ Network.AWS.ElasticTranscoder: hcpInitializationVector :: Lens' HlsContentProtection (Maybe Text)
+ Network.AWS.ElasticTranscoder: hcpKey :: Lens' HlsContentProtection (Maybe Text)
+ Network.AWS.ElasticTranscoder: hcpKeyMD5 :: Lens' HlsContentProtection (Maybe Text)
+ Network.AWS.ElasticTranscoder: hcpKeyStoragePolicy :: Lens' HlsContentProtection (Maybe Text)
+ Network.AWS.ElasticTranscoder: hcpLicenseAcquisitionURL :: Lens' HlsContentProtection (Maybe Text)
+ Network.AWS.ElasticTranscoder: hcpMethod :: Lens' HlsContentProtection (Maybe Text)
+ Network.AWS.ElasticTranscoder: hlsContentProtection :: HlsContentProtection
+ Network.AWS.ElasticTranscoder: jARN :: Lens' Job' (Maybe Text)
+ Network.AWS.ElasticTranscoder: jId :: Lens' Job' (Maybe Text)
+ Network.AWS.ElasticTranscoder: jInput :: Lens' Job' (Maybe JobInput)
+ Network.AWS.ElasticTranscoder: jOutput :: Lens' Job' (Maybe JobOutput)
+ Network.AWS.ElasticTranscoder: jOutputKeyPrefix :: Lens' Job' (Maybe Text)
+ Network.AWS.ElasticTranscoder: jOutputs :: Lens' Job' [JobOutput]
+ Network.AWS.ElasticTranscoder: jPipelineId :: Lens' Job' (Maybe Text)
+ Network.AWS.ElasticTranscoder: jPlaylists :: Lens' Job' [Playlist]
+ Network.AWS.ElasticTranscoder: jStatus :: Lens' Job' (Maybe Text)
+ Network.AWS.ElasticTranscoder: jTiming :: Lens' Job' (Maybe Timing)
+ Network.AWS.ElasticTranscoder: jUserMetadata :: Lens' Job' (HashMap Text Text)
+ Network.AWS.ElasticTranscoder: jaaArtwork :: Lens' JobAlbumArt [Artwork]
+ Network.AWS.ElasticTranscoder: jaaMergePolicy :: Lens' JobAlbumArt (Maybe Text)
+ Network.AWS.ElasticTranscoder: jiAspectRatio :: Lens' JobInput (Maybe Text)
+ Network.AWS.ElasticTranscoder: jiContainer :: Lens' JobInput (Maybe Text)
+ Network.AWS.ElasticTranscoder: jiDetectedProperties :: Lens' JobInput (Maybe DetectedProperties)
+ Network.AWS.ElasticTranscoder: jiEncryption :: Lens' JobInput (Maybe Encryption)
+ Network.AWS.ElasticTranscoder: jiFrameRate :: Lens' JobInput (Maybe Text)
+ Network.AWS.ElasticTranscoder: jiInterlaced :: Lens' JobInput (Maybe Text)
+ Network.AWS.ElasticTranscoder: jiKey :: Lens' JobInput (Maybe Text)
+ Network.AWS.ElasticTranscoder: jiResolution :: Lens' JobInput (Maybe Text)
+ Network.AWS.ElasticTranscoder: joAlbumArt :: Lens' JobOutput (Maybe JobAlbumArt)
+ Network.AWS.ElasticTranscoder: joAppliedColorSpaceConversion :: Lens' JobOutput (Maybe Text)
+ Network.AWS.ElasticTranscoder: joCaptions :: Lens' JobOutput (Maybe Captions)
+ Network.AWS.ElasticTranscoder: joComposition :: Lens' JobOutput [Clip]
+ Network.AWS.ElasticTranscoder: joDuration :: Lens' JobOutput (Maybe Integer)
+ Network.AWS.ElasticTranscoder: joDurationMillis :: Lens' JobOutput (Maybe Integer)
+ Network.AWS.ElasticTranscoder: joEncryption :: Lens' JobOutput (Maybe Encryption)
+ Network.AWS.ElasticTranscoder: joFileSize :: Lens' JobOutput (Maybe Integer)
+ Network.AWS.ElasticTranscoder: joFrameRate :: Lens' JobOutput (Maybe Text)
+ Network.AWS.ElasticTranscoder: joHeight :: Lens' JobOutput (Maybe Int)
+ Network.AWS.ElasticTranscoder: joId :: Lens' JobOutput (Maybe Text)
+ Network.AWS.ElasticTranscoder: joKey :: Lens' JobOutput (Maybe Text)
+ Network.AWS.ElasticTranscoder: joPresetId :: Lens' JobOutput (Maybe Text)
+ Network.AWS.ElasticTranscoder: joRotate :: Lens' JobOutput (Maybe Text)
+ Network.AWS.ElasticTranscoder: joSegmentDuration :: Lens' JobOutput (Maybe Text)
+ Network.AWS.ElasticTranscoder: joStatus :: Lens' JobOutput (Maybe Text)
+ Network.AWS.ElasticTranscoder: joStatusDetail :: Lens' JobOutput (Maybe Text)
+ Network.AWS.ElasticTranscoder: joThumbnailEncryption :: Lens' JobOutput (Maybe Encryption)
+ Network.AWS.ElasticTranscoder: joThumbnailPattern :: Lens' JobOutput (Maybe Text)
+ Network.AWS.ElasticTranscoder: joWatermarks :: Lens' JobOutput [JobWatermark]
+ Network.AWS.ElasticTranscoder: joWidth :: Lens' JobOutput (Maybe Int)
+ Network.AWS.ElasticTranscoder: job' :: Job'
+ Network.AWS.ElasticTranscoder: jobAlbumArt :: JobAlbumArt
+ Network.AWS.ElasticTranscoder: jobComplete :: Wait ReadJob
+ Network.AWS.ElasticTranscoder: jobInput :: JobInput
+ Network.AWS.ElasticTranscoder: jobOutput :: JobOutput
+ Network.AWS.ElasticTranscoder: jobWatermark :: JobWatermark
+ Network.AWS.ElasticTranscoder: jwEncryption :: Lens' JobWatermark (Maybe Encryption)
+ Network.AWS.ElasticTranscoder: jwInputKey :: Lens' JobWatermark (Maybe Text)
+ Network.AWS.ElasticTranscoder: jwPresetWatermarkId :: Lens' JobWatermark (Maybe Text)
+ Network.AWS.ElasticTranscoder: nCompleted :: Lens' Notifications (Maybe Text)
+ Network.AWS.ElasticTranscoder: nError :: Lens' Notifications (Maybe Text)
+ Network.AWS.ElasticTranscoder: nProgressing :: Lens' Notifications (Maybe Text)
+ Network.AWS.ElasticTranscoder: nWarning :: Lens' Notifications (Maybe Text)
+ Network.AWS.ElasticTranscoder: notifications :: Notifications
+ Network.AWS.ElasticTranscoder: pAccess :: Lens' Permission [Text]
+ Network.AWS.ElasticTranscoder: pFormat :: Lens' Playlist (Maybe Text)
+ Network.AWS.ElasticTranscoder: pGrantee :: Lens' Permission (Maybe Text)
+ Network.AWS.ElasticTranscoder: pGranteeType :: Lens' Permission (Maybe Text)
+ Network.AWS.ElasticTranscoder: pHlsContentProtection :: Lens' Playlist (Maybe HlsContentProtection)
+ Network.AWS.ElasticTranscoder: pName :: Lens' Playlist (Maybe Text)
+ Network.AWS.ElasticTranscoder: pOutputKeys :: Lens' Playlist [Text]
+ Network.AWS.ElasticTranscoder: pPlayReadyDrm :: Lens' Playlist (Maybe PlayReadyDrm)
+ Network.AWS.ElasticTranscoder: pStatus :: Lens' Playlist (Maybe Text)
+ Network.AWS.ElasticTranscoder: pStatusDetail :: Lens' Playlist (Maybe Text)
+ Network.AWS.ElasticTranscoder: permission :: Permission
+ Network.AWS.ElasticTranscoder: pipARN :: Lens' Pipeline (Maybe Text)
+ Network.AWS.ElasticTranscoder: pipAWSKMSKeyARN :: Lens' Pipeline (Maybe Text)
+ Network.AWS.ElasticTranscoder: pipContentConfig :: Lens' Pipeline (Maybe PipelineOutputConfig)
+ Network.AWS.ElasticTranscoder: pipId :: Lens' Pipeline (Maybe Text)
+ Network.AWS.ElasticTranscoder: pipInputBucket :: Lens' Pipeline (Maybe Text)
+ Network.AWS.ElasticTranscoder: pipName :: Lens' Pipeline (Maybe Text)
+ Network.AWS.ElasticTranscoder: pipNotifications :: Lens' Pipeline (Maybe Notifications)
+ Network.AWS.ElasticTranscoder: pipOutputBucket :: Lens' Pipeline (Maybe Text)
+ Network.AWS.ElasticTranscoder: pipRole :: Lens' Pipeline (Maybe Text)
+ Network.AWS.ElasticTranscoder: pipStatus :: Lens' Pipeline (Maybe Text)
+ Network.AWS.ElasticTranscoder: pipThumbnailConfig :: Lens' Pipeline (Maybe PipelineOutputConfig)
+ Network.AWS.ElasticTranscoder: pipeline :: Pipeline
+ Network.AWS.ElasticTranscoder: pipelineOutputConfig :: PipelineOutputConfig
+ Network.AWS.ElasticTranscoder: playReadyDrm :: PlayReadyDrm
+ Network.AWS.ElasticTranscoder: playlist :: Playlist
+ Network.AWS.ElasticTranscoder: pocBucket :: Lens' PipelineOutputConfig (Maybe Text)
+ Network.AWS.ElasticTranscoder: pocPermissions :: Lens' PipelineOutputConfig [Permission]
+ Network.AWS.ElasticTranscoder: pocStorageClass :: Lens' PipelineOutputConfig (Maybe Text)
+ Network.AWS.ElasticTranscoder: prdFormat :: Lens' PlayReadyDrm (Maybe Text)
+ Network.AWS.ElasticTranscoder: prdInitializationVector :: Lens' PlayReadyDrm (Maybe Text)
+ Network.AWS.ElasticTranscoder: prdKey :: Lens' PlayReadyDrm (Maybe Text)
+ Network.AWS.ElasticTranscoder: prdKeyId :: Lens' PlayReadyDrm (Maybe Text)
+ Network.AWS.ElasticTranscoder: prdKeyMD5 :: Lens' PlayReadyDrm (Maybe Text)
+ Network.AWS.ElasticTranscoder: prdLicenseAcquisitionURL :: Lens' PlayReadyDrm (Maybe Text)
+ Network.AWS.ElasticTranscoder: preARN :: Lens' Preset (Maybe Text)
+ Network.AWS.ElasticTranscoder: preAudio :: Lens' Preset (Maybe AudioParameters)
+ Network.AWS.ElasticTranscoder: preContainer :: Lens' Preset (Maybe Text)
+ Network.AWS.ElasticTranscoder: preDescription :: Lens' Preset (Maybe Text)
+ Network.AWS.ElasticTranscoder: preId :: Lens' Preset (Maybe Text)
+ Network.AWS.ElasticTranscoder: preName :: Lens' Preset (Maybe Text)
+ Network.AWS.ElasticTranscoder: preThumbnails :: Lens' Preset (Maybe Thumbnails)
+ Network.AWS.ElasticTranscoder: preType :: Lens' Preset (Maybe Text)
+ Network.AWS.ElasticTranscoder: preVideo :: Lens' Preset (Maybe VideoParameters)
+ Network.AWS.ElasticTranscoder: preset :: Preset
+ Network.AWS.ElasticTranscoder: presetWatermark :: PresetWatermark
+ Network.AWS.ElasticTranscoder: pwHorizontalAlign :: Lens' PresetWatermark (Maybe Text)
+ Network.AWS.ElasticTranscoder: pwHorizontalOffset :: Lens' PresetWatermark (Maybe Text)
+ Network.AWS.ElasticTranscoder: pwId :: Lens' PresetWatermark (Maybe Text)
+ Network.AWS.ElasticTranscoder: pwMaxHeight :: Lens' PresetWatermark (Maybe Text)
+ Network.AWS.ElasticTranscoder: pwMaxWidth :: Lens' PresetWatermark (Maybe Text)
+ Network.AWS.ElasticTranscoder: pwOpacity :: Lens' PresetWatermark (Maybe Text)
+ Network.AWS.ElasticTranscoder: pwSizingPolicy :: Lens' PresetWatermark (Maybe Text)
+ Network.AWS.ElasticTranscoder: pwTarget :: Lens' PresetWatermark (Maybe Text)
+ Network.AWS.ElasticTranscoder: pwVerticalAlign :: Lens' PresetWatermark (Maybe Text)
+ Network.AWS.ElasticTranscoder: pwVerticalOffset :: Lens' PresetWatermark (Maybe Text)
+ Network.AWS.ElasticTranscoder: tAspectRatio :: Lens' Thumbnails (Maybe Text)
+ Network.AWS.ElasticTranscoder: tFinishTimeMillis :: Lens' Timing (Maybe Integer)
+ Network.AWS.ElasticTranscoder: tFormat :: Lens' Thumbnails (Maybe Text)
+ Network.AWS.ElasticTranscoder: tInterval :: Lens' Thumbnails (Maybe Text)
+ Network.AWS.ElasticTranscoder: tMaxHeight :: Lens' Thumbnails (Maybe Text)
+ Network.AWS.ElasticTranscoder: tMaxWidth :: Lens' Thumbnails (Maybe Text)
+ Network.AWS.ElasticTranscoder: tPaddingPolicy :: Lens' Thumbnails (Maybe Text)
+ Network.AWS.ElasticTranscoder: tResolution :: Lens' Thumbnails (Maybe Text)
+ Network.AWS.ElasticTranscoder: tSizingPolicy :: Lens' Thumbnails (Maybe Text)
+ Network.AWS.ElasticTranscoder: tStartTimeMillis :: Lens' Timing (Maybe Integer)
+ Network.AWS.ElasticTranscoder: tSubmitTimeMillis :: Lens' Timing (Maybe Integer)
+ Network.AWS.ElasticTranscoder: thumbnails :: Thumbnails
+ Network.AWS.ElasticTranscoder: timeSpan :: TimeSpan
+ Network.AWS.ElasticTranscoder: timing :: Timing
+ Network.AWS.ElasticTranscoder: tsDuration :: Lens' TimeSpan (Maybe Text)
+ Network.AWS.ElasticTranscoder: tsStartTime :: Lens' TimeSpan (Maybe Text)
+ Network.AWS.ElasticTranscoder: videoParameters :: VideoParameters
+ Network.AWS.ElasticTranscoder: vpAspectRatio :: Lens' VideoParameters (Maybe Text)
+ Network.AWS.ElasticTranscoder: vpBitRate :: Lens' VideoParameters (Maybe Text)
+ Network.AWS.ElasticTranscoder: vpCodec :: Lens' VideoParameters (Maybe Text)
+ Network.AWS.ElasticTranscoder: vpCodecOptions :: Lens' VideoParameters (HashMap Text Text)
+ Network.AWS.ElasticTranscoder: vpDisplayAspectRatio :: Lens' VideoParameters (Maybe Text)
+ Network.AWS.ElasticTranscoder: vpFixedGOP :: Lens' VideoParameters (Maybe Text)
+ Network.AWS.ElasticTranscoder: vpFrameRate :: Lens' VideoParameters (Maybe Text)
+ Network.AWS.ElasticTranscoder: vpKeyframesMaxDist :: Lens' VideoParameters (Maybe Text)
+ Network.AWS.ElasticTranscoder: vpMaxFrameRate :: Lens' VideoParameters (Maybe Text)
+ Network.AWS.ElasticTranscoder: vpMaxHeight :: Lens' VideoParameters (Maybe Text)
+ Network.AWS.ElasticTranscoder: vpMaxWidth :: Lens' VideoParameters (Maybe Text)
+ Network.AWS.ElasticTranscoder: vpPaddingPolicy :: Lens' VideoParameters (Maybe Text)
+ Network.AWS.ElasticTranscoder: vpResolution :: Lens' VideoParameters (Maybe Text)
+ Network.AWS.ElasticTranscoder: vpSizingPolicy :: Lens' VideoParameters (Maybe Text)
+ Network.AWS.ElasticTranscoder: vpWatermarks :: Lens' VideoParameters [PresetWatermark]
+ Network.AWS.ElasticTranscoder: wCode :: Lens' Warning (Maybe Text)
+ Network.AWS.ElasticTranscoder: wMessage :: Lens' Warning (Maybe Text)
+ Network.AWS.ElasticTranscoder: warning :: Warning
+ Network.AWS.ElasticTranscoder.CancelJob: canrsStatus :: Lens' CancelJobResponse Int
+ Network.AWS.ElasticTranscoder.CancelJob: instance Constructor C1_0CancelJob
+ Network.AWS.ElasticTranscoder.CancelJob: instance Data CancelJob
+ Network.AWS.ElasticTranscoder.CancelJob: instance Data CancelJobResponse
+ Network.AWS.ElasticTranscoder.CancelJob: instance Datatype D1CancelJob
+ Network.AWS.ElasticTranscoder.CancelJob: instance Generic CancelJob
+ Network.AWS.ElasticTranscoder.CancelJob: instance Selector S1_0_0CancelJob
+ Network.AWS.ElasticTranscoder.CancelJob: instance Selector S1_0_0CancelJobResponse
+ Network.AWS.ElasticTranscoder.CancelJob: instance Typeable CancelJob
+ Network.AWS.ElasticTranscoder.CancelJob: instance Typeable CancelJobResponse
+ Network.AWS.ElasticTranscoder.CreateJob: cjrsJob :: Lens' CreateJobResponse (Maybe Job')
+ Network.AWS.ElasticTranscoder.CreateJob: cjrsStatus :: Lens' CreateJobResponse Int
+ Network.AWS.ElasticTranscoder.CreateJob: instance Constructor C1_0CreateJob
+ Network.AWS.ElasticTranscoder.CreateJob: instance Constructor C1_0CreateJobResponse
+ Network.AWS.ElasticTranscoder.CreateJob: instance Data CreateJob
+ Network.AWS.ElasticTranscoder.CreateJob: instance Data CreateJobResponse
+ Network.AWS.ElasticTranscoder.CreateJob: instance Datatype D1CreateJob
+ Network.AWS.ElasticTranscoder.CreateJob: instance Datatype D1CreateJobResponse
+ Network.AWS.ElasticTranscoder.CreateJob: instance Generic CreateJob
+ Network.AWS.ElasticTranscoder.CreateJob: instance Generic CreateJobResponse
+ Network.AWS.ElasticTranscoder.CreateJob: instance Selector S1_0_0CreateJob
+ Network.AWS.ElasticTranscoder.CreateJob: instance Selector S1_0_0CreateJobResponse
+ Network.AWS.ElasticTranscoder.CreateJob: instance Selector S1_0_1CreateJob
+ Network.AWS.ElasticTranscoder.CreateJob: instance Selector S1_0_1CreateJobResponse
+ Network.AWS.ElasticTranscoder.CreateJob: instance Selector S1_0_2CreateJob
+ Network.AWS.ElasticTranscoder.CreateJob: instance Selector S1_0_3CreateJob
+ Network.AWS.ElasticTranscoder.CreateJob: instance Selector S1_0_4CreateJob
+ Network.AWS.ElasticTranscoder.CreateJob: instance Selector S1_0_5CreateJob
+ Network.AWS.ElasticTranscoder.CreateJob: instance Selector S1_0_6CreateJob
+ Network.AWS.ElasticTranscoder.CreateJob: instance Typeable CreateJob
+ Network.AWS.ElasticTranscoder.CreateJob: instance Typeable CreateJobResponse
+ Network.AWS.ElasticTranscoder.CreatePipeline: cAWSKMSKeyARN :: Lens' CreatePipeline (Maybe Text)
+ Network.AWS.ElasticTranscoder.CreatePipeline: cContentConfig :: Lens' CreatePipeline (Maybe PipelineOutputConfig)
+ Network.AWS.ElasticTranscoder.CreatePipeline: cInputBucket :: Lens' CreatePipeline Text
+ Network.AWS.ElasticTranscoder.CreatePipeline: cName :: Lens' CreatePipeline Text
+ Network.AWS.ElasticTranscoder.CreatePipeline: cNotifications :: Lens' CreatePipeline (Maybe Notifications)
+ Network.AWS.ElasticTranscoder.CreatePipeline: cOutputBucket :: Lens' CreatePipeline (Maybe Text)
+ Network.AWS.ElasticTranscoder.CreatePipeline: cRole :: Lens' CreatePipeline Text
+ Network.AWS.ElasticTranscoder.CreatePipeline: cThumbnailConfig :: Lens' CreatePipeline (Maybe PipelineOutputConfig)
+ Network.AWS.ElasticTranscoder.CreatePipeline: crsPipeline :: Lens' CreatePipelineResponse (Maybe Pipeline)
+ Network.AWS.ElasticTranscoder.CreatePipeline: crsStatus :: Lens' CreatePipelineResponse Int
+ Network.AWS.ElasticTranscoder.CreatePipeline: crsWarnings :: Lens' CreatePipelineResponse [Warning]
+ Network.AWS.ElasticTranscoder.CreatePipeline: instance Constructor C1_0CreatePipeline
+ Network.AWS.ElasticTranscoder.CreatePipeline: instance Constructor C1_0CreatePipelineResponse
+ Network.AWS.ElasticTranscoder.CreatePipeline: instance Data CreatePipeline
+ Network.AWS.ElasticTranscoder.CreatePipeline: instance Data CreatePipelineResponse
+ Network.AWS.ElasticTranscoder.CreatePipeline: instance Datatype D1CreatePipeline
+ Network.AWS.ElasticTranscoder.CreatePipeline: instance Datatype D1CreatePipelineResponse
+ Network.AWS.ElasticTranscoder.CreatePipeline: instance Generic CreatePipeline
+ Network.AWS.ElasticTranscoder.CreatePipeline: instance Generic CreatePipelineResponse
+ Network.AWS.ElasticTranscoder.CreatePipeline: instance Selector S1_0_0CreatePipeline
+ Network.AWS.ElasticTranscoder.CreatePipeline: instance Selector S1_0_0CreatePipelineResponse
+ Network.AWS.ElasticTranscoder.CreatePipeline: instance Selector S1_0_1CreatePipeline
+ Network.AWS.ElasticTranscoder.CreatePipeline: instance Selector S1_0_1CreatePipelineResponse
+ Network.AWS.ElasticTranscoder.CreatePipeline: instance Selector S1_0_2CreatePipeline
+ Network.AWS.ElasticTranscoder.CreatePipeline: instance Selector S1_0_2CreatePipelineResponse
+ Network.AWS.ElasticTranscoder.CreatePipeline: instance Selector S1_0_3CreatePipeline
+ Network.AWS.ElasticTranscoder.CreatePipeline: instance Selector S1_0_4CreatePipeline
+ Network.AWS.ElasticTranscoder.CreatePipeline: instance Selector S1_0_5CreatePipeline
+ Network.AWS.ElasticTranscoder.CreatePipeline: instance Selector S1_0_6CreatePipeline
+ Network.AWS.ElasticTranscoder.CreatePipeline: instance Selector S1_0_7CreatePipeline
+ Network.AWS.ElasticTranscoder.CreatePipeline: instance Typeable CreatePipeline
+ Network.AWS.ElasticTranscoder.CreatePipeline: instance Typeable CreatePipelineResponse
+ Network.AWS.ElasticTranscoder.CreatePreset: cprsPreset :: Lens' CreatePresetResponse (Maybe Preset)
+ Network.AWS.ElasticTranscoder.CreatePreset: cprsStatus :: Lens' CreatePresetResponse Int
+ Network.AWS.ElasticTranscoder.CreatePreset: cprsWarning :: Lens' CreatePresetResponse (Maybe Text)
+ Network.AWS.ElasticTranscoder.CreatePreset: instance Constructor C1_0CreatePreset
+ Network.AWS.ElasticTranscoder.CreatePreset: instance Constructor C1_0CreatePresetResponse
+ Network.AWS.ElasticTranscoder.CreatePreset: instance Data CreatePreset
+ Network.AWS.ElasticTranscoder.CreatePreset: instance Data CreatePresetResponse
+ Network.AWS.ElasticTranscoder.CreatePreset: instance Datatype D1CreatePreset
+ Network.AWS.ElasticTranscoder.CreatePreset: instance Datatype D1CreatePresetResponse
+ Network.AWS.ElasticTranscoder.CreatePreset: instance Generic CreatePreset
+ Network.AWS.ElasticTranscoder.CreatePreset: instance Generic CreatePresetResponse
+ Network.AWS.ElasticTranscoder.CreatePreset: instance Selector S1_0_0CreatePreset
+ Network.AWS.ElasticTranscoder.CreatePreset: instance Selector S1_0_0CreatePresetResponse
+ Network.AWS.ElasticTranscoder.CreatePreset: instance Selector S1_0_1CreatePreset
+ Network.AWS.ElasticTranscoder.CreatePreset: instance Selector S1_0_1CreatePresetResponse
+ Network.AWS.ElasticTranscoder.CreatePreset: instance Selector S1_0_2CreatePreset
+ Network.AWS.ElasticTranscoder.CreatePreset: instance Selector S1_0_2CreatePresetResponse
+ Network.AWS.ElasticTranscoder.CreatePreset: instance Selector S1_0_3CreatePreset
+ Network.AWS.ElasticTranscoder.CreatePreset: instance Selector S1_0_4CreatePreset
+ Network.AWS.ElasticTranscoder.CreatePreset: instance Selector S1_0_5CreatePreset
+ Network.AWS.ElasticTranscoder.CreatePreset: instance Typeable CreatePreset
+ Network.AWS.ElasticTranscoder.CreatePreset: instance Typeable CreatePresetResponse
+ Network.AWS.ElasticTranscoder.DeletePipeline: dId :: Lens' DeletePipeline Text
+ Network.AWS.ElasticTranscoder.DeletePipeline: drsStatus :: Lens' DeletePipelineResponse Int
+ Network.AWS.ElasticTranscoder.DeletePipeline: instance Constructor C1_0DeletePipeline
+ Network.AWS.ElasticTranscoder.DeletePipeline: instance Data DeletePipeline
+ Network.AWS.ElasticTranscoder.DeletePipeline: instance Data DeletePipelineResponse
+ Network.AWS.ElasticTranscoder.DeletePipeline: instance Datatype D1DeletePipeline
+ Network.AWS.ElasticTranscoder.DeletePipeline: instance Generic DeletePipeline
+ Network.AWS.ElasticTranscoder.DeletePipeline: instance Selector S1_0_0DeletePipeline
+ Network.AWS.ElasticTranscoder.DeletePipeline: instance Selector S1_0_0DeletePipelineResponse
+ Network.AWS.ElasticTranscoder.DeletePipeline: instance Typeable DeletePipeline
+ Network.AWS.ElasticTranscoder.DeletePipeline: instance Typeable DeletePipelineResponse
+ Network.AWS.ElasticTranscoder.DeletePreset: dprsStatus :: Lens' DeletePresetResponse Int
+ Network.AWS.ElasticTranscoder.DeletePreset: instance Constructor C1_0DeletePreset
+ Network.AWS.ElasticTranscoder.DeletePreset: instance Data DeletePreset
+ Network.AWS.ElasticTranscoder.DeletePreset: instance Data DeletePresetResponse
+ Network.AWS.ElasticTranscoder.DeletePreset: instance Datatype D1DeletePreset
+ Network.AWS.ElasticTranscoder.DeletePreset: instance Generic DeletePreset
+ Network.AWS.ElasticTranscoder.DeletePreset: instance Selector S1_0_0DeletePreset
+ Network.AWS.ElasticTranscoder.DeletePreset: instance Selector S1_0_0DeletePresetResponse
+ Network.AWS.ElasticTranscoder.DeletePreset: instance Typeable DeletePreset
+ Network.AWS.ElasticTranscoder.DeletePreset: instance Typeable DeletePresetResponse
+ Network.AWS.ElasticTranscoder.ListJobsByPipeline: instance Constructor C1_0ListJobsByPipeline
+ Network.AWS.ElasticTranscoder.ListJobsByPipeline: instance Constructor C1_0ListJobsByPipelineResponse
+ Network.AWS.ElasticTranscoder.ListJobsByPipeline: instance Data ListJobsByPipeline
+ Network.AWS.ElasticTranscoder.ListJobsByPipeline: instance Data ListJobsByPipelineResponse
+ Network.AWS.ElasticTranscoder.ListJobsByPipeline: instance Datatype D1ListJobsByPipeline
+ Network.AWS.ElasticTranscoder.ListJobsByPipeline: instance Datatype D1ListJobsByPipelineResponse
+ Network.AWS.ElasticTranscoder.ListJobsByPipeline: instance Generic ListJobsByPipeline
+ Network.AWS.ElasticTranscoder.ListJobsByPipeline: instance Generic ListJobsByPipelineResponse
+ Network.AWS.ElasticTranscoder.ListJobsByPipeline: instance Selector S1_0_0ListJobsByPipeline
+ Network.AWS.ElasticTranscoder.ListJobsByPipeline: instance Selector S1_0_0ListJobsByPipelineResponse
+ Network.AWS.ElasticTranscoder.ListJobsByPipeline: instance Selector S1_0_1ListJobsByPipeline
+ Network.AWS.ElasticTranscoder.ListJobsByPipeline: instance Selector S1_0_1ListJobsByPipelineResponse
+ Network.AWS.ElasticTranscoder.ListJobsByPipeline: instance Selector S1_0_2ListJobsByPipeline
+ Network.AWS.ElasticTranscoder.ListJobsByPipeline: instance Selector S1_0_2ListJobsByPipelineResponse
+ Network.AWS.ElasticTranscoder.ListJobsByPipeline: instance Typeable ListJobsByPipeline
+ Network.AWS.ElasticTranscoder.ListJobsByPipeline: instance Typeable ListJobsByPipelineResponse
+ Network.AWS.ElasticTranscoder.ListJobsByPipeline: ljbprsJobs :: Lens' ListJobsByPipelineResponse [Job']
+ Network.AWS.ElasticTranscoder.ListJobsByPipeline: ljbprsNextPageToken :: Lens' ListJobsByPipelineResponse (Maybe Text)
+ Network.AWS.ElasticTranscoder.ListJobsByPipeline: ljbprsStatus :: Lens' ListJobsByPipelineResponse Int
+ Network.AWS.ElasticTranscoder.ListJobsByStatus: instance Constructor C1_0ListJobsByStatus
+ Network.AWS.ElasticTranscoder.ListJobsByStatus: instance Constructor C1_0ListJobsByStatusResponse
+ Network.AWS.ElasticTranscoder.ListJobsByStatus: instance Data ListJobsByStatus
+ Network.AWS.ElasticTranscoder.ListJobsByStatus: instance Data ListJobsByStatusResponse
+ Network.AWS.ElasticTranscoder.ListJobsByStatus: instance Datatype D1ListJobsByStatus
+ Network.AWS.ElasticTranscoder.ListJobsByStatus: instance Datatype D1ListJobsByStatusResponse
+ Network.AWS.ElasticTranscoder.ListJobsByStatus: instance Generic ListJobsByStatus
+ Network.AWS.ElasticTranscoder.ListJobsByStatus: instance Generic ListJobsByStatusResponse
+ Network.AWS.ElasticTranscoder.ListJobsByStatus: instance Selector S1_0_0ListJobsByStatus
+ Network.AWS.ElasticTranscoder.ListJobsByStatus: instance Selector S1_0_0ListJobsByStatusResponse
+ Network.AWS.ElasticTranscoder.ListJobsByStatus: instance Selector S1_0_1ListJobsByStatus
+ Network.AWS.ElasticTranscoder.ListJobsByStatus: instance Selector S1_0_1ListJobsByStatusResponse
+ Network.AWS.ElasticTranscoder.ListJobsByStatus: instance Selector S1_0_2ListJobsByStatus
+ Network.AWS.ElasticTranscoder.ListJobsByStatus: instance Selector S1_0_2ListJobsByStatusResponse
+ Network.AWS.ElasticTranscoder.ListJobsByStatus: instance Typeable ListJobsByStatus
+ Network.AWS.ElasticTranscoder.ListJobsByStatus: instance Typeable ListJobsByStatusResponse
+ Network.AWS.ElasticTranscoder.ListJobsByStatus: ljbsrsJobs :: Lens' ListJobsByStatusResponse [Job']
+ Network.AWS.ElasticTranscoder.ListJobsByStatus: ljbsrsNextPageToken :: Lens' ListJobsByStatusResponse (Maybe Text)
+ Network.AWS.ElasticTranscoder.ListJobsByStatus: ljbsrsStatus :: Lens' ListJobsByStatusResponse Int
+ Network.AWS.ElasticTranscoder.ListPipelines: instance Constructor C1_0ListPipelines
+ Network.AWS.ElasticTranscoder.ListPipelines: instance Constructor C1_0ListPipelinesResponse
+ Network.AWS.ElasticTranscoder.ListPipelines: instance Data ListPipelines
+ Network.AWS.ElasticTranscoder.ListPipelines: instance Data ListPipelinesResponse
+ Network.AWS.ElasticTranscoder.ListPipelines: instance Datatype D1ListPipelines
+ Network.AWS.ElasticTranscoder.ListPipelines: instance Datatype D1ListPipelinesResponse
+ Network.AWS.ElasticTranscoder.ListPipelines: instance Generic ListPipelines
+ Network.AWS.ElasticTranscoder.ListPipelines: instance Generic ListPipelinesResponse
+ Network.AWS.ElasticTranscoder.ListPipelines: instance Selector S1_0_0ListPipelines
+ Network.AWS.ElasticTranscoder.ListPipelines: instance Selector S1_0_0ListPipelinesResponse
+ Network.AWS.ElasticTranscoder.ListPipelines: instance Selector S1_0_1ListPipelines
+ Network.AWS.ElasticTranscoder.ListPipelines: instance Selector S1_0_1ListPipelinesResponse
+ Network.AWS.ElasticTranscoder.ListPipelines: instance Selector S1_0_2ListPipelinesResponse
+ Network.AWS.ElasticTranscoder.ListPipelines: instance Typeable ListPipelines
+ Network.AWS.ElasticTranscoder.ListPipelines: instance Typeable ListPipelinesResponse
+ Network.AWS.ElasticTranscoder.ListPipelines: lprsNextPageToken :: Lens' ListPipelinesResponse (Maybe Text)
+ Network.AWS.ElasticTranscoder.ListPipelines: lprsPipelines :: Lens' ListPipelinesResponse [Pipeline]
+ Network.AWS.ElasticTranscoder.ListPipelines: lprsStatus :: Lens' ListPipelinesResponse Int
+ Network.AWS.ElasticTranscoder.ListPresets: instance Constructor C1_0ListPresets
+ Network.AWS.ElasticTranscoder.ListPresets: instance Constructor C1_0ListPresetsResponse
+ Network.AWS.ElasticTranscoder.ListPresets: instance Data ListPresets
+ Network.AWS.ElasticTranscoder.ListPresets: instance Data ListPresetsResponse
+ Network.AWS.ElasticTranscoder.ListPresets: instance Datatype D1ListPresets
+ Network.AWS.ElasticTranscoder.ListPresets: instance Datatype D1ListPresetsResponse
+ Network.AWS.ElasticTranscoder.ListPresets: instance Generic ListPresets
+ Network.AWS.ElasticTranscoder.ListPresets: instance Generic ListPresetsResponse
+ Network.AWS.ElasticTranscoder.ListPresets: instance Selector S1_0_0ListPresets
+ Network.AWS.ElasticTranscoder.ListPresets: instance Selector S1_0_0ListPresetsResponse
+ Network.AWS.ElasticTranscoder.ListPresets: instance Selector S1_0_1ListPresets
+ Network.AWS.ElasticTranscoder.ListPresets: instance Selector S1_0_1ListPresetsResponse
+ Network.AWS.ElasticTranscoder.ListPresets: instance Selector S1_0_2ListPresetsResponse
+ Network.AWS.ElasticTranscoder.ListPresets: instance Typeable ListPresets
+ Network.AWS.ElasticTranscoder.ListPresets: instance Typeable ListPresetsResponse
+ Network.AWS.ElasticTranscoder.ListPresets: lAscending :: Lens' ListPresets (Maybe Text)
+ Network.AWS.ElasticTranscoder.ListPresets: lPageToken :: Lens' ListPresets (Maybe Text)
+ Network.AWS.ElasticTranscoder.ListPresets: lrsNextPageToken :: Lens' ListPresetsResponse (Maybe Text)
+ Network.AWS.ElasticTranscoder.ListPresets: lrsPresets :: Lens' ListPresetsResponse [Preset]
+ Network.AWS.ElasticTranscoder.ListPresets: lrsStatus :: Lens' ListPresetsResponse Int
+ Network.AWS.ElasticTranscoder.ReadJob: instance Constructor C1_0ReadJob
+ Network.AWS.ElasticTranscoder.ReadJob: instance Constructor C1_0ReadJobResponse
+ Network.AWS.ElasticTranscoder.ReadJob: instance Data ReadJob
+ Network.AWS.ElasticTranscoder.ReadJob: instance Data ReadJobResponse
+ Network.AWS.ElasticTranscoder.ReadJob: instance Datatype D1ReadJob
+ Network.AWS.ElasticTranscoder.ReadJob: instance Datatype D1ReadJobResponse
+ Network.AWS.ElasticTranscoder.ReadJob: instance Generic ReadJob
+ Network.AWS.ElasticTranscoder.ReadJob: instance Generic ReadJobResponse
+ Network.AWS.ElasticTranscoder.ReadJob: instance Selector S1_0_0ReadJob
+ Network.AWS.ElasticTranscoder.ReadJob: instance Selector S1_0_0ReadJobResponse
+ Network.AWS.ElasticTranscoder.ReadJob: instance Selector S1_0_1ReadJobResponse
+ Network.AWS.ElasticTranscoder.ReadJob: instance Typeable ReadJob
+ Network.AWS.ElasticTranscoder.ReadJob: instance Typeable ReadJobResponse
+ Network.AWS.ElasticTranscoder.ReadJob: rjrsJob :: Lens' ReadJobResponse Job'
+ Network.AWS.ElasticTranscoder.ReadJob: rjrsStatus :: Lens' ReadJobResponse Int
+ Network.AWS.ElasticTranscoder.ReadPipeline: instance Constructor C1_0ReadPipeline
+ Network.AWS.ElasticTranscoder.ReadPipeline: instance Constructor C1_0ReadPipelineResponse
+ Network.AWS.ElasticTranscoder.ReadPipeline: instance Data ReadPipeline
+ Network.AWS.ElasticTranscoder.ReadPipeline: instance Data ReadPipelineResponse
+ Network.AWS.ElasticTranscoder.ReadPipeline: instance Datatype D1ReadPipeline
+ Network.AWS.ElasticTranscoder.ReadPipeline: instance Datatype D1ReadPipelineResponse
+ Network.AWS.ElasticTranscoder.ReadPipeline: instance Generic ReadPipeline
+ Network.AWS.ElasticTranscoder.ReadPipeline: instance Generic ReadPipelineResponse
+ Network.AWS.ElasticTranscoder.ReadPipeline: instance Selector S1_0_0ReadPipeline
+ Network.AWS.ElasticTranscoder.ReadPipeline: instance Selector S1_0_0ReadPipelineResponse
+ Network.AWS.ElasticTranscoder.ReadPipeline: instance Selector S1_0_1ReadPipelineResponse
+ Network.AWS.ElasticTranscoder.ReadPipeline: instance Selector S1_0_2ReadPipelineResponse
+ Network.AWS.ElasticTranscoder.ReadPipeline: instance Typeable ReadPipeline
+ Network.AWS.ElasticTranscoder.ReadPipeline: instance Typeable ReadPipelineResponse
+ Network.AWS.ElasticTranscoder.ReadPipeline: rId :: Lens' ReadPipeline Text
+ Network.AWS.ElasticTranscoder.ReadPipeline: rrsPipeline :: Lens' ReadPipelineResponse (Maybe Pipeline)
+ Network.AWS.ElasticTranscoder.ReadPipeline: rrsStatus :: Lens' ReadPipelineResponse Int
+ Network.AWS.ElasticTranscoder.ReadPipeline: rrsWarnings :: Lens' ReadPipelineResponse [Warning]
+ Network.AWS.ElasticTranscoder.ReadPreset: instance Constructor C1_0ReadPreset
+ Network.AWS.ElasticTranscoder.ReadPreset: instance Constructor C1_0ReadPresetResponse
+ Network.AWS.ElasticTranscoder.ReadPreset: instance Data ReadPreset
+ Network.AWS.ElasticTranscoder.ReadPreset: instance Data ReadPresetResponse
+ Network.AWS.ElasticTranscoder.ReadPreset: instance Datatype D1ReadPreset
+ Network.AWS.ElasticTranscoder.ReadPreset: instance Datatype D1ReadPresetResponse
+ Network.AWS.ElasticTranscoder.ReadPreset: instance Generic ReadPreset
+ Network.AWS.ElasticTranscoder.ReadPreset: instance Generic ReadPresetResponse
+ Network.AWS.ElasticTranscoder.ReadPreset: instance Selector S1_0_0ReadPreset
+ Network.AWS.ElasticTranscoder.ReadPreset: instance Selector S1_0_0ReadPresetResponse
+ Network.AWS.ElasticTranscoder.ReadPreset: instance Selector S1_0_1ReadPresetResponse
+ Network.AWS.ElasticTranscoder.ReadPreset: instance Typeable ReadPreset
+ Network.AWS.ElasticTranscoder.ReadPreset: instance Typeable ReadPresetResponse
+ Network.AWS.ElasticTranscoder.ReadPreset: rprsPreset :: Lens' ReadPresetResponse (Maybe Preset)
+ Network.AWS.ElasticTranscoder.ReadPreset: rprsStatus :: Lens' ReadPresetResponse Int
+ Network.AWS.ElasticTranscoder.TestRole: instance Constructor C1_0TestRole
+ Network.AWS.ElasticTranscoder.TestRole: instance Constructor C1_0TestRoleResponse
+ Network.AWS.ElasticTranscoder.TestRole: instance Data TestRole
+ Network.AWS.ElasticTranscoder.TestRole: instance Data TestRoleResponse
+ Network.AWS.ElasticTranscoder.TestRole: instance Datatype D1TestRole
+ Network.AWS.ElasticTranscoder.TestRole: instance Datatype D1TestRoleResponse
+ Network.AWS.ElasticTranscoder.TestRole: instance Generic TestRole
+ Network.AWS.ElasticTranscoder.TestRole: instance Generic TestRoleResponse
+ Network.AWS.ElasticTranscoder.TestRole: instance Selector S1_0_0TestRole
+ Network.AWS.ElasticTranscoder.TestRole: instance Selector S1_0_0TestRoleResponse
+ Network.AWS.ElasticTranscoder.TestRole: instance Selector S1_0_1TestRole
+ Network.AWS.ElasticTranscoder.TestRole: instance Selector S1_0_1TestRoleResponse
+ Network.AWS.ElasticTranscoder.TestRole: instance Selector S1_0_2TestRole
+ Network.AWS.ElasticTranscoder.TestRole: instance Selector S1_0_2TestRoleResponse
+ Network.AWS.ElasticTranscoder.TestRole: instance Selector S1_0_3TestRole
+ Network.AWS.ElasticTranscoder.TestRole: instance Typeable TestRole
+ Network.AWS.ElasticTranscoder.TestRole: instance Typeable TestRoleResponse
+ Network.AWS.ElasticTranscoder.TestRole: trrsMessages :: Lens' TestRoleResponse [Text]
+ Network.AWS.ElasticTranscoder.TestRole: trrsStatus :: Lens' TestRoleResponse Int
+ Network.AWS.ElasticTranscoder.TestRole: trrsSuccess :: Lens' TestRoleResponse (Maybe Text)
+ Network.AWS.ElasticTranscoder.Types: _AccessDeniedException :: AsError a => Getting (First ServiceError) a ServiceError
+ Network.AWS.ElasticTranscoder.Types: _IncompatibleVersionException :: AsError a => Getting (First ServiceError) a ServiceError
+ Network.AWS.ElasticTranscoder.Types: _InternalServiceException :: AsError a => Getting (First ServiceError) a ServiceError
+ Network.AWS.ElasticTranscoder.Types: _LimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError
+ Network.AWS.ElasticTranscoder.Types: _ResourceInUseException :: AsError a => Getting (First ServiceError) a ServiceError
+ Network.AWS.ElasticTranscoder.Types: _ResourceNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError
+ Network.AWS.ElasticTranscoder.Types: _ValidationException :: AsError a => Getting (First ServiceError) a ServiceError
+ Network.AWS.ElasticTranscoder.Types: eKeyMD5 :: Lens' Encryption (Maybe Text)
+ Network.AWS.ElasticTranscoder.Types: hcpKeyMD5 :: Lens' HlsContentProtection (Maybe Text)
+ Network.AWS.ElasticTranscoder.Types: hcpLicenseAcquisitionURL :: Lens' HlsContentProtection (Maybe Text)
+ Network.AWS.ElasticTranscoder.Types: jARN :: Lens' Job' (Maybe Text)
+ Network.AWS.ElasticTranscoder.Types: job' :: Job'
+ Network.AWS.ElasticTranscoder.Types: pFormat :: Lens' Playlist (Maybe Text)
+ Network.AWS.ElasticTranscoder.Types: pHlsContentProtection :: Lens' Playlist (Maybe HlsContentProtection)
+ Network.AWS.ElasticTranscoder.Types: pOutputKeys :: Lens' Playlist [Text]
+ Network.AWS.ElasticTranscoder.Types: pPlayReadyDrm :: Lens' Playlist (Maybe PlayReadyDrm)
+ Network.AWS.ElasticTranscoder.Types: pStatusDetail :: Lens' Playlist (Maybe Text)
+ Network.AWS.ElasticTranscoder.Types: pipARN :: Lens' Pipeline (Maybe Text)
+ Network.AWS.ElasticTranscoder.Types: pipAWSKMSKeyARN :: Lens' Pipeline (Maybe Text)
+ Network.AWS.ElasticTranscoder.Types: pipContentConfig :: Lens' Pipeline (Maybe PipelineOutputConfig)
+ Network.AWS.ElasticTranscoder.Types: pipId :: Lens' Pipeline (Maybe Text)
+ Network.AWS.ElasticTranscoder.Types: pipInputBucket :: Lens' Pipeline (Maybe Text)
+ Network.AWS.ElasticTranscoder.Types: pipName :: Lens' Pipeline (Maybe Text)
+ Network.AWS.ElasticTranscoder.Types: pipNotifications :: Lens' Pipeline (Maybe Notifications)
+ Network.AWS.ElasticTranscoder.Types: pipOutputBucket :: Lens' Pipeline (Maybe Text)
+ Network.AWS.ElasticTranscoder.Types: pipRole :: Lens' Pipeline (Maybe Text)
+ Network.AWS.ElasticTranscoder.Types: pipStatus :: Lens' Pipeline (Maybe Text)
+ Network.AWS.ElasticTranscoder.Types: pipThumbnailConfig :: Lens' Pipeline (Maybe PipelineOutputConfig)
+ Network.AWS.ElasticTranscoder.Types: prdKeyMD5 :: Lens' PlayReadyDrm (Maybe Text)
+ Network.AWS.ElasticTranscoder.Types: prdLicenseAcquisitionURL :: Lens' PlayReadyDrm (Maybe Text)
+ Network.AWS.ElasticTranscoder.Types: preARN :: Lens' Preset (Maybe Text)
+ Network.AWS.ElasticTranscoder.Types: preAudio :: Lens' Preset (Maybe AudioParameters)
+ Network.AWS.ElasticTranscoder.Types: preContainer :: Lens' Preset (Maybe Text)
+ Network.AWS.ElasticTranscoder.Types: preDescription :: Lens' Preset (Maybe Text)
+ Network.AWS.ElasticTranscoder.Types: preId :: Lens' Preset (Maybe Text)
+ Network.AWS.ElasticTranscoder.Types: preName :: Lens' Preset (Maybe Text)
+ Network.AWS.ElasticTranscoder.Types: preThumbnails :: Lens' Preset (Maybe Thumbnails)
+ Network.AWS.ElasticTranscoder.Types: preType :: Lens' Preset (Maybe Text)
+ Network.AWS.ElasticTranscoder.Types: preVideo :: Lens' Preset (Maybe VideoParameters)
+ Network.AWS.ElasticTranscoder.UpdatePipeline: instance Constructor C1_0UpdatePipeline
+ Network.AWS.ElasticTranscoder.UpdatePipeline: instance Constructor C1_0UpdatePipelineResponse
+ Network.AWS.ElasticTranscoder.UpdatePipeline: instance Data UpdatePipeline
+ Network.AWS.ElasticTranscoder.UpdatePipeline: instance Data UpdatePipelineResponse
+ Network.AWS.ElasticTranscoder.UpdatePipeline: instance Datatype D1UpdatePipeline
+ Network.AWS.ElasticTranscoder.UpdatePipeline: instance Datatype D1UpdatePipelineResponse
+ Network.AWS.ElasticTranscoder.UpdatePipeline: instance Generic UpdatePipeline
+ Network.AWS.ElasticTranscoder.UpdatePipeline: instance Generic UpdatePipelineResponse
+ Network.AWS.ElasticTranscoder.UpdatePipeline: instance Selector S1_0_0UpdatePipeline
+ Network.AWS.ElasticTranscoder.UpdatePipeline: instance Selector S1_0_0UpdatePipelineResponse
+ Network.AWS.ElasticTranscoder.UpdatePipeline: instance Selector S1_0_1UpdatePipeline
+ Network.AWS.ElasticTranscoder.UpdatePipeline: instance Selector S1_0_1UpdatePipelineResponse
+ Network.AWS.ElasticTranscoder.UpdatePipeline: instance Selector S1_0_2UpdatePipeline
+ Network.AWS.ElasticTranscoder.UpdatePipeline: instance Selector S1_0_2UpdatePipelineResponse
+ Network.AWS.ElasticTranscoder.UpdatePipeline: instance Selector S1_0_3UpdatePipeline
+ Network.AWS.ElasticTranscoder.UpdatePipeline: instance Selector S1_0_4UpdatePipeline
+ Network.AWS.ElasticTranscoder.UpdatePipeline: instance Selector S1_0_5UpdatePipeline
+ Network.AWS.ElasticTranscoder.UpdatePipeline: instance Selector S1_0_6UpdatePipeline
+ Network.AWS.ElasticTranscoder.UpdatePipeline: instance Selector S1_0_7UpdatePipeline
+ Network.AWS.ElasticTranscoder.UpdatePipeline: instance Typeable UpdatePipeline
+ Network.AWS.ElasticTranscoder.UpdatePipeline: instance Typeable UpdatePipelineResponse
+ Network.AWS.ElasticTranscoder.UpdatePipeline: upAWSKMSKeyARN :: Lens' UpdatePipeline (Maybe Text)
+ Network.AWS.ElasticTranscoder.UpdatePipeline: uprsPipeline :: Lens' UpdatePipelineResponse (Maybe Pipeline)
+ Network.AWS.ElasticTranscoder.UpdatePipeline: uprsStatus :: Lens' UpdatePipelineResponse Int
+ Network.AWS.ElasticTranscoder.UpdatePipeline: uprsWarnings :: Lens' UpdatePipelineResponse [Warning]
+ Network.AWS.ElasticTranscoder.UpdatePipelineNotifications: instance Constructor C1_0UpdatePipelineNotifications
+ Network.AWS.ElasticTranscoder.UpdatePipelineNotifications: instance Constructor C1_0UpdatePipelineNotificationsResponse
+ Network.AWS.ElasticTranscoder.UpdatePipelineNotifications: instance Data UpdatePipelineNotifications
+ Network.AWS.ElasticTranscoder.UpdatePipelineNotifications: instance Data UpdatePipelineNotificationsResponse
+ Network.AWS.ElasticTranscoder.UpdatePipelineNotifications: instance Datatype D1UpdatePipelineNotifications
+ Network.AWS.ElasticTranscoder.UpdatePipelineNotifications: instance Datatype D1UpdatePipelineNotificationsResponse
+ Network.AWS.ElasticTranscoder.UpdatePipelineNotifications: instance Generic UpdatePipelineNotifications
+ Network.AWS.ElasticTranscoder.UpdatePipelineNotifications: instance Generic UpdatePipelineNotificationsResponse
+ Network.AWS.ElasticTranscoder.UpdatePipelineNotifications: instance Selector S1_0_0UpdatePipelineNotifications
+ Network.AWS.ElasticTranscoder.UpdatePipelineNotifications: instance Selector S1_0_0UpdatePipelineNotificationsResponse
+ Network.AWS.ElasticTranscoder.UpdatePipelineNotifications: instance Selector S1_0_1UpdatePipelineNotifications
+ Network.AWS.ElasticTranscoder.UpdatePipelineNotifications: instance Selector S1_0_1UpdatePipelineNotificationsResponse
+ Network.AWS.ElasticTranscoder.UpdatePipelineNotifications: instance Typeable UpdatePipelineNotifications
+ Network.AWS.ElasticTranscoder.UpdatePipelineNotifications: instance Typeable UpdatePipelineNotificationsResponse
+ Network.AWS.ElasticTranscoder.UpdatePipelineNotifications: upnrsPipeline :: Lens' UpdatePipelineNotificationsResponse (Maybe Pipeline)
+ Network.AWS.ElasticTranscoder.UpdatePipelineNotifications: upnrsStatus :: Lens' UpdatePipelineNotificationsResponse Int
+ Network.AWS.ElasticTranscoder.UpdatePipelineStatus: instance Constructor C1_0UpdatePipelineStatus
+ Network.AWS.ElasticTranscoder.UpdatePipelineStatus: instance Constructor C1_0UpdatePipelineStatusResponse
+ Network.AWS.ElasticTranscoder.UpdatePipelineStatus: instance Data UpdatePipelineStatus
+ Network.AWS.ElasticTranscoder.UpdatePipelineStatus: instance Data UpdatePipelineStatusResponse
+ Network.AWS.ElasticTranscoder.UpdatePipelineStatus: instance Datatype D1UpdatePipelineStatus
+ Network.AWS.ElasticTranscoder.UpdatePipelineStatus: instance Datatype D1UpdatePipelineStatusResponse
+ Network.AWS.ElasticTranscoder.UpdatePipelineStatus: instance Generic UpdatePipelineStatus
+ Network.AWS.ElasticTranscoder.UpdatePipelineStatus: instance Generic UpdatePipelineStatusResponse
+ Network.AWS.ElasticTranscoder.UpdatePipelineStatus: instance Selector S1_0_0UpdatePipelineStatus
+ Network.AWS.ElasticTranscoder.UpdatePipelineStatus: instance Selector S1_0_0UpdatePipelineStatusResponse
+ Network.AWS.ElasticTranscoder.UpdatePipelineStatus: instance Selector S1_0_1UpdatePipelineStatus
+ Network.AWS.ElasticTranscoder.UpdatePipelineStatus: instance Selector S1_0_1UpdatePipelineStatusResponse
+ Network.AWS.ElasticTranscoder.UpdatePipelineStatus: instance Typeable UpdatePipelineStatus
+ Network.AWS.ElasticTranscoder.UpdatePipelineStatus: instance Typeable UpdatePipelineStatusResponse
+ Network.AWS.ElasticTranscoder.UpdatePipelineStatus: upsrsPipeline :: Lens' UpdatePipelineStatusResponse (Maybe Pipeline)
+ Network.AWS.ElasticTranscoder.UpdatePipelineStatus: upsrsStatus :: Lens' UpdatePipelineStatusResponse Int
- Network.AWS.ElasticTranscoder.CancelJob: cancelJobResponse :: CancelJobResponse
+ Network.AWS.ElasticTranscoder.CancelJob: cancelJobResponse :: Int -> CancelJobResponse
- Network.AWS.ElasticTranscoder.CreateJob: createJobResponse :: CreateJobResponse
+ Network.AWS.ElasticTranscoder.CreateJob: createJobResponse :: Int -> CreateJobResponse
- Network.AWS.ElasticTranscoder.CreatePipeline: createPipelineResponse :: CreatePipelineResponse
+ Network.AWS.ElasticTranscoder.CreatePipeline: createPipelineResponse :: Int -> CreatePipelineResponse
- Network.AWS.ElasticTranscoder.CreatePreset: createPresetResponse :: CreatePresetResponse
+ Network.AWS.ElasticTranscoder.CreatePreset: createPresetResponse :: Int -> CreatePresetResponse
- Network.AWS.ElasticTranscoder.DeletePipeline: deletePipelineResponse :: DeletePipelineResponse
+ Network.AWS.ElasticTranscoder.DeletePipeline: deletePipelineResponse :: Int -> DeletePipelineResponse
- Network.AWS.ElasticTranscoder.DeletePreset: deletePresetResponse :: DeletePresetResponse
+ Network.AWS.ElasticTranscoder.DeletePreset: deletePresetResponse :: Int -> DeletePresetResponse
- Network.AWS.ElasticTranscoder.ListJobsByPipeline: listJobsByPipelineResponse :: ListJobsByPipelineResponse
+ Network.AWS.ElasticTranscoder.ListJobsByPipeline: listJobsByPipelineResponse :: Int -> ListJobsByPipelineResponse
- Network.AWS.ElasticTranscoder.ListJobsByStatus: listJobsByStatusResponse :: ListJobsByStatusResponse
+ Network.AWS.ElasticTranscoder.ListJobsByStatus: listJobsByStatusResponse :: Int -> ListJobsByStatusResponse
- Network.AWS.ElasticTranscoder.ListPipelines: listPipelinesResponse :: ListPipelinesResponse
+ Network.AWS.ElasticTranscoder.ListPipelines: listPipelinesResponse :: Int -> ListPipelinesResponse
- Network.AWS.ElasticTranscoder.ListPresets: listPresetsResponse :: ListPresetsResponse
+ Network.AWS.ElasticTranscoder.ListPresets: listPresetsResponse :: Int -> ListPresetsResponse
- Network.AWS.ElasticTranscoder.ReadJob: readJobResponse :: Job' -> ReadJobResponse
+ Network.AWS.ElasticTranscoder.ReadJob: readJobResponse :: Int -> Job' -> ReadJobResponse
- Network.AWS.ElasticTranscoder.ReadPipeline: readPipelineResponse :: ReadPipelineResponse
+ Network.AWS.ElasticTranscoder.ReadPipeline: readPipelineResponse :: Int -> ReadPipelineResponse
- Network.AWS.ElasticTranscoder.ReadPreset: readPresetResponse :: ReadPresetResponse
+ Network.AWS.ElasticTranscoder.ReadPreset: readPresetResponse :: Int -> ReadPresetResponse
- Network.AWS.ElasticTranscoder.TestRole: testRoleResponse :: TestRoleResponse
+ Network.AWS.ElasticTranscoder.TestRole: testRoleResponse :: Int -> TestRoleResponse
- Network.AWS.ElasticTranscoder.Types: jId :: Lens' Job' Text
+ Network.AWS.ElasticTranscoder.Types: jId :: Lens' Job' (Maybe Text)
- Network.AWS.ElasticTranscoder.Types: jInput :: Lens' Job' JobInput
+ Network.AWS.ElasticTranscoder.Types: jInput :: Lens' Job' (Maybe JobInput)
- Network.AWS.ElasticTranscoder.Types: jOutputKeyPrefix :: Lens' Job' Text
+ Network.AWS.ElasticTranscoder.Types: jOutputKeyPrefix :: Lens' Job' (Maybe Text)
- Network.AWS.ElasticTranscoder.Types: jPipelineId :: Lens' Job' Text
+ Network.AWS.ElasticTranscoder.Types: jPipelineId :: Lens' Job' (Maybe Text)
- Network.AWS.ElasticTranscoder.Types: jStatus :: Lens' Job' Text
+ Network.AWS.ElasticTranscoder.Types: jStatus :: Lens' Job' (Maybe Text)
- Network.AWS.ElasticTranscoder.Types: pName :: Lens' Pipeline (Maybe Text)
+ Network.AWS.ElasticTranscoder.Types: pName :: Lens' Playlist (Maybe Text)
- Network.AWS.ElasticTranscoder.Types: pStatus :: Lens' Pipeline (Maybe Text)
+ Network.AWS.ElasticTranscoder.Types: pStatus :: Lens' Playlist (Maybe Text)
- Network.AWS.ElasticTranscoder.UpdatePipeline: updatePipelineResponse :: UpdatePipelineResponse
+ Network.AWS.ElasticTranscoder.UpdatePipeline: updatePipelineResponse :: Int -> UpdatePipelineResponse
- Network.AWS.ElasticTranscoder.UpdatePipelineNotifications: updatePipelineNotificationsResponse :: UpdatePipelineNotificationsResponse
+ Network.AWS.ElasticTranscoder.UpdatePipelineNotifications: updatePipelineNotificationsResponse :: Int -> UpdatePipelineNotificationsResponse
- Network.AWS.ElasticTranscoder.UpdatePipelineStatus: updatePipelineStatusResponse :: UpdatePipelineStatusResponse
+ Network.AWS.ElasticTranscoder.UpdatePipelineStatus: updatePipelineStatusResponse :: Int -> UpdatePipelineStatusResponse
Files
- README.md +18/−7
- amazonka-elastictranscoder.cabal +47/−11
- gen/Network/AWS/ElasticTranscoder.hs +454/−45
- gen/Network/AWS/ElasticTranscoder/CancelJob.hs +82/−65
- gen/Network/AWS/ElasticTranscoder/CreateJob.hs +158/−143
- gen/Network/AWS/ElasticTranscoder/CreatePipeline.hs +318/−265
- gen/Network/AWS/ElasticTranscoder/CreatePreset.hs +158/−141
- gen/Network/AWS/ElasticTranscoder/DeletePipeline.hs +81/−66
- gen/Network/AWS/ElasticTranscoder/DeletePreset.hs +80/−66
- gen/Network/AWS/ElasticTranscoder/ListJobsByPipeline.hs +129/−113
- gen/Network/AWS/ElasticTranscoder/ListJobsByStatus.hs +129/−113
- gen/Network/AWS/ElasticTranscoder/ListPipelines.hs +119/−102
- gen/Network/AWS/ElasticTranscoder/ListPresets.hs +126/−109
- gen/Network/AWS/ElasticTranscoder/ReadJob.hs +89/−81
- gen/Network/AWS/ElasticTranscoder/ReadPipeline.hs +104/−96
- gen/Network/AWS/ElasticTranscoder/ReadPreset.hs +89/−80
- gen/Network/AWS/ElasticTranscoder/TestRole.hs +130/−117
- gen/Network/AWS/ElasticTranscoder/Types.hs +413/−4057
- gen/Network/AWS/ElasticTranscoder/Types/Product.hs +4125/−0
- gen/Network/AWS/ElasticTranscoder/Types/Sum.hs +20/−0
- gen/Network/AWS/ElasticTranscoder/UpdatePipeline.hs +272/−227
- gen/Network/AWS/ElasticTranscoder/UpdatePipelineNotifications.hs +122/−105
- gen/Network/AWS/ElasticTranscoder/UpdatePipelineStatus.hs +106/−94
- gen/Network/AWS/ElasticTranscoder/Waiters.hs +31/−23
- test/Main.hs +21/−0
- test/Test/AWS/ElasticTranscoder.hs +26/−0
- test/Test/AWS/ElasticTranscoder/Internal.hs +16/−0
- test/Test/AWS/Gen/ElasticTranscoder.hs +328/−0
README.md view
@@ -1,22 +1,33 @@ # Amazon Elastic Transcoder SDK -> _Warning:_ This is an experimental preview release which is still under heavy development and not intended for public consumption, _caveat emptor_!-+* [Version](#version) * [Description](#description) * [Contribute](#contribute) * [Licence](#licence) ++## Version++`1.0.0`++ ## Description -Amazon Elastic Transcoder lets you convert media files that you have stored-in Amazon Simple Storage Service (Amazon S3) into media files in the formats-required by consumer playback devices. For example, you can convert large,-high-quality digital media files into formats that users can play back on-mobile devices, tablets, web browsers, and connected televisions.+AWS Elastic Transcoder Service +The AWS Elastic Transcoder Service.+ Documentation is available via [Hackage](http://hackage.haskell.org/package/amazonka-elastictranscoder) and the [AWS API Reference](http://docs.aws.amazon.com/elastictranscoder/latest/developerguide/api-reference.html). +The types from this library are intended to be used with [amazonka](http://hackage.haskell.org/package/amazonka),+which provides mechanisms for specifying AuthN/AuthZ information and sending requests.++Use of lenses is required for constructing and manipulating types.+This is due to the amount of nesting of AWS types and transparency regarding+de/serialisation into more palatable Haskell values.+The provided lenses should be compatible with any of the major lens libraries+[lens](http://hackage.haskell.org/package/lens) or [lens-family-core](http://hackage.haskell.org/package/lens-family-core). ## Contribute
amazonka-elastictranscoder.cabal view
@@ -1,29 +1,35 @@ name: amazonka-elastictranscoder-version: 0.3.6+version: 1.0.0 synopsis: Amazon Elastic Transcoder SDK. homepage: https://github.com/brendanhay/amazonka license: OtherLicense license-file: LICENSE author: Brendan Hay maintainer: Brendan Hay <brendan.g.hay@gmail.com>-copyright: Copyright (c) 2013-2014 Brendan Hay+copyright: Copyright (c) 2013-2015 Brendan Hay category: Network, AWS, Cloud, Distributed Computing build-type: Simple extra-source-files: README.md cabal-version: >= 1.10 description:- Amazon Elastic Transcoder lets you convert media files that you have stored- in Amazon Simple Storage Service (Amazon S3) into media files in the formats- required by consumer playback devices. For example, you can convert large,- high-quality digital media files into formats that users can play back on- mobile devices, tablets, web browsers, and connected televisions.+ AWS Elastic Transcoder Service + The AWS Elastic Transcoder Service. .- /See:/ <http://docs.aws.amazon.com/elastictranscoder/latest/developerguide/api-reference.html AWS API Reference>+ The types from this library are intended to be used with+ <http://hackage.haskell.org/package/amazonka amazonka>, which provides+ mechanisms for specifying AuthN/AuthZ information and sending requests. .- /Warning:/ This is an experimental preview release which is still under- heavy development and not intended for public consumption, caveat emptor!+ Use of lenses is required for constructing and manipulating types.+ This is due to the amount of nesting of AWS types and transparency regarding+ de/serialisation into more palatable Haskell values.+ The provided lenses should be compatible with any of the major lens libraries+ such as <http://hackage.haskell.org/package/lens lens> or+ <http://hackage.haskell.org/package/lens-family-core lens-family-core>.+ .+ See "Network.AWS.ElasticTranscoder" and the <http://docs.aws.amazon.com/elastictranscoder/latest/developerguide/api-reference.html AWS API Reference>+ to get started. source-repository head type: git@@ -58,7 +64,37 @@ , Network.AWS.ElasticTranscoder.Waiters other-modules:+ Network.AWS.ElasticTranscoder.Types.Product+ , Network.AWS.ElasticTranscoder.Types.Sum build-depends:- amazonka-core == 0.3.6.*+ amazonka-core == 1.0.0.* , base >= 4.7 && < 5++test-suite amazonka-elastictranscoder-test+ type: exitcode-stdio-1.0+ default-language: Haskell2010+ hs-source-dirs: test+ main-is: Main.hs++ ghc-options: -Wall -threaded++ -- This is not comprehensive if modules have manually been added.+ -- It exists to ensure cabal 'somewhat' detects test module changes.+ other-modules:+ Test.AWS.ElasticTranscoder+ , Test.AWS.Gen.ElasticTranscoder+ , Test.AWS.ElasticTranscoder.Internal++ build-depends:+ amazonka-core == 1.0.0+ , amazonka-test == 1.0.0+ , amazonka-elastictranscoder == 1.0.0+ , base+ , bytestring+ , lens+ , tasty+ , tasty-hunit+ , text+ , time+ , unordered-containers
gen/Network/AWS/ElasticTranscoder.hs view
@@ -1,58 +1,467 @@+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- | -- Module : Network.AWS.ElasticTranscoder--- Copyright : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>--- License : This Source Code Form is subject to the terms of--- the Mozilla Public License, v. 2.0.--- A copy of the MPL can be found in the LICENSE file or--- you can obtain it at http://mozilla.org/MPL/2.0/.+-- Copyright : (c) 2013-2015 Brendan Hay+-- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : experimental+-- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Derived from AWS service descriptions, licensed under Apache 2.0.---- | Amazon Elastic Transcoder lets you convert media files that you have stored--- in Amazon Simple Storage Service (Amazon S3) into media files in the formats--- required by consumer playback devices. For example, you can convert large,--- high-quality digital media files into formats that users can play back on--- mobile devices, tablets, web browsers, and connected televisions.+-- AWS Elastic Transcoder Service+--+-- The AWS Elastic Transcoder Service.+--+-- /See:/ <http://docs.aws.amazon.com/elastictranscoder/latest/developerguide/api-reference.html AWS API Reference> module Network.AWS.ElasticTranscoder- ( module Network.AWS.ElasticTranscoder.CancelJob- , module Network.AWS.ElasticTranscoder.CreateJob- , module Network.AWS.ElasticTranscoder.CreatePipeline- , module Network.AWS.ElasticTranscoder.CreatePreset- , module Network.AWS.ElasticTranscoder.DeletePipeline+ (+ -- * Service+ ElasticTranscoder++ -- * Errors+ -- $errors++ -- ** ValidationException+ , _ValidationException++ -- ** IncompatibleVersionException+ , _IncompatibleVersionException++ -- ** AccessDeniedException+ , _AccessDeniedException++ -- ** InternalServiceException+ , _InternalServiceException++ -- ** ResourceNotFoundException+ , _ResourceNotFoundException++ -- ** ResourceInUseException+ , _ResourceInUseException++ -- ** LimitExceededException+ , _LimitExceededException++ -- * Waiters+ -- $waiters++ -- ** JobComplete+ , jobComplete++ -- * Operations+ -- $operations++ -- ** DeletePreset , module Network.AWS.ElasticTranscoder.DeletePreset++ -- ** ListJobsByPipeline (Paginated) , module Network.AWS.ElasticTranscoder.ListJobsByPipeline- , module Network.AWS.ElasticTranscoder.ListJobsByStatus++ -- ** UpdatePipelineStatus+ , module Network.AWS.ElasticTranscoder.UpdatePipelineStatus++ -- ** TestRole+ , module Network.AWS.ElasticTranscoder.TestRole++ -- ** UpdatePipeline+ , module Network.AWS.ElasticTranscoder.UpdatePipeline++ -- ** DeletePipeline+ , module Network.AWS.ElasticTranscoder.DeletePipeline++ -- ** CreateJob+ , module Network.AWS.ElasticTranscoder.CreateJob++ -- ** ListPipelines (Paginated) , module Network.AWS.ElasticTranscoder.ListPipelines++ -- ** CreatePreset+ , module Network.AWS.ElasticTranscoder.CreatePreset++ -- ** ListPresets (Paginated) , module Network.AWS.ElasticTranscoder.ListPresets- , module Network.AWS.ElasticTranscoder.ReadJob- , module Network.AWS.ElasticTranscoder.ReadPipeline++ -- ** ReadPreset , module Network.AWS.ElasticTranscoder.ReadPreset- , module Network.AWS.ElasticTranscoder.TestRole- , module Network.AWS.ElasticTranscoder.Types- , module Network.AWS.ElasticTranscoder.UpdatePipeline++ -- ** UpdatePipelineNotifications , module Network.AWS.ElasticTranscoder.UpdatePipelineNotifications- , module Network.AWS.ElasticTranscoder.UpdatePipelineStatus- , module Network.AWS.ElasticTranscoder.Waiters++ -- ** ReadJob+ , module Network.AWS.ElasticTranscoder.ReadJob++ -- ** ReadPipeline+ , module Network.AWS.ElasticTranscoder.ReadPipeline++ -- ** CreatePipeline+ , module Network.AWS.ElasticTranscoder.CreatePipeline++ -- ** ListJobsByStatus (Paginated)+ , module Network.AWS.ElasticTranscoder.ListJobsByStatus++ -- ** CancelJob+ , module Network.AWS.ElasticTranscoder.CancelJob++ -- * Types++ -- ** Artwork+ , Artwork+ , artwork+ , aSizingPolicy+ , aMaxHeight+ , aAlbumArtFormat+ , aInputKey+ , aPaddingPolicy+ , aEncryption+ , aMaxWidth++ -- ** AudioCodecOptions+ , AudioCodecOptions+ , audioCodecOptions+ , acoBitDepth+ , acoSigned+ , acoProfile+ , acoBitOrder++ -- ** AudioParameters+ , AudioParameters+ , audioParameters+ , apChannels+ , apCodec+ , apAudioPackingMode+ , apSampleRate+ , apBitRate+ , apCodecOptions++ -- ** CaptionFormat+ , CaptionFormat+ , captionFormat+ , cfPattern+ , cfFormat+ , cfEncryption++ -- ** CaptionSource+ , CaptionSource+ , captionSource+ , csTimeOffset+ , csKey+ , csEncryption+ , csLanguage+ , csLabel++ -- ** Captions+ , Captions+ , captions+ , cMergePolicy+ , cCaptionSources+ , cCaptionFormats++ -- ** Clip+ , Clip+ , clip+ , cTimeSpan++ -- ** CreateJobOutput+ , CreateJobOutput+ , createJobOutput+ , cjoThumbnailPattern+ , cjoCaptions+ , cjoPresetId+ , cjoComposition+ , cjoAlbumArt+ , cjoWatermarks+ , cjoKey+ , cjoEncryption+ , cjoSegmentDuration+ , cjoThumbnailEncryption+ , cjoRotate++ -- ** CreateJobPlaylist+ , CreateJobPlaylist+ , createJobPlaylist+ , cjpPlayReadyDrm+ , cjpOutputKeys+ , cjpFormat+ , cjpName+ , cjpHlsContentProtection++ -- ** DetectedProperties+ , DetectedProperties+ , detectedProperties+ , dpHeight+ , dpFrameRate+ , dpFileSize+ , dpWidth+ , dpDurationMillis++ -- ** Encryption+ , Encryption+ , encryption+ , eKeyMD5+ , eMode+ , eKey+ , eInitializationVector++ -- ** HlsContentProtection+ , HlsContentProtection+ , hlsContentProtection+ , hcpKeyMD5+ , hcpKeyStoragePolicy+ , hcpKey+ , hcpMethod+ , hcpLicenseAcquisitionURL+ , hcpInitializationVector++ -- ** Job'+ , Job'+ , job'+ , jStatus+ , jPipelineId+ , jARN+ , jInput+ , jOutputs+ , jUserMetadata+ , jOutput+ , jId+ , jPlaylists+ , jTiming+ , jOutputKeyPrefix++ -- ** JobAlbumArt+ , JobAlbumArt+ , jobAlbumArt+ , jaaMergePolicy+ , jaaArtwork++ -- ** JobInput+ , JobInput+ , jobInput+ , jiFrameRate+ , jiResolution+ , jiAspectRatio+ , jiKey+ , jiDetectedProperties+ , jiEncryption+ , jiContainer+ , jiInterlaced++ -- ** JobOutput+ , JobOutput+ , jobOutput+ , joAppliedColorSpaceConversion+ , joStatus+ , joThumbnailPattern+ , joHeight+ , joFrameRate+ , joCaptions+ , joPresetId+ , joComposition+ , joAlbumArt+ , joFileSize+ , joWatermarks+ , joWidth+ , joKey+ , joEncryption+ , joId+ , joSegmentDuration+ , joStatusDetail+ , joDurationMillis+ , joThumbnailEncryption+ , joDuration+ , joRotate++ -- ** JobWatermark+ , JobWatermark+ , jobWatermark+ , jwPresetWatermarkId+ , jwInputKey+ , jwEncryption++ -- ** Notifications+ , Notifications+ , notifications+ , nError+ , nWarning+ , nCompleted+ , nProgressing++ -- ** Permission+ , Permission+ , permission+ , pAccess+ , pGranteeType+ , pGrantee++ -- ** Pipeline+ , Pipeline+ , pipeline+ , pipStatus+ , pipARN+ , pipInputBucket+ , pipContentConfig+ , pipOutputBucket+ , pipRole+ , pipName+ , pipAWSKMSKeyARN+ , pipId+ , pipThumbnailConfig+ , pipNotifications++ -- ** PipelineOutputConfig+ , PipelineOutputConfig+ , pipelineOutputConfig+ , pocBucket+ , pocStorageClass+ , pocPermissions++ -- ** PlayReadyDrm+ , PlayReadyDrm+ , playReadyDrm+ , prdKeyId+ , prdKeyMD5+ , prdFormat+ , prdKey+ , prdLicenseAcquisitionURL+ , prdInitializationVector++ -- ** Playlist+ , Playlist+ , playlist+ , pPlayReadyDrm+ , pStatus+ , pOutputKeys+ , pFormat+ , pName+ , pHlsContentProtection+ , pStatusDetail++ -- ** Preset+ , Preset+ , preset+ , preARN+ , preVideo+ , preName+ , preThumbnails+ , preContainer+ , preId+ , preType+ , preAudio+ , preDescription++ -- ** PresetWatermark+ , PresetWatermark+ , presetWatermark+ , pwVerticalAlign+ , pwSizingPolicy+ , pwMaxHeight+ , pwHorizontalOffset+ , pwOpacity+ , pwVerticalOffset+ , pwMaxWidth+ , pwId+ , pwHorizontalAlign+ , pwTarget++ -- ** Thumbnails+ , Thumbnails+ , thumbnails+ , tSizingPolicy+ , tFormat+ , tMaxHeight+ , tResolution+ , tPaddingPolicy+ , tAspectRatio+ , tInterval+ , tMaxWidth++ -- ** TimeSpan+ , TimeSpan+ , timeSpan+ , tsStartTime+ , tsDuration++ -- ** Timing+ , Timing+ , timing+ , tSubmitTimeMillis+ , tFinishTimeMillis+ , tStartTimeMillis++ -- ** VideoParameters+ , VideoParameters+ , videoParameters+ , vpKeyframesMaxDist+ , vpFrameRate+ , vpSizingPolicy+ , vpMaxFrameRate+ , vpMaxHeight+ , vpDisplayAspectRatio+ , vpWatermarks+ , vpCodec+ , vpResolution+ , vpPaddingPolicy+ , vpAspectRatio+ , vpMaxWidth+ , vpBitRate+ , vpFixedGOP+ , vpCodecOptions++ -- ** Warning+ , Warning+ , warning+ , wCode+ , wMessage ) where -import Network.AWS.ElasticTranscoder.CancelJob-import Network.AWS.ElasticTranscoder.CreateJob-import Network.AWS.ElasticTranscoder.CreatePipeline-import Network.AWS.ElasticTranscoder.CreatePreset-import Network.AWS.ElasticTranscoder.DeletePipeline-import Network.AWS.ElasticTranscoder.DeletePreset-import Network.AWS.ElasticTranscoder.ListJobsByPipeline-import Network.AWS.ElasticTranscoder.ListJobsByStatus-import Network.AWS.ElasticTranscoder.ListPipelines-import Network.AWS.ElasticTranscoder.ListPresets-import Network.AWS.ElasticTranscoder.ReadJob-import Network.AWS.ElasticTranscoder.ReadPipeline-import Network.AWS.ElasticTranscoder.ReadPreset-import Network.AWS.ElasticTranscoder.TestRole-import Network.AWS.ElasticTranscoder.Types-import Network.AWS.ElasticTranscoder.UpdatePipeline-import Network.AWS.ElasticTranscoder.UpdatePipelineNotifications-import Network.AWS.ElasticTranscoder.UpdatePipelineStatus-import Network.AWS.ElasticTranscoder.Waiters+import Network.AWS.ElasticTranscoder.CancelJob+import Network.AWS.ElasticTranscoder.CreateJob+import Network.AWS.ElasticTranscoder.CreatePipeline+import Network.AWS.ElasticTranscoder.CreatePreset+import Network.AWS.ElasticTranscoder.DeletePipeline+import Network.AWS.ElasticTranscoder.DeletePreset+import Network.AWS.ElasticTranscoder.ListJobsByPipeline+import Network.AWS.ElasticTranscoder.ListJobsByStatus+import Network.AWS.ElasticTranscoder.ListPipelines+import Network.AWS.ElasticTranscoder.ListPresets+import Network.AWS.ElasticTranscoder.ReadJob+import Network.AWS.ElasticTranscoder.ReadPipeline+import Network.AWS.ElasticTranscoder.ReadPreset+import Network.AWS.ElasticTranscoder.TestRole+import Network.AWS.ElasticTranscoder.Types+import Network.AWS.ElasticTranscoder.UpdatePipeline+import Network.AWS.ElasticTranscoder.UpdatePipelineNotifications+import Network.AWS.ElasticTranscoder.UpdatePipelineStatus+import Network.AWS.ElasticTranscoder.Waiters++{- $errors+Error matchers are designed for use with the functions provided by+<http://hackage.haskell.org/package/lens/docs/Control-Exception-Lens.html Control.Exception.Lens>.+This allows catching (and rethrowing) service specific errors returned+by 'ElasticTranscoder'.+-}++{- $operations+Some AWS operations return results that are incomplete and require subsequent+requests in order to obtain the entire result set. The process of sending+subsequent requests to continue where a previous request left off is called+pagination. For example, the 'ListObjects' operation of Amazon S3 returns up to+1000 objects at a time, and you must send subsequent requests with the+appropriate Marker in order to retrieve the next page of results.++Operations that have an 'AWSPager' instance can transparently perform subsequent+requests, correctly setting Markers and other request facets to iterate through+the entire result set of a truncated API operation. Operations which support+this have an additional note in the documentation.++Many operations have the ability to filter results on the server side. See the+individual operation parameters for details.+-}++{- $waiters+Waiters poll by repeatedly sending a request until some remote success condition+configured by the 'Wait' specification is fulfilled. The 'Wait' specification+determines how many attempts should be made, in addition to delay and retry strategies.+-}
gen/Network/AWS/ElasticTranscoder/CancelJob.hs view
@@ -1,101 +1,118 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE GeneralizedNewtypeDeriving #-}-{-# LANGUAGE LambdaCase #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-} +-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- | -- Module : Network.AWS.ElasticTranscoder.CancelJob--- Copyright : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>--- License : This Source Code Form is subject to the terms of--- the Mozilla Public License, v. 2.0.--- A copy of the MPL can be found in the LICENSE file or--- you can obtain it at http://mozilla.org/MPL/2.0/.+-- Copyright : (c) 2013-2015 Brendan Hay+-- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : experimental+-- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Derived from AWS service descriptions, licensed under Apache 2.0.---- | The CancelJob operation cancels an unfinished job.+-- The CancelJob operation cancels an unfinished job. -- -- You can only cancel a job that has a status of 'Submitted'. To prevent a--- pipeline from starting to process a job while you're getting the job--- identifier, use 'UpdatePipelineStatus' to temporarily pause the pipeline.+-- pipeline from starting to process a job while you\'re getting the job+-- identifier, use UpdatePipelineStatus to temporarily pause the pipeline. ----- <http://docs.aws.amazon.com/elastictranscoder/latest/developerguide/CancelJob.html>+-- /See:/ <http://docs.aws.amazon.com/elastictranscoder/latest/developerguide/CancelJob.html AWS API Reference> for CancelJob. module Network.AWS.ElasticTranscoder.CancelJob (- -- * Request- CancelJob- -- ** Request constructor- , cancelJob- -- ** Request lenses+ -- * Creating a Request+ cancelJob+ , CancelJob+ -- * Request Lenses , cjId - -- * Response- , CancelJobResponse- -- ** Response constructor+ -- * Destructuring the Response , cancelJobResponse+ , CancelJobResponse+ -- * Response Lenses+ , canrsStatus ) where -import Network.AWS.Data (Object)-import Network.AWS.Prelude-import Network.AWS.Request.RestJSON-import Network.AWS.ElasticTranscoder.Types-import qualified GHC.Exts+import Network.AWS.ElasticTranscoder.Types+import Network.AWS.ElasticTranscoder.Types.Product+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response -newtype CancelJob = CancelJob+-- | The 'CancelJobRequest' structure.+--+-- /See:/ 'cancelJob' smart constructor.+newtype CancelJob = CancelJob' { _cjId :: Text- } deriving (Eq, Ord, Read, Show, Monoid, IsString)+ } deriving (Eq,Read,Show,Data,Typeable,Generic) --- | 'CancelJob' constructor.------ The fields accessible through corresponding lenses are:+-- | Creates a value of 'CancelJob' with the minimum fields required to make a request. ----- * 'cjId' @::@ 'Text'+-- Use one of the following lenses to modify other fields as desired: ---cancelJob :: Text -- ^ 'cjId'- -> CancelJob-cancelJob p1 = CancelJob- { _cjId = p1+-- * 'cjId'+cancelJob+ :: Text -- ^ 'cjId'+ -> CancelJob+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.+-- 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}); -data CancelJobResponse = CancelJobResponse- deriving (Eq, Ord, Read, Show, Generic)+instance AWSRequest CancelJob where+ type Sv CancelJob = ElasticTranscoder+ type Rs CancelJob = CancelJobResponse+ request = delete+ response+ = receiveEmpty+ (\ s h x ->+ CancelJobResponse' <$> (pure (fromEnum s))) --- | 'CancelJobResponse' constructor.-cancelJobResponse :: CancelJobResponse-cancelJobResponse = CancelJobResponse+instance ToHeaders CancelJob where+ toHeaders = const mempty instance ToPath CancelJob where- toPath CancelJob{..} = mconcat- [ "/2012-09-25/jobs/"- , toText _cjId- ]+ toPath CancelJob'{..}+ = mconcat ["/2012-09-25/jobs/", toBS _cjId] instance ToQuery CancelJob where- toQuery = const mempty--instance ToHeaders CancelJob+ toQuery = const mempty -instance ToJSON CancelJob where- toJSON = const (toJSON Empty)+-- | The response body contains a JSON object. If the job is successfully+-- canceled, the value of 'Success' is 'true'.+--+-- /See:/ 'cancelJobResponse' smart constructor.+newtype CancelJobResponse = CancelJobResponse'+ { _canrsStatus :: Int+ } deriving (Eq,Read,Show,Data,Typeable,Generic) -instance AWSRequest CancelJob where- type Sv CancelJob = ElasticTranscoder- type Rs CancelJob = CancelJobResponse+-- | Creates a value of 'CancelJobResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'canrsStatus'+cancelJobResponse+ :: Int -- ^ 'canrsStatus'+ -> CancelJobResponse+cancelJobResponse pStatus_ =+ CancelJobResponse'+ { _canrsStatus = pStatus_+ } - request = delete- response = nullResponse CancelJobResponse+-- | The response status code.+canrsStatus :: Lens' CancelJobResponse Int+canrsStatus = lens _canrsStatus (\ s a -> s{_canrsStatus = a});
gen/Network/AWS/ElasticTranscoder/CreateJob.hs view
@@ -1,193 +1,208 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE GeneralizedNewtypeDeriving #-}-{-# LANGUAGE LambdaCase #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-} +-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- | -- Module : Network.AWS.ElasticTranscoder.CreateJob--- Copyright : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>--- License : This Source Code Form is subject to the terms of--- the Mozilla Public License, v. 2.0.--- A copy of the MPL can be found in the LICENSE file or--- you can obtain it at http://mozilla.org/MPL/2.0/.+-- Copyright : (c) 2013-2015 Brendan Hay+-- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : experimental+-- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Derived from AWS service descriptions, licensed under Apache 2.0.---- | When you create a job, Elastic Transcoder returns JSON data that includes--- the values that you specified plus information about the job that is created.+-- When you create a job, Elastic Transcoder returns JSON data that+-- includes the values that you specified plus information about the job+-- that is created. ----- If you have specified more than one output for your jobs (for example, one--- output for the Kindle Fire and another output for the Apple iPhone 4s), you--- currently must use the Elastic Transcoder API to list the jobs (as opposed to--- the AWS Console).+-- If you have specified more than one output for your jobs (for example,+-- one output for the Kindle Fire and another output for the Apple iPhone+-- 4s), you currently must use the Elastic Transcoder API to list the jobs+-- (as opposed to the AWS Console). ----- <http://docs.aws.amazon.com/elastictranscoder/latest/developerguide/CreateJob.html>+-- /See:/ <http://docs.aws.amazon.com/elastictranscoder/latest/developerguide/CreateJob.html AWS API Reference> for CreateJob. module Network.AWS.ElasticTranscoder.CreateJob (- -- * Request- CreateJob- -- ** Request constructor- , createJob- -- ** Request lenses- , cjInput+ -- * Creating a Request+ createJob+ , CreateJob+ -- * Request Lenses+ , cjOutputs+ , cjUserMetadata , cjOutput+ , cjPlaylists , cjOutputKeyPrefix- , cjOutputs , cjPipelineId- , cjPlaylists- , cjUserMetadata+ , cjInput - -- * Response- , CreateJobResponse- -- ** Response constructor+ -- * Destructuring the Response , createJobResponse- -- ** Response lenses- , cjrJob+ , CreateJobResponse+ -- * Response Lenses+ , cjrsJob+ , cjrsStatus ) where -import Network.AWS.Data (Object)-import Network.AWS.Prelude-import Network.AWS.Request.RestJSON-import Network.AWS.ElasticTranscoder.Types-import qualified GHC.Exts--data CreateJob = CreateJob- { _cjInput :: JobInput- , _cjOutput :: Maybe CreateJobOutput- , _cjOutputKeyPrefix :: Maybe Text- , _cjOutputs :: List "Outputs" CreateJobOutput- , _cjPipelineId :: Text- , _cjPlaylists :: List "Playlists" CreateJobPlaylist- , _cjUserMetadata :: Map Text Text- } deriving (Eq, Read, Show)+import Network.AWS.ElasticTranscoder.Types+import Network.AWS.ElasticTranscoder.Types.Product+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response --- | 'CreateJob' constructor.+-- | The 'CreateJobRequest' structure. ----- The fields accessible through corresponding lenses are:+-- /See:/ 'createJob' smart constructor.+data CreateJob = CreateJob'+ { _cjOutputs :: !(Maybe [CreateJobOutput])+ , _cjUserMetadata :: !(Maybe (Map Text Text))+ , _cjOutput :: !(Maybe CreateJobOutput)+ , _cjPlaylists :: !(Maybe [CreateJobPlaylist])+ , _cjOutputKeyPrefix :: !(Maybe Text)+ , _cjPipelineId :: !Text+ , _cjInput :: !JobInput+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'CreateJob' with the minimum fields required to make a request. ----- * 'cjInput' @::@ 'JobInput'+-- Use one of the following lenses to modify other fields as desired: ----- * 'cjOutput' @::@ 'Maybe' 'CreateJobOutput'+-- * 'cjOutputs' ----- * 'cjOutputKeyPrefix' @::@ 'Maybe' 'Text'+-- * 'cjUserMetadata' ----- * 'cjOutputs' @::@ ['CreateJobOutput']+-- * 'cjOutput' ----- * 'cjPipelineId' @::@ 'Text'+-- * 'cjPlaylists' ----- * 'cjPlaylists' @::@ ['CreateJobPlaylist']+-- * 'cjOutputKeyPrefix' ----- * 'cjUserMetadata' @::@ 'HashMap' 'Text' 'Text'+-- * 'cjPipelineId' ---createJob :: Text -- ^ 'cjPipelineId'- -> JobInput -- ^ 'cjInput'- -> CreateJob-createJob p1 p2 = CreateJob- { _cjPipelineId = p1- , _cjInput = p2- , _cjOutput = Nothing- , _cjOutputs = mempty+-- * 'cjInput'+createJob+ :: Text -- ^ 'cjPipelineId'+ -> JobInput -- ^ 'cjInput'+ -> CreateJob+createJob pPipelineId_ pInput_ =+ CreateJob'+ { _cjOutputs = Nothing+ , _cjUserMetadata = Nothing+ , _cjOutput = Nothing+ , _cjPlaylists = Nothing , _cjOutputKeyPrefix = Nothing- , _cjPlaylists = mempty- , _cjUserMetadata = mempty+ , _cjPipelineId = pPipelineId_+ , _cjInput = pInput_ } --- | A section of the request body that provides information about the file that--- is being transcoded.-cjInput :: Lens' CreateJob JobInput-cjInput = lens _cjInput (\s a -> s { _cjInput = a })+-- | 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; +-- | 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.+cjUserMetadata :: Lens' CreateJob (HashMap Text Text)+cjUserMetadata = lens _cjUserMetadata (\ s a -> s{_cjUserMetadata = a}) . _Default . _Map;++-- | Undocumented member. cjOutput :: Lens' CreateJob (Maybe CreateJobOutput)-cjOutput = lens _cjOutput (\s a -> s { _cjOutput = a })+cjOutput = lens _cjOutput (\ s a -> s{_cjOutput = a}); --- | 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 })+-- | 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; --- | 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 }) . _List+-- | 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}); -- | 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.+-- 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 })---- | 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 }) . _List+cjPipelineId = lens _cjPipelineId (\ s a -> s{_cjPipelineId = 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--- will be returned in the same order in which you specify them.-cjUserMetadata :: Lens' CreateJob (HashMap Text Text)-cjUserMetadata = lens _cjUserMetadata (\s a -> s { _cjUserMetadata = a }) . _Map+-- | A section of the request body that provides information about the file+-- that is being transcoded.+cjInput :: Lens' CreateJob JobInput+cjInput = lens _cjInput (\ s a -> s{_cjInput = a}); -newtype CreateJobResponse = CreateJobResponse- { _cjrJob :: Maybe Job'- } deriving (Eq, Read, Show)+instance AWSRequest CreateJob where+ type Sv CreateJob = ElasticTranscoder+ type Rs CreateJob = CreateJobResponse+ request = postJSON+ response+ = receiveJSON+ (\ s h x ->+ CreateJobResponse' <$>+ (x .?> "Job") <*> (pure (fromEnum s))) --- | 'CreateJobResponse' constructor.------ The fields accessible through corresponding lenses are:------ * 'cjrJob' @::@ 'Maybe' 'Job''----createJobResponse :: CreateJobResponse-createJobResponse = CreateJobResponse- { _cjrJob = Nothing- }+instance ToHeaders CreateJob where+ toHeaders = const mempty --- | A section of the response body that provides information about the job that--- is created.-cjrJob :: Lens' CreateJobResponse (Maybe Job')-cjrJob = lens _cjrJob (\s a -> s { _cjrJob = a })+instance ToJSON CreateJob where+ toJSON CreateJob'{..}+ = object+ ["Outputs" .= _cjOutputs,+ "UserMetadata" .= _cjUserMetadata,+ "Output" .= _cjOutput, "Playlists" .= _cjPlaylists,+ "OutputKeyPrefix" .= _cjOutputKeyPrefix,+ "PipelineId" .= _cjPipelineId, "Input" .= _cjInput] instance ToPath CreateJob where- toPath = const "/2012-09-25/jobs"+ toPath = const "/2012-09-25/jobs" instance ToQuery CreateJob where- toQuery = const mempty--instance ToHeaders CreateJob+ toQuery = const mempty -instance ToJSON CreateJob where- toJSON CreateJob{..} = object- [ "PipelineId" .= _cjPipelineId- , "Input" .= _cjInput- , "Output" .= _cjOutput- , "Outputs" .= _cjOutputs- , "OutputKeyPrefix" .= _cjOutputKeyPrefix- , "Playlists" .= _cjPlaylists- , "UserMetadata" .= _cjUserMetadata- ]+-- | The CreateJobResponse structure.+--+-- /See:/ 'createJobResponse' smart constructor.+data CreateJobResponse = CreateJobResponse'+ { _cjrsJob :: !(Maybe Job')+ , _cjrsStatus :: !Int+ } deriving (Eq,Read,Show,Data,Typeable,Generic) -instance AWSRequest CreateJob where- type Sv CreateJob = ElasticTranscoder- type Rs CreateJob = CreateJobResponse+-- | Creates a value of 'CreateJobResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'cjrsJob'+--+-- * 'cjrsStatus'+createJobResponse+ :: Int -- ^ 'cjrsStatus'+ -> CreateJobResponse+createJobResponse pStatus_ =+ CreateJobResponse'+ { _cjrsJob = Nothing+ , _cjrsStatus = pStatus_+ } - request = post- response = jsonResponse+-- | 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}); -instance FromJSON CreateJobResponse where- parseJSON = withObject "CreateJobResponse" $ \o -> CreateJobResponse- <$> o .:? "Job"+-- | The response status code.+cjrsStatus :: Lens' CreateJobResponse Int+cjrsStatus = lens _cjrsStatus (\ s a -> s{_cjrsStatus = a});
gen/Network/AWS/ElasticTranscoder/CreatePipeline.hs view
@@ -1,323 +1,376 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE GeneralizedNewtypeDeriving #-}-{-# LANGUAGE LambdaCase #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-} +-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- | -- Module : Network.AWS.ElasticTranscoder.CreatePipeline--- Copyright : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>--- License : This Source Code Form is subject to the terms of--- the Mozilla Public License, v. 2.0.--- A copy of the MPL can be found in the LICENSE file or--- you can obtain it at http://mozilla.org/MPL/2.0/.+-- Copyright : (c) 2013-2015 Brendan Hay+-- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : experimental+-- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Derived from AWS service descriptions, licensed under Apache 2.0.---- | The CreatePipeline operation creates a pipeline with settings that you+-- The CreatePipeline operation creates a pipeline with settings that you -- specify. ----- <http://docs.aws.amazon.com/elastictranscoder/latest/developerguide/CreatePipeline.html>+-- /See:/ <http://docs.aws.amazon.com/elastictranscoder/latest/developerguide/CreatePipeline.html AWS API Reference> for CreatePipeline. module Network.AWS.ElasticTranscoder.CreatePipeline (- -- * Request- CreatePipeline- -- ** Request constructor- , createPipeline- -- ** Request lenses- , cp1AwsKmsKeyArn- , cp1ContentConfig- , cp1InputBucket- , cp1Name- , cp1Notifications- , cp1OutputBucket- , cp1Role- , cp1ThumbnailConfig+ -- * Creating a Request+ createPipeline+ , CreatePipeline+ -- * Request Lenses+ , cContentConfig+ , cOutputBucket+ , cAWSKMSKeyARN+ , cThumbnailConfig+ , cNotifications+ , cName+ , cInputBucket+ , cRole - -- * Response- , CreatePipelineResponse- -- ** Response constructor+ -- * Destructuring the Response , createPipelineResponse- -- ** Response lenses- , cprPipeline- , cprWarnings+ , CreatePipelineResponse+ -- * Response Lenses+ , crsWarnings+ , crsPipeline+ , crsStatus ) where -import Network.AWS.Data (Object)-import Network.AWS.Prelude-import Network.AWS.Request.RestJSON-import Network.AWS.ElasticTranscoder.Types-import qualified GHC.Exts--data CreatePipeline = CreatePipeline- { _cp1AwsKmsKeyArn :: Maybe Text- , _cp1ContentConfig :: Maybe PipelineOutputConfig- , _cp1InputBucket :: Text- , _cp1Name :: Text- , _cp1Notifications :: Maybe Notifications- , _cp1OutputBucket :: Maybe Text- , _cp1Role :: Text- , _cp1ThumbnailConfig :: Maybe PipelineOutputConfig- } deriving (Eq, Read, Show)+import Network.AWS.ElasticTranscoder.Types+import Network.AWS.ElasticTranscoder.Types.Product+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response --- | 'CreatePipeline' constructor.+-- | The 'CreatePipelineRequest' structure. ----- The fields accessible through corresponding lenses are:+-- /See:/ 'createPipeline' smart constructor.+data CreatePipeline = CreatePipeline'+ { _cContentConfig :: !(Maybe PipelineOutputConfig)+ , _cOutputBucket :: !(Maybe Text)+ , _cAWSKMSKeyARN :: !(Maybe Text)+ , _cThumbnailConfig :: !(Maybe PipelineOutputConfig)+ , _cNotifications :: !(Maybe Notifications)+ , _cName :: !Text+ , _cInputBucket :: !Text+ , _cRole :: !Text+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'CreatePipeline' with the minimum fields required to make a request. ----- * 'cp1AwsKmsKeyArn' @::@ 'Maybe' 'Text'+-- Use one of the following lenses to modify other fields as desired: ----- * 'cp1ContentConfig' @::@ 'Maybe' 'PipelineOutputConfig'+-- * 'cContentConfig' ----- * 'cp1InputBucket' @::@ 'Text'+-- * 'cOutputBucket' ----- * 'cp1Name' @::@ 'Text'+-- * 'cAWSKMSKeyARN' ----- * 'cp1Notifications' @::@ 'Maybe' 'Notifications'+-- * 'cThumbnailConfig' ----- * 'cp1OutputBucket' @::@ 'Maybe' 'Text'+-- * 'cNotifications' ----- * 'cp1Role' @::@ 'Text'+-- * 'cName' ----- * 'cp1ThumbnailConfig' @::@ 'Maybe' 'PipelineOutputConfig'+-- * 'cInputBucket' ---createPipeline :: Text -- ^ 'cp1Name'- -> Text -- ^ 'cp1InputBucket'- -> Text -- ^ 'cp1Role'- -> CreatePipeline-createPipeline p1 p2 p3 = CreatePipeline- { _cp1Name = p1- , _cp1InputBucket = p2- , _cp1Role = p3- , _cp1OutputBucket = Nothing- , _cp1AwsKmsKeyArn = Nothing- , _cp1Notifications = Nothing- , _cp1ContentConfig = Nothing- , _cp1ThumbnailConfig = Nothing+-- * 'cRole'+createPipeline+ :: Text -- ^ 'cName'+ -> Text -- ^ 'cInputBucket'+ -> Text -- ^ 'cRole'+ -> CreatePipeline+createPipeline pName_ pInputBucket_ pRole_ =+ CreatePipeline'+ { _cContentConfig = Nothing+ , _cOutputBucket = Nothing+ , _cAWSKMSKeyARN = Nothing+ , _cThumbnailConfig = Nothing+ , _cNotifications = Nothing+ , _cName = pName_+ , _cInputBucket = pInputBucket_+ , _cRole = pRole_ } --- | 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'.-cp1AwsKmsKeyArn :: Lens' CreatePipeline (Maybe Text)-cp1AwsKmsKeyArn = lens _cp1AwsKmsKeyArn (\s a -> s { _cp1AwsKmsKeyArn = 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.+-- | 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. ----- 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. 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.-cp1ContentConfig :: Lens' CreatePipeline (Maybe PipelineOutputConfig)-cp1ContentConfig = lens _cp1ContentConfig (\s a -> s { _cp1ContentConfig = a })---- | The Amazon S3 bucket in which you saved the media files that you want to--- transcode.-cp1InputBucket :: Lens' CreatePipeline Text-cp1InputBucket = lens _cp1InputBucket (\s a -> s { _cp1InputBucket = a })---- | The name of the pipeline. We recommend that the name be unique within the AWS--- account, but uniqueness is not enforced.+-- If you specify values for 'ContentConfig', you must also specify values+-- for 'ThumbnailConfig'. ----- Constraints: Maximum 40 characters.-cp1Name :: Lens' CreatePipeline Text-cp1Name = lens _cp1Name (\s a -> s { _cp1Name = a })---- | The Amazon Simple Notification Service (Amazon SNS) topic that you want to--- notify to report job status.+-- If you specify values for 'ContentConfig' and 'ThumbnailConfig', omit+-- the 'OutputBucket' object. ----- 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.-cp1Notifications :: Lens' CreatePipeline (Maybe Notifications)-cp1Notifications = lens _cp1Notifications (\s a -> s { _cp1Notifications = a })+-- - __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.+-- 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}); -- | 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. 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.+-- 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.+-- 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.-cp1OutputBucket :: Lens' CreatePipeline (Maybe Text)-cp1OutputBucket = lens _cp1OutputBucket (\s a -> s { _cp1OutputBucket = a })+-- 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}); --- | The IAM Amazon Resource Name (ARN) for the role that you want Elastic--- Transcoder to use to create the pipeline.-cp1Role :: Lens' CreatePipeline Text-cp1Role = lens _cp1Role (\s a -> s { _cp1Role = 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}); --- | 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.+-- | 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', 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.+-- 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. 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.-cp1ThumbnailConfig :: Lens' CreatePipeline (Maybe PipelineOutputConfig)-cp1ThumbnailConfig =- lens _cp1ThumbnailConfig (\s a -> s { _cp1ThumbnailConfig = a })--data CreatePipelineResponse = CreatePipelineResponse- { _cprPipeline :: Maybe Pipeline- , _cprWarnings :: List "Warnings" Warning- } deriving (Eq, Read, Show)+-- - __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.+-- 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}); --- | 'CreatePipelineResponse' constructor.------ The fields accessible through corresponding lenses are:+-- | The Amazon Simple Notification Service (Amazon SNS) topic that you want+-- to notify to report job status. ----- * 'cprPipeline' @::@ 'Maybe' 'Pipeline'+-- To receive notifications, you must also subscribe to the new topic in+-- the Amazon SNS console. ----- * 'cprWarnings' @::@ ['Warning']+-- - __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});++-- | The name of the pipeline. We recommend that the name be unique within+-- the AWS account, but uniqueness is not enforced. ---createPipelineResponse :: CreatePipelineResponse-createPipelineResponse = CreatePipelineResponse- { _cprPipeline = Nothing- , _cprWarnings = mempty- }+-- Constraints: Maximum 40 characters.+cName :: Lens' CreatePipeline Text+cName = lens _cName (\ s a -> s{_cName = a}); --- | A section of the response body that provides information about the pipeline--- that is created.-cprPipeline :: Lens' CreatePipelineResponse (Maybe Pipeline)-cprPipeline = lens _cprPipeline (\s a -> s { _cprPipeline = 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}); --- | 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.-cprWarnings :: Lens' CreatePipelineResponse [Warning]-cprWarnings = lens _cprWarnings (\s a -> s { _cprWarnings = a }) . _List+-- | 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}); +instance AWSRequest CreatePipeline where+ type Sv CreatePipeline = ElasticTranscoder+ type Rs CreatePipeline = CreatePipelineResponse+ request = postJSON+ response+ = receiveJSON+ (\ s h x ->+ CreatePipelineResponse' <$>+ (x .?> "Warnings" .!@ mempty) <*> (x .?> "Pipeline")+ <*> (pure (fromEnum s)))++instance ToHeaders CreatePipeline where+ toHeaders = const mempty++instance ToJSON CreatePipeline where+ toJSON CreatePipeline'{..}+ = object+ ["ContentConfig" .= _cContentConfig,+ "OutputBucket" .= _cOutputBucket,+ "AwsKmsKeyArn" .= _cAWSKMSKeyARN,+ "ThumbnailConfig" .= _cThumbnailConfig,+ "Notifications" .= _cNotifications, "Name" .= _cName,+ "InputBucket" .= _cInputBucket, "Role" .= _cRole]+ instance ToPath CreatePipeline where- toPath = const "/2012-09-25/pipelines"+ toPath = const "/2012-09-25/pipelines" instance ToQuery CreatePipeline where- toQuery = const mempty+ toQuery = const mempty -instance ToHeaders CreatePipeline+-- | When you create a pipeline, Elastic Transcoder returns the values that+-- you specified in the request.+--+-- /See:/ 'createPipelineResponse' smart constructor.+data CreatePipelineResponse = CreatePipelineResponse'+ { _crsWarnings :: !(Maybe [Warning])+ , _crsPipeline :: !(Maybe Pipeline)+ , _crsStatus :: !Int+ } deriving (Eq,Read,Show,Data,Typeable,Generic) -instance ToJSON CreatePipeline where- toJSON CreatePipeline{..} = object- [ "Name" .= _cp1Name- , "InputBucket" .= _cp1InputBucket- , "OutputBucket" .= _cp1OutputBucket- , "Role" .= _cp1Role- , "AwsKmsKeyArn" .= _cp1AwsKmsKeyArn- , "Notifications" .= _cp1Notifications- , "ContentConfig" .= _cp1ContentConfig- , "ThumbnailConfig" .= _cp1ThumbnailConfig- ]+-- | Creates a value of 'CreatePipelineResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'crsWarnings'+--+-- * 'crsPipeline'+--+-- * 'crsStatus'+createPipelineResponse+ :: Int -- ^ 'crsStatus'+ -> CreatePipelineResponse+createPipelineResponse pStatus_ =+ CreatePipelineResponse'+ { _crsWarnings = Nothing+ , _crsPipeline = Nothing+ , _crsStatus = pStatus_+ } -instance AWSRequest CreatePipeline where- type Sv CreatePipeline = ElasticTranscoder- type Rs CreatePipeline = CreatePipelineResponse+-- | 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; - request = post- response = jsonResponse+-- | 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}); -instance FromJSON CreatePipelineResponse where- parseJSON = withObject "CreatePipelineResponse" $ \o -> CreatePipelineResponse- <$> o .:? "Pipeline"- <*> o .:? "Warnings" .!= mempty+-- | The response status code.+crsStatus :: Lens' CreatePipelineResponse Int+crsStatus = lens _crsStatus (\ s a -> s{_crsStatus = a});
gen/Network/AWS/ElasticTranscoder/CreatePreset.hs view
@@ -1,191 +1,208 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE GeneralizedNewtypeDeriving #-}-{-# LANGUAGE LambdaCase #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-} +-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- | -- Module : Network.AWS.ElasticTranscoder.CreatePreset--- Copyright : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>--- License : This Source Code Form is subject to the terms of--- the Mozilla Public License, v. 2.0.--- A copy of the MPL can be found in the LICENSE file or--- you can obtain it at http://mozilla.org/MPL/2.0/.+-- Copyright : (c) 2013-2015 Brendan Hay+-- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : experimental+-- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Derived from AWS service descriptions, licensed under Apache 2.0.---- | The CreatePreset operation creates a preset with settings that you specify.+-- The CreatePreset operation creates a preset with settings that you+-- specify. ----- Elastic Transcoder checks the CreatePreset settings to ensure that they meet--- Elastic Transcoder requirements and to determine whether they comply with--- H.264 standards. If your settings are not valid for Elastic Transcoder,--- Elastic Transcoder returns an HTTP 400 response ('ValidationException') and--- does not create the preset. If the settings are valid for Elastic Transcoder--- but aren't strictly compliant with the H.264 standard, Elastic Transcoder--- creates the preset and returns a warning message in the response. This helps--- you determine whether your settings comply with the H.264 standard while--- giving you greater flexibility with respect to the video that Elastic--- Transcoder produces. Elastic Transcoder uses the H.264 video-compression--- format. For more information, see the International Telecommunication Union--- publication /Recommendation ITU-T H.264: Advanced video coding for genericaudiovisual services/.+-- Elastic Transcoder checks the CreatePreset settings to ensure that they+-- meet Elastic Transcoder requirements and to determine whether they+-- comply with H.264 standards. If your settings are not valid for Elastic+-- Transcoder, Elastic Transcoder returns an HTTP 400 response+-- ('ValidationException') and does not create the preset. If the settings+-- are valid for Elastic Transcoder but aren\'t strictly compliant with the+-- H.264 standard, Elastic Transcoder creates the preset and returns a+-- warning message in the response. This helps you determine whether your+-- settings comply with the H.264 standard while giving you greater+-- flexibility with respect to the video that Elastic Transcoder produces. ----- <http://docs.aws.amazon.com/elastictranscoder/latest/developerguide/CreatePreset.html>+-- Elastic Transcoder uses the H.264 video-compression format. For more+-- information, see the International Telecommunication Union publication+-- /Recommendation ITU-T H.264: Advanced video coding for generic+-- audiovisual services/.+--+-- /See:/ <http://docs.aws.amazon.com/elastictranscoder/latest/developerguide/CreatePreset.html AWS API Reference> for CreatePreset. module Network.AWS.ElasticTranscoder.CreatePreset (- -- * Request- CreatePreset- -- ** Request constructor- , createPreset- -- ** Request lenses+ -- * Creating a Request+ createPreset+ , CreatePreset+ -- * Request Lenses+ , cpVideo+ , cpThumbnails , cpAudio- , cpContainer , cpDescription , cpName- , cpThumbnails- , cpVideo+ , cpContainer - -- * Response- , CreatePresetResponse- -- ** Response constructor+ -- * Destructuring the Response , createPresetResponse- -- ** Response lenses- , cprPreset- , cprWarning+ , CreatePresetResponse+ -- * Response Lenses+ , cprsWarning+ , cprsPreset+ , cprsStatus ) where -import Network.AWS.Data (Object)-import Network.AWS.Prelude-import Network.AWS.Request.RestJSON-import Network.AWS.ElasticTranscoder.Types-import qualified GHC.Exts--data CreatePreset = CreatePreset- { _cpAudio :: Maybe AudioParameters- , _cpContainer :: Text- , _cpDescription :: Maybe Text- , _cpName :: Text- , _cpThumbnails :: Maybe Thumbnails- , _cpVideo :: Maybe VideoParameters- } deriving (Eq, Read, Show)+import Network.AWS.ElasticTranscoder.Types+import Network.AWS.ElasticTranscoder.Types.Product+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response --- | 'CreatePreset' constructor.+-- | The 'CreatePresetRequest' structure. ----- The fields accessible through corresponding lenses are:+-- /See:/ 'createPreset' smart constructor.+data CreatePreset = CreatePreset'+ { _cpVideo :: !(Maybe VideoParameters)+ , _cpThumbnails :: !(Maybe Thumbnails)+ , _cpAudio :: !(Maybe AudioParameters)+ , _cpDescription :: !(Maybe Text)+ , _cpName :: !Text+ , _cpContainer :: !Text+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'CreatePreset' with the minimum fields required to make a request. ----- * 'cpAudio' @::@ 'Maybe' 'AudioParameters'+-- Use one of the following lenses to modify other fields as desired: ----- * 'cpContainer' @::@ 'Text'+-- * 'cpVideo' ----- * 'cpDescription' @::@ 'Maybe' 'Text'+-- * 'cpThumbnails' ----- * 'cpName' @::@ 'Text'+-- * 'cpAudio' ----- * 'cpThumbnails' @::@ 'Maybe' 'Thumbnails'+-- * 'cpDescription' ----- * 'cpVideo' @::@ 'Maybe' 'VideoParameters'+-- * 'cpName' ---createPreset :: Text -- ^ 'cpName'- -> Text -- ^ 'cpContainer'- -> CreatePreset-createPreset p1 p2 = CreatePreset- { _cpName = p1- , _cpContainer = p2+-- * 'cpContainer'+createPreset+ :: Text -- ^ 'cpName'+ -> Text -- ^ 'cpContainer'+ -> CreatePreset+createPreset pName_ pContainer_ =+ CreatePreset'+ { _cpVideo = Nothing+ , _cpThumbnails = Nothing+ , _cpAudio = Nothing , _cpDescription = Nothing- , _cpVideo = Nothing- , _cpAudio = Nothing- , _cpThumbnails = 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});++-- | 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});+ -- | A section of the request body that specifies the audio parameters. cpAudio :: Lens' CreatePreset (Maybe AudioParameters)-cpAudio = lens _cpAudio (\s a -> s { _cpAudio = 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 })+cpAudio = lens _cpAudio (\ s a -> s{_cpAudio = 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}); --- | The name of the preset. We recommend that the name be unique within the AWS--- account, but uniqueness is not enforced.+-- | 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 })---- | 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 })---- | A section of the request body that specifies the video parameters.-cpVideo :: Lens' CreatePreset (Maybe VideoParameters)-cpVideo = lens _cpVideo (\s a -> s { _cpVideo = a })+cpName = lens _cpName (\ s a -> s{_cpName = a}); -data CreatePresetResponse = CreatePresetResponse- { _cprPreset :: Maybe Preset- , _cprWarning :: Maybe Text- } deriving (Eq, Read, Show)+-- | 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}); --- | 'CreatePresetResponse' constructor.------ The fields accessible through corresponding lenses are:------ * 'cprPreset' @::@ 'Maybe' 'Preset'------ * 'cprWarning' @::@ 'Maybe' 'Text'----createPresetResponse :: CreatePresetResponse-createPresetResponse = CreatePresetResponse- { _cprPreset = Nothing- , _cprWarning = Nothing- }+instance AWSRequest CreatePreset where+ type Sv CreatePreset = ElasticTranscoder+ type Rs CreatePreset = CreatePresetResponse+ request = postJSON+ response+ = receiveJSON+ (\ s h x ->+ CreatePresetResponse' <$>+ (x .?> "Warning") <*> (x .?> "Preset") <*>+ (pure (fromEnum s))) --- | A section of the response body that provides information about the preset--- that is created.-cprPreset :: Lens' CreatePresetResponse (Maybe Preset)-cprPreset = lens _cprPreset (\s a -> s { _cprPreset = a })+instance ToHeaders CreatePreset where+ toHeaders = const mempty --- | 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.-cprWarning :: Lens' CreatePresetResponse (Maybe Text)-cprWarning = lens _cprWarning (\s a -> s { _cprWarning = a })+instance ToJSON CreatePreset where+ toJSON CreatePreset'{..}+ = object+ ["Video" .= _cpVideo, "Thumbnails" .= _cpThumbnails,+ "Audio" .= _cpAudio, "Description" .= _cpDescription,+ "Name" .= _cpName, "Container" .= _cpContainer] instance ToPath CreatePreset where- toPath = const "/2012-09-25/presets"+ toPath = const "/2012-09-25/presets" instance ToQuery CreatePreset where- toQuery = const mempty+ toQuery = const mempty -instance ToHeaders CreatePreset+-- | The 'CreatePresetResponse' structure.+--+-- /See:/ 'createPresetResponse' smart constructor.+data CreatePresetResponse = CreatePresetResponse'+ { _cprsWarning :: !(Maybe Text)+ , _cprsPreset :: !(Maybe Preset)+ , _cprsStatus :: !Int+ } deriving (Eq,Read,Show,Data,Typeable,Generic) -instance ToJSON CreatePreset where- toJSON CreatePreset{..} = object- [ "Name" .= _cpName- , "Description" .= _cpDescription- , "Container" .= _cpContainer- , "Video" .= _cpVideo- , "Audio" .= _cpAudio- , "Thumbnails" .= _cpThumbnails- ]+-- | Creates a value of 'CreatePresetResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'cprsWarning'+--+-- * 'cprsPreset'+--+-- * 'cprsStatus'+createPresetResponse+ :: Int -- ^ 'cprsStatus'+ -> CreatePresetResponse+createPresetResponse pStatus_ =+ CreatePresetResponse'+ { _cprsWarning = Nothing+ , _cprsPreset = Nothing+ , _cprsStatus = pStatus_+ } -instance AWSRequest CreatePreset where- type Sv CreatePreset = ElasticTranscoder- type Rs CreatePreset = CreatePresetResponse+-- | 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}); - request = post- response = jsonResponse+-- | 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}); -instance FromJSON CreatePresetResponse where- parseJSON = withObject "CreatePresetResponse" $ \o -> CreatePresetResponse- <$> o .:? "Preset"- <*> o .:? "Warning"+-- | The response status code.+cprsStatus :: Lens' CreatePresetResponse Int+cprsStatus = lens _cprsStatus (\ s a -> s{_cprsStatus = a});
gen/Network/AWS/ElasticTranscoder/DeletePipeline.hs view
@@ -1,99 +1,114 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE GeneralizedNewtypeDeriving #-}-{-# LANGUAGE LambdaCase #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-} +-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- | -- Module : Network.AWS.ElasticTranscoder.DeletePipeline--- Copyright : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>--- License : This Source Code Form is subject to the terms of--- the Mozilla Public License, v. 2.0.--- A copy of the MPL can be found in the LICENSE file or--- you can obtain it at http://mozilla.org/MPL/2.0/.+-- Copyright : (c) 2013-2015 Brendan Hay+-- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : experimental+-- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Derived from AWS service descriptions, licensed under Apache 2.0.---- | The DeletePipeline operation removes a pipeline.+-- The DeletePipeline operation removes a pipeline. -- -- You can only delete a pipeline that has never been used or that is not--- currently in use (doesn't contain any active jobs). If the pipeline is+-- currently in use (doesn\'t contain any active jobs). If the pipeline is -- currently in use, 'DeletePipeline' returns an error. ----- <http://docs.aws.amazon.com/elastictranscoder/latest/developerguide/DeletePipeline.html>+-- /See:/ <http://docs.aws.amazon.com/elastictranscoder/latest/developerguide/DeletePipeline.html AWS API Reference> for DeletePipeline. module Network.AWS.ElasticTranscoder.DeletePipeline (- -- * Request- DeletePipeline- -- ** Request constructor- , deletePipeline- -- ** Request lenses- , dp1Id+ -- * Creating a Request+ deletePipeline+ , DeletePipeline+ -- * Request Lenses+ , dId - -- * Response- , DeletePipelineResponse- -- ** Response constructor+ -- * Destructuring the Response , deletePipelineResponse+ , DeletePipelineResponse+ -- * Response Lenses+ , drsStatus ) where -import Network.AWS.Data (Object)-import Network.AWS.Prelude-import Network.AWS.Request.RestJSON-import Network.AWS.ElasticTranscoder.Types-import qualified GHC.Exts--newtype DeletePipeline = DeletePipeline- { _dp1Id :: Text- } deriving (Eq, Ord, Read, Show, Monoid, IsString)+import Network.AWS.ElasticTranscoder.Types+import Network.AWS.ElasticTranscoder.Types.Product+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response --- | 'DeletePipeline' constructor.+-- | The 'DeletePipelineRequest' structure. ----- The fields accessible through corresponding lenses are:+-- /See:/ 'deletePipeline' smart constructor.+newtype DeletePipeline = DeletePipeline'+ { _dId :: Text+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'DeletePipeline' with the minimum fields required to make a request. ----- * 'dp1Id' @::@ 'Text'+-- Use one of the following lenses to modify other fields as desired: ---deletePipeline :: Text -- ^ 'dp1Id'- -> DeletePipeline-deletePipeline p1 = DeletePipeline- { _dp1Id = p1+-- * 'dId'+deletePipeline+ :: Text -- ^ 'dId'+ -> DeletePipeline+deletePipeline pId_ =+ DeletePipeline'+ { _dId = pId_ } -- | The identifier of the pipeline that you want to delete.-dp1Id :: Lens' DeletePipeline Text-dp1Id = lens _dp1Id (\s a -> s { _dp1Id = a })+dId :: Lens' DeletePipeline Text+dId = lens _dId (\ s a -> s{_dId = a}); -data DeletePipelineResponse = DeletePipelineResponse- deriving (Eq, Ord, Read, Show, Generic)+instance AWSRequest DeletePipeline where+ type Sv DeletePipeline = ElasticTranscoder+ type Rs DeletePipeline = DeletePipelineResponse+ request = delete+ response+ = receiveEmpty+ (\ s h x ->+ DeletePipelineResponse' <$> (pure (fromEnum s))) --- | 'DeletePipelineResponse' constructor.-deletePipelineResponse :: DeletePipelineResponse-deletePipelineResponse = DeletePipelineResponse+instance ToHeaders DeletePipeline where+ toHeaders = const mempty instance ToPath DeletePipeline where- toPath DeletePipeline{..} = mconcat- [ "/2012-09-25/pipelines/"- , toText _dp1Id- ]+ toPath DeletePipeline'{..}+ = mconcat ["/2012-09-25/pipelines/", toBS _dId] instance ToQuery DeletePipeline where- toQuery = const mempty--instance ToHeaders DeletePipeline+ toQuery = const mempty -instance ToJSON DeletePipeline where- toJSON = const (toJSON Empty)+-- | The 'DeletePipelineResponse' structure.+--+-- /See:/ 'deletePipelineResponse' smart constructor.+newtype DeletePipelineResponse = DeletePipelineResponse'+ { _drsStatus :: Int+ } deriving (Eq,Read,Show,Data,Typeable,Generic) -instance AWSRequest DeletePipeline where- type Sv DeletePipeline = ElasticTranscoder- type Rs DeletePipeline = DeletePipelineResponse+-- | Creates a value of 'DeletePipelineResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'drsStatus'+deletePipelineResponse+ :: Int -- ^ 'drsStatus'+ -> DeletePipelineResponse+deletePipelineResponse pStatus_ =+ DeletePipelineResponse'+ { _drsStatus = pStatus_+ } - request = delete- response = nullResponse DeletePipelineResponse+-- | The response status code.+drsStatus :: Lens' DeletePipelineResponse Int+drsStatus = lens _drsStatus (\ s a -> s{_drsStatus = a});
gen/Network/AWS/ElasticTranscoder/DeletePreset.hs view
@@ -1,101 +1,115 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE GeneralizedNewtypeDeriving #-}-{-# LANGUAGE LambdaCase #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-} +-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- | -- Module : Network.AWS.ElasticTranscoder.DeletePreset--- Copyright : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>--- License : This Source Code Form is subject to the terms of--- the Mozilla Public License, v. 2.0.--- A copy of the MPL can be found in the LICENSE file or--- you can obtain it at http://mozilla.org/MPL/2.0/.+-- Copyright : (c) 2013-2015 Brendan Hay+-- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : experimental+-- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Derived from AWS service descriptions, licensed under Apache 2.0.---- | The DeletePreset operation removes a preset that you've added in an AWS+-- The DeletePreset operation removes a preset that you\'ve added in an AWS -- region. ----- You can't delete the default presets that are included with Elastic+-- You can\'t delete the default presets that are included with Elastic -- Transcoder. ----------- <http://docs.aws.amazon.com/elastictranscoder/latest/developerguide/DeletePreset.html>+-- /See:/ <http://docs.aws.amazon.com/elastictranscoder/latest/developerguide/DeletePreset.html AWS API Reference> for DeletePreset. module Network.AWS.ElasticTranscoder.DeletePreset (- -- * Request- DeletePreset- -- ** Request constructor- , deletePreset- -- ** Request lenses+ -- * Creating a Request+ deletePreset+ , DeletePreset+ -- * Request Lenses , dpId - -- * Response- , DeletePresetResponse- -- ** Response constructor+ -- * Destructuring the Response , deletePresetResponse+ , DeletePresetResponse+ -- * Response Lenses+ , dprsStatus ) where -import Network.AWS.Data (Object)-import Network.AWS.Prelude-import Network.AWS.Request.RestJSON-import Network.AWS.ElasticTranscoder.Types-import qualified GHC.Exts+import Network.AWS.ElasticTranscoder.Types+import Network.AWS.ElasticTranscoder.Types.Product+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response -newtype DeletePreset = DeletePreset+-- | The 'DeletePresetRequest' structure.+--+-- /See:/ 'deletePreset' smart constructor.+newtype DeletePreset = DeletePreset' { _dpId :: Text- } deriving (Eq, Ord, Read, Show, Monoid, IsString)+ } deriving (Eq,Read,Show,Data,Typeable,Generic) --- | 'DeletePreset' constructor.------ The fields accessible through corresponding lenses are:+-- | Creates a value of 'DeletePreset' with the minimum fields required to make a request. ----- * 'dpId' @::@ 'Text'+-- Use one of the following lenses to modify other fields as desired: ---deletePreset :: Text -- ^ 'dpId'- -> DeletePreset-deletePreset p1 = DeletePreset- { _dpId = p1+-- * 'dpId'+deletePreset+ :: Text -- ^ 'dpId'+ -> DeletePreset+deletePreset pId_ =+ DeletePreset'+ { _dpId = pId_ } --- | The identifier of the preset for which you want to get detailed information.+-- | 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}); -data DeletePresetResponse = DeletePresetResponse- deriving (Eq, Ord, Read, Show, Generic)+instance AWSRequest DeletePreset where+ type Sv DeletePreset = ElasticTranscoder+ type Rs DeletePreset = DeletePresetResponse+ request = delete+ response+ = receiveEmpty+ (\ s h x ->+ DeletePresetResponse' <$> (pure (fromEnum s))) --- | 'DeletePresetResponse' constructor.-deletePresetResponse :: DeletePresetResponse-deletePresetResponse = DeletePresetResponse+instance ToHeaders DeletePreset where+ toHeaders = const mempty instance ToPath DeletePreset where- toPath DeletePreset{..} = mconcat- [ "/2012-09-25/presets/"- , toText _dpId- ]+ toPath DeletePreset'{..}+ = mconcat ["/2012-09-25/presets/", toBS _dpId] instance ToQuery DeletePreset where- toQuery = const mempty--instance ToHeaders DeletePreset+ toQuery = const mempty -instance ToJSON DeletePreset where- toJSON = const (toJSON Empty)+-- | The 'DeletePresetResponse' structure.+--+-- /See:/ 'deletePresetResponse' smart constructor.+newtype DeletePresetResponse = DeletePresetResponse'+ { _dprsStatus :: Int+ } deriving (Eq,Read,Show,Data,Typeable,Generic) -instance AWSRequest DeletePreset where- type Sv DeletePreset = ElasticTranscoder- type Rs DeletePreset = DeletePresetResponse+-- | Creates a value of 'DeletePresetResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'dprsStatus'+deletePresetResponse+ :: Int -- ^ 'dprsStatus'+ -> DeletePresetResponse+deletePresetResponse pStatus_ =+ DeletePresetResponse'+ { _dprsStatus = pStatus_+ } - request = delete- response = nullResponse DeletePresetResponse+-- | The response status code.+dprsStatus :: Lens' DeletePresetResponse Int+dprsStatus = lens _dprsStatus (\ s a -> s{_dprsStatus = a});
gen/Network/AWS/ElasticTranscoder/ListJobsByPipeline.hs view
@@ -1,160 +1,176 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE GeneralizedNewtypeDeriving #-}-{-# LANGUAGE LambdaCase #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-} +-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- | -- Module : Network.AWS.ElasticTranscoder.ListJobsByPipeline--- Copyright : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>--- License : This Source Code Form is subject to the terms of--- the Mozilla Public License, v. 2.0.--- A copy of the MPL can be found in the LICENSE file or--- you can obtain it at http://mozilla.org/MPL/2.0/.+-- Copyright : (c) 2013-2015 Brendan Hay+-- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : experimental+-- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Derived from AWS service descriptions, licensed under Apache 2.0.---- | The ListJobsByPipeline operation gets a list of the jobs currently in a+-- The ListJobsByPipeline operation gets a list of the jobs currently in a -- pipeline. -- -- Elastic Transcoder returns all of the jobs currently in the specified--- pipeline. The response body contains one element for each job that satisfies--- the search criteria.+-- pipeline. The response body contains one element for each job that+-- satisfies the search criteria. ----- <http://docs.aws.amazon.com/elastictranscoder/latest/developerguide/ListJobsByPipeline.html>+-- /See:/ <http://docs.aws.amazon.com/elastictranscoder/latest/developerguide/ListJobsByPipeline.html AWS API Reference> for ListJobsByPipeline.+--+-- This operation returns paginated results. module Network.AWS.ElasticTranscoder.ListJobsByPipeline (- -- * Request- ListJobsByPipeline- -- ** Request constructor- , listJobsByPipeline- -- ** Request lenses+ -- * Creating a Request+ listJobsByPipeline+ , ListJobsByPipeline+ -- * Request Lenses , ljbpAscending , ljbpPageToken , ljbpPipelineId - -- * Response- , ListJobsByPipelineResponse- -- ** Response constructor+ -- * Destructuring the Response , listJobsByPipelineResponse- -- ** Response lenses- , ljbprJobs- , ljbprNextPageToken+ , ListJobsByPipelineResponse+ -- * Response Lenses+ , ljbprsNextPageToken+ , ljbprsJobs+ , ljbprsStatus ) where -import Network.AWS.Data (Object)-import Network.AWS.Prelude-import Network.AWS.Request.RestJSON-import Network.AWS.ElasticTranscoder.Types-import qualified GHC.Exts--data ListJobsByPipeline = ListJobsByPipeline- { _ljbpAscending :: Maybe Text- , _ljbpPageToken :: Maybe Text- , _ljbpPipelineId :: Text- } deriving (Eq, Ord, Read, Show)+import Network.AWS.ElasticTranscoder.Types+import Network.AWS.ElasticTranscoder.Types.Product+import Network.AWS.Pager+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response --- | 'ListJobsByPipeline' constructor.+-- | The 'ListJobsByPipelineRequest' structure. ----- The fields accessible through corresponding lenses are:+-- /See:/ 'listJobsByPipeline' smart constructor.+data ListJobsByPipeline = ListJobsByPipeline'+ { _ljbpAscending :: !(Maybe Text)+ , _ljbpPageToken :: !(Maybe Text)+ , _ljbpPipelineId :: !Text+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'ListJobsByPipeline' with the minimum fields required to make a request. ----- * 'ljbpAscending' @::@ 'Maybe' 'Text'+-- Use one of the following lenses to modify other fields as desired: ----- * 'ljbpPageToken' @::@ 'Maybe' 'Text'+-- * 'ljbpAscending' ----- * 'ljbpPipelineId' @::@ 'Text'+-- * 'ljbpPageToken' ---listJobsByPipeline :: Text -- ^ 'ljbpPipelineId'- -> ListJobsByPipeline-listJobsByPipeline p1 = ListJobsByPipeline- { _ljbpPipelineId = p1- , _ljbpAscending = Nothing- , _ljbpPageToken = Nothing+-- * 'ljbpPipelineId'+listJobsByPipeline+ :: Text -- ^ 'ljbpPipelineId'+ -> ListJobsByPipeline+listJobsByPipeline pPipelineId_ =+ ListJobsByPipeline'+ { _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'.+-- 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.+-- | 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 })--data ListJobsByPipelineResponse = ListJobsByPipelineResponse- { _ljbprJobs :: List "Jobs" Job'- , _ljbprNextPageToken :: Maybe Text- } deriving (Eq, Read, Show)+ljbpPipelineId = lens _ljbpPipelineId (\ s a -> s{_ljbpPipelineId = a}); --- | 'ListJobsByPipelineResponse' constructor.------ The fields accessible through corresponding lenses are:------ * 'ljbprJobs' @::@ ['Job'']------ * 'ljbprNextPageToken' @::@ 'Maybe' 'Text'----listJobsByPipelineResponse :: ListJobsByPipelineResponse-listJobsByPipelineResponse = ListJobsByPipelineResponse- { _ljbprJobs = mempty- , _ljbprNextPageToken = Nothing- }+instance AWSPager ListJobsByPipeline where+ page rq rs+ | stop (rs ^. ljbprsNextPageToken) = Nothing+ | stop (rs ^. ljbprsJobs) = Nothing+ | otherwise =+ Just $ rq &+ ljbpPageToken .~ rs ^. ljbprsNextPageToken --- | An array of 'Job' objects that are in the specified pipeline.-ljbprJobs :: Lens' ListJobsByPipelineResponse [Job']-ljbprJobs = lens _ljbprJobs (\s a -> s { _ljbprJobs = a }) . _List+instance AWSRequest ListJobsByPipeline where+ type Sv ListJobsByPipeline = ElasticTranscoder+ type Rs ListJobsByPipeline =+ ListJobsByPipelineResponse+ request = get+ response+ = receiveJSON+ (\ s h x ->+ ListJobsByPipelineResponse' <$>+ (x .?> "NextPageToken") <*> (x .?> "Jobs" .!@ mempty)+ <*> (pure (fromEnum s))) --- | 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'.-ljbprNextPageToken :: Lens' ListJobsByPipelineResponse (Maybe Text)-ljbprNextPageToken =- lens _ljbprNextPageToken (\s a -> s { _ljbprNextPageToken = a })+instance ToHeaders ListJobsByPipeline where+ toHeaders = const mempty instance ToPath ListJobsByPipeline where- toPath ListJobsByPipeline{..} = mconcat- [ "/2012-09-25/jobsByPipeline/"- , toText _ljbpPipelineId- ]+ toPath ListJobsByPipeline'{..}+ = mconcat+ ["/2012-09-25/jobsByPipeline/", toBS _ljbpPipelineId] instance ToQuery ListJobsByPipeline where- toQuery ListJobsByPipeline{..} = mconcat- [ "Ascending" =? _ljbpAscending- , "PageToken" =? _ljbpPageToken- ]--instance ToHeaders ListJobsByPipeline+ toQuery ListJobsByPipeline'{..}+ = mconcat+ ["Ascending" =: _ljbpAscending,+ "PageToken" =: _ljbpPageToken] -instance ToJSON ListJobsByPipeline where- toJSON = const (toJSON Empty)+-- | The 'ListJobsByPipelineResponse' structure.+--+-- /See:/ 'listJobsByPipelineResponse' smart constructor.+data ListJobsByPipelineResponse = ListJobsByPipelineResponse'+ { _ljbprsNextPageToken :: !(Maybe Text)+ , _ljbprsJobs :: !(Maybe [Job'])+ , _ljbprsStatus :: !Int+ } deriving (Eq,Read,Show,Data,Typeable,Generic) -instance AWSRequest ListJobsByPipeline where- type Sv ListJobsByPipeline = ElasticTranscoder- type Rs ListJobsByPipeline = ListJobsByPipelineResponse+-- | Creates a value of 'ListJobsByPipelineResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'ljbprsNextPageToken'+--+-- * 'ljbprsJobs'+--+-- * 'ljbprsStatus'+listJobsByPipelineResponse+ :: Int -- ^ 'ljbprsStatus'+ -> ListJobsByPipelineResponse+listJobsByPipelineResponse pStatus_ =+ ListJobsByPipelineResponse'+ { _ljbprsNextPageToken = Nothing+ , _ljbprsJobs = Nothing+ , _ljbprsStatus = pStatus_+ } - request = get- response = jsonResponse+-- | 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}); -instance FromJSON ListJobsByPipelineResponse where- parseJSON = withObject "ListJobsByPipelineResponse" $ \o -> ListJobsByPipelineResponse- <$> o .:? "Jobs" .!= mempty- <*> o .:? "NextPageToken"+-- | 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; -instance AWSPager ListJobsByPipeline where- page rq rs- | stop (rs ^. ljbprNextPageToken) = Nothing- | otherwise = (\x -> rq & ljbpPageToken ?~ x)- <$> (rs ^. ljbprNextPageToken)+-- | The response status code.+ljbprsStatus :: Lens' ListJobsByPipelineResponse Int+ljbprsStatus = lens _ljbprsStatus (\ s a -> s{_ljbprsStatus = a});
gen/Network/AWS/ElasticTranscoder/ListJobsByStatus.hs view
@@ -1,158 +1,174 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE GeneralizedNewtypeDeriving #-}-{-# LANGUAGE LambdaCase #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-} +-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- | -- Module : Network.AWS.ElasticTranscoder.ListJobsByStatus--- Copyright : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>--- License : This Source Code Form is subject to the terms of--- the Mozilla Public License, v. 2.0.--- A copy of the MPL can be found in the LICENSE file or--- you can obtain it at http://mozilla.org/MPL/2.0/.+-- Copyright : (c) 2013-2015 Brendan Hay+-- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : experimental+-- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Derived from AWS service descriptions, licensed under Apache 2.0.---- | The ListJobsByStatus operation gets a list of jobs that have a specified--- status. The response body contains one element for each job that satisfies--- the search criteria.+-- The ListJobsByStatus operation gets a list of jobs that have a specified+-- status. The response body contains one element for each job that+-- satisfies the search criteria. ----- <http://docs.aws.amazon.com/elastictranscoder/latest/developerguide/ListJobsByStatus.html>+-- /See:/ <http://docs.aws.amazon.com/elastictranscoder/latest/developerguide/ListJobsByStatus.html AWS API Reference> for ListJobsByStatus.+--+-- This operation returns paginated results. module Network.AWS.ElasticTranscoder.ListJobsByStatus (- -- * Request- ListJobsByStatus- -- ** Request constructor- , listJobsByStatus- -- ** Request lenses+ -- * Creating a Request+ listJobsByStatus+ , ListJobsByStatus+ -- * Request Lenses , ljbsAscending , ljbsPageToken , ljbsStatus - -- * Response- , ListJobsByStatusResponse- -- ** Response constructor+ -- * Destructuring the Response , listJobsByStatusResponse- -- ** Response lenses- , ljbsrJobs- , ljbsrNextPageToken+ , ListJobsByStatusResponse+ -- * Response Lenses+ , ljbsrsNextPageToken+ , ljbsrsJobs+ , ljbsrsStatus ) where -import Network.AWS.Data (Object)-import Network.AWS.Prelude-import Network.AWS.Request.RestJSON-import Network.AWS.ElasticTranscoder.Types-import qualified GHC.Exts--data ListJobsByStatus = ListJobsByStatus- { _ljbsAscending :: Maybe Text- , _ljbsPageToken :: Maybe Text- , _ljbsStatus :: Text- } deriving (Eq, Ord, Read, Show)+import Network.AWS.ElasticTranscoder.Types+import Network.AWS.ElasticTranscoder.Types.Product+import Network.AWS.Pager+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response --- | 'ListJobsByStatus' constructor.+-- | The 'ListJobsByStatusRequest' structure. ----- The fields accessible through corresponding lenses are:+-- /See:/ 'listJobsByStatus' smart constructor.+data ListJobsByStatus = ListJobsByStatus'+ { _ljbsAscending :: !(Maybe Text)+ , _ljbsPageToken :: !(Maybe Text)+ , _ljbsStatus :: !Text+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'ListJobsByStatus' with the minimum fields required to make a request. ----- * 'ljbsAscending' @::@ 'Maybe' 'Text'+-- Use one of the following lenses to modify other fields as desired: ----- * 'ljbsPageToken' @::@ 'Maybe' 'Text'+-- * 'ljbsAscending' ----- * 'ljbsStatus' @::@ 'Text'+-- * 'ljbsPageToken' ---listJobsByStatus :: Text -- ^ 'ljbsStatus'- -> ListJobsByStatus-listJobsByStatus p1 = ListJobsByStatus- { _ljbsStatus = p1- , _ljbsAscending = Nothing+-- * 'ljbsStatus'+listJobsByStatus+ :: Text -- ^ 'ljbsStatus'+ -> ListJobsByStatus+listJobsByStatus pStatus_ =+ ListJobsByStatus'+ { _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'.+-- 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.+-- | 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'.+-- 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 })--data ListJobsByStatusResponse = ListJobsByStatusResponse- { _ljbsrJobs :: List "Jobs" Job'- , _ljbsrNextPageToken :: Maybe Text- } deriving (Eq, Read, Show)+ljbsStatus = lens _ljbsStatus (\ s a -> s{_ljbsStatus = a}); --- | 'ListJobsByStatusResponse' constructor.------ The fields accessible through corresponding lenses are:------ * 'ljbsrJobs' @::@ ['Job'']------ * 'ljbsrNextPageToken' @::@ 'Maybe' 'Text'----listJobsByStatusResponse :: ListJobsByStatusResponse-listJobsByStatusResponse = ListJobsByStatusResponse- { _ljbsrJobs = mempty- , _ljbsrNextPageToken = Nothing- }+instance AWSPager ListJobsByStatus where+ page rq rs+ | stop (rs ^. ljbsrsNextPageToken) = Nothing+ | stop (rs ^. ljbsrsJobs) = Nothing+ | otherwise =+ Just $ rq &+ ljbsPageToken .~ rs ^. ljbsrsNextPageToken --- | An array of 'Job' objects that have the specified status.-ljbsrJobs :: Lens' ListJobsByStatusResponse [Job']-ljbsrJobs = lens _ljbsrJobs (\s a -> s { _ljbsrJobs = a }) . _List+instance AWSRequest ListJobsByStatus where+ type Sv ListJobsByStatus = ElasticTranscoder+ type Rs ListJobsByStatus = ListJobsByStatusResponse+ request = get+ response+ = receiveJSON+ (\ s h x ->+ ListJobsByStatusResponse' <$>+ (x .?> "NextPageToken") <*> (x .?> "Jobs" .!@ mempty)+ <*> (pure (fromEnum s))) --- | 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'.-ljbsrNextPageToken :: Lens' ListJobsByStatusResponse (Maybe Text)-ljbsrNextPageToken =- lens _ljbsrNextPageToken (\s a -> s { _ljbsrNextPageToken = a })+instance ToHeaders ListJobsByStatus where+ toHeaders = const mempty instance ToPath ListJobsByStatus where- toPath ListJobsByStatus{..} = mconcat- [ "/2012-09-25/jobsByStatus/"- , toText _ljbsStatus- ]+ toPath ListJobsByStatus'{..}+ = mconcat+ ["/2012-09-25/jobsByStatus/", toBS _ljbsStatus] instance ToQuery ListJobsByStatus where- toQuery ListJobsByStatus{..} = mconcat- [ "Ascending" =? _ljbsAscending- , "PageToken" =? _ljbsPageToken- ]--instance ToHeaders ListJobsByStatus+ toQuery ListJobsByStatus'{..}+ = mconcat+ ["Ascending" =: _ljbsAscending,+ "PageToken" =: _ljbsPageToken] -instance ToJSON ListJobsByStatus where- toJSON = const (toJSON Empty)+-- | The 'ListJobsByStatusResponse' structure.+--+-- /See:/ 'listJobsByStatusResponse' smart constructor.+data ListJobsByStatusResponse = ListJobsByStatusResponse'+ { _ljbsrsNextPageToken :: !(Maybe Text)+ , _ljbsrsJobs :: !(Maybe [Job'])+ , _ljbsrsStatus :: !Int+ } deriving (Eq,Read,Show,Data,Typeable,Generic) -instance AWSRequest ListJobsByStatus where- type Sv ListJobsByStatus = ElasticTranscoder- type Rs ListJobsByStatus = ListJobsByStatusResponse+-- | Creates a value of 'ListJobsByStatusResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'ljbsrsNextPageToken'+--+-- * 'ljbsrsJobs'+--+-- * 'ljbsrsStatus'+listJobsByStatusResponse+ :: Int -- ^ 'ljbsrsStatus'+ -> ListJobsByStatusResponse+listJobsByStatusResponse pStatus_ =+ ListJobsByStatusResponse'+ { _ljbsrsNextPageToken = Nothing+ , _ljbsrsJobs = Nothing+ , _ljbsrsStatus = pStatus_+ } - request = get- response = jsonResponse+-- | 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}); -instance FromJSON ListJobsByStatusResponse where- parseJSON = withObject "ListJobsByStatusResponse" $ \o -> ListJobsByStatusResponse- <$> o .:? "Jobs" .!= mempty- <*> o .:? "NextPageToken"+-- | An array of 'Job' objects that have the specified status.+ljbsrsJobs :: Lens' ListJobsByStatusResponse [Job']+ljbsrsJobs = lens _ljbsrsJobs (\ s a -> s{_ljbsrsJobs = a}) . _Default . _Coerce; -instance AWSPager ListJobsByStatus where- page rq rs- | stop (rs ^. ljbsrNextPageToken) = Nothing- | otherwise = (\x -> rq & ljbsPageToken ?~ x)- <$> (rs ^. ljbsrNextPageToken)+-- | The response status code.+ljbsrsStatus :: Lens' ListJobsByStatusResponse Int+ljbsrsStatus = lens _ljbsrsStatus (\ s a -> s{_ljbsrsStatus = a});
gen/Network/AWS/ElasticTranscoder/ListPipelines.hs view
@@ -1,142 +1,159 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE GeneralizedNewtypeDeriving #-}-{-# LANGUAGE LambdaCase #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-} +-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- | -- Module : Network.AWS.ElasticTranscoder.ListPipelines--- Copyright : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>--- License : This Source Code Form is subject to the terms of--- the Mozilla Public License, v. 2.0.--- A copy of the MPL can be found in the LICENSE file or--- you can obtain it at http://mozilla.org/MPL/2.0/.+-- Copyright : (c) 2013-2015 Brendan Hay+-- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : experimental+-- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Derived from AWS service descriptions, licensed under Apache 2.0.---- | The ListPipelines operation gets a list of the pipelines associated with the--- current AWS account.+-- The ListPipelines operation gets a list of the pipelines associated with+-- the current AWS account. ----- <http://docs.aws.amazon.com/elastictranscoder/latest/developerguide/ListPipelines.html>+-- /See:/ <http://docs.aws.amazon.com/elastictranscoder/latest/developerguide/ListPipelines.html AWS API Reference> for ListPipelines.+--+-- This operation returns paginated results. module Network.AWS.ElasticTranscoder.ListPipelines (- -- * Request- ListPipelines- -- ** Request constructor- , listPipelines- -- ** Request lenses+ -- * Creating a Request+ listPipelines+ , ListPipelines+ -- * Request Lenses , lpAscending , lpPageToken - -- * Response- , ListPipelinesResponse- -- ** Response constructor+ -- * Destructuring the Response , listPipelinesResponse- -- ** Response lenses- , lprNextPageToken- , lprPipelines+ , ListPipelinesResponse+ -- * Response Lenses+ , lprsNextPageToken+ , lprsPipelines+ , lprsStatus ) where -import Network.AWS.Data (Object)-import Network.AWS.Prelude-import Network.AWS.Request.RestJSON-import Network.AWS.ElasticTranscoder.Types-import qualified GHC.Exts--data ListPipelines = ListPipelines- { _lpAscending :: Maybe Text- , _lpPageToken :: Maybe Text- } deriving (Eq, Ord, Read, Show)+import Network.AWS.ElasticTranscoder.Types+import Network.AWS.ElasticTranscoder.Types.Product+import Network.AWS.Pager+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response --- | 'ListPipelines' constructor.+-- | The 'ListPipelineRequest' structure. ----- The fields accessible through corresponding lenses are:+-- /See:/ 'listPipelines' smart constructor.+data ListPipelines = ListPipelines'+ { _lpAscending :: !(Maybe Text)+ , _lpPageToken :: !(Maybe Text)+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'ListPipelines' with the minimum fields required to make a request. ----- * 'lpAscending' @::@ 'Maybe' 'Text'+-- Use one of the following lenses to modify other fields as desired: ----- * 'lpPageToken' @::@ 'Maybe' 'Text'+-- * 'lpAscending' ---listPipelines :: ListPipelines-listPipelines = ListPipelines+-- * 'lpPageToken'+listPipelines+ :: ListPipelines+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'.+-- | 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.+-- | 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 })--data ListPipelinesResponse = ListPipelinesResponse- { _lprNextPageToken :: Maybe Text- , _lprPipelines :: List "Pipelines" Pipeline- } deriving (Eq, Read, Show)+lpPageToken = lens _lpPageToken (\ s a -> s{_lpPageToken = a}); --- | 'ListPipelinesResponse' constructor.------ The fields accessible through corresponding lenses are:------ * 'lprNextPageToken' @::@ 'Maybe' 'Text'------ * 'lprPipelines' @::@ ['Pipeline']----listPipelinesResponse :: ListPipelinesResponse-listPipelinesResponse = ListPipelinesResponse- { _lprPipelines = mempty- , _lprNextPageToken = Nothing- }+instance AWSPager ListPipelines where+ page rq rs+ | stop (rs ^. lprsNextPageToken) = Nothing+ | stop (rs ^. lprsPipelines) = Nothing+ | otherwise =+ Just $ rq & lpPageToken .~ rs ^. lprsNextPageToken --- | 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'.-lprNextPageToken :: Lens' ListPipelinesResponse (Maybe Text)-lprNextPageToken = lens _lprNextPageToken (\s a -> s { _lprNextPageToken = a })+instance AWSRequest ListPipelines where+ type Sv ListPipelines = ElasticTranscoder+ type Rs ListPipelines = ListPipelinesResponse+ request = get+ response+ = receiveJSON+ (\ s h x ->+ ListPipelinesResponse' <$>+ (x .?> "NextPageToken") <*>+ (x .?> "Pipelines" .!@ mempty)+ <*> (pure (fromEnum s))) --- | An array of 'Pipeline' objects.-lprPipelines :: Lens' ListPipelinesResponse [Pipeline]-lprPipelines = lens _lprPipelines (\s a -> s { _lprPipelines = a }) . _List+instance ToHeaders ListPipelines where+ toHeaders = const mempty instance ToPath ListPipelines where- toPath = const "/2012-09-25/pipelines"+ toPath = const "/2012-09-25/pipelines" instance ToQuery ListPipelines where- toQuery ListPipelines{..} = mconcat- [ "Ascending" =? _lpAscending- , "PageToken" =? _lpPageToken- ]--instance ToHeaders ListPipelines+ toQuery ListPipelines'{..}+ = mconcat+ ["Ascending" =: _lpAscending,+ "PageToken" =: _lpPageToken] -instance ToJSON ListPipelines where- toJSON = const (toJSON Empty)+-- | A list of the pipelines associated with the current AWS account.+--+-- /See:/ 'listPipelinesResponse' smart constructor.+data ListPipelinesResponse = ListPipelinesResponse'+ { _lprsNextPageToken :: !(Maybe Text)+ , _lprsPipelines :: !(Maybe [Pipeline])+ , _lprsStatus :: !Int+ } deriving (Eq,Read,Show,Data,Typeable,Generic) -instance AWSRequest ListPipelines where- type Sv ListPipelines = ElasticTranscoder- type Rs ListPipelines = ListPipelinesResponse+-- | Creates a value of 'ListPipelinesResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'lprsNextPageToken'+--+-- * 'lprsPipelines'+--+-- * 'lprsStatus'+listPipelinesResponse+ :: Int -- ^ 'lprsStatus'+ -> ListPipelinesResponse+listPipelinesResponse pStatus_ =+ ListPipelinesResponse'+ { _lprsNextPageToken = Nothing+ , _lprsPipelines = Nothing+ , _lprsStatus = pStatus_+ } - request = get- response = jsonResponse+-- | 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}); -instance FromJSON ListPipelinesResponse where- parseJSON = withObject "ListPipelinesResponse" $ \o -> ListPipelinesResponse- <$> o .:? "NextPageToken"- <*> o .:? "Pipelines" .!= mempty+-- | An array of 'Pipeline' objects.+lprsPipelines :: Lens' ListPipelinesResponse [Pipeline]+lprsPipelines = lens _lprsPipelines (\ s a -> s{_lprsPipelines = a}) . _Default . _Coerce; -instance AWSPager ListPipelines where- page rq rs- | stop (rs ^. lprNextPageToken) = Nothing- | otherwise = (\x -> rq & lpPageToken ?~ x)- <$> (rs ^. lprNextPageToken)+-- | The response status code.+lprsStatus :: Lens' ListPipelinesResponse Int+lprsStatus = lens _lprsStatus (\ s a -> s{_lprsStatus = a});
gen/Network/AWS/ElasticTranscoder/ListPresets.hs view
@@ -1,143 +1,160 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE GeneralizedNewtypeDeriving #-}-{-# LANGUAGE LambdaCase #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-} +-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- | -- Module : Network.AWS.ElasticTranscoder.ListPresets--- Copyright : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>--- License : This Source Code Form is subject to the terms of--- the Mozilla Public License, v. 2.0.--- A copy of the MPL can be found in the LICENSE file or--- you can obtain it at http://mozilla.org/MPL/2.0/.+-- Copyright : (c) 2013-2015 Brendan Hay+-- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : experimental+-- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Derived from AWS service descriptions, licensed under Apache 2.0.---- | The ListPresets operation gets a list of the default presets included with--- Elastic Transcoder and the presets that you've added in an AWS region.+-- The ListPresets operation gets a list of the default presets included+-- with Elastic Transcoder and the presets that you\'ve added in an AWS+-- region. ----- <http://docs.aws.amazon.com/elastictranscoder/latest/developerguide/ListPresets.html>+-- /See:/ <http://docs.aws.amazon.com/elastictranscoder/latest/developerguide/ListPresets.html AWS API Reference> for ListPresets.+--+-- This operation returns paginated results. module Network.AWS.ElasticTranscoder.ListPresets (- -- * Request- ListPresets- -- ** Request constructor- , listPresets- -- ** Request lenses- , lp1Ascending- , lp1PageToken+ -- * Creating a Request+ listPresets+ , ListPresets+ -- * Request Lenses+ , lAscending+ , lPageToken - -- * Response- , ListPresetsResponse- -- ** Response constructor+ -- * Destructuring the Response , listPresetsResponse- -- ** Response lenses- , lpr1NextPageToken- , lpr1Presets+ , ListPresetsResponse+ -- * Response Lenses+ , lrsNextPageToken+ , lrsPresets+ , lrsStatus ) where -import Network.AWS.Data (Object)-import Network.AWS.Prelude-import Network.AWS.Request.RestJSON-import Network.AWS.ElasticTranscoder.Types-import qualified GHC.Exts--data ListPresets = ListPresets- { _lp1Ascending :: Maybe Text- , _lp1PageToken :: Maybe Text- } deriving (Eq, Ord, Read, Show)+import Network.AWS.ElasticTranscoder.Types+import Network.AWS.ElasticTranscoder.Types.Product+import Network.AWS.Pager+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response --- | 'ListPresets' constructor.+-- | The 'ListPresetsRequest' structure. ----- The fields accessible through corresponding lenses are:+-- /See:/ 'listPresets' smart constructor.+data ListPresets = ListPresets'+ { _lAscending :: !(Maybe Text)+ , _lPageToken :: !(Maybe Text)+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'ListPresets' with the minimum fields required to make a request. ----- * 'lp1Ascending' @::@ 'Maybe' 'Text'+-- Use one of the following lenses to modify other fields as desired: ----- * 'lp1PageToken' @::@ 'Maybe' 'Text'+-- * 'lAscending' ---listPresets :: ListPresets-listPresets = ListPresets- { _lp1Ascending = Nothing- , _lp1PageToken = Nothing+-- * 'lPageToken'+listPresets+ :: ListPresets+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'.-lp1Ascending :: Lens' ListPresets (Maybe Text)-lp1Ascending = lens _lp1Ascending (\s a -> s { _lp1Ascending = a })---- | When Elastic Transcoder returns more than one page of results, use 'pageToken'--- in subsequent 'GET' requests to get each successive page of results.-lp1PageToken :: Lens' ListPresets (Maybe Text)-lp1PageToken = lens _lp1PageToken (\s a -> s { _lp1PageToken = a })+-- | 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}); -data ListPresetsResponse = ListPresetsResponse- { _lpr1NextPageToken :: Maybe Text- , _lpr1Presets :: List "Presets" Preset- } deriving (Eq, Read, Show)+-- | 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}); --- | 'ListPresetsResponse' constructor.------ The fields accessible through corresponding lenses are:------ * 'lpr1NextPageToken' @::@ 'Maybe' 'Text'------ * 'lpr1Presets' @::@ ['Preset']----listPresetsResponse :: ListPresetsResponse-listPresetsResponse = ListPresetsResponse- { _lpr1Presets = mempty- , _lpr1NextPageToken = Nothing- }+instance AWSPager ListPresets where+ page rq rs+ | stop (rs ^. lrsNextPageToken) = Nothing+ | stop (rs ^. lrsPresets) = Nothing+ | otherwise =+ Just $ rq & lPageToken .~ rs ^. lrsNextPageToken --- | 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'.-lpr1NextPageToken :: Lens' ListPresetsResponse (Maybe Text)-lpr1NextPageToken =- lens _lpr1NextPageToken (\s a -> s { _lpr1NextPageToken = a })+instance AWSRequest ListPresets where+ type Sv ListPresets = ElasticTranscoder+ type Rs ListPresets = ListPresetsResponse+ request = get+ response+ = receiveJSON+ (\ s h x ->+ ListPresetsResponse' <$>+ (x .?> "NextPageToken") <*>+ (x .?> "Presets" .!@ mempty)+ <*> (pure (fromEnum s))) --- | An array of 'Preset' objects.-lpr1Presets :: Lens' ListPresetsResponse [Preset]-lpr1Presets = lens _lpr1Presets (\s a -> s { _lpr1Presets = a }) . _List+instance ToHeaders ListPresets where+ toHeaders = const mempty instance ToPath ListPresets where- toPath = const "/2012-09-25/presets"+ toPath = const "/2012-09-25/presets" instance ToQuery ListPresets where- toQuery ListPresets{..} = mconcat- [ "Ascending" =? _lp1Ascending- , "PageToken" =? _lp1PageToken- ]--instance ToHeaders ListPresets+ toQuery ListPresets'{..}+ = mconcat+ ["Ascending" =: _lAscending,+ "PageToken" =: _lPageToken] -instance ToJSON ListPresets where- toJSON = const (toJSON Empty)+-- | The 'ListPresetsResponse' structure.+--+-- /See:/ 'listPresetsResponse' smart constructor.+data ListPresetsResponse = ListPresetsResponse'+ { _lrsNextPageToken :: !(Maybe Text)+ , _lrsPresets :: !(Maybe [Preset])+ , _lrsStatus :: !Int+ } deriving (Eq,Read,Show,Data,Typeable,Generic) -instance AWSRequest ListPresets where- type Sv ListPresets = ElasticTranscoder- type Rs ListPresets = ListPresetsResponse+-- | Creates a value of 'ListPresetsResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'lrsNextPageToken'+--+-- * 'lrsPresets'+--+-- * 'lrsStatus'+listPresetsResponse+ :: Int -- ^ 'lrsStatus'+ -> ListPresetsResponse+listPresetsResponse pStatus_ =+ ListPresetsResponse'+ { _lrsNextPageToken = Nothing+ , _lrsPresets = Nothing+ , _lrsStatus = pStatus_+ } - request = get- response = jsonResponse+-- | 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}); -instance FromJSON ListPresetsResponse where- parseJSON = withObject "ListPresetsResponse" $ \o -> ListPresetsResponse- <$> o .:? "NextPageToken"- <*> o .:? "Presets" .!= mempty+-- | An array of 'Preset' objects.+lrsPresets :: Lens' ListPresetsResponse [Preset]+lrsPresets = lens _lrsPresets (\ s a -> s{_lrsPresets = a}) . _Default . _Coerce; -instance AWSPager ListPresets where- page rq rs- | stop (rs ^. lpr1NextPageToken) = Nothing- | otherwise = (\x -> rq & lp1PageToken ?~ x)- <$> (rs ^. lpr1NextPageToken)+-- | The response status code.+lrsStatus :: Lens' ListPresetsResponse Int+lrsStatus = lens _lrsStatus (\ s a -> s{_lrsStatus = a});
gen/Network/AWS/ElasticTranscoder/ReadJob.hs view
@@ -1,114 +1,122 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE GeneralizedNewtypeDeriving #-}-{-# LANGUAGE LambdaCase #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-} +-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- | -- Module : Network.AWS.ElasticTranscoder.ReadJob--- Copyright : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>--- License : This Source Code Form is subject to the terms of--- the Mozilla Public License, v. 2.0.--- A copy of the MPL can be found in the LICENSE file or--- you can obtain it at http://mozilla.org/MPL/2.0/.+-- Copyright : (c) 2013-2015 Brendan Hay+-- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : experimental+-- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Derived from AWS service descriptions, licensed under Apache 2.0.---- | The ReadJob operation returns detailed information about a job.+-- The ReadJob operation returns detailed information about a job. ----- <http://docs.aws.amazon.com/elastictranscoder/latest/developerguide/ReadJob.html>+-- /See:/ <http://docs.aws.amazon.com/elastictranscoder/latest/developerguide/ReadJob.html AWS API Reference> for ReadJob. module Network.AWS.ElasticTranscoder.ReadJob (- -- * Request- ReadJob- -- ** Request constructor- , readJob- -- ** Request lenses+ -- * Creating a Request+ readJob+ , ReadJob+ -- * Request Lenses , rjId - -- * Response- , ReadJobResponse- -- ** Response constructor+ -- * Destructuring the Response , readJobResponse- -- ** Response lenses- , rjrJob+ , ReadJobResponse+ -- * Response Lenses+ , rjrsStatus+ , rjrsJob ) where -import Network.AWS.Data (Object)-import Network.AWS.Prelude-import Network.AWS.Request.RestJSON-import Network.AWS.ElasticTranscoder.Types-import qualified GHC.Exts+import Network.AWS.ElasticTranscoder.Types+import Network.AWS.ElasticTranscoder.Types.Product+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response -newtype ReadJob = ReadJob+-- | The 'ReadJobRequest' structure.+--+-- /See:/ 'readJob' smart constructor.+newtype ReadJob = ReadJob' { _rjId :: Text- } deriving (Eq, Ord, Read, Show, Monoid, IsString)+ } deriving (Eq,Read,Show,Data,Typeable,Generic) --- | 'ReadJob' constructor.------ The fields accessible through corresponding lenses are:+-- | Creates a value of 'ReadJob' with the minimum fields required to make a request. ----- * 'rjId' @::@ 'Text'+-- Use one of the following lenses to modify other fields as desired: ---readJob :: Text -- ^ 'rjId'- -> ReadJob-readJob p1 = ReadJob- { _rjId = p1+-- * 'rjId'+readJob+ :: Text -- ^ 'rjId'+ -> ReadJob+readJob pId_ =+ ReadJob'+ { _rjId = pId_ } --- | The identifier of the job for which you want to get detailed information.+-- | 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 })--newtype ReadJobResponse = ReadJobResponse- { _rjrJob :: Job'- } deriving (Eq, Read, Show)+rjId = lens _rjId (\ s a -> s{_rjId = a}); --- | 'ReadJobResponse' constructor.------ The fields accessible through corresponding lenses are:------ * 'rjrJob' @::@ 'Job''----readJobResponse :: Job' -- ^ 'rjrJob'- -> ReadJobResponse-readJobResponse p1 = ReadJobResponse- { _rjrJob = p1- }+instance AWSRequest ReadJob where+ type Sv ReadJob = ElasticTranscoder+ type Rs ReadJob = ReadJobResponse+ request = get+ response+ = receiveJSON+ (\ s h x ->+ ReadJobResponse' <$>+ (pure (fromEnum s)) <*> (x .:> "Job")) --- | A section of the response body that provides information about the job.-rjrJob :: Lens' ReadJobResponse Job'-rjrJob = lens _rjrJob (\s a -> s { _rjrJob = a })+instance ToHeaders ReadJob where+ toHeaders = const mempty instance ToPath ReadJob where- toPath ReadJob{..} = mconcat- [ "/2012-09-25/jobs/"- , toText _rjId- ]+ toPath ReadJob'{..}+ = mconcat ["/2012-09-25/jobs/", toBS _rjId] instance ToQuery ReadJob where- toQuery = const mempty--instance ToHeaders ReadJob+ toQuery = const mempty -instance ToJSON ReadJob where- toJSON = const (toJSON Empty)+-- | The 'ReadJobResponse' structure.+--+-- /See:/ 'readJobResponse' smart constructor.+data ReadJobResponse = ReadJobResponse'+ { _rjrsStatus :: !Int+ , _rjrsJob :: !Job'+ } deriving (Eq,Read,Show,Data,Typeable,Generic) -instance AWSRequest ReadJob where- type Sv ReadJob = ElasticTranscoder- type Rs ReadJob = ReadJobResponse+-- | Creates a value of 'ReadJobResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'rjrsStatus'+--+-- * 'rjrsJob'+readJobResponse+ :: Int -- ^ 'rjrsStatus'+ -> Job' -- ^ 'rjrsJob'+ -> ReadJobResponse+readJobResponse pStatus_ pJob_ =+ ReadJobResponse'+ { _rjrsStatus = pStatus_+ , _rjrsJob = pJob_+ } - request = get- response = jsonResponse+-- | The response status code.+rjrsStatus :: Lens' ReadJobResponse Int+rjrsStatus = lens _rjrsStatus (\ s a -> s{_rjrsStatus = a}); -instance FromJSON ReadJobResponse where- parseJSON = withObject "ReadJobResponse" $ \o -> ReadJobResponse- <$> o .: "Job"+-- | A section of the response body that provides information about the job.+rjrsJob :: Lens' ReadJobResponse Job'+rjrsJob = lens _rjrsJob (\ s a -> s{_rjrsJob = a});
gen/Network/AWS/ElasticTranscoder/ReadPipeline.hs view
@@ -1,128 +1,136 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE GeneralizedNewtypeDeriving #-}-{-# LANGUAGE LambdaCase #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-} +-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- | -- Module : Network.AWS.ElasticTranscoder.ReadPipeline--- Copyright : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>--- License : This Source Code Form is subject to the terms of--- the Mozilla Public License, v. 2.0.--- A copy of the MPL can be found in the LICENSE file or--- you can obtain it at http://mozilla.org/MPL/2.0/.+-- Copyright : (c) 2013-2015 Brendan Hay+-- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : experimental+-- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Derived from AWS service descriptions, licensed under Apache 2.0.---- | The ReadPipeline operation gets detailed information about a pipeline.+-- The ReadPipeline operation gets detailed information about a pipeline. ----- <http://docs.aws.amazon.com/elastictranscoder/latest/developerguide/ReadPipeline.html>+-- /See:/ <http://docs.aws.amazon.com/elastictranscoder/latest/developerguide/ReadPipeline.html AWS API Reference> for ReadPipeline. module Network.AWS.ElasticTranscoder.ReadPipeline (- -- * Request- ReadPipeline- -- ** Request constructor- , readPipeline- -- ** Request lenses- , rp1Id+ -- * Creating a Request+ readPipeline+ , ReadPipeline+ -- * Request Lenses+ , rId - -- * Response- , ReadPipelineResponse- -- ** Response constructor+ -- * Destructuring the Response , readPipelineResponse- -- ** Response lenses- , rprPipeline- , rprWarnings+ , ReadPipelineResponse+ -- * Response Lenses+ , rrsWarnings+ , rrsPipeline+ , rrsStatus ) where -import Network.AWS.Data (Object)-import Network.AWS.Prelude-import Network.AWS.Request.RestJSON-import Network.AWS.ElasticTranscoder.Types-import qualified GHC.Exts--newtype ReadPipeline = ReadPipeline- { _rp1Id :: Text- } deriving (Eq, Ord, Read, Show, Monoid, IsString)+import Network.AWS.ElasticTranscoder.Types+import Network.AWS.ElasticTranscoder.Types.Product+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response --- | 'ReadPipeline' constructor.+-- | The 'ReadPipelineRequest' structure. ----- The fields accessible through corresponding lenses are:+-- /See:/ 'readPipeline' smart constructor.+newtype ReadPipeline = ReadPipeline'+ { _rId :: Text+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'ReadPipeline' with the minimum fields required to make a request. ----- * 'rp1Id' @::@ 'Text'+-- Use one of the following lenses to modify other fields as desired: ---readPipeline :: Text -- ^ 'rp1Id'- -> ReadPipeline-readPipeline p1 = ReadPipeline- { _rp1Id = p1+-- * 'rId'+readPipeline+ :: Text -- ^ 'rId'+ -> ReadPipeline+readPipeline pId_ =+ ReadPipeline'+ { _rId = pId_ } -- | The identifier of the pipeline to read.-rp1Id :: Lens' ReadPipeline Text-rp1Id = lens _rp1Id (\s a -> s { _rp1Id = a })--data ReadPipelineResponse = ReadPipelineResponse- { _rprPipeline :: Maybe Pipeline- , _rprWarnings :: List "Warnings" Warning- } deriving (Eq, Read, Show)---- | 'ReadPipelineResponse' constructor.------ The fields accessible through corresponding lenses are:------ * 'rprPipeline' @::@ 'Maybe' 'Pipeline'------ * 'rprWarnings' @::@ ['Warning']----readPipelineResponse :: ReadPipelineResponse-readPipelineResponse = ReadPipelineResponse- { _rprPipeline = Nothing- , _rprWarnings = mempty- }+rId :: Lens' ReadPipeline Text+rId = lens _rId (\ s a -> s{_rId = a}); --- | A section of the response body that provides information about the pipeline.-rprPipeline :: Lens' ReadPipelineResponse (Maybe Pipeline)-rprPipeline = lens _rprPipeline (\s a -> s { _rprPipeline = a })+instance AWSRequest ReadPipeline where+ type Sv ReadPipeline = ElasticTranscoder+ type Rs ReadPipeline = ReadPipelineResponse+ request = get+ response+ = receiveJSON+ (\ s h x ->+ ReadPipelineResponse' <$>+ (x .?> "Warnings" .!@ mempty) <*> (x .?> "Pipeline")+ <*> (pure (fromEnum s))) --- | 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.-rprWarnings :: Lens' ReadPipelineResponse [Warning]-rprWarnings = lens _rprWarnings (\s a -> s { _rprWarnings = a }) . _List+instance ToHeaders ReadPipeline where+ toHeaders = const mempty instance ToPath ReadPipeline where- toPath ReadPipeline{..} = mconcat- [ "/2012-09-25/pipelines/"- , toText _rp1Id- ]+ toPath ReadPipeline'{..}+ = mconcat ["/2012-09-25/pipelines/", toBS _rId] instance ToQuery ReadPipeline where- toQuery = const mempty+ toQuery = const mempty -instance ToHeaders ReadPipeline+-- | The 'ReadPipelineResponse' structure.+--+-- /See:/ 'readPipelineResponse' smart constructor.+data ReadPipelineResponse = ReadPipelineResponse'+ { _rrsWarnings :: !(Maybe [Warning])+ , _rrsPipeline :: !(Maybe Pipeline)+ , _rrsStatus :: !Int+ } deriving (Eq,Read,Show,Data,Typeable,Generic) -instance ToJSON ReadPipeline where- toJSON = const (toJSON Empty)+-- | Creates a value of 'ReadPipelineResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'rrsWarnings'+--+-- * 'rrsPipeline'+--+-- * 'rrsStatus'+readPipelineResponse+ :: Int -- ^ 'rrsStatus'+ -> ReadPipelineResponse+readPipelineResponse pStatus_ =+ ReadPipelineResponse'+ { _rrsWarnings = Nothing+ , _rrsPipeline = Nothing+ , _rrsStatus = pStatus_+ } -instance AWSRequest ReadPipeline where- type Sv ReadPipeline = ElasticTranscoder- type Rs ReadPipeline = ReadPipelineResponse+-- | 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; - request = get- response = jsonResponse+-- | 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}); -instance FromJSON ReadPipelineResponse where- parseJSON = withObject "ReadPipelineResponse" $ \o -> ReadPipelineResponse- <$> o .:? "Pipeline"- <*> o .:? "Warnings" .!= mempty+-- | The response status code.+rrsStatus :: Lens' ReadPipelineResponse Int+rrsStatus = lens _rrsStatus (\ s a -> s{_rrsStatus = a});
gen/Network/AWS/ElasticTranscoder/ReadPreset.hs view
@@ -1,113 +1,122 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE GeneralizedNewtypeDeriving #-}-{-# LANGUAGE LambdaCase #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-} +-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- | -- Module : Network.AWS.ElasticTranscoder.ReadPreset--- Copyright : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>--- License : This Source Code Form is subject to the terms of--- the Mozilla Public License, v. 2.0.--- A copy of the MPL can be found in the LICENSE file or--- you can obtain it at http://mozilla.org/MPL/2.0/.+-- Copyright : (c) 2013-2015 Brendan Hay+-- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : experimental+-- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Derived from AWS service descriptions, licensed under Apache 2.0.---- | The ReadPreset operation gets detailed information about a preset.+-- The ReadPreset operation gets detailed information about a preset. ----- <http://docs.aws.amazon.com/elastictranscoder/latest/developerguide/ReadPreset.html>+-- /See:/ <http://docs.aws.amazon.com/elastictranscoder/latest/developerguide/ReadPreset.html AWS API Reference> for ReadPreset. module Network.AWS.ElasticTranscoder.ReadPreset (- -- * Request- ReadPreset- -- ** Request constructor- , readPreset- -- ** Request lenses+ -- * Creating a Request+ readPreset+ , ReadPreset+ -- * Request Lenses , rpId - -- * Response- , ReadPresetResponse- -- ** Response constructor+ -- * Destructuring the Response , readPresetResponse- -- ** Response lenses- , rprPreset+ , ReadPresetResponse+ -- * Response Lenses+ , rprsPreset+ , rprsStatus ) where -import Network.AWS.Data (Object)-import Network.AWS.Prelude-import Network.AWS.Request.RestJSON-import Network.AWS.ElasticTranscoder.Types-import qualified GHC.Exts+import Network.AWS.ElasticTranscoder.Types+import Network.AWS.ElasticTranscoder.Types.Product+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response -newtype ReadPreset = ReadPreset+-- | The 'ReadPresetRequest' structure.+--+-- /See:/ 'readPreset' smart constructor.+newtype ReadPreset = ReadPreset' { _rpId :: Text- } deriving (Eq, Ord, Read, Show, Monoid, IsString)+ } deriving (Eq,Read,Show,Data,Typeable,Generic) --- | 'ReadPreset' constructor.------ The fields accessible through corresponding lenses are:+-- | Creates a value of 'ReadPreset' with the minimum fields required to make a request. ----- * 'rpId' @::@ 'Text'+-- Use one of the following lenses to modify other fields as desired: ---readPreset :: Text -- ^ 'rpId'- -> ReadPreset-readPreset p1 = ReadPreset- { _rpId = p1+-- * 'rpId'+readPreset+ :: Text -- ^ 'rpId'+ -> ReadPreset+readPreset pId_ =+ ReadPreset'+ { _rpId = pId_ } --- | The identifier of the preset for which you want to get detailed information.+-- | 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 })--newtype ReadPresetResponse = ReadPresetResponse- { _rprPreset :: Maybe Preset- } deriving (Eq, Read, Show)+rpId = lens _rpId (\ s a -> s{_rpId = a}); --- | 'ReadPresetResponse' constructor.------ The fields accessible through corresponding lenses are:------ * 'rprPreset' @::@ 'Maybe' 'Preset'----readPresetResponse :: ReadPresetResponse-readPresetResponse = ReadPresetResponse- { _rprPreset = Nothing- }+instance AWSRequest ReadPreset where+ type Sv ReadPreset = ElasticTranscoder+ type Rs ReadPreset = ReadPresetResponse+ request = get+ response+ = receiveJSON+ (\ s h x ->+ ReadPresetResponse' <$>+ (x .?> "Preset") <*> (pure (fromEnum s))) --- | A section of the response body that provides information about the preset.-rprPreset :: Lens' ReadPresetResponse (Maybe Preset)-rprPreset = lens _rprPreset (\s a -> s { _rprPreset = a })+instance ToHeaders ReadPreset where+ toHeaders = const mempty instance ToPath ReadPreset where- toPath ReadPreset{..} = mconcat- [ "/2012-09-25/presets/"- , toText _rpId- ]+ toPath ReadPreset'{..}+ = mconcat ["/2012-09-25/presets/", toBS _rpId] instance ToQuery ReadPreset where- toQuery = const mempty--instance ToHeaders ReadPreset+ toQuery = const mempty -instance ToJSON ReadPreset where- toJSON = const (toJSON Empty)+-- | The 'ReadPresetResponse' structure.+--+-- /See:/ 'readPresetResponse' smart constructor.+data ReadPresetResponse = ReadPresetResponse'+ { _rprsPreset :: !(Maybe Preset)+ , _rprsStatus :: !Int+ } deriving (Eq,Read,Show,Data,Typeable,Generic) -instance AWSRequest ReadPreset where- type Sv ReadPreset = ElasticTranscoder- type Rs ReadPreset = ReadPresetResponse+-- | Creates a value of 'ReadPresetResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'rprsPreset'+--+-- * 'rprsStatus'+readPresetResponse+ :: Int -- ^ 'rprsStatus'+ -> ReadPresetResponse+readPresetResponse pStatus_ =+ ReadPresetResponse'+ { _rprsPreset = Nothing+ , _rprsStatus = pStatus_+ } - request = get- response = jsonResponse+-- | 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}); -instance FromJSON ReadPresetResponse where- parseJSON = withObject "ReadPresetResponse" $ \o -> ReadPresetResponse- <$> o .:? "Preset"+-- | The response status code.+rprsStatus :: Lens' ReadPresetResponse Int+rprsStatus = lens _rprsStatus (\ s a -> s{_rprsStatus = a});
gen/Network/AWS/ElasticTranscoder/TestRole.hs view
@@ -1,165 +1,178 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE GeneralizedNewtypeDeriving #-}-{-# LANGUAGE LambdaCase #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-} +-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- | -- Module : Network.AWS.ElasticTranscoder.TestRole--- Copyright : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>--- License : This Source Code Form is subject to the terms of--- the Mozilla Public License, v. 2.0.--- A copy of the MPL can be found in the LICENSE file or--- you can obtain it at http://mozilla.org/MPL/2.0/.+-- Copyright : (c) 2013-2015 Brendan Hay+-- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : experimental+-- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Derived from AWS service descriptions, licensed under Apache 2.0.---- | The TestRole operation tests the IAM role used to create the pipeline.+-- The TestRole operation tests the IAM role used to create the pipeline. ----- The 'TestRole' action lets you determine whether the IAM role you are using--- has sufficient permissions to let Elastic Transcoder perform tasks associated--- with the transcoding process. The action attempts to assume the specified IAM--- role, checks read access to the input and output buckets, and tries to send a--- test notification to Amazon SNS topics that you specify.+-- The 'TestRole' action lets you determine whether the IAM role you are+-- using has sufficient permissions to let Elastic Transcoder perform tasks+-- associated with the transcoding process. The action attempts to assume+-- the specified IAM role, checks read access to the input and output+-- buckets, and tries to send a test notification to Amazon SNS topics that+-- you specify. ----- <http://docs.aws.amazon.com/elastictranscoder/latest/developerguide/TestRole.html>+-- /See:/ <http://docs.aws.amazon.com/elastictranscoder/latest/developerguide/TestRole.html AWS API Reference> for TestRole. module Network.AWS.ElasticTranscoder.TestRole (- -- * Request- TestRole- -- ** Request constructor- , testRole- -- ** Request lenses+ -- * Creating a Request+ testRole+ , TestRole+ -- * Request Lenses+ , trRole , trInputBucket , trOutputBucket- , trRole , trTopics - -- * Response- , TestRoleResponse- -- ** Response constructor+ -- * Destructuring the Response , testRoleResponse- -- ** Response lenses- , trrMessages- , trrSuccess+ , TestRoleResponse+ -- * Response Lenses+ , trrsSuccess+ , trrsMessages+ , trrsStatus ) where -import Network.AWS.Data (Object)-import Network.AWS.Prelude-import Network.AWS.Request.RestJSON-import Network.AWS.ElasticTranscoder.Types-import qualified GHC.Exts--data TestRole = TestRole- { _trInputBucket :: Text- , _trOutputBucket :: Text- , _trRole :: Text- , _trTopics :: List "Topics" Text- } deriving (Eq, Ord, Read, Show)+import Network.AWS.ElasticTranscoder.Types+import Network.AWS.ElasticTranscoder.Types.Product+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response --- | 'TestRole' constructor.+-- | The 'TestRoleRequest' structure. ----- The fields accessible through corresponding lenses are:+-- /See:/ 'testRole' smart constructor.+data TestRole = TestRole'+ { _trRole :: !Text+ , _trInputBucket :: !Text+ , _trOutputBucket :: !Text+ , _trTopics :: ![Text]+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'TestRole' with the minimum fields required to make a request. ----- * 'trInputBucket' @::@ 'Text'+-- Use one of the following lenses to modify other fields as desired: ----- * 'trOutputBucket' @::@ 'Text'+-- * 'trRole' ----- * 'trRole' @::@ 'Text'+-- * 'trInputBucket' ----- * 'trTopics' @::@ ['Text']+-- * 'trOutputBucket' ---testRole :: Text -- ^ 'trRole'- -> Text -- ^ 'trInputBucket'- -> Text -- ^ 'trOutputBucket'- -> TestRole-testRole p1 p2 p3 = TestRole- { _trRole = p1- , _trInputBucket = p2- , _trOutputBucket = p3- , _trTopics = mempty+-- * 'trTopics'+testRole+ :: Text -- ^ 'trRole'+ -> Text -- ^ 'trInputBucket'+ -> Text -- ^ 'trOutputBucket'+ -> TestRole+testRole pRole_ pInputBucket_ pOutputBucket_ =+ TestRole'+ { _trRole = pRole_+ , _trInputBucket = pInputBucket_+ , _trOutputBucket = pOutputBucket_+ , _trTopics = mempty } --- | The Amazon S3 bucket that contains media files to be transcoded. The action--- attempts to read from this bucket.+-- | The IAM Amazon Resource Name (ARN) for the role that you want Elastic+-- Transcoder to test.+trRole :: Lens' TestRole Text+trRole = lens _trRole (\ s a -> s{_trRole = a});++-- | The Amazon S3 bucket that contains media files to be transcoded. The+-- action attempts to read from this bucket. trInputBucket :: Lens' TestRole Text-trInputBucket = lens _trInputBucket (\s a -> s { _trInputBucket = a })+trInputBucket = lens _trInputBucket (\ s a -> s{_trInputBucket = a}); -- | The Amazon S3 bucket that Elastic Transcoder will write transcoded media -- files to. The action attempts to read from this bucket. trOutputBucket :: Lens' TestRole Text-trOutputBucket = lens _trOutputBucket (\s a -> s { _trOutputBucket = a })---- | The IAM Amazon Resource Name (ARN) for the role that you want Elastic--- Transcoder to test.-trRole :: Lens' TestRole Text-trRole = lens _trRole (\s a -> s { _trRole = a })+trOutputBucket = lens _trOutputBucket (\ s a -> s{_trOutputBucket = a}); -- | The ARNs of one or more Amazon Simple Notification Service (Amazon SNS) -- topics that you want the action to send a test notification to. trTopics :: Lens' TestRole [Text]-trTopics = lens _trTopics (\s a -> s { _trTopics = a }) . _List--data TestRoleResponse = TestRoleResponse- { _trrMessages :: List "Messages" Text- , _trrSuccess :: Maybe Text- } deriving (Eq, Ord, Read, Show)+trTopics = lens _trTopics (\ s a -> s{_trTopics = a}) . _Coerce; --- | 'TestRoleResponse' constructor.------ The fields accessible through corresponding lenses are:------ * 'trrMessages' @::@ ['Text']------ * 'trrSuccess' @::@ 'Maybe' 'Text'----testRoleResponse :: TestRoleResponse-testRoleResponse = TestRoleResponse- { _trrSuccess = Nothing- , _trrMessages = mempty- }+instance AWSRequest TestRole where+ type Sv TestRole = ElasticTranscoder+ type Rs TestRole = TestRoleResponse+ request = postJSON+ response+ = receiveJSON+ (\ s h x ->+ TestRoleResponse' <$>+ (x .?> "Success") <*> (x .?> "Messages" .!@ mempty)+ <*> (pure (fromEnum s))) --- | If the 'Success' element contains 'false', this value is an array of one or more--- error messages that were generated during the test process.-trrMessages :: Lens' TestRoleResponse [Text]-trrMessages = lens _trrMessages (\s a -> s { _trrMessages = a }) . _List+instance ToHeaders TestRole where+ toHeaders = const mempty --- | If the operation is successful, this value is 'true'; otherwise, the value is 'false'.-trrSuccess :: Lens' TestRoleResponse (Maybe Text)-trrSuccess = lens _trrSuccess (\s a -> s { _trrSuccess = a })+instance ToJSON TestRole where+ toJSON TestRole'{..}+ = object+ ["Role" .= _trRole, "InputBucket" .= _trInputBucket,+ "OutputBucket" .= _trOutputBucket,+ "Topics" .= _trTopics] instance ToPath TestRole where- toPath = const "/2012-09-25/roleTests"+ toPath = const "/2012-09-25/roleTests" instance ToQuery TestRole where- toQuery = const mempty+ toQuery = const mempty -instance ToHeaders TestRole+-- | The 'TestRoleResponse' structure.+--+-- /See:/ 'testRoleResponse' smart constructor.+data TestRoleResponse = TestRoleResponse'+ { _trrsSuccess :: !(Maybe Text)+ , _trrsMessages :: !(Maybe [Text])+ , _trrsStatus :: !Int+ } deriving (Eq,Read,Show,Data,Typeable,Generic) -instance ToJSON TestRole where- toJSON TestRole{..} = object- [ "Role" .= _trRole- , "InputBucket" .= _trInputBucket- , "OutputBucket" .= _trOutputBucket- , "Topics" .= _trTopics- ]+-- | Creates a value of 'TestRoleResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'trrsSuccess'+--+-- * 'trrsMessages'+--+-- * 'trrsStatus'+testRoleResponse+ :: Int -- ^ 'trrsStatus'+ -> TestRoleResponse+testRoleResponse pStatus_ =+ TestRoleResponse'+ { _trrsSuccess = Nothing+ , _trrsMessages = Nothing+ , _trrsStatus = pStatus_+ } -instance AWSRequest TestRole where- type Sv TestRole = ElasticTranscoder- type Rs TestRole = TestRoleResponse+-- | If the operation is successful, this value is 'true'; otherwise, the+-- value is 'false'.+trrsSuccess :: Lens' TestRoleResponse (Maybe Text)+trrsSuccess = lens _trrsSuccess (\ s a -> s{_trrsSuccess = a}); - request = post- response = jsonResponse+-- | If the 'Success' element contains 'false', this value is an array of one+-- or more error messages that were generated during the test process.+trrsMessages :: Lens' TestRoleResponse [Text]+trrsMessages = lens _trrsMessages (\ s a -> s{_trrsMessages = a}) . _Default . _Coerce; -instance FromJSON TestRoleResponse where- parseJSON = withObject "TestRoleResponse" $ \o -> TestRoleResponse- <$> o .:? "Messages" .!= mempty- <*> o .:? "Success"+-- | The response status code.+trrsStatus :: Lens' TestRoleResponse Int+trrsStatus = lens _trrsStatus (\ s a -> s{_trrsStatus = a});
gen/Network/AWS/ElasticTranscoder/Types.hs view
@@ -1,4057 +1,413 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE GeneralizedNewtypeDeriving #-}-{-# LANGUAGE LambdaCase #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE ViewPatterns #-}--{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- Module : Network.AWS.ElasticTranscoder.Types--- Copyright : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>--- License : This Source Code Form is subject to the terms of--- the Mozilla Public License, v. 2.0.--- A copy of the MPL can be found in the LICENSE file or--- you can obtain it at http://mozilla.org/MPL/2.0/.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : experimental--- Portability : non-portable (GHC extensions)------ Derived from AWS service descriptions, licensed under Apache 2.0.--module Network.AWS.ElasticTranscoder.Types- (- -- * Service- ElasticTranscoder- -- ** Error- , JSONError-- -- * PlayReadyDrm- , PlayReadyDrm- , playReadyDrm- , prdFormat- , prdInitializationVector- , prdKey- , prdKeyId- , prdKeyMd5- , prdLicenseAcquisitionUrl-- -- * PipelineOutputConfig- , PipelineOutputConfig- , pipelineOutputConfig- , pocBucket- , pocPermissions- , pocStorageClass-- -- * CreateJobPlaylist- , CreateJobPlaylist- , createJobPlaylist- , cjpFormat- , cjpHlsContentProtection- , cjpName- , cjpOutputKeys- , cjpPlayReadyDrm-- -- * Captions- , Captions- , captions- , cCaptionFormats- , cCaptionSources- , cMergePolicy-- -- * AudioCodecOptions- , AudioCodecOptions- , audioCodecOptions- , acoBitDepth- , acoBitOrder- , acoProfile- , acoSigned-- -- * JobOutput- , JobOutput- , jobOutput- , joAlbumArt- , joAppliedColorSpaceConversion- , joCaptions- , joComposition- , joDuration- , joDurationMillis- , joEncryption- , joFileSize- , joFrameRate- , joHeight- , joId- , joKey- , joPresetId- , joRotate- , joSegmentDuration- , joStatus- , joStatusDetail- , joThumbnailEncryption- , joThumbnailPattern- , joWatermarks- , joWidth-- -- * Job'- , Job'- , job- , jArn- , jId- , jInput- , jOutput- , jOutputKeyPrefix- , jOutputs- , jPipelineId- , jPlaylists- , jStatus- , jTiming- , jUserMetadata-- -- * CaptionSource- , CaptionSource- , captionSource- , csEncryption- , csKey- , csLabel- , csLanguage- , csTimeOffset-- -- * Artwork- , Artwork- , artwork- , aAlbumArtFormat- , aEncryption- , aInputKey- , aMaxHeight- , aMaxWidth- , aPaddingPolicy- , aSizingPolicy-- -- * TimeSpan- , TimeSpan- , timeSpan- , tsDuration- , tsStartTime-- -- * CreateJobOutput- , CreateJobOutput- , createJobOutput- , cjoAlbumArt- , cjoCaptions- , cjoComposition- , cjoEncryption- , cjoKey- , cjoPresetId- , cjoRotate- , cjoSegmentDuration- , cjoThumbnailEncryption- , cjoThumbnailPattern- , cjoWatermarks-- -- * AudioParameters- , AudioParameters- , audioParameters- , apAudioPackingMode- , apBitRate- , apChannels- , apCodec- , apCodecOptions- , apSampleRate-- -- * Thumbnails- , Thumbnails- , thumbnails- , tAspectRatio- , tFormat- , tInterval- , tMaxHeight- , tMaxWidth- , tPaddingPolicy- , tResolution- , tSizingPolicy-- -- * Encryption- , Encryption- , encryption- , eInitializationVector- , eKey- , eKeyMd5- , eMode-- -- * JobAlbumArt- , JobAlbumArt- , jobAlbumArt- , jaaArtwork- , jaaMergePolicy-- -- * DetectedProperties- , DetectedProperties- , detectedProperties- , dpDurationMillis- , dpFileSize- , dpFrameRate- , dpHeight- , dpWidth-- -- * JobWatermark- , JobWatermark- , jobWatermark- , jwEncryption- , jwInputKey- , jwPresetWatermarkId-- -- * Pipeline- , Pipeline- , pipeline- , pArn- , pAwsKmsKeyArn- , pContentConfig- , pId- , pInputBucket- , pName- , pNotifications- , pOutputBucket- , pRole- , pStatus- , pThumbnailConfig-- -- * Warning- , Warning- , warning- , wCode- , wMessage-- -- * Preset- , Preset- , preset- , p1Arn- , p1Audio- , p1Container- , p1Description- , p1Id- , p1Name- , p1Thumbnails- , p1Type- , p1Video-- -- * CaptionFormat- , CaptionFormat- , captionFormat- , cfEncryption- , cfFormat- , cfPattern-- -- * HlsContentProtection- , HlsContentProtection- , hlsContentProtection- , hcpInitializationVector- , hcpKey- , hcpKeyMd5- , hcpKeyStoragePolicy- , hcpLicenseAcquisitionUrl- , hcpMethod-- -- * PresetWatermark- , PresetWatermark- , presetWatermark- , pwHorizontalAlign- , pwHorizontalOffset- , pwId- , pwMaxHeight- , pwMaxWidth- , pwOpacity- , pwSizingPolicy- , pwTarget- , pwVerticalAlign- , pwVerticalOffset-- -- * Timing- , Timing- , timing- , tFinishTimeMillis- , tStartTimeMillis- , tSubmitTimeMillis-- -- * Permission- , Permission- , permission- , pAccess- , pGrantee- , pGranteeType-- -- * VideoParameters- , VideoParameters- , videoParameters- , vpAspectRatio- , vpBitRate- , vpCodec- , vpCodecOptions- , vpDisplayAspectRatio- , vpFixedGOP- , vpFrameRate- , vpKeyframesMaxDist- , vpMaxFrameRate- , vpMaxHeight- , vpMaxWidth- , vpPaddingPolicy- , vpResolution- , vpSizingPolicy- , vpWatermarks-- -- * Playlist- , Playlist- , playlist- , p2Format- , p2HlsContentProtection- , p2Name- , p2OutputKeys- , p2PlayReadyDrm- , p2Status- , p2StatusDetail-- -- * Notifications- , Notifications- , notifications- , nCompleted- , nError- , nProgressing- , nWarning-- -- * Clip- , Clip- , clip- , cTimeSpan-- -- * JobInput- , JobInput- , jobInput- , jiAspectRatio- , jiContainer- , jiDetectedProperties- , jiEncryption- , jiFrameRate- , jiInterlaced- , jiKey- , jiResolution- ) where--import Network.AWS.Prelude-import Network.AWS.Signing-import qualified GHC.Exts---- | Version @2012-09-25@ of the Amazon Elastic Transcoder service.-data ElasticTranscoder--instance AWSService ElasticTranscoder where- type Sg ElasticTranscoder = V4- type Er ElasticTranscoder = JSONError-- service = service'- where- service' :: Service ElasticTranscoder- service' = Service- { _svcAbbrev = "ElasticTranscoder"- , _svcPrefix = "elastictranscoder"- , _svcVersion = "2012-09-25"- , _svcTargetPrefix = Nothing- , _svcJSONVersion = Nothing- , _svcHandle = handle- , _svcRetry = retry- }-- handle :: Status- -> Maybe (LazyByteString -> ServiceError JSONError)- handle = jsonError statusSuccess service'-- retry :: Retry ElasticTranscoder- retry = Exponential- { _retryBase = 0.05- , _retryGrowth = 2- , _retryAttempts = 5- , _retryCheck = check- }-- check :: Status- -> JSONError- -> Bool- check (statusCode -> s) (awsErrorCode -> e)- | s == 400 && (Just "ThrottlingException") == e = True -- Throttling- | s == 500 = True -- General Server Error- | s == 509 = True -- Limit Exceeded- | s == 503 = True -- Service Unavailable- | otherwise = False--data PlayReadyDrm = PlayReadyDrm- { _prdFormat :: Maybe Text- , _prdInitializationVector :: Maybe Text- , _prdKey :: Maybe Text- , _prdKeyId :: Maybe Text- , _prdKeyMd5 :: Maybe Text- , _prdLicenseAcquisitionUrl :: Maybe Text- } deriving (Eq, Ord, Read, Show)---- | 'PlayReadyDrm' constructor.------ The fields accessible through corresponding lenses are:------ * 'prdFormat' @::@ 'Maybe' 'Text'------ * 'prdInitializationVector' @::@ 'Maybe' 'Text'------ * 'prdKey' @::@ 'Maybe' 'Text'------ * 'prdKeyId' @::@ 'Maybe' 'Text'------ * 'prdKeyMd5' @::@ 'Maybe' 'Text'------ * 'prdLicenseAcquisitionUrl' @::@ 'Maybe' 'Text'----playReadyDrm :: PlayReadyDrm-playReadyDrm = PlayReadyDrm- { _prdFormat = Nothing- , _prdKey = Nothing- , _prdKeyMd5 = Nothing- , _prdKeyId = Nothing- , _prdInitializationVector = Nothing- , _prdLicenseAcquisitionUrl = Nothing- }---- | 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 })---- | 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 })---- | 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 })---- | 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 will--- convert 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 })---- | 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 })---- | 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 })--instance FromJSON PlayReadyDrm where- parseJSON = withObject "PlayReadyDrm" $ \o -> PlayReadyDrm- <$> o .:? "Format"- <*> o .:? "InitializationVector"- <*> o .:? "Key"- <*> o .:? "KeyId"- <*> o .:? "KeyMd5"- <*> o .:? "LicenseAcquisitionUrl"--instance ToJSON PlayReadyDrm where- toJSON PlayReadyDrm{..} = object- [ "Format" .= _prdFormat- , "Key" .= _prdKey- , "KeyMd5" .= _prdKeyMd5- , "KeyId" .= _prdKeyId- , "InitializationVector" .= _prdInitializationVector- , "LicenseAcquisitionUrl" .= _prdLicenseAcquisitionUrl- ]--data PipelineOutputConfig = PipelineOutputConfig- { _pocBucket :: Maybe Text- , _pocPermissions :: List "Permissions" Permission- , _pocStorageClass :: Maybe Text- } deriving (Eq, Read, Show)---- | 'PipelineOutputConfig' constructor.------ The fields accessible through corresponding lenses are:------ * 'pocBucket' @::@ 'Maybe' 'Text'------ * 'pocPermissions' @::@ ['Permission']------ * 'pocStorageClass' @::@ 'Maybe' 'Text'----pipelineOutputConfig :: PipelineOutputConfig-pipelineOutputConfig = PipelineOutputConfig- { _pocBucket = Nothing- , _pocStorageClass = Nothing- , _pocPermissions = mempty- }---- | 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 })---- | 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 }) . _List---- | 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 })--instance FromJSON PipelineOutputConfig where- parseJSON = withObject "PipelineOutputConfig" $ \o -> PipelineOutputConfig- <$> o .:? "Bucket"- <*> o .:? "Permissions" .!= mempty- <*> o .:? "StorageClass"--instance ToJSON PipelineOutputConfig where- toJSON PipelineOutputConfig{..} = object- [ "Bucket" .= _pocBucket- , "StorageClass" .= _pocStorageClass- , "Permissions" .= _pocPermissions- ]--data CreateJobPlaylist = CreateJobPlaylist- { _cjpFormat :: Maybe Text- , _cjpHlsContentProtection :: Maybe HlsContentProtection- , _cjpName :: Maybe Text- , _cjpOutputKeys :: List "OutputKeys" Text- , _cjpPlayReadyDrm :: Maybe PlayReadyDrm- } deriving (Eq, Read, Show)---- | 'CreateJobPlaylist' constructor.------ The fields accessible through corresponding lenses are:------ * 'cjpFormat' @::@ 'Maybe' 'Text'------ * 'cjpHlsContentProtection' @::@ 'Maybe' 'HlsContentProtection'------ * 'cjpName' @::@ 'Maybe' 'Text'------ * 'cjpOutputKeys' @::@ ['Text']------ * 'cjpPlayReadyDrm' @::@ 'Maybe' 'PlayReadyDrm'----createJobPlaylist :: CreateJobPlaylist-createJobPlaylist = CreateJobPlaylist- { _cjpName = Nothing- , _cjpFormat = Nothing- , _cjpOutputKeys = mempty- , _cjpHlsContentProtection = Nothing- , _cjpPlayReadyDrm = Nothing- }---- | 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 })---- | 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 })---- | 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.------ Note: Elastic Transcoder automatically appends the relevant file extension--- to the file name ('.m3u8' for 'HLSv3' and 'HLSv4' playlists, and '.ism' and '.ismc' for 'Smooth' playlists). If you include a file extension in 'Name', the file name--- will have two extensions.-cjpName :: Lens' CreateJobPlaylist (Maybe Text)-cjpName = lens _cjpName (\s a -> s { _cjpName = 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 }) . _List---- | 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 })--instance FromJSON CreateJobPlaylist where- parseJSON = withObject "CreateJobPlaylist" $ \o -> CreateJobPlaylist- <$> o .:? "Format"- <*> o .:? "HlsContentProtection"- <*> o .:? "Name"- <*> o .:? "OutputKeys" .!= mempty- <*> o .:? "PlayReadyDrm"--instance ToJSON CreateJobPlaylist where- toJSON CreateJobPlaylist{..} = object- [ "Name" .= _cjpName- , "Format" .= _cjpFormat- , "OutputKeys" .= _cjpOutputKeys- , "HlsContentProtection" .= _cjpHlsContentProtection- , "PlayReadyDrm" .= _cjpPlayReadyDrm- ]--data Captions = Captions- { _cCaptionFormats :: List "CaptionFormats" CaptionFormat- , _cCaptionSources :: List "CaptionSources" CaptionSource- , _cMergePolicy :: Maybe Text- } deriving (Eq, Read, Show)---- | 'Captions' constructor.------ The fields accessible through corresponding lenses are:------ * 'cCaptionFormats' @::@ ['CaptionFormat']------ * 'cCaptionSources' @::@ ['CaptionSource']------ * 'cMergePolicy' @::@ 'Maybe' 'Text'----captions :: Captions-captions = Captions- { _cMergePolicy = Nothing- , _cCaptionSources = mempty- , _cCaptionFormats = mempty- }---- | 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 }) . _List---- | 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 }) . _List---- | 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 })--instance FromJSON Captions where- parseJSON = withObject "Captions" $ \o -> Captions- <$> o .:? "CaptionFormats" .!= mempty- <*> o .:? "CaptionSources" .!= mempty- <*> o .:? "MergePolicy"--instance ToJSON Captions where- toJSON Captions{..} = object- [ "MergePolicy" .= _cMergePolicy- , "CaptionSources" .= _cCaptionSources- , "CaptionFormats" .= _cCaptionFormats- ]--data AudioCodecOptions = AudioCodecOptions- { _acoBitDepth :: Maybe Text- , _acoBitOrder :: Maybe Text- , _acoProfile :: Maybe Text- , _acoSigned :: Maybe Text- } deriving (Eq, Ord, Read, Show)---- | 'AudioCodecOptions' constructor.------ The fields accessible through corresponding lenses are:------ * 'acoBitDepth' @::@ 'Maybe' 'Text'------ * 'acoBitOrder' @::@ 'Maybe' 'Text'------ * 'acoProfile' @::@ 'Maybe' 'Text'------ * 'acoSigned' @::@ 'Maybe' 'Text'----audioCodecOptions :: AudioCodecOptions-audioCodecOptions = AudioCodecOptions- { _acoProfile = Nothing- , _acoBitDepth = Nothing- , _acoBitOrder = Nothing- , _acoSigned = Nothing- }---- | 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 })---- | 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 })---- | 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 will select 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'.------ If you created any presets before AAC profiles were added, Elastic--- Transcoder automatically updated your presets to use AAC-LC. You can change--- the value as required.----acoProfile :: Lens' AudioCodecOptions (Maybe Text)-acoProfile = lens _acoProfile (\s a -> s { _acoProfile = a })---- | 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 })--instance FromJSON AudioCodecOptions where- parseJSON = withObject "AudioCodecOptions" $ \o -> AudioCodecOptions- <$> o .:? "BitDepth"- <*> o .:? "BitOrder"- <*> o .:? "Profile"- <*> o .:? "Signed"--instance ToJSON AudioCodecOptions where- toJSON AudioCodecOptions{..} = object- [ "Profile" .= _acoProfile- , "BitDepth" .= _acoBitDepth- , "BitOrder" .= _acoBitOrder- , "Signed" .= _acoSigned- ]--data JobOutput = JobOutput- { _joAlbumArt :: Maybe JobAlbumArt- , _joAppliedColorSpaceConversion :: Maybe Text- , _joCaptions :: Maybe Captions- , _joComposition :: List "Composition" Clip- , _joDuration :: Maybe Integer- , _joDurationMillis :: Maybe Integer- , _joEncryption :: Maybe Encryption- , _joFileSize :: Maybe Integer- , _joFrameRate :: Maybe Text- , _joHeight :: Maybe Int- , _joId :: Maybe Text- , _joKey :: Maybe Text- , _joPresetId :: Maybe Text- , _joRotate :: Maybe Text- , _joSegmentDuration :: Maybe Text- , _joStatus :: Maybe Text- , _joStatusDetail :: Maybe Text- , _joThumbnailEncryption :: Maybe Encryption- , _joThumbnailPattern :: Maybe Text- , _joWatermarks :: List "Watermarks" JobWatermark- , _joWidth :: Maybe Int- } deriving (Eq, Read, Show)---- | 'JobOutput' constructor.------ The fields accessible through corresponding lenses are:------ * 'joAlbumArt' @::@ 'Maybe' 'JobAlbumArt'------ * 'joAppliedColorSpaceConversion' @::@ 'Maybe' 'Text'------ * 'joCaptions' @::@ 'Maybe' 'Captions'------ * 'joComposition' @::@ ['Clip']------ * 'joDuration' @::@ 'Maybe' 'Integer'------ * 'joDurationMillis' @::@ 'Maybe' 'Integer'------ * 'joEncryption' @::@ 'Maybe' 'Encryption'------ * 'joFileSize' @::@ 'Maybe' 'Integer'------ * 'joFrameRate' @::@ 'Maybe' 'Text'------ * 'joHeight' @::@ 'Maybe' 'Int'------ * 'joId' @::@ 'Maybe' 'Text'------ * 'joKey' @::@ 'Maybe' 'Text'------ * 'joPresetId' @::@ 'Maybe' 'Text'------ * 'joRotate' @::@ 'Maybe' 'Text'------ * 'joSegmentDuration' @::@ 'Maybe' 'Text'------ * 'joStatus' @::@ 'Maybe' 'Text'------ * 'joStatusDetail' @::@ 'Maybe' 'Text'------ * 'joThumbnailEncryption' @::@ 'Maybe' 'Encryption'------ * 'joThumbnailPattern' @::@ 'Maybe' 'Text'------ * 'joWatermarks' @::@ ['JobWatermark']------ * 'joWidth' @::@ 'Maybe' 'Int'----jobOutput :: JobOutput-jobOutput = JobOutput- { _joId = Nothing- , _joKey = Nothing- , _joThumbnailPattern = Nothing- , _joThumbnailEncryption = Nothing- , _joRotate = Nothing- , _joPresetId = Nothing- , _joSegmentDuration = Nothing- , _joStatus = Nothing- , _joStatusDetail = Nothing- , _joDuration = Nothing- , _joWidth = Nothing- , _joHeight = Nothing- , _joFrameRate = Nothing- , _joFileSize = Nothing- , _joDurationMillis = Nothing- , _joWatermarks = mempty- , _joAlbumArt = Nothing- , _joComposition = mempty- , _joCaptions = Nothing- , _joEncryption = Nothing- , _joAppliedColorSpaceConversion = Nothing- }---- | 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 })---- | 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 will not be included in the job response.-joAppliedColorSpaceConversion :: Lens' JobOutput (Maybe Text)-joAppliedColorSpaceConversion =- lens _joAppliedColorSpaceConversion- (\s a -> s { _joAppliedColorSpaceConversion = 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 })---- | 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 }) . _List---- | Duration of the output file, in seconds.-joDuration :: Lens' JobOutput (Maybe Integer)-joDuration = lens _joDuration (\s a -> s { _joDuration = a })---- | Duration of the output file, in milliseconds.-joDurationMillis :: Lens' JobOutput (Maybe Integer)-joDurationMillis = lens _joDurationMillis (\s a -> s { _joDurationMillis = 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 will write an--- unencrypted file to your Amazon S3 bucket.-joEncryption :: Lens' JobOutput (Maybe Encryption)-joEncryption = lens _joEncryption (\s a -> s { _joEncryption = a })---- | File size of the output file, in bytes.-joFileSize :: Lens' JobOutput (Maybe Integer)-joFileSize = lens _joFileSize (\s a -> s { _joFileSize = a })---- | Frame rate of the output file, in frames per second.-joFrameRate :: Lens' JobOutput (Maybe Text)-joFrameRate = lens _joFrameRate (\s a -> s { _joFrameRate = a })---- | Height of the output file, in pixels.-joHeight :: Lens' JobOutput (Maybe Int)-joHeight = lens _joHeight (\s a -> s { _joHeight = 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 })---- | 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 })---- | 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 })---- | 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 })---- | (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.-joSegmentDuration :: Lens' JobOutput (Maybe Text)-joSegmentDuration =- lens _joSegmentDuration (\s a -> s { _joSegmentDuration = 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 })---- | Information that further explains 'Status'.-joStatusDetail :: Lens' JobOutput (Maybe Text)-joStatusDetail = lens _joStatusDetail (\s a -> s { _joStatusDetail = 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 })---- | 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.------ 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 })---- | 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 will cover--- the first one, the third one will cover the second, and the fourth one will--- cover the third.-joWatermarks :: Lens' JobOutput [JobWatermark]-joWatermarks = lens _joWatermarks (\s a -> s { _joWatermarks = a }) . _List---- | Specifies the width of the output file in pixels.-joWidth :: Lens' JobOutput (Maybe Int)-joWidth = lens _joWidth (\s a -> s { _joWidth = a })--instance FromJSON JobOutput where- parseJSON = withObject "JobOutput" $ \o -> JobOutput- <$> o .:? "AlbumArt"- <*> o .:? "AppliedColorSpaceConversion"- <*> o .:? "Captions"- <*> o .:? "Composition" .!= mempty- <*> o .:? "Duration"- <*> o .:? "DurationMillis"- <*> o .:? "Encryption"- <*> o .:? "FileSize"- <*> o .:? "FrameRate"- <*> o .:? "Height"- <*> o .:? "Id"- <*> o .:? "Key"- <*> o .:? "PresetId"- <*> o .:? "Rotate"- <*> o .:? "SegmentDuration"- <*> o .:? "Status"- <*> o .:? "StatusDetail"- <*> o .:? "ThumbnailEncryption"- <*> o .:? "ThumbnailPattern"- <*> o .:? "Watermarks" .!= mempty- <*> o .:? "Width"--instance ToJSON JobOutput where- toJSON JobOutput{..} = object- [ "Id" .= _joId- , "Key" .= _joKey- , "ThumbnailPattern" .= _joThumbnailPattern- , "ThumbnailEncryption" .= _joThumbnailEncryption- , "Rotate" .= _joRotate- , "PresetId" .= _joPresetId- , "SegmentDuration" .= _joSegmentDuration- , "Status" .= _joStatus- , "StatusDetail" .= _joStatusDetail- , "Duration" .= _joDuration- , "Width" .= _joWidth- , "Height" .= _joHeight- , "FrameRate" .= _joFrameRate- , "FileSize" .= _joFileSize- , "DurationMillis" .= _joDurationMillis- , "Watermarks" .= _joWatermarks- , "AlbumArt" .= _joAlbumArt- , "Composition" .= _joComposition- , "Captions" .= _joCaptions- , "Encryption" .= _joEncryption- , "AppliedColorSpaceConversion" .= _joAppliedColorSpaceConversion- ]--data Job' = Job'- { _jArn :: Maybe Text- , _jId :: Text- , _jInput :: JobInput- , _jOutput :: Maybe JobOutput- , _jOutputKeyPrefix :: Text- , _jOutputs :: List "Outputs" JobOutput- , _jPipelineId :: Text- , _jPlaylists :: List "Playlists" Playlist- , _jStatus :: Text- , _jTiming :: Maybe Timing- , _jUserMetadata :: Map Text Text- } deriving (Eq, Read, Show)---- | 'Job'' constructor.------ The fields accessible through corresponding lenses are:------ * 'jArn' @::@ 'Maybe' 'Text'------ * 'jId' @::@ 'Text'------ * 'jInput' @::@ 'JobInput'------ * 'jOutput' @::@ 'Maybe' 'JobOutput'------ * 'jOutputKeyPrefix' @::@ 'Text'------ * 'jOutputs' @::@ ['JobOutput']------ * 'jPipelineId' @::@ 'Text'------ * 'jPlaylists' @::@ ['Playlist']------ * 'jStatus' @::@ 'Text'------ * 'jTiming' @::@ 'Maybe' 'Timing'------ * 'jUserMetadata' @::@ 'HashMap' 'Text' 'Text'----job :: Text -- ^ 'jId'- -> Text -- ^ 'jPipelineId'- -> JobInput -- ^ 'jInput'- -> Text -- ^ 'jOutputKeyPrefix'- -> Text -- ^ 'jStatus'- -> Job'-job p1 p2 p3 p4 p5 = Job'- { _jId = p1- , _jPipelineId = p2- , _jInput = p3- , _jOutputKeyPrefix = p4- , _jStatus = p5- , _jArn = Nothing- , _jOutput = Nothing- , _jOutputs = mempty- , _jPlaylists = mempty- , _jUserMetadata = mempty- , _jTiming = Nothing- }---- | The Amazon Resource Name (ARN) for the job.-jArn :: Lens' Job' (Maybe Text)-jArn = lens _jArn (\s a -> s { _jArn = 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' Text-jId = lens _jId (\s a -> s { _jId = a })---- | A section of the request or response body that provides information about--- the file that is being transcoded.-jInput :: Lens' Job' JobInput-jInput = lens _jInput (\s a -> s { _jInput = a })---- | 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.------ 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 })---- | 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' Text-jOutputKeyPrefix = lens _jOutputKeyPrefix (\s a -> s { _jOutputKeyPrefix = a })---- | 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 }) . _List---- | 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' Text-jPipelineId = lens _jPipelineId (\s a -> s { _jPipelineId = a })---- | 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 }) . _List---- | The status of the job: 'Submitted', 'Progressing', 'Complete', 'Canceled', or 'Error'.-jStatus :: Lens' Job' Text-jStatus = lens _jStatus (\s a -> s { _jStatus = a })---- | Details about the timing of a job.-jTiming :: Lens' Job' (Maybe Timing)-jTiming = lens _jTiming (\s a -> s { _jTiming = 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--- will be 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 }) . _Map--instance FromJSON Job' where- parseJSON = withObject "Job'" $ \o -> Job'- <$> o .:? "Arn"- <*> o .: "Id"- <*> o .: "Input"- <*> o .:? "Output"- <*> o .: "OutputKeyPrefix"- <*> o .:? "Outputs" .!= mempty- <*> o .: "PipelineId"- <*> o .:? "Playlists" .!= mempty- <*> o .: "Status"- <*> o .:? "Timing"- <*> o .:? "UserMetadata" .!= mempty--instance ToJSON Job' where- toJSON Job'{..} = object- [ "Id" .= _jId- , "Arn" .= _jArn- , "PipelineId" .= _jPipelineId- , "Input" .= _jInput- , "Output" .= _jOutput- , "Outputs" .= _jOutputs- , "OutputKeyPrefix" .= _jOutputKeyPrefix- , "Playlists" .= _jPlaylists- , "Status" .= _jStatus- , "UserMetadata" .= _jUserMetadata- , "Timing" .= _jTiming- ]--data CaptionSource = CaptionSource- { _csEncryption :: Maybe Encryption- , _csKey :: Maybe Text- , _csLabel :: Maybe Text- , _csLanguage :: Maybe Text- , _csTimeOffset :: Maybe Text- } deriving (Eq, Read, Show)---- | 'CaptionSource' constructor.------ The fields accessible through corresponding lenses are:------ * 'csEncryption' @::@ 'Maybe' 'Encryption'------ * 'csKey' @::@ 'Maybe' 'Text'------ * 'csLabel' @::@ 'Maybe' 'Text'------ * 'csLanguage' @::@ 'Maybe' 'Text'------ * 'csTimeOffset' @::@ 'Maybe' 'Text'----captionSource :: CaptionSource-captionSource = CaptionSource- { _csKey = Nothing- , _csLanguage = Nothing- , _csTimeOffset = Nothing- , _csLabel = Nothing- , _csEncryption = Nothing- }---- | The encryption settings, if any, that you want Elastic Transcoder to apply to--- your caption sources.-csEncryption :: Lens' CaptionSource (Maybe Encryption)-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 })---- | 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 })---- | A string that specifies the language of the caption. 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 })---- | 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 })--instance FromJSON CaptionSource where- parseJSON = withObject "CaptionSource" $ \o -> CaptionSource- <$> o .:? "Encryption"- <*> o .:? "Key"- <*> o .:? "Label"- <*> o .:? "Language"- <*> o .:? "TimeOffset"--instance ToJSON CaptionSource where- toJSON CaptionSource{..} = object- [ "Key" .= _csKey- , "Language" .= _csLanguage- , "TimeOffset" .= _csTimeOffset- , "Label" .= _csLabel- , "Encryption" .= _csEncryption- ]--data Artwork = Artwork- { _aAlbumArtFormat :: Maybe Text- , _aEncryption :: Maybe Encryption- , _aInputKey :: Maybe Text- , _aMaxHeight :: Maybe Text- , _aMaxWidth :: Maybe Text- , _aPaddingPolicy :: Maybe Text- , _aSizingPolicy :: Maybe Text- } deriving (Eq, Read, Show)---- | 'Artwork' constructor.------ The fields accessible through corresponding lenses are:------ * 'aAlbumArtFormat' @::@ 'Maybe' 'Text'------ * 'aEncryption' @::@ 'Maybe' 'Encryption'------ * 'aInputKey' @::@ 'Maybe' 'Text'------ * 'aMaxHeight' @::@ 'Maybe' 'Text'------ * 'aMaxWidth' @::@ 'Maybe' 'Text'------ * 'aPaddingPolicy' @::@ 'Maybe' 'Text'------ * 'aSizingPolicy' @::@ 'Maybe' 'Text'----artwork :: Artwork-artwork = Artwork- { _aInputKey = Nothing- , _aMaxWidth = Nothing- , _aMaxHeight = Nothing- , _aSizingPolicy = Nothing- , _aPaddingPolicy = Nothing- , _aAlbumArtFormat = Nothing- , _aEncryption = Nothing- }---- | 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 })---- | 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 })---- | 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 })---- | 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 })---- | 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 })---- | 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 })---- | 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 })--instance FromJSON Artwork where- parseJSON = withObject "Artwork" $ \o -> Artwork- <$> o .:? "AlbumArtFormat"- <*> o .:? "Encryption"- <*> o .:? "InputKey"- <*> o .:? "MaxHeight"- <*> o .:? "MaxWidth"- <*> o .:? "PaddingPolicy"- <*> o .:? "SizingPolicy"--instance ToJSON Artwork where- toJSON Artwork{..} = object- [ "InputKey" .= _aInputKey- , "MaxWidth" .= _aMaxWidth- , "MaxHeight" .= _aMaxHeight- , "SizingPolicy" .= _aSizingPolicy- , "PaddingPolicy" .= _aPaddingPolicy- , "AlbumArtFormat" .= _aAlbumArtFormat- , "Encryption" .= _aEncryption- ]--data TimeSpan = TimeSpan- { _tsDuration :: Maybe Text- , _tsStartTime :: Maybe Text- } deriving (Eq, Ord, Read, Show)---- | 'TimeSpan' constructor.------ The fields accessible through corresponding lenses are:------ * 'tsDuration' @::@ 'Maybe' 'Text'------ * 'tsStartTime' @::@ 'Maybe' 'Text'----timeSpan :: TimeSpan-timeSpan = TimeSpan- { _tsStartTime = Nothing- , _tsDuration = Nothing- }---- | 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 })---- | 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 })--instance FromJSON TimeSpan where- parseJSON = withObject "TimeSpan" $ \o -> TimeSpan- <$> o .:? "Duration"- <*> o .:? "StartTime"--instance ToJSON TimeSpan where- toJSON TimeSpan{..} = object- [ "StartTime" .= _tsStartTime- , "Duration" .= _tsDuration- ]--data CreateJobOutput = CreateJobOutput- { _cjoAlbumArt :: Maybe JobAlbumArt- , _cjoCaptions :: Maybe Captions- , _cjoComposition :: List "Composition" Clip- , _cjoEncryption :: Maybe Encryption- , _cjoKey :: Maybe Text- , _cjoPresetId :: Maybe Text- , _cjoRotate :: Maybe Text- , _cjoSegmentDuration :: Maybe Text- , _cjoThumbnailEncryption :: Maybe Encryption- , _cjoThumbnailPattern :: Maybe Text- , _cjoWatermarks :: List "Watermarks" JobWatermark- } deriving (Eq, Read, Show)---- | 'CreateJobOutput' constructor.------ The fields accessible through corresponding lenses are:------ * 'cjoAlbumArt' @::@ 'Maybe' 'JobAlbumArt'------ * 'cjoCaptions' @::@ 'Maybe' 'Captions'------ * 'cjoComposition' @::@ ['Clip']------ * 'cjoEncryption' @::@ 'Maybe' 'Encryption'------ * 'cjoKey' @::@ 'Maybe' 'Text'------ * 'cjoPresetId' @::@ 'Maybe' 'Text'------ * 'cjoRotate' @::@ 'Maybe' 'Text'------ * 'cjoSegmentDuration' @::@ 'Maybe' 'Text'------ * 'cjoThumbnailEncryption' @::@ 'Maybe' 'Encryption'------ * 'cjoThumbnailPattern' @::@ 'Maybe' 'Text'------ * 'cjoWatermarks' @::@ ['JobWatermark']----createJobOutput :: CreateJobOutput-createJobOutput = CreateJobOutput- { _cjoKey = Nothing- , _cjoThumbnailPattern = Nothing- , _cjoThumbnailEncryption = Nothing- , _cjoRotate = Nothing- , _cjoPresetId = Nothing- , _cjoSegmentDuration = Nothing- , _cjoWatermarks = mempty- , _cjoAlbumArt = Nothing- , _cjoComposition = mempty- , _cjoCaptions = Nothing- , _cjoEncryption = Nothing- }---- | 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 })---- | 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 })---- | 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 }) . _List---- | 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 })---- | 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 })---- | 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 })---- | 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 })---- | (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 })---- | 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 })---- | 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.------ 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 })---- | 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 }) . _List--instance FromJSON CreateJobOutput where- parseJSON = withObject "CreateJobOutput" $ \o -> CreateJobOutput- <$> o .:? "AlbumArt"- <*> o .:? "Captions"- <*> o .:? "Composition" .!= mempty- <*> o .:? "Encryption"- <*> o .:? "Key"- <*> o .:? "PresetId"- <*> o .:? "Rotate"- <*> o .:? "SegmentDuration"- <*> o .:? "ThumbnailEncryption"- <*> o .:? "ThumbnailPattern"- <*> o .:? "Watermarks" .!= mempty--instance ToJSON CreateJobOutput where- toJSON CreateJobOutput{..} = object- [ "Key" .= _cjoKey- , "ThumbnailPattern" .= _cjoThumbnailPattern- , "ThumbnailEncryption" .= _cjoThumbnailEncryption- , "Rotate" .= _cjoRotate- , "PresetId" .= _cjoPresetId- , "SegmentDuration" .= _cjoSegmentDuration- , "Watermarks" .= _cjoWatermarks- , "AlbumArt" .= _cjoAlbumArt- , "Composition" .= _cjoComposition- , "Captions" .= _cjoCaptions- , "Encryption" .= _cjoEncryption- ]--data AudioParameters = AudioParameters- { _apAudioPackingMode :: Maybe Text- , _apBitRate :: Maybe Text- , _apChannels :: Maybe Text- , _apCodec :: Maybe Text- , _apCodecOptions :: Maybe AudioCodecOptions- , _apSampleRate :: Maybe Text- } deriving (Eq, Read, Show)---- | 'AudioParameters' constructor.------ The fields accessible through corresponding lenses are:------ * 'apAudioPackingMode' @::@ 'Maybe' 'Text'------ * 'apBitRate' @::@ 'Maybe' 'Text'------ * 'apChannels' @::@ 'Maybe' 'Text'------ * 'apCodec' @::@ 'Maybe' 'Text'------ * 'apCodecOptions' @::@ 'Maybe' 'AudioCodecOptions'------ * 'apSampleRate' @::@ 'Maybe' 'Text'----audioParameters :: AudioParameters-audioParameters = AudioParameters- { _apCodec = Nothing- , _apSampleRate = Nothing- , _apBitRate = Nothing- , _apChannels = Nothing- , _apAudioPackingMode = Nothing- , _apCodecOptions = Nothing- }---- | 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 })---- | 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 })---- | 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 })---- | 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 })---- | 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 })---- | 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 })--instance FromJSON AudioParameters where- parseJSON = withObject "AudioParameters" $ \o -> AudioParameters- <$> o .:? "AudioPackingMode"- <*> o .:? "BitRate"- <*> o .:? "Channels"- <*> o .:? "Codec"- <*> o .:? "CodecOptions"- <*> o .:? "SampleRate"--instance ToJSON AudioParameters where- toJSON AudioParameters{..} = object- [ "Codec" .= _apCodec- , "SampleRate" .= _apSampleRate- , "BitRate" .= _apBitRate- , "Channels" .= _apChannels- , "AudioPackingMode" .= _apAudioPackingMode- , "CodecOptions" .= _apCodecOptions- ]--data Thumbnails = Thumbnails- { _tAspectRatio :: Maybe Text- , _tFormat :: Maybe Text- , _tInterval :: Maybe Text- , _tMaxHeight :: Maybe Text- , _tMaxWidth :: Maybe Text- , _tPaddingPolicy :: Maybe Text- , _tResolution :: Maybe Text- , _tSizingPolicy :: Maybe Text- } deriving (Eq, Ord, Read, Show)---- | 'Thumbnails' constructor.------ The fields accessible through corresponding lenses are:------ * 'tAspectRatio' @::@ 'Maybe' 'Text'------ * 'tFormat' @::@ 'Maybe' 'Text'------ * 'tInterval' @::@ 'Maybe' 'Text'------ * 'tMaxHeight' @::@ 'Maybe' 'Text'------ * 'tMaxWidth' @::@ 'Maybe' 'Text'------ * 'tPaddingPolicy' @::@ 'Maybe' 'Text'------ * 'tResolution' @::@ 'Maybe' 'Text'------ * 'tSizingPolicy' @::@ 'Maybe' 'Text'----thumbnails :: Thumbnails-thumbnails = Thumbnails- { _tFormat = Nothing- , _tInterval = Nothing- , _tResolution = Nothing- , _tAspectRatio = Nothing- , _tMaxWidth = Nothing- , _tMaxHeight = Nothing- , _tSizingPolicy = Nothing- , _tPaddingPolicy = Nothing- }---- | 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 })---- | 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 })---- | The approximate number of seconds between thumbnails. Specify an integer--- value.-tInterval :: Lens' Thumbnails (Maybe Text)-tInterval = lens _tInterval (\s a -> s { _tInterval = 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 })---- | 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 })---- | 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 })---- | 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 })---- | 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 })--instance FromJSON Thumbnails where- parseJSON = withObject "Thumbnails" $ \o -> Thumbnails- <$> o .:? "AspectRatio"- <*> o .:? "Format"- <*> o .:? "Interval"- <*> o .:? "MaxHeight"- <*> o .:? "MaxWidth"- <*> o .:? "PaddingPolicy"- <*> o .:? "Resolution"- <*> o .:? "SizingPolicy"--instance ToJSON Thumbnails where- toJSON Thumbnails{..} = object- [ "Format" .= _tFormat- , "Interval" .= _tInterval- , "Resolution" .= _tResolution- , "AspectRatio" .= _tAspectRatio- , "MaxWidth" .= _tMaxWidth- , "MaxHeight" .= _tMaxHeight- , "SizingPolicy" .= _tSizingPolicy- , "PaddingPolicy" .= _tPaddingPolicy- ]--data Encryption = Encryption- { _eInitializationVector :: Maybe Text- , _eKey :: Maybe Text- , _eKeyMd5 :: Maybe Text- , _eMode :: Maybe Text- } deriving (Eq, Ord, Read, Show)---- | 'Encryption' constructor.------ The fields accessible through corresponding lenses are:------ * 'eInitializationVector' @::@ 'Maybe' 'Text'------ * 'eKey' @::@ 'Maybe' 'Text'------ * 'eKeyMd5' @::@ 'Maybe' 'Text'------ * 'eMode' @::@ 'Maybe' 'Text'----encryption :: Encryption-encryption = Encryption- { _eMode = Nothing- , _eKey = Nothing- , _eKeyMd5 = Nothing- , _eInitializationVector = Nothing- }---- | 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 })---- | 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 })---- | 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 })---- | 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 will fail the decryption process.------ For all three AES options, you must provide the following settings, which--- must be base64-encoded:------ Key------ Key MD5------ Initialization Vector------ 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 })--instance FromJSON Encryption where- parseJSON = withObject "Encryption" $ \o -> Encryption- <$> o .:? "InitializationVector"- <*> o .:? "Key"- <*> o .:? "KeyMd5"- <*> o .:? "Mode"--instance ToJSON Encryption where- toJSON Encryption{..} = object- [ "Mode" .= _eMode- , "Key" .= _eKey- , "KeyMd5" .= _eKeyMd5- , "InitializationVector" .= _eInitializationVector- ]--data JobAlbumArt = JobAlbumArt- { _jaaArtwork :: List "Artwork" Artwork- , _jaaMergePolicy :: Maybe Text- } deriving (Eq, Read, Show)---- | 'JobAlbumArt' constructor.------ The fields accessible through corresponding lenses are:------ * 'jaaArtwork' @::@ ['Artwork']------ * 'jaaMergePolicy' @::@ 'Maybe' 'Text'----jobAlbumArt :: JobAlbumArt-jobAlbumArt = JobAlbumArt- { _jaaMergePolicy = Nothing- , _jaaArtwork = mempty- }---- | 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 }) . _List---- | A policy that determines how Elastic Transcoder will handle the existence of--- multiple album artwork files.------ 'Replace:' The specified album art will replace any existing album art. 'Prepend:' The specified album art will be placed in front of any existing album art. 'Append:' The specified album art will be placed after any existing album art. 'Fallback:' If the original input file contains artwork, Elastic Transcoder will use--- that artwork for the output. If the original input does not contain artwork,--- Elastic Transcoder will use the specified album art file.-jaaMergePolicy :: Lens' JobAlbumArt (Maybe Text)-jaaMergePolicy = lens _jaaMergePolicy (\s a -> s { _jaaMergePolicy = a })--instance FromJSON JobAlbumArt where- parseJSON = withObject "JobAlbumArt" $ \o -> JobAlbumArt- <$> o .:? "Artwork" .!= mempty- <*> o .:? "MergePolicy"--instance ToJSON JobAlbumArt where- toJSON JobAlbumArt{..} = object- [ "MergePolicy" .= _jaaMergePolicy- , "Artwork" .= _jaaArtwork- ]--data DetectedProperties = DetectedProperties- { _dpDurationMillis :: Maybe Integer- , _dpFileSize :: Maybe Integer- , _dpFrameRate :: Maybe Text- , _dpHeight :: Maybe Int- , _dpWidth :: Maybe Int- } deriving (Eq, Ord, Read, Show)---- | 'DetectedProperties' constructor.------ The fields accessible through corresponding lenses are:------ * 'dpDurationMillis' @::@ 'Maybe' 'Integer'------ * 'dpFileSize' @::@ 'Maybe' 'Integer'------ * 'dpFrameRate' @::@ 'Maybe' 'Text'------ * 'dpHeight' @::@ 'Maybe' 'Int'------ * 'dpWidth' @::@ 'Maybe' 'Int'----detectedProperties :: DetectedProperties-detectedProperties = DetectedProperties- { _dpWidth = Nothing- , _dpHeight = Nothing- , _dpFrameRate = Nothing- , _dpFileSize = Nothing- , _dpDurationMillis = Nothing- }---- | The detected duration of the input file, in milliseconds.-dpDurationMillis :: Lens' DetectedProperties (Maybe Integer)-dpDurationMillis = lens _dpDurationMillis (\s a -> s { _dpDurationMillis = a })---- | The detected file size of the input file, in bytes.-dpFileSize :: Lens' DetectedProperties (Maybe Integer)-dpFileSize = lens _dpFileSize (\s a -> s { _dpFileSize = 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 })---- | The detected height of the input file, in pixels.-dpHeight :: Lens' DetectedProperties (Maybe Int)-dpHeight = lens _dpHeight (\s a -> s { _dpHeight = a })---- | The detected width of the input file, in pixels.-dpWidth :: Lens' DetectedProperties (Maybe Int)-dpWidth = lens _dpWidth (\s a -> s { _dpWidth = a })--instance FromJSON DetectedProperties where- parseJSON = withObject "DetectedProperties" $ \o -> DetectedProperties- <$> o .:? "DurationMillis"- <*> o .:? "FileSize"- <*> o .:? "FrameRate"- <*> o .:? "Height"- <*> o .:? "Width"--instance ToJSON DetectedProperties where- toJSON DetectedProperties{..} = object- [ "Width" .= _dpWidth- , "Height" .= _dpHeight- , "FrameRate" .= _dpFrameRate- , "FileSize" .= _dpFileSize- , "DurationMillis" .= _dpDurationMillis- ]--data JobWatermark = JobWatermark- { _jwEncryption :: Maybe Encryption- , _jwInputKey :: Maybe Text- , _jwPresetWatermarkId :: Maybe Text- } deriving (Eq, Read, Show)---- | 'JobWatermark' constructor.------ The fields accessible through corresponding lenses are:------ * 'jwEncryption' @::@ 'Maybe' 'Encryption'------ * 'jwInputKey' @::@ 'Maybe' 'Text'------ * 'jwPresetWatermarkId' @::@ 'Maybe' 'Text'----jobWatermark :: JobWatermark-jobWatermark = JobWatermark- { _jwPresetWatermarkId = Nothing- , _jwInputKey = Nothing- , _jwEncryption = Nothing- }---- | 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 })---- | 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 })---- | 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 })--instance FromJSON JobWatermark where- parseJSON = withObject "JobWatermark" $ \o -> JobWatermark- <$> o .:? "Encryption"- <*> o .:? "InputKey"- <*> o .:? "PresetWatermarkId"--instance ToJSON JobWatermark where- toJSON JobWatermark{..} = object- [ "PresetWatermarkId" .= _jwPresetWatermarkId- , "InputKey" .= _jwInputKey- , "Encryption" .= _jwEncryption- ]--data Pipeline = Pipeline- { _pArn :: Maybe Text- , _pAwsKmsKeyArn :: Maybe Text- , _pContentConfig :: Maybe PipelineOutputConfig- , _pId :: Maybe Text- , _pInputBucket :: Maybe Text- , _pName :: Maybe Text- , _pNotifications :: Maybe Notifications- , _pOutputBucket :: Maybe Text- , _pRole :: Maybe Text- , _pStatus :: Maybe Text- , _pThumbnailConfig :: Maybe PipelineOutputConfig- } deriving (Eq, Read, Show)---- | 'Pipeline' constructor.------ The fields accessible through corresponding lenses are:------ * 'pArn' @::@ 'Maybe' 'Text'------ * 'pAwsKmsKeyArn' @::@ 'Maybe' 'Text'------ * 'pContentConfig' @::@ 'Maybe' 'PipelineOutputConfig'------ * 'pId' @::@ 'Maybe' 'Text'------ * 'pInputBucket' @::@ 'Maybe' 'Text'------ * 'pName' @::@ 'Maybe' 'Text'------ * 'pNotifications' @::@ 'Maybe' 'Notifications'------ * 'pOutputBucket' @::@ 'Maybe' 'Text'------ * 'pRole' @::@ 'Maybe' 'Text'------ * 'pStatus' @::@ 'Maybe' 'Text'------ * 'pThumbnailConfig' @::@ 'Maybe' 'PipelineOutputConfig'----pipeline :: Pipeline-pipeline = Pipeline- { _pId = Nothing- , _pArn = Nothing- , _pName = Nothing- , _pStatus = Nothing- , _pInputBucket = Nothing- , _pOutputBucket = Nothing- , _pRole = Nothing- , _pAwsKmsKeyArn = Nothing- , _pNotifications = Nothing- , _pContentConfig = Nothing- , _pThumbnailConfig = Nothing- }---- | The Amazon Resource Name (ARN) for the pipeline.-pArn :: Lens' Pipeline (Maybe Text)-pArn = lens _pArn (\s a -> s { _pArn = 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'.-pAwsKmsKeyArn :: Lens' Pipeline (Maybe Text)-pAwsKmsKeyArn = lens _pAwsKmsKeyArn (\s a -> s { _pAwsKmsKeyArn = 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.-pContentConfig :: Lens' Pipeline (Maybe PipelineOutputConfig)-pContentConfig = lens _pContentConfig (\s a -> s { _pContentConfig = 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.-pId :: Lens' Pipeline (Maybe Text)-pId = lens _pId (\s a -> s { _pId = 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.-pInputBucket :: Lens' Pipeline (Maybe Text)-pInputBucket = lens _pInputBucket (\s a -> s { _pInputBucket = 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-pName :: Lens' Pipeline (Maybe Text)-pName = lens _pName (\s a -> s { _pName = a })---- | The Amazon Simple Notification Service (Amazon SNS) topic that you want to--- notify to report job status.------ 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.-pNotifications :: Lens' Pipeline (Maybe Notifications)-pNotifications = lens _pNotifications (\s a -> s { _pNotifications = 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'.-pOutputBucket :: Lens' Pipeline (Maybe Text)-pOutputBucket = lens _pOutputBucket (\s a -> s { _pOutputBucket = a })---- | The IAM Amazon Resource Name (ARN) for the role that Elastic Transcoder uses--- to transcode jobs for this pipeline.-pRole :: Lens' Pipeline (Maybe Text)-pRole = lens _pRole (\s a -> s { _pRole = a })---- | The current status of the pipeline:------ 'Active': The pipeline is processing jobs. 'Paused': The pipeline is not--- currently processing jobs.-pStatus :: Lens' Pipeline (Maybe Text)-pStatus = lens _pStatus (\s a -> s { _pStatus = 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. 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.-pThumbnailConfig :: Lens' Pipeline (Maybe PipelineOutputConfig)-pThumbnailConfig = lens _pThumbnailConfig (\s a -> s { _pThumbnailConfig = a })--instance FromJSON Pipeline where- parseJSON = withObject "Pipeline" $ \o -> Pipeline- <$> o .:? "Arn"- <*> o .:? "AwsKmsKeyArn"- <*> o .:? "ContentConfig"- <*> o .:? "Id"- <*> o .:? "InputBucket"- <*> o .:? "Name"- <*> o .:? "Notifications"- <*> o .:? "OutputBucket"- <*> o .:? "Role"- <*> o .:? "Status"- <*> o .:? "ThumbnailConfig"--instance ToJSON Pipeline where- toJSON Pipeline{..} = object- [ "Id" .= _pId- , "Arn" .= _pArn- , "Name" .= _pName- , "Status" .= _pStatus- , "InputBucket" .= _pInputBucket- , "OutputBucket" .= _pOutputBucket- , "Role" .= _pRole- , "AwsKmsKeyArn" .= _pAwsKmsKeyArn- , "Notifications" .= _pNotifications- , "ContentConfig" .= _pContentConfig- , "ThumbnailConfig" .= _pThumbnailConfig- ]--data Warning = Warning- { _wCode :: Maybe Text- , _wMessage :: Maybe Text- } deriving (Eq, Ord, Read, Show)---- | 'Warning' constructor.------ The fields accessible through corresponding lenses are:------ * 'wCode' @::@ 'Maybe' 'Text'------ * 'wMessage' @::@ 'Maybe' 'Text'----warning :: Warning-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 })---- | The message explaining what resources are in a different region from the--- pipeline.------ Note: AWS KMS keys must be in the same region as the pipeline.-wMessage :: Lens' Warning (Maybe Text)-wMessage = lens _wMessage (\s a -> s { _wMessage = a })--instance FromJSON Warning where- parseJSON = withObject "Warning" $ \o -> Warning- <$> o .:? "Code"- <*> o .:? "Message"--instance ToJSON Warning where- toJSON Warning{..} = object- [ "Code" .= _wCode- , "Message" .= _wMessage- ]--data Preset = Preset- { _p1Arn :: Maybe Text- , _p1Audio :: Maybe AudioParameters- , _p1Container :: Maybe Text- , _p1Description :: Maybe Text- , _p1Id :: Maybe Text- , _p1Name :: Maybe Text- , _p1Thumbnails :: Maybe Thumbnails- , _p1Type :: Maybe Text- , _p1Video :: Maybe VideoParameters- } deriving (Eq, Read, Show)---- | 'Preset' constructor.------ The fields accessible through corresponding lenses are:------ * 'p1Arn' @::@ 'Maybe' 'Text'------ * 'p1Audio' @::@ 'Maybe' 'AudioParameters'------ * 'p1Container' @::@ 'Maybe' 'Text'------ * 'p1Description' @::@ 'Maybe' 'Text'------ * 'p1Id' @::@ 'Maybe' 'Text'------ * 'p1Name' @::@ 'Maybe' 'Text'------ * 'p1Thumbnails' @::@ 'Maybe' 'Thumbnails'------ * 'p1Type' @::@ 'Maybe' 'Text'------ * 'p1Video' @::@ 'Maybe' 'VideoParameters'----preset :: Preset-preset = Preset- { _p1Id = Nothing- , _p1Arn = Nothing- , _p1Name = Nothing- , _p1Description = Nothing- , _p1Container = Nothing- , _p1Audio = Nothing- , _p1Video = Nothing- , _p1Thumbnails = Nothing- , _p1Type = Nothing- }---- | The Amazon Resource Name (ARN) for the preset.-p1Arn :: Lens' Preset (Maybe Text)-p1Arn = lens _p1Arn (\s a -> s { _p1Arn = a })---- | A section of the response body that provides information about the audio--- preset values.-p1Audio :: Lens' Preset (Maybe AudioParameters)-p1Audio = lens _p1Audio (\s a -> s { _p1Audio = a })---- | The container type for the output file. Valid values include 'flac', 'flv', 'fmp4', 'gif', 'mp3', 'mp4', 'mpg', 'mxf', 'oga', 'ogg', 'ts', and 'webm'.-p1Container :: Lens' Preset (Maybe Text)-p1Container = lens _p1Container (\s a -> s { _p1Container = a })---- | A description of the preset.-p1Description :: Lens' Preset (Maybe Text)-p1Description = lens _p1Description (\s a -> s { _p1Description = a })---- | Identifier for the new preset. You use this value to get settings for the--- preset or to delete it.-p1Id :: Lens' Preset (Maybe Text)-p1Id = lens _p1Id (\s a -> s { _p1Id = a })---- | The name of the preset.-p1Name :: Lens' Preset (Maybe Text)-p1Name = lens _p1Name (\s a -> s { _p1Name = a })---- | A section of the response body that provides information about the thumbnail--- preset values, if any.-p1Thumbnails :: Lens' Preset (Maybe Thumbnails)-p1Thumbnails = lens _p1Thumbnails (\s a -> s { _p1Thumbnails = a })---- | Whether the preset is a default preset provided by Elastic Transcoder ('System') or a preset that you have defined (--- 'Custom').-p1Type :: Lens' Preset (Maybe Text)-p1Type = lens _p1Type (\s a -> s { _p1Type = a })---- | A section of the response body that provides information about the video--- preset values.-p1Video :: Lens' Preset (Maybe VideoParameters)-p1Video = lens _p1Video (\s a -> s { _p1Video = a })--instance FromJSON Preset where- parseJSON = withObject "Preset" $ \o -> Preset- <$> o .:? "Arn"- <*> o .:? "Audio"- <*> o .:? "Container"- <*> o .:? "Description"- <*> o .:? "Id"- <*> o .:? "Name"- <*> o .:? "Thumbnails"- <*> o .:? "Type"- <*> o .:? "Video"--instance ToJSON Preset where- toJSON Preset{..} = object- [ "Id" .= _p1Id- , "Arn" .= _p1Arn- , "Name" .= _p1Name- , "Description" .= _p1Description- , "Container" .= _p1Container- , "Audio" .= _p1Audio- , "Video" .= _p1Video- , "Thumbnails" .= _p1Thumbnails- , "Type" .= _p1Type- ]--data CaptionFormat = CaptionFormat- { _cfEncryption :: Maybe Encryption- , _cfFormat :: Maybe Text- , _cfPattern :: Maybe Text- } deriving (Eq, Read, Show)---- | 'CaptionFormat' constructor.------ The fields accessible through corresponding lenses are:------ * 'cfEncryption' @::@ 'Maybe' 'Encryption'------ * 'cfFormat' @::@ 'Maybe' 'Text'------ * 'cfPattern' @::@ 'Maybe' 'Text'----captionFormat :: CaptionFormat-captionFormat = CaptionFormat- { _cfFormat = Nothing- , _cfPattern = Nothing- , _cfEncryption = Nothing- }---- | 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 })---- | 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 })---- | 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 will be Sydney-en-sunrise00000.srt.-cfPattern :: Lens' CaptionFormat (Maybe Text)-cfPattern = lens _cfPattern (\s a -> s { _cfPattern = a })--instance FromJSON CaptionFormat where- parseJSON = withObject "CaptionFormat" $ \o -> CaptionFormat- <$> o .:? "Encryption"- <*> o .:? "Format"- <*> o .:? "Pattern"--instance ToJSON CaptionFormat where- toJSON CaptionFormat{..} = object- [ "Format" .= _cfFormat- , "Pattern" .= _cfPattern- , "Encryption" .= _cfEncryption- ]--data HlsContentProtection = HlsContentProtection- { _hcpInitializationVector :: Maybe Text- , _hcpKey :: Maybe Text- , _hcpKeyMd5 :: Maybe Text- , _hcpKeyStoragePolicy :: Maybe Text- , _hcpLicenseAcquisitionUrl :: Maybe Text- , _hcpMethod :: Maybe Text- } deriving (Eq, Ord, Read, Show)---- | 'HlsContentProtection' constructor.------ The fields accessible through corresponding lenses are:------ * 'hcpInitializationVector' @::@ 'Maybe' 'Text'------ * 'hcpKey' @::@ 'Maybe' 'Text'------ * 'hcpKeyMd5' @::@ 'Maybe' 'Text'------ * 'hcpKeyStoragePolicy' @::@ 'Maybe' 'Text'------ * 'hcpLicenseAcquisitionUrl' @::@ 'Maybe' 'Text'------ * 'hcpMethod' @::@ 'Maybe' 'Text'----hlsContentProtection :: HlsContentProtection-hlsContentProtection = HlsContentProtection- { _hcpMethod = Nothing- , _hcpKey = Nothing- , _hcpKeyMd5 = Nothing- , _hcpInitializationVector = Nothing- , _hcpLicenseAcquisitionUrl = Nothing- , _hcpKeyStoragePolicy = Nothing- }---- | 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 })---- | 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 })---- | 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 })---- | 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 })---- | 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 })---- | The content protection method for your output. The only valid value is: 'aes-128'.------ This value will be 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 })--instance FromJSON HlsContentProtection where- parseJSON = withObject "HlsContentProtection" $ \o -> HlsContentProtection- <$> o .:? "InitializationVector"- <*> o .:? "Key"- <*> o .:? "KeyMd5"- <*> o .:? "KeyStoragePolicy"- <*> o .:? "LicenseAcquisitionUrl"- <*> o .:? "Method"--instance ToJSON HlsContentProtection where- toJSON HlsContentProtection{..} = object- [ "Method" .= _hcpMethod- , "Key" .= _hcpKey- , "KeyMd5" .= _hcpKeyMd5- , "InitializationVector" .= _hcpInitializationVector- , "LicenseAcquisitionUrl" .= _hcpLicenseAcquisitionUrl- , "KeyStoragePolicy" .= _hcpKeyStoragePolicy- ]--data PresetWatermark = PresetWatermark- { _pwHorizontalAlign :: Maybe Text- , _pwHorizontalOffset :: Maybe Text- , _pwId :: Maybe Text- , _pwMaxHeight :: Maybe Text- , _pwMaxWidth :: Maybe Text- , _pwOpacity :: Maybe Text- , _pwSizingPolicy :: Maybe Text- , _pwTarget :: Maybe Text- , _pwVerticalAlign :: Maybe Text- , _pwVerticalOffset :: Maybe Text- } deriving (Eq, Ord, Read, Show)---- | 'PresetWatermark' constructor.------ The fields accessible through corresponding lenses are:------ * 'pwHorizontalAlign' @::@ 'Maybe' 'Text'------ * 'pwHorizontalOffset' @::@ 'Maybe' 'Text'------ * 'pwId' @::@ 'Maybe' 'Text'------ * 'pwMaxHeight' @::@ 'Maybe' 'Text'------ * 'pwMaxWidth' @::@ 'Maybe' 'Text'------ * 'pwOpacity' @::@ 'Maybe' 'Text'------ * 'pwSizingPolicy' @::@ 'Maybe' 'Text'------ * 'pwTarget' @::@ 'Maybe' 'Text'------ * 'pwVerticalAlign' @::@ 'Maybe' 'Text'------ * 'pwVerticalOffset' @::@ 'Maybe' 'Text'----presetWatermark :: PresetWatermark-presetWatermark = PresetWatermark- { _pwId = Nothing- , _pwMaxWidth = Nothing- , _pwMaxHeight = Nothing- , _pwSizingPolicy = Nothing- , _pwHorizontalAlign = Nothing- , _pwHorizontalOffset = Nothing- , _pwVerticalAlign = Nothing- , _pwVerticalOffset = Nothing- , _pwOpacity = Nothing- , _pwTarget = Nothing- }---- | 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 })---- | 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 })---- | 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 })---- | 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 })---- | 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 })---- | 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 })---- | 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 })---- | 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 })---- | 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 })---- | '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 })--instance FromJSON PresetWatermark where- parseJSON = withObject "PresetWatermark" $ \o -> PresetWatermark- <$> o .:? "HorizontalAlign"- <*> o .:? "HorizontalOffset"- <*> o .:? "Id"- <*> o .:? "MaxHeight"- <*> o .:? "MaxWidth"- <*> o .:? "Opacity"- <*> o .:? "SizingPolicy"- <*> o .:? "Target"- <*> o .:? "VerticalAlign"- <*> o .:? "VerticalOffset"--instance ToJSON PresetWatermark where- toJSON PresetWatermark{..} = object- [ "Id" .= _pwId- , "MaxWidth" .= _pwMaxWidth- , "MaxHeight" .= _pwMaxHeight- , "SizingPolicy" .= _pwSizingPolicy- , "HorizontalAlign" .= _pwHorizontalAlign- , "HorizontalOffset" .= _pwHorizontalOffset- , "VerticalAlign" .= _pwVerticalAlign- , "VerticalOffset" .= _pwVerticalOffset- , "Opacity" .= _pwOpacity- , "Target" .= _pwTarget- ]--data Timing = Timing- { _tFinishTimeMillis :: Maybe Integer- , _tStartTimeMillis :: Maybe Integer- , _tSubmitTimeMillis :: Maybe Integer- } deriving (Eq, Ord, Read, Show)---- | 'Timing' constructor.------ The fields accessible through corresponding lenses are:------ * 'tFinishTimeMillis' @::@ 'Maybe' 'Integer'------ * 'tStartTimeMillis' @::@ 'Maybe' 'Integer'------ * 'tSubmitTimeMillis' @::@ 'Maybe' 'Integer'----timing :: Timing-timing = Timing- { _tSubmitTimeMillis = Nothing- , _tStartTimeMillis = Nothing- , _tFinishTimeMillis = Nothing- }---- | The time the job finished transcoding, in epoch milliseconds.-tFinishTimeMillis :: Lens' Timing (Maybe Integer)-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 })---- | 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 })--instance FromJSON Timing where- parseJSON = withObject "Timing" $ \o -> Timing- <$> o .:? "FinishTimeMillis"- <*> o .:? "StartTimeMillis"- <*> o .:? "SubmitTimeMillis"--instance ToJSON Timing where- toJSON Timing{..} = object- [ "SubmitTimeMillis" .= _tSubmitTimeMillis- , "StartTimeMillis" .= _tStartTimeMillis- , "FinishTimeMillis" .= _tFinishTimeMillis- ]--data Permission = Permission- { _pAccess :: List "Access" Text- , _pGrantee :: Maybe Text- , _pGranteeType :: Maybe Text- } deriving (Eq, Ord, Read, Show)---- | 'Permission' constructor.------ The fields accessible through corresponding lenses are:------ * 'pAccess' @::@ ['Text']------ * 'pGrantee' @::@ 'Maybe' 'Text'------ * 'pGranteeType' @::@ 'Maybe' 'Text'----permission :: Permission-permission = Permission- { _pGranteeType = Nothing- , _pGrantee = Nothing- , _pAccess = mempty- }---- | 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 }) . _List---- | 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 })---- | 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. 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 })--instance FromJSON Permission where- parseJSON = withObject "Permission" $ \o -> Permission- <$> o .:? "Access" .!= mempty- <*> o .:? "Grantee"- <*> o .:? "GranteeType"--instance ToJSON Permission where- toJSON Permission{..} = object- [ "GranteeType" .= _pGranteeType- , "Grantee" .= _pGrantee- , "Access" .= _pAccess- ]--data VideoParameters = VideoParameters- { _vpAspectRatio :: Maybe Text- , _vpBitRate :: Maybe Text- , _vpCodec :: Maybe Text- , _vpCodecOptions :: Map Text Text- , _vpDisplayAspectRatio :: Maybe Text- , _vpFixedGOP :: Maybe Text- , _vpFrameRate :: Maybe Text- , _vpKeyframesMaxDist :: Maybe Text- , _vpMaxFrameRate :: Maybe Text- , _vpMaxHeight :: Maybe Text- , _vpMaxWidth :: Maybe Text- , _vpPaddingPolicy :: Maybe Text- , _vpResolution :: Maybe Text- , _vpSizingPolicy :: Maybe Text- , _vpWatermarks :: List "Watermarks" PresetWatermark- } deriving (Eq, Read, Show)---- | 'VideoParameters' constructor.------ The fields accessible through corresponding lenses are:------ * 'vpAspectRatio' @::@ 'Maybe' 'Text'------ * 'vpBitRate' @::@ 'Maybe' 'Text'------ * 'vpCodec' @::@ 'Maybe' 'Text'------ * 'vpCodecOptions' @::@ 'HashMap' 'Text' 'Text'------ * 'vpDisplayAspectRatio' @::@ 'Maybe' 'Text'------ * 'vpFixedGOP' @::@ 'Maybe' 'Text'------ * 'vpFrameRate' @::@ 'Maybe' 'Text'------ * 'vpKeyframesMaxDist' @::@ 'Maybe' 'Text'------ * 'vpMaxFrameRate' @::@ 'Maybe' 'Text'------ * 'vpMaxHeight' @::@ 'Maybe' 'Text'------ * 'vpMaxWidth' @::@ 'Maybe' 'Text'------ * 'vpPaddingPolicy' @::@ 'Maybe' 'Text'------ * 'vpResolution' @::@ 'Maybe' 'Text'------ * 'vpSizingPolicy' @::@ 'Maybe' 'Text'------ * 'vpWatermarks' @::@ ['PresetWatermark']----videoParameters :: VideoParameters-videoParameters = VideoParameters- { _vpCodec = Nothing- , _vpCodecOptions = mempty- , _vpKeyframesMaxDist = Nothing- , _vpFixedGOP = Nothing- , _vpBitRate = Nothing- , _vpFrameRate = Nothing- , _vpMaxFrameRate = Nothing- , _vpResolution = Nothing- , _vpAspectRatio = Nothing- , _vpMaxWidth = Nothing- , _vpMaxHeight = Nothing- , _vpDisplayAspectRatio = Nothing- , _vpSizingPolicy = Nothing- , _vpPaddingPolicy = Nothing- , _vpWatermarks = mempty- }---- | 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 })---- | 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 mainProfile) : 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 })---- | The video codec for the output file. Valid values include 'gif', 'H.264', 'mpeg2',--- and 'vp8'. You can only specify 'vp8' 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 })---- | Profile (H.264/VP8 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 inpixels * 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 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 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' Elastic Transcoder may change the behavior of the 'ColorspaceConversionMode' 'Auto' mode in the future. All outputs in a playlist must use the same 'ColorSpaceConversionMode'. 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 }) . _Map---- | 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 })---- | 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. 'FixedGOP' must be set--- to 'true' for 'fmp4' containers.----vpFixedGOP :: Lens' VideoParameters (Maybe Text)-vpFixedGOP = lens _vpFixedGOP (\s a -> s { _vpFixedGOP = 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 })---- | 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 })---- | 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 })---- | 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 })---- | 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 })---- | 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 })---- | 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 widthx 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 })---- | 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 })---- | 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 }) . _List--instance FromJSON VideoParameters where- parseJSON = withObject "VideoParameters" $ \o -> VideoParameters- <$> o .:? "AspectRatio"- <*> o .:? "BitRate"- <*> o .:? "Codec"- <*> o .:? "CodecOptions" .!= mempty- <*> o .:? "DisplayAspectRatio"- <*> o .:? "FixedGOP"- <*> o .:? "FrameRate"- <*> o .:? "KeyframesMaxDist"- <*> o .:? "MaxFrameRate"- <*> o .:? "MaxHeight"- <*> o .:? "MaxWidth"- <*> o .:? "PaddingPolicy"- <*> o .:? "Resolution"- <*> o .:? "SizingPolicy"- <*> o .:? "Watermarks" .!= mempty--instance ToJSON VideoParameters where- toJSON VideoParameters{..} = object- [ "Codec" .= _vpCodec- , "CodecOptions" .= _vpCodecOptions- , "KeyframesMaxDist" .= _vpKeyframesMaxDist- , "FixedGOP" .= _vpFixedGOP- , "BitRate" .= _vpBitRate- , "FrameRate" .= _vpFrameRate- , "MaxFrameRate" .= _vpMaxFrameRate- , "Resolution" .= _vpResolution- , "AspectRatio" .= _vpAspectRatio- , "MaxWidth" .= _vpMaxWidth- , "MaxHeight" .= _vpMaxHeight- , "DisplayAspectRatio" .= _vpDisplayAspectRatio- , "SizingPolicy" .= _vpSizingPolicy- , "PaddingPolicy" .= _vpPaddingPolicy- , "Watermarks" .= _vpWatermarks- ]--data Playlist = Playlist- { _p2Format :: Maybe Text- , _p2HlsContentProtection :: Maybe HlsContentProtection- , _p2Name :: Maybe Text- , _p2OutputKeys :: List "OutputKeys" Text- , _p2PlayReadyDrm :: Maybe PlayReadyDrm- , _p2Status :: Maybe Text- , _p2StatusDetail :: Maybe Text- } deriving (Eq, Read, Show)---- | 'Playlist' constructor.------ The fields accessible through corresponding lenses are:------ * 'p2Format' @::@ 'Maybe' 'Text'------ * 'p2HlsContentProtection' @::@ 'Maybe' 'HlsContentProtection'------ * 'p2Name' @::@ 'Maybe' 'Text'------ * 'p2OutputKeys' @::@ ['Text']------ * 'p2PlayReadyDrm' @::@ 'Maybe' 'PlayReadyDrm'------ * 'p2Status' @::@ 'Maybe' 'Text'------ * 'p2StatusDetail' @::@ 'Maybe' 'Text'----playlist :: Playlist-playlist = Playlist- { _p2Name = Nothing- , _p2Format = Nothing- , _p2OutputKeys = mempty- , _p2HlsContentProtection = Nothing- , _p2PlayReadyDrm = Nothing- , _p2Status = Nothing- , _p2StatusDetail = Nothing- }---- | The format of the output playlist. Valid formats include 'HLSv3', 'HLSv4', and 'Smooth'.-p2Format :: Lens' Playlist (Maybe Text)-p2Format = lens _p2Format (\s a -> s { _p2Format = a })---- | The HLS content protection settings, if any, that you want Elastic Transcoder--- to apply to the output files associated with this playlist.-p2HlsContentProtection :: Lens' Playlist (Maybe HlsContentProtection)-p2HlsContentProtection =- lens _p2HlsContentProtection (\s a -> s { _p2HlsContentProtection = a })---- | 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.------ Note: Elastic Transcoder automatically appends the relevant file extension--- to the file name ('.m3u8' for 'HLSv3' and 'HLSv4' playlists, and '.ism' and '.ismc' for 'Smooth' playlists). If you include a file extension in 'Name', the file name--- will have two extensions.-p2Name :: Lens' Playlist (Maybe Text)-p2Name = lens _p2Name (\s a -> s { _p2Name = 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.-p2OutputKeys :: Lens' Playlist [Text]-p2OutputKeys = lens _p2OutputKeys (\s a -> s { _p2OutputKeys = a }) . _List---- | The DRM settings, if any, that you want Elastic Transcoder to apply to the--- output files associated with this playlist.-p2PlayReadyDrm :: Lens' Playlist (Maybe PlayReadyDrm)-p2PlayReadyDrm = lens _p2PlayReadyDrm (\s a -> s { _p2PlayReadyDrm = a })---- | The status of the job with which the playlist is associated.-p2Status :: Lens' Playlist (Maybe Text)-p2Status = lens _p2Status (\s a -> s { _p2Status = a })---- | Information that further explains the status.-p2StatusDetail :: Lens' Playlist (Maybe Text)-p2StatusDetail = lens _p2StatusDetail (\s a -> s { _p2StatusDetail = a })--instance FromJSON Playlist where- parseJSON = withObject "Playlist" $ \o -> Playlist- <$> o .:? "Format"- <*> o .:? "HlsContentProtection"- <*> o .:? "Name"- <*> o .:? "OutputKeys" .!= mempty- <*> o .:? "PlayReadyDrm"- <*> o .:? "Status"- <*> o .:? "StatusDetail"--instance ToJSON Playlist where- toJSON Playlist{..} = object- [ "Name" .= _p2Name- , "Format" .= _p2Format- , "OutputKeys" .= _p2OutputKeys- , "HlsContentProtection" .= _p2HlsContentProtection- , "PlayReadyDrm" .= _p2PlayReadyDrm- , "Status" .= _p2Status- , "StatusDetail" .= _p2StatusDetail- ]--data Notifications = Notifications- { _nCompleted :: Maybe Text- , _nError :: Maybe Text- , _nProgressing :: Maybe Text- , _nWarning :: Maybe Text- } deriving (Eq, Ord, Read, Show)---- | 'Notifications' constructor.------ The fields accessible through corresponding lenses are:------ * 'nCompleted' @::@ 'Maybe' 'Text'------ * 'nError' @::@ 'Maybe' 'Text'------ * 'nProgressing' @::@ 'Maybe' 'Text'------ * 'nWarning' @::@ 'Maybe' 'Text'----notifications :: Notifications-notifications = Notifications- { _nProgressing = Nothing- , _nCompleted = Nothing- , _nWarning = Nothing- , _nError = Nothing- }---- | 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 })---- | 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 })---- | 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 })---- | 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 })--instance FromJSON Notifications where- parseJSON = withObject "Notifications" $ \o -> Notifications- <$> o .:? "Completed"- <*> o .:? "Error"- <*> o .:? "Progressing"- <*> o .:? "Warning"--instance ToJSON Notifications where- toJSON Notifications{..} = object- [ "Progressing" .= _nProgressing- , "Completed" .= _nCompleted- , "Warning" .= _nWarning- , "Error" .= _nError- ]--newtype Clip = Clip- { _cTimeSpan :: Maybe TimeSpan- } deriving (Eq, Read, Show)---- | 'Clip' constructor.------ The fields accessible through corresponding lenses are:------ * 'cTimeSpan' @::@ 'Maybe' 'TimeSpan'----clip :: Clip-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 })--instance FromJSON Clip where- parseJSON = withObject "Clip" $ \o -> Clip- <$> o .:? "TimeSpan"--instance ToJSON Clip where- toJSON Clip{..} = object- [ "TimeSpan" .= _cTimeSpan- ]--data JobInput = JobInput- { _jiAspectRatio :: Maybe Text- , _jiContainer :: Maybe Text- , _jiDetectedProperties :: Maybe DetectedProperties- , _jiEncryption :: Maybe Encryption- , _jiFrameRate :: Maybe Text- , _jiInterlaced :: Maybe Text- , _jiKey :: Maybe Text- , _jiResolution :: Maybe Text- } deriving (Eq, Read, Show)---- | 'JobInput' constructor.------ The fields accessible through corresponding lenses are:------ * 'jiAspectRatio' @::@ 'Maybe' 'Text'------ * 'jiContainer' @::@ 'Maybe' 'Text'------ * 'jiDetectedProperties' @::@ 'Maybe' 'DetectedProperties'------ * 'jiEncryption' @::@ 'Maybe' 'Encryption'------ * 'jiFrameRate' @::@ 'Maybe' 'Text'------ * 'jiInterlaced' @::@ 'Maybe' 'Text'------ * 'jiKey' @::@ 'Maybe' 'Text'------ * 'jiResolution' @::@ 'Maybe' 'Text'----jobInput :: JobInput-jobInput = JobInput- { _jiKey = Nothing- , _jiFrameRate = Nothing- , _jiResolution = Nothing- , _jiAspectRatio = Nothing- , _jiInterlaced = Nothing- , _jiContainer = Nothing- , _jiEncryption = Nothing- , _jiDetectedProperties = Nothing- }---- | 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 })---- | 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 })---- | The detected properties of the input file.-jiDetectedProperties :: Lens' JobInput (Maybe DetectedProperties)-jiDetectedProperties =- lens _jiDetectedProperties (\s a -> s { _jiDetectedProperties = 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 will use to decrypt your file.-jiEncryption :: Lens' JobInput (Maybe Encryption)-jiEncryption = lens _jiEncryption (\s a -> s { _jiEncryption = a })---- | 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 })---- | 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 })---- | 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 })---- | 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 })--instance FromJSON JobInput where- parseJSON = withObject "JobInput" $ \o -> JobInput- <$> o .:? "AspectRatio"- <*> o .:? "Container"- <*> o .:? "DetectedProperties"- <*> o .:? "Encryption"- <*> o .:? "FrameRate"- <*> o .:? "Interlaced"- <*> o .:? "Key"- <*> o .:? "Resolution"--instance ToJSON JobInput where- toJSON JobInput{..} = object- [ "Key" .= _jiKey- , "FrameRate" .= _jiFrameRate- , "Resolution" .= _jiResolution- , "AspectRatio" .= _jiAspectRatio- , "Interlaced" .= _jiInterlaced- , "Container" .= _jiContainer- , "Encryption" .= _jiEncryption- , "DetectedProperties" .= _jiDetectedProperties- ]+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE TypeFamilies #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Network.AWS.ElasticTranscoder.Types+-- Copyright : (c) 2013-2015 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+module Network.AWS.ElasticTranscoder.Types+ (+ -- * Service+ ElasticTranscoder++ -- * Errors+ , _ValidationException+ , _IncompatibleVersionException+ , _AccessDeniedException+ , _InternalServiceException+ , _ResourceNotFoundException+ , _ResourceInUseException+ , _LimitExceededException++ -- * Artwork+ , Artwork+ , artwork+ , aSizingPolicy+ , aMaxHeight+ , aAlbumArtFormat+ , aInputKey+ , aPaddingPolicy+ , aEncryption+ , aMaxWidth++ -- * AudioCodecOptions+ , AudioCodecOptions+ , audioCodecOptions+ , acoBitDepth+ , acoSigned+ , acoProfile+ , acoBitOrder++ -- * AudioParameters+ , AudioParameters+ , audioParameters+ , apChannels+ , apCodec+ , apAudioPackingMode+ , apSampleRate+ , apBitRate+ , apCodecOptions++ -- * CaptionFormat+ , CaptionFormat+ , captionFormat+ , cfPattern+ , cfFormat+ , cfEncryption++ -- * CaptionSource+ , CaptionSource+ , captionSource+ , csTimeOffset+ , csKey+ , csEncryption+ , csLanguage+ , csLabel++ -- * Captions+ , Captions+ , captions+ , cMergePolicy+ , cCaptionSources+ , cCaptionFormats++ -- * Clip+ , Clip+ , clip+ , cTimeSpan++ -- * CreateJobOutput+ , CreateJobOutput+ , createJobOutput+ , cjoThumbnailPattern+ , cjoCaptions+ , cjoPresetId+ , cjoComposition+ , cjoAlbumArt+ , cjoWatermarks+ , cjoKey+ , cjoEncryption+ , cjoSegmentDuration+ , cjoThumbnailEncryption+ , cjoRotate++ -- * CreateJobPlaylist+ , CreateJobPlaylist+ , createJobPlaylist+ , cjpPlayReadyDrm+ , cjpOutputKeys+ , cjpFormat+ , cjpName+ , cjpHlsContentProtection++ -- * DetectedProperties+ , DetectedProperties+ , detectedProperties+ , dpHeight+ , dpFrameRate+ , dpFileSize+ , dpWidth+ , dpDurationMillis++ -- * Encryption+ , Encryption+ , encryption+ , eKeyMD5+ , eMode+ , eKey+ , eInitializationVector++ -- * HlsContentProtection+ , HlsContentProtection+ , hlsContentProtection+ , hcpKeyMD5+ , hcpKeyStoragePolicy+ , hcpKey+ , hcpMethod+ , hcpLicenseAcquisitionURL+ , hcpInitializationVector++ -- * Job'+ , Job'+ , job'+ , jStatus+ , jPipelineId+ , jARN+ , jInput+ , jOutputs+ , jUserMetadata+ , jOutput+ , jId+ , jPlaylists+ , jTiming+ , jOutputKeyPrefix++ -- * JobAlbumArt+ , JobAlbumArt+ , jobAlbumArt+ , jaaMergePolicy+ , jaaArtwork++ -- * JobInput+ , JobInput+ , jobInput+ , jiFrameRate+ , jiResolution+ , jiAspectRatio+ , jiKey+ , jiDetectedProperties+ , jiEncryption+ , jiContainer+ , jiInterlaced++ -- * JobOutput+ , JobOutput+ , jobOutput+ , joAppliedColorSpaceConversion+ , joStatus+ , joThumbnailPattern+ , joHeight+ , joFrameRate+ , joCaptions+ , joPresetId+ , joComposition+ , joAlbumArt+ , joFileSize+ , joWatermarks+ , joWidth+ , joKey+ , joEncryption+ , joId+ , joSegmentDuration+ , joStatusDetail+ , joDurationMillis+ , joThumbnailEncryption+ , joDuration+ , joRotate++ -- * JobWatermark+ , JobWatermark+ , jobWatermark+ , jwPresetWatermarkId+ , jwInputKey+ , jwEncryption++ -- * Notifications+ , Notifications+ , notifications+ , nError+ , nWarning+ , nCompleted+ , nProgressing++ -- * Permission+ , Permission+ , permission+ , pAccess+ , pGranteeType+ , pGrantee++ -- * Pipeline+ , Pipeline+ , pipeline+ , pipStatus+ , pipARN+ , pipInputBucket+ , pipContentConfig+ , pipOutputBucket+ , pipRole+ , pipName+ , pipAWSKMSKeyARN+ , pipId+ , pipThumbnailConfig+ , pipNotifications++ -- * PipelineOutputConfig+ , PipelineOutputConfig+ , pipelineOutputConfig+ , pocBucket+ , pocStorageClass+ , pocPermissions++ -- * PlayReadyDrm+ , PlayReadyDrm+ , playReadyDrm+ , prdKeyId+ , prdKeyMD5+ , prdFormat+ , prdKey+ , prdLicenseAcquisitionURL+ , prdInitializationVector++ -- * Playlist+ , Playlist+ , playlist+ , pPlayReadyDrm+ , pStatus+ , pOutputKeys+ , pFormat+ , pName+ , pHlsContentProtection+ , pStatusDetail++ -- * Preset+ , Preset+ , preset+ , preARN+ , preVideo+ , preName+ , preThumbnails+ , preContainer+ , preId+ , preType+ , preAudio+ , preDescription++ -- * PresetWatermark+ , PresetWatermark+ , presetWatermark+ , pwVerticalAlign+ , pwSizingPolicy+ , pwMaxHeight+ , pwHorizontalOffset+ , pwOpacity+ , pwVerticalOffset+ , pwMaxWidth+ , pwId+ , pwHorizontalAlign+ , pwTarget++ -- * Thumbnails+ , Thumbnails+ , thumbnails+ , tSizingPolicy+ , tFormat+ , tMaxHeight+ , tResolution+ , tPaddingPolicy+ , tAspectRatio+ , tInterval+ , tMaxWidth++ -- * TimeSpan+ , TimeSpan+ , timeSpan+ , tsStartTime+ , tsDuration++ -- * Timing+ , Timing+ , timing+ , tSubmitTimeMillis+ , tFinishTimeMillis+ , tStartTimeMillis++ -- * VideoParameters+ , VideoParameters+ , videoParameters+ , vpKeyframesMaxDist+ , vpFrameRate+ , vpSizingPolicy+ , vpMaxFrameRate+ , vpMaxHeight+ , vpDisplayAspectRatio+ , vpWatermarks+ , vpCodec+ , vpResolution+ , vpPaddingPolicy+ , vpAspectRatio+ , vpMaxWidth+ , vpBitRate+ , vpFixedGOP+ , vpCodecOptions++ -- * Warning+ , Warning+ , warning+ , wCode+ , wMessage+ ) where++import Network.AWS.ElasticTranscoder.Types.Product+import Network.AWS.ElasticTranscoder.Types.Sum+import Network.AWS.Prelude+import Network.AWS.Sign.V4++-- | Version @2012-09-25@ of the Amazon Elastic Transcoder SDK.+data ElasticTranscoder++instance AWSService ElasticTranscoder where+ type Sg ElasticTranscoder = V4+ service = const svc+ where+ svc =+ Service+ { _svcAbbrev = "ElasticTranscoder"+ , _svcPrefix = "elastictranscoder"+ , _svcVersion = "2012-09-25"+ , _svcEndpoint = defaultEndpoint svc+ , _svcTimeout = Just 70+ , _svcStatus = statusSuccess+ , _svcError = parseJSONError+ , _svcRetry = retry+ }+ retry =+ Exponential+ { _retryBase = 5.0e-2+ , _retryGrowth = 2+ , _retryAttempts = 5+ , _retryCheck = check+ }+ check e+ | has (hasCode "ThrottlingException" . hasStatus 400) e =+ Just "throttling_exception"+ | has (hasCode "Throttling" . hasStatus 400) e = Just "throttling"+ | has (hasStatus 503) e = Just "service_unavailable"+ | has (hasStatus 500) e = Just "general_server_error"+ | has (hasStatus 509) e = Just "limit_exceeded"+ | otherwise = Nothing++-- | One or more required parameter values were not provided in the request.+_ValidationException :: AsError a => Getting (First ServiceError) a ServiceError+_ValidationException =+ _ServiceError . hasStatus 400 . hasCode "ValidationException"++-- | Prism for IncompatibleVersionException' errors.+_IncompatibleVersionException :: AsError a => Getting (First ServiceError) a ServiceError+_IncompatibleVersionException =+ _ServiceError . hasStatus 400 . hasCode "IncompatibleVersionException"++-- | General authentication failure. The request was not signed correctly.+_AccessDeniedException :: AsError a => Getting (First ServiceError) a ServiceError+_AccessDeniedException =+ _ServiceError . hasStatus 403 . hasCode "AccessDeniedException"++-- | Elastic Transcoder encountered an unexpected exception while trying to+-- fulfill the request.+_InternalServiceException :: AsError a => Getting (First ServiceError) a ServiceError+_InternalServiceException = _ServiceError . hasCode "InternalServiceException"++-- | The requested resource does not exist or is not available. For example,+-- the pipeline to which you\'re trying to add a job doesn\'t exist or is+-- still being created.+_ResourceNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError+_ResourceNotFoundException =+ _ServiceError . hasStatus 404 . hasCode "ResourceNotFoundException"++-- | The resource you are attempting to change is in use. For example, you+-- are attempting to delete a pipeline that is currently in use.+_ResourceInUseException :: AsError a => Getting (First ServiceError) a ServiceError+_ResourceInUseException =+ _ServiceError . hasStatus 409 . hasCode "ResourceInUseException"++-- | Too many operations for a given AWS account. For example, the number of+-- pipelines exceeds the maximum allowed.+_LimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError+_LimitExceededException =+ _ServiceError . hasStatus 429 . hasCode "LimitExceededException"
+ gen/Network/AWS/ElasticTranscoder/Types/Product.hs view
@@ -0,0 +1,4125 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Network.AWS.ElasticTranscoder.Types.Product+-- Copyright : (c) 2013-2015 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+module Network.AWS.ElasticTranscoder.Types.Product where++import Network.AWS.ElasticTranscoder.Types.Sum+import Network.AWS.Prelude++-- | The file to be used as album art. There can be multiple artworks+-- associated with an audio file, to a maximum of 20.+--+-- To remove artwork or leave the artwork empty, you can either set+-- 'Artwork' to null, or set the 'Merge Policy' to \"Replace\" and use an+-- empty 'Artwork' array.+--+-- To pass through existing artwork unchanged, set the 'Merge Policy' to+-- \"Prepend\", \"Append\", or \"Fallback\", and use an empty 'Artwork'+-- array.+--+-- /See:/ 'artwork' smart constructor.+data Artwork = Artwork'+ { _aSizingPolicy :: !(Maybe Text)+ , _aMaxHeight :: !(Maybe Text)+ , _aAlbumArtFormat :: !(Maybe Text)+ , _aInputKey :: !(Maybe Text)+ , _aPaddingPolicy :: !(Maybe Text)+ , _aEncryption :: !(Maybe Encryption)+ , _aMaxWidth :: !(Maybe Text)+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'Artwork' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'aSizingPolicy'+--+-- * 'aMaxHeight'+--+-- * 'aAlbumArtFormat'+--+-- * 'aInputKey'+--+-- * 'aPaddingPolicy'+--+-- * 'aEncryption'+--+-- * 'aMaxWidth'+artwork+ :: Artwork+artwork =+ Artwork'+ { _aSizingPolicy = Nothing+ , _aMaxHeight = Nothing+ , _aAlbumArtFormat = 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});++-- | 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});++-- | 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});++-- | 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});++-- | 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});++-- | 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});++-- | 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});++instance FromJSON Artwork where+ parseJSON+ = withObject "Artwork"+ (\ x ->+ Artwork' <$>+ (x .:? "SizingPolicy") <*> (x .:? "MaxHeight") <*>+ (x .:? "AlbumArtFormat")+ <*> (x .:? "InputKey")+ <*> (x .:? "PaddingPolicy")+ <*> (x .:? "Encryption")+ <*> (x .:? "MaxWidth"))++instance ToJSON Artwork where+ toJSON Artwork'{..}+ = object+ ["SizingPolicy" .= _aSizingPolicy,+ "MaxHeight" .= _aMaxHeight,+ "AlbumArtFormat" .= _aAlbumArtFormat,+ "InputKey" .= _aInputKey,+ "PaddingPolicy" .= _aPaddingPolicy,+ "Encryption" .= _aEncryption,+ "MaxWidth" .= _aMaxWidth]++-- | Options associated with your audio codec.+--+-- /See:/ 'audioCodecOptions' smart constructor.+data AudioCodecOptions = AudioCodecOptions'+ { _acoBitDepth :: !(Maybe Text)+ , _acoSigned :: !(Maybe Text)+ , _acoProfile :: !(Maybe Text)+ , _acoBitOrder :: !(Maybe Text)+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'AudioCodecOptions' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'acoBitDepth'+--+-- * 'acoSigned'+--+-- * 'acoProfile'+--+-- * 'acoBitOrder'+audioCodecOptions+ :: AudioCodecOptions+audioCodecOptions =+ AudioCodecOptions'+ { _acoBitDepth = Nothing+ , _acoSigned = Nothing+ , _acoProfile = Nothing+ , _acoBitOrder = Nothing+ }++-- | 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});++-- | 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});++-- | 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 will select 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'.+--+-- If you created any presets before AAC profiles were added, Elastic+-- Transcoder automatically updated your presets to use AAC-LC. You can+-- change the value as required.+acoProfile :: Lens' AudioCodecOptions (Maybe Text)+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});++instance FromJSON AudioCodecOptions where+ parseJSON+ = withObject "AudioCodecOptions"+ (\ x ->+ AudioCodecOptions' <$>+ (x .:? "BitDepth") <*> (x .:? "Signed") <*>+ (x .:? "Profile")+ <*> (x .:? "BitOrder"))++instance ToJSON AudioCodecOptions where+ toJSON AudioCodecOptions'{..}+ = object+ ["BitDepth" .= _acoBitDepth, "Signed" .= _acoSigned,+ "Profile" .= _acoProfile, "BitOrder" .= _acoBitOrder]++-- | Parameters required for transcoding audio.+--+-- /See:/ 'audioParameters' smart constructor.+data AudioParameters = AudioParameters'+ { _apChannels :: !(Maybe Text)+ , _apCodec :: !(Maybe Text)+ , _apAudioPackingMode :: !(Maybe Text)+ , _apSampleRate :: !(Maybe Text)+ , _apBitRate :: !(Maybe Text)+ , _apCodecOptions :: !(Maybe AudioCodecOptions)+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'AudioParameters' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'apChannels'+--+-- * 'apCodec'+--+-- * 'apAudioPackingMode'+--+-- * 'apSampleRate'+--+-- * 'apBitRate'+--+-- * 'apCodecOptions'+audioParameters+ :: AudioParameters+audioParameters =+ AudioParameters'+ { _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});++-- | 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});++-- | 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});++-- | 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});++-- | 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});++-- | 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});++instance FromJSON AudioParameters where+ parseJSON+ = withObject "AudioParameters"+ (\ x ->+ AudioParameters' <$>+ (x .:? "Channels") <*> (x .:? "Codec") <*>+ (x .:? "AudioPackingMode")+ <*> (x .:? "SampleRate")+ <*> (x .:? "BitRate")+ <*> (x .:? "CodecOptions"))++instance ToJSON AudioParameters where+ toJSON AudioParameters'{..}+ = object+ ["Channels" .= _apChannels, "Codec" .= _apCodec,+ "AudioPackingMode" .= _apAudioPackingMode,+ "SampleRate" .= _apSampleRate,+ "BitRate" .= _apBitRate,+ "CodecOptions" .= _apCodecOptions]++-- | The file format of the output captions. If you leave this value blank,+-- Elastic Transcoder returns an error.+--+-- /See:/ 'captionFormat' smart constructor.+data CaptionFormat = CaptionFormat'+ { _cfPattern :: !(Maybe Text)+ , _cfFormat :: !(Maybe Text)+ , _cfEncryption :: !(Maybe Encryption)+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'CaptionFormat' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'cfPattern'+--+-- * 'cfFormat'+--+-- * 'cfEncryption'+captionFormat+ :: CaptionFormat+captionFormat =+ CaptionFormat'+ { _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 will be+-- Sydney-en-sunrise00000.srt.+cfPattern :: Lens' CaptionFormat (Maybe Text)+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});++-- | 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});++instance FromJSON CaptionFormat where+ parseJSON+ = withObject "CaptionFormat"+ (\ x ->+ CaptionFormat' <$>+ (x .:? "Pattern") <*> (x .:? "Format") <*>+ (x .:? "Encryption"))++instance ToJSON CaptionFormat where+ toJSON CaptionFormat'{..}+ = object+ ["Pattern" .= _cfPattern, "Format" .= _cfFormat,+ "Encryption" .= _cfEncryption]++-- | A source file for the input sidecar captions used during the transcoding+-- process.+--+-- /See:/ 'captionSource' smart constructor.+data CaptionSource = CaptionSource'+ { _csTimeOffset :: !(Maybe Text)+ , _csKey :: !(Maybe Text)+ , _csEncryption :: !(Maybe Encryption)+ , _csLanguage :: !(Maybe Text)+ , _csLabel :: !(Maybe Text)+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'CaptionSource' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'csTimeOffset'+--+-- * 'csKey'+--+-- * 'csEncryption'+--+-- * 'csLanguage'+--+-- * 'csLabel'+captionSource+ :: CaptionSource+captionSource =+ CaptionSource'+ { _csTimeOffset = Nothing+ , _csKey = Nothing+ , _csEncryption = 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});++-- | 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});++-- | The encryption settings, if any, that you want Elastic Transcoder to+-- apply to your caption sources.+csEncryption :: Lens' CaptionSource (Maybe Encryption)+csEncryption = lens _csEncryption (\ s a -> s{_csEncryption = a});++-- | A string that specifies the language of the caption. 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});++-- | 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});++instance FromJSON CaptionSource where+ parseJSON+ = withObject "CaptionSource"+ (\ x ->+ CaptionSource' <$>+ (x .:? "TimeOffset") <*> (x .:? "Key") <*>+ (x .:? "Encryption")+ <*> (x .:? "Language")+ <*> (x .:? "Label"))++instance ToJSON CaptionSource where+ toJSON CaptionSource'{..}+ = object+ ["TimeOffset" .= _csTimeOffset, "Key" .= _csKey,+ "Encryption" .= _csEncryption,+ "Language" .= _csLanguage, "Label" .= _csLabel]++-- | The captions to be created, if any.+--+-- /See:/ 'captions' smart constructor.+data Captions = Captions'+ { _cMergePolicy :: !(Maybe Text)+ , _cCaptionSources :: !(Maybe [CaptionSource])+ , _cCaptionFormats :: !(Maybe [CaptionFormat])+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'Captions' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'cMergePolicy'+--+-- * 'cCaptionSources'+--+-- * 'cCaptionFormats'+captions+ :: Captions+captions =+ Captions'+ { _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});++-- | 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;++-- | 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;++instance FromJSON Captions where+ parseJSON+ = withObject "Captions"+ (\ x ->+ Captions' <$>+ (x .:? "MergePolicy") <*>+ (x .:? "CaptionSources" .!= mempty)+ <*> (x .:? "CaptionFormats" .!= mempty))++instance ToJSON Captions where+ toJSON Captions'{..}+ = object+ ["MergePolicy" .= _cMergePolicy,+ "CaptionSources" .= _cCaptionSources,+ "CaptionFormats" .= _cCaptionFormats]++-- | Settings for one clip in a composition. All jobs in a playlist must have+-- the same clip settings.+--+-- /See:/ 'clip' smart constructor.+newtype Clip = Clip'+ { _cTimeSpan :: Maybe TimeSpan+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'Clip' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'cTimeSpan'+clip+ :: Clip+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});++instance FromJSON Clip where+ parseJSON+ = withObject "Clip"+ (\ x -> Clip' <$> (x .:? "TimeSpan"))++instance ToJSON Clip where+ toJSON Clip'{..} = object ["TimeSpan" .= _cTimeSpan]++-- | The 'CreateJobOutput' structure.+--+-- /See:/ 'createJobOutput' smart constructor.+data CreateJobOutput = CreateJobOutput'+ { _cjoThumbnailPattern :: !(Maybe Text)+ , _cjoCaptions :: !(Maybe Captions)+ , _cjoPresetId :: !(Maybe Text)+ , _cjoComposition :: !(Maybe [Clip])+ , _cjoAlbumArt :: !(Maybe JobAlbumArt)+ , _cjoWatermarks :: !(Maybe [JobWatermark])+ , _cjoKey :: !(Maybe Text)+ , _cjoEncryption :: !(Maybe Encryption)+ , _cjoSegmentDuration :: !(Maybe Text)+ , _cjoThumbnailEncryption :: !(Maybe Encryption)+ , _cjoRotate :: !(Maybe Text)+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'CreateJobOutput' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'cjoThumbnailPattern'+--+-- * 'cjoCaptions'+--+-- * 'cjoPresetId'+--+-- * 'cjoComposition'+--+-- * 'cjoAlbumArt'+--+-- * 'cjoWatermarks'+--+-- * 'cjoKey'+--+-- * 'cjoEncryption'+--+-- * 'cjoSegmentDuration'+--+-- * 'cjoThumbnailEncryption'+--+-- * 'cjoRotate'+createJobOutput+ :: CreateJobOutput+createJobOutput =+ CreateJobOutput'+ { _cjoThumbnailPattern = Nothing+ , _cjoCaptions = Nothing+ , _cjoPresetId = Nothing+ , _cjoComposition = Nothing+ , _cjoAlbumArt = Nothing+ , _cjoWatermarks = Nothing+ , _cjoKey = Nothing+ , _cjoEncryption = 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.+--+-- 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});++-- | 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});++-- | 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});++-- | 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;++-- | 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});++-- | 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;++-- | 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});++-- | 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});++-- | (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});++-- | 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});++-- | 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});++instance ToJSON CreateJobOutput where+ toJSON CreateJobOutput'{..}+ = object+ ["ThumbnailPattern" .= _cjoThumbnailPattern,+ "Captions" .= _cjoCaptions,+ "PresetId" .= _cjoPresetId,+ "Composition" .= _cjoComposition,+ "AlbumArt" .= _cjoAlbumArt,+ "Watermarks" .= _cjoWatermarks, "Key" .= _cjoKey,+ "Encryption" .= _cjoEncryption,+ "SegmentDuration" .= _cjoSegmentDuration,+ "ThumbnailEncryption" .= _cjoThumbnailEncryption,+ "Rotate" .= _cjoRotate]++-- | Information about the master playlist.+--+-- /See:/ 'createJobPlaylist' smart constructor.+data CreateJobPlaylist = CreateJobPlaylist'+ { _cjpPlayReadyDrm :: !(Maybe PlayReadyDrm)+ , _cjpOutputKeys :: !(Maybe [Text])+ , _cjpFormat :: !(Maybe Text)+ , _cjpName :: !(Maybe Text)+ , _cjpHlsContentProtection :: !(Maybe HlsContentProtection)+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'CreateJobPlaylist' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'cjpPlayReadyDrm'+--+-- * 'cjpOutputKeys'+--+-- * 'cjpFormat'+--+-- * 'cjpName'+--+-- * 'cjpHlsContentProtection'+createJobPlaylist+ :: CreateJobPlaylist+createJobPlaylist =+ CreateJobPlaylist'+ { _cjpPlayReadyDrm = Nothing+ , _cjpOutputKeys = Nothing+ , _cjpFormat = 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});++-- | 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;++-- | 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});++-- | 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.+--+-- __Note:__ Elastic Transcoder automatically appends the relevant file+-- extension to the file name ('.m3u8' for 'HLSv3' and 'HLSv4' playlists,+-- and '.ism' and '.ismc' for 'Smooth' playlists). If you include a file+-- extension in 'Name', the file name will have two extensions.+cjpName :: Lens' CreateJobPlaylist (Maybe Text)+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});++instance ToJSON CreateJobPlaylist where+ toJSON CreateJobPlaylist'{..}+ = object+ ["PlayReadyDrm" .= _cjpPlayReadyDrm,+ "OutputKeys" .= _cjpOutputKeys,+ "Format" .= _cjpFormat, "Name" .= _cjpName,+ "HlsContentProtection" .= _cjpHlsContentProtection]++-- | The detected properties of the input file. Elastic Transcoder identifies+-- these values from the input file.+--+-- /See:/ 'detectedProperties' smart constructor.+data DetectedProperties = DetectedProperties'+ { _dpHeight :: !(Maybe Int)+ , _dpFrameRate :: !(Maybe Text)+ , _dpFileSize :: !(Maybe Integer)+ , _dpWidth :: !(Maybe Int)+ , _dpDurationMillis :: !(Maybe Integer)+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'DetectedProperties' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'dpHeight'+--+-- * 'dpFrameRate'+--+-- * 'dpFileSize'+--+-- * 'dpWidth'+--+-- * 'dpDurationMillis'+detectedProperties+ :: DetectedProperties+detectedProperties =+ DetectedProperties'+ { _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});++-- | 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});++-- | The detected file size of the input file, in bytes.+dpFileSize :: Lens' DetectedProperties (Maybe Integer)+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});++-- | The detected duration of the input file, in milliseconds.+dpDurationMillis :: Lens' DetectedProperties (Maybe Integer)+dpDurationMillis = lens _dpDurationMillis (\ s a -> s{_dpDurationMillis = a});++instance FromJSON DetectedProperties where+ parseJSON+ = withObject "DetectedProperties"+ (\ x ->+ DetectedProperties' <$>+ (x .:? "Height") <*> (x .:? "FrameRate") <*>+ (x .:? "FileSize")+ <*> (x .:? "Width")+ <*> (x .:? "DurationMillis"))++instance ToJSON DetectedProperties where+ toJSON DetectedProperties'{..}+ = object+ ["Height" .= _dpHeight, "FrameRate" .= _dpFrameRate,+ "FileSize" .= _dpFileSize, "Width" .= _dpWidth,+ "DurationMillis" .= _dpDurationMillis]++-- | The encryption settings, if any, that are used for decrypting your input+-- files or encrypting your output files. If your input file is encrypted,+-- you must specify the mode that Elastic Transcoder will use to decrypt+-- your file, otherwise you must specify the mode you want Elastic+-- Transcoder to use to encrypt your output files.+--+-- /See:/ 'encryption' smart constructor.+data Encryption = Encryption'+ { _eKeyMD5 :: !(Maybe Text)+ , _eMode :: !(Maybe Text)+ , _eKey :: !(Maybe Text)+ , _eInitializationVector :: !(Maybe Text)+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'Encryption' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'eKeyMD5'+--+-- * 'eMode'+--+-- * 'eKey'+--+-- * 'eInitializationVector'+encryption+ :: Encryption+encryption =+ Encryption'+ { _eKeyMD5 = Nothing+ , _eMode = Nothing+ , _eKey = Nothing+ , _eInitializationVector = Nothing+ }++-- | 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});++-- | 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 will fail the+-- decryption process.+--+-- For all three AES options, you must provide the following settings,+-- which must be base64-encoded:+--+-- - __Key__+--+-- - __Key MD5__+--+-- - __Initialization Vector__+--+-- 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});++-- | 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});++-- | 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});++instance FromJSON Encryption where+ parseJSON+ = withObject "Encryption"+ (\ x ->+ Encryption' <$>+ (x .:? "KeyMd5") <*> (x .:? "Mode") <*> (x .:? "Key")+ <*> (x .:? "InitializationVector"))++instance ToJSON Encryption where+ toJSON Encryption'{..}+ = object+ ["KeyMd5" .= _eKeyMD5, "Mode" .= _eMode,+ "Key" .= _eKey,+ "InitializationVector" .= _eInitializationVector]++-- | The HLS content protection settings, if any, that you want Elastic+-- Transcoder to apply to your output files.+--+-- /See:/ 'hlsContentProtection' smart constructor.+data HlsContentProtection = HlsContentProtection'+ { _hcpKeyMD5 :: !(Maybe Text)+ , _hcpKeyStoragePolicy :: !(Maybe Text)+ , _hcpKey :: !(Maybe Text)+ , _hcpMethod :: !(Maybe Text)+ , _hcpLicenseAcquisitionURL :: !(Maybe Text)+ , _hcpInitializationVector :: !(Maybe Text)+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'HlsContentProtection' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'hcpKeyMD5'+--+-- * 'hcpKeyStoragePolicy'+--+-- * 'hcpKey'+--+-- * 'hcpMethod'+--+-- * 'hcpLicenseAcquisitionURL'+--+-- * 'hcpInitializationVector'+hlsContentProtection+ :: HlsContentProtection+hlsContentProtection =+ HlsContentProtection'+ { _hcpKeyMD5 = Nothing+ , _hcpKeyStoragePolicy = Nothing+ , _hcpKey = Nothing+ , _hcpMethod = Nothing+ , _hcpLicenseAcquisitionURL = Nothing+ , _hcpInitializationVector = 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});++-- | 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});++-- | 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});++-- | The content protection method for your output. The only valid value is:+-- 'aes-128'.+--+-- This value will be 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});++-- | 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});++-- | 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});++instance FromJSON HlsContentProtection where+ parseJSON+ = withObject "HlsContentProtection"+ (\ x ->+ HlsContentProtection' <$>+ (x .:? "KeyMd5") <*> (x .:? "KeyStoragePolicy") <*>+ (x .:? "Key")+ <*> (x .:? "Method")+ <*> (x .:? "LicenseAcquisitionUrl")+ <*> (x .:? "InitializationVector"))++instance ToJSON HlsContentProtection where+ toJSON HlsContentProtection'{..}+ = object+ ["KeyMd5" .= _hcpKeyMD5,+ "KeyStoragePolicy" .= _hcpKeyStoragePolicy,+ "Key" .= _hcpKey, "Method" .= _hcpMethod,+ "LicenseAcquisitionUrl" .= _hcpLicenseAcquisitionURL,+ "InitializationVector" .= _hcpInitializationVector]++-- | A section of the response body that provides information about the job+-- that is created.+--+-- /See:/ 'job'' smart constructor.+data Job' = Job''+ { _jStatus :: !(Maybe Text)+ , _jPipelineId :: !(Maybe Text)+ , _jARN :: !(Maybe Text)+ , _jInput :: !(Maybe JobInput)+ , _jOutputs :: !(Maybe [JobOutput])+ , _jUserMetadata :: !(Maybe (Map Text Text))+ , _jOutput :: !(Maybe JobOutput)+ , _jId :: !(Maybe Text)+ , _jPlaylists :: !(Maybe [Playlist])+ , _jTiming :: !(Maybe Timing)+ , _jOutputKeyPrefix :: !(Maybe Text)+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'Job'' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'jStatus'+--+-- * 'jPipelineId'+--+-- * 'jARN'+--+-- * 'jInput'+--+-- * 'jOutputs'+--+-- * 'jUserMetadata'+--+-- * 'jOutput'+--+-- * 'jId'+--+-- * 'jPlaylists'+--+-- * 'jTiming'+--+-- * 'jOutputKeyPrefix'+job'+ :: Job'+job' =+ Job''+ { _jStatus = Nothing+ , _jPipelineId = Nothing+ , _jARN = Nothing+ , _jInput = Nothing+ , _jOutputs = Nothing+ , _jUserMetadata = Nothing+ , _jOutput = Nothing+ , _jId = Nothing+ , _jPlaylists = Nothing+ , _jTiming = Nothing+ , _jOutputKeyPrefix = 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});++-- | 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});++-- | The Amazon Resource Name (ARN) for the job.+jARN :: Lens' Job' (Maybe Text)+jARN = lens _jARN (\ s a -> s{_jARN = a});++-- | 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});++-- | 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;++-- | 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.+--+-- 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;++-- | 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.+--+-- 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});++-- | 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});++-- | 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;++-- | Details about the timing of a job.+jTiming :: Lens' Job' (Maybe Timing)+jTiming = lens _jTiming (\ s a -> s{_jTiming = a});++-- | 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});++instance FromJSON Job' where+ parseJSON+ = withObject "Job'"+ (\ x ->+ Job'' <$>+ (x .:? "Status") <*> (x .:? "PipelineId") <*>+ (x .:? "Arn")+ <*> (x .:? "Input")+ <*> (x .:? "Outputs" .!= mempty)+ <*> (x .:? "UserMetadata" .!= mempty)+ <*> (x .:? "Output")+ <*> (x .:? "Id")+ <*> (x .:? "Playlists" .!= mempty)+ <*> (x .:? "Timing")+ <*> (x .:? "OutputKeyPrefix"))++-- | The .jpg or .png file associated with an audio file.+--+-- /See:/ 'jobAlbumArt' smart constructor.+data JobAlbumArt = JobAlbumArt'+ { _jaaMergePolicy :: !(Maybe Text)+ , _jaaArtwork :: !(Maybe [Artwork])+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'JobAlbumArt' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'jaaMergePolicy'+--+-- * 'jaaArtwork'+jobAlbumArt+ :: JobAlbumArt+jobAlbumArt =+ JobAlbumArt'+ { _jaaMergePolicy = Nothing+ , _jaaArtwork = Nothing+ }++-- | A policy that determines how Elastic Transcoder will handle the+-- existence of multiple album artwork files.+--+-- - 'Replace:' The specified album art will replace any existing album+-- art.+-- - 'Prepend:' The specified album art will be placed in front of any+-- existing album art.+-- - 'Append:' The specified album art will be placed after any existing+-- album art.+-- - 'Fallback:' If the original input file contains artwork, Elastic+-- Transcoder will use that artwork for the output. If the original+-- input does not contain artwork, Elastic Transcoder will use the+-- specified album art file.+jaaMergePolicy :: Lens' JobAlbumArt (Maybe Text)+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;++instance FromJSON JobAlbumArt where+ parseJSON+ = withObject "JobAlbumArt"+ (\ x ->+ JobAlbumArt' <$>+ (x .:? "MergePolicy") <*>+ (x .:? "Artwork" .!= mempty))++instance ToJSON JobAlbumArt where+ toJSON JobAlbumArt'{..}+ = object+ ["MergePolicy" .= _jaaMergePolicy,+ "Artwork" .= _jaaArtwork]++-- | Information about the file that you\'re transcoding.+--+-- /See:/ 'jobInput' smart constructor.+data JobInput = JobInput'+ { _jiFrameRate :: !(Maybe Text)+ , _jiResolution :: !(Maybe Text)+ , _jiAspectRatio :: !(Maybe Text)+ , _jiKey :: !(Maybe Text)+ , _jiDetectedProperties :: !(Maybe DetectedProperties)+ , _jiEncryption :: !(Maybe Encryption)+ , _jiContainer :: !(Maybe Text)+ , _jiInterlaced :: !(Maybe Text)+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'JobInput' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'jiFrameRate'+--+-- * 'jiResolution'+--+-- * 'jiAspectRatio'+--+-- * 'jiKey'+--+-- * 'jiDetectedProperties'+--+-- * 'jiEncryption'+--+-- * 'jiContainer'+--+-- * 'jiInterlaced'+jobInput+ :: JobInput+jobInput =+ JobInput'+ { _jiFrameRate = Nothing+ , _jiResolution = Nothing+ , _jiAspectRatio = Nothing+ , _jiKey = Nothing+ , _jiDetectedProperties = Nothing+ , _jiEncryption = Nothing+ , _jiContainer = Nothing+ , _jiInterlaced = 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});++-- | 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});++-- | 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});++-- | 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});++-- | The detected properties of the input file.+jiDetectedProperties :: Lens' JobInput (Maybe DetectedProperties)+jiDetectedProperties = lens _jiDetectedProperties (\ s a -> s{_jiDetectedProperties = 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 will use to decrypt your file.+jiEncryption :: Lens' JobInput (Maybe Encryption)+jiEncryption = lens _jiEncryption (\ s a -> s{_jiEncryption = 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});++-- | 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});++instance FromJSON JobInput where+ parseJSON+ = withObject "JobInput"+ (\ x ->+ JobInput' <$>+ (x .:? "FrameRate") <*> (x .:? "Resolution") <*>+ (x .:? "AspectRatio")+ <*> (x .:? "Key")+ <*> (x .:? "DetectedProperties")+ <*> (x .:? "Encryption")+ <*> (x .:? "Container")+ <*> (x .:? "Interlaced"))++instance ToJSON JobInput where+ toJSON JobInput'{..}+ = object+ ["FrameRate" .= _jiFrameRate,+ "Resolution" .= _jiResolution,+ "AspectRatio" .= _jiAspectRatio, "Key" .= _jiKey,+ "DetectedProperties" .= _jiDetectedProperties,+ "Encryption" .= _jiEncryption,+ "Container" .= _jiContainer,+ "Interlaced" .= _jiInterlaced]++-- | Outputs recommended instead.+-- 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.+--+-- /See:/ 'jobOutput' smart constructor.+data JobOutput = JobOutput'+ { _joAppliedColorSpaceConversion :: !(Maybe Text)+ , _joStatus :: !(Maybe Text)+ , _joThumbnailPattern :: !(Maybe Text)+ , _joHeight :: !(Maybe Int)+ , _joFrameRate :: !(Maybe Text)+ , _joCaptions :: !(Maybe Captions)+ , _joPresetId :: !(Maybe Text)+ , _joComposition :: !(Maybe [Clip])+ , _joAlbumArt :: !(Maybe JobAlbumArt)+ , _joFileSize :: !(Maybe Integer)+ , _joWatermarks :: !(Maybe [JobWatermark])+ , _joWidth :: !(Maybe Int)+ , _joKey :: !(Maybe Text)+ , _joEncryption :: !(Maybe Encryption)+ , _joId :: !(Maybe Text)+ , _joSegmentDuration :: !(Maybe Text)+ , _joStatusDetail :: !(Maybe Text)+ , _joDurationMillis :: !(Maybe Integer)+ , _joThumbnailEncryption :: !(Maybe Encryption)+ , _joDuration :: !(Maybe Integer)+ , _joRotate :: !(Maybe Text)+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'JobOutput' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'joAppliedColorSpaceConversion'+--+-- * 'joStatus'+--+-- * 'joThumbnailPattern'+--+-- * 'joHeight'+--+-- * 'joFrameRate'+--+-- * 'joCaptions'+--+-- * 'joPresetId'+--+-- * 'joComposition'+--+-- * 'joAlbumArt'+--+-- * 'joFileSize'+--+-- * 'joWatermarks'+--+-- * 'joWidth'+--+-- * 'joKey'+--+-- * 'joEncryption'+--+-- * 'joId'+--+-- * 'joSegmentDuration'+--+-- * 'joStatusDetail'+--+-- * 'joDurationMillis'+--+-- * 'joThumbnailEncryption'+--+-- * 'joDuration'+--+-- * 'joRotate'+jobOutput+ :: JobOutput+jobOutput =+ JobOutput'+ { _joAppliedColorSpaceConversion = Nothing+ , _joStatus = Nothing+ , _joThumbnailPattern = Nothing+ , _joHeight = Nothing+ , _joFrameRate = Nothing+ , _joCaptions = Nothing+ , _joPresetId = Nothing+ , _joComposition = Nothing+ , _joAlbumArt = Nothing+ , _joFileSize = Nothing+ , _joWatermarks = Nothing+ , _joWidth = Nothing+ , _joKey = Nothing+ , _joEncryption = Nothing+ , _joId = Nothing+ , _joSegmentDuration = Nothing+ , _joStatusDetail = 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 will not be included in the job response.+joAppliedColorSpaceConversion :: Lens' JobOutput (Maybe Text)+joAppliedColorSpaceConversion = lens _joAppliedColorSpaceConversion (\ s a -> s{_joAppliedColorSpaceConversion = 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});++-- | 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.+--+-- 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});++-- | Height of the output file, in pixels.+joHeight :: Lens' JobOutput (Maybe Int)+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});++-- | 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});++-- | 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});++-- | 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;++-- | 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});++-- | File size of the output file, in bytes.+joFileSize :: Lens' JobOutput (Maybe Integer)+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 will cover the first one, the third one will+-- cover the second, and the fourth one will cover the third.+joWatermarks :: Lens' JobOutput [JobWatermark]+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});++-- | 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});++-- | 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 will write an unencrypted file to your Amazon S3 bucket.+joEncryption :: Lens' JobOutput (Maybe Encryption)+joEncryption = lens _joEncryption (\ s a -> s{_joEncryption = 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});++-- | (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.+joSegmentDuration :: Lens' JobOutput (Maybe Text)+joSegmentDuration = lens _joSegmentDuration (\ s a -> s{_joSegmentDuration = a});++-- | Information that further explains 'Status'.+joStatusDetail :: Lens' JobOutput (Maybe Text)+joStatusDetail = lens _joStatusDetail (\ s a -> s{_joStatusDetail = a});++-- | Duration of the output file, in milliseconds.+joDurationMillis :: Lens' JobOutput (Maybe Integer)+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});++-- | Duration of the output file, in seconds.+joDuration :: Lens' JobOutput (Maybe Integer)+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});++instance FromJSON JobOutput where+ parseJSON+ = withObject "JobOutput"+ (\ x ->+ JobOutput' <$>+ (x .:? "AppliedColorSpaceConversion") <*>+ (x .:? "Status")+ <*> (x .:? "ThumbnailPattern")+ <*> (x .:? "Height")+ <*> (x .:? "FrameRate")+ <*> (x .:? "Captions")+ <*> (x .:? "PresetId")+ <*> (x .:? "Composition" .!= mempty)+ <*> (x .:? "AlbumArt")+ <*> (x .:? "FileSize")+ <*> (x .:? "Watermarks" .!= mempty)+ <*> (x .:? "Width")+ <*> (x .:? "Key")+ <*> (x .:? "Encryption")+ <*> (x .:? "Id")+ <*> (x .:? "SegmentDuration")+ <*> (x .:? "StatusDetail")+ <*> (x .:? "DurationMillis")+ <*> (x .:? "ThumbnailEncryption")+ <*> (x .:? "Duration")+ <*> (x .:? "Rotate"))++-- | 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.+--+-- /See:/ 'jobWatermark' smart constructor.+data JobWatermark = JobWatermark'+ { _jwPresetWatermarkId :: !(Maybe Text)+ , _jwInputKey :: !(Maybe Text)+ , _jwEncryption :: !(Maybe Encryption)+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'JobWatermark' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'jwPresetWatermarkId'+--+-- * 'jwInputKey'+--+-- * 'jwEncryption'+jobWatermark+ :: JobWatermark+jobWatermark =+ JobWatermark'+ { _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});++-- | 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});++-- | 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});++instance FromJSON JobWatermark where+ parseJSON+ = withObject "JobWatermark"+ (\ x ->+ JobWatermark' <$>+ (x .:? "PresetWatermarkId") <*> (x .:? "InputKey")+ <*> (x .:? "Encryption"))++instance ToJSON JobWatermark where+ toJSON JobWatermark'{..}+ = object+ ["PresetWatermarkId" .= _jwPresetWatermarkId,+ "InputKey" .= _jwInputKey,+ "Encryption" .= _jwEncryption]++-- | The Amazon Simple Notification Service (Amazon SNS) topic or topics to+-- notify in order to report job status.+--+-- To receive notifications, you must also subscribe to the new topic in+-- the Amazon SNS console.+--+-- /See:/ 'notifications' smart constructor.+data Notifications = Notifications'+ { _nError :: !(Maybe Text)+ , _nWarning :: !(Maybe Text)+ , _nCompleted :: !(Maybe Text)+ , _nProgressing :: !(Maybe Text)+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'Notifications' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'nError'+--+-- * 'nWarning'+--+-- * 'nCompleted'+--+-- * 'nProgressing'+notifications+ :: Notifications+notifications =+ Notifications'+ { _nError = Nothing+ , _nWarning = Nothing+ , _nCompleted = Nothing+ , _nProgressing = 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});++-- | 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});++-- | 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});++-- | 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});++instance FromJSON Notifications where+ parseJSON+ = withObject "Notifications"+ (\ x ->+ Notifications' <$>+ (x .:? "Error") <*> (x .:? "Warning") <*>+ (x .:? "Completed")+ <*> (x .:? "Progressing"))++instance ToJSON Notifications where+ toJSON Notifications'{..}+ = object+ ["Error" .= _nError, "Warning" .= _nWarning,+ "Completed" .= _nCompleted,+ "Progressing" .= _nProgressing]++-- | The 'Permission' structure.+--+-- /See:/ 'permission' smart constructor.+data Permission = Permission'+ { _pAccess :: !(Maybe [Text])+ , _pGranteeType :: !(Maybe Text)+ , _pGrantee :: !(Maybe Text)+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'Permission' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'pAccess'+--+-- * 'pGranteeType'+--+-- * 'pGrantee'+permission+ :: Permission+permission =+ Permission'+ { _pAccess = Nothing+ , _pGranteeType = Nothing+ , _pGrantee = Nothing+ }++-- | 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;++-- | 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.+-- 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});++-- | 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});++instance FromJSON Permission where+ parseJSON+ = withObject "Permission"+ (\ x ->+ Permission' <$>+ (x .:? "Access" .!= mempty) <*> (x .:? "GranteeType")+ <*> (x .:? "Grantee"))++instance ToJSON Permission where+ toJSON Permission'{..}+ = object+ ["Access" .= _pAccess,+ "GranteeType" .= _pGranteeType,+ "Grantee" .= _pGrantee]++-- | The pipeline (queue) that is used to manage jobs.+--+-- /See:/ 'pipeline' smart constructor.+data Pipeline = Pipeline'+ { _pipStatus :: !(Maybe Text)+ , _pipARN :: !(Maybe Text)+ , _pipInputBucket :: !(Maybe Text)+ , _pipContentConfig :: !(Maybe PipelineOutputConfig)+ , _pipOutputBucket :: !(Maybe Text)+ , _pipRole :: !(Maybe Text)+ , _pipName :: !(Maybe Text)+ , _pipAWSKMSKeyARN :: !(Maybe Text)+ , _pipId :: !(Maybe Text)+ , _pipThumbnailConfig :: !(Maybe PipelineOutputConfig)+ , _pipNotifications :: !(Maybe Notifications)+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'Pipeline' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'pipStatus'+--+-- * 'pipARN'+--+-- * 'pipInputBucket'+--+-- * 'pipContentConfig'+--+-- * 'pipOutputBucket'+--+-- * 'pipRole'+--+-- * 'pipName'+--+-- * 'pipAWSKMSKeyARN'+--+-- * 'pipId'+--+-- * 'pipThumbnailConfig'+--+-- * 'pipNotifications'+pipeline+ :: Pipeline+pipeline =+ Pipeline'+ { _pipStatus = Nothing+ , _pipARN = Nothing+ , _pipInputBucket = Nothing+ , _pipContentConfig = Nothing+ , _pipOutputBucket = Nothing+ , _pipRole = Nothing+ , _pipName = Nothing+ , _pipAWSKMSKeyARN = Nothing+ , _pipId = Nothing+ , _pipThumbnailConfig = Nothing+ , _pipNotifications = 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});++-- | The Amazon Resource Name (ARN) for the pipeline.+pipARN :: Lens' Pipeline (Maybe Text)+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});++-- | 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});++-- | 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});++-- | 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});++-- | 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});++-- | 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});++-- | 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});++-- | 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.+-- 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});++-- | The Amazon Simple Notification Service (Amazon SNS) topic that you want+-- to notify to report job status.+--+-- 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});++instance FromJSON Pipeline where+ parseJSON+ = withObject "Pipeline"+ (\ x ->+ Pipeline' <$>+ (x .:? "Status") <*> (x .:? "Arn") <*>+ (x .:? "InputBucket")+ <*> (x .:? "ContentConfig")+ <*> (x .:? "OutputBucket")+ <*> (x .:? "Role")+ <*> (x .:? "Name")+ <*> (x .:? "AwsKmsKeyArn")+ <*> (x .:? "Id")+ <*> (x .:? "ThumbnailConfig")+ <*> (x .:? "Notifications"))++-- | The 'PipelineOutputConfig' structure.+--+-- /See:/ 'pipelineOutputConfig' smart constructor.+data PipelineOutputConfig = PipelineOutputConfig'+ { _pocBucket :: !(Maybe Text)+ , _pocStorageClass :: !(Maybe Text)+ , _pocPermissions :: !(Maybe [Permission])+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'PipelineOutputConfig' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'pocBucket'+--+-- * 'pocStorageClass'+--+-- * 'pocPermissions'+pipelineOutputConfig+ :: PipelineOutputConfig+pipelineOutputConfig =+ PipelineOutputConfig'+ { _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});++-- | 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});++-- | 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;++instance FromJSON PipelineOutputConfig where+ parseJSON+ = withObject "PipelineOutputConfig"+ (\ x ->+ PipelineOutputConfig' <$>+ (x .:? "Bucket") <*> (x .:? "StorageClass") <*>+ (x .:? "Permissions" .!= mempty))++instance ToJSON PipelineOutputConfig where+ toJSON PipelineOutputConfig'{..}+ = object+ ["Bucket" .= _pocBucket,+ "StorageClass" .= _pocStorageClass,+ "Permissions" .= _pocPermissions]++-- | The PlayReady DRM settings, if any, that you want Elastic Transcoder to+-- apply to the output files associated with this playlist.+--+-- PlayReady DRM encrypts your media files using 'AES-CTR' encryption.+--+-- If you use DRM for an 'HLSv3' playlist, your outputs must have a master+-- playlist.+--+-- /See:/ 'playReadyDrm' smart constructor.+data PlayReadyDrm = PlayReadyDrm'+ { _prdKeyId :: !(Maybe Text)+ , _prdKeyMD5 :: !(Maybe Text)+ , _prdFormat :: !(Maybe Text)+ , _prdKey :: !(Maybe Text)+ , _prdLicenseAcquisitionURL :: !(Maybe Text)+ , _prdInitializationVector :: !(Maybe Text)+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'PlayReadyDrm' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'prdKeyId'+--+-- * 'prdKeyMD5'+--+-- * 'prdFormat'+--+-- * 'prdKey'+--+-- * 'prdLicenseAcquisitionURL'+--+-- * 'prdInitializationVector'+playReadyDrm+ :: PlayReadyDrm+playReadyDrm =+ PlayReadyDrm'+ { _prdKeyId = Nothing+ , _prdKeyMD5 = Nothing+ , _prdFormat = Nothing+ , _prdKey = Nothing+ , _prdLicenseAcquisitionURL = Nothing+ , _prdInitializationVector = 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 will+-- convert 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});++-- | 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});++-- | 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});++-- | 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});++-- | 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});++-- | 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});++instance FromJSON PlayReadyDrm where+ parseJSON+ = withObject "PlayReadyDrm"+ (\ x ->+ PlayReadyDrm' <$>+ (x .:? "KeyId") <*> (x .:? "KeyMd5") <*>+ (x .:? "Format")+ <*> (x .:? "Key")+ <*> (x .:? "LicenseAcquisitionUrl")+ <*> (x .:? "InitializationVector"))++instance ToJSON PlayReadyDrm where+ toJSON PlayReadyDrm'{..}+ = object+ ["KeyId" .= _prdKeyId, "KeyMd5" .= _prdKeyMD5,+ "Format" .= _prdFormat, "Key" .= _prdKey,+ "LicenseAcquisitionUrl" .= _prdLicenseAcquisitionURL,+ "InitializationVector" .= _prdInitializationVector]++-- | Use Only for Fragmented MP4 or MPEG-TS Outputs. If you specify a preset+-- 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. We recommend that you create+-- only one master playlist per output format. The maximum number of master+-- playlists in a job is 30.+--+-- /See:/ 'playlist' smart constructor.+data Playlist = Playlist'+ { _pPlayReadyDrm :: !(Maybe PlayReadyDrm)+ , _pStatus :: !(Maybe Text)+ , _pOutputKeys :: !(Maybe [Text])+ , _pFormat :: !(Maybe Text)+ , _pName :: !(Maybe Text)+ , _pHlsContentProtection :: !(Maybe HlsContentProtection)+ , _pStatusDetail :: !(Maybe Text)+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'Playlist' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'pPlayReadyDrm'+--+-- * 'pStatus'+--+-- * 'pOutputKeys'+--+-- * 'pFormat'+--+-- * 'pName'+--+-- * 'pHlsContentProtection'+--+-- * 'pStatusDetail'+playlist+ :: Playlist+playlist =+ Playlist'+ { _pPlayReadyDrm = Nothing+ , _pStatus = Nothing+ , _pOutputKeys = Nothing+ , _pFormat = Nothing+ , _pName = Nothing+ , _pHlsContentProtection = Nothing+ , _pStatusDetail = Nothing+ }++-- | 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});++-- | The status of the job with which the playlist is associated.+pStatus :: Lens' Playlist (Maybe Text)+pStatus = lens _pStatus (\ s a -> s{_pStatus = 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;++-- | 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});++-- | 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.+--+-- __Note__: Elastic Transcoder automatically appends the relevant file+-- extension to the file name ('.m3u8' for 'HLSv3' and 'HLSv4' playlists,+-- and '.ism' and '.ismc' for 'Smooth' playlists). If you include a file+-- extension in 'Name', the file name will have two extensions.+pName :: Lens' Playlist (Maybe Text)+pName = lens _pName (\ s a -> s{_pName = 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});++-- | Information that further explains the status.+pStatusDetail :: Lens' Playlist (Maybe Text)+pStatusDetail = lens _pStatusDetail (\ s a -> s{_pStatusDetail = a});++instance FromJSON Playlist where+ parseJSON+ = withObject "Playlist"+ (\ x ->+ Playlist' <$>+ (x .:? "PlayReadyDrm") <*> (x .:? "Status") <*>+ (x .:? "OutputKeys" .!= mempty)+ <*> (x .:? "Format")+ <*> (x .:? "Name")+ <*> (x .:? "HlsContentProtection")+ <*> (x .:? "StatusDetail"))++-- | Presets are templates that contain most of the settings for transcoding+-- media files from one format to another. Elastic Transcoder includes some+-- default presets for common formats, for example, several iPod and iPhone+-- versions. You can also create your own presets for formats that aren\'t+-- included among the default presets. You specify which preset you want to+-- use when you create a job.+--+-- /See:/ 'preset' smart constructor.+data Preset = Preset'+ { _preARN :: !(Maybe Text)+ , _preVideo :: !(Maybe VideoParameters)+ , _preName :: !(Maybe Text)+ , _preThumbnails :: !(Maybe Thumbnails)+ , _preContainer :: !(Maybe Text)+ , _preId :: !(Maybe Text)+ , _preType :: !(Maybe Text)+ , _preAudio :: !(Maybe AudioParameters)+ , _preDescription :: !(Maybe Text)+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'Preset' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'preARN'+--+-- * 'preVideo'+--+-- * 'preName'+--+-- * 'preThumbnails'+--+-- * 'preContainer'+--+-- * 'preId'+--+-- * 'preType'+--+-- * 'preAudio'+--+-- * 'preDescription'+preset+ :: Preset+preset =+ Preset'+ { _preARN = Nothing+ , _preVideo = Nothing+ , _preName = Nothing+ , _preThumbnails = Nothing+ , _preContainer = Nothing+ , _preId = Nothing+ , _preType = Nothing+ , _preAudio = Nothing+ , _preDescription = Nothing+ }++-- | The Amazon Resource Name (ARN) for the preset.+preARN :: Lens' Preset (Maybe Text)+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});++-- | The name of the preset.+preName :: Lens' Preset (Maybe Text)+preName = lens _preName (\ s a -> s{_preName = 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});++-- | 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});++-- | 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});++-- | 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});++-- | 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});++-- | A description of the preset.+preDescription :: Lens' Preset (Maybe Text)+preDescription = lens _preDescription (\ s a -> s{_preDescription = a});++instance FromJSON Preset where+ parseJSON+ = withObject "Preset"+ (\ x ->+ Preset' <$>+ (x .:? "Arn") <*> (x .:? "Video") <*> (x .:? "Name")+ <*> (x .:? "Thumbnails")+ <*> (x .:? "Container")+ <*> (x .:? "Id")+ <*> (x .:? "Type")+ <*> (x .:? "Audio")+ <*> (x .:? "Description"))++-- | 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.+--+-- /See:/ 'presetWatermark' smart constructor.+data PresetWatermark = PresetWatermark'+ { _pwVerticalAlign :: !(Maybe Text)+ , _pwSizingPolicy :: !(Maybe Text)+ , _pwMaxHeight :: !(Maybe Text)+ , _pwHorizontalOffset :: !(Maybe Text)+ , _pwOpacity :: !(Maybe Text)+ , _pwVerticalOffset :: !(Maybe Text)+ , _pwMaxWidth :: !(Maybe Text)+ , _pwId :: !(Maybe Text)+ , _pwHorizontalAlign :: !(Maybe Text)+ , _pwTarget :: !(Maybe Text)+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'PresetWatermark' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'pwVerticalAlign'+--+-- * 'pwSizingPolicy'+--+-- * 'pwMaxHeight'+--+-- * 'pwHorizontalOffset'+--+-- * 'pwOpacity'+--+-- * 'pwVerticalOffset'+--+-- * 'pwMaxWidth'+--+-- * 'pwId'+--+-- * 'pwHorizontalAlign'+--+-- * 'pwTarget'+presetWatermark+ :: PresetWatermark+presetWatermark =+ PresetWatermark'+ { _pwVerticalAlign = Nothing+ , _pwSizingPolicy = Nothing+ , _pwMaxHeight = Nothing+ , _pwHorizontalOffset = 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});++-- | 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});++-- | 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});++-- | 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});++-- | 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});++-- | '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});++-- | 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.+pwMaxWidth :: Lens' PresetWatermark (Maybe Text)+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});++-- | 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});++-- | 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.+pwTarget :: Lens' PresetWatermark (Maybe Text)+pwTarget = lens _pwTarget (\ s a -> s{_pwTarget = a});++instance FromJSON PresetWatermark where+ parseJSON+ = withObject "PresetWatermark"+ (\ x ->+ PresetWatermark' <$>+ (x .:? "VerticalAlign") <*> (x .:? "SizingPolicy")+ <*> (x .:? "MaxHeight")+ <*> (x .:? "HorizontalOffset")+ <*> (x .:? "Opacity")+ <*> (x .:? "VerticalOffset")+ <*> (x .:? "MaxWidth")+ <*> (x .:? "Id")+ <*> (x .:? "HorizontalAlign")+ <*> (x .:? "Target"))++instance ToJSON PresetWatermark where+ toJSON PresetWatermark'{..}+ = object+ ["VerticalAlign" .= _pwVerticalAlign,+ "SizingPolicy" .= _pwSizingPolicy,+ "MaxHeight" .= _pwMaxHeight,+ "HorizontalOffset" .= _pwHorizontalOffset,+ "Opacity" .= _pwOpacity,+ "VerticalOffset" .= _pwVerticalOffset,+ "MaxWidth" .= _pwMaxWidth, "Id" .= _pwId,+ "HorizontalAlign" .= _pwHorizontalAlign,+ "Target" .= _pwTarget]++-- | Thumbnails for videos.+--+-- /See:/ 'thumbnails' smart constructor.+data Thumbnails = Thumbnails'+ { _tSizingPolicy :: !(Maybe Text)+ , _tFormat :: !(Maybe Text)+ , _tMaxHeight :: !(Maybe Text)+ , _tResolution :: !(Maybe Text)+ , _tPaddingPolicy :: !(Maybe Text)+ , _tAspectRatio :: !(Maybe Text)+ , _tInterval :: !(Maybe Text)+ , _tMaxWidth :: !(Maybe Text)+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'Thumbnails' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'tSizingPolicy'+--+-- * 'tFormat'+--+-- * 'tMaxHeight'+--+-- * 'tResolution'+--+-- * 'tPaddingPolicy'+--+-- * 'tAspectRatio'+--+-- * 'tInterval'+--+-- * 'tMaxWidth'+thumbnails+ :: Thumbnails+thumbnails =+ Thumbnails'+ { _tSizingPolicy = Nothing+ , _tFormat = Nothing+ , _tMaxHeight = Nothing+ , _tResolution = Nothing+ , _tPaddingPolicy = Nothing+ , _tAspectRatio = 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});++-- | 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});++-- | 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});++-- | 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});++-- | 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});++-- | 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});++-- | The approximate number of seconds between thumbnails. Specify an integer+-- value.+tInterval :: Lens' Thumbnails (Maybe Text)+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});++instance FromJSON Thumbnails where+ parseJSON+ = withObject "Thumbnails"+ (\ x ->+ Thumbnails' <$>+ (x .:? "SizingPolicy") <*> (x .:? "Format") <*>+ (x .:? "MaxHeight")+ <*> (x .:? "Resolution")+ <*> (x .:? "PaddingPolicy")+ <*> (x .:? "AspectRatio")+ <*> (x .:? "Interval")+ <*> (x .:? "MaxWidth"))++instance ToJSON Thumbnails where+ toJSON Thumbnails'{..}+ = object+ ["SizingPolicy" .= _tSizingPolicy,+ "Format" .= _tFormat, "MaxHeight" .= _tMaxHeight,+ "Resolution" .= _tResolution,+ "PaddingPolicy" .= _tPaddingPolicy,+ "AspectRatio" .= _tAspectRatio,+ "Interval" .= _tInterval, "MaxWidth" .= _tMaxWidth]++-- | Settings that determine when a clip begins and how long it lasts.+--+-- /See:/ 'timeSpan' smart constructor.+data TimeSpan = TimeSpan'+ { _tsStartTime :: !(Maybe Text)+ , _tsDuration :: !(Maybe Text)+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'TimeSpan' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'tsStartTime'+--+-- * 'tsDuration'+timeSpan+ :: TimeSpan+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});++-- | 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});++instance FromJSON TimeSpan where+ parseJSON+ = withObject "TimeSpan"+ (\ x ->+ TimeSpan' <$>+ (x .:? "StartTime") <*> (x .:? "Duration"))++instance ToJSON TimeSpan where+ toJSON TimeSpan'{..}+ = object+ ["StartTime" .= _tsStartTime,+ "Duration" .= _tsDuration]++-- | Details about the timing of a job.+--+-- /See:/ 'timing' smart constructor.+data Timing = Timing'+ { _tSubmitTimeMillis :: !(Maybe Integer)+ , _tFinishTimeMillis :: !(Maybe Integer)+ , _tStartTimeMillis :: !(Maybe Integer)+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'Timing' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'tSubmitTimeMillis'+--+-- * 'tFinishTimeMillis'+--+-- * 'tStartTimeMillis'+timing+ :: Timing+timing =+ Timing'+ { _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});++-- | The time the job finished transcoding, in epoch milliseconds.+tFinishTimeMillis :: Lens' Timing (Maybe Integer)+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});++instance FromJSON Timing where+ parseJSON+ = withObject "Timing"+ (\ x ->+ Timing' <$>+ (x .:? "SubmitTimeMillis") <*>+ (x .:? "FinishTimeMillis")+ <*> (x .:? "StartTimeMillis"))++-- | The 'VideoParameters' structure.+--+-- /See:/ 'videoParameters' smart constructor.+data VideoParameters = VideoParameters'+ { _vpKeyframesMaxDist :: !(Maybe Text)+ , _vpFrameRate :: !(Maybe Text)+ , _vpSizingPolicy :: !(Maybe Text)+ , _vpMaxFrameRate :: !(Maybe Text)+ , _vpMaxHeight :: !(Maybe Text)+ , _vpDisplayAspectRatio :: !(Maybe Text)+ , _vpWatermarks :: !(Maybe [PresetWatermark])+ , _vpCodec :: !(Maybe Text)+ , _vpResolution :: !(Maybe Text)+ , _vpPaddingPolicy :: !(Maybe Text)+ , _vpAspectRatio :: !(Maybe Text)+ , _vpMaxWidth :: !(Maybe Text)+ , _vpBitRate :: !(Maybe Text)+ , _vpFixedGOP :: !(Maybe Text)+ , _vpCodecOptions :: !(Maybe (Map Text Text))+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'VideoParameters' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'vpKeyframesMaxDist'+--+-- * 'vpFrameRate'+--+-- * 'vpSizingPolicy'+--+-- * 'vpMaxFrameRate'+--+-- * 'vpMaxHeight'+--+-- * 'vpDisplayAspectRatio'+--+-- * 'vpWatermarks'+--+-- * 'vpCodec'+--+-- * 'vpResolution'+--+-- * 'vpPaddingPolicy'+--+-- * 'vpAspectRatio'+--+-- * 'vpMaxWidth'+--+-- * 'vpBitRate'+--+-- * 'vpFixedGOP'+--+-- * 'vpCodecOptions'+videoParameters+ :: VideoParameters+videoParameters =+ VideoParameters'+ { _vpKeyframesMaxDist = Nothing+ , _vpFrameRate = Nothing+ , _vpSizingPolicy = Nothing+ , _vpMaxFrameRate = Nothing+ , _vpMaxHeight = Nothing+ , _vpDisplayAspectRatio = Nothing+ , _vpWatermarks = Nothing+ , _vpCodec = Nothing+ , _vpResolution = Nothing+ , _vpPaddingPolicy = Nothing+ , _vpAspectRatio = 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});++-- | 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});++-- | 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});++-- | 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});++-- | 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});++-- | 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});++-- | 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;++-- | The video codec for the output file. Valid values include 'gif',+-- 'H.264', 'mpeg2', and 'vp8'. You can only specify 'vp8' 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});++-- | 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});++-- | 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});++-- | 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});++-- | 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});++-- | 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});++-- | 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.+--+-- 'FixedGOP' must be set to 'true' for 'fmp4' containers.+vpFixedGOP :: Lens' VideoParameters (Maybe Text)+vpFixedGOP = lens _vpFixedGOP (\ s a -> s{_vpFixedGOP = a});++-- | __Profile (H.264\/VP8 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 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 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'+--+-- Elastic Transcoder may change the behavior of the+-- 'ColorspaceConversionMode' 'Auto' mode in the future. All outputs in a+-- playlist must use the same 'ColorSpaceConversionMode'.+--+-- 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;++instance FromJSON VideoParameters where+ parseJSON+ = withObject "VideoParameters"+ (\ x ->+ VideoParameters' <$>+ (x .:? "KeyframesMaxDist") <*> (x .:? "FrameRate")+ <*> (x .:? "SizingPolicy")+ <*> (x .:? "MaxFrameRate")+ <*> (x .:? "MaxHeight")+ <*> (x .:? "DisplayAspectRatio")+ <*> (x .:? "Watermarks" .!= mempty)+ <*> (x .:? "Codec")+ <*> (x .:? "Resolution")+ <*> (x .:? "PaddingPolicy")+ <*> (x .:? "AspectRatio")+ <*> (x .:? "MaxWidth")+ <*> (x .:? "BitRate")+ <*> (x .:? "FixedGOP")+ <*> (x .:? "CodecOptions" .!= mempty))++instance ToJSON VideoParameters where+ toJSON VideoParameters'{..}+ = object+ ["KeyframesMaxDist" .= _vpKeyframesMaxDist,+ "FrameRate" .= _vpFrameRate,+ "SizingPolicy" .= _vpSizingPolicy,+ "MaxFrameRate" .= _vpMaxFrameRate,+ "MaxHeight" .= _vpMaxHeight,+ "DisplayAspectRatio" .= _vpDisplayAspectRatio,+ "Watermarks" .= _vpWatermarks, "Codec" .= _vpCodec,+ "Resolution" .= _vpResolution,+ "PaddingPolicy" .= _vpPaddingPolicy,+ "AspectRatio" .= _vpAspectRatio,+ "MaxWidth" .= _vpMaxWidth, "BitRate" .= _vpBitRate,+ "FixedGOP" .= _vpFixedGOP,+ "CodecOptions" .= _vpCodecOptions]++-- | 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.+--+-- /See:/ 'warning' smart constructor.+data Warning = Warning'+ { _wCode :: !(Maybe Text)+ , _wMessage :: !(Maybe Text)+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'Warning' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'wCode'+--+-- * 'wMessage'+warning+ :: Warning+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});++-- | The message explaining what resources are in a different region from the+-- pipeline.+--+-- __Note:__ AWS KMS keys must be in the same region as the pipeline.+wMessage :: Lens' Warning (Maybe Text)+wMessage = lens _wMessage (\ s a -> s{_wMessage = a});++instance FromJSON Warning where+ parseJSON+ = withObject "Warning"+ (\ x ->+ Warning' <$> (x .:? "Code") <*> (x .:? "Message"))
+ gen/Network/AWS/ElasticTranscoder/Types/Sum.hs view
@@ -0,0 +1,20 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Network.AWS.ElasticTranscoder.Types.Sum+-- Copyright : (c) 2013-2015 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+module Network.AWS.ElasticTranscoder.Types.Sum where++import Network.AWS.Prelude
gen/Network/AWS/ElasticTranscoder/UpdatePipeline.hs view
@@ -1,287 +1,332 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE GeneralizedNewtypeDeriving #-}-{-# LANGUAGE LambdaCase #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-} +-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- | -- Module : Network.AWS.ElasticTranscoder.UpdatePipeline--- Copyright : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>--- License : This Source Code Form is subject to the terms of--- the Mozilla Public License, v. 2.0.--- A copy of the MPL can be found in the LICENSE file or--- you can obtain it at http://mozilla.org/MPL/2.0/.+-- Copyright : (c) 2013-2015 Brendan Hay+-- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : experimental+-- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Derived from AWS service descriptions, licensed under Apache 2.0.---- | Use the 'UpdatePipeline' operation to update settings for a pipeline. When you--- change pipeline settings, your changes take effect immediately. Jobs that you--- have already submitted and that Elastic Transcoder has not started to process--- are affected in addition to jobs that you submit after you change settings.+-- Use the 'UpdatePipeline' operation to update settings for a pipeline.+-- When you change pipeline settings, your changes take effect immediately.+-- Jobs that you have already submitted and that Elastic Transcoder has not+-- started to process are affected in addition to jobs that you submit+-- after you change settings. ----- <http://docs.aws.amazon.com/elastictranscoder/latest/developerguide/UpdatePipeline.html>+-- /See:/ <http://docs.aws.amazon.com/elastictranscoder/latest/developerguide/UpdatePipeline.html AWS API Reference> for UpdatePipeline. module Network.AWS.ElasticTranscoder.UpdatePipeline (- -- * Request- UpdatePipeline- -- ** Request constructor- , updatePipeline- -- ** Request lenses- , upAwsKmsKeyArn- , upContentConfig- , upId+ -- * Creating a Request+ updatePipeline+ , UpdatePipeline+ -- * Request Lenses , upInputBucket- , upName- , upNotifications+ , upContentConfig , upRole+ , upName+ , upAWSKMSKeyARN , upThumbnailConfig+ , upNotifications+ , upId - -- * Response- , UpdatePipelineResponse- -- ** Response constructor+ -- * Destructuring the Response , updatePipelineResponse- -- ** Response lenses- , uprPipeline- , uprWarnings+ , UpdatePipelineResponse+ -- * Response Lenses+ , uprsWarnings+ , uprsPipeline+ , uprsStatus ) where -import Network.AWS.Data (Object)-import Network.AWS.Prelude-import Network.AWS.Request.RestJSON-import Network.AWS.ElasticTranscoder.Types-import qualified GHC.Exts--data UpdatePipeline = UpdatePipeline- { _upAwsKmsKeyArn :: Maybe Text- , _upContentConfig :: Maybe PipelineOutputConfig- , _upId :: Text- , _upInputBucket :: Maybe Text- , _upName :: Maybe Text- , _upNotifications :: Maybe Notifications- , _upRole :: Maybe Text- , _upThumbnailConfig :: Maybe PipelineOutputConfig- } deriving (Eq, Read, Show)+import Network.AWS.ElasticTranscoder.Types+import Network.AWS.ElasticTranscoder.Types.Product+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response --- | 'UpdatePipeline' constructor.+-- | The 'UpdatePipelineRequest' structure. ----- The fields accessible through corresponding lenses are:+-- /See:/ 'updatePipeline' smart constructor.+data UpdatePipeline = UpdatePipeline'+ { _upInputBucket :: !(Maybe Text)+ , _upContentConfig :: !(Maybe PipelineOutputConfig)+ , _upRole :: !(Maybe Text)+ , _upName :: !(Maybe Text)+ , _upAWSKMSKeyARN :: !(Maybe Text)+ , _upThumbnailConfig :: !(Maybe PipelineOutputConfig)+ , _upNotifications :: !(Maybe Notifications)+ , _upId :: !Text+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'UpdatePipeline' with the minimum fields required to make a request. ----- * 'upAwsKmsKeyArn' @::@ 'Maybe' 'Text'+-- Use one of the following lenses to modify other fields as desired: ----- * 'upContentConfig' @::@ 'Maybe' 'PipelineOutputConfig'+-- * 'upInputBucket' ----- * 'upId' @::@ 'Text'+-- * 'upContentConfig' ----- * 'upInputBucket' @::@ 'Maybe' 'Text'+-- * 'upRole' ----- * 'upName' @::@ 'Maybe' 'Text'+-- * 'upName' ----- * 'upNotifications' @::@ 'Maybe' 'Notifications'+-- * 'upAWSKMSKeyARN' ----- * 'upRole' @::@ 'Maybe' 'Text'+-- * 'upThumbnailConfig' ----- * 'upThumbnailConfig' @::@ 'Maybe' 'PipelineOutputConfig'+-- * 'upNotifications' ---updatePipeline :: Text -- ^ 'upId'- -> UpdatePipeline-updatePipeline p1 = UpdatePipeline- { _upId = p1- , _upName = Nothing- , _upInputBucket = Nothing- , _upRole = Nothing- , _upAwsKmsKeyArn = Nothing- , _upNotifications = Nothing- , _upContentConfig = Nothing+-- * 'upId'+updatePipeline+ :: Text -- ^ 'upId'+ -> UpdatePipeline+updatePipeline pId_ =+ UpdatePipeline'+ { _upInputBucket = Nothing+ , _upContentConfig = Nothing+ , _upRole = Nothing+ , _upName = Nothing+ , _upAWSKMSKeyARN = Nothing , _upThumbnailConfig = Nothing+ , _upNotifications = Nothing+ , _upId = pId_ } --- | 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 })+-- | 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}); --- | 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.+-- | 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', you must also specify values+-- for 'ThumbnailConfig'. ----- If you specify values for 'ContentConfig' and 'ThumbnailConfig', omit the 'OutputBucket' object.+-- 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. 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.+-- - __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.+-- 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 })---- | The ID of the pipeline that you want to update.-upId :: Lens' UpdatePipeline Text-upId = lens _upId (\s a -> s { _upId = a })+upContentConfig = lens _upContentConfig (\ s a -> s{_upContentConfig = a}); --- | 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 })+-- | 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}); --- | The name of the pipeline. We recommend that the name be unique within the AWS--- account, but uniqueness is not enforced.+-- | 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 })--upNotifications :: Lens' UpdatePipeline (Maybe Notifications)-upNotifications = lens _upNotifications (\s a -> s { _upNotifications = a })+upName = lens _upName (\ s a -> s{_upName = 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 })+-- | 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}); --- | 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.+-- | 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', 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.+-- 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. 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.+-- - __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.+-- 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}); -data UpdatePipelineResponse = UpdatePipelineResponse- { _uprPipeline :: Maybe Pipeline- , _uprWarnings :: List "Warnings" Warning- } deriving (Eq, Read, Show)+-- | Undocumented member.+upNotifications :: Lens' UpdatePipeline (Maybe Notifications)+upNotifications = lens _upNotifications (\ s a -> s{_upNotifications = a}); --- | 'UpdatePipelineResponse' constructor.------ The fields accessible through corresponding lenses are:------ * 'uprPipeline' @::@ 'Maybe' 'Pipeline'------ * 'uprWarnings' @::@ ['Warning']----updatePipelineResponse :: UpdatePipelineResponse-updatePipelineResponse = UpdatePipelineResponse- { _uprPipeline = Nothing- , _uprWarnings = mempty- }+-- | The ID of the pipeline that you want to update.+upId :: Lens' UpdatePipeline Text+upId = lens _upId (\ s a -> s{_upId = a}); -uprPipeline :: Lens' UpdatePipelineResponse (Maybe Pipeline)-uprPipeline = lens _uprPipeline (\s a -> s { _uprPipeline = a })+instance AWSRequest UpdatePipeline where+ type Sv UpdatePipeline = ElasticTranscoder+ type Rs UpdatePipeline = UpdatePipelineResponse+ request = putJSON+ response+ = receiveJSON+ (\ s h x ->+ UpdatePipelineResponse' <$>+ (x .?> "Warnings" .!@ mempty) <*> (x .?> "Pipeline")+ <*> (pure (fromEnum s))) --- | 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.-uprWarnings :: Lens' UpdatePipelineResponse [Warning]-uprWarnings = lens _uprWarnings (\s a -> s { _uprWarnings = a }) . _List+instance ToHeaders UpdatePipeline where+ toHeaders = const mempty +instance ToJSON UpdatePipeline where+ toJSON UpdatePipeline'{..}+ = object+ ["InputBucket" .= _upInputBucket,+ "ContentConfig" .= _upContentConfig,+ "Role" .= _upRole, "Name" .= _upName,+ "AwsKmsKeyArn" .= _upAWSKMSKeyARN,+ "ThumbnailConfig" .= _upThumbnailConfig,+ "Notifications" .= _upNotifications]+ instance ToPath UpdatePipeline where- toPath UpdatePipeline{..} = mconcat- [ "/2012-09-25/pipelines/"- , toText _upId- ]+ toPath UpdatePipeline'{..}+ = mconcat ["/2012-09-25/pipelines/", toBS _upId] instance ToQuery UpdatePipeline where- toQuery = const mempty+ toQuery = const mempty -instance ToHeaders UpdatePipeline+-- | When you update a pipeline, Elastic Transcoder returns the values that+-- you specified in the request.+--+-- /See:/ 'updatePipelineResponse' smart constructor.+data UpdatePipelineResponse = UpdatePipelineResponse'+ { _uprsWarnings :: !(Maybe [Warning])+ , _uprsPipeline :: !(Maybe Pipeline)+ , _uprsStatus :: !Int+ } deriving (Eq,Read,Show,Data,Typeable,Generic) -instance ToJSON UpdatePipeline where- toJSON UpdatePipeline{..} = object- [ "Name" .= _upName- , "InputBucket" .= _upInputBucket- , "Role" .= _upRole- , "AwsKmsKeyArn" .= _upAwsKmsKeyArn- , "Notifications" .= _upNotifications- , "ContentConfig" .= _upContentConfig- , "ThumbnailConfig" .= _upThumbnailConfig- ]+-- | Creates a value of 'UpdatePipelineResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'uprsWarnings'+--+-- * 'uprsPipeline'+--+-- * 'uprsStatus'+updatePipelineResponse+ :: Int -- ^ 'uprsStatus'+ -> UpdatePipelineResponse+updatePipelineResponse pStatus_ =+ UpdatePipelineResponse'+ { _uprsWarnings = Nothing+ , _uprsPipeline = Nothing+ , _uprsStatus = pStatus_+ } -instance AWSRequest UpdatePipeline where- type Sv UpdatePipeline = ElasticTranscoder- type Rs UpdatePipeline = UpdatePipelineResponse+-- | 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; - request = put- response = jsonResponse+-- | Undocumented member.+uprsPipeline :: Lens' UpdatePipelineResponse (Maybe Pipeline)+uprsPipeline = lens _uprsPipeline (\ s a -> s{_uprsPipeline = a}); -instance FromJSON UpdatePipelineResponse where- parseJSON = withObject "UpdatePipelineResponse" $ \o -> UpdatePipelineResponse- <$> o .:? "Pipeline"- <*> o .:? "Warnings" .!= mempty+-- | The response status code.+uprsStatus :: Lens' UpdatePipelineResponse Int+uprsStatus = lens _uprsStatus (\ s a -> s{_uprsStatus = a});
gen/Network/AWS/ElasticTranscoder/UpdatePipelineNotifications.hs view
@@ -1,146 +1,163 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE GeneralizedNewtypeDeriving #-}-{-# LANGUAGE LambdaCase #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-} +-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- | -- Module : Network.AWS.ElasticTranscoder.UpdatePipelineNotifications--- Copyright : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>--- License : This Source Code Form is subject to the terms of--- the Mozilla Public License, v. 2.0.--- A copy of the MPL can be found in the LICENSE file or--- you can obtain it at http://mozilla.org/MPL/2.0/.+-- Copyright : (c) 2013-2015 Brendan Hay+-- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : experimental+-- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Derived from AWS service descriptions, licensed under Apache 2.0.---- | With the UpdatePipelineNotifications operation, you can update Amazon Simple--- Notification Service (Amazon SNS) notifications for a pipeline.+-- With the UpdatePipelineNotifications operation, you can update Amazon+-- Simple Notification Service (Amazon SNS) notifications for a pipeline. ----- When you update notifications for a pipeline, Elastic Transcoder returns the--- values that you specified in the request.+-- When you update notifications for a pipeline, Elastic Transcoder returns+-- the values that you specified in the request. ----- <http://docs.aws.amazon.com/elastictranscoder/latest/developerguide/UpdatePipelineNotifications.html>+-- /See:/ <http://docs.aws.amazon.com/elastictranscoder/latest/developerguide/UpdatePipelineNotifications.html AWS API Reference> for UpdatePipelineNotifications. module Network.AWS.ElasticTranscoder.UpdatePipelineNotifications (- -- * Request- UpdatePipelineNotifications- -- ** Request constructor- , updatePipelineNotifications- -- ** Request lenses+ -- * Creating a Request+ updatePipelineNotifications+ , UpdatePipelineNotifications+ -- * Request Lenses , upnId , upnNotifications - -- * Response- , UpdatePipelineNotificationsResponse- -- ** Response constructor+ -- * Destructuring the Response , updatePipelineNotificationsResponse- -- ** Response lenses- , upnrPipeline+ , UpdatePipelineNotificationsResponse+ -- * Response Lenses+ , upnrsPipeline+ , upnrsStatus ) where -import Network.AWS.Data (Object)-import Network.AWS.Prelude-import Network.AWS.Request.RestJSON-import Network.AWS.ElasticTranscoder.Types-import qualified GHC.Exts--data UpdatePipelineNotifications = UpdatePipelineNotifications- { _upnId :: Text- , _upnNotifications :: Notifications- } deriving (Eq, Read, Show)+import Network.AWS.ElasticTranscoder.Types+import Network.AWS.ElasticTranscoder.Types.Product+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response --- | 'UpdatePipelineNotifications' constructor.+-- | The 'UpdatePipelineNotificationsRequest' structure. ----- The fields accessible through corresponding lenses are:+-- /See:/ 'updatePipelineNotifications' smart constructor.+data UpdatePipelineNotifications = UpdatePipelineNotifications'+ { _upnId :: !Text+ , _upnNotifications :: !Notifications+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'UpdatePipelineNotifications' with the minimum fields required to make a request. ----- * 'upnId' @::@ 'Text'+-- Use one of the following lenses to modify other fields as desired: ----- * 'upnNotifications' @::@ 'Notifications'+-- * 'upnId' ---updatePipelineNotifications :: Text -- ^ 'upnId'- -> Notifications -- ^ 'upnNotifications'- -> UpdatePipelineNotifications-updatePipelineNotifications p1 p2 = UpdatePipelineNotifications- { _upnId = p1- , _upnNotifications = p2+-- * 'upnNotifications'+updatePipelineNotifications+ :: Text -- ^ 'upnId'+ -> Notifications -- ^ 'upnNotifications'+ -> UpdatePipelineNotifications+updatePipelineNotifications pId_ pNotifications_ =+ UpdatePipelineNotifications'+ { _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.+-- | The topic ARN for the Amazon Simple Notification Service (Amazon SNS)+-- topic that you want to notify to report job status. ----- 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.+-- 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}); -newtype UpdatePipelineNotificationsResponse = UpdatePipelineNotificationsResponse- { _upnrPipeline :: Maybe Pipeline- } deriving (Eq, Read, Show)+instance AWSRequest UpdatePipelineNotifications where+ type Sv UpdatePipelineNotifications =+ ElasticTranscoder+ type Rs UpdatePipelineNotifications =+ UpdatePipelineNotificationsResponse+ request = postJSON+ response+ = receiveJSON+ (\ s h x ->+ UpdatePipelineNotificationsResponse' <$>+ (x .?> "Pipeline") <*> (pure (fromEnum s))) --- | 'UpdatePipelineNotificationsResponse' constructor.------ The fields accessible through corresponding lenses are:------ * 'upnrPipeline' @::@ 'Maybe' 'Pipeline'----updatePipelineNotificationsResponse :: UpdatePipelineNotificationsResponse-updatePipelineNotificationsResponse = UpdatePipelineNotificationsResponse- { _upnrPipeline = Nothing- }+instance ToHeaders UpdatePipelineNotifications where+ toHeaders = const mempty --- | A section of the response body that provides information about the pipeline.-upnrPipeline :: Lens' UpdatePipelineNotificationsResponse (Maybe Pipeline)-upnrPipeline = lens _upnrPipeline (\s a -> s { _upnrPipeline = a })+instance ToJSON UpdatePipelineNotifications where+ toJSON UpdatePipelineNotifications'{..}+ = object ["Notifications" .= _upnNotifications] instance ToPath UpdatePipelineNotifications where- toPath UpdatePipelineNotifications{..} = mconcat- [ "/2012-09-25/pipelines/"- , toText _upnId- , "/notifications"- ]+ toPath UpdatePipelineNotifications'{..}+ = mconcat+ ["/2012-09-25/pipelines/", toBS _upnId,+ "/notifications"] instance ToQuery UpdatePipelineNotifications where- toQuery = const mempty--instance ToHeaders UpdatePipelineNotifications+ toQuery = const mempty -instance ToJSON UpdatePipelineNotifications where- toJSON UpdatePipelineNotifications{..} = object- [ "Notifications" .= _upnNotifications- ]+-- | The 'UpdatePipelineNotificationsResponse' structure.+--+-- /See:/ 'updatePipelineNotificationsResponse' smart constructor.+data UpdatePipelineNotificationsResponse = UpdatePipelineNotificationsResponse'+ { _upnrsPipeline :: !(Maybe Pipeline)+ , _upnrsStatus :: !Int+ } deriving (Eq,Read,Show,Data,Typeable,Generic) -instance AWSRequest UpdatePipelineNotifications where- type Sv UpdatePipelineNotifications = ElasticTranscoder- type Rs UpdatePipelineNotifications = UpdatePipelineNotificationsResponse+-- | Creates a value of 'UpdatePipelineNotificationsResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'upnrsPipeline'+--+-- * 'upnrsStatus'+updatePipelineNotificationsResponse+ :: Int -- ^ 'upnrsStatus'+ -> UpdatePipelineNotificationsResponse+updatePipelineNotificationsResponse pStatus_ =+ UpdatePipelineNotificationsResponse'+ { _upnrsPipeline = Nothing+ , _upnrsStatus = pStatus_+ } - request = post- response = jsonResponse+-- | A section of the response body that provides information about the+-- pipeline.+upnrsPipeline :: Lens' UpdatePipelineNotificationsResponse (Maybe Pipeline)+upnrsPipeline = lens _upnrsPipeline (\ s a -> s{_upnrsPipeline = a}); -instance FromJSON UpdatePipelineNotificationsResponse where- parseJSON = withObject "UpdatePipelineNotificationsResponse" $ \o -> UpdatePipelineNotificationsResponse- <$> o .:? "Pipeline"+-- | The response status code.+upnrsStatus :: Lens' UpdatePipelineNotificationsResponse Int+upnrsStatus = lens _upnrsStatus (\ s a -> s{_upnrsStatus = a});
gen/Network/AWS/ElasticTranscoder/UpdatePipelineStatus.hs view
@@ -1,136 +1,148 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE GeneralizedNewtypeDeriving #-}-{-# LANGUAGE LambdaCase #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-} +-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- | -- Module : Network.AWS.ElasticTranscoder.UpdatePipelineStatus--- Copyright : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>--- License : This Source Code Form is subject to the terms of--- the Mozilla Public License, v. 2.0.--- A copy of the MPL can be found in the LICENSE file or--- you can obtain it at http://mozilla.org/MPL/2.0/.+-- Copyright : (c) 2013-2015 Brendan Hay+-- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : experimental+-- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Derived from AWS service descriptions, licensed under Apache 2.0.---- | The UpdatePipelineStatus operation pauses or reactivates a pipeline, so that--- the pipeline stops or restarts the processing of jobs.+-- The UpdatePipelineStatus operation pauses or reactivates a pipeline, so+-- that the pipeline stops or restarts the processing of jobs. -- -- Changing the pipeline status is useful if you want to cancel one or more--- jobs. You can't cancel jobs after Elastic Transcoder has started processing--- them; if you pause the pipeline to which you submitted the jobs, you have--- more time to get the job IDs for the jobs that you want to cancel, and to--- send a 'CancelJob' request.+-- jobs. You can\'t cancel jobs after Elastic Transcoder has started+-- processing them; if you pause the pipeline to which you submitted the+-- jobs, you have more time to get the job IDs for the jobs that you want+-- to cancel, and to send a CancelJob request. ----- <http://docs.aws.amazon.com/elastictranscoder/latest/developerguide/UpdatePipelineStatus.html>+-- /See:/ <http://docs.aws.amazon.com/elastictranscoder/latest/developerguide/UpdatePipelineStatus.html AWS API Reference> for UpdatePipelineStatus. module Network.AWS.ElasticTranscoder.UpdatePipelineStatus (- -- * Request- UpdatePipelineStatus- -- ** Request constructor- , updatePipelineStatus- -- ** Request lenses+ -- * Creating a Request+ updatePipelineStatus+ , UpdatePipelineStatus+ -- * Request Lenses , upsId , upsStatus - -- * Response- , UpdatePipelineStatusResponse- -- ** Response constructor+ -- * Destructuring the Response , updatePipelineStatusResponse- -- ** Response lenses- , upsrPipeline+ , UpdatePipelineStatusResponse+ -- * Response Lenses+ , upsrsPipeline+ , upsrsStatus ) where -import Network.AWS.Data (Object)-import Network.AWS.Prelude-import Network.AWS.Request.RestJSON-import Network.AWS.ElasticTranscoder.Types-import qualified GHC.Exts--data UpdatePipelineStatus = UpdatePipelineStatus- { _upsId :: Text- , _upsStatus :: Text- } deriving (Eq, Ord, Read, Show)+import Network.AWS.ElasticTranscoder.Types+import Network.AWS.ElasticTranscoder.Types.Product+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response --- | 'UpdatePipelineStatus' constructor.+-- | The 'UpdatePipelineStatusRequest' structure. ----- The fields accessible through corresponding lenses are:+-- /See:/ 'updatePipelineStatus' smart constructor.+data UpdatePipelineStatus = UpdatePipelineStatus'+ { _upsId :: !Text+ , _upsStatus :: !Text+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'UpdatePipelineStatus' with the minimum fields required to make a request. ----- * 'upsId' @::@ 'Text'+-- Use one of the following lenses to modify other fields as desired: ----- * 'upsStatus' @::@ 'Text'+-- * 'upsId' ---updatePipelineStatus :: Text -- ^ 'upsId'- -> Text -- ^ 'upsStatus'- -> UpdatePipelineStatus-updatePipelineStatus p1 p2 = UpdatePipelineStatus- { _upsId = p1- , _upsStatus = p2+-- * 'upsStatus'+updatePipelineStatus+ :: Text -- ^ 'upsId'+ -> Text -- ^ 'upsStatus'+ -> UpdatePipelineStatus+updatePipelineStatus pId_ pStatus_ =+ UpdatePipelineStatus'+ { _upsId = pId_+ , _upsStatus = 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.+-- - '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}); -newtype UpdatePipelineStatusResponse = UpdatePipelineStatusResponse- { _upsrPipeline :: Maybe Pipeline- } deriving (Eq, Read, Show)+instance AWSRequest UpdatePipelineStatus where+ type Sv UpdatePipelineStatus = ElasticTranscoder+ type Rs UpdatePipelineStatus =+ UpdatePipelineStatusResponse+ request = postJSON+ response+ = receiveJSON+ (\ s h x ->+ UpdatePipelineStatusResponse' <$>+ (x .?> "Pipeline") <*> (pure (fromEnum s))) --- | 'UpdatePipelineStatusResponse' constructor.------ The fields accessible through corresponding lenses are:------ * 'upsrPipeline' @::@ 'Maybe' 'Pipeline'----updatePipelineStatusResponse :: UpdatePipelineStatusResponse-updatePipelineStatusResponse = UpdatePipelineStatusResponse- { _upsrPipeline = Nothing- }+instance ToHeaders UpdatePipelineStatus where+ toHeaders = const mempty --- | A section of the response body that provides information about the pipeline.-upsrPipeline :: Lens' UpdatePipelineStatusResponse (Maybe Pipeline)-upsrPipeline = lens _upsrPipeline (\s a -> s { _upsrPipeline = a })+instance ToJSON UpdatePipelineStatus where+ toJSON UpdatePipelineStatus'{..}+ = object ["Status" .= _upsStatus] instance ToPath UpdatePipelineStatus where- toPath UpdatePipelineStatus{..} = mconcat- [ "/2012-09-25/pipelines/"- , toText _upsId- , "/status"- ]+ toPath UpdatePipelineStatus'{..}+ = mconcat+ ["/2012-09-25/pipelines/", toBS _upsId, "/status"] instance ToQuery UpdatePipelineStatus where- toQuery = const mempty--instance ToHeaders UpdatePipelineStatus+ toQuery = const mempty -instance ToJSON UpdatePipelineStatus where- toJSON UpdatePipelineStatus{..} = object- [ "Status" .= _upsStatus- ]+-- | When you update status for a pipeline, Elastic Transcoder returns the+-- values that you specified in the request.+--+-- /See:/ 'updatePipelineStatusResponse' smart constructor.+data UpdatePipelineStatusResponse = UpdatePipelineStatusResponse'+ { _upsrsPipeline :: !(Maybe Pipeline)+ , _upsrsStatus :: !Int+ } deriving (Eq,Read,Show,Data,Typeable,Generic) -instance AWSRequest UpdatePipelineStatus where- type Sv UpdatePipelineStatus = ElasticTranscoder- type Rs UpdatePipelineStatus = UpdatePipelineStatusResponse+-- | Creates a value of 'UpdatePipelineStatusResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'upsrsPipeline'+--+-- * 'upsrsStatus'+updatePipelineStatusResponse+ :: Int -- ^ 'upsrsStatus'+ -> UpdatePipelineStatusResponse+updatePipelineStatusResponse pStatus_ =+ UpdatePipelineStatusResponse'+ { _upsrsPipeline = Nothing+ , _upsrsStatus = pStatus_+ } - request = post- response = jsonResponse+-- | 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}); -instance FromJSON UpdatePipelineStatusResponse where- parseJSON = withObject "UpdatePipelineStatusResponse" $ \o -> UpdatePipelineStatusResponse- <$> o .:? "Pipeline"+-- | The response status code.+upsrsStatus :: Lens' UpdatePipelineStatusResponse Int+upsrsStatus = lens _upsrsStatus (\ s a -> s{_upsrsStatus = a});
gen/Network/AWS/ElasticTranscoder/Waiters.hs view
@@ -1,35 +1,43 @@ {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE TypeFamilies #-} +{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- | -- Module : Network.AWS.ElasticTranscoder.Waiters--- Copyright : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>--- License : This Source Code Form is subject to the terms of--- the Mozilla Public License, v. 2.0.--- A copy of the MPL can be found in the LICENSE file or--- you can obtain it at http://mozilla.org/MPL/2.0/.+-- Copyright : (c) 2013-2015 Brendan Hay+-- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : experimental+-- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Derived from AWS service descriptions, licensed under Apache 2.0.- module Network.AWS.ElasticTranscoder.Waiters where -import Network.AWS.ElasticTranscoder.ReadJob-import Network.AWS.ElasticTranscoder.Types-import Network.AWS.Waiters+import Network.AWS.ElasticTranscoder.ReadJob+import Network.AWS.ElasticTranscoder.Types+import Network.AWS.Prelude+import Network.AWS.Waiter +-- | Polls 'Network.AWS.ElasticTranscoder.ReadJob' every 30 seconds until a+-- successful state is reached. An error is returned after 120 failed checks. jobComplete :: Wait ReadJob-jobComplete = Wait- { _waitName = "JobComplete"- , _waitAttempts = 120- , _waitDelay = 30- , _waitAcceptors =- [ matchAll "Complete" AcceptSuccess- (rjrJob . jStatus)- , matchAll "Canceled" AcceptFailure- (rjrJob . jStatus)- , matchAll "Error" AcceptFailure- (rjrJob . jStatus)- ]+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)] }
+ test/Main.hs view
@@ -0,0 +1,21 @@+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- |+-- Module : Main+-- Copyright : (c) 2013-2015 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+module Main (main) where++import Test.Tasty+import Test.AWS.ElasticTranscoder+import Test.AWS.ElasticTranscoder.Internal++main :: IO ()+main = defaultMain $ testGroup "ElasticTranscoder"+ [ testGroup "tests" tests+ , testGroup "fixtures" fixtures+ ]
+ test/Test/AWS/ElasticTranscoder.hs view
@@ -0,0 +1,26 @@+{-# LANGUAGE OverloadedStrings #-}++-- Module : Test.AWS.ElasticTranscoder+-- Copyright : (c) 2013-2015 Brendan Hay+-- License : This Source Code Form is subject to the terms of+-- the Mozilla Public License, v. 2.0.+-- A copy of the MPL can be found in the LICENSE file or+-- you can obtain it at http://mozilla.org/MPL/2.0/.+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability : experimental+-- Portability : non-portable (GHC extensions)++module Test.AWS.ElasticTranscoder+ ( tests+ , fixtures+ ) where++import Network.AWS.ElasticTranscoder+import Test.AWS.Gen.ElasticTranscoder+import Test.Tasty++tests :: [TestTree]+tests = []++fixtures :: [TestTree]+fixtures = []
+ test/Test/AWS/ElasticTranscoder/Internal.hs view
@@ -0,0 +1,16 @@+{-# LANGUAGE OverloadedStrings #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Module : Test.AWS.ElasticTranscoder.Internal+-- Copyright : (c) 2013-2015 Brendan Hay+-- License : This Source Code Form is subject to the terms of+-- the Mozilla Public License, v. 2.0.+-- A copy of the MPL can be found in the LICENSE file or+-- you can obtain it at http://mozilla.org/MPL/2.0/.+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability : experimental+-- Portability : non-portable (GHC extensions)++module Test.AWS.ElasticTranscoder.Internal where++import Test.AWS.Prelude
+ test/Test/AWS/Gen/ElasticTranscoder.hs view
@@ -0,0 +1,328 @@+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-orphans #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Test.AWS.Gen.ElasticTranscoder+-- Copyright : (c) 2013-2015 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+module Test.AWS.Gen.ElasticTranscoder where++import Data.Proxy+import Test.AWS.Fixture+import Test.AWS.Prelude+import Test.Tasty+import Network.AWS.ElasticTranscoder+import Test.AWS.ElasticTranscoder.Internal++-- Auto-generated: the actual test selection needs to be manually placed into+-- the top-level so that real test data can be incrementally added.+--+-- This commented snippet is what the entire set should look like:++-- fixtures :: TestTree+-- fixtures =+-- [ testGroup "request"+-- [ testDeletePreset $+-- deletePreset+--+-- , testListJobsByPipeline $+-- listJobsByPipeline+--+-- , testUpdatePipelineStatus $+-- updatePipelineStatus+--+-- , testTestRole $+-- testRole+--+-- , testUpdatePipeline $+-- updatePipeline+--+-- , testDeletePipeline $+-- deletePipeline+--+-- , testCreateJob $+-- createJob+--+-- , testListPipelines $+-- listPipelines+--+-- , testCreatePreset $+-- createPreset+--+-- , testListPresets $+-- listPresets+--+-- , testReadPreset $+-- readPreset+--+-- , testUpdatePipelineNotifications $+-- updatePipelineNotifications+--+-- , testReadJob $+-- readJob+--+-- , testReadPipeline $+-- readPipeline+--+-- , testCreatePipeline $+-- createPipeline+--+-- , testListJobsByStatus $+-- listJobsByStatus+--+-- , testCancelJob $+-- cancelJob+--+-- ]++-- , testGroup "response"+-- [ testDeletePresetResponse $+-- deletePresetResponse+--+-- , testListJobsByPipelineResponse $+-- listJobsByPipelineResponse+--+-- , testUpdatePipelineStatusResponse $+-- updatePipelineStatusResponse+--+-- , testTestRoleResponse $+-- testRoleResponse+--+-- , testUpdatePipelineResponse $+-- updatePipelineResponse+--+-- , testDeletePipelineResponse $+-- deletePipelineResponse+--+-- , testCreateJobResponse $+-- createJobResponse+--+-- , testListPipelinesResponse $+-- listPipelinesResponse+--+-- , testCreatePresetResponse $+-- createPresetResponse+--+-- , testListPresetsResponse $+-- listPresetsResponse+--+-- , testReadPresetResponse $+-- readPresetResponse+--+-- , testUpdatePipelineNotificationsResponse $+-- updatePipelineNotificationsResponse+--+-- , testReadJobResponse $+-- readJobResponse+--+-- , testReadPipelineResponse $+-- readPipelineResponse+--+-- , testCreatePipelineResponse $+-- createPipelineResponse+--+-- , testListJobsByStatusResponse $+-- listJobsByStatusResponse+--+-- , testCancelJobResponse $+-- cancelJobResponse+--+-- ]+-- ]++-- Requests++testDeletePreset :: DeletePreset -> TestTree+testDeletePreset = req+ "DeletePreset"+ "fixture/DeletePreset"++testListJobsByPipeline :: ListJobsByPipeline -> TestTree+testListJobsByPipeline = req+ "ListJobsByPipeline"+ "fixture/ListJobsByPipeline"++testUpdatePipelineStatus :: UpdatePipelineStatus -> TestTree+testUpdatePipelineStatus = req+ "UpdatePipelineStatus"+ "fixture/UpdatePipelineStatus"++testTestRole :: TestRole -> TestTree+testTestRole = req+ "TestRole"+ "fixture/TestRole"++testUpdatePipeline :: UpdatePipeline -> TestTree+testUpdatePipeline = req+ "UpdatePipeline"+ "fixture/UpdatePipeline"++testDeletePipeline :: DeletePipeline -> TestTree+testDeletePipeline = req+ "DeletePipeline"+ "fixture/DeletePipeline"++testCreateJob :: CreateJob -> TestTree+testCreateJob = req+ "CreateJob"+ "fixture/CreateJob"++testListPipelines :: ListPipelines -> TestTree+testListPipelines = req+ "ListPipelines"+ "fixture/ListPipelines"++testCreatePreset :: CreatePreset -> TestTree+testCreatePreset = req+ "CreatePreset"+ "fixture/CreatePreset"++testListPresets :: ListPresets -> TestTree+testListPresets = req+ "ListPresets"+ "fixture/ListPresets"++testReadPreset :: ReadPreset -> TestTree+testReadPreset = req+ "ReadPreset"+ "fixture/ReadPreset"++testUpdatePipelineNotifications :: UpdatePipelineNotifications -> TestTree+testUpdatePipelineNotifications = req+ "UpdatePipelineNotifications"+ "fixture/UpdatePipelineNotifications"++testReadJob :: ReadJob -> TestTree+testReadJob = req+ "ReadJob"+ "fixture/ReadJob"++testReadPipeline :: ReadPipeline -> TestTree+testReadPipeline = req+ "ReadPipeline"+ "fixture/ReadPipeline"++testCreatePipeline :: CreatePipeline -> TestTree+testCreatePipeline = req+ "CreatePipeline"+ "fixture/CreatePipeline"++testListJobsByStatus :: ListJobsByStatus -> TestTree+testListJobsByStatus = req+ "ListJobsByStatus"+ "fixture/ListJobsByStatus"++testCancelJob :: CancelJob -> TestTree+testCancelJob = req+ "CancelJob"+ "fixture/CancelJob"++-- Responses++testDeletePresetResponse :: DeletePresetResponse -> TestTree+testDeletePresetResponse = res+ "DeletePresetResponse"+ "fixture/DeletePresetResponse"+ (Proxy :: Proxy DeletePreset)++testListJobsByPipelineResponse :: ListJobsByPipelineResponse -> TestTree+testListJobsByPipelineResponse = res+ "ListJobsByPipelineResponse"+ "fixture/ListJobsByPipelineResponse"+ (Proxy :: Proxy ListJobsByPipeline)++testUpdatePipelineStatusResponse :: UpdatePipelineStatusResponse -> TestTree+testUpdatePipelineStatusResponse = res+ "UpdatePipelineStatusResponse"+ "fixture/UpdatePipelineStatusResponse"+ (Proxy :: Proxy UpdatePipelineStatus)++testTestRoleResponse :: TestRoleResponse -> TestTree+testTestRoleResponse = res+ "TestRoleResponse"+ "fixture/TestRoleResponse"+ (Proxy :: Proxy TestRole)++testUpdatePipelineResponse :: UpdatePipelineResponse -> TestTree+testUpdatePipelineResponse = res+ "UpdatePipelineResponse"+ "fixture/UpdatePipelineResponse"+ (Proxy :: Proxy UpdatePipeline)++testDeletePipelineResponse :: DeletePipelineResponse -> TestTree+testDeletePipelineResponse = res+ "DeletePipelineResponse"+ "fixture/DeletePipelineResponse"+ (Proxy :: Proxy DeletePipeline)++testCreateJobResponse :: CreateJobResponse -> TestTree+testCreateJobResponse = res+ "CreateJobResponse"+ "fixture/CreateJobResponse"+ (Proxy :: Proxy CreateJob)++testListPipelinesResponse :: ListPipelinesResponse -> TestTree+testListPipelinesResponse = res+ "ListPipelinesResponse"+ "fixture/ListPipelinesResponse"+ (Proxy :: Proxy ListPipelines)++testCreatePresetResponse :: CreatePresetResponse -> TestTree+testCreatePresetResponse = res+ "CreatePresetResponse"+ "fixture/CreatePresetResponse"+ (Proxy :: Proxy CreatePreset)++testListPresetsResponse :: ListPresetsResponse -> TestTree+testListPresetsResponse = res+ "ListPresetsResponse"+ "fixture/ListPresetsResponse"+ (Proxy :: Proxy ListPresets)++testReadPresetResponse :: ReadPresetResponse -> TestTree+testReadPresetResponse = res+ "ReadPresetResponse"+ "fixture/ReadPresetResponse"+ (Proxy :: Proxy ReadPreset)++testUpdatePipelineNotificationsResponse :: UpdatePipelineNotificationsResponse -> TestTree+testUpdatePipelineNotificationsResponse = res+ "UpdatePipelineNotificationsResponse"+ "fixture/UpdatePipelineNotificationsResponse"+ (Proxy :: Proxy UpdatePipelineNotifications)++testReadJobResponse :: ReadJobResponse -> TestTree+testReadJobResponse = res+ "ReadJobResponse"+ "fixture/ReadJobResponse"+ (Proxy :: Proxy ReadJob)++testReadPipelineResponse :: ReadPipelineResponse -> TestTree+testReadPipelineResponse = res+ "ReadPipelineResponse"+ "fixture/ReadPipelineResponse"+ (Proxy :: Proxy ReadPipeline)++testCreatePipelineResponse :: CreatePipelineResponse -> TestTree+testCreatePipelineResponse = res+ "CreatePipelineResponse"+ "fixture/CreatePipelineResponse"+ (Proxy :: Proxy CreatePipeline)++testListJobsByStatusResponse :: ListJobsByStatusResponse -> TestTree+testListJobsByStatusResponse = res+ "ListJobsByStatusResponse"+ "fixture/ListJobsByStatusResponse"+ (Proxy :: Proxy ListJobsByStatus)++testCancelJobResponse :: CancelJobResponse -> TestTree+testCancelJobResponse = res+ "CancelJobResponse"+ "fixture/CancelJobResponse"+ (Proxy :: Proxy CancelJob)