packages feed

amazonka-mediapackage (empty) → 1.6.0

raw patch · 47 files changed

+5170/−0 lines, 47 filesdep +amazonka-coredep +amazonka-mediapackagedep +amazonka-testsetup-changed

Dependencies added: amazonka-core, amazonka-mediapackage, amazonka-test, base, bytestring, tasty, tasty-hunit, text, time, unordered-containers

Files

+ LICENSE view
@@ -0,0 +1,367 @@+Mozilla Public License Version 2.0+==================================++1. Definitions+--------------++1.1. "Contributor"+    means each individual or legal entity that creates, contributes to+    the creation of, or owns Covered Software.++1.2. "Contributor Version"+    means the combination of the Contributions of others (if any) used+    by a Contributor and that particular Contributor's Contribution.++1.3. "Contribution"+    means Covered Software of a particular Contributor.++1.4. "Covered Software"+    means Source Code Form to which the initial Contributor has attached+    the notice in Exhibit A, the Executable Form of such Source Code+    Form, and Modifications of such Source Code Form, in each case+    including portions thereof.++1.5. "Incompatible With Secondary Licenses"+    means++    (a) that the initial Contributor has attached the notice described+        in Exhibit B to the Covered Software; or++    (b) that the Covered Software was made available under the terms of+        version 1.1 or earlier of the License, but not also under the+        terms of a Secondary License.++1.6. "Executable Form"+    means any form of the work other than Source Code Form.++1.7. "Larger Work"+    means a work that combines Covered Software with other material, in+    a separate file or files, that is not Covered Software.++1.8. "License"+    means this document.++1.9. "Licensable"+    means having the right to grant, to the maximum extent possible,+    whether at the time of the initial grant or subsequently, any and+    all of the rights conveyed by this License.++1.10. "Modifications"+    means any of the following:++    (a) any file in Source Code Form that results from an addition to,+        deletion from, or modification of the contents of Covered+        Software; or++    (b) any new file in Source Code Form that contains any Covered+        Software.++1.11. "Patent Claims" of a Contributor+    means any patent claim(s), including without limitation, method,+    process, and apparatus claims, in any patent Licensable by such+    Contributor that would be infringed, but for the grant of the+    License, by the making, using, selling, offering for sale, having+    made, import, or transfer of either its Contributions or its+    Contributor Version.++1.12. "Secondary License"+    means either the GNU General Public License, Version 2.0, the GNU+    Lesser General Public License, Version 2.1, the GNU Affero General+    Public License, Version 3.0, or any later versions of those+    licenses.++1.13. "Source Code Form"+    means the form of the work preferred for making modifications.++1.14. "You" (or "Your")+    means an individual or a legal entity exercising rights under this+    License. For legal entities, "You" includes any entity that+    controls, is controlled by, or is under common control with You. For+    purposes of this definition, "control" means (a) the power, direct+    or indirect, to cause the direction or management of such entity,+    whether by contract or otherwise, or (b) ownership of more than+    fifty percent (50%) of the outstanding shares or beneficial+    ownership of such entity.++2. License Grants and Conditions+--------------------------------++2.1. Grants++Each Contributor hereby grants You a world-wide, royalty-free,+non-exclusive license:++(a) under intellectual property rights (other than patent or trademark)+    Licensable by such Contributor to use, reproduce, make available,+    modify, display, perform, distribute, and otherwise exploit its+    Contributions, either on an unmodified basis, with Modifications, or+    as part of a Larger Work; and++(b) under Patent Claims of such Contributor to make, use, sell, offer+    for sale, have made, import, and otherwise transfer either its+    Contributions or its Contributor Version.++2.2. Effective Date++The licenses granted in Section 2.1 with respect to any Contribution+become effective for each Contribution on the date the Contributor first+distributes such Contribution.++2.3. Limitations on Grant Scope++The licenses granted in this Section 2 are the only rights granted under+this License. No additional rights or licenses will be implied from the+distribution or licensing of Covered Software under this License.+Notwithstanding Section 2.1(b) above, no patent license is granted by a+Contributor:++(a) for any code that a Contributor has removed from Covered Software;+    or++(b) for infringements caused by: (i) Your and any other third party's+    modifications of Covered Software, or (ii) the combination of its+    Contributions with other software (except as part of its Contributor+    Version); or++(c) under Patent Claims infringed by Covered Software in the absence of+    its Contributions.++This License does not grant any rights in the trademarks, service marks,+or logos of any Contributor (except as may be necessary to comply with+the notice requirements in Section 3.4).++2.4. Subsequent Licenses++No Contributor makes additional grants as a result of Your choice to+distribute the Covered Software under a subsequent version of this+License (see Section 10.2) or under the terms of a Secondary License (if+permitted under the terms of Section 3.3).++2.5. Representation++Each Contributor represents that the Contributor believes its+Contributions are its original creation(s) or it has sufficient rights+to grant the rights to its Contributions conveyed by this License.++2.6. Fair Use++This License is not intended to limit any rights You have under+applicable copyright doctrines of fair use, fair dealing, or other+equivalents.++2.7. Conditions++Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted+in Section 2.1.++3. Responsibilities+-------------------++3.1. Distribution of Source Form++All distribution of Covered Software in Source Code Form, including any+Modifications that You create or to which You contribute, must be under+the terms of this License. You must inform recipients that the Source+Code Form of the Covered Software is governed by the terms of this+License, and how they can obtain a copy of this License. You may not+attempt to alter or restrict the recipients' rights in the Source Code+Form.++3.2. Distribution of Executable Form++If You distribute Covered Software in Executable Form then:++(a) such Covered Software must also be made available in Source Code+    Form, as described in Section 3.1, and You must inform recipients of+    the Executable Form how they can obtain a copy of such Source Code+    Form by reasonable means in a timely manner, at a charge no more+    than the cost of distribution to the recipient; and++(b) You may distribute such Executable Form under the terms of this+    License, or sublicense it under different terms, provided that the+    license for the Executable Form does not attempt to limit or alter+    the recipients' rights in the Source Code Form under this License.++3.3. Distribution of a Larger Work++You may create and distribute a Larger Work under terms of Your choice,+provided that You also comply with the requirements of this License for+the Covered Software. If the Larger Work is a combination of Covered+Software with a work governed by one or more Secondary Licenses, and the+Covered Software is not Incompatible With Secondary Licenses, this+License permits You to additionally distribute such Covered Software+under the terms of such Secondary License(s), so that the recipient of+the Larger Work may, at their option, further distribute the Covered+Software under the terms of either this License or such Secondary+License(s).++3.4. Notices++You may not remove or alter the substance of any license notices+(including copyright notices, patent notices, disclaimers of warranty,+or limitations of liability) contained within the Source Code Form of+the Covered Software, except that You may alter any license notices to+the extent required to remedy known factual inaccuracies.++3.5. Application of Additional Terms++You may choose to offer, and to charge a fee for, warranty, support,+indemnity or liability obligations to one or more recipients of Covered+Software. However, You may do so only on Your own behalf, and not on+behalf of any Contributor. You must make it absolutely clear that any+such warranty, support, indemnity, or liability obligation is offered by+You alone, and You hereby agree to indemnify every Contributor for any+liability incurred by such Contributor as a result of warranty, support,+indemnity or liability terms You offer. You may include additional+disclaimers of warranty and limitations of liability specific to any+jurisdiction.++4. Inability to Comply Due to Statute or Regulation+---------------------------------------------------++If it is impossible for You to comply with any of the terms of this+License with respect to some or all of the Covered Software due to+statute, judicial order, or regulation then You must: (a) comply with+the terms of this License to the maximum extent possible; and (b)+describe the limitations and the code they affect. Such description must+be placed in a text file included with all distributions of the Covered+Software under this License. Except to the extent prohibited by statute+or regulation, such description must be sufficiently detailed for a+recipient of ordinary skill to be able to understand it.++5. Termination+--------------++5.1. The rights granted under this License will terminate automatically+if You fail to comply with any of its terms. However, if You become+compliant, then the rights granted under this License from a particular+Contributor are reinstated (a) provisionally, unless and until such+Contributor explicitly and finally terminates Your grants, and (b) on an+ongoing basis, if such Contributor fails to notify You of the+non-compliance by some reasonable means prior to 60 days after You have+come back into compliance. Moreover, Your grants from a particular+Contributor are reinstated on an ongoing basis if such Contributor+notifies You of the non-compliance by some reasonable means, this is the+first time You have received notice of non-compliance with this License+from such Contributor, and You become compliant prior to 30 days after+Your receipt of the notice.++5.2. If You initiate litigation against any entity by asserting a patent+infringement claim (excluding declaratory judgment actions,+counter-claims, and cross-claims) alleging that a Contributor Version+directly or indirectly infringes any patent, then the rights granted to+You by any and all Contributors for the Covered Software under Section+2.1 of this License shall terminate.++5.3. In the event of termination under Sections 5.1 or 5.2 above, all+end user license agreements (excluding distributors and resellers) which+have been validly granted by You or Your distributors under this License+prior to termination shall survive termination.++************************************************************************+*                                                                      *+*  6. Disclaimer of Warranty                                           *+*  -------------------------                                           *+*                                                                      *+*  Covered Software is provided under this License on an "as is"       *+*  basis, without warranty of any kind, either expressed, implied, or  *+*  statutory, including, without limitation, warranties that the       *+*  Covered Software is free of defects, merchantable, fit for a        *+*  particular purpose or non-infringing. The entire risk as to the     *+*  quality and performance of the Covered Software is with You.        *+*  Should any Covered Software prove defective in any respect, You     *+*  (not any Contributor) assume the cost of any necessary servicing,   *+*  repair, or correction. This disclaimer of warranty constitutes an   *+*  essential part of this License. No use of any Covered Software is   *+*  authorized under this License except under this disclaimer.         *+*                                                                      *+************************************************************************++************************************************************************+*                                                                      *+*  7. Limitation of Liability                                          *+*  --------------------------                                          *+*                                                                      *+*  Under no circumstances and under no legal theory, whether tort      *+*  (including negligence), contract, or otherwise, shall any           *+*  Contributor, or anyone who distributes Covered Software as          *+*  permitted above, be liable to You for any direct, indirect,         *+*  special, incidental, or consequential damages of any character      *+*  including, without limitation, damages for lost profits, loss of    *+*  goodwill, work stoppage, computer failure or malfunction, or any    *+*  and all other commercial damages or losses, even if such party      *+*  shall have been informed of the possibility of such damages. This   *+*  limitation of liability shall not apply to liability for death or   *+*  personal injury resulting from such party's negligence to the       *+*  extent applicable law prohibits such limitation. Some               *+*  jurisdictions do not allow the exclusion or limitation of           *+*  incidental or consequential damages, so this exclusion and          *+*  limitation may not apply to You.                                    *+*                                                                      *+************************************************************************++8. Litigation+-------------++Any litigation relating to this License may be brought only in the+courts of a jurisdiction where the defendant maintains its principal+place of business and such litigation shall be governed by laws of that+jurisdiction, without reference to its conflict-of-law provisions.+Nothing in this Section shall prevent a party's ability to bring+cross-claims or counter-claims.++9. Miscellaneous+----------------++This License represents the complete agreement concerning the subject+matter hereof. If any provision of this License is held to be+unenforceable, such provision shall be reformed only to the extent+necessary to make it enforceable. Any law or regulation which provides+that the language of a contract shall be construed against the drafter+shall not be used to construe this License against a Contributor.++10. Versions of the License+---------------------------++10.1. New Versions++Mozilla Foundation is the license steward. Except as provided in Section+10.3, no one other than the license steward has the right to modify or+publish new versions of this License. Each version will be given a+distinguishing version number.++10.2. Effect of New Versions++You may distribute the Covered Software under the terms of the version+of the License under which You originally received the Covered Software,+or under the terms of any subsequent version published by the license+steward.++10.3. Modified Versions++If you create software not governed by this License, and you want to+create a new license for such software, you may create and use a+modified version of this License if you rename the license and remove+any references to the name of the license steward (except to note that+such modified license differs from this License).++10.4. Distributing Source Code Form that is Incompatible With Secondary+Licenses++If You choose to distribute Source Code Form that is Incompatible With+Secondary Licenses under the terms of this version of the License, the+notice described in Exhibit B of this License must be attached.++Exhibit A - Source Code Form License Notice+-------------------------------------------++  This Source Code Form is subject to the terms of the Mozilla Public+  License, v. 2.0. If a copy of the MPL was not distributed with this+  file, You can obtain one at http://mozilla.org/MPL/2.0/.++If it is not possible or desirable to put the notice in a particular+file, then You may include the notice in a location (such as a LICENSE+file in a relevant directory) where a recipient would be likely to look+for such a notice.++You may add additional accurate notices of copyright ownership.
+ README.md view
@@ -0,0 +1,45 @@+# Amazon Elemental MediaPackage SDK++* [Version](#version)+* [Description](#description)+* [Contribute](#contribute)+* [Licence](#licence)+++## Version++`1.6.0`+++## Description++Documentation is available via [Hackage](http://hackage.haskell.org/package/amazonka-mediapackage)+and the [AWS API Reference](https://aws.amazon.com/documentation/).++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, sending requests,+and receiving responses.++Lenses are used for constructing and manipulating types,+due to the depth 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).++See [Network.AWS.MediaPackage](http://hackage.haskell.org/package/amazonka-mediapackage/docs/Network-AWS-MediaPackage.html)+or [the AWS documentation](https://aws.amazon.com/documentation/) to get started.+++## Contribute++For any problems, comments, or feedback please create an issue [here on GitHub](https://github.com/brendanhay/amazonka/issues).++> _Note:_ this library is an auto-generated Haskell package. Please see `amazonka-gen` for more information.+++## Licence++`amazonka-mediapackage` is released under the [Mozilla Public License Version 2.0](http://www.mozilla.org/MPL/).++Parts of the code are derived from AWS service descriptions, licensed under Apache 2.0.+Source files subject to this contain an additional licensing clause in their header.
+ Setup.hs view
@@ -0,0 +1,2 @@+import           Distribution.Simple+main = defaultMain
+ amazonka-mediapackage.cabal view
@@ -0,0 +1,96 @@+name:                  amazonka-mediapackage+version:               1.6.0+synopsis:              Amazon Elemental MediaPackage SDK.+homepage:              https://github.com/brendanhay/amazonka+bug-reports:           https://github.com/brendanhay/amazonka/issues+license:               MPL-2.0+license-file:          LICENSE+author:                Brendan Hay+maintainer:            Brendan Hay <brendan.g.hay+amazonka@gmail.com>+copyright:             Copyright (c) 2013-2018 Brendan Hay+category:              Network, AWS, Cloud, Distributed Computing+build-type:            Simple+cabal-version:         >= 1.10+extra-source-files:    README.md fixture/*.yaml fixture/*.proto src/.gitkeep+description:+    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, sending requests,+    and receiving responses.+    .+    Lenses are used for constructing and manipulating types,+    due to the depth 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.MediaPackage" or <https://aws.amazon.com/documentation/ the AWS documentation>+    to get started.++source-repository head+    type:              git+    location:          git://github.com/brendanhay/amazonka.git+    subdir:            amazonka-mediapackage++library+    default-language:  Haskell2010+    hs-source-dirs:    src gen++    ghc-options:+        -Wall+        -fwarn-incomplete-uni-patterns+        -fwarn-incomplete-record-updates+        -funbox-strict-fields++    exposed-modules:+          Network.AWS.MediaPackage+        , Network.AWS.MediaPackage.CreateChannel+        , Network.AWS.MediaPackage.CreateOriginEndpoint+        , Network.AWS.MediaPackage.DeleteChannel+        , Network.AWS.MediaPackage.DeleteOriginEndpoint+        , Network.AWS.MediaPackage.DescribeChannel+        , Network.AWS.MediaPackage.DescribeOriginEndpoint+        , Network.AWS.MediaPackage.ListChannels+        , Network.AWS.MediaPackage.ListOriginEndpoints+        , Network.AWS.MediaPackage.RotateChannelCredentials+        , Network.AWS.MediaPackage.Types+        , Network.AWS.MediaPackage.UpdateChannel+        , Network.AWS.MediaPackage.UpdateOriginEndpoint+        , Network.AWS.MediaPackage.Waiters++    other-modules:+          Network.AWS.MediaPackage.Types.Product+        , Network.AWS.MediaPackage.Types.Sum++    build-depends:+          amazonka-core == 1.6.0.*+        , base          >= 4.7     && < 5++test-suite amazonka-mediapackage-test+    type:              exitcode-stdio-1.0+    default-language:  Haskell2010+    hs-source-dirs:    test+    main-is:           Main.hs++    ghc-options:       -Wall -threaded++    -- This section is encoded by the template and any modules added by+    -- hand outside these namespaces will not correctly be added to the+    -- distribution package.+    other-modules:+          Test.AWS.MediaPackage+        , Test.AWS.Gen.MediaPackage+        , Test.AWS.MediaPackage.Internal++    build-depends:+          amazonka-core == 1.6.0.*+        , amazonka-test == 1.6.0.*+        , amazonka-mediapackage+        , base+        , bytestring+        , tasty+        , tasty-hunit+        , text+        , time+        , unordered-containers
+ fixture/CreateChannel.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/mediapackage/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  mediapackage.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/CreateChannelResponse.proto view
+ fixture/CreateOriginEndpoint.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/mediapackage/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  mediapackage.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/CreateOriginEndpointResponse.proto view
+ fixture/DeleteChannel.yaml view
@@ -0,0 +1,10 @@+---+method: DELETE+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/mediapackage/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  mediapackage.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/DeleteChannelResponse.proto view
+ fixture/DeleteOriginEndpoint.yaml view
@@ -0,0 +1,10 @@+---+method: DELETE+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/mediapackage/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  mediapackage.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/DeleteOriginEndpointResponse.proto view
+ fixture/DescribeChannel.yaml view
@@ -0,0 +1,10 @@+---+method: GET+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/mediapackage/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  mediapackage.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/DescribeChannelResponse.proto view
+ fixture/DescribeOriginEndpoint.yaml view
@@ -0,0 +1,10 @@+---+method: GET+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/mediapackage/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  mediapackage.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/DescribeOriginEndpointResponse.proto view
+ fixture/ListChannels.yaml view
@@ -0,0 +1,10 @@+---+method: GET+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/mediapackage/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  mediapackage.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/ListChannelsResponse.proto view
+ fixture/ListOriginEndpoints.yaml view
@@ -0,0 +1,10 @@+---+method: GET+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/mediapackage/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  mediapackage.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/ListOriginEndpointsResponse.proto view
+ fixture/RotateChannelCredentials.yaml view
@@ -0,0 +1,10 @@+---+method: PUT+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/mediapackage/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  mediapackage.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/RotateChannelCredentialsResponse.proto view
+ fixture/UpdateChannel.yaml view
@@ -0,0 +1,10 @@+---+method: PUT+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/mediapackage/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  mediapackage.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/UpdateChannelResponse.proto view
+ fixture/UpdateOriginEndpoint.yaml view
@@ -0,0 +1,10 @@+---+method: PUT+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/mediapackage/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  mediapackage.us-east-1.amazonaws.com+  Content-Type:          application/x-www-form-urlencoded; charset=utf-8+  X-Amz-Content-SHA256:  abcdef+  X-Amz-Date:            20091028T223200Z+body:+  ''
+ fixture/UpdateOriginEndpointResponse.proto view
+ gen/Network/AWS/MediaPackage.hs view
@@ -0,0 +1,292 @@+{-# 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.MediaPackage+-- Copyright   : (c) 2013-2018 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- AWS Elemental MediaPackage+module Network.AWS.MediaPackage+    (+    -- * Service Configuration+      mediaPackage++    -- * Errors+    -- $errors++    -- ** UnprocessableEntityException+    , _UnprocessableEntityException++    -- ** ForbiddenException+    , _ForbiddenException++    -- ** NotFoundException+    , _NotFoundException++    -- ** TooManyRequestsException+    , _TooManyRequestsException++    -- ** InternalServerErrorException+    , _InternalServerErrorException++    -- ** ServiceUnavailableException+    , _ServiceUnavailableException++    -- * Waiters+    -- $waiters++    -- * Operations+    -- $operations++    -- ** RotateChannelCredentials+    , module Network.AWS.MediaPackage.RotateChannelCredentials++    -- ** DescribeOriginEndpoint+    , module Network.AWS.MediaPackage.DescribeOriginEndpoint++    -- ** ListChannels (Paginated)+    , module Network.AWS.MediaPackage.ListChannels++    -- ** DeleteChannel+    , module Network.AWS.MediaPackage.DeleteChannel++    -- ** UpdateChannel+    , module Network.AWS.MediaPackage.UpdateChannel++    -- ** CreateOriginEndpoint+    , module Network.AWS.MediaPackage.CreateOriginEndpoint++    -- ** ListOriginEndpoints (Paginated)+    , module Network.AWS.MediaPackage.ListOriginEndpoints++    -- ** CreateChannel+    , module Network.AWS.MediaPackage.CreateChannel++    -- ** DescribeChannel+    , module Network.AWS.MediaPackage.DescribeChannel++    -- ** DeleteOriginEndpoint+    , module Network.AWS.MediaPackage.DeleteOriginEndpoint++    -- ** UpdateOriginEndpoint+    , module Network.AWS.MediaPackage.UpdateOriginEndpoint++    -- * Types++    -- ** AdMarkers+    , AdMarkers (..)++    -- ** EncryptionMethod+    , EncryptionMethod (..)++    -- ** PlaylistType+    , PlaylistType (..)++    -- ** Profile+    , Profile (..)++    -- ** StreamOrder+    , StreamOrder (..)++    -- ** Channel+    , Channel+    , channel+    , cHlsIngest+    , cARN+    , cId+    , cDescription++    -- ** CmafEncryption+    , CmafEncryption+    , cmafEncryption+    , ceKeyRotationIntervalSeconds+    , ceSpekeKeyProvider++    -- ** CmafPackage+    , CmafPackage+    , cmafPackage+    , cpHlsManifests+    , cpSegmentDurationSeconds+    , cpStreamSelection+    , cpEncryption+    , cpSegmentPrefix++    -- ** CmafPackageCreateOrUpdateParameters+    , CmafPackageCreateOrUpdateParameters+    , cmafPackageCreateOrUpdateParameters+    , cpcoupHlsManifests+    , cpcoupSegmentDurationSeconds+    , cpcoupStreamSelection+    , cpcoupEncryption+    , cpcoupSegmentPrefix++    -- ** DashEncryption+    , DashEncryption+    , dashEncryption+    , deKeyRotationIntervalSeconds+    , deSpekeKeyProvider++    -- ** DashPackage+    , DashPackage+    , dashPackage+    , dpMinBufferTimeSeconds+    , dpProfile+    , dpSegmentDurationSeconds+    , dpStreamSelection+    , dpEncryption+    , dpMinUpdatePeriodSeconds+    , dpSuggestedPresentationDelaySeconds+    , dpManifestWindowSeconds++    -- ** HlsEncryption+    , HlsEncryption+    , hlsEncryption+    , heEncryptionMethod+    , heKeyRotationIntervalSeconds+    , heConstantInitializationVector+    , heRepeatExtXKey+    , heSpekeKeyProvider++    -- ** HlsIngest+    , HlsIngest+    , hlsIngest+    , hiIngestEndpoints++    -- ** HlsManifest+    , HlsManifest+    , hlsManifest+    , hmManifestName+    , hmURL+    , hmPlaylistType+    , hmProgramDateTimeIntervalSeconds+    , hmAdMarkers+    , hmIncludeIframeOnlyStream+    , hmPlaylistWindowSeconds+    , hmId++    -- ** HlsManifestCreateOrUpdateParameters+    , HlsManifestCreateOrUpdateParameters+    , hlsManifestCreateOrUpdateParameters+    , hmcoupManifestName+    , hmcoupPlaylistType+    , hmcoupProgramDateTimeIntervalSeconds+    , hmcoupAdMarkers+    , hmcoupIncludeIframeOnlyStream+    , hmcoupPlaylistWindowSeconds+    , hmcoupId++    -- ** HlsPackage+    , HlsPackage+    , hlsPackage+    , hpUseAudioRenditionGroup+    , hpPlaylistType+    , hpSegmentDurationSeconds+    , hpProgramDateTimeIntervalSeconds+    , hpStreamSelection+    , hpAdMarkers+    , hpEncryption+    , hpIncludeIframeOnlyStream+    , hpPlaylistWindowSeconds++    -- ** IngestEndpoint+    , IngestEndpoint+    , ingestEndpoint+    , ieURL+    , ieUsername+    , iePassword++    -- ** MssEncryption+    , MssEncryption+    , mssEncryption+    , meSpekeKeyProvider++    -- ** MssPackage+    , MssPackage+    , mssPackage+    , mpSegmentDurationSeconds+    , mpStreamSelection+    , mpEncryption+    , mpManifestWindowSeconds++    -- ** OriginEndpoint+    , OriginEndpoint+    , originEndpoint+    , oeWhitelist+    , oeHlsPackage+    , oeARN+    , oeManifestName+    , oeURL+    , oeChannelId+    , oeStartoverWindowSeconds+    , oeDashPackage+    , oeMssPackage+    , oeId+    , oeTimeDelaySeconds+    , oeCmafPackage+    , oeDescription++    -- ** SpekeKeyProvider+    , SpekeKeyProvider+    , spekeKeyProvider+    , skpURL+    , skpResourceId+    , skpRoleARN+    , skpSystemIds++    -- ** StreamSelection+    , StreamSelection+    , streamSelection+    , ssStreamOrder+    , ssMinVideoBitsPerSecond+    , ssMaxVideoBitsPerSecond+    ) where++import Network.AWS.MediaPackage.CreateChannel+import Network.AWS.MediaPackage.CreateOriginEndpoint+import Network.AWS.MediaPackage.DeleteChannel+import Network.AWS.MediaPackage.DeleteOriginEndpoint+import Network.AWS.MediaPackage.DescribeChannel+import Network.AWS.MediaPackage.DescribeOriginEndpoint+import Network.AWS.MediaPackage.ListChannels+import Network.AWS.MediaPackage.ListOriginEndpoints+import Network.AWS.MediaPackage.RotateChannelCredentials+import Network.AWS.MediaPackage.Types+import Network.AWS.MediaPackage.UpdateChannel+import Network.AWS.MediaPackage.UpdateOriginEndpoint+import Network.AWS.MediaPackage.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 'MediaPackage'.+-}++{- $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/MediaPackage/CreateChannel.hs view
@@ -0,0 +1,171 @@+{-# 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.MediaPackage.CreateChannel+-- Copyright   : (c) 2013-2018 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Creates a new Channel.+module Network.AWS.MediaPackage.CreateChannel+    (+    -- * Creating a Request+      createChannel+    , CreateChannel+    -- * Request Lenses+    , ccDescription+    , ccId++    -- * Destructuring the Response+    , createChannelResponse+    , CreateChannelResponse+    -- * Response Lenses+    , ccrsHlsIngest+    , ccrsARN+    , ccrsId+    , ccrsDescription+    , ccrsResponseStatus+    ) where++import Network.AWS.Lens+import Network.AWS.MediaPackage.Types+import Network.AWS.MediaPackage.Types.Product+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | A new Channel configuration.+--+-- /See:/ 'createChannel' smart constructor.+data CreateChannel = CreateChannel'+  { _ccDescription :: !(Maybe Text)+  , _ccId          :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'CreateChannel' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'ccDescription' - A short text description of the Channel.+--+-- * 'ccId' - The ID of the Channel. The ID must be unique within the region and it cannot be changed after a Channel is created.+createChannel+    :: Text -- ^ 'ccId'+    -> CreateChannel+createChannel pId_ = CreateChannel' {_ccDescription = Nothing, _ccId = pId_}+++-- | A short text description of the Channel.+ccDescription :: Lens' CreateChannel (Maybe Text)+ccDescription = lens _ccDescription (\ s a -> s{_ccDescription = a})++-- | The ID of the Channel. The ID must be unique within the region and it cannot be changed after a Channel is created.+ccId :: Lens' CreateChannel Text+ccId = lens _ccId (\ s a -> s{_ccId = a})++instance AWSRequest CreateChannel where+        type Rs CreateChannel = CreateChannelResponse+        request = postJSON mediaPackage+        response+          = receiveJSON+              (\ s h x ->+                 CreateChannelResponse' <$>+                   (x .?> "hlsIngest") <*> (x .?> "arn") <*>+                     (x .?> "id")+                     <*> (x .?> "description")+                     <*> (pure (fromEnum s)))++instance Hashable CreateChannel where++instance NFData CreateChannel where++instance ToHeaders CreateChannel where+        toHeaders+          = const+              (mconcat+                 ["Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON CreateChannel where+        toJSON CreateChannel'{..}+          = object+              (catMaybes+                 [("description" .=) <$> _ccDescription,+                  Just ("id" .= _ccId)])++instance ToPath CreateChannel where+        toPath = const "/channels"++instance ToQuery CreateChannel where+        toQuery = const mempty++-- | /See:/ 'createChannelResponse' smart constructor.+data CreateChannelResponse = CreateChannelResponse'+  { _ccrsHlsIngest      :: !(Maybe HlsIngest)+  , _ccrsARN            :: !(Maybe Text)+  , _ccrsId             :: !(Maybe Text)+  , _ccrsDescription    :: !(Maybe Text)+  , _ccrsResponseStatus :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'CreateChannelResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'ccrsHlsIngest' - Undocumented member.+--+-- * 'ccrsARN' - The Amazon Resource Name (ARN) assigned to the Channel.+--+-- * 'ccrsId' - The ID of the Channel.+--+-- * 'ccrsDescription' - A short text description of the Channel.+--+-- * 'ccrsResponseStatus' - -- | The response status code.+createChannelResponse+    :: Int -- ^ 'ccrsResponseStatus'+    -> CreateChannelResponse+createChannelResponse pResponseStatus_ =+  CreateChannelResponse'+    { _ccrsHlsIngest = Nothing+    , _ccrsARN = Nothing+    , _ccrsId = Nothing+    , _ccrsDescription = Nothing+    , _ccrsResponseStatus = pResponseStatus_+    }+++-- | Undocumented member.+ccrsHlsIngest :: Lens' CreateChannelResponse (Maybe HlsIngest)+ccrsHlsIngest = lens _ccrsHlsIngest (\ s a -> s{_ccrsHlsIngest = a})++-- | The Amazon Resource Name (ARN) assigned to the Channel.+ccrsARN :: Lens' CreateChannelResponse (Maybe Text)+ccrsARN = lens _ccrsARN (\ s a -> s{_ccrsARN = a})++-- | The ID of the Channel.+ccrsId :: Lens' CreateChannelResponse (Maybe Text)+ccrsId = lens _ccrsId (\ s a -> s{_ccrsId = a})++-- | A short text description of the Channel.+ccrsDescription :: Lens' CreateChannelResponse (Maybe Text)+ccrsDescription = lens _ccrsDescription (\ s a -> s{_ccrsDescription = a})++-- | -- | The response status code.+ccrsResponseStatus :: Lens' CreateChannelResponse Int+ccrsResponseStatus = lens _ccrsResponseStatus (\ s a -> s{_ccrsResponseStatus = a})++instance NFData CreateChannelResponse where
+ gen/Network/AWS/MediaPackage/CreateOriginEndpoint.hs view
@@ -0,0 +1,359 @@+{-# 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.MediaPackage.CreateOriginEndpoint+-- Copyright   : (c) 2013-2018 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Creates a new OriginEndpoint record.+module Network.AWS.MediaPackage.CreateOriginEndpoint+    (+    -- * Creating a Request+      createOriginEndpoint+    , CreateOriginEndpoint+    -- * Request Lenses+    , coeWhitelist+    , coeHlsPackage+    , coeManifestName+    , coeStartoverWindowSeconds+    , coeDashPackage+    , coeMssPackage+    , coeTimeDelaySeconds+    , coeCmafPackage+    , coeDescription+    , coeChannelId+    , coeId++    -- * Destructuring the Response+    , createOriginEndpointResponse+    , CreateOriginEndpointResponse+    -- * Response Lenses+    , coersWhitelist+    , coersHlsPackage+    , coersARN+    , coersManifestName+    , coersURL+    , coersChannelId+    , coersStartoverWindowSeconds+    , coersDashPackage+    , coersMssPackage+    , coersId+    , coersTimeDelaySeconds+    , coersCmafPackage+    , coersDescription+    , coersResponseStatus+    ) where++import Network.AWS.Lens+import Network.AWS.MediaPackage.Types+import Network.AWS.MediaPackage.Types.Product+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | Configuration parameters used to create a new OriginEndpoint.+--+-- /See:/ 'createOriginEndpoint' smart constructor.+data CreateOriginEndpoint = CreateOriginEndpoint'+  { _coeWhitelist              :: !(Maybe [Text])+  , _coeHlsPackage             :: !(Maybe HlsPackage)+  , _coeManifestName           :: !(Maybe Text)+  , _coeStartoverWindowSeconds :: !(Maybe Int)+  , _coeDashPackage            :: !(Maybe DashPackage)+  , _coeMssPackage             :: !(Maybe MssPackage)+  , _coeTimeDelaySeconds       :: !(Maybe Int)+  , _coeCmafPackage            :: !(Maybe CmafPackageCreateOrUpdateParameters)+  , _coeDescription            :: !(Maybe Text)+  , _coeChannelId              :: !Text+  , _coeId                     :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'CreateOriginEndpoint' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'coeWhitelist' - A list of source IP CIDR blocks that will be allowed to access the OriginEndpoint.+--+-- * 'coeHlsPackage' - Undocumented member.+--+-- * 'coeManifestName' - A short string that will be used as the filename of the OriginEndpoint URL (defaults to "index").+--+-- * 'coeStartoverWindowSeconds' - Maximum duration (seconds) of content to retain for startover playback. If not specified, startover playback will be disabled for the OriginEndpoint.+--+-- * 'coeDashPackage' - Undocumented member.+--+-- * 'coeMssPackage' - Undocumented member.+--+-- * 'coeTimeDelaySeconds' - Amount of delay (seconds) to enforce on the playback of live content. If not specified, there will be no time delay in effect for the OriginEndpoint.+--+-- * 'coeCmafPackage' - Undocumented member.+--+-- * 'coeDescription' - A short text description of the OriginEndpoint.+--+-- * 'coeChannelId' - The ID of the Channel that the OriginEndpoint will be associated with. This cannot be changed after the OriginEndpoint is created.+--+-- * 'coeId' - The ID of the OriginEndpoint.  The ID must be unique within the region and it cannot be changed after the OriginEndpoint is created.+createOriginEndpoint+    :: Text -- ^ 'coeChannelId'+    -> Text -- ^ 'coeId'+    -> CreateOriginEndpoint+createOriginEndpoint pChannelId_ pId_ =+  CreateOriginEndpoint'+    { _coeWhitelist = Nothing+    , _coeHlsPackage = Nothing+    , _coeManifestName = Nothing+    , _coeStartoverWindowSeconds = Nothing+    , _coeDashPackage = Nothing+    , _coeMssPackage = Nothing+    , _coeTimeDelaySeconds = Nothing+    , _coeCmafPackage = Nothing+    , _coeDescription = Nothing+    , _coeChannelId = pChannelId_+    , _coeId = pId_+    }+++-- | A list of source IP CIDR blocks that will be allowed to access the OriginEndpoint.+coeWhitelist :: Lens' CreateOriginEndpoint [Text]+coeWhitelist = lens _coeWhitelist (\ s a -> s{_coeWhitelist = a}) . _Default . _Coerce++-- | Undocumented member.+coeHlsPackage :: Lens' CreateOriginEndpoint (Maybe HlsPackage)+coeHlsPackage = lens _coeHlsPackage (\ s a -> s{_coeHlsPackage = a})++-- | A short string that will be used as the filename of the OriginEndpoint URL (defaults to "index").+coeManifestName :: Lens' CreateOriginEndpoint (Maybe Text)+coeManifestName = lens _coeManifestName (\ s a -> s{_coeManifestName = a})++-- | Maximum duration (seconds) of content to retain for startover playback. If not specified, startover playback will be disabled for the OriginEndpoint.+coeStartoverWindowSeconds :: Lens' CreateOriginEndpoint (Maybe Int)+coeStartoverWindowSeconds = lens _coeStartoverWindowSeconds (\ s a -> s{_coeStartoverWindowSeconds = a})++-- | Undocumented member.+coeDashPackage :: Lens' CreateOriginEndpoint (Maybe DashPackage)+coeDashPackage = lens _coeDashPackage (\ s a -> s{_coeDashPackage = a})++-- | Undocumented member.+coeMssPackage :: Lens' CreateOriginEndpoint (Maybe MssPackage)+coeMssPackage = lens _coeMssPackage (\ s a -> s{_coeMssPackage = a})++-- | Amount of delay (seconds) to enforce on the playback of live content. If not specified, there will be no time delay in effect for the OriginEndpoint.+coeTimeDelaySeconds :: Lens' CreateOriginEndpoint (Maybe Int)+coeTimeDelaySeconds = lens _coeTimeDelaySeconds (\ s a -> s{_coeTimeDelaySeconds = a})++-- | Undocumented member.+coeCmafPackage :: Lens' CreateOriginEndpoint (Maybe CmafPackageCreateOrUpdateParameters)+coeCmafPackage = lens _coeCmafPackage (\ s a -> s{_coeCmafPackage = a})++-- | A short text description of the OriginEndpoint.+coeDescription :: Lens' CreateOriginEndpoint (Maybe Text)+coeDescription = lens _coeDescription (\ s a -> s{_coeDescription = a})++-- | The ID of the Channel that the OriginEndpoint will be associated with. This cannot be changed after the OriginEndpoint is created.+coeChannelId :: Lens' CreateOriginEndpoint Text+coeChannelId = lens _coeChannelId (\ s a -> s{_coeChannelId = a})++-- | The ID of the OriginEndpoint.  The ID must be unique within the region and it cannot be changed after the OriginEndpoint is created.+coeId :: Lens' CreateOriginEndpoint Text+coeId = lens _coeId (\ s a -> s{_coeId = a})++instance AWSRequest CreateOriginEndpoint where+        type Rs CreateOriginEndpoint =+             CreateOriginEndpointResponse+        request = postJSON mediaPackage+        response+          = receiveJSON+              (\ s h x ->+                 CreateOriginEndpointResponse' <$>+                   (x .?> "whitelist" .!@ mempty) <*>+                     (x .?> "hlsPackage")+                     <*> (x .?> "arn")+                     <*> (x .?> "manifestName")+                     <*> (x .?> "url")+                     <*> (x .?> "channelId")+                     <*> (x .?> "startoverWindowSeconds")+                     <*> (x .?> "dashPackage")+                     <*> (x .?> "mssPackage")+                     <*> (x .?> "id")+                     <*> (x .?> "timeDelaySeconds")+                     <*> (x .?> "cmafPackage")+                     <*> (x .?> "description")+                     <*> (pure (fromEnum s)))++instance Hashable CreateOriginEndpoint where++instance NFData CreateOriginEndpoint where++instance ToHeaders CreateOriginEndpoint where+        toHeaders+          = const+              (mconcat+                 ["Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON CreateOriginEndpoint where+        toJSON CreateOriginEndpoint'{..}+          = object+              (catMaybes+                 [("whitelist" .=) <$> _coeWhitelist,+                  ("hlsPackage" .=) <$> _coeHlsPackage,+                  ("manifestName" .=) <$> _coeManifestName,+                  ("startoverWindowSeconds" .=) <$>+                    _coeStartoverWindowSeconds,+                  ("dashPackage" .=) <$> _coeDashPackage,+                  ("mssPackage" .=) <$> _coeMssPackage,+                  ("timeDelaySeconds" .=) <$> _coeTimeDelaySeconds,+                  ("cmafPackage" .=) <$> _coeCmafPackage,+                  ("description" .=) <$> _coeDescription,+                  Just ("channelId" .= _coeChannelId),+                  Just ("id" .= _coeId)])++instance ToPath CreateOriginEndpoint where+        toPath = const "/origin_endpoints"++instance ToQuery CreateOriginEndpoint where+        toQuery = const mempty++-- | /See:/ 'createOriginEndpointResponse' smart constructor.+data CreateOriginEndpointResponse = CreateOriginEndpointResponse'+  { _coersWhitelist              :: !(Maybe [Text])+  , _coersHlsPackage             :: !(Maybe HlsPackage)+  , _coersARN                    :: !(Maybe Text)+  , _coersManifestName           :: !(Maybe Text)+  , _coersURL                    :: !(Maybe Text)+  , _coersChannelId              :: !(Maybe Text)+  , _coersStartoverWindowSeconds :: !(Maybe Int)+  , _coersDashPackage            :: !(Maybe DashPackage)+  , _coersMssPackage             :: !(Maybe MssPackage)+  , _coersId                     :: !(Maybe Text)+  , _coersTimeDelaySeconds       :: !(Maybe Int)+  , _coersCmafPackage            :: !(Maybe CmafPackage)+  , _coersDescription            :: !(Maybe Text)+  , _coersResponseStatus         :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'CreateOriginEndpointResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'coersWhitelist' - A list of source IP CIDR blocks that will be allowed to access the OriginEndpoint.+--+-- * 'coersHlsPackage' - Undocumented member.+--+-- * 'coersARN' - The Amazon Resource Name (ARN) assigned to the OriginEndpoint.+--+-- * 'coersManifestName' - A short string appended to the end of the OriginEndpoint URL.+--+-- * 'coersURL' - The URL of the packaged OriginEndpoint for consumption.+--+-- * 'coersChannelId' - The ID of the Channel the OriginEndpoint is associated with.+--+-- * 'coersStartoverWindowSeconds' - Maximum duration (seconds) of content to retain for startover playback. If not specified, startover playback will be disabled for the OriginEndpoint.+--+-- * 'coersDashPackage' - Undocumented member.+--+-- * 'coersMssPackage' - Undocumented member.+--+-- * 'coersId' - The ID of the OriginEndpoint.+--+-- * 'coersTimeDelaySeconds' - Amount of delay (seconds) to enforce on the playback of live content. If not specified, there will be no time delay in effect for the OriginEndpoint.+--+-- * 'coersCmafPackage' - Undocumented member.+--+-- * 'coersDescription' - A short text description of the OriginEndpoint.+--+-- * 'coersResponseStatus' - -- | The response status code.+createOriginEndpointResponse+    :: Int -- ^ 'coersResponseStatus'+    -> CreateOriginEndpointResponse+createOriginEndpointResponse pResponseStatus_ =+  CreateOriginEndpointResponse'+    { _coersWhitelist = Nothing+    , _coersHlsPackage = Nothing+    , _coersARN = Nothing+    , _coersManifestName = Nothing+    , _coersURL = Nothing+    , _coersChannelId = Nothing+    , _coersStartoverWindowSeconds = Nothing+    , _coersDashPackage = Nothing+    , _coersMssPackage = Nothing+    , _coersId = Nothing+    , _coersTimeDelaySeconds = Nothing+    , _coersCmafPackage = Nothing+    , _coersDescription = Nothing+    , _coersResponseStatus = pResponseStatus_+    }+++-- | A list of source IP CIDR blocks that will be allowed to access the OriginEndpoint.+coersWhitelist :: Lens' CreateOriginEndpointResponse [Text]+coersWhitelist = lens _coersWhitelist (\ s a -> s{_coersWhitelist = a}) . _Default . _Coerce++-- | Undocumented member.+coersHlsPackage :: Lens' CreateOriginEndpointResponse (Maybe HlsPackage)+coersHlsPackage = lens _coersHlsPackage (\ s a -> s{_coersHlsPackage = a})++-- | The Amazon Resource Name (ARN) assigned to the OriginEndpoint.+coersARN :: Lens' CreateOriginEndpointResponse (Maybe Text)+coersARN = lens _coersARN (\ s a -> s{_coersARN = a})++-- | A short string appended to the end of the OriginEndpoint URL.+coersManifestName :: Lens' CreateOriginEndpointResponse (Maybe Text)+coersManifestName = lens _coersManifestName (\ s a -> s{_coersManifestName = a})++-- | The URL of the packaged OriginEndpoint for consumption.+coersURL :: Lens' CreateOriginEndpointResponse (Maybe Text)+coersURL = lens _coersURL (\ s a -> s{_coersURL = a})++-- | The ID of the Channel the OriginEndpoint is associated with.+coersChannelId :: Lens' CreateOriginEndpointResponse (Maybe Text)+coersChannelId = lens _coersChannelId (\ s a -> s{_coersChannelId = a})++-- | Maximum duration (seconds) of content to retain for startover playback. If not specified, startover playback will be disabled for the OriginEndpoint.+coersStartoverWindowSeconds :: Lens' CreateOriginEndpointResponse (Maybe Int)+coersStartoverWindowSeconds = lens _coersStartoverWindowSeconds (\ s a -> s{_coersStartoverWindowSeconds = a})++-- | Undocumented member.+coersDashPackage :: Lens' CreateOriginEndpointResponse (Maybe DashPackage)+coersDashPackage = lens _coersDashPackage (\ s a -> s{_coersDashPackage = a})++-- | Undocumented member.+coersMssPackage :: Lens' CreateOriginEndpointResponse (Maybe MssPackage)+coersMssPackage = lens _coersMssPackage (\ s a -> s{_coersMssPackage = a})++-- | The ID of the OriginEndpoint.+coersId :: Lens' CreateOriginEndpointResponse (Maybe Text)+coersId = lens _coersId (\ s a -> s{_coersId = a})++-- | Amount of delay (seconds) to enforce on the playback of live content. If not specified, there will be no time delay in effect for the OriginEndpoint.+coersTimeDelaySeconds :: Lens' CreateOriginEndpointResponse (Maybe Int)+coersTimeDelaySeconds = lens _coersTimeDelaySeconds (\ s a -> s{_coersTimeDelaySeconds = a})++-- | Undocumented member.+coersCmafPackage :: Lens' CreateOriginEndpointResponse (Maybe CmafPackage)+coersCmafPackage = lens _coersCmafPackage (\ s a -> s{_coersCmafPackage = a})++-- | A short text description of the OriginEndpoint.+coersDescription :: Lens' CreateOriginEndpointResponse (Maybe Text)+coersDescription = lens _coersDescription (\ s a -> s{_coersDescription = a})++-- | -- | The response status code.+coersResponseStatus :: Lens' CreateOriginEndpointResponse Int+coersResponseStatus = lens _coersResponseStatus (\ s a -> s{_coersResponseStatus = a})++instance NFData CreateOriginEndpointResponse where
+ gen/Network/AWS/MediaPackage/DeleteChannel.hs view
@@ -0,0 +1,113 @@+{-# 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.MediaPackage.DeleteChannel+-- Copyright   : (c) 2013-2018 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Deletes an existing Channel.+module Network.AWS.MediaPackage.DeleteChannel+    (+    -- * Creating a Request+      deleteChannel+    , DeleteChannel+    -- * Request Lenses+    , dcId++    -- * Destructuring the Response+    , deleteChannelResponse+    , DeleteChannelResponse+    -- * Response Lenses+    , drsResponseStatus+    ) where++import Network.AWS.Lens+import Network.AWS.MediaPackage.Types+import Network.AWS.MediaPackage.Types.Product+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'deleteChannel' smart constructor.+newtype DeleteChannel = DeleteChannel'+  { _dcId :: Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DeleteChannel' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'dcId' - The ID of the Channel to delete.+deleteChannel+    :: Text -- ^ 'dcId'+    -> DeleteChannel+deleteChannel pId_ = DeleteChannel' {_dcId = pId_}+++-- | The ID of the Channel to delete.+dcId :: Lens' DeleteChannel Text+dcId = lens _dcId (\ s a -> s{_dcId = a})++instance AWSRequest DeleteChannel where+        type Rs DeleteChannel = DeleteChannelResponse+        request = delete mediaPackage+        response+          = receiveEmpty+              (\ s h x ->+                 DeleteChannelResponse' <$> (pure (fromEnum s)))++instance Hashable DeleteChannel where++instance NFData DeleteChannel where++instance ToHeaders DeleteChannel where+        toHeaders+          = const+              (mconcat+                 ["Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToPath DeleteChannel where+        toPath DeleteChannel'{..}+          = mconcat ["/channels/", toBS _dcId]++instance ToQuery DeleteChannel where+        toQuery = const mempty++-- | /See:/ 'deleteChannelResponse' smart constructor.+newtype DeleteChannelResponse = DeleteChannelResponse'+  { _drsResponseStatus :: Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DeleteChannelResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'drsResponseStatus' - -- | The response status code.+deleteChannelResponse+    :: Int -- ^ 'drsResponseStatus'+    -> DeleteChannelResponse+deleteChannelResponse pResponseStatus_ =+  DeleteChannelResponse' {_drsResponseStatus = pResponseStatus_}+++-- | -- | The response status code.+drsResponseStatus :: Lens' DeleteChannelResponse Int+drsResponseStatus = lens _drsResponseStatus (\ s a -> s{_drsResponseStatus = a})++instance NFData DeleteChannelResponse where
+ gen/Network/AWS/MediaPackage/DeleteOriginEndpoint.hs view
@@ -0,0 +1,115 @@+{-# 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.MediaPackage.DeleteOriginEndpoint+-- Copyright   : (c) 2013-2018 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Deletes an existing OriginEndpoint.+module Network.AWS.MediaPackage.DeleteOriginEndpoint+    (+    -- * Creating a Request+      deleteOriginEndpoint+    , DeleteOriginEndpoint+    -- * Request Lenses+    , delId++    -- * Destructuring the Response+    , deleteOriginEndpointResponse+    , DeleteOriginEndpointResponse+    -- * Response Lenses+    , doersResponseStatus+    ) where++import Network.AWS.Lens+import Network.AWS.MediaPackage.Types+import Network.AWS.MediaPackage.Types.Product+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'deleteOriginEndpoint' smart constructor.+newtype DeleteOriginEndpoint = DeleteOriginEndpoint'+  { _delId :: Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DeleteOriginEndpoint' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'delId' - The ID of the OriginEndpoint to delete.+deleteOriginEndpoint+    :: Text -- ^ 'delId'+    -> DeleteOriginEndpoint+deleteOriginEndpoint pId_ = DeleteOriginEndpoint' {_delId = pId_}+++-- | The ID of the OriginEndpoint to delete.+delId :: Lens' DeleteOriginEndpoint Text+delId = lens _delId (\ s a -> s{_delId = a})++instance AWSRequest DeleteOriginEndpoint where+        type Rs DeleteOriginEndpoint =+             DeleteOriginEndpointResponse+        request = delete mediaPackage+        response+          = receiveEmpty+              (\ s h x ->+                 DeleteOriginEndpointResponse' <$>+                   (pure (fromEnum s)))++instance Hashable DeleteOriginEndpoint where++instance NFData DeleteOriginEndpoint where++instance ToHeaders DeleteOriginEndpoint where+        toHeaders+          = const+              (mconcat+                 ["Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToPath DeleteOriginEndpoint where+        toPath DeleteOriginEndpoint'{..}+          = mconcat ["/origin_endpoints/", toBS _delId]++instance ToQuery DeleteOriginEndpoint where+        toQuery = const mempty++-- | /See:/ 'deleteOriginEndpointResponse' smart constructor.+newtype DeleteOriginEndpointResponse = DeleteOriginEndpointResponse'+  { _doersResponseStatus :: Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DeleteOriginEndpointResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'doersResponseStatus' - -- | The response status code.+deleteOriginEndpointResponse+    :: Int -- ^ 'doersResponseStatus'+    -> DeleteOriginEndpointResponse+deleteOriginEndpointResponse pResponseStatus_ =+  DeleteOriginEndpointResponse' {_doersResponseStatus = pResponseStatus_}+++-- | -- | The response status code.+doersResponseStatus :: Lens' DeleteOriginEndpointResponse Int+doersResponseStatus = lens _doersResponseStatus (\ s a -> s{_doersResponseStatus = a})++instance NFData DeleteOriginEndpointResponse where
+ gen/Network/AWS/MediaPackage/DescribeChannel.hs view
@@ -0,0 +1,155 @@+{-# 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.MediaPackage.DescribeChannel+-- Copyright   : (c) 2013-2018 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Gets details about a Channel.+module Network.AWS.MediaPackage.DescribeChannel+    (+    -- * Creating a Request+      describeChannel+    , DescribeChannel+    -- * Request Lenses+    , dId++    -- * Destructuring the Response+    , describeChannelResponse+    , DescribeChannelResponse+    -- * Response Lenses+    , dcrsHlsIngest+    , dcrsARN+    , dcrsId+    , dcrsDescription+    , dcrsResponseStatus+    ) where++import Network.AWS.Lens+import Network.AWS.MediaPackage.Types+import Network.AWS.MediaPackage.Types.Product+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'describeChannel' smart constructor.+newtype DescribeChannel = DescribeChannel'+  { _dId :: Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DescribeChannel' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'dId' - The ID of a Channel.+describeChannel+    :: Text -- ^ 'dId'+    -> DescribeChannel+describeChannel pId_ = DescribeChannel' {_dId = pId_}+++-- | The ID of a Channel.+dId :: Lens' DescribeChannel Text+dId = lens _dId (\ s a -> s{_dId = a})++instance AWSRequest DescribeChannel where+        type Rs DescribeChannel = DescribeChannelResponse+        request = get mediaPackage+        response+          = receiveJSON+              (\ s h x ->+                 DescribeChannelResponse' <$>+                   (x .?> "hlsIngest") <*> (x .?> "arn") <*>+                     (x .?> "id")+                     <*> (x .?> "description")+                     <*> (pure (fromEnum s)))++instance Hashable DescribeChannel where++instance NFData DescribeChannel where++instance ToHeaders DescribeChannel where+        toHeaders+          = const+              (mconcat+                 ["Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToPath DescribeChannel where+        toPath DescribeChannel'{..}+          = mconcat ["/channels/", toBS _dId]++instance ToQuery DescribeChannel where+        toQuery = const mempty++-- | /See:/ 'describeChannelResponse' smart constructor.+data DescribeChannelResponse = DescribeChannelResponse'+  { _dcrsHlsIngest      :: !(Maybe HlsIngest)+  , _dcrsARN            :: !(Maybe Text)+  , _dcrsId             :: !(Maybe Text)+  , _dcrsDescription    :: !(Maybe Text)+  , _dcrsResponseStatus :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DescribeChannelResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'dcrsHlsIngest' - Undocumented member.+--+-- * 'dcrsARN' - The Amazon Resource Name (ARN) assigned to the Channel.+--+-- * 'dcrsId' - The ID of the Channel.+--+-- * 'dcrsDescription' - A short text description of the Channel.+--+-- * 'dcrsResponseStatus' - -- | The response status code.+describeChannelResponse+    :: Int -- ^ 'dcrsResponseStatus'+    -> DescribeChannelResponse+describeChannelResponse pResponseStatus_ =+  DescribeChannelResponse'+    { _dcrsHlsIngest = Nothing+    , _dcrsARN = Nothing+    , _dcrsId = Nothing+    , _dcrsDescription = Nothing+    , _dcrsResponseStatus = pResponseStatus_+    }+++-- | Undocumented member.+dcrsHlsIngest :: Lens' DescribeChannelResponse (Maybe HlsIngest)+dcrsHlsIngest = lens _dcrsHlsIngest (\ s a -> s{_dcrsHlsIngest = a})++-- | The Amazon Resource Name (ARN) assigned to the Channel.+dcrsARN :: Lens' DescribeChannelResponse (Maybe Text)+dcrsARN = lens _dcrsARN (\ s a -> s{_dcrsARN = a})++-- | The ID of the Channel.+dcrsId :: Lens' DescribeChannelResponse (Maybe Text)+dcrsId = lens _dcrsId (\ s a -> s{_dcrsId = a})++-- | A short text description of the Channel.+dcrsDescription :: Lens' DescribeChannelResponse (Maybe Text)+dcrsDescription = lens _dcrsDescription (\ s a -> s{_dcrsDescription = a})++-- | -- | The response status code.+dcrsResponseStatus :: Lens' DescribeChannelResponse Int+dcrsResponseStatus = lens _dcrsResponseStatus (\ s a -> s{_dcrsResponseStatus = a})++instance NFData DescribeChannelResponse where
+ gen/Network/AWS/MediaPackage/DescribeOriginEndpoint.hs view
@@ -0,0 +1,247 @@+{-# 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.MediaPackage.DescribeOriginEndpoint+-- Copyright   : (c) 2013-2018 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Gets details about an existing OriginEndpoint.+module Network.AWS.MediaPackage.DescribeOriginEndpoint+    (+    -- * Creating a Request+      describeOriginEndpoint+    , DescribeOriginEndpoint+    -- * Request Lenses+    , doeId++    -- * Destructuring the Response+    , describeOriginEndpointResponse+    , DescribeOriginEndpointResponse+    -- * Response Lenses+    , desrsWhitelist+    , desrsHlsPackage+    , desrsARN+    , desrsManifestName+    , desrsURL+    , desrsChannelId+    , desrsStartoverWindowSeconds+    , desrsDashPackage+    , desrsMssPackage+    , desrsId+    , desrsTimeDelaySeconds+    , desrsCmafPackage+    , desrsDescription+    , desrsResponseStatus+    ) where++import Network.AWS.Lens+import Network.AWS.MediaPackage.Types+import Network.AWS.MediaPackage.Types.Product+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'describeOriginEndpoint' smart constructor.+newtype DescribeOriginEndpoint = DescribeOriginEndpoint'+  { _doeId :: Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DescribeOriginEndpoint' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'doeId' - The ID of the OriginEndpoint.+describeOriginEndpoint+    :: Text -- ^ 'doeId'+    -> DescribeOriginEndpoint+describeOriginEndpoint pId_ = DescribeOriginEndpoint' {_doeId = pId_}+++-- | The ID of the OriginEndpoint.+doeId :: Lens' DescribeOriginEndpoint Text+doeId = lens _doeId (\ s a -> s{_doeId = a})++instance AWSRequest DescribeOriginEndpoint where+        type Rs DescribeOriginEndpoint =+             DescribeOriginEndpointResponse+        request = get mediaPackage+        response+          = receiveJSON+              (\ s h x ->+                 DescribeOriginEndpointResponse' <$>+                   (x .?> "whitelist" .!@ mempty) <*>+                     (x .?> "hlsPackage")+                     <*> (x .?> "arn")+                     <*> (x .?> "manifestName")+                     <*> (x .?> "url")+                     <*> (x .?> "channelId")+                     <*> (x .?> "startoverWindowSeconds")+                     <*> (x .?> "dashPackage")+                     <*> (x .?> "mssPackage")+                     <*> (x .?> "id")+                     <*> (x .?> "timeDelaySeconds")+                     <*> (x .?> "cmafPackage")+                     <*> (x .?> "description")+                     <*> (pure (fromEnum s)))++instance Hashable DescribeOriginEndpoint where++instance NFData DescribeOriginEndpoint where++instance ToHeaders DescribeOriginEndpoint where+        toHeaders+          = const+              (mconcat+                 ["Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToPath DescribeOriginEndpoint where+        toPath DescribeOriginEndpoint'{..}+          = mconcat ["/origin_endpoints/", toBS _doeId]++instance ToQuery DescribeOriginEndpoint where+        toQuery = const mempty++-- | /See:/ 'describeOriginEndpointResponse' smart constructor.+data DescribeOriginEndpointResponse = DescribeOriginEndpointResponse'+  { _desrsWhitelist              :: !(Maybe [Text])+  , _desrsHlsPackage             :: !(Maybe HlsPackage)+  , _desrsARN                    :: !(Maybe Text)+  , _desrsManifestName           :: !(Maybe Text)+  , _desrsURL                    :: !(Maybe Text)+  , _desrsChannelId              :: !(Maybe Text)+  , _desrsStartoverWindowSeconds :: !(Maybe Int)+  , _desrsDashPackage            :: !(Maybe DashPackage)+  , _desrsMssPackage             :: !(Maybe MssPackage)+  , _desrsId                     :: !(Maybe Text)+  , _desrsTimeDelaySeconds       :: !(Maybe Int)+  , _desrsCmafPackage            :: !(Maybe CmafPackage)+  , _desrsDescription            :: !(Maybe Text)+  , _desrsResponseStatus         :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DescribeOriginEndpointResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'desrsWhitelist' - A list of source IP CIDR blocks that will be allowed to access the OriginEndpoint.+--+-- * 'desrsHlsPackage' - Undocumented member.+--+-- * 'desrsARN' - The Amazon Resource Name (ARN) assigned to the OriginEndpoint.+--+-- * 'desrsManifestName' - A short string appended to the end of the OriginEndpoint URL.+--+-- * 'desrsURL' - The URL of the packaged OriginEndpoint for consumption.+--+-- * 'desrsChannelId' - The ID of the Channel the OriginEndpoint is associated with.+--+-- * 'desrsStartoverWindowSeconds' - Maximum duration (seconds) of content to retain for startover playback. If not specified, startover playback will be disabled for the OriginEndpoint.+--+-- * 'desrsDashPackage' - Undocumented member.+--+-- * 'desrsMssPackage' - Undocumented member.+--+-- * 'desrsId' - The ID of the OriginEndpoint.+--+-- * 'desrsTimeDelaySeconds' - Amount of delay (seconds) to enforce on the playback of live content. If not specified, there will be no time delay in effect for the OriginEndpoint.+--+-- * 'desrsCmafPackage' - Undocumented member.+--+-- * 'desrsDescription' - A short text description of the OriginEndpoint.+--+-- * 'desrsResponseStatus' - -- | The response status code.+describeOriginEndpointResponse+    :: Int -- ^ 'desrsResponseStatus'+    -> DescribeOriginEndpointResponse+describeOriginEndpointResponse pResponseStatus_ =+  DescribeOriginEndpointResponse'+    { _desrsWhitelist = Nothing+    , _desrsHlsPackage = Nothing+    , _desrsARN = Nothing+    , _desrsManifestName = Nothing+    , _desrsURL = Nothing+    , _desrsChannelId = Nothing+    , _desrsStartoverWindowSeconds = Nothing+    , _desrsDashPackage = Nothing+    , _desrsMssPackage = Nothing+    , _desrsId = Nothing+    , _desrsTimeDelaySeconds = Nothing+    , _desrsCmafPackage = Nothing+    , _desrsDescription = Nothing+    , _desrsResponseStatus = pResponseStatus_+    }+++-- | A list of source IP CIDR blocks that will be allowed to access the OriginEndpoint.+desrsWhitelist :: Lens' DescribeOriginEndpointResponse [Text]+desrsWhitelist = lens _desrsWhitelist (\ s a -> s{_desrsWhitelist = a}) . _Default . _Coerce++-- | Undocumented member.+desrsHlsPackage :: Lens' DescribeOriginEndpointResponse (Maybe HlsPackage)+desrsHlsPackage = lens _desrsHlsPackage (\ s a -> s{_desrsHlsPackage = a})++-- | The Amazon Resource Name (ARN) assigned to the OriginEndpoint.+desrsARN :: Lens' DescribeOriginEndpointResponse (Maybe Text)+desrsARN = lens _desrsARN (\ s a -> s{_desrsARN = a})++-- | A short string appended to the end of the OriginEndpoint URL.+desrsManifestName :: Lens' DescribeOriginEndpointResponse (Maybe Text)+desrsManifestName = lens _desrsManifestName (\ s a -> s{_desrsManifestName = a})++-- | The URL of the packaged OriginEndpoint for consumption.+desrsURL :: Lens' DescribeOriginEndpointResponse (Maybe Text)+desrsURL = lens _desrsURL (\ s a -> s{_desrsURL = a})++-- | The ID of the Channel the OriginEndpoint is associated with.+desrsChannelId :: Lens' DescribeOriginEndpointResponse (Maybe Text)+desrsChannelId = lens _desrsChannelId (\ s a -> s{_desrsChannelId = a})++-- | Maximum duration (seconds) of content to retain for startover playback. If not specified, startover playback will be disabled for the OriginEndpoint.+desrsStartoverWindowSeconds :: Lens' DescribeOriginEndpointResponse (Maybe Int)+desrsStartoverWindowSeconds = lens _desrsStartoverWindowSeconds (\ s a -> s{_desrsStartoverWindowSeconds = a})++-- | Undocumented member.+desrsDashPackage :: Lens' DescribeOriginEndpointResponse (Maybe DashPackage)+desrsDashPackage = lens _desrsDashPackage (\ s a -> s{_desrsDashPackage = a})++-- | Undocumented member.+desrsMssPackage :: Lens' DescribeOriginEndpointResponse (Maybe MssPackage)+desrsMssPackage = lens _desrsMssPackage (\ s a -> s{_desrsMssPackage = a})++-- | The ID of the OriginEndpoint.+desrsId :: Lens' DescribeOriginEndpointResponse (Maybe Text)+desrsId = lens _desrsId (\ s a -> s{_desrsId = a})++-- | Amount of delay (seconds) to enforce on the playback of live content. If not specified, there will be no time delay in effect for the OriginEndpoint.+desrsTimeDelaySeconds :: Lens' DescribeOriginEndpointResponse (Maybe Int)+desrsTimeDelaySeconds = lens _desrsTimeDelaySeconds (\ s a -> s{_desrsTimeDelaySeconds = a})++-- | Undocumented member.+desrsCmafPackage :: Lens' DescribeOriginEndpointResponse (Maybe CmafPackage)+desrsCmafPackage = lens _desrsCmafPackage (\ s a -> s{_desrsCmafPackage = a})++-- | A short text description of the OriginEndpoint.+desrsDescription :: Lens' DescribeOriginEndpointResponse (Maybe Text)+desrsDescription = lens _desrsDescription (\ s a -> s{_desrsDescription = a})++-- | -- | The response status code.+desrsResponseStatus :: Lens' DescribeOriginEndpointResponse Int+desrsResponseStatus = lens _desrsResponseStatus (\ s a -> s{_desrsResponseStatus = a})++instance NFData DescribeOriginEndpointResponse where
+ gen/Network/AWS/MediaPackage/ListChannels.hs view
@@ -0,0 +1,154 @@+{-# 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.MediaPackage.ListChannels+-- Copyright   : (c) 2013-2018 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns a collection of Channels.+--+-- This operation returns paginated results.+module Network.AWS.MediaPackage.ListChannels+    (+    -- * Creating a Request+      listChannels+    , ListChannels+    -- * Request Lenses+    , lcNextToken+    , lcMaxResults++    -- * Destructuring the Response+    , listChannelsResponse+    , ListChannelsResponse+    -- * Response Lenses+    , lcrsChannels+    , lcrsNextToken+    , lcrsResponseStatus+    ) where++import Network.AWS.Lens+import Network.AWS.MediaPackage.Types+import Network.AWS.MediaPackage.Types.Product+import Network.AWS.Pager+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'listChannels' smart constructor.+data ListChannels = ListChannels'+  { _lcNextToken  :: !(Maybe Text)+  , _lcMaxResults :: !(Maybe Nat)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'ListChannels' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'lcNextToken' - A token used to resume pagination from the end of a previous request.+--+-- * 'lcMaxResults' - Upper bound on number of records to return.+listChannels+    :: ListChannels+listChannels = ListChannels' {_lcNextToken = Nothing, _lcMaxResults = Nothing}+++-- | A token used to resume pagination from the end of a previous request.+lcNextToken :: Lens' ListChannels (Maybe Text)+lcNextToken = lens _lcNextToken (\ s a -> s{_lcNextToken = a})++-- | Upper bound on number of records to return.+lcMaxResults :: Lens' ListChannels (Maybe Natural)+lcMaxResults = lens _lcMaxResults (\ s a -> s{_lcMaxResults = a}) . mapping _Nat++instance AWSPager ListChannels where+        page rq rs+          | stop (rs ^. lcrsNextToken) = Nothing+          | stop (rs ^. lcrsChannels) = Nothing+          | otherwise =+            Just $ rq & lcNextToken .~ rs ^. lcrsNextToken++instance AWSRequest ListChannels where+        type Rs ListChannels = ListChannelsResponse+        request = get mediaPackage+        response+          = receiveJSON+              (\ s h x ->+                 ListChannelsResponse' <$>+                   (x .?> "channels" .!@ mempty) <*> (x .?> "nextToken")+                     <*> (pure (fromEnum s)))++instance Hashable ListChannels where++instance NFData ListChannels where++instance ToHeaders ListChannels where+        toHeaders+          = const+              (mconcat+                 ["Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToPath ListChannels where+        toPath = const "/channels"++instance ToQuery ListChannels where+        toQuery ListChannels'{..}+          = mconcat+              ["nextToken" =: _lcNextToken,+               "maxResults" =: _lcMaxResults]++-- | /See:/ 'listChannelsResponse' smart constructor.+data ListChannelsResponse = ListChannelsResponse'+  { _lcrsChannels       :: !(Maybe [Channel])+  , _lcrsNextToken      :: !(Maybe Text)+  , _lcrsResponseStatus :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'ListChannelsResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'lcrsChannels' - A list of Channel records.+--+-- * 'lcrsNextToken' - A token that can be used to resume pagination from the end of the collection.+--+-- * 'lcrsResponseStatus' - -- | The response status code.+listChannelsResponse+    :: Int -- ^ 'lcrsResponseStatus'+    -> ListChannelsResponse+listChannelsResponse pResponseStatus_ =+  ListChannelsResponse'+    { _lcrsChannels = Nothing+    , _lcrsNextToken = Nothing+    , _lcrsResponseStatus = pResponseStatus_+    }+++-- | A list of Channel records.+lcrsChannels :: Lens' ListChannelsResponse [Channel]+lcrsChannels = lens _lcrsChannels (\ s a -> s{_lcrsChannels = a}) . _Default . _Coerce++-- | A token that can be used to resume pagination from the end of the collection.+lcrsNextToken :: Lens' ListChannelsResponse (Maybe Text)+lcrsNextToken = lens _lcrsNextToken (\ s a -> s{_lcrsNextToken = a})++-- | -- | The response status code.+lcrsResponseStatus :: Lens' ListChannelsResponse Int+lcrsResponseStatus = lens _lcrsResponseStatus (\ s a -> s{_lcrsResponseStatus = a})++instance NFData ListChannelsResponse where
+ gen/Network/AWS/MediaPackage/ListOriginEndpoints.hs view
@@ -0,0 +1,167 @@+{-# 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.MediaPackage.ListOriginEndpoints+-- Copyright   : (c) 2013-2018 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns a collection of OriginEndpoint records.+--+-- This operation returns paginated results.+module Network.AWS.MediaPackage.ListOriginEndpoints+    (+    -- * Creating a Request+      listOriginEndpoints+    , ListOriginEndpoints+    -- * Request Lenses+    , loeChannelId+    , loeNextToken+    , loeMaxResults++    -- * Destructuring the Response+    , listOriginEndpointsResponse+    , ListOriginEndpointsResponse+    -- * Response Lenses+    , loersOriginEndpoints+    , loersNextToken+    , loersResponseStatus+    ) where++import Network.AWS.Lens+import Network.AWS.MediaPackage.Types+import Network.AWS.MediaPackage.Types.Product+import Network.AWS.Pager+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'listOriginEndpoints' smart constructor.+data ListOriginEndpoints = ListOriginEndpoints'+  { _loeChannelId  :: !(Maybe Text)+  , _loeNextToken  :: !(Maybe Text)+  , _loeMaxResults :: !(Maybe Nat)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'ListOriginEndpoints' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'loeChannelId' - When specified, the request will return only OriginEndpoints associated with the given Channel ID.+--+-- * 'loeNextToken' - A token used to resume pagination from the end of a previous request.+--+-- * 'loeMaxResults' - The upper bound on the number of records to return.+listOriginEndpoints+    :: ListOriginEndpoints+listOriginEndpoints =+  ListOriginEndpoints'+    {_loeChannelId = Nothing, _loeNextToken = Nothing, _loeMaxResults = Nothing}+++-- | When specified, the request will return only OriginEndpoints associated with the given Channel ID.+loeChannelId :: Lens' ListOriginEndpoints (Maybe Text)+loeChannelId = lens _loeChannelId (\ s a -> s{_loeChannelId = a})++-- | A token used to resume pagination from the end of a previous request.+loeNextToken :: Lens' ListOriginEndpoints (Maybe Text)+loeNextToken = lens _loeNextToken (\ s a -> s{_loeNextToken = a})++-- | The upper bound on the number of records to return.+loeMaxResults :: Lens' ListOriginEndpoints (Maybe Natural)+loeMaxResults = lens _loeMaxResults (\ s a -> s{_loeMaxResults = a}) . mapping _Nat++instance AWSPager ListOriginEndpoints where+        page rq rs+          | stop (rs ^. loersNextToken) = Nothing+          | stop (rs ^. loersOriginEndpoints) = Nothing+          | otherwise =+            Just $ rq & loeNextToken .~ rs ^. loersNextToken++instance AWSRequest ListOriginEndpoints where+        type Rs ListOriginEndpoints =+             ListOriginEndpointsResponse+        request = get mediaPackage+        response+          = receiveJSON+              (\ s h x ->+                 ListOriginEndpointsResponse' <$>+                   (x .?> "originEndpoints" .!@ mempty) <*>+                     (x .?> "nextToken")+                     <*> (pure (fromEnum s)))++instance Hashable ListOriginEndpoints where++instance NFData ListOriginEndpoints where++instance ToHeaders ListOriginEndpoints where+        toHeaders+          = const+              (mconcat+                 ["Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToPath ListOriginEndpoints where+        toPath = const "/origin_endpoints"++instance ToQuery ListOriginEndpoints where+        toQuery ListOriginEndpoints'{..}+          = mconcat+              ["channelId" =: _loeChannelId,+               "nextToken" =: _loeNextToken,+               "maxResults" =: _loeMaxResults]++-- | /See:/ 'listOriginEndpointsResponse' smart constructor.+data ListOriginEndpointsResponse = ListOriginEndpointsResponse'+  { _loersOriginEndpoints :: !(Maybe [OriginEndpoint])+  , _loersNextToken       :: !(Maybe Text)+  , _loersResponseStatus  :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'ListOriginEndpointsResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'loersOriginEndpoints' - A list of OriginEndpoint records.+--+-- * 'loersNextToken' - A token that can be used to resume pagination from the end of the collection.+--+-- * 'loersResponseStatus' - -- | The response status code.+listOriginEndpointsResponse+    :: Int -- ^ 'loersResponseStatus'+    -> ListOriginEndpointsResponse+listOriginEndpointsResponse pResponseStatus_ =+  ListOriginEndpointsResponse'+    { _loersOriginEndpoints = Nothing+    , _loersNextToken = Nothing+    , _loersResponseStatus = pResponseStatus_+    }+++-- | A list of OriginEndpoint records.+loersOriginEndpoints :: Lens' ListOriginEndpointsResponse [OriginEndpoint]+loersOriginEndpoints = lens _loersOriginEndpoints (\ s a -> s{_loersOriginEndpoints = a}) . _Default . _Coerce++-- | A token that can be used to resume pagination from the end of the collection.+loersNextToken :: Lens' ListOriginEndpointsResponse (Maybe Text)+loersNextToken = lens _loersNextToken (\ s a -> s{_loersNextToken = a})++-- | -- | The response status code.+loersResponseStatus :: Lens' ListOriginEndpointsResponse Int+loersResponseStatus = lens _loersResponseStatus (\ s a -> s{_loersResponseStatus = a})++instance NFData ListOriginEndpointsResponse where
+ gen/Network/AWS/MediaPackage/RotateChannelCredentials.hs view
@@ -0,0 +1,160 @@+{-# 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.MediaPackage.RotateChannelCredentials+-- Copyright   : (c) 2013-2018 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Changes the Channel ingest username and password.+module Network.AWS.MediaPackage.RotateChannelCredentials+    (+    -- * Creating a Request+      rotateChannelCredentials+    , RotateChannelCredentials+    -- * Request Lenses+    , rccId++    -- * Destructuring the Response+    , rotateChannelCredentialsResponse+    , RotateChannelCredentialsResponse+    -- * Response Lenses+    , rccrsHlsIngest+    , rccrsARN+    , rccrsId+    , rccrsDescription+    , rccrsResponseStatus+    ) where++import Network.AWS.Lens+import Network.AWS.MediaPackage.Types+import Network.AWS.MediaPackage.Types.Product+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'rotateChannelCredentials' smart constructor.+newtype RotateChannelCredentials = RotateChannelCredentials'+  { _rccId :: Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'RotateChannelCredentials' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'rccId' - The ID of the channel to update.+rotateChannelCredentials+    :: Text -- ^ 'rccId'+    -> RotateChannelCredentials+rotateChannelCredentials pId_ = RotateChannelCredentials' {_rccId = pId_}+++-- | The ID of the channel to update.+rccId :: Lens' RotateChannelCredentials Text+rccId = lens _rccId (\ s a -> s{_rccId = a})++instance AWSRequest RotateChannelCredentials where+        type Rs RotateChannelCredentials =+             RotateChannelCredentialsResponse+        request = putJSON mediaPackage+        response+          = receiveJSON+              (\ s h x ->+                 RotateChannelCredentialsResponse' <$>+                   (x .?> "hlsIngest") <*> (x .?> "arn") <*>+                     (x .?> "id")+                     <*> (x .?> "description")+                     <*> (pure (fromEnum s)))++instance Hashable RotateChannelCredentials where++instance NFData RotateChannelCredentials where++instance ToHeaders RotateChannelCredentials where+        toHeaders+          = const+              (mconcat+                 ["Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON RotateChannelCredentials where+        toJSON = const (Object mempty)++instance ToPath RotateChannelCredentials where+        toPath RotateChannelCredentials'{..}+          = mconcat ["/channels/", toBS _rccId, "/credentials"]++instance ToQuery RotateChannelCredentials where+        toQuery = const mempty++-- | /See:/ 'rotateChannelCredentialsResponse' smart constructor.+data RotateChannelCredentialsResponse = RotateChannelCredentialsResponse'+  { _rccrsHlsIngest      :: !(Maybe HlsIngest)+  , _rccrsARN            :: !(Maybe Text)+  , _rccrsId             :: !(Maybe Text)+  , _rccrsDescription    :: !(Maybe Text)+  , _rccrsResponseStatus :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'RotateChannelCredentialsResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'rccrsHlsIngest' - Undocumented member.+--+-- * 'rccrsARN' - The Amazon Resource Name (ARN) assigned to the Channel.+--+-- * 'rccrsId' - The ID of the Channel.+--+-- * 'rccrsDescription' - A short text description of the Channel.+--+-- * 'rccrsResponseStatus' - -- | The response status code.+rotateChannelCredentialsResponse+    :: Int -- ^ 'rccrsResponseStatus'+    -> RotateChannelCredentialsResponse+rotateChannelCredentialsResponse pResponseStatus_ =+  RotateChannelCredentialsResponse'+    { _rccrsHlsIngest = Nothing+    , _rccrsARN = Nothing+    , _rccrsId = Nothing+    , _rccrsDescription = Nothing+    , _rccrsResponseStatus = pResponseStatus_+    }+++-- | Undocumented member.+rccrsHlsIngest :: Lens' RotateChannelCredentialsResponse (Maybe HlsIngest)+rccrsHlsIngest = lens _rccrsHlsIngest (\ s a -> s{_rccrsHlsIngest = a})++-- | The Amazon Resource Name (ARN) assigned to the Channel.+rccrsARN :: Lens' RotateChannelCredentialsResponse (Maybe Text)+rccrsARN = lens _rccrsARN (\ s a -> s{_rccrsARN = a})++-- | The ID of the Channel.+rccrsId :: Lens' RotateChannelCredentialsResponse (Maybe Text)+rccrsId = lens _rccrsId (\ s a -> s{_rccrsId = a})++-- | A short text description of the Channel.+rccrsDescription :: Lens' RotateChannelCredentialsResponse (Maybe Text)+rccrsDescription = lens _rccrsDescription (\ s a -> s{_rccrsDescription = a})++-- | -- | The response status code.+rccrsResponseStatus :: Lens' RotateChannelCredentialsResponse Int+rccrsResponseStatus = lens _rccrsResponseStatus (\ s a -> s{_rccrsResponseStatus = a})++instance NFData RotateChannelCredentialsResponse+         where
+ gen/Network/AWS/MediaPackage/Types.hs view
@@ -0,0 +1,273 @@+{-# LANGUAGE OverloadedStrings #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Network.AWS.MediaPackage.Types+-- Copyright   : (c) 2013-2018 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+module Network.AWS.MediaPackage.Types+    (+    -- * Service Configuration+      mediaPackage++    -- * Errors+    , _UnprocessableEntityException+    , _ForbiddenException+    , _NotFoundException+    , _TooManyRequestsException+    , _InternalServerErrorException+    , _ServiceUnavailableException++    -- * AdMarkers+    , AdMarkers (..)++    -- * EncryptionMethod+    , EncryptionMethod (..)++    -- * PlaylistType+    , PlaylistType (..)++    -- * Profile+    , Profile (..)++    -- * StreamOrder+    , StreamOrder (..)++    -- * Channel+    , Channel+    , channel+    , cHlsIngest+    , cARN+    , cId+    , cDescription++    -- * CmafEncryption+    , CmafEncryption+    , cmafEncryption+    , ceKeyRotationIntervalSeconds+    , ceSpekeKeyProvider++    -- * CmafPackage+    , CmafPackage+    , cmafPackage+    , cpHlsManifests+    , cpSegmentDurationSeconds+    , cpStreamSelection+    , cpEncryption+    , cpSegmentPrefix++    -- * CmafPackageCreateOrUpdateParameters+    , CmafPackageCreateOrUpdateParameters+    , cmafPackageCreateOrUpdateParameters+    , cpcoupHlsManifests+    , cpcoupSegmentDurationSeconds+    , cpcoupStreamSelection+    , cpcoupEncryption+    , cpcoupSegmentPrefix++    -- * DashEncryption+    , DashEncryption+    , dashEncryption+    , deKeyRotationIntervalSeconds+    , deSpekeKeyProvider++    -- * DashPackage+    , DashPackage+    , dashPackage+    , dpMinBufferTimeSeconds+    , dpProfile+    , dpSegmentDurationSeconds+    , dpStreamSelection+    , dpEncryption+    , dpMinUpdatePeriodSeconds+    , dpSuggestedPresentationDelaySeconds+    , dpManifestWindowSeconds++    -- * HlsEncryption+    , HlsEncryption+    , hlsEncryption+    , heEncryptionMethod+    , heKeyRotationIntervalSeconds+    , heConstantInitializationVector+    , heRepeatExtXKey+    , heSpekeKeyProvider++    -- * HlsIngest+    , HlsIngest+    , hlsIngest+    , hiIngestEndpoints++    -- * HlsManifest+    , HlsManifest+    , hlsManifest+    , hmManifestName+    , hmURL+    , hmPlaylistType+    , hmProgramDateTimeIntervalSeconds+    , hmAdMarkers+    , hmIncludeIframeOnlyStream+    , hmPlaylistWindowSeconds+    , hmId++    -- * HlsManifestCreateOrUpdateParameters+    , HlsManifestCreateOrUpdateParameters+    , hlsManifestCreateOrUpdateParameters+    , hmcoupManifestName+    , hmcoupPlaylistType+    , hmcoupProgramDateTimeIntervalSeconds+    , hmcoupAdMarkers+    , hmcoupIncludeIframeOnlyStream+    , hmcoupPlaylistWindowSeconds+    , hmcoupId++    -- * HlsPackage+    , HlsPackage+    , hlsPackage+    , hpUseAudioRenditionGroup+    , hpPlaylistType+    , hpSegmentDurationSeconds+    , hpProgramDateTimeIntervalSeconds+    , hpStreamSelection+    , hpAdMarkers+    , hpEncryption+    , hpIncludeIframeOnlyStream+    , hpPlaylistWindowSeconds++    -- * IngestEndpoint+    , IngestEndpoint+    , ingestEndpoint+    , ieURL+    , ieUsername+    , iePassword++    -- * MssEncryption+    , MssEncryption+    , mssEncryption+    , meSpekeKeyProvider++    -- * MssPackage+    , MssPackage+    , mssPackage+    , mpSegmentDurationSeconds+    , mpStreamSelection+    , mpEncryption+    , mpManifestWindowSeconds++    -- * OriginEndpoint+    , OriginEndpoint+    , originEndpoint+    , oeWhitelist+    , oeHlsPackage+    , oeARN+    , oeManifestName+    , oeURL+    , oeChannelId+    , oeStartoverWindowSeconds+    , oeDashPackage+    , oeMssPackage+    , oeId+    , oeTimeDelaySeconds+    , oeCmafPackage+    , oeDescription++    -- * SpekeKeyProvider+    , SpekeKeyProvider+    , spekeKeyProvider+    , skpURL+    , skpResourceId+    , skpRoleARN+    , skpSystemIds++    -- * StreamSelection+    , StreamSelection+    , streamSelection+    , ssStreamOrder+    , ssMinVideoBitsPerSecond+    , ssMaxVideoBitsPerSecond+    ) where++import Network.AWS.Lens+import Network.AWS.MediaPackage.Types.Product+import Network.AWS.MediaPackage.Types.Sum+import Network.AWS.Prelude+import Network.AWS.Sign.V4++-- | API version @2017-10-12@ of the Amazon Elemental MediaPackage SDK configuration.+mediaPackage :: Service+mediaPackage =+  Service+    { _svcAbbrev = "MediaPackage"+    , _svcSigner = v4+    , _svcPrefix = "mediapackage"+    , _svcVersion = "2017-10-12"+    , _svcEndpoint = defaultEndpoint mediaPackage+    , _svcTimeout = Just 70+    , _svcCheck = statusSuccess+    , _svcError = parseJSONError "MediaPackage"+    , _svcRetry = retry+    }+  where+    retry =+      Exponential+        { _retryBase = 5.0e-2+        , _retryGrowth = 2+        , _retryAttempts = 5+        , _retryCheck = check+        }+    check e+      | has (hasCode "ThrottledException" . hasStatus 400) e =+        Just "throttled_exception"+      | has (hasStatus 429) e = Just "too_many_requests"+      | has (hasCode "ThrottlingException" . hasStatus 400) e =+        Just "throttling_exception"+      | has (hasCode "Throttling" . hasStatus 400) e = Just "throttling"+      | has (hasStatus 504) e = Just "gateway_timeout"+      | has (hasCode "RequestThrottledException" . hasStatus 400) e =+        Just "request_throttled_exception"+      | has (hasStatus 502) e = Just "bad_gateway"+      | has (hasStatus 503) e = Just "service_unavailable"+      | has (hasStatus 500) e = Just "general_server_error"+      | has (hasStatus 509) e = Just "limit_exceeded"+      | otherwise = Nothing+++-- | The parameters sent in the request are not valid.+_UnprocessableEntityException :: AsError a => Getting (First ServiceError) a ServiceError+_UnprocessableEntityException =+  _MatchServiceError mediaPackage "UnprocessableEntityException" . hasStatus 422+++-- | The client is not authorized to access the requested resource.+_ForbiddenException :: AsError a => Getting (First ServiceError) a ServiceError+_ForbiddenException =+  _MatchServiceError mediaPackage "ForbiddenException" . hasStatus 403+++-- | The requested resource does not exist.+_NotFoundException :: AsError a => Getting (First ServiceError) a ServiceError+_NotFoundException =+  _MatchServiceError mediaPackage "NotFoundException" . hasStatus 404+++-- | The client has exceeded their resource or throttling limits.+_TooManyRequestsException :: AsError a => Getting (First ServiceError) a ServiceError+_TooManyRequestsException =+  _MatchServiceError mediaPackage "TooManyRequestsException" . hasStatus 429+++-- | An unexpected error occurred.+_InternalServerErrorException :: AsError a => Getting (First ServiceError) a ServiceError+_InternalServerErrorException =+  _MatchServiceError mediaPackage "InternalServerErrorException" . hasStatus 500+++-- | An unexpected error occurred.+_ServiceUnavailableException :: AsError a => Getting (First ServiceError) a ServiceError+_ServiceUnavailableException =+  _MatchServiceError mediaPackage "ServiceUnavailableException" . hasStatus 503+
+ gen/Network/AWS/MediaPackage/Types/Product.hs view
@@ -0,0 +1,1339 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Network.AWS.MediaPackage.Types.Product+-- Copyright   : (c) 2013-2018 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+module Network.AWS.MediaPackage.Types.Product where++import Network.AWS.Lens+import Network.AWS.MediaPackage.Types.Sum+import Network.AWS.Prelude++-- | A Channel resource configuration.+--+-- /See:/ 'channel' smart constructor.+data Channel = Channel'+  { _cHlsIngest   :: !(Maybe HlsIngest)+  , _cARN         :: !(Maybe Text)+  , _cId          :: !(Maybe Text)+  , _cDescription :: !(Maybe Text)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'Channel' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'cHlsIngest' - Undocumented member.+--+-- * 'cARN' - The Amazon Resource Name (ARN) assigned to the Channel.+--+-- * 'cId' - The ID of the Channel.+--+-- * 'cDescription' - A short text description of the Channel.+channel+    :: Channel+channel =+  Channel'+    { _cHlsIngest = Nothing+    , _cARN = Nothing+    , _cId = Nothing+    , _cDescription = Nothing+    }+++-- | Undocumented member.+cHlsIngest :: Lens' Channel (Maybe HlsIngest)+cHlsIngest = lens _cHlsIngest (\ s a -> s{_cHlsIngest = a})++-- | The Amazon Resource Name (ARN) assigned to the Channel.+cARN :: Lens' Channel (Maybe Text)+cARN = lens _cARN (\ s a -> s{_cARN = a})++-- | The ID of the Channel.+cId :: Lens' Channel (Maybe Text)+cId = lens _cId (\ s a -> s{_cId = a})++-- | A short text description of the Channel.+cDescription :: Lens' Channel (Maybe Text)+cDescription = lens _cDescription (\ s a -> s{_cDescription = a})++instance FromJSON Channel where+        parseJSON+          = withObject "Channel"+              (\ x ->+                 Channel' <$>+                   (x .:? "hlsIngest") <*> (x .:? "arn") <*>+                     (x .:? "id")+                     <*> (x .:? "description"))++instance Hashable Channel where++instance NFData Channel where++-- | A Common Media Application Format (CMAF) encryption configuration.+--+-- /See:/ 'cmafEncryption' smart constructor.+data CmafEncryption = CmafEncryption'+  { _ceKeyRotationIntervalSeconds :: !(Maybe Int)+  , _ceSpekeKeyProvider           :: !SpekeKeyProvider+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'CmafEncryption' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'ceKeyRotationIntervalSeconds' - Time (in seconds) between each encryption key rotation.+--+-- * 'ceSpekeKeyProvider' - Undocumented member.+cmafEncryption+    :: SpekeKeyProvider -- ^ 'ceSpekeKeyProvider'+    -> CmafEncryption+cmafEncryption pSpekeKeyProvider_ =+  CmafEncryption'+    { _ceKeyRotationIntervalSeconds = Nothing+    , _ceSpekeKeyProvider = pSpekeKeyProvider_+    }+++-- | Time (in seconds) between each encryption key rotation.+ceKeyRotationIntervalSeconds :: Lens' CmafEncryption (Maybe Int)+ceKeyRotationIntervalSeconds = lens _ceKeyRotationIntervalSeconds (\ s a -> s{_ceKeyRotationIntervalSeconds = a})++-- | Undocumented member.+ceSpekeKeyProvider :: Lens' CmafEncryption SpekeKeyProvider+ceSpekeKeyProvider = lens _ceSpekeKeyProvider (\ s a -> s{_ceSpekeKeyProvider = a})++instance FromJSON CmafEncryption where+        parseJSON+          = withObject "CmafEncryption"+              (\ x ->+                 CmafEncryption' <$>+                   (x .:? "keyRotationIntervalSeconds") <*>+                     (x .: "spekeKeyProvider"))++instance Hashable CmafEncryption where++instance NFData CmafEncryption where++instance ToJSON CmafEncryption where+        toJSON CmafEncryption'{..}+          = object+              (catMaybes+                 [("keyRotationIntervalSeconds" .=) <$>+                    _ceKeyRotationIntervalSeconds,+                  Just ("spekeKeyProvider" .= _ceSpekeKeyProvider)])++-- | A Common Media Application Format (CMAF) packaging configuration.+--+-- /See:/ 'cmafPackage' smart constructor.+data CmafPackage = CmafPackage'+  { _cpHlsManifests           :: !(Maybe [HlsManifest])+  , _cpSegmentDurationSeconds :: !(Maybe Int)+  , _cpStreamSelection        :: !(Maybe StreamSelection)+  , _cpEncryption             :: !(Maybe CmafEncryption)+  , _cpSegmentPrefix          :: !(Maybe Text)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'CmafPackage' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'cpHlsManifests' - A list of HLS manifest configurations+--+-- * 'cpSegmentDurationSeconds' - Duration (in seconds) of each segment. Actual segments will be rounded to the nearest multiple of the source segment duration.+--+-- * 'cpStreamSelection' - Undocumented member.+--+-- * 'cpEncryption' - Undocumented member.+--+-- * 'cpSegmentPrefix' - An optional custom string that is prepended to the name of each segment. If not specified, it defaults to the ChannelId.+cmafPackage+    :: CmafPackage+cmafPackage =+  CmafPackage'+    { _cpHlsManifests = Nothing+    , _cpSegmentDurationSeconds = Nothing+    , _cpStreamSelection = Nothing+    , _cpEncryption = Nothing+    , _cpSegmentPrefix = Nothing+    }+++-- | A list of HLS manifest configurations+cpHlsManifests :: Lens' CmafPackage [HlsManifest]+cpHlsManifests = lens _cpHlsManifests (\ s a -> s{_cpHlsManifests = a}) . _Default . _Coerce++-- | Duration (in seconds) of each segment. Actual segments will be rounded to the nearest multiple of the source segment duration.+cpSegmentDurationSeconds :: Lens' CmafPackage (Maybe Int)+cpSegmentDurationSeconds = lens _cpSegmentDurationSeconds (\ s a -> s{_cpSegmentDurationSeconds = a})++-- | Undocumented member.+cpStreamSelection :: Lens' CmafPackage (Maybe StreamSelection)+cpStreamSelection = lens _cpStreamSelection (\ s a -> s{_cpStreamSelection = a})++-- | Undocumented member.+cpEncryption :: Lens' CmafPackage (Maybe CmafEncryption)+cpEncryption = lens _cpEncryption (\ s a -> s{_cpEncryption = a})++-- | An optional custom string that is prepended to the name of each segment. If not specified, it defaults to the ChannelId.+cpSegmentPrefix :: Lens' CmafPackage (Maybe Text)+cpSegmentPrefix = lens _cpSegmentPrefix (\ s a -> s{_cpSegmentPrefix = a})++instance FromJSON CmafPackage where+        parseJSON+          = withObject "CmafPackage"+              (\ x ->+                 CmafPackage' <$>+                   (x .:? "hlsManifests" .!= mempty) <*>+                     (x .:? "segmentDurationSeconds")+                     <*> (x .:? "streamSelection")+                     <*> (x .:? "encryption")+                     <*> (x .:? "segmentPrefix"))++instance Hashable CmafPackage where++instance NFData CmafPackage where++-- | A Common Media Application Format (CMAF) packaging configuration.+--+-- /See:/ 'cmafPackageCreateOrUpdateParameters' smart constructor.+data CmafPackageCreateOrUpdateParameters = CmafPackageCreateOrUpdateParameters'+  { _cpcoupHlsManifests :: !(Maybe [HlsManifestCreateOrUpdateParameters])+  , _cpcoupSegmentDurationSeconds :: !(Maybe Int)+  , _cpcoupStreamSelection :: !(Maybe StreamSelection)+  , _cpcoupEncryption :: !(Maybe CmafEncryption)+  , _cpcoupSegmentPrefix :: !(Maybe Text)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'CmafPackageCreateOrUpdateParameters' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'cpcoupHlsManifests' - A list of HLS manifest configurations+--+-- * 'cpcoupSegmentDurationSeconds' - Duration (in seconds) of each segment. Actual segments will be rounded to the nearest multiple of the source segment duration.+--+-- * 'cpcoupStreamSelection' - Undocumented member.+--+-- * 'cpcoupEncryption' - Undocumented member.+--+-- * 'cpcoupSegmentPrefix' - An optional custom string that is prepended to the name of each segment. If not specified, it defaults to the ChannelId.+cmafPackageCreateOrUpdateParameters+    :: CmafPackageCreateOrUpdateParameters+cmafPackageCreateOrUpdateParameters =+  CmafPackageCreateOrUpdateParameters'+    { _cpcoupHlsManifests = Nothing+    , _cpcoupSegmentDurationSeconds = Nothing+    , _cpcoupStreamSelection = Nothing+    , _cpcoupEncryption = Nothing+    , _cpcoupSegmentPrefix = Nothing+    }+++-- | A list of HLS manifest configurations+cpcoupHlsManifests :: Lens' CmafPackageCreateOrUpdateParameters [HlsManifestCreateOrUpdateParameters]+cpcoupHlsManifests = lens _cpcoupHlsManifests (\ s a -> s{_cpcoupHlsManifests = a}) . _Default . _Coerce++-- | Duration (in seconds) of each segment. Actual segments will be rounded to the nearest multiple of the source segment duration.+cpcoupSegmentDurationSeconds :: Lens' CmafPackageCreateOrUpdateParameters (Maybe Int)+cpcoupSegmentDurationSeconds = lens _cpcoupSegmentDurationSeconds (\ s a -> s{_cpcoupSegmentDurationSeconds = a})++-- | Undocumented member.+cpcoupStreamSelection :: Lens' CmafPackageCreateOrUpdateParameters (Maybe StreamSelection)+cpcoupStreamSelection = lens _cpcoupStreamSelection (\ s a -> s{_cpcoupStreamSelection = a})++-- | Undocumented member.+cpcoupEncryption :: Lens' CmafPackageCreateOrUpdateParameters (Maybe CmafEncryption)+cpcoupEncryption = lens _cpcoupEncryption (\ s a -> s{_cpcoupEncryption = a})++-- | An optional custom string that is prepended to the name of each segment. If not specified, it defaults to the ChannelId.+cpcoupSegmentPrefix :: Lens' CmafPackageCreateOrUpdateParameters (Maybe Text)+cpcoupSegmentPrefix = lens _cpcoupSegmentPrefix (\ s a -> s{_cpcoupSegmentPrefix = a})++instance Hashable CmafPackageCreateOrUpdateParameters+         where++instance NFData CmafPackageCreateOrUpdateParameters+         where++instance ToJSON CmafPackageCreateOrUpdateParameters+         where+        toJSON CmafPackageCreateOrUpdateParameters'{..}+          = object+              (catMaybes+                 [("hlsManifests" .=) <$> _cpcoupHlsManifests,+                  ("segmentDurationSeconds" .=) <$>+                    _cpcoupSegmentDurationSeconds,+                  ("streamSelection" .=) <$> _cpcoupStreamSelection,+                  ("encryption" .=) <$> _cpcoupEncryption,+                  ("segmentPrefix" .=) <$> _cpcoupSegmentPrefix])++-- | A Dynamic Adaptive Streaming over HTTP (DASH) encryption configuration.+--+-- /See:/ 'dashEncryption' smart constructor.+data DashEncryption = DashEncryption'+  { _deKeyRotationIntervalSeconds :: !(Maybe Int)+  , _deSpekeKeyProvider           :: !SpekeKeyProvider+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DashEncryption' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'deKeyRotationIntervalSeconds' - Time (in seconds) between each encryption key rotation.+--+-- * 'deSpekeKeyProvider' - Undocumented member.+dashEncryption+    :: SpekeKeyProvider -- ^ 'deSpekeKeyProvider'+    -> DashEncryption+dashEncryption pSpekeKeyProvider_ =+  DashEncryption'+    { _deKeyRotationIntervalSeconds = Nothing+    , _deSpekeKeyProvider = pSpekeKeyProvider_+    }+++-- | Time (in seconds) between each encryption key rotation.+deKeyRotationIntervalSeconds :: Lens' DashEncryption (Maybe Int)+deKeyRotationIntervalSeconds = lens _deKeyRotationIntervalSeconds (\ s a -> s{_deKeyRotationIntervalSeconds = a})++-- | Undocumented member.+deSpekeKeyProvider :: Lens' DashEncryption SpekeKeyProvider+deSpekeKeyProvider = lens _deSpekeKeyProvider (\ s a -> s{_deSpekeKeyProvider = a})++instance FromJSON DashEncryption where+        parseJSON+          = withObject "DashEncryption"+              (\ x ->+                 DashEncryption' <$>+                   (x .:? "keyRotationIntervalSeconds") <*>+                     (x .: "spekeKeyProvider"))++instance Hashable DashEncryption where++instance NFData DashEncryption where++instance ToJSON DashEncryption where+        toJSON DashEncryption'{..}+          = object+              (catMaybes+                 [("keyRotationIntervalSeconds" .=) <$>+                    _deKeyRotationIntervalSeconds,+                  Just ("spekeKeyProvider" .= _deSpekeKeyProvider)])++-- | A Dynamic Adaptive Streaming over HTTP (DASH) packaging configuration.+--+-- /See:/ 'dashPackage' smart constructor.+data DashPackage = DashPackage'+  { _dpMinBufferTimeSeconds              :: !(Maybe Int)+  , _dpProfile                           :: !(Maybe Profile)+  , _dpSegmentDurationSeconds            :: !(Maybe Int)+  , _dpStreamSelection                   :: !(Maybe StreamSelection)+  , _dpEncryption                        :: !(Maybe DashEncryption)+  , _dpMinUpdatePeriodSeconds            :: !(Maybe Int)+  , _dpSuggestedPresentationDelaySeconds :: !(Maybe Int)+  , _dpManifestWindowSeconds             :: !(Maybe Int)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DashPackage' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'dpMinBufferTimeSeconds' - Minimum duration (in seconds) that a player will buffer media before starting the presentation.+--+-- * 'dpProfile' - The Dynamic Adaptive Streaming over HTTP (DASH) profile type.  When set to "HBBTV_1_5", HbbTV 1.5 compliant output is enabled.+--+-- * 'dpSegmentDurationSeconds' - Duration (in seconds) of each segment. Actual segments will be rounded to the nearest multiple of the source segment duration.+--+-- * 'dpStreamSelection' - Undocumented member.+--+-- * 'dpEncryption' - Undocumented member.+--+-- * 'dpMinUpdatePeriodSeconds' - Minimum duration (in seconds) between potential changes to the Dynamic Adaptive Streaming over HTTP (DASH) Media Presentation Description (MPD).+--+-- * 'dpSuggestedPresentationDelaySeconds' - Duration (in seconds) to delay live content before presentation.+--+-- * 'dpManifestWindowSeconds' - Time window (in seconds) contained in each manifest.+dashPackage+    :: DashPackage+dashPackage =+  DashPackage'+    { _dpMinBufferTimeSeconds = Nothing+    , _dpProfile = Nothing+    , _dpSegmentDurationSeconds = Nothing+    , _dpStreamSelection = Nothing+    , _dpEncryption = Nothing+    , _dpMinUpdatePeriodSeconds = Nothing+    , _dpSuggestedPresentationDelaySeconds = Nothing+    , _dpManifestWindowSeconds = Nothing+    }+++-- | Minimum duration (in seconds) that a player will buffer media before starting the presentation.+dpMinBufferTimeSeconds :: Lens' DashPackage (Maybe Int)+dpMinBufferTimeSeconds = lens _dpMinBufferTimeSeconds (\ s a -> s{_dpMinBufferTimeSeconds = a})++-- | The Dynamic Adaptive Streaming over HTTP (DASH) profile type.  When set to "HBBTV_1_5", HbbTV 1.5 compliant output is enabled.+dpProfile :: Lens' DashPackage (Maybe Profile)+dpProfile = lens _dpProfile (\ s a -> s{_dpProfile = a})++-- | Duration (in seconds) of each segment. Actual segments will be rounded to the nearest multiple of the source segment duration.+dpSegmentDurationSeconds :: Lens' DashPackage (Maybe Int)+dpSegmentDurationSeconds = lens _dpSegmentDurationSeconds (\ s a -> s{_dpSegmentDurationSeconds = a})++-- | Undocumented member.+dpStreamSelection :: Lens' DashPackage (Maybe StreamSelection)+dpStreamSelection = lens _dpStreamSelection (\ s a -> s{_dpStreamSelection = a})++-- | Undocumented member.+dpEncryption :: Lens' DashPackage (Maybe DashEncryption)+dpEncryption = lens _dpEncryption (\ s a -> s{_dpEncryption = a})++-- | Minimum duration (in seconds) between potential changes to the Dynamic Adaptive Streaming over HTTP (DASH) Media Presentation Description (MPD).+dpMinUpdatePeriodSeconds :: Lens' DashPackage (Maybe Int)+dpMinUpdatePeriodSeconds = lens _dpMinUpdatePeriodSeconds (\ s a -> s{_dpMinUpdatePeriodSeconds = a})++-- | Duration (in seconds) to delay live content before presentation.+dpSuggestedPresentationDelaySeconds :: Lens' DashPackage (Maybe Int)+dpSuggestedPresentationDelaySeconds = lens _dpSuggestedPresentationDelaySeconds (\ s a -> s{_dpSuggestedPresentationDelaySeconds = a})++-- | Time window (in seconds) contained in each manifest.+dpManifestWindowSeconds :: Lens' DashPackage (Maybe Int)+dpManifestWindowSeconds = lens _dpManifestWindowSeconds (\ s a -> s{_dpManifestWindowSeconds = a})++instance FromJSON DashPackage where+        parseJSON+          = withObject "DashPackage"+              (\ x ->+                 DashPackage' <$>+                   (x .:? "minBufferTimeSeconds") <*> (x .:? "profile")+                     <*> (x .:? "segmentDurationSeconds")+                     <*> (x .:? "streamSelection")+                     <*> (x .:? "encryption")+                     <*> (x .:? "minUpdatePeriodSeconds")+                     <*> (x .:? "suggestedPresentationDelaySeconds")+                     <*> (x .:? "manifestWindowSeconds"))++instance Hashable DashPackage where++instance NFData DashPackage where++instance ToJSON DashPackage where+        toJSON DashPackage'{..}+          = object+              (catMaybes+                 [("minBufferTimeSeconds" .=) <$>+                    _dpMinBufferTimeSeconds,+                  ("profile" .=) <$> _dpProfile,+                  ("segmentDurationSeconds" .=) <$>+                    _dpSegmentDurationSeconds,+                  ("streamSelection" .=) <$> _dpStreamSelection,+                  ("encryption" .=) <$> _dpEncryption,+                  ("minUpdatePeriodSeconds" .=) <$>+                    _dpMinUpdatePeriodSeconds,+                  ("suggestedPresentationDelaySeconds" .=) <$>+                    _dpSuggestedPresentationDelaySeconds,+                  ("manifestWindowSeconds" .=) <$>+                    _dpManifestWindowSeconds])++-- | An HTTP Live Streaming (HLS) encryption configuration.+--+-- /See:/ 'hlsEncryption' smart constructor.+data HlsEncryption = HlsEncryption'+  { _heEncryptionMethod             :: !(Maybe EncryptionMethod)+  , _heKeyRotationIntervalSeconds   :: !(Maybe Int)+  , _heConstantInitializationVector :: !(Maybe Text)+  , _heRepeatExtXKey                :: !(Maybe Bool)+  , _heSpekeKeyProvider             :: !SpekeKeyProvider+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'HlsEncryption' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'heEncryptionMethod' - The encryption method to use.+--+-- * 'heKeyRotationIntervalSeconds' - Interval (in seconds) between each encryption key rotation.+--+-- * 'heConstantInitializationVector' - A constant initialization vector for encryption (optional). When not specified the initialization vector will be periodically rotated.+--+-- * 'heRepeatExtXKey' - When enabled, the EXT-X-KEY tag will be repeated in output manifests.+--+-- * 'heSpekeKeyProvider' - Undocumented member.+hlsEncryption+    :: SpekeKeyProvider -- ^ 'heSpekeKeyProvider'+    -> HlsEncryption+hlsEncryption pSpekeKeyProvider_ =+  HlsEncryption'+    { _heEncryptionMethod = Nothing+    , _heKeyRotationIntervalSeconds = Nothing+    , _heConstantInitializationVector = Nothing+    , _heRepeatExtXKey = Nothing+    , _heSpekeKeyProvider = pSpekeKeyProvider_+    }+++-- | The encryption method to use.+heEncryptionMethod :: Lens' HlsEncryption (Maybe EncryptionMethod)+heEncryptionMethod = lens _heEncryptionMethod (\ s a -> s{_heEncryptionMethod = a})++-- | Interval (in seconds) between each encryption key rotation.+heKeyRotationIntervalSeconds :: Lens' HlsEncryption (Maybe Int)+heKeyRotationIntervalSeconds = lens _heKeyRotationIntervalSeconds (\ s a -> s{_heKeyRotationIntervalSeconds = a})++-- | A constant initialization vector for encryption (optional). When not specified the initialization vector will be periodically rotated.+heConstantInitializationVector :: Lens' HlsEncryption (Maybe Text)+heConstantInitializationVector = lens _heConstantInitializationVector (\ s a -> s{_heConstantInitializationVector = a})++-- | When enabled, the EXT-X-KEY tag will be repeated in output manifests.+heRepeatExtXKey :: Lens' HlsEncryption (Maybe Bool)+heRepeatExtXKey = lens _heRepeatExtXKey (\ s a -> s{_heRepeatExtXKey = a})++-- | Undocumented member.+heSpekeKeyProvider :: Lens' HlsEncryption SpekeKeyProvider+heSpekeKeyProvider = lens _heSpekeKeyProvider (\ s a -> s{_heSpekeKeyProvider = a})++instance FromJSON HlsEncryption where+        parseJSON+          = withObject "HlsEncryption"+              (\ x ->+                 HlsEncryption' <$>+                   (x .:? "encryptionMethod") <*>+                     (x .:? "keyRotationIntervalSeconds")+                     <*> (x .:? "constantInitializationVector")+                     <*> (x .:? "repeatExtXKey")+                     <*> (x .: "spekeKeyProvider"))++instance Hashable HlsEncryption where++instance NFData HlsEncryption where++instance ToJSON HlsEncryption where+        toJSON HlsEncryption'{..}+          = object+              (catMaybes+                 [("encryptionMethod" .=) <$> _heEncryptionMethod,+                  ("keyRotationIntervalSeconds" .=) <$>+                    _heKeyRotationIntervalSeconds,+                  ("constantInitializationVector" .=) <$>+                    _heConstantInitializationVector,+                  ("repeatExtXKey" .=) <$> _heRepeatExtXKey,+                  Just ("spekeKeyProvider" .= _heSpekeKeyProvider)])++-- | An HTTP Live Streaming (HLS) ingest resource configuration.+--+-- /See:/ 'hlsIngest' smart constructor.+newtype HlsIngest = HlsIngest'+  { _hiIngestEndpoints :: Maybe [IngestEndpoint]+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'HlsIngest' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'hiIngestEndpoints' - A list of endpoints to which the source stream should be sent.+hlsIngest+    :: HlsIngest+hlsIngest = HlsIngest' {_hiIngestEndpoints = Nothing}+++-- | A list of endpoints to which the source stream should be sent.+hiIngestEndpoints :: Lens' HlsIngest [IngestEndpoint]+hiIngestEndpoints = lens _hiIngestEndpoints (\ s a -> s{_hiIngestEndpoints = a}) . _Default . _Coerce++instance FromJSON HlsIngest where+        parseJSON+          = withObject "HlsIngest"+              (\ x ->+                 HlsIngest' <$> (x .:? "ingestEndpoints" .!= mempty))++instance Hashable HlsIngest where++instance NFData HlsIngest where++-- | A HTTP Live Streaming (HLS) manifest configuration.+--+-- /See:/ 'hlsManifest' smart constructor.+data HlsManifest = HlsManifest'+  { _hmManifestName                   :: !(Maybe Text)+  , _hmURL                            :: !(Maybe Text)+  , _hmPlaylistType                   :: !(Maybe PlaylistType)+  , _hmProgramDateTimeIntervalSeconds :: !(Maybe Int)+  , _hmAdMarkers                      :: !(Maybe AdMarkers)+  , _hmIncludeIframeOnlyStream        :: !(Maybe Bool)+  , _hmPlaylistWindowSeconds          :: !(Maybe Int)+  , _hmId                             :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'HlsManifest' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'hmManifestName' - An optional short string appended to the end of the OriginEndpoint URL. If not specified, defaults to the manifestName for the OriginEndpoint.+--+-- * 'hmURL' - The URL of the packaged OriginEndpoint for consumption.+--+-- * 'hmPlaylistType' - The HTTP Live Streaming (HLS) playlist type. When either "EVENT" or "VOD" is specified, a corresponding EXT-X-PLAYLIST-TYPE entry will be included in the media playlist.+--+-- * 'hmProgramDateTimeIntervalSeconds' - The interval (in seconds) between each EXT-X-PROGRAM-DATE-TIME tag inserted into manifests. Additionally, when an interval is specified ID3Timed Metadata messages will be generated every 5 seconds using the ingest time of the content. If the interval is not specified, or set to 0, then no EXT-X-PROGRAM-DATE-TIME tags will be inserted into manifests and no ID3Timed Metadata messages will be generated. Note that irrespective of this parameter, if any ID3 Timed Metadata is found in HTTP Live Streaming (HLS) input, it will be passed through to HLS output.+--+-- * 'hmAdMarkers' - This setting controls how ad markers are included in the packaged OriginEndpoint. "NONE" will omit all SCTE-35 ad markers from the output. "PASSTHROUGH" causes the manifest to contain a copy of the SCTE-35 ad markers (comments) taken directly from the input HTTP Live Streaming (HLS) manifest. "SCTE35_ENHANCED" generates ad markers and blackout tags based on SCTE-35 messages in the input source.+--+-- * 'hmIncludeIframeOnlyStream' - When enabled, an I-Frame only stream will be included in the output.+--+-- * 'hmPlaylistWindowSeconds' - Time window (in seconds) contained in each parent manifest.+--+-- * 'hmId' - The ID of the manifest. The ID must be unique within the OriginEndpoint and it cannot be changed after it is created.+hlsManifest+    :: Text -- ^ 'hmId'+    -> HlsManifest+hlsManifest pId_ =+  HlsManifest'+    { _hmManifestName = Nothing+    , _hmURL = Nothing+    , _hmPlaylistType = Nothing+    , _hmProgramDateTimeIntervalSeconds = Nothing+    , _hmAdMarkers = Nothing+    , _hmIncludeIframeOnlyStream = Nothing+    , _hmPlaylistWindowSeconds = Nothing+    , _hmId = pId_+    }+++-- | An optional short string appended to the end of the OriginEndpoint URL. If not specified, defaults to the manifestName for the OriginEndpoint.+hmManifestName :: Lens' HlsManifest (Maybe Text)+hmManifestName = lens _hmManifestName (\ s a -> s{_hmManifestName = a})++-- | The URL of the packaged OriginEndpoint for consumption.+hmURL :: Lens' HlsManifest (Maybe Text)+hmURL = lens _hmURL (\ s a -> s{_hmURL = a})++-- | The HTTP Live Streaming (HLS) playlist type. When either "EVENT" or "VOD" is specified, a corresponding EXT-X-PLAYLIST-TYPE entry will be included in the media playlist.+hmPlaylistType :: Lens' HlsManifest (Maybe PlaylistType)+hmPlaylistType = lens _hmPlaylistType (\ s a -> s{_hmPlaylistType = a})++-- | The interval (in seconds) between each EXT-X-PROGRAM-DATE-TIME tag inserted into manifests. Additionally, when an interval is specified ID3Timed Metadata messages will be generated every 5 seconds using the ingest time of the content. If the interval is not specified, or set to 0, then no EXT-X-PROGRAM-DATE-TIME tags will be inserted into manifests and no ID3Timed Metadata messages will be generated. Note that irrespective of this parameter, if any ID3 Timed Metadata is found in HTTP Live Streaming (HLS) input, it will be passed through to HLS output.+hmProgramDateTimeIntervalSeconds :: Lens' HlsManifest (Maybe Int)+hmProgramDateTimeIntervalSeconds = lens _hmProgramDateTimeIntervalSeconds (\ s a -> s{_hmProgramDateTimeIntervalSeconds = a})++-- | This setting controls how ad markers are included in the packaged OriginEndpoint. "NONE" will omit all SCTE-35 ad markers from the output. "PASSTHROUGH" causes the manifest to contain a copy of the SCTE-35 ad markers (comments) taken directly from the input HTTP Live Streaming (HLS) manifest. "SCTE35_ENHANCED" generates ad markers and blackout tags based on SCTE-35 messages in the input source.+hmAdMarkers :: Lens' HlsManifest (Maybe AdMarkers)+hmAdMarkers = lens _hmAdMarkers (\ s a -> s{_hmAdMarkers = a})++-- | When enabled, an I-Frame only stream will be included in the output.+hmIncludeIframeOnlyStream :: Lens' HlsManifest (Maybe Bool)+hmIncludeIframeOnlyStream = lens _hmIncludeIframeOnlyStream (\ s a -> s{_hmIncludeIframeOnlyStream = a})++-- | Time window (in seconds) contained in each parent manifest.+hmPlaylistWindowSeconds :: Lens' HlsManifest (Maybe Int)+hmPlaylistWindowSeconds = lens _hmPlaylistWindowSeconds (\ s a -> s{_hmPlaylistWindowSeconds = a})++-- | The ID of the manifest. The ID must be unique within the OriginEndpoint and it cannot be changed after it is created.+hmId :: Lens' HlsManifest Text+hmId = lens _hmId (\ s a -> s{_hmId = a})++instance FromJSON HlsManifest where+        parseJSON+          = withObject "HlsManifest"+              (\ x ->+                 HlsManifest' <$>+                   (x .:? "manifestName") <*> (x .:? "url") <*>+                     (x .:? "playlistType")+                     <*> (x .:? "programDateTimeIntervalSeconds")+                     <*> (x .:? "adMarkers")+                     <*> (x .:? "includeIframeOnlyStream")+                     <*> (x .:? "playlistWindowSeconds")+                     <*> (x .: "id"))++instance Hashable HlsManifest where++instance NFData HlsManifest where++-- | A HTTP Live Streaming (HLS) manifest configuration.+--+-- /See:/ 'hlsManifestCreateOrUpdateParameters' smart constructor.+data HlsManifestCreateOrUpdateParameters = HlsManifestCreateOrUpdateParameters'+  { _hmcoupManifestName                   :: !(Maybe Text)+  , _hmcoupPlaylistType                   :: !(Maybe PlaylistType)+  , _hmcoupProgramDateTimeIntervalSeconds :: !(Maybe Int)+  , _hmcoupAdMarkers                      :: !(Maybe AdMarkers)+  , _hmcoupIncludeIframeOnlyStream        :: !(Maybe Bool)+  , _hmcoupPlaylistWindowSeconds          :: !(Maybe Int)+  , _hmcoupId                             :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'HlsManifestCreateOrUpdateParameters' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'hmcoupManifestName' - An optional short string appended to the end of the OriginEndpoint URL. If not specified, defaults to the manifestName for the OriginEndpoint.+--+-- * 'hmcoupPlaylistType' - The HTTP Live Streaming (HLS) playlist type. When either "EVENT" or "VOD" is specified, a corresponding EXT-X-PLAYLIST-TYPE entry will be included in the media playlist.+--+-- * 'hmcoupProgramDateTimeIntervalSeconds' - The interval (in seconds) between each EXT-X-PROGRAM-DATE-TIME tag inserted into manifests. Additionally, when an interval is specified ID3Timed Metadata messages will be generated every 5 seconds using the ingest time of the content. If the interval is not specified, or set to 0, then no EXT-X-PROGRAM-DATE-TIME tags will be inserted into manifests and no ID3Timed Metadata messages will be generated. Note that irrespective of this parameter, if any ID3 Timed Metadata is found in HTTP Live Streaming (HLS) input, it will be passed through to HLS output.+--+-- * 'hmcoupAdMarkers' - This setting controls how ad markers are included in the packaged OriginEndpoint. "NONE" will omit all SCTE-35 ad markers from the output. "PASSTHROUGH" causes the manifest to contain a copy of the SCTE-35 ad markers (comments) taken directly from the input HTTP Live Streaming (HLS) manifest. "SCTE35_ENHANCED" generates ad markers and blackout tags based on SCTE-35 messages in the input source.+--+-- * 'hmcoupIncludeIframeOnlyStream' - When enabled, an I-Frame only stream will be included in the output.+--+-- * 'hmcoupPlaylistWindowSeconds' - Time window (in seconds) contained in each parent manifest.+--+-- * 'hmcoupId' - The ID of the manifest. The ID must be unique within the OriginEndpoint and it cannot be changed after it is created.+hlsManifestCreateOrUpdateParameters+    :: Text -- ^ 'hmcoupId'+    -> HlsManifestCreateOrUpdateParameters+hlsManifestCreateOrUpdateParameters pId_ =+  HlsManifestCreateOrUpdateParameters'+    { _hmcoupManifestName = Nothing+    , _hmcoupPlaylistType = Nothing+    , _hmcoupProgramDateTimeIntervalSeconds = Nothing+    , _hmcoupAdMarkers = Nothing+    , _hmcoupIncludeIframeOnlyStream = Nothing+    , _hmcoupPlaylistWindowSeconds = Nothing+    , _hmcoupId = pId_+    }+++-- | An optional short string appended to the end of the OriginEndpoint URL. If not specified, defaults to the manifestName for the OriginEndpoint.+hmcoupManifestName :: Lens' HlsManifestCreateOrUpdateParameters (Maybe Text)+hmcoupManifestName = lens _hmcoupManifestName (\ s a -> s{_hmcoupManifestName = a})++-- | The HTTP Live Streaming (HLS) playlist type. When either "EVENT" or "VOD" is specified, a corresponding EXT-X-PLAYLIST-TYPE entry will be included in the media playlist.+hmcoupPlaylistType :: Lens' HlsManifestCreateOrUpdateParameters (Maybe PlaylistType)+hmcoupPlaylistType = lens _hmcoupPlaylistType (\ s a -> s{_hmcoupPlaylistType = a})++-- | The interval (in seconds) between each EXT-X-PROGRAM-DATE-TIME tag inserted into manifests. Additionally, when an interval is specified ID3Timed Metadata messages will be generated every 5 seconds using the ingest time of the content. If the interval is not specified, or set to 0, then no EXT-X-PROGRAM-DATE-TIME tags will be inserted into manifests and no ID3Timed Metadata messages will be generated. Note that irrespective of this parameter, if any ID3 Timed Metadata is found in HTTP Live Streaming (HLS) input, it will be passed through to HLS output.+hmcoupProgramDateTimeIntervalSeconds :: Lens' HlsManifestCreateOrUpdateParameters (Maybe Int)+hmcoupProgramDateTimeIntervalSeconds = lens _hmcoupProgramDateTimeIntervalSeconds (\ s a -> s{_hmcoupProgramDateTimeIntervalSeconds = a})++-- | This setting controls how ad markers are included in the packaged OriginEndpoint. "NONE" will omit all SCTE-35 ad markers from the output. "PASSTHROUGH" causes the manifest to contain a copy of the SCTE-35 ad markers (comments) taken directly from the input HTTP Live Streaming (HLS) manifest. "SCTE35_ENHANCED" generates ad markers and blackout tags based on SCTE-35 messages in the input source.+hmcoupAdMarkers :: Lens' HlsManifestCreateOrUpdateParameters (Maybe AdMarkers)+hmcoupAdMarkers = lens _hmcoupAdMarkers (\ s a -> s{_hmcoupAdMarkers = a})++-- | When enabled, an I-Frame only stream will be included in the output.+hmcoupIncludeIframeOnlyStream :: Lens' HlsManifestCreateOrUpdateParameters (Maybe Bool)+hmcoupIncludeIframeOnlyStream = lens _hmcoupIncludeIframeOnlyStream (\ s a -> s{_hmcoupIncludeIframeOnlyStream = a})++-- | Time window (in seconds) contained in each parent manifest.+hmcoupPlaylistWindowSeconds :: Lens' HlsManifestCreateOrUpdateParameters (Maybe Int)+hmcoupPlaylistWindowSeconds = lens _hmcoupPlaylistWindowSeconds (\ s a -> s{_hmcoupPlaylistWindowSeconds = a})++-- | The ID of the manifest. The ID must be unique within the OriginEndpoint and it cannot be changed after it is created.+hmcoupId :: Lens' HlsManifestCreateOrUpdateParameters Text+hmcoupId = lens _hmcoupId (\ s a -> s{_hmcoupId = a})++instance Hashable HlsManifestCreateOrUpdateParameters+         where++instance NFData HlsManifestCreateOrUpdateParameters+         where++instance ToJSON HlsManifestCreateOrUpdateParameters+         where+        toJSON HlsManifestCreateOrUpdateParameters'{..}+          = object+              (catMaybes+                 [("manifestName" .=) <$> _hmcoupManifestName,+                  ("playlistType" .=) <$> _hmcoupPlaylistType,+                  ("programDateTimeIntervalSeconds" .=) <$>+                    _hmcoupProgramDateTimeIntervalSeconds,+                  ("adMarkers" .=) <$> _hmcoupAdMarkers,+                  ("includeIframeOnlyStream" .=) <$>+                    _hmcoupIncludeIframeOnlyStream,+                  ("playlistWindowSeconds" .=) <$>+                    _hmcoupPlaylistWindowSeconds,+                  Just ("id" .= _hmcoupId)])++-- | An HTTP Live Streaming (HLS) packaging configuration.+--+-- /See:/ 'hlsPackage' smart constructor.+data HlsPackage = HlsPackage'+  { _hpUseAudioRenditionGroup         :: !(Maybe Bool)+  , _hpPlaylistType                   :: !(Maybe PlaylistType)+  , _hpSegmentDurationSeconds         :: !(Maybe Int)+  , _hpProgramDateTimeIntervalSeconds :: !(Maybe Int)+  , _hpStreamSelection                :: !(Maybe StreamSelection)+  , _hpAdMarkers                      :: !(Maybe AdMarkers)+  , _hpEncryption                     :: !(Maybe HlsEncryption)+  , _hpIncludeIframeOnlyStream        :: !(Maybe Bool)+  , _hpPlaylistWindowSeconds          :: !(Maybe Int)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'HlsPackage' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'hpUseAudioRenditionGroup' - When enabled, audio streams will be placed in rendition groups in the output.+--+-- * 'hpPlaylistType' - The HTTP Live Streaming (HLS) playlist type. When either "EVENT" or "VOD" is specified, a corresponding EXT-X-PLAYLIST-TYPE entry will be included in the media playlist.+--+-- * 'hpSegmentDurationSeconds' - Duration (in seconds) of each fragment. Actual fragments will be rounded to the nearest multiple of the source fragment duration.+--+-- * 'hpProgramDateTimeIntervalSeconds' - The interval (in seconds) between each EXT-X-PROGRAM-DATE-TIME tag inserted into manifests. Additionally, when an interval is specified ID3Timed Metadata messages will be generated every 5 seconds using the ingest time of the content. If the interval is not specified, or set to 0, then no EXT-X-PROGRAM-DATE-TIME tags will be inserted into manifests and no ID3Timed Metadata messages will be generated. Note that irrespective of this parameter, if any ID3 Timed Metadata is found in HTTP Live Streaming (HLS) input, it will be passed through to HLS output.+--+-- * 'hpStreamSelection' - Undocumented member.+--+-- * 'hpAdMarkers' - This setting controls how ad markers are included in the packaged OriginEndpoint. "NONE" will omit all SCTE-35 ad markers from the output. "PASSTHROUGH" causes the manifest to contain a copy of the SCTE-35 ad markers (comments) taken directly from the input HTTP Live Streaming (HLS) manifest. "SCTE35_ENHANCED" generates ad markers and blackout tags based on SCTE-35 messages in the input source.+--+-- * 'hpEncryption' - Undocumented member.+--+-- * 'hpIncludeIframeOnlyStream' - When enabled, an I-Frame only stream will be included in the output.+--+-- * 'hpPlaylistWindowSeconds' - Time window (in seconds) contained in each parent manifest.+hlsPackage+    :: HlsPackage+hlsPackage =+  HlsPackage'+    { _hpUseAudioRenditionGroup = Nothing+    , _hpPlaylistType = Nothing+    , _hpSegmentDurationSeconds = Nothing+    , _hpProgramDateTimeIntervalSeconds = Nothing+    , _hpStreamSelection = Nothing+    , _hpAdMarkers = Nothing+    , _hpEncryption = Nothing+    , _hpIncludeIframeOnlyStream = Nothing+    , _hpPlaylistWindowSeconds = Nothing+    }+++-- | When enabled, audio streams will be placed in rendition groups in the output.+hpUseAudioRenditionGroup :: Lens' HlsPackage (Maybe Bool)+hpUseAudioRenditionGroup = lens _hpUseAudioRenditionGroup (\ s a -> s{_hpUseAudioRenditionGroup = a})++-- | The HTTP Live Streaming (HLS) playlist type. When either "EVENT" or "VOD" is specified, a corresponding EXT-X-PLAYLIST-TYPE entry will be included in the media playlist.+hpPlaylistType :: Lens' HlsPackage (Maybe PlaylistType)+hpPlaylistType = lens _hpPlaylistType (\ s a -> s{_hpPlaylistType = a})++-- | Duration (in seconds) of each fragment. Actual fragments will be rounded to the nearest multiple of the source fragment duration.+hpSegmentDurationSeconds :: Lens' HlsPackage (Maybe Int)+hpSegmentDurationSeconds = lens _hpSegmentDurationSeconds (\ s a -> s{_hpSegmentDurationSeconds = a})++-- | The interval (in seconds) between each EXT-X-PROGRAM-DATE-TIME tag inserted into manifests. Additionally, when an interval is specified ID3Timed Metadata messages will be generated every 5 seconds using the ingest time of the content. If the interval is not specified, or set to 0, then no EXT-X-PROGRAM-DATE-TIME tags will be inserted into manifests and no ID3Timed Metadata messages will be generated. Note that irrespective of this parameter, if any ID3 Timed Metadata is found in HTTP Live Streaming (HLS) input, it will be passed through to HLS output.+hpProgramDateTimeIntervalSeconds :: Lens' HlsPackage (Maybe Int)+hpProgramDateTimeIntervalSeconds = lens _hpProgramDateTimeIntervalSeconds (\ s a -> s{_hpProgramDateTimeIntervalSeconds = a})++-- | Undocumented member.+hpStreamSelection :: Lens' HlsPackage (Maybe StreamSelection)+hpStreamSelection = lens _hpStreamSelection (\ s a -> s{_hpStreamSelection = a})++-- | This setting controls how ad markers are included in the packaged OriginEndpoint. "NONE" will omit all SCTE-35 ad markers from the output. "PASSTHROUGH" causes the manifest to contain a copy of the SCTE-35 ad markers (comments) taken directly from the input HTTP Live Streaming (HLS) manifest. "SCTE35_ENHANCED" generates ad markers and blackout tags based on SCTE-35 messages in the input source.+hpAdMarkers :: Lens' HlsPackage (Maybe AdMarkers)+hpAdMarkers = lens _hpAdMarkers (\ s a -> s{_hpAdMarkers = a})++-- | Undocumented member.+hpEncryption :: Lens' HlsPackage (Maybe HlsEncryption)+hpEncryption = lens _hpEncryption (\ s a -> s{_hpEncryption = a})++-- | When enabled, an I-Frame only stream will be included in the output.+hpIncludeIframeOnlyStream :: Lens' HlsPackage (Maybe Bool)+hpIncludeIframeOnlyStream = lens _hpIncludeIframeOnlyStream (\ s a -> s{_hpIncludeIframeOnlyStream = a})++-- | Time window (in seconds) contained in each parent manifest.+hpPlaylistWindowSeconds :: Lens' HlsPackage (Maybe Int)+hpPlaylistWindowSeconds = lens _hpPlaylistWindowSeconds (\ s a -> s{_hpPlaylistWindowSeconds = a})++instance FromJSON HlsPackage where+        parseJSON+          = withObject "HlsPackage"+              (\ x ->+                 HlsPackage' <$>+                   (x .:? "useAudioRenditionGroup") <*>+                     (x .:? "playlistType")+                     <*> (x .:? "segmentDurationSeconds")+                     <*> (x .:? "programDateTimeIntervalSeconds")+                     <*> (x .:? "streamSelection")+                     <*> (x .:? "adMarkers")+                     <*> (x .:? "encryption")+                     <*> (x .:? "includeIframeOnlyStream")+                     <*> (x .:? "playlistWindowSeconds"))++instance Hashable HlsPackage where++instance NFData HlsPackage where++instance ToJSON HlsPackage where+        toJSON HlsPackage'{..}+          = object+              (catMaybes+                 [("useAudioRenditionGroup" .=) <$>+                    _hpUseAudioRenditionGroup,+                  ("playlistType" .=) <$> _hpPlaylistType,+                  ("segmentDurationSeconds" .=) <$>+                    _hpSegmentDurationSeconds,+                  ("programDateTimeIntervalSeconds" .=) <$>+                    _hpProgramDateTimeIntervalSeconds,+                  ("streamSelection" .=) <$> _hpStreamSelection,+                  ("adMarkers" .=) <$> _hpAdMarkers,+                  ("encryption" .=) <$> _hpEncryption,+                  ("includeIframeOnlyStream" .=) <$>+                    _hpIncludeIframeOnlyStream,+                  ("playlistWindowSeconds" .=) <$>+                    _hpPlaylistWindowSeconds])++-- | An endpoint for ingesting source content for a Channel.+--+-- /See:/ 'ingestEndpoint' smart constructor.+data IngestEndpoint = IngestEndpoint'+  { _ieURL      :: !(Maybe Text)+  , _ieUsername :: !(Maybe Text)+  , _iePassword :: !(Maybe Text)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'IngestEndpoint' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'ieURL' - The ingest URL to which the source stream should be sent.+--+-- * 'ieUsername' - The system generated username for ingest authentication.+--+-- * 'iePassword' - The system generated password for ingest authentication.+ingestEndpoint+    :: IngestEndpoint+ingestEndpoint =+  IngestEndpoint'+    {_ieURL = Nothing, _ieUsername = Nothing, _iePassword = Nothing}+++-- | The ingest URL to which the source stream should be sent.+ieURL :: Lens' IngestEndpoint (Maybe Text)+ieURL = lens _ieURL (\ s a -> s{_ieURL = a})++-- | The system generated username for ingest authentication.+ieUsername :: Lens' IngestEndpoint (Maybe Text)+ieUsername = lens _ieUsername (\ s a -> s{_ieUsername = a})++-- | The system generated password for ingest authentication.+iePassword :: Lens' IngestEndpoint (Maybe Text)+iePassword = lens _iePassword (\ s a -> s{_iePassword = a})++instance FromJSON IngestEndpoint where+        parseJSON+          = withObject "IngestEndpoint"+              (\ x ->+                 IngestEndpoint' <$>+                   (x .:? "url") <*> (x .:? "username") <*>+                     (x .:? "password"))++instance Hashable IngestEndpoint where++instance NFData IngestEndpoint where++-- | A Microsoft Smooth Streaming (MSS) encryption configuration.+--+-- /See:/ 'mssEncryption' smart constructor.+newtype MssEncryption = MssEncryption'+  { _meSpekeKeyProvider :: SpekeKeyProvider+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'MssEncryption' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'meSpekeKeyProvider' - Undocumented member.+mssEncryption+    :: SpekeKeyProvider -- ^ 'meSpekeKeyProvider'+    -> MssEncryption+mssEncryption pSpekeKeyProvider_ =+  MssEncryption' {_meSpekeKeyProvider = pSpekeKeyProvider_}+++-- | Undocumented member.+meSpekeKeyProvider :: Lens' MssEncryption SpekeKeyProvider+meSpekeKeyProvider = lens _meSpekeKeyProvider (\ s a -> s{_meSpekeKeyProvider = a})++instance FromJSON MssEncryption where+        parseJSON+          = withObject "MssEncryption"+              (\ x -> MssEncryption' <$> (x .: "spekeKeyProvider"))++instance Hashable MssEncryption where++instance NFData MssEncryption where++instance ToJSON MssEncryption where+        toJSON MssEncryption'{..}+          = object+              (catMaybes+                 [Just ("spekeKeyProvider" .= _meSpekeKeyProvider)])++-- | A Microsoft Smooth Streaming (MSS) packaging configuration.+--+-- /See:/ 'mssPackage' smart constructor.+data MssPackage = MssPackage'+  { _mpSegmentDurationSeconds :: !(Maybe Int)+  , _mpStreamSelection        :: !(Maybe StreamSelection)+  , _mpEncryption             :: !(Maybe MssEncryption)+  , _mpManifestWindowSeconds  :: !(Maybe Int)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'MssPackage' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'mpSegmentDurationSeconds' - The duration (in seconds) of each segment.+--+-- * 'mpStreamSelection' - Undocumented member.+--+-- * 'mpEncryption' - Undocumented member.+--+-- * 'mpManifestWindowSeconds' - The time window (in seconds) contained in each manifest.+mssPackage+    :: MssPackage+mssPackage =+  MssPackage'+    { _mpSegmentDurationSeconds = Nothing+    , _mpStreamSelection = Nothing+    , _mpEncryption = Nothing+    , _mpManifestWindowSeconds = Nothing+    }+++-- | The duration (in seconds) of each segment.+mpSegmentDurationSeconds :: Lens' MssPackage (Maybe Int)+mpSegmentDurationSeconds = lens _mpSegmentDurationSeconds (\ s a -> s{_mpSegmentDurationSeconds = a})++-- | Undocumented member.+mpStreamSelection :: Lens' MssPackage (Maybe StreamSelection)+mpStreamSelection = lens _mpStreamSelection (\ s a -> s{_mpStreamSelection = a})++-- | Undocumented member.+mpEncryption :: Lens' MssPackage (Maybe MssEncryption)+mpEncryption = lens _mpEncryption (\ s a -> s{_mpEncryption = a})++-- | The time window (in seconds) contained in each manifest.+mpManifestWindowSeconds :: Lens' MssPackage (Maybe Int)+mpManifestWindowSeconds = lens _mpManifestWindowSeconds (\ s a -> s{_mpManifestWindowSeconds = a})++instance FromJSON MssPackage where+        parseJSON+          = withObject "MssPackage"+              (\ x ->+                 MssPackage' <$>+                   (x .:? "segmentDurationSeconds") <*>+                     (x .:? "streamSelection")+                     <*> (x .:? "encryption")+                     <*> (x .:? "manifestWindowSeconds"))++instance Hashable MssPackage where++instance NFData MssPackage where++instance ToJSON MssPackage where+        toJSON MssPackage'{..}+          = object+              (catMaybes+                 [("segmentDurationSeconds" .=) <$>+                    _mpSegmentDurationSeconds,+                  ("streamSelection" .=) <$> _mpStreamSelection,+                  ("encryption" .=) <$> _mpEncryption,+                  ("manifestWindowSeconds" .=) <$>+                    _mpManifestWindowSeconds])++-- | An OriginEndpoint resource configuration.+--+-- /See:/ 'originEndpoint' smart constructor.+data OriginEndpoint = OriginEndpoint'+  { _oeWhitelist              :: !(Maybe [Text])+  , _oeHlsPackage             :: !(Maybe HlsPackage)+  , _oeARN                    :: !(Maybe Text)+  , _oeManifestName           :: !(Maybe Text)+  , _oeURL                    :: !(Maybe Text)+  , _oeChannelId              :: !(Maybe Text)+  , _oeStartoverWindowSeconds :: !(Maybe Int)+  , _oeDashPackage            :: !(Maybe DashPackage)+  , _oeMssPackage             :: !(Maybe MssPackage)+  , _oeId                     :: !(Maybe Text)+  , _oeTimeDelaySeconds       :: !(Maybe Int)+  , _oeCmafPackage            :: !(Maybe CmafPackage)+  , _oeDescription            :: !(Maybe Text)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'OriginEndpoint' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'oeWhitelist' - A list of source IP CIDR blocks that will be allowed to access the OriginEndpoint.+--+-- * 'oeHlsPackage' - Undocumented member.+--+-- * 'oeARN' - The Amazon Resource Name (ARN) assigned to the OriginEndpoint.+--+-- * 'oeManifestName' - A short string appended to the end of the OriginEndpoint URL.+--+-- * 'oeURL' - The URL of the packaged OriginEndpoint for consumption.+--+-- * 'oeChannelId' - The ID of the Channel the OriginEndpoint is associated with.+--+-- * 'oeStartoverWindowSeconds' - Maximum duration (seconds) of content to retain for startover playback. If not specified, startover playback will be disabled for the OriginEndpoint.+--+-- * 'oeDashPackage' - Undocumented member.+--+-- * 'oeMssPackage' - Undocumented member.+--+-- * 'oeId' - The ID of the OriginEndpoint.+--+-- * 'oeTimeDelaySeconds' - Amount of delay (seconds) to enforce on the playback of live content. If not specified, there will be no time delay in effect for the OriginEndpoint.+--+-- * 'oeCmafPackage' - Undocumented member.+--+-- * 'oeDescription' - A short text description of the OriginEndpoint.+originEndpoint+    :: OriginEndpoint+originEndpoint =+  OriginEndpoint'+    { _oeWhitelist = Nothing+    , _oeHlsPackage = Nothing+    , _oeARN = Nothing+    , _oeManifestName = Nothing+    , _oeURL = Nothing+    , _oeChannelId = Nothing+    , _oeStartoverWindowSeconds = Nothing+    , _oeDashPackage = Nothing+    , _oeMssPackage = Nothing+    , _oeId = Nothing+    , _oeTimeDelaySeconds = Nothing+    , _oeCmafPackage = Nothing+    , _oeDescription = Nothing+    }+++-- | A list of source IP CIDR blocks that will be allowed to access the OriginEndpoint.+oeWhitelist :: Lens' OriginEndpoint [Text]+oeWhitelist = lens _oeWhitelist (\ s a -> s{_oeWhitelist = a}) . _Default . _Coerce++-- | Undocumented member.+oeHlsPackage :: Lens' OriginEndpoint (Maybe HlsPackage)+oeHlsPackage = lens _oeHlsPackage (\ s a -> s{_oeHlsPackage = a})++-- | The Amazon Resource Name (ARN) assigned to the OriginEndpoint.+oeARN :: Lens' OriginEndpoint (Maybe Text)+oeARN = lens _oeARN (\ s a -> s{_oeARN = a})++-- | A short string appended to the end of the OriginEndpoint URL.+oeManifestName :: Lens' OriginEndpoint (Maybe Text)+oeManifestName = lens _oeManifestName (\ s a -> s{_oeManifestName = a})++-- | The URL of the packaged OriginEndpoint for consumption.+oeURL :: Lens' OriginEndpoint (Maybe Text)+oeURL = lens _oeURL (\ s a -> s{_oeURL = a})++-- | The ID of the Channel the OriginEndpoint is associated with.+oeChannelId :: Lens' OriginEndpoint (Maybe Text)+oeChannelId = lens _oeChannelId (\ s a -> s{_oeChannelId = a})++-- | Maximum duration (seconds) of content to retain for startover playback. If not specified, startover playback will be disabled for the OriginEndpoint.+oeStartoverWindowSeconds :: Lens' OriginEndpoint (Maybe Int)+oeStartoverWindowSeconds = lens _oeStartoverWindowSeconds (\ s a -> s{_oeStartoverWindowSeconds = a})++-- | Undocumented member.+oeDashPackage :: Lens' OriginEndpoint (Maybe DashPackage)+oeDashPackage = lens _oeDashPackage (\ s a -> s{_oeDashPackage = a})++-- | Undocumented member.+oeMssPackage :: Lens' OriginEndpoint (Maybe MssPackage)+oeMssPackage = lens _oeMssPackage (\ s a -> s{_oeMssPackage = a})++-- | The ID of the OriginEndpoint.+oeId :: Lens' OriginEndpoint (Maybe Text)+oeId = lens _oeId (\ s a -> s{_oeId = a})++-- | Amount of delay (seconds) to enforce on the playback of live content. If not specified, there will be no time delay in effect for the OriginEndpoint.+oeTimeDelaySeconds :: Lens' OriginEndpoint (Maybe Int)+oeTimeDelaySeconds = lens _oeTimeDelaySeconds (\ s a -> s{_oeTimeDelaySeconds = a})++-- | Undocumented member.+oeCmafPackage :: Lens' OriginEndpoint (Maybe CmafPackage)+oeCmafPackage = lens _oeCmafPackage (\ s a -> s{_oeCmafPackage = a})++-- | A short text description of the OriginEndpoint.+oeDescription :: Lens' OriginEndpoint (Maybe Text)+oeDescription = lens _oeDescription (\ s a -> s{_oeDescription = a})++instance FromJSON OriginEndpoint where+        parseJSON+          = withObject "OriginEndpoint"+              (\ x ->+                 OriginEndpoint' <$>+                   (x .:? "whitelist" .!= mempty) <*>+                     (x .:? "hlsPackage")+                     <*> (x .:? "arn")+                     <*> (x .:? "manifestName")+                     <*> (x .:? "url")+                     <*> (x .:? "channelId")+                     <*> (x .:? "startoverWindowSeconds")+                     <*> (x .:? "dashPackage")+                     <*> (x .:? "mssPackage")+                     <*> (x .:? "id")+                     <*> (x .:? "timeDelaySeconds")+                     <*> (x .:? "cmafPackage")+                     <*> (x .:? "description"))++instance Hashable OriginEndpoint where++instance NFData OriginEndpoint where++-- | A configuration for accessing an external Secure Packager and Encoder Key Exchange (SPEKE) service that will provide encryption keys.+--+-- /See:/ 'spekeKeyProvider' smart constructor.+data SpekeKeyProvider = SpekeKeyProvider'+  { _skpURL        :: !Text+  , _skpResourceId :: !Text+  , _skpRoleARN    :: !Text+  , _skpSystemIds  :: ![Text]+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'SpekeKeyProvider' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'skpURL' - The URL of the external key provider service.+--+-- * 'skpResourceId' - The resource ID to include in key requests.+--+-- * 'skpRoleARN' - An Amazon Resource Name (ARN) of an IAM role that AWS Elemental MediaPackage will assume when accessing the key provider service.+--+-- * 'skpSystemIds' - The system IDs to include in key requests.+spekeKeyProvider+    :: Text -- ^ 'skpURL'+    -> Text -- ^ 'skpResourceId'+    -> Text -- ^ 'skpRoleARN'+    -> SpekeKeyProvider+spekeKeyProvider pURL_ pResourceId_ pRoleARN_ =+  SpekeKeyProvider'+    { _skpURL = pURL_+    , _skpResourceId = pResourceId_+    , _skpRoleARN = pRoleARN_+    , _skpSystemIds = mempty+    }+++-- | The URL of the external key provider service.+skpURL :: Lens' SpekeKeyProvider Text+skpURL = lens _skpURL (\ s a -> s{_skpURL = a})++-- | The resource ID to include in key requests.+skpResourceId :: Lens' SpekeKeyProvider Text+skpResourceId = lens _skpResourceId (\ s a -> s{_skpResourceId = a})++-- | An Amazon Resource Name (ARN) of an IAM role that AWS Elemental MediaPackage will assume when accessing the key provider service.+skpRoleARN :: Lens' SpekeKeyProvider Text+skpRoleARN = lens _skpRoleARN (\ s a -> s{_skpRoleARN = a})++-- | The system IDs to include in key requests.+skpSystemIds :: Lens' SpekeKeyProvider [Text]+skpSystemIds = lens _skpSystemIds (\ s a -> s{_skpSystemIds = a}) . _Coerce++instance FromJSON SpekeKeyProvider where+        parseJSON+          = withObject "SpekeKeyProvider"+              (\ x ->+                 SpekeKeyProvider' <$>+                   (x .: "url") <*> (x .: "resourceId") <*>+                     (x .: "roleArn")+                     <*> (x .:? "systemIds" .!= mempty))++instance Hashable SpekeKeyProvider where++instance NFData SpekeKeyProvider where++instance ToJSON SpekeKeyProvider where+        toJSON SpekeKeyProvider'{..}+          = object+              (catMaybes+                 [Just ("url" .= _skpURL),+                  Just ("resourceId" .= _skpResourceId),+                  Just ("roleArn" .= _skpRoleARN),+                  Just ("systemIds" .= _skpSystemIds)])++-- | A StreamSelection configuration.+--+-- /See:/ 'streamSelection' smart constructor.+data StreamSelection = StreamSelection'+  { _ssStreamOrder           :: !(Maybe StreamOrder)+  , _ssMinVideoBitsPerSecond :: !(Maybe Int)+  , _ssMaxVideoBitsPerSecond :: !(Maybe Int)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'StreamSelection' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'ssStreamOrder' - A directive that determines the order of streams in the output.+--+-- * 'ssMinVideoBitsPerSecond' - The minimum video bitrate (bps) to include in output.+--+-- * 'ssMaxVideoBitsPerSecond' - The maximum video bitrate (bps) to include in output.+streamSelection+    :: StreamSelection+streamSelection =+  StreamSelection'+    { _ssStreamOrder = Nothing+    , _ssMinVideoBitsPerSecond = Nothing+    , _ssMaxVideoBitsPerSecond = Nothing+    }+++-- | A directive that determines the order of streams in the output.+ssStreamOrder :: Lens' StreamSelection (Maybe StreamOrder)+ssStreamOrder = lens _ssStreamOrder (\ s a -> s{_ssStreamOrder = a})++-- | The minimum video bitrate (bps) to include in output.+ssMinVideoBitsPerSecond :: Lens' StreamSelection (Maybe Int)+ssMinVideoBitsPerSecond = lens _ssMinVideoBitsPerSecond (\ s a -> s{_ssMinVideoBitsPerSecond = a})++-- | The maximum video bitrate (bps) to include in output.+ssMaxVideoBitsPerSecond :: Lens' StreamSelection (Maybe Int)+ssMaxVideoBitsPerSecond = lens _ssMaxVideoBitsPerSecond (\ s a -> s{_ssMaxVideoBitsPerSecond = a})++instance FromJSON StreamSelection where+        parseJSON+          = withObject "StreamSelection"+              (\ x ->+                 StreamSelection' <$>+                   (x .:? "streamOrder") <*>+                     (x .:? "minVideoBitsPerSecond")+                     <*> (x .:? "maxVideoBitsPerSecond"))++instance Hashable StreamSelection where++instance NFData StreamSelection where++instance ToJSON StreamSelection where+        toJSON StreamSelection'{..}+          = object+              (catMaybes+                 [("streamOrder" .=) <$> _ssStreamOrder,+                  ("minVideoBitsPerSecond" .=) <$>+                    _ssMinVideoBitsPerSecond,+                  ("maxVideoBitsPerSecond" .=) <$>+                    _ssMaxVideoBitsPerSecond])
+ gen/Network/AWS/MediaPackage/Types/Sum.hs view
@@ -0,0 +1,179 @@+{-# 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.MediaPackage.Types.Sum+-- Copyright   : (c) 2013-2018 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+module Network.AWS.MediaPackage.Types.Sum where++import Network.AWS.Prelude++data AdMarkers+  = AMNone+  | AMPassthrough+  | AMSCTE35Enhanced+  deriving (Eq, Ord, Read, Show, Enum, Bounded, Data, Typeable, Generic)+++instance FromText AdMarkers where+    parser = takeLowerText >>= \case+        "none" -> pure AMNone+        "passthrough" -> pure AMPassthrough+        "scte35_enhanced" -> pure AMSCTE35Enhanced+        e -> fromTextError $ "Failure parsing AdMarkers from value: '" <> e+           <> "'. Accepted values: none, passthrough, scte35_enhanced"++instance ToText AdMarkers where+    toText = \case+        AMNone -> "NONE"+        AMPassthrough -> "PASSTHROUGH"+        AMSCTE35Enhanced -> "SCTE35_ENHANCED"++instance Hashable     AdMarkers+instance NFData       AdMarkers+instance ToByteString AdMarkers+instance ToQuery      AdMarkers+instance ToHeader     AdMarkers++instance ToJSON AdMarkers where+    toJSON = toJSONText++instance FromJSON AdMarkers where+    parseJSON = parseJSONText "AdMarkers"++data EncryptionMethod+  = AES128+  | SampleAES+  deriving (Eq, Ord, Read, Show, Enum, Bounded, Data, Typeable, Generic)+++instance FromText EncryptionMethod where+    parser = takeLowerText >>= \case+        "aes_128" -> pure AES128+        "sample_aes" -> pure SampleAES+        e -> fromTextError $ "Failure parsing EncryptionMethod from value: '" <> e+           <> "'. Accepted values: aes_128, sample_aes"++instance ToText EncryptionMethod where+    toText = \case+        AES128 -> "AES_128"+        SampleAES -> "SAMPLE_AES"++instance Hashable     EncryptionMethod+instance NFData       EncryptionMethod+instance ToByteString EncryptionMethod+instance ToQuery      EncryptionMethod+instance ToHeader     EncryptionMethod++instance ToJSON EncryptionMethod where+    toJSON = toJSONText++instance FromJSON EncryptionMethod where+    parseJSON = parseJSONText "EncryptionMethod"++data PlaylistType+  = Event+  | None+  | Vod+  deriving (Eq, Ord, Read, Show, Enum, Bounded, Data, Typeable, Generic)+++instance FromText PlaylistType where+    parser = takeLowerText >>= \case+        "event" -> pure Event+        "none" -> pure None+        "vod" -> pure Vod+        e -> fromTextError $ "Failure parsing PlaylistType from value: '" <> e+           <> "'. Accepted values: event, none, vod"++instance ToText PlaylistType where+    toText = \case+        Event -> "EVENT"+        None -> "NONE"+        Vod -> "VOD"++instance Hashable     PlaylistType+instance NFData       PlaylistType+instance ToByteString PlaylistType+instance ToQuery      PlaylistType+instance ToHeader     PlaylistType++instance ToJSON PlaylistType where+    toJSON = toJSONText++instance FromJSON PlaylistType where+    parseJSON = parseJSONText "PlaylistType"++data Profile+  = PHbbtv15+  | PNone+  deriving (Eq, Ord, Read, Show, Enum, Bounded, Data, Typeable, Generic)+++instance FromText Profile where+    parser = takeLowerText >>= \case+        "hbbtv_1_5" -> pure PHbbtv15+        "none" -> pure PNone+        e -> fromTextError $ "Failure parsing Profile from value: '" <> e+           <> "'. Accepted values: hbbtv_1_5, none"++instance ToText Profile where+    toText = \case+        PHbbtv15 -> "HBBTV_1_5"+        PNone -> "NONE"++instance Hashable     Profile+instance NFData       Profile+instance ToByteString Profile+instance ToQuery      Profile+instance ToHeader     Profile++instance ToJSON Profile where+    toJSON = toJSONText++instance FromJSON Profile where+    parseJSON = parseJSONText "Profile"++data StreamOrder+  = Original+  | VideoBitrateAscending+  | VideoBitrateDescending+  deriving (Eq, Ord, Read, Show, Enum, Bounded, Data, Typeable, Generic)+++instance FromText StreamOrder where+    parser = takeLowerText >>= \case+        "original" -> pure Original+        "video_bitrate_ascending" -> pure VideoBitrateAscending+        "video_bitrate_descending" -> pure VideoBitrateDescending+        e -> fromTextError $ "Failure parsing StreamOrder from value: '" <> e+           <> "'. Accepted values: original, video_bitrate_ascending, video_bitrate_descending"++instance ToText StreamOrder where+    toText = \case+        Original -> "ORIGINAL"+        VideoBitrateAscending -> "VIDEO_BITRATE_ASCENDING"+        VideoBitrateDescending -> "VIDEO_BITRATE_DESCENDING"++instance Hashable     StreamOrder+instance NFData       StreamOrder+instance ToByteString StreamOrder+instance ToQuery      StreamOrder+instance ToHeader     StreamOrder++instance ToJSON StreamOrder where+    toJSON = toJSONText++instance FromJSON StreamOrder where+    parseJSON = parseJSONText "StreamOrder"
+ gen/Network/AWS/MediaPackage/UpdateChannel.hs view
@@ -0,0 +1,170 @@+{-# 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.MediaPackage.UpdateChannel+-- Copyright   : (c) 2013-2018 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Updates an existing Channel.+module Network.AWS.MediaPackage.UpdateChannel+    (+    -- * Creating a Request+      updateChannel+    , UpdateChannel+    -- * Request Lenses+    , ucDescription+    , ucId++    -- * Destructuring the Response+    , updateChannelResponse+    , UpdateChannelResponse+    -- * Response Lenses+    , ucrsHlsIngest+    , ucrsARN+    , ucrsId+    , ucrsDescription+    , ucrsResponseStatus+    ) where++import Network.AWS.Lens+import Network.AWS.MediaPackage.Types+import Network.AWS.MediaPackage.Types.Product+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | Configuration parameters used to update the Channel.+--+-- /See:/ 'updateChannel' smart constructor.+data UpdateChannel = UpdateChannel'+  { _ucDescription :: !(Maybe Text)+  , _ucId          :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'UpdateChannel' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'ucDescription' - A short text description of the Channel.+--+-- * 'ucId' - The ID of the Channel to update.+updateChannel+    :: Text -- ^ 'ucId'+    -> UpdateChannel+updateChannel pId_ = UpdateChannel' {_ucDescription = Nothing, _ucId = pId_}+++-- | A short text description of the Channel.+ucDescription :: Lens' UpdateChannel (Maybe Text)+ucDescription = lens _ucDescription (\ s a -> s{_ucDescription = a})++-- | The ID of the Channel to update.+ucId :: Lens' UpdateChannel Text+ucId = lens _ucId (\ s a -> s{_ucId = a})++instance AWSRequest UpdateChannel where+        type Rs UpdateChannel = UpdateChannelResponse+        request = putJSON mediaPackage+        response+          = receiveJSON+              (\ s h x ->+                 UpdateChannelResponse' <$>+                   (x .?> "hlsIngest") <*> (x .?> "arn") <*>+                     (x .?> "id")+                     <*> (x .?> "description")+                     <*> (pure (fromEnum s)))++instance Hashable UpdateChannel where++instance NFData UpdateChannel where++instance ToHeaders UpdateChannel where+        toHeaders+          = const+              (mconcat+                 ["Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON UpdateChannel where+        toJSON UpdateChannel'{..}+          = object+              (catMaybes [("description" .=) <$> _ucDescription])++instance ToPath UpdateChannel where+        toPath UpdateChannel'{..}+          = mconcat ["/channels/", toBS _ucId]++instance ToQuery UpdateChannel where+        toQuery = const mempty++-- | /See:/ 'updateChannelResponse' smart constructor.+data UpdateChannelResponse = UpdateChannelResponse'+  { _ucrsHlsIngest      :: !(Maybe HlsIngest)+  , _ucrsARN            :: !(Maybe Text)+  , _ucrsId             :: !(Maybe Text)+  , _ucrsDescription    :: !(Maybe Text)+  , _ucrsResponseStatus :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'UpdateChannelResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'ucrsHlsIngest' - Undocumented member.+--+-- * 'ucrsARN' - The Amazon Resource Name (ARN) assigned to the Channel.+--+-- * 'ucrsId' - The ID of the Channel.+--+-- * 'ucrsDescription' - A short text description of the Channel.+--+-- * 'ucrsResponseStatus' - -- | The response status code.+updateChannelResponse+    :: Int -- ^ 'ucrsResponseStatus'+    -> UpdateChannelResponse+updateChannelResponse pResponseStatus_ =+  UpdateChannelResponse'+    { _ucrsHlsIngest = Nothing+    , _ucrsARN = Nothing+    , _ucrsId = Nothing+    , _ucrsDescription = Nothing+    , _ucrsResponseStatus = pResponseStatus_+    }+++-- | Undocumented member.+ucrsHlsIngest :: Lens' UpdateChannelResponse (Maybe HlsIngest)+ucrsHlsIngest = lens _ucrsHlsIngest (\ s a -> s{_ucrsHlsIngest = a})++-- | The Amazon Resource Name (ARN) assigned to the Channel.+ucrsARN :: Lens' UpdateChannelResponse (Maybe Text)+ucrsARN = lens _ucrsARN (\ s a -> s{_ucrsARN = a})++-- | The ID of the Channel.+ucrsId :: Lens' UpdateChannelResponse (Maybe Text)+ucrsId = lens _ucrsId (\ s a -> s{_ucrsId = a})++-- | A short text description of the Channel.+ucrsDescription :: Lens' UpdateChannelResponse (Maybe Text)+ucrsDescription = lens _ucrsDescription (\ s a -> s{_ucrsDescription = a})++-- | -- | The response status code.+ucrsResponseStatus :: Lens' UpdateChannelResponse Int+ucrsResponseStatus = lens _ucrsResponseStatus (\ s a -> s{_ucrsResponseStatus = a})++instance NFData UpdateChannelResponse where
+ gen/Network/AWS/MediaPackage/UpdateOriginEndpoint.hs view
@@ -0,0 +1,348 @@+{-# 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.MediaPackage.UpdateOriginEndpoint+-- Copyright   : (c) 2013-2018 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Updates an existing OriginEndpoint.+module Network.AWS.MediaPackage.UpdateOriginEndpoint+    (+    -- * Creating a Request+      updateOriginEndpoint+    , UpdateOriginEndpoint+    -- * Request Lenses+    , uoeWhitelist+    , uoeHlsPackage+    , uoeManifestName+    , uoeStartoverWindowSeconds+    , uoeDashPackage+    , uoeMssPackage+    , uoeTimeDelaySeconds+    , uoeCmafPackage+    , uoeDescription+    , uoeId++    -- * Destructuring the Response+    , updateOriginEndpointResponse+    , UpdateOriginEndpointResponse+    -- * Response Lenses+    , uoersWhitelist+    , uoersHlsPackage+    , uoersARN+    , uoersManifestName+    , uoersURL+    , uoersChannelId+    , uoersStartoverWindowSeconds+    , uoersDashPackage+    , uoersMssPackage+    , uoersId+    , uoersTimeDelaySeconds+    , uoersCmafPackage+    , uoersDescription+    , uoersResponseStatus+    ) where++import Network.AWS.Lens+import Network.AWS.MediaPackage.Types+import Network.AWS.MediaPackage.Types.Product+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | Configuration parameters used to update an existing OriginEndpoint.+--+-- /See:/ 'updateOriginEndpoint' smart constructor.+data UpdateOriginEndpoint = UpdateOriginEndpoint'+  { _uoeWhitelist              :: !(Maybe [Text])+  , _uoeHlsPackage             :: !(Maybe HlsPackage)+  , _uoeManifestName           :: !(Maybe Text)+  , _uoeStartoverWindowSeconds :: !(Maybe Int)+  , _uoeDashPackage            :: !(Maybe DashPackage)+  , _uoeMssPackage             :: !(Maybe MssPackage)+  , _uoeTimeDelaySeconds       :: !(Maybe Int)+  , _uoeCmafPackage            :: !(Maybe CmafPackageCreateOrUpdateParameters)+  , _uoeDescription            :: !(Maybe Text)+  , _uoeId                     :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'UpdateOriginEndpoint' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'uoeWhitelist' - A list of source IP CIDR blocks that will be allowed to access the OriginEndpoint.+--+-- * 'uoeHlsPackage' - Undocumented member.+--+-- * 'uoeManifestName' - A short string that will be appended to the end of the Endpoint URL.+--+-- * 'uoeStartoverWindowSeconds' - Maximum duration (in seconds) of content to retain for startover playback. If not specified, startover playback will be disabled for the OriginEndpoint.+--+-- * 'uoeDashPackage' - Undocumented member.+--+-- * 'uoeMssPackage' - Undocumented member.+--+-- * 'uoeTimeDelaySeconds' - Amount of delay (in seconds) to enforce on the playback of live content. If not specified, there will be no time delay in effect for the OriginEndpoint.+--+-- * 'uoeCmafPackage' - Undocumented member.+--+-- * 'uoeDescription' - A short text description of the OriginEndpoint.+--+-- * 'uoeId' - The ID of the OriginEndpoint to update.+updateOriginEndpoint+    :: Text -- ^ 'uoeId'+    -> UpdateOriginEndpoint+updateOriginEndpoint pId_ =+  UpdateOriginEndpoint'+    { _uoeWhitelist = Nothing+    , _uoeHlsPackage = Nothing+    , _uoeManifestName = Nothing+    , _uoeStartoverWindowSeconds = Nothing+    , _uoeDashPackage = Nothing+    , _uoeMssPackage = Nothing+    , _uoeTimeDelaySeconds = Nothing+    , _uoeCmafPackage = Nothing+    , _uoeDescription = Nothing+    , _uoeId = pId_+    }+++-- | A list of source IP CIDR blocks that will be allowed to access the OriginEndpoint.+uoeWhitelist :: Lens' UpdateOriginEndpoint [Text]+uoeWhitelist = lens _uoeWhitelist (\ s a -> s{_uoeWhitelist = a}) . _Default . _Coerce++-- | Undocumented member.+uoeHlsPackage :: Lens' UpdateOriginEndpoint (Maybe HlsPackage)+uoeHlsPackage = lens _uoeHlsPackage (\ s a -> s{_uoeHlsPackage = a})++-- | A short string that will be appended to the end of the Endpoint URL.+uoeManifestName :: Lens' UpdateOriginEndpoint (Maybe Text)+uoeManifestName = lens _uoeManifestName (\ s a -> s{_uoeManifestName = a})++-- | Maximum duration (in seconds) of content to retain for startover playback. If not specified, startover playback will be disabled for the OriginEndpoint.+uoeStartoverWindowSeconds :: Lens' UpdateOriginEndpoint (Maybe Int)+uoeStartoverWindowSeconds = lens _uoeStartoverWindowSeconds (\ s a -> s{_uoeStartoverWindowSeconds = a})++-- | Undocumented member.+uoeDashPackage :: Lens' UpdateOriginEndpoint (Maybe DashPackage)+uoeDashPackage = lens _uoeDashPackage (\ s a -> s{_uoeDashPackage = a})++-- | Undocumented member.+uoeMssPackage :: Lens' UpdateOriginEndpoint (Maybe MssPackage)+uoeMssPackage = lens _uoeMssPackage (\ s a -> s{_uoeMssPackage = a})++-- | Amount of delay (in seconds) to enforce on the playback of live content. If not specified, there will be no time delay in effect for the OriginEndpoint.+uoeTimeDelaySeconds :: Lens' UpdateOriginEndpoint (Maybe Int)+uoeTimeDelaySeconds = lens _uoeTimeDelaySeconds (\ s a -> s{_uoeTimeDelaySeconds = a})++-- | Undocumented member.+uoeCmafPackage :: Lens' UpdateOriginEndpoint (Maybe CmafPackageCreateOrUpdateParameters)+uoeCmafPackage = lens _uoeCmafPackage (\ s a -> s{_uoeCmafPackage = a})++-- | A short text description of the OriginEndpoint.+uoeDescription :: Lens' UpdateOriginEndpoint (Maybe Text)+uoeDescription = lens _uoeDescription (\ s a -> s{_uoeDescription = a})++-- | The ID of the OriginEndpoint to update.+uoeId :: Lens' UpdateOriginEndpoint Text+uoeId = lens _uoeId (\ s a -> s{_uoeId = a})++instance AWSRequest UpdateOriginEndpoint where+        type Rs UpdateOriginEndpoint =+             UpdateOriginEndpointResponse+        request = putJSON mediaPackage+        response+          = receiveJSON+              (\ s h x ->+                 UpdateOriginEndpointResponse' <$>+                   (x .?> "whitelist" .!@ mempty) <*>+                     (x .?> "hlsPackage")+                     <*> (x .?> "arn")+                     <*> (x .?> "manifestName")+                     <*> (x .?> "url")+                     <*> (x .?> "channelId")+                     <*> (x .?> "startoverWindowSeconds")+                     <*> (x .?> "dashPackage")+                     <*> (x .?> "mssPackage")+                     <*> (x .?> "id")+                     <*> (x .?> "timeDelaySeconds")+                     <*> (x .?> "cmafPackage")+                     <*> (x .?> "description")+                     <*> (pure (fromEnum s)))++instance Hashable UpdateOriginEndpoint where++instance NFData UpdateOriginEndpoint where++instance ToHeaders UpdateOriginEndpoint where+        toHeaders+          = const+              (mconcat+                 ["Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON UpdateOriginEndpoint where+        toJSON UpdateOriginEndpoint'{..}+          = object+              (catMaybes+                 [("whitelist" .=) <$> _uoeWhitelist,+                  ("hlsPackage" .=) <$> _uoeHlsPackage,+                  ("manifestName" .=) <$> _uoeManifestName,+                  ("startoverWindowSeconds" .=) <$>+                    _uoeStartoverWindowSeconds,+                  ("dashPackage" .=) <$> _uoeDashPackage,+                  ("mssPackage" .=) <$> _uoeMssPackage,+                  ("timeDelaySeconds" .=) <$> _uoeTimeDelaySeconds,+                  ("cmafPackage" .=) <$> _uoeCmafPackage,+                  ("description" .=) <$> _uoeDescription])++instance ToPath UpdateOriginEndpoint where+        toPath UpdateOriginEndpoint'{..}+          = mconcat ["/origin_endpoints/", toBS _uoeId]++instance ToQuery UpdateOriginEndpoint where+        toQuery = const mempty++-- | /See:/ 'updateOriginEndpointResponse' smart constructor.+data UpdateOriginEndpointResponse = UpdateOriginEndpointResponse'+  { _uoersWhitelist              :: !(Maybe [Text])+  , _uoersHlsPackage             :: !(Maybe HlsPackage)+  , _uoersARN                    :: !(Maybe Text)+  , _uoersManifestName           :: !(Maybe Text)+  , _uoersURL                    :: !(Maybe Text)+  , _uoersChannelId              :: !(Maybe Text)+  , _uoersStartoverWindowSeconds :: !(Maybe Int)+  , _uoersDashPackage            :: !(Maybe DashPackage)+  , _uoersMssPackage             :: !(Maybe MssPackage)+  , _uoersId                     :: !(Maybe Text)+  , _uoersTimeDelaySeconds       :: !(Maybe Int)+  , _uoersCmafPackage            :: !(Maybe CmafPackage)+  , _uoersDescription            :: !(Maybe Text)+  , _uoersResponseStatus         :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'UpdateOriginEndpointResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'uoersWhitelist' - A list of source IP CIDR blocks that will be allowed to access the OriginEndpoint.+--+-- * 'uoersHlsPackage' - Undocumented member.+--+-- * 'uoersARN' - The Amazon Resource Name (ARN) assigned to the OriginEndpoint.+--+-- * 'uoersManifestName' - A short string appended to the end of the OriginEndpoint URL.+--+-- * 'uoersURL' - The URL of the packaged OriginEndpoint for consumption.+--+-- * 'uoersChannelId' - The ID of the Channel the OriginEndpoint is associated with.+--+-- * 'uoersStartoverWindowSeconds' - Maximum duration (seconds) of content to retain for startover playback. If not specified, startover playback will be disabled for the OriginEndpoint.+--+-- * 'uoersDashPackage' - Undocumented member.+--+-- * 'uoersMssPackage' - Undocumented member.+--+-- * 'uoersId' - The ID of the OriginEndpoint.+--+-- * 'uoersTimeDelaySeconds' - Amount of delay (seconds) to enforce on the playback of live content. If not specified, there will be no time delay in effect for the OriginEndpoint.+--+-- * 'uoersCmafPackage' - Undocumented member.+--+-- * 'uoersDescription' - A short text description of the OriginEndpoint.+--+-- * 'uoersResponseStatus' - -- | The response status code.+updateOriginEndpointResponse+    :: Int -- ^ 'uoersResponseStatus'+    -> UpdateOriginEndpointResponse+updateOriginEndpointResponse pResponseStatus_ =+  UpdateOriginEndpointResponse'+    { _uoersWhitelist = Nothing+    , _uoersHlsPackage = Nothing+    , _uoersARN = Nothing+    , _uoersManifestName = Nothing+    , _uoersURL = Nothing+    , _uoersChannelId = Nothing+    , _uoersStartoverWindowSeconds = Nothing+    , _uoersDashPackage = Nothing+    , _uoersMssPackage = Nothing+    , _uoersId = Nothing+    , _uoersTimeDelaySeconds = Nothing+    , _uoersCmafPackage = Nothing+    , _uoersDescription = Nothing+    , _uoersResponseStatus = pResponseStatus_+    }+++-- | A list of source IP CIDR blocks that will be allowed to access the OriginEndpoint.+uoersWhitelist :: Lens' UpdateOriginEndpointResponse [Text]+uoersWhitelist = lens _uoersWhitelist (\ s a -> s{_uoersWhitelist = a}) . _Default . _Coerce++-- | Undocumented member.+uoersHlsPackage :: Lens' UpdateOriginEndpointResponse (Maybe HlsPackage)+uoersHlsPackage = lens _uoersHlsPackage (\ s a -> s{_uoersHlsPackage = a})++-- | The Amazon Resource Name (ARN) assigned to the OriginEndpoint.+uoersARN :: Lens' UpdateOriginEndpointResponse (Maybe Text)+uoersARN = lens _uoersARN (\ s a -> s{_uoersARN = a})++-- | A short string appended to the end of the OriginEndpoint URL.+uoersManifestName :: Lens' UpdateOriginEndpointResponse (Maybe Text)+uoersManifestName = lens _uoersManifestName (\ s a -> s{_uoersManifestName = a})++-- | The URL of the packaged OriginEndpoint for consumption.+uoersURL :: Lens' UpdateOriginEndpointResponse (Maybe Text)+uoersURL = lens _uoersURL (\ s a -> s{_uoersURL = a})++-- | The ID of the Channel the OriginEndpoint is associated with.+uoersChannelId :: Lens' UpdateOriginEndpointResponse (Maybe Text)+uoersChannelId = lens _uoersChannelId (\ s a -> s{_uoersChannelId = a})++-- | Maximum duration (seconds) of content to retain for startover playback. If not specified, startover playback will be disabled for the OriginEndpoint.+uoersStartoverWindowSeconds :: Lens' UpdateOriginEndpointResponse (Maybe Int)+uoersStartoverWindowSeconds = lens _uoersStartoverWindowSeconds (\ s a -> s{_uoersStartoverWindowSeconds = a})++-- | Undocumented member.+uoersDashPackage :: Lens' UpdateOriginEndpointResponse (Maybe DashPackage)+uoersDashPackage = lens _uoersDashPackage (\ s a -> s{_uoersDashPackage = a})++-- | Undocumented member.+uoersMssPackage :: Lens' UpdateOriginEndpointResponse (Maybe MssPackage)+uoersMssPackage = lens _uoersMssPackage (\ s a -> s{_uoersMssPackage = a})++-- | The ID of the OriginEndpoint.+uoersId :: Lens' UpdateOriginEndpointResponse (Maybe Text)+uoersId = lens _uoersId (\ s a -> s{_uoersId = a})++-- | Amount of delay (seconds) to enforce on the playback of live content. If not specified, there will be no time delay in effect for the OriginEndpoint.+uoersTimeDelaySeconds :: Lens' UpdateOriginEndpointResponse (Maybe Int)+uoersTimeDelaySeconds = lens _uoersTimeDelaySeconds (\ s a -> s{_uoersTimeDelaySeconds = a})++-- | Undocumented member.+uoersCmafPackage :: Lens' UpdateOriginEndpointResponse (Maybe CmafPackage)+uoersCmafPackage = lens _uoersCmafPackage (\ s a -> s{_uoersCmafPackage = a})++-- | A short text description of the OriginEndpoint.+uoersDescription :: Lens' UpdateOriginEndpointResponse (Maybe Text)+uoersDescription = lens _uoersDescription (\ s a -> s{_uoersDescription = a})++-- | -- | The response status code.+uoersResponseStatus :: Lens' UpdateOriginEndpointResponse Int+uoersResponseStatus = lens _uoersResponseStatus (\ s a -> s{_uoersResponseStatus = a})++instance NFData UpdateOriginEndpointResponse where
+ gen/Network/AWS/MediaPackage/Waiters.hs view
@@ -0,0 +1,21 @@+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE TypeFamilies      #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Network.AWS.MediaPackage.Waiters+-- Copyright   : (c) 2013-2018 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+module Network.AWS.MediaPackage.Waiters where++import Network.AWS.Lens+import Network.AWS.MediaPackage.Types+import Network.AWS.Prelude+import Network.AWS.Waiter
+ src/.gitkeep view
+ test/Main.hs view
@@ -0,0 +1,21 @@+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- |+-- Module      : Main+-- Copyright   : (c) 2013-2018 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+module Main (main) where++import Test.Tasty+import Test.AWS.MediaPackage+import Test.AWS.MediaPackage.Internal++main :: IO ()+main = defaultMain $ testGroup "MediaPackage"+    [ testGroup "tests"    tests+    , testGroup "fixtures" fixtures+    ]
+ test/Test/AWS/Gen/MediaPackage.hs view
@@ -0,0 +1,237 @@+{-# 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.MediaPackage+-- Copyright   : (c) 2013-2018 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+module Test.AWS.Gen.MediaPackage where++import Data.Proxy+import Network.AWS.MediaPackage+import Test.AWS.Fixture+import Test.AWS.MediaPackage.Internal+import Test.AWS.Prelude+import Test.Tasty++-- 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"+--         [ requestRotateChannelCredentials $+--             rotateChannelCredentials+--+--         , requestDescribeOriginEndpoint $+--             describeOriginEndpoint+--+--         , requestListChannels $+--             listChannels+--+--         , requestDeleteChannel $+--             deleteChannel+--+--         , requestUpdateChannel $+--             updateChannel+--+--         , requestCreateOriginEndpoint $+--             createOriginEndpoint+--+--         , requestListOriginEndpoints $+--             listOriginEndpoints+--+--         , requestCreateChannel $+--             createChannel+--+--         , requestDescribeChannel $+--             describeChannel+--+--         , requestDeleteOriginEndpoint $+--             deleteOriginEndpoint+--+--         , requestUpdateOriginEndpoint $+--             updateOriginEndpoint+--+--           ]++--     , testGroup "response"+--         [ responseRotateChannelCredentials $+--             rotateChannelCredentialsResponse+--+--         , responseDescribeOriginEndpoint $+--             describeOriginEndpointResponse+--+--         , responseListChannels $+--             listChannelsResponse+--+--         , responseDeleteChannel $+--             deleteChannelResponse+--+--         , responseUpdateChannel $+--             updateChannelResponse+--+--         , responseCreateOriginEndpoint $+--             createOriginEndpointResponse+--+--         , responseListOriginEndpoints $+--             listOriginEndpointsResponse+--+--         , responseCreateChannel $+--             createChannelResponse+--+--         , responseDescribeChannel $+--             describeChannelResponse+--+--         , responseDeleteOriginEndpoint $+--             deleteOriginEndpointResponse+--+--         , responseUpdateOriginEndpoint $+--             updateOriginEndpointResponse+--+--           ]+--     ]++-- Requests++requestRotateChannelCredentials :: RotateChannelCredentials -> TestTree+requestRotateChannelCredentials = req+    "RotateChannelCredentials"+    "fixture/RotateChannelCredentials.yaml"++requestDescribeOriginEndpoint :: DescribeOriginEndpoint -> TestTree+requestDescribeOriginEndpoint = req+    "DescribeOriginEndpoint"+    "fixture/DescribeOriginEndpoint.yaml"++requestListChannels :: ListChannels -> TestTree+requestListChannels = req+    "ListChannels"+    "fixture/ListChannels.yaml"++requestDeleteChannel :: DeleteChannel -> TestTree+requestDeleteChannel = req+    "DeleteChannel"+    "fixture/DeleteChannel.yaml"++requestUpdateChannel :: UpdateChannel -> TestTree+requestUpdateChannel = req+    "UpdateChannel"+    "fixture/UpdateChannel.yaml"++requestCreateOriginEndpoint :: CreateOriginEndpoint -> TestTree+requestCreateOriginEndpoint = req+    "CreateOriginEndpoint"+    "fixture/CreateOriginEndpoint.yaml"++requestListOriginEndpoints :: ListOriginEndpoints -> TestTree+requestListOriginEndpoints = req+    "ListOriginEndpoints"+    "fixture/ListOriginEndpoints.yaml"++requestCreateChannel :: CreateChannel -> TestTree+requestCreateChannel = req+    "CreateChannel"+    "fixture/CreateChannel.yaml"++requestDescribeChannel :: DescribeChannel -> TestTree+requestDescribeChannel = req+    "DescribeChannel"+    "fixture/DescribeChannel.yaml"++requestDeleteOriginEndpoint :: DeleteOriginEndpoint -> TestTree+requestDeleteOriginEndpoint = req+    "DeleteOriginEndpoint"+    "fixture/DeleteOriginEndpoint.yaml"++requestUpdateOriginEndpoint :: UpdateOriginEndpoint -> TestTree+requestUpdateOriginEndpoint = req+    "UpdateOriginEndpoint"+    "fixture/UpdateOriginEndpoint.yaml"++-- Responses++responseRotateChannelCredentials :: RotateChannelCredentialsResponse -> TestTree+responseRotateChannelCredentials = res+    "RotateChannelCredentialsResponse"+    "fixture/RotateChannelCredentialsResponse.proto"+    mediaPackage+    (Proxy :: Proxy RotateChannelCredentials)++responseDescribeOriginEndpoint :: DescribeOriginEndpointResponse -> TestTree+responseDescribeOriginEndpoint = res+    "DescribeOriginEndpointResponse"+    "fixture/DescribeOriginEndpointResponse.proto"+    mediaPackage+    (Proxy :: Proxy DescribeOriginEndpoint)++responseListChannels :: ListChannelsResponse -> TestTree+responseListChannels = res+    "ListChannelsResponse"+    "fixture/ListChannelsResponse.proto"+    mediaPackage+    (Proxy :: Proxy ListChannels)++responseDeleteChannel :: DeleteChannelResponse -> TestTree+responseDeleteChannel = res+    "DeleteChannelResponse"+    "fixture/DeleteChannelResponse.proto"+    mediaPackage+    (Proxy :: Proxy DeleteChannel)++responseUpdateChannel :: UpdateChannelResponse -> TestTree+responseUpdateChannel = res+    "UpdateChannelResponse"+    "fixture/UpdateChannelResponse.proto"+    mediaPackage+    (Proxy :: Proxy UpdateChannel)++responseCreateOriginEndpoint :: CreateOriginEndpointResponse -> TestTree+responseCreateOriginEndpoint = res+    "CreateOriginEndpointResponse"+    "fixture/CreateOriginEndpointResponse.proto"+    mediaPackage+    (Proxy :: Proxy CreateOriginEndpoint)++responseListOriginEndpoints :: ListOriginEndpointsResponse -> TestTree+responseListOriginEndpoints = res+    "ListOriginEndpointsResponse"+    "fixture/ListOriginEndpointsResponse.proto"+    mediaPackage+    (Proxy :: Proxy ListOriginEndpoints)++responseCreateChannel :: CreateChannelResponse -> TestTree+responseCreateChannel = res+    "CreateChannelResponse"+    "fixture/CreateChannelResponse.proto"+    mediaPackage+    (Proxy :: Proxy CreateChannel)++responseDescribeChannel :: DescribeChannelResponse -> TestTree+responseDescribeChannel = res+    "DescribeChannelResponse"+    "fixture/DescribeChannelResponse.proto"+    mediaPackage+    (Proxy :: Proxy DescribeChannel)++responseDeleteOriginEndpoint :: DeleteOriginEndpointResponse -> TestTree+responseDeleteOriginEndpoint = res+    "DeleteOriginEndpointResponse"+    "fixture/DeleteOriginEndpointResponse.proto"+    mediaPackage+    (Proxy :: Proxy DeleteOriginEndpoint)++responseUpdateOriginEndpoint :: UpdateOriginEndpointResponse -> TestTree+responseUpdateOriginEndpoint = res+    "UpdateOriginEndpointResponse"+    "fixture/UpdateOriginEndpointResponse.proto"+    mediaPackage+    (Proxy :: Proxy UpdateOriginEndpoint)
+ test/Test/AWS/MediaPackage.hs view
@@ -0,0 +1,20 @@+-- |+-- Module      : Test.AWS.MediaPackage+-- Copyright   : (c) 2013-2018 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+module Test.AWS.MediaPackage+    ( tests+    , fixtures+    ) where++import Test.Tasty (TestTree)++tests :: [TestTree]+tests = []++fixtures :: [TestTree]+fixtures = []
+ test/Test/AWS/MediaPackage/Internal.hs view
@@ -0,0 +1,9 @@+-- |+-- Module      : Test.AWS.MediaPackage.Internal+-- Copyright   : (c) 2013-2018 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+module Test.AWS.MediaPackage.Internal where