packages feed

amazonka-migrationhub (empty) → 1.5.0

raw patch · 62 files changed

+4674/−0 lines, 62 filesdep +amazonka-coredep +amazonka-migrationhubdep +amazonka-testsetup-changed

Dependencies added: amazonka-core, amazonka-migrationhub, 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 Migration Hub SDK++* [Version](#version)+* [Description](#description)+* [Contribute](#contribute)+* [Licence](#licence)+++## Version++`1.5.0`+++## Description++Documentation is available via [Hackage](http://hackage.haskell.org/package/amazonka-migrationhub)+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.MigrationHub](http://hackage.haskell.org/package/amazonka-migrationhub/docs/Network-AWS-MigrationHub.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-migrationhub` 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-migrationhub.cabal view
@@ -0,0 +1,101 @@+name:                  amazonka-migrationhub+version:               1.5.0+synopsis:              Amazon Migration Hub 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-2017 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.MigrationHub" 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-migrationhub++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.MigrationHub+        , Network.AWS.MigrationHub.AssociateCreatedArtifact+        , Network.AWS.MigrationHub.AssociateDiscoveredResource+        , Network.AWS.MigrationHub.CreateProgressUpdateStream+        , Network.AWS.MigrationHub.DeleteProgressUpdateStream+        , Network.AWS.MigrationHub.DescribeApplicationState+        , Network.AWS.MigrationHub.DescribeMigrationTask+        , Network.AWS.MigrationHub.DisassociateCreatedArtifact+        , Network.AWS.MigrationHub.DisassociateDiscoveredResource+        , Network.AWS.MigrationHub.ImportMigrationTask+        , Network.AWS.MigrationHub.ListCreatedArtifacts+        , Network.AWS.MigrationHub.ListDiscoveredResources+        , Network.AWS.MigrationHub.ListMigrationTasks+        , Network.AWS.MigrationHub.ListProgressUpdateStreams+        , Network.AWS.MigrationHub.NotifyApplicationState+        , Network.AWS.MigrationHub.NotifyMigrationTaskState+        , Network.AWS.MigrationHub.PutResourceAttributes+        , Network.AWS.MigrationHub.Types+        , Network.AWS.MigrationHub.Waiters++    other-modules:+          Network.AWS.MigrationHub.Types.Product+        , Network.AWS.MigrationHub.Types.Sum++    build-depends:+          amazonka-core == 1.5.0.*+        , base          >= 4.7     && < 5++test-suite amazonka-migrationhub-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.MigrationHub+        , Test.AWS.Gen.MigrationHub+        , Test.AWS.MigrationHub.Internal++    build-depends:+          amazonka-core == 1.5.0.*+        , amazonka-test == 1.5.0.*+        , amazonka-migrationhub+        , base+        , bytestring+        , tasty+        , tasty-hunit+        , text+        , time+        , unordered-containers
+ fixture/AssociateCreatedArtifact.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/mgh/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  mgh.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/AssociateCreatedArtifactResponse.proto view
+ fixture/AssociateDiscoveredResource.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/mgh/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  mgh.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/AssociateDiscoveredResourceResponse.proto view
+ fixture/CreateProgressUpdateStream.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/mgh/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  mgh.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/CreateProgressUpdateStreamResponse.proto view
+ fixture/DeleteProgressUpdateStream.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/mgh/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  mgh.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/DeleteProgressUpdateStreamResponse.proto view
+ fixture/DescribeApplicationState.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/mgh/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  mgh.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/DescribeApplicationStateResponse.proto view
+ fixture/DescribeMigrationTask.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/mgh/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  mgh.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/DescribeMigrationTaskResponse.proto view
+ fixture/DisassociateCreatedArtifact.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/mgh/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  mgh.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/DisassociateCreatedArtifactResponse.proto view
+ fixture/DisassociateDiscoveredResource.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/mgh/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  mgh.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/DisassociateDiscoveredResourceResponse.proto view
+ fixture/ImportMigrationTask.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/mgh/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  mgh.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/ImportMigrationTaskResponse.proto view
+ fixture/ListCreatedArtifacts.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/mgh/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  mgh.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/ListCreatedArtifactsResponse.proto view
+ fixture/ListDiscoveredResources.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/mgh/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  mgh.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/ListDiscoveredResourcesResponse.proto view
+ fixture/ListMigrationTasks.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/mgh/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  mgh.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/ListMigrationTasksResponse.proto view
+ fixture/ListProgressUpdateStreams.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/mgh/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  mgh.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/ListProgressUpdateStreamsResponse.proto view
+ fixture/NotifyApplicationState.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/mgh/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  mgh.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/NotifyApplicationStateResponse.proto view
+ fixture/NotifyMigrationTaskState.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/mgh/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  mgh.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/NotifyMigrationTaskStateResponse.proto view
+ fixture/PutResourceAttributes.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/mgh/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  mgh.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/PutResourceAttributesResponse.proto view
+ gen/Network/AWS/MigrationHub.hs view
@@ -0,0 +1,211 @@+{-# 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.MigrationHub+-- Copyright   : (c) 2013-2017 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.MigrationHub+    (+    -- * Service Configuration+      migrationHub++    -- * Errors+    -- $errors++    -- ** AccessDeniedException+    , _AccessDeniedException++    -- ** DryRunOperation+    , _DryRunOperation++    -- ** PolicyErrorException+    , _PolicyErrorException++    -- ** InternalServerError+    , _InternalServerError++    -- ** InvalidInputException+    , _InvalidInputException++    -- ** ServiceUnavailableException+    , _ServiceUnavailableException++    -- ** ResourceNotFoundException+    , _ResourceNotFoundException++    -- ** UnauthorizedOperation+    , _UnauthorizedOperation++    -- * Waiters+    -- $waiters++    -- * Operations+    -- $operations++    -- ** AssociateDiscoveredResource+    , module Network.AWS.MigrationHub.AssociateDiscoveredResource++    -- ** CreateProgressUpdateStream+    , module Network.AWS.MigrationHub.CreateProgressUpdateStream++    -- ** ListCreatedArtifacts+    , module Network.AWS.MigrationHub.ListCreatedArtifacts++    -- ** DisassociateDiscoveredResource+    , module Network.AWS.MigrationHub.DisassociateDiscoveredResource++    -- ** NotifyApplicationState+    , module Network.AWS.MigrationHub.NotifyApplicationState++    -- ** DeleteProgressUpdateStream+    , module Network.AWS.MigrationHub.DeleteProgressUpdateStream++    -- ** ListProgressUpdateStreams+    , module Network.AWS.MigrationHub.ListProgressUpdateStreams++    -- ** DisassociateCreatedArtifact+    , module Network.AWS.MigrationHub.DisassociateCreatedArtifact++    -- ** ImportMigrationTask+    , module Network.AWS.MigrationHub.ImportMigrationTask++    -- ** DescribeMigrationTask+    , module Network.AWS.MigrationHub.DescribeMigrationTask++    -- ** PutResourceAttributes+    , module Network.AWS.MigrationHub.PutResourceAttributes++    -- ** AssociateCreatedArtifact+    , module Network.AWS.MigrationHub.AssociateCreatedArtifact++    -- ** NotifyMigrationTaskState+    , module Network.AWS.MigrationHub.NotifyMigrationTaskState++    -- ** DescribeApplicationState+    , module Network.AWS.MigrationHub.DescribeApplicationState++    -- ** ListMigrationTasks+    , module Network.AWS.MigrationHub.ListMigrationTasks++    -- ** ListDiscoveredResources+    , module Network.AWS.MigrationHub.ListDiscoveredResources++    -- * Types++    -- ** ApplicationStatus+    , ApplicationStatus (..)++    -- ** MigrationStatus+    , MigrationStatus (..)++    -- ** ResourceAttributeType+    , ResourceAttributeType (..)++    -- ** CreatedArtifact+    , CreatedArtifact+    , createdArtifact+    , caDescription+    , caName++    -- ** DiscoveredResource+    , DiscoveredResource+    , discoveredResource+    , drDescription+    , drConfigurationId++    -- ** MigrationTask+    , MigrationTask+    , migrationTask+    , mtUpdateDateTime+    , mtResourceAttributeList+    , mtTask+    , mtProgressUpdateStream+    , mtMigrationTaskName++    -- ** MigrationTaskSummary+    , MigrationTaskSummary+    , migrationTaskSummary+    , mtsStatus+    , mtsUpdateDateTime+    , mtsProgressPercent+    , mtsStatusDetail+    , mtsProgressUpdateStream+    , mtsMigrationTaskName++    -- ** ProgressUpdateStreamSummary+    , ProgressUpdateStreamSummary+    , progressUpdateStreamSummary+    , pussProgressUpdateStreamName++    -- ** ResourceAttribute+    , ResourceAttribute+    , resourceAttribute+    , raType+    , raValue++    -- ** Task+    , Task+    , task+    , tProgressPercent+    , tStatusDetail+    , tStatus+    ) where++import Network.AWS.MigrationHub.AssociateCreatedArtifact+import Network.AWS.MigrationHub.AssociateDiscoveredResource+import Network.AWS.MigrationHub.CreateProgressUpdateStream+import Network.AWS.MigrationHub.DeleteProgressUpdateStream+import Network.AWS.MigrationHub.DescribeApplicationState+import Network.AWS.MigrationHub.DescribeMigrationTask+import Network.AWS.MigrationHub.DisassociateCreatedArtifact+import Network.AWS.MigrationHub.DisassociateDiscoveredResource+import Network.AWS.MigrationHub.ImportMigrationTask+import Network.AWS.MigrationHub.ListCreatedArtifacts+import Network.AWS.MigrationHub.ListDiscoveredResources+import Network.AWS.MigrationHub.ListMigrationTasks+import Network.AWS.MigrationHub.ListProgressUpdateStreams+import Network.AWS.MigrationHub.NotifyApplicationState+import Network.AWS.MigrationHub.NotifyMigrationTaskState+import Network.AWS.MigrationHub.PutResourceAttributes+import Network.AWS.MigrationHub.Types+import Network.AWS.MigrationHub.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 'MigrationHub'.+-}++{- $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/MigrationHub/AssociateCreatedArtifact.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.MigrationHub.AssociateCreatedArtifact+-- Copyright   : (c) 2013-2017 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)+--+-- Associates a created artifact of an AWS cloud resource, the target receiving the migration, with the migration task performed by a migration tool. This API has the following traits:+--+--+--     * Migration tools can call the @AssociateCreatedArtifact@ operation to indicate which AWS artifact is associated with a migration task.+--+--     * The created artifact name must be provided in ARN (Amazon Resource Name) format which will contain information about type and region; for example: @arn:aws:ec2:us-east-1:488216288981:image/ami-6d0ba87b@ .+--+--     * Examples of the AWS resource behind the created artifact are, AMI's, EC2 instance, or DMS endpoint, etc.+--+--+--+module Network.AWS.MigrationHub.AssociateCreatedArtifact+    (+    -- * Creating a Request+      associateCreatedArtifact+    , AssociateCreatedArtifact+    -- * Request Lenses+    , acaDryRun+    , acaProgressUpdateStream+    , acaMigrationTaskName+    , acaCreatedArtifact++    -- * Destructuring the Response+    , associateCreatedArtifactResponse+    , AssociateCreatedArtifactResponse+    -- * Response Lenses+    , acarsResponseStatus+    ) where++import Network.AWS.Lens+import Network.AWS.MigrationHub.Types+import Network.AWS.MigrationHub.Types.Product+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'associateCreatedArtifact' smart constructor.+data AssociateCreatedArtifact = AssociateCreatedArtifact'+  { _acaDryRun               :: !(Maybe Bool)+  , _acaProgressUpdateStream :: !Text+  , _acaMigrationTaskName    :: !Text+  , _acaCreatedArtifact      :: !CreatedArtifact+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'AssociateCreatedArtifact' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'acaDryRun' - Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call.+--+-- * 'acaProgressUpdateStream' - The name of the ProgressUpdateStream.+--+-- * 'acaMigrationTaskName' - Unique identifier that references the migration task.+--+-- * 'acaCreatedArtifact' - An ARN of the AWS resource related to the migration (e.g., AMI, EC2 instance, RDS instance, etc.)+associateCreatedArtifact+    :: Text -- ^ 'acaProgressUpdateStream'+    -> Text -- ^ 'acaMigrationTaskName'+    -> CreatedArtifact -- ^ 'acaCreatedArtifact'+    -> AssociateCreatedArtifact+associateCreatedArtifact pProgressUpdateStream_ pMigrationTaskName_ pCreatedArtifact_ =+  AssociateCreatedArtifact'+  { _acaDryRun = Nothing+  , _acaProgressUpdateStream = pProgressUpdateStream_+  , _acaMigrationTaskName = pMigrationTaskName_+  , _acaCreatedArtifact = pCreatedArtifact_+  }+++-- | Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call.+acaDryRun :: Lens' AssociateCreatedArtifact (Maybe Bool)+acaDryRun = lens _acaDryRun (\ s a -> s{_acaDryRun = a});++-- | The name of the ProgressUpdateStream.+acaProgressUpdateStream :: Lens' AssociateCreatedArtifact Text+acaProgressUpdateStream = lens _acaProgressUpdateStream (\ s a -> s{_acaProgressUpdateStream = a});++-- | Unique identifier that references the migration task.+acaMigrationTaskName :: Lens' AssociateCreatedArtifact Text+acaMigrationTaskName = lens _acaMigrationTaskName (\ s a -> s{_acaMigrationTaskName = a});++-- | An ARN of the AWS resource related to the migration (e.g., AMI, EC2 instance, RDS instance, etc.)+acaCreatedArtifact :: Lens' AssociateCreatedArtifact CreatedArtifact+acaCreatedArtifact = lens _acaCreatedArtifact (\ s a -> s{_acaCreatedArtifact = a});++instance AWSRequest AssociateCreatedArtifact where+        type Rs AssociateCreatedArtifact =+             AssociateCreatedArtifactResponse+        request = postJSON migrationHub+        response+          = receiveEmpty+              (\ s h x ->+                 AssociateCreatedArtifactResponse' <$>+                   (pure (fromEnum s)))++instance Hashable AssociateCreatedArtifact where++instance NFData AssociateCreatedArtifact where++instance ToHeaders AssociateCreatedArtifact where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("AWSMigrationHub.AssociateCreatedArtifact" ::+                       ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON AssociateCreatedArtifact where+        toJSON AssociateCreatedArtifact'{..}+          = object+              (catMaybes+                 [("DryRun" .=) <$> _acaDryRun,+                  Just+                    ("ProgressUpdateStream" .= _acaProgressUpdateStream),+                  Just ("MigrationTaskName" .= _acaMigrationTaskName),+                  Just ("CreatedArtifact" .= _acaCreatedArtifact)])++instance ToPath AssociateCreatedArtifact where+        toPath = const "/"++instance ToQuery AssociateCreatedArtifact where+        toQuery = const mempty++-- | /See:/ 'associateCreatedArtifactResponse' smart constructor.+newtype AssociateCreatedArtifactResponse = AssociateCreatedArtifactResponse'+  { _acarsResponseStatus :: Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'AssociateCreatedArtifactResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'acarsResponseStatus' - -- | The response status code.+associateCreatedArtifactResponse+    :: Int -- ^ 'acarsResponseStatus'+    -> AssociateCreatedArtifactResponse+associateCreatedArtifactResponse pResponseStatus_ =+  AssociateCreatedArtifactResponse' {_acarsResponseStatus = pResponseStatus_}+++-- | -- | The response status code.+acarsResponseStatus :: Lens' AssociateCreatedArtifactResponse Int+acarsResponseStatus = lens _acarsResponseStatus (\ s a -> s{_acarsResponseStatus = a});++instance NFData AssociateCreatedArtifactResponse+         where
+ gen/Network/AWS/MigrationHub/AssociateDiscoveredResource.hs view
@@ -0,0 +1,163 @@+{-# 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.MigrationHub.AssociateDiscoveredResource+-- Copyright   : (c) 2013-2017 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)+--+-- Associates a discovered resource ID from Application Discovery Service (ADS) with a migration task.+--+--+module Network.AWS.MigrationHub.AssociateDiscoveredResource+    (+    -- * Creating a Request+      associateDiscoveredResource+    , AssociateDiscoveredResource+    -- * Request Lenses+    , adrDryRun+    , adrProgressUpdateStream+    , adrMigrationTaskName+    , adrDiscoveredResource++    -- * Destructuring the Response+    , associateDiscoveredResourceResponse+    , AssociateDiscoveredResourceResponse+    -- * Response Lenses+    , adrrsResponseStatus+    ) where++import Network.AWS.Lens+import Network.AWS.MigrationHub.Types+import Network.AWS.MigrationHub.Types.Product+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'associateDiscoveredResource' smart constructor.+data AssociateDiscoveredResource = AssociateDiscoveredResource'+  { _adrDryRun               :: !(Maybe Bool)+  , _adrProgressUpdateStream :: !Text+  , _adrMigrationTaskName    :: !Text+  , _adrDiscoveredResource   :: !DiscoveredResource+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'AssociateDiscoveredResource' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'adrDryRun' - Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call.+--+-- * 'adrProgressUpdateStream' - The name of the ProgressUpdateStream.+--+-- * 'adrMigrationTaskName' - The identifier given to the MigrationTask.+--+-- * 'adrDiscoveredResource' - Object representing a Resource.+associateDiscoveredResource+    :: Text -- ^ 'adrProgressUpdateStream'+    -> Text -- ^ 'adrMigrationTaskName'+    -> DiscoveredResource -- ^ 'adrDiscoveredResource'+    -> AssociateDiscoveredResource+associateDiscoveredResource pProgressUpdateStream_ pMigrationTaskName_ pDiscoveredResource_ =+  AssociateDiscoveredResource'+  { _adrDryRun = Nothing+  , _adrProgressUpdateStream = pProgressUpdateStream_+  , _adrMigrationTaskName = pMigrationTaskName_+  , _adrDiscoveredResource = pDiscoveredResource_+  }+++-- | Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call.+adrDryRun :: Lens' AssociateDiscoveredResource (Maybe Bool)+adrDryRun = lens _adrDryRun (\ s a -> s{_adrDryRun = a});++-- | The name of the ProgressUpdateStream.+adrProgressUpdateStream :: Lens' AssociateDiscoveredResource Text+adrProgressUpdateStream = lens _adrProgressUpdateStream (\ s a -> s{_adrProgressUpdateStream = a});++-- | The identifier given to the MigrationTask.+adrMigrationTaskName :: Lens' AssociateDiscoveredResource Text+adrMigrationTaskName = lens _adrMigrationTaskName (\ s a -> s{_adrMigrationTaskName = a});++-- | Object representing a Resource.+adrDiscoveredResource :: Lens' AssociateDiscoveredResource DiscoveredResource+adrDiscoveredResource = lens _adrDiscoveredResource (\ s a -> s{_adrDiscoveredResource = a});++instance AWSRequest AssociateDiscoveredResource where+        type Rs AssociateDiscoveredResource =+             AssociateDiscoveredResourceResponse+        request = postJSON migrationHub+        response+          = receiveEmpty+              (\ s h x ->+                 AssociateDiscoveredResourceResponse' <$>+                   (pure (fromEnum s)))++instance Hashable AssociateDiscoveredResource where++instance NFData AssociateDiscoveredResource where++instance ToHeaders AssociateDiscoveredResource where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("AWSMigrationHub.AssociateDiscoveredResource" ::+                       ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON AssociateDiscoveredResource where+        toJSON AssociateDiscoveredResource'{..}+          = object+              (catMaybes+                 [("DryRun" .=) <$> _adrDryRun,+                  Just+                    ("ProgressUpdateStream" .= _adrProgressUpdateStream),+                  Just ("MigrationTaskName" .= _adrMigrationTaskName),+                  Just+                    ("DiscoveredResource" .= _adrDiscoveredResource)])++instance ToPath AssociateDiscoveredResource where+        toPath = const "/"++instance ToQuery AssociateDiscoveredResource where+        toQuery = const mempty++-- | /See:/ 'associateDiscoveredResourceResponse' smart constructor.+newtype AssociateDiscoveredResourceResponse = AssociateDiscoveredResourceResponse'+  { _adrrsResponseStatus :: Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'AssociateDiscoveredResourceResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'adrrsResponseStatus' - -- | The response status code.+associateDiscoveredResourceResponse+    :: Int -- ^ 'adrrsResponseStatus'+    -> AssociateDiscoveredResourceResponse+associateDiscoveredResourceResponse pResponseStatus_ =+  AssociateDiscoveredResourceResponse' {_adrrsResponseStatus = pResponseStatus_}+++-- | -- | The response status code.+adrrsResponseStatus :: Lens' AssociateDiscoveredResourceResponse Int+adrrsResponseStatus = lens _adrrsResponseStatus (\ s a -> s{_adrrsResponseStatus = a});++instance NFData AssociateDiscoveredResourceResponse+         where
+ gen/Network/AWS/MigrationHub/CreateProgressUpdateStream.hs view
@@ -0,0 +1,141 @@+{-# 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.MigrationHub.CreateProgressUpdateStream+-- Copyright   : (c) 2013-2017 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 progress update stream which is an AWS resource used for access control as well as a namespace for migration task names that is implicitly linked to your AWS account. It must uniquely identify the migration tool as it is used for all updates made by the tool; however, it does not need to be unique for each AWS account because it is scoped to the AWS account.+--+--+module Network.AWS.MigrationHub.CreateProgressUpdateStream+    (+    -- * Creating a Request+      createProgressUpdateStream+    , CreateProgressUpdateStream+    -- * Request Lenses+    , cpusDryRun+    , cpusProgressUpdateStreamName++    -- * Destructuring the Response+    , createProgressUpdateStreamResponse+    , CreateProgressUpdateStreamResponse+    -- * Response Lenses+    , cpusrsResponseStatus+    ) where++import Network.AWS.Lens+import Network.AWS.MigrationHub.Types+import Network.AWS.MigrationHub.Types.Product+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'createProgressUpdateStream' smart constructor.+data CreateProgressUpdateStream = CreateProgressUpdateStream'+  { _cpusDryRun                   :: !(Maybe Bool)+  , _cpusProgressUpdateStreamName :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'CreateProgressUpdateStream' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'cpusDryRun' - Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call.+--+-- * 'cpusProgressUpdateStreamName' - The name of the ProgressUpdateStream.+createProgressUpdateStream+    :: Text -- ^ 'cpusProgressUpdateStreamName'+    -> CreateProgressUpdateStream+createProgressUpdateStream pProgressUpdateStreamName_ =+  CreateProgressUpdateStream'+  { _cpusDryRun = Nothing+  , _cpusProgressUpdateStreamName = pProgressUpdateStreamName_+  }+++-- | Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call.+cpusDryRun :: Lens' CreateProgressUpdateStream (Maybe Bool)+cpusDryRun = lens _cpusDryRun (\ s a -> s{_cpusDryRun = a});++-- | The name of the ProgressUpdateStream.+cpusProgressUpdateStreamName :: Lens' CreateProgressUpdateStream Text+cpusProgressUpdateStreamName = lens _cpusProgressUpdateStreamName (\ s a -> s{_cpusProgressUpdateStreamName = a});++instance AWSRequest CreateProgressUpdateStream where+        type Rs CreateProgressUpdateStream =+             CreateProgressUpdateStreamResponse+        request = postJSON migrationHub+        response+          = receiveEmpty+              (\ s h x ->+                 CreateProgressUpdateStreamResponse' <$>+                   (pure (fromEnum s)))++instance Hashable CreateProgressUpdateStream where++instance NFData CreateProgressUpdateStream where++instance ToHeaders CreateProgressUpdateStream where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("AWSMigrationHub.CreateProgressUpdateStream" ::+                       ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON CreateProgressUpdateStream where+        toJSON CreateProgressUpdateStream'{..}+          = object+              (catMaybes+                 [("DryRun" .=) <$> _cpusDryRun,+                  Just+                    ("ProgressUpdateStreamName" .=+                       _cpusProgressUpdateStreamName)])++instance ToPath CreateProgressUpdateStream where+        toPath = const "/"++instance ToQuery CreateProgressUpdateStream where+        toQuery = const mempty++-- | /See:/ 'createProgressUpdateStreamResponse' smart constructor.+newtype CreateProgressUpdateStreamResponse = CreateProgressUpdateStreamResponse'+  { _cpusrsResponseStatus :: Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'CreateProgressUpdateStreamResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'cpusrsResponseStatus' - -- | The response status code.+createProgressUpdateStreamResponse+    :: Int -- ^ 'cpusrsResponseStatus'+    -> CreateProgressUpdateStreamResponse+createProgressUpdateStreamResponse pResponseStatus_ =+  CreateProgressUpdateStreamResponse' {_cpusrsResponseStatus = pResponseStatus_}+++-- | -- | The response status code.+cpusrsResponseStatus :: Lens' CreateProgressUpdateStreamResponse Int+cpusrsResponseStatus = lens _cpusrsResponseStatus (\ s a -> s{_cpusrsResponseStatus = a});++instance NFData CreateProgressUpdateStreamResponse+         where
+ gen/Network/AWS/MigrationHub/DeleteProgressUpdateStream.hs view
@@ -0,0 +1,153 @@+{-# 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.MigrationHub.DeleteProgressUpdateStream+-- Copyright   : (c) 2013-2017 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 a progress update stream, including all of its tasks, which was previously created as an AWS resource used for access control. This API has the following traits:+--+--+--     * The only parameter needed for @DeleteProgressUpdateStream@ is the stream name (same as a @CreateProgressUpdateStream@ call).+--+--     * The call will return, and a background process will asynchronously be doing the actual delete of the stream and all of its resources (tasks, associated resources, resource attributes, created artifacts).+--+--     * If the stream takes time to be deleted, it might still show up on a @ListProgressUpdateStreams@ call.+--+--     * @CreateProgressUpdateStream@ , @ImportMigrationTask@ , @NotifyMigrationTaskState@ , and all Associate[*] APIs realted to the tasks belonging to the stream will throw "InvalidInputException" if the stream of the same name is in the process of being deleted.+--+--     * Once the stream and all of its resources are deleted, @CreateProgressUpdateStream@ for a stream of the same name will succeed, and that stream will be an entirely new logical resource (without any resources associated with the old stream).+--+--+--+module Network.AWS.MigrationHub.DeleteProgressUpdateStream+    (+    -- * Creating a Request+      deleteProgressUpdateStream+    , DeleteProgressUpdateStream+    -- * Request Lenses+    , dpusDryRun+    , dpusProgressUpdateStreamName++    -- * Destructuring the Response+    , deleteProgressUpdateStreamResponse+    , DeleteProgressUpdateStreamResponse+    -- * Response Lenses+    , dpusrsResponseStatus+    ) where++import Network.AWS.Lens+import Network.AWS.MigrationHub.Types+import Network.AWS.MigrationHub.Types.Product+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'deleteProgressUpdateStream' smart constructor.+data DeleteProgressUpdateStream = DeleteProgressUpdateStream'+  { _dpusDryRun                   :: !(Maybe Bool)+  , _dpusProgressUpdateStreamName :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DeleteProgressUpdateStream' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'dpusDryRun' - Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call.+--+-- * 'dpusProgressUpdateStreamName' - The name of the ProgressUpdateStream.+deleteProgressUpdateStream+    :: Text -- ^ 'dpusProgressUpdateStreamName'+    -> DeleteProgressUpdateStream+deleteProgressUpdateStream pProgressUpdateStreamName_ =+  DeleteProgressUpdateStream'+  { _dpusDryRun = Nothing+  , _dpusProgressUpdateStreamName = pProgressUpdateStreamName_+  }+++-- | Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call.+dpusDryRun :: Lens' DeleteProgressUpdateStream (Maybe Bool)+dpusDryRun = lens _dpusDryRun (\ s a -> s{_dpusDryRun = a});++-- | The name of the ProgressUpdateStream.+dpusProgressUpdateStreamName :: Lens' DeleteProgressUpdateStream Text+dpusProgressUpdateStreamName = lens _dpusProgressUpdateStreamName (\ s a -> s{_dpusProgressUpdateStreamName = a});++instance AWSRequest DeleteProgressUpdateStream where+        type Rs DeleteProgressUpdateStream =+             DeleteProgressUpdateStreamResponse+        request = postJSON migrationHub+        response+          = receiveEmpty+              (\ s h x ->+                 DeleteProgressUpdateStreamResponse' <$>+                   (pure (fromEnum s)))++instance Hashable DeleteProgressUpdateStream where++instance NFData DeleteProgressUpdateStream where++instance ToHeaders DeleteProgressUpdateStream where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("AWSMigrationHub.DeleteProgressUpdateStream" ::+                       ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON DeleteProgressUpdateStream where+        toJSON DeleteProgressUpdateStream'{..}+          = object+              (catMaybes+                 [("DryRun" .=) <$> _dpusDryRun,+                  Just+                    ("ProgressUpdateStreamName" .=+                       _dpusProgressUpdateStreamName)])++instance ToPath DeleteProgressUpdateStream where+        toPath = const "/"++instance ToQuery DeleteProgressUpdateStream where+        toQuery = const mempty++-- | /See:/ 'deleteProgressUpdateStreamResponse' smart constructor.+newtype DeleteProgressUpdateStreamResponse = DeleteProgressUpdateStreamResponse'+  { _dpusrsResponseStatus :: Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DeleteProgressUpdateStreamResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'dpusrsResponseStatus' - -- | The response status code.+deleteProgressUpdateStreamResponse+    :: Int -- ^ 'dpusrsResponseStatus'+    -> DeleteProgressUpdateStreamResponse+deleteProgressUpdateStreamResponse pResponseStatus_ =+  DeleteProgressUpdateStreamResponse' {_dpusrsResponseStatus = pResponseStatus_}+++-- | -- | The response status code.+dpusrsResponseStatus :: Lens' DeleteProgressUpdateStreamResponse Int+dpusrsResponseStatus = lens _dpusrsResponseStatus (\ s a -> s{_dpusrsResponseStatus = a});++instance NFData DeleteProgressUpdateStreamResponse+         where
+ gen/Network/AWS/MigrationHub/DescribeApplicationState.hs view
@@ -0,0 +1,149 @@+{-# 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.MigrationHub.DescribeApplicationState+-- Copyright   : (c) 2013-2017 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 the migration status of an application.+--+--+module Network.AWS.MigrationHub.DescribeApplicationState+    (+    -- * Creating a Request+      describeApplicationState+    , DescribeApplicationState+    -- * Request Lenses+    , dasApplicationId++    -- * Destructuring the Response+    , describeApplicationStateResponse+    , DescribeApplicationStateResponse+    -- * Response Lenses+    , dasrsLastUpdatedTime+    , dasrsApplicationStatus+    , dasrsResponseStatus+    ) where++import Network.AWS.Lens+import Network.AWS.MigrationHub.Types+import Network.AWS.MigrationHub.Types.Product+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'describeApplicationState' smart constructor.+newtype DescribeApplicationState = DescribeApplicationState'+  { _dasApplicationId :: Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DescribeApplicationState' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'dasApplicationId' - The configurationId in ADS that uniquely identifies the grouped application.+describeApplicationState+    :: Text -- ^ 'dasApplicationId'+    -> DescribeApplicationState+describeApplicationState pApplicationId_ =+  DescribeApplicationState' {_dasApplicationId = pApplicationId_}+++-- | The configurationId in ADS that uniquely identifies the grouped application.+dasApplicationId :: Lens' DescribeApplicationState Text+dasApplicationId = lens _dasApplicationId (\ s a -> s{_dasApplicationId = a});++instance AWSRequest DescribeApplicationState where+        type Rs DescribeApplicationState =+             DescribeApplicationStateResponse+        request = postJSON migrationHub+        response+          = receiveJSON+              (\ s h x ->+                 DescribeApplicationStateResponse' <$>+                   (x .?> "LastUpdatedTime") <*>+                     (x .?> "ApplicationStatus")+                     <*> (pure (fromEnum s)))++instance Hashable DescribeApplicationState where++instance NFData DescribeApplicationState where++instance ToHeaders DescribeApplicationState where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("AWSMigrationHub.DescribeApplicationState" ::+                       ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON DescribeApplicationState where+        toJSON DescribeApplicationState'{..}+          = object+              (catMaybes+                 [Just ("ApplicationId" .= _dasApplicationId)])++instance ToPath DescribeApplicationState where+        toPath = const "/"++instance ToQuery DescribeApplicationState where+        toQuery = const mempty++-- | /See:/ 'describeApplicationStateResponse' smart constructor.+data DescribeApplicationStateResponse = DescribeApplicationStateResponse'+  { _dasrsLastUpdatedTime   :: !(Maybe POSIX)+  , _dasrsApplicationStatus :: !(Maybe ApplicationStatus)+  , _dasrsResponseStatus    :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DescribeApplicationStateResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'dasrsLastUpdatedTime' - The timestamp when the application status was last updated.+--+-- * 'dasrsApplicationStatus' - Status of the application - Not Started, In-Progress, Complete.+--+-- * 'dasrsResponseStatus' - -- | The response status code.+describeApplicationStateResponse+    :: Int -- ^ 'dasrsResponseStatus'+    -> DescribeApplicationStateResponse+describeApplicationStateResponse pResponseStatus_ =+  DescribeApplicationStateResponse'+  { _dasrsLastUpdatedTime = Nothing+  , _dasrsApplicationStatus = Nothing+  , _dasrsResponseStatus = pResponseStatus_+  }+++-- | The timestamp when the application status was last updated.+dasrsLastUpdatedTime :: Lens' DescribeApplicationStateResponse (Maybe UTCTime)+dasrsLastUpdatedTime = lens _dasrsLastUpdatedTime (\ s a -> s{_dasrsLastUpdatedTime = a}) . mapping _Time;++-- | Status of the application - Not Started, In-Progress, Complete.+dasrsApplicationStatus :: Lens' DescribeApplicationStateResponse (Maybe ApplicationStatus)+dasrsApplicationStatus = lens _dasrsApplicationStatus (\ s a -> s{_dasrsApplicationStatus = a});++-- | -- | The response status code.+dasrsResponseStatus :: Lens' DescribeApplicationStateResponse Int+dasrsResponseStatus = lens _dasrsResponseStatus (\ s a -> s{_dasrsResponseStatus = a});++instance NFData DescribeApplicationStateResponse+         where
+ gen/Network/AWS/MigrationHub/DescribeMigrationTask.hs view
@@ -0,0 +1,149 @@+{-# 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.MigrationHub.DescribeMigrationTask+-- Copyright   : (c) 2013-2017 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)+--+-- Retrieves a list of all attributes associated with a specific migration task.+--+--+module Network.AWS.MigrationHub.DescribeMigrationTask+    (+    -- * Creating a Request+      describeMigrationTask+    , DescribeMigrationTask+    -- * Request Lenses+    , dmtProgressUpdateStream+    , dmtMigrationTaskName++    -- * Destructuring the Response+    , describeMigrationTaskResponse+    , DescribeMigrationTaskResponse+    -- * Response Lenses+    , dmtrsMigrationTask+    , dmtrsResponseStatus+    ) where++import Network.AWS.Lens+import Network.AWS.MigrationHub.Types+import Network.AWS.MigrationHub.Types.Product+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'describeMigrationTask' smart constructor.+data DescribeMigrationTask = DescribeMigrationTask'+  { _dmtProgressUpdateStream :: !Text+  , _dmtMigrationTaskName    :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DescribeMigrationTask' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'dmtProgressUpdateStream' - The name of the ProgressUpdateStream.+--+-- * 'dmtMigrationTaskName' - The identifier given to the MigrationTask.+describeMigrationTask+    :: Text -- ^ 'dmtProgressUpdateStream'+    -> Text -- ^ 'dmtMigrationTaskName'+    -> DescribeMigrationTask+describeMigrationTask pProgressUpdateStream_ pMigrationTaskName_ =+  DescribeMigrationTask'+  { _dmtProgressUpdateStream = pProgressUpdateStream_+  , _dmtMigrationTaskName = pMigrationTaskName_+  }+++-- | The name of the ProgressUpdateStream.+dmtProgressUpdateStream :: Lens' DescribeMigrationTask Text+dmtProgressUpdateStream = lens _dmtProgressUpdateStream (\ s a -> s{_dmtProgressUpdateStream = a});++-- | The identifier given to the MigrationTask.+dmtMigrationTaskName :: Lens' DescribeMigrationTask Text+dmtMigrationTaskName = lens _dmtMigrationTaskName (\ s a -> s{_dmtMigrationTaskName = a});++instance AWSRequest DescribeMigrationTask where+        type Rs DescribeMigrationTask =+             DescribeMigrationTaskResponse+        request = postJSON migrationHub+        response+          = receiveJSON+              (\ s h x ->+                 DescribeMigrationTaskResponse' <$>+                   (x .?> "MigrationTask") <*> (pure (fromEnum s)))++instance Hashable DescribeMigrationTask where++instance NFData DescribeMigrationTask where++instance ToHeaders DescribeMigrationTask where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("AWSMigrationHub.DescribeMigrationTask" ::+                       ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON DescribeMigrationTask where+        toJSON DescribeMigrationTask'{..}+          = object+              (catMaybes+                 [Just+                    ("ProgressUpdateStream" .= _dmtProgressUpdateStream),+                  Just ("MigrationTaskName" .= _dmtMigrationTaskName)])++instance ToPath DescribeMigrationTask where+        toPath = const "/"++instance ToQuery DescribeMigrationTask where+        toQuery = const mempty++-- | /See:/ 'describeMigrationTaskResponse' smart constructor.+data DescribeMigrationTaskResponse = DescribeMigrationTaskResponse'+  { _dmtrsMigrationTask  :: !(Maybe MigrationTask)+  , _dmtrsResponseStatus :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DescribeMigrationTaskResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'dmtrsMigrationTask' - Object encapsulating information about the migration task.+--+-- * 'dmtrsResponseStatus' - -- | The response status code.+describeMigrationTaskResponse+    :: Int -- ^ 'dmtrsResponseStatus'+    -> DescribeMigrationTaskResponse+describeMigrationTaskResponse pResponseStatus_ =+  DescribeMigrationTaskResponse'+  {_dmtrsMigrationTask = Nothing, _dmtrsResponseStatus = pResponseStatus_}+++-- | Object encapsulating information about the migration task.+dmtrsMigrationTask :: Lens' DescribeMigrationTaskResponse (Maybe MigrationTask)+dmtrsMigrationTask = lens _dmtrsMigrationTask (\ s a -> s{_dmtrsMigrationTask = a});++-- | -- | The response status code.+dmtrsResponseStatus :: Lens' DescribeMigrationTaskResponse Int+dmtrsResponseStatus = lens _dmtrsResponseStatus (\ s a -> s{_dmtrsResponseStatus = a});++instance NFData DescribeMigrationTaskResponse where
+ gen/Network/AWS/MigrationHub/DisassociateCreatedArtifact.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.MigrationHub.DisassociateCreatedArtifact+-- Copyright   : (c) 2013-2017 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)+--+-- Disassociates a created artifact of an AWS resource with a migration task performed by a migration tool that was previously associated. This API has the following traits:+--+--+--     * A migration user can call the @DisassociateCreatedArtifacts@ operation to disassociate a created AWS Artifact from a migration task.+--+--     * The created artifact name must be provided in ARN (Amazon Resource Name) format which will contain information about type and region; for example: @arn:aws:ec2:us-east-1:488216288981:image/ami-6d0ba87b@ .+--+--     * Examples of the AWS resource behind the created artifact are, AMI's, EC2 instance, or RDS instance, etc.+--+--+--+module Network.AWS.MigrationHub.DisassociateCreatedArtifact+    (+    -- * Creating a Request+      disassociateCreatedArtifact+    , DisassociateCreatedArtifact+    -- * Request Lenses+    , dcaDryRun+    , dcaProgressUpdateStream+    , dcaMigrationTaskName+    , dcaCreatedArtifactName++    -- * Destructuring the Response+    , disassociateCreatedArtifactResponse+    , DisassociateCreatedArtifactResponse+    -- * Response Lenses+    , dcarsResponseStatus+    ) where++import Network.AWS.Lens+import Network.AWS.MigrationHub.Types+import Network.AWS.MigrationHub.Types.Product+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'disassociateCreatedArtifact' smart constructor.+data DisassociateCreatedArtifact = DisassociateCreatedArtifact'+  { _dcaDryRun               :: !(Maybe Bool)+  , _dcaProgressUpdateStream :: !Text+  , _dcaMigrationTaskName    :: !Text+  , _dcaCreatedArtifactName  :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DisassociateCreatedArtifact' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'dcaDryRun' - Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call.+--+-- * 'dcaProgressUpdateStream' - The name of the ProgressUpdateStream.+--+-- * 'dcaMigrationTaskName' - Unique identifier that references the migration task to be disassociated with the artifact.+--+-- * 'dcaCreatedArtifactName' - An ARN of the AWS resource related to the migration (e.g., AMI, EC2 instance, RDS instance, etc.)+disassociateCreatedArtifact+    :: Text -- ^ 'dcaProgressUpdateStream'+    -> Text -- ^ 'dcaMigrationTaskName'+    -> Text -- ^ 'dcaCreatedArtifactName'+    -> DisassociateCreatedArtifact+disassociateCreatedArtifact pProgressUpdateStream_ pMigrationTaskName_ pCreatedArtifactName_ =+  DisassociateCreatedArtifact'+  { _dcaDryRun = Nothing+  , _dcaProgressUpdateStream = pProgressUpdateStream_+  , _dcaMigrationTaskName = pMigrationTaskName_+  , _dcaCreatedArtifactName = pCreatedArtifactName_+  }+++-- | Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call.+dcaDryRun :: Lens' DisassociateCreatedArtifact (Maybe Bool)+dcaDryRun = lens _dcaDryRun (\ s a -> s{_dcaDryRun = a});++-- | The name of the ProgressUpdateStream.+dcaProgressUpdateStream :: Lens' DisassociateCreatedArtifact Text+dcaProgressUpdateStream = lens _dcaProgressUpdateStream (\ s a -> s{_dcaProgressUpdateStream = a});++-- | Unique identifier that references the migration task to be disassociated with the artifact.+dcaMigrationTaskName :: Lens' DisassociateCreatedArtifact Text+dcaMigrationTaskName = lens _dcaMigrationTaskName (\ s a -> s{_dcaMigrationTaskName = a});++-- | An ARN of the AWS resource related to the migration (e.g., AMI, EC2 instance, RDS instance, etc.)+dcaCreatedArtifactName :: Lens' DisassociateCreatedArtifact Text+dcaCreatedArtifactName = lens _dcaCreatedArtifactName (\ s a -> s{_dcaCreatedArtifactName = a});++instance AWSRequest DisassociateCreatedArtifact where+        type Rs DisassociateCreatedArtifact =+             DisassociateCreatedArtifactResponse+        request = postJSON migrationHub+        response+          = receiveEmpty+              (\ s h x ->+                 DisassociateCreatedArtifactResponse' <$>+                   (pure (fromEnum s)))++instance Hashable DisassociateCreatedArtifact where++instance NFData DisassociateCreatedArtifact where++instance ToHeaders DisassociateCreatedArtifact where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("AWSMigrationHub.DisassociateCreatedArtifact" ::+                       ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON DisassociateCreatedArtifact where+        toJSON DisassociateCreatedArtifact'{..}+          = object+              (catMaybes+                 [("DryRun" .=) <$> _dcaDryRun,+                  Just+                    ("ProgressUpdateStream" .= _dcaProgressUpdateStream),+                  Just ("MigrationTaskName" .= _dcaMigrationTaskName),+                  Just+                    ("CreatedArtifactName" .= _dcaCreatedArtifactName)])++instance ToPath DisassociateCreatedArtifact where+        toPath = const "/"++instance ToQuery DisassociateCreatedArtifact where+        toQuery = const mempty++-- | /See:/ 'disassociateCreatedArtifactResponse' smart constructor.+newtype DisassociateCreatedArtifactResponse = DisassociateCreatedArtifactResponse'+  { _dcarsResponseStatus :: Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DisassociateCreatedArtifactResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'dcarsResponseStatus' - -- | The response status code.+disassociateCreatedArtifactResponse+    :: Int -- ^ 'dcarsResponseStatus'+    -> DisassociateCreatedArtifactResponse+disassociateCreatedArtifactResponse pResponseStatus_ =+  DisassociateCreatedArtifactResponse' {_dcarsResponseStatus = pResponseStatus_}+++-- | -- | The response status code.+dcarsResponseStatus :: Lens' DisassociateCreatedArtifactResponse Int+dcarsResponseStatus = lens _dcarsResponseStatus (\ s a -> s{_dcarsResponseStatus = a});++instance NFData DisassociateCreatedArtifactResponse+         where
+ gen/Network/AWS/MigrationHub/DisassociateDiscoveredResource.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.MigrationHub.DisassociateDiscoveredResource+-- Copyright   : (c) 2013-2017 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)+--+-- Disassociate an Application Discovery Service (ADS) discovered resource from a migration task.+--+--+module Network.AWS.MigrationHub.DisassociateDiscoveredResource+    (+    -- * Creating a Request+      disassociateDiscoveredResource+    , DisassociateDiscoveredResource+    -- * Request Lenses+    , ddrDryRun+    , ddrProgressUpdateStream+    , ddrMigrationTaskName+    , ddrConfigurationId++    -- * Destructuring the Response+    , disassociateDiscoveredResourceResponse+    , DisassociateDiscoveredResourceResponse+    -- * Response Lenses+    , ddrrsResponseStatus+    ) where++import Network.AWS.Lens+import Network.AWS.MigrationHub.Types+import Network.AWS.MigrationHub.Types.Product+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'disassociateDiscoveredResource' smart constructor.+data DisassociateDiscoveredResource = DisassociateDiscoveredResource'+  { _ddrDryRun               :: !(Maybe Bool)+  , _ddrProgressUpdateStream :: !Text+  , _ddrMigrationTaskName    :: !Text+  , _ddrConfigurationId      :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DisassociateDiscoveredResource' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'ddrDryRun' - Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call.+--+-- * 'ddrProgressUpdateStream' - The name of the ProgressUpdateStream.+--+-- * 'ddrMigrationTaskName' - The identifier given to the MigrationTask.+--+-- * 'ddrConfigurationId' - ConfigurationId of the ADS resource to be disassociated.+disassociateDiscoveredResource+    :: Text -- ^ 'ddrProgressUpdateStream'+    -> Text -- ^ 'ddrMigrationTaskName'+    -> Text -- ^ 'ddrConfigurationId'+    -> DisassociateDiscoveredResource+disassociateDiscoveredResource pProgressUpdateStream_ pMigrationTaskName_ pConfigurationId_ =+  DisassociateDiscoveredResource'+  { _ddrDryRun = Nothing+  , _ddrProgressUpdateStream = pProgressUpdateStream_+  , _ddrMigrationTaskName = pMigrationTaskName_+  , _ddrConfigurationId = pConfigurationId_+  }+++-- | Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call.+ddrDryRun :: Lens' DisassociateDiscoveredResource (Maybe Bool)+ddrDryRun = lens _ddrDryRun (\ s a -> s{_ddrDryRun = a});++-- | The name of the ProgressUpdateStream.+ddrProgressUpdateStream :: Lens' DisassociateDiscoveredResource Text+ddrProgressUpdateStream = lens _ddrProgressUpdateStream (\ s a -> s{_ddrProgressUpdateStream = a});++-- | The identifier given to the MigrationTask.+ddrMigrationTaskName :: Lens' DisassociateDiscoveredResource Text+ddrMigrationTaskName = lens _ddrMigrationTaskName (\ s a -> s{_ddrMigrationTaskName = a});++-- | ConfigurationId of the ADS resource to be disassociated.+ddrConfigurationId :: Lens' DisassociateDiscoveredResource Text+ddrConfigurationId = lens _ddrConfigurationId (\ s a -> s{_ddrConfigurationId = a});++instance AWSRequest DisassociateDiscoveredResource+         where+        type Rs DisassociateDiscoveredResource =+             DisassociateDiscoveredResourceResponse+        request = postJSON migrationHub+        response+          = receiveEmpty+              (\ s h x ->+                 DisassociateDiscoveredResourceResponse' <$>+                   (pure (fromEnum s)))++instance Hashable DisassociateDiscoveredResource+         where++instance NFData DisassociateDiscoveredResource where++instance ToHeaders DisassociateDiscoveredResource+         where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("AWSMigrationHub.DisassociateDiscoveredResource" ::+                       ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON DisassociateDiscoveredResource where+        toJSON DisassociateDiscoveredResource'{..}+          = object+              (catMaybes+                 [("DryRun" .=) <$> _ddrDryRun,+                  Just+                    ("ProgressUpdateStream" .= _ddrProgressUpdateStream),+                  Just ("MigrationTaskName" .= _ddrMigrationTaskName),+                  Just ("ConfigurationId" .= _ddrConfigurationId)])++instance ToPath DisassociateDiscoveredResource where+        toPath = const "/"++instance ToQuery DisassociateDiscoveredResource where+        toQuery = const mempty++-- | /See:/ 'disassociateDiscoveredResourceResponse' smart constructor.+newtype DisassociateDiscoveredResourceResponse = DisassociateDiscoveredResourceResponse'+  { _ddrrsResponseStatus :: Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DisassociateDiscoveredResourceResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'ddrrsResponseStatus' - -- | The response status code.+disassociateDiscoveredResourceResponse+    :: Int -- ^ 'ddrrsResponseStatus'+    -> DisassociateDiscoveredResourceResponse+disassociateDiscoveredResourceResponse pResponseStatus_ =+  DisassociateDiscoveredResourceResponse'+  {_ddrrsResponseStatus = pResponseStatus_}+++-- | -- | The response status code.+ddrrsResponseStatus :: Lens' DisassociateDiscoveredResourceResponse Int+ddrrsResponseStatus = lens _ddrrsResponseStatus (\ s a -> s{_ddrrsResponseStatus = a});++instance NFData+           DisassociateDiscoveredResourceResponse+         where
+ gen/Network/AWS/MigrationHub/ImportMigrationTask.hs view
@@ -0,0 +1,151 @@+{-# 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.MigrationHub.ImportMigrationTask+-- Copyright   : (c) 2013-2017 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)+--+-- Registers a new migration task which represents a server, database, etc., being migrated to AWS by a migration tool.+--+--+-- This API is a prerequisite to calling the @NotifyMigrationTaskState@ API as the migration tool must first register the migration task with Migration Hub.+--+module Network.AWS.MigrationHub.ImportMigrationTask+    (+    -- * Creating a Request+      importMigrationTask+    , ImportMigrationTask+    -- * Request Lenses+    , imtDryRun+    , imtProgressUpdateStream+    , imtMigrationTaskName++    -- * Destructuring the Response+    , importMigrationTaskResponse+    , ImportMigrationTaskResponse+    -- * Response Lenses+    , imtrsResponseStatus+    ) where++import Network.AWS.Lens+import Network.AWS.MigrationHub.Types+import Network.AWS.MigrationHub.Types.Product+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'importMigrationTask' smart constructor.+data ImportMigrationTask = ImportMigrationTask'+  { _imtDryRun               :: !(Maybe Bool)+  , _imtProgressUpdateStream :: !Text+  , _imtMigrationTaskName    :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'ImportMigrationTask' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'imtDryRun' - Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call.+--+-- * 'imtProgressUpdateStream' - The name of the ProgressUpdateStream.+--+-- * 'imtMigrationTaskName' - Unique identifier that references the migration task.+importMigrationTask+    :: Text -- ^ 'imtProgressUpdateStream'+    -> Text -- ^ 'imtMigrationTaskName'+    -> ImportMigrationTask+importMigrationTask pProgressUpdateStream_ pMigrationTaskName_ =+  ImportMigrationTask'+  { _imtDryRun = Nothing+  , _imtProgressUpdateStream = pProgressUpdateStream_+  , _imtMigrationTaskName = pMigrationTaskName_+  }+++-- | Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call.+imtDryRun :: Lens' ImportMigrationTask (Maybe Bool)+imtDryRun = lens _imtDryRun (\ s a -> s{_imtDryRun = a});++-- | The name of the ProgressUpdateStream.+imtProgressUpdateStream :: Lens' ImportMigrationTask Text+imtProgressUpdateStream = lens _imtProgressUpdateStream (\ s a -> s{_imtProgressUpdateStream = a});++-- | Unique identifier that references the migration task.+imtMigrationTaskName :: Lens' ImportMigrationTask Text+imtMigrationTaskName = lens _imtMigrationTaskName (\ s a -> s{_imtMigrationTaskName = a});++instance AWSRequest ImportMigrationTask where+        type Rs ImportMigrationTask =+             ImportMigrationTaskResponse+        request = postJSON migrationHub+        response+          = receiveEmpty+              (\ s h x ->+                 ImportMigrationTaskResponse' <$> (pure (fromEnum s)))++instance Hashable ImportMigrationTask where++instance NFData ImportMigrationTask where++instance ToHeaders ImportMigrationTask where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("AWSMigrationHub.ImportMigrationTask" ::+                       ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON ImportMigrationTask where+        toJSON ImportMigrationTask'{..}+          = object+              (catMaybes+                 [("DryRun" .=) <$> _imtDryRun,+                  Just+                    ("ProgressUpdateStream" .= _imtProgressUpdateStream),+                  Just ("MigrationTaskName" .= _imtMigrationTaskName)])++instance ToPath ImportMigrationTask where+        toPath = const "/"++instance ToQuery ImportMigrationTask where+        toQuery = const mempty++-- | /See:/ 'importMigrationTaskResponse' smart constructor.+newtype ImportMigrationTaskResponse = ImportMigrationTaskResponse'+  { _imtrsResponseStatus :: Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'ImportMigrationTaskResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'imtrsResponseStatus' - -- | The response status code.+importMigrationTaskResponse+    :: Int -- ^ 'imtrsResponseStatus'+    -> ImportMigrationTaskResponse+importMigrationTaskResponse pResponseStatus_ =+  ImportMigrationTaskResponse' {_imtrsResponseStatus = pResponseStatus_}+++-- | -- | The response status code.+imtrsResponseStatus :: Lens' ImportMigrationTaskResponse Int+imtrsResponseStatus = lens _imtrsResponseStatus (\ s a -> s{_imtrsResponseStatus = a});++instance NFData ImportMigrationTaskResponse where
+ gen/Network/AWS/MigrationHub/ListCreatedArtifacts.hs view
@@ -0,0 +1,190 @@+{-# 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.MigrationHub.ListCreatedArtifacts+-- Copyright   : (c) 2013-2017 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)+--+-- Lists the created artifacts attached to a given migration task in an update stream. This API has the following traits:+--+--+--     * Gets the list of the created artifacts while migration is taking place.+--+--     * Shows the artifacts created by the migration tool that was associated by the @AssociateCreatedArtifact@ API.+--+--     * Lists created artifacts in a paginated interface.+--+--+--+module Network.AWS.MigrationHub.ListCreatedArtifacts+    (+    -- * Creating a Request+      listCreatedArtifacts+    , ListCreatedArtifacts+    -- * Request Lenses+    , lcaNextToken+    , lcaMaxResults+    , lcaProgressUpdateStream+    , lcaMigrationTaskName++    -- * Destructuring the Response+    , listCreatedArtifactsResponse+    , ListCreatedArtifactsResponse+    -- * Response Lenses+    , lcarsNextToken+    , lcarsCreatedArtifactList+    , lcarsResponseStatus+    ) where++import Network.AWS.Lens+import Network.AWS.MigrationHub.Types+import Network.AWS.MigrationHub.Types.Product+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'listCreatedArtifacts' smart constructor.+data ListCreatedArtifacts = ListCreatedArtifacts'+  { _lcaNextToken            :: !(Maybe Text)+  , _lcaMaxResults           :: !(Maybe Nat)+  , _lcaProgressUpdateStream :: !Text+  , _lcaMigrationTaskName    :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'ListCreatedArtifacts' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'lcaNextToken' - If a @NextToken@ was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in @NextToken@ .+--+-- * 'lcaMaxResults' - Maximum number of results to be returned per page.+--+-- * 'lcaProgressUpdateStream' - The name of the ProgressUpdateStream.+--+-- * 'lcaMigrationTaskName' - Unique identifier that references the migration task.+listCreatedArtifacts+    :: Text -- ^ 'lcaProgressUpdateStream'+    -> Text -- ^ 'lcaMigrationTaskName'+    -> ListCreatedArtifacts+listCreatedArtifacts pProgressUpdateStream_ pMigrationTaskName_ =+  ListCreatedArtifacts'+  { _lcaNextToken = Nothing+  , _lcaMaxResults = Nothing+  , _lcaProgressUpdateStream = pProgressUpdateStream_+  , _lcaMigrationTaskName = pMigrationTaskName_+  }+++-- | If a @NextToken@ was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in @NextToken@ .+lcaNextToken :: Lens' ListCreatedArtifacts (Maybe Text)+lcaNextToken = lens _lcaNextToken (\ s a -> s{_lcaNextToken = a});++-- | Maximum number of results to be returned per page.+lcaMaxResults :: Lens' ListCreatedArtifacts (Maybe Natural)+lcaMaxResults = lens _lcaMaxResults (\ s a -> s{_lcaMaxResults = a}) . mapping _Nat;++-- | The name of the ProgressUpdateStream.+lcaProgressUpdateStream :: Lens' ListCreatedArtifacts Text+lcaProgressUpdateStream = lens _lcaProgressUpdateStream (\ s a -> s{_lcaProgressUpdateStream = a});++-- | Unique identifier that references the migration task.+lcaMigrationTaskName :: Lens' ListCreatedArtifacts Text+lcaMigrationTaskName = lens _lcaMigrationTaskName (\ s a -> s{_lcaMigrationTaskName = a});++instance AWSRequest ListCreatedArtifacts where+        type Rs ListCreatedArtifacts =+             ListCreatedArtifactsResponse+        request = postJSON migrationHub+        response+          = receiveJSON+              (\ s h x ->+                 ListCreatedArtifactsResponse' <$>+                   (x .?> "NextToken") <*>+                     (x .?> "CreatedArtifactList" .!@ mempty)+                     <*> (pure (fromEnum s)))++instance Hashable ListCreatedArtifacts where++instance NFData ListCreatedArtifacts where++instance ToHeaders ListCreatedArtifacts where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("AWSMigrationHub.ListCreatedArtifacts" ::+                       ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON ListCreatedArtifacts where+        toJSON ListCreatedArtifacts'{..}+          = object+              (catMaybes+                 [("NextToken" .=) <$> _lcaNextToken,+                  ("MaxResults" .=) <$> _lcaMaxResults,+                  Just+                    ("ProgressUpdateStream" .= _lcaProgressUpdateStream),+                  Just ("MigrationTaskName" .= _lcaMigrationTaskName)])++instance ToPath ListCreatedArtifacts where+        toPath = const "/"++instance ToQuery ListCreatedArtifacts where+        toQuery = const mempty++-- | /See:/ 'listCreatedArtifactsResponse' smart constructor.+data ListCreatedArtifactsResponse = ListCreatedArtifactsResponse'+  { _lcarsNextToken           :: !(Maybe Text)+  , _lcarsCreatedArtifactList :: !(Maybe [CreatedArtifact])+  , _lcarsResponseStatus      :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'ListCreatedArtifactsResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'lcarsNextToken' - If there are more created artifacts than the max result, return the next token to be passed to the next call as a bookmark of where to start from.+--+-- * 'lcarsCreatedArtifactList' - List of created artifacts up to the maximum number of results specified in the request.+--+-- * 'lcarsResponseStatus' - -- | The response status code.+listCreatedArtifactsResponse+    :: Int -- ^ 'lcarsResponseStatus'+    -> ListCreatedArtifactsResponse+listCreatedArtifactsResponse pResponseStatus_ =+  ListCreatedArtifactsResponse'+  { _lcarsNextToken = Nothing+  , _lcarsCreatedArtifactList = Nothing+  , _lcarsResponseStatus = pResponseStatus_+  }+++-- | If there are more created artifacts than the max result, return the next token to be passed to the next call as a bookmark of where to start from.+lcarsNextToken :: Lens' ListCreatedArtifactsResponse (Maybe Text)+lcarsNextToken = lens _lcarsNextToken (\ s a -> s{_lcarsNextToken = a});++-- | List of created artifacts up to the maximum number of results specified in the request.+lcarsCreatedArtifactList :: Lens' ListCreatedArtifactsResponse [CreatedArtifact]+lcarsCreatedArtifactList = lens _lcarsCreatedArtifactList (\ s a -> s{_lcarsCreatedArtifactList = a}) . _Default . _Coerce;++-- | -- | The response status code.+lcarsResponseStatus :: Lens' ListCreatedArtifactsResponse Int+lcarsResponseStatus = lens _lcarsResponseStatus (\ s a -> s{_lcarsResponseStatus = a});++instance NFData ListCreatedArtifactsResponse where
+ gen/Network/AWS/MigrationHub/ListDiscoveredResources.hs view
@@ -0,0 +1,182 @@+{-# 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.MigrationHub.ListDiscoveredResources+-- Copyright   : (c) 2013-2017 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)+--+-- Lists discovered resources associated with the given @MigrationTask@ .+--+--+module Network.AWS.MigrationHub.ListDiscoveredResources+    (+    -- * Creating a Request+      listDiscoveredResources+    , ListDiscoveredResources+    -- * Request Lenses+    , ldrNextToken+    , ldrMaxResults+    , ldrProgressUpdateStream+    , ldrMigrationTaskName++    -- * Destructuring the Response+    , listDiscoveredResourcesResponse+    , ListDiscoveredResourcesResponse+    -- * Response Lenses+    , ldrrsDiscoveredResourceList+    , ldrrsNextToken+    , ldrrsResponseStatus+    ) where++import Network.AWS.Lens+import Network.AWS.MigrationHub.Types+import Network.AWS.MigrationHub.Types.Product+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'listDiscoveredResources' smart constructor.+data ListDiscoveredResources = ListDiscoveredResources'+  { _ldrNextToken            :: !(Maybe Text)+  , _ldrMaxResults           :: !(Maybe Nat)+  , _ldrProgressUpdateStream :: !Text+  , _ldrMigrationTaskName    :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'ListDiscoveredResources' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'ldrNextToken' - If a @NextToken@ was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in @NextToken@ .+--+-- * 'ldrMaxResults' - The maximum number of results returned per page.+--+-- * 'ldrProgressUpdateStream' - The name of the ProgressUpdateStream.+--+-- * 'ldrMigrationTaskName' - The name of the MigrationTask.+listDiscoveredResources+    :: Text -- ^ 'ldrProgressUpdateStream'+    -> Text -- ^ 'ldrMigrationTaskName'+    -> ListDiscoveredResources+listDiscoveredResources pProgressUpdateStream_ pMigrationTaskName_ =+  ListDiscoveredResources'+  { _ldrNextToken = Nothing+  , _ldrMaxResults = Nothing+  , _ldrProgressUpdateStream = pProgressUpdateStream_+  , _ldrMigrationTaskName = pMigrationTaskName_+  }+++-- | If a @NextToken@ was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in @NextToken@ .+ldrNextToken :: Lens' ListDiscoveredResources (Maybe Text)+ldrNextToken = lens _ldrNextToken (\ s a -> s{_ldrNextToken = a});++-- | The maximum number of results returned per page.+ldrMaxResults :: Lens' ListDiscoveredResources (Maybe Natural)+ldrMaxResults = lens _ldrMaxResults (\ s a -> s{_ldrMaxResults = a}) . mapping _Nat;++-- | The name of the ProgressUpdateStream.+ldrProgressUpdateStream :: Lens' ListDiscoveredResources Text+ldrProgressUpdateStream = lens _ldrProgressUpdateStream (\ s a -> s{_ldrProgressUpdateStream = a});++-- | The name of the MigrationTask.+ldrMigrationTaskName :: Lens' ListDiscoveredResources Text+ldrMigrationTaskName = lens _ldrMigrationTaskName (\ s a -> s{_ldrMigrationTaskName = a});++instance AWSRequest ListDiscoveredResources where+        type Rs ListDiscoveredResources =+             ListDiscoveredResourcesResponse+        request = postJSON migrationHub+        response+          = receiveJSON+              (\ s h x ->+                 ListDiscoveredResourcesResponse' <$>+                   (x .?> "DiscoveredResourceList" .!@ mempty) <*>+                     (x .?> "NextToken")+                     <*> (pure (fromEnum s)))++instance Hashable ListDiscoveredResources where++instance NFData ListDiscoveredResources where++instance ToHeaders ListDiscoveredResources where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("AWSMigrationHub.ListDiscoveredResources" ::+                       ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON ListDiscoveredResources where+        toJSON ListDiscoveredResources'{..}+          = object+              (catMaybes+                 [("NextToken" .=) <$> _ldrNextToken,+                  ("MaxResults" .=) <$> _ldrMaxResults,+                  Just+                    ("ProgressUpdateStream" .= _ldrProgressUpdateStream),+                  Just ("MigrationTaskName" .= _ldrMigrationTaskName)])++instance ToPath ListDiscoveredResources where+        toPath = const "/"++instance ToQuery ListDiscoveredResources where+        toQuery = const mempty++-- | /See:/ 'listDiscoveredResourcesResponse' smart constructor.+data ListDiscoveredResourcesResponse = ListDiscoveredResourcesResponse'+  { _ldrrsDiscoveredResourceList :: !(Maybe [DiscoveredResource])+  , _ldrrsNextToken              :: !(Maybe Text)+  , _ldrrsResponseStatus         :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'ListDiscoveredResourcesResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'ldrrsDiscoveredResourceList' - Returned list of discovered resources associated with the given MigrationTask.+--+-- * 'ldrrsNextToken' - If there are more discovered resources than the max result, return the next token to be passed to the next call as a bookmark of where to start from.+--+-- * 'ldrrsResponseStatus' - -- | The response status code.+listDiscoveredResourcesResponse+    :: Int -- ^ 'ldrrsResponseStatus'+    -> ListDiscoveredResourcesResponse+listDiscoveredResourcesResponse pResponseStatus_ =+  ListDiscoveredResourcesResponse'+  { _ldrrsDiscoveredResourceList = Nothing+  , _ldrrsNextToken = Nothing+  , _ldrrsResponseStatus = pResponseStatus_+  }+++-- | Returned list of discovered resources associated with the given MigrationTask.+ldrrsDiscoveredResourceList :: Lens' ListDiscoveredResourcesResponse [DiscoveredResource]+ldrrsDiscoveredResourceList = lens _ldrrsDiscoveredResourceList (\ s a -> s{_ldrrsDiscoveredResourceList = a}) . _Default . _Coerce;++-- | If there are more discovered resources than the max result, return the next token to be passed to the next call as a bookmark of where to start from.+ldrrsNextToken :: Lens' ListDiscoveredResourcesResponse (Maybe Text)+ldrrsNextToken = lens _ldrrsNextToken (\ s a -> s{_ldrrsNextToken = a});++-- | -- | The response status code.+ldrrsResponseStatus :: Lens' ListDiscoveredResourcesResponse Int+ldrrsResponseStatus = lens _ldrrsResponseStatus (\ s a -> s{_ldrrsResponseStatus = a});++instance NFData ListDiscoveredResourcesResponse where
+ gen/Network/AWS/MigrationHub/ListMigrationTasks.hs view
@@ -0,0 +1,176 @@+{-# 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.MigrationHub.ListMigrationTasks+-- Copyright   : (c) 2013-2017 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)+--+-- Lists all, or filtered by resource name, migration tasks associated with the user account making this call. This API has the following traits:+--+--+--     * Can show a summary list of the most recent migration tasks.+--+--     * Can show a summary list of migration tasks associated with a given discovered resource.+--+--     * Lists migration tasks in a paginated interface.+--+--+--+module Network.AWS.MigrationHub.ListMigrationTasks+    (+    -- * Creating a Request+      listMigrationTasks+    , ListMigrationTasks+    -- * Request Lenses+    , lmtResourceName+    , lmtNextToken+    , lmtMaxResults++    -- * Destructuring the Response+    , listMigrationTasksResponse+    , ListMigrationTasksResponse+    -- * Response Lenses+    , lmtrsMigrationTaskSummaryList+    , lmtrsNextToken+    , lmtrsResponseStatus+    ) where++import Network.AWS.Lens+import Network.AWS.MigrationHub.Types+import Network.AWS.MigrationHub.Types.Product+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'listMigrationTasks' smart constructor.+data ListMigrationTasks = ListMigrationTasks'+  { _lmtResourceName :: !(Maybe Text)+  , _lmtNextToken    :: !(Maybe Text)+  , _lmtMaxResults   :: !(Maybe Nat)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'ListMigrationTasks' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'lmtResourceName' - Filter migration tasks by discovered resource name.+--+-- * 'lmtNextToken' - If a @NextToken@ was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in @NextToken@ .+--+-- * 'lmtMaxResults' - Value to specify how many results are returned per page.+listMigrationTasks+    :: ListMigrationTasks+listMigrationTasks =+  ListMigrationTasks'+  { _lmtResourceName = Nothing+  , _lmtNextToken = Nothing+  , _lmtMaxResults = Nothing+  }+++-- | Filter migration tasks by discovered resource name.+lmtResourceName :: Lens' ListMigrationTasks (Maybe Text)+lmtResourceName = lens _lmtResourceName (\ s a -> s{_lmtResourceName = a});++-- | If a @NextToken@ was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in @NextToken@ .+lmtNextToken :: Lens' ListMigrationTasks (Maybe Text)+lmtNextToken = lens _lmtNextToken (\ s a -> s{_lmtNextToken = a});++-- | Value to specify how many results are returned per page.+lmtMaxResults :: Lens' ListMigrationTasks (Maybe Natural)+lmtMaxResults = lens _lmtMaxResults (\ s a -> s{_lmtMaxResults = a}) . mapping _Nat;++instance AWSRequest ListMigrationTasks where+        type Rs ListMigrationTasks =+             ListMigrationTasksResponse+        request = postJSON migrationHub+        response+          = receiveJSON+              (\ s h x ->+                 ListMigrationTasksResponse' <$>+                   (x .?> "MigrationTaskSummaryList" .!@ mempty) <*>+                     (x .?> "NextToken")+                     <*> (pure (fromEnum s)))++instance Hashable ListMigrationTasks where++instance NFData ListMigrationTasks where++instance ToHeaders ListMigrationTasks where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("AWSMigrationHub.ListMigrationTasks" :: ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON ListMigrationTasks where+        toJSON ListMigrationTasks'{..}+          = object+              (catMaybes+                 [("ResourceName" .=) <$> _lmtResourceName,+                  ("NextToken" .=) <$> _lmtNextToken,+                  ("MaxResults" .=) <$> _lmtMaxResults])++instance ToPath ListMigrationTasks where+        toPath = const "/"++instance ToQuery ListMigrationTasks where+        toQuery = const mempty++-- | /See:/ 'listMigrationTasksResponse' smart constructor.+data ListMigrationTasksResponse = ListMigrationTasksResponse'+  { _lmtrsMigrationTaskSummaryList :: !(Maybe [MigrationTaskSummary])+  , _lmtrsNextToken                :: !(Maybe Text)+  , _lmtrsResponseStatus           :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'ListMigrationTasksResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'lmtrsMigrationTaskSummaryList' - Lists the migration task's summary which includes: @MigrationTaskName@ , @ProgressPercent@ , @ProgressUpdateStream@ , @Status@ , and the @UpdateDateTime@ for each task.+--+-- * 'lmtrsNextToken' - If there are more migration tasks than the max result, return the next token to be passed to the next call as a bookmark of where to start from.+--+-- * 'lmtrsResponseStatus' - -- | The response status code.+listMigrationTasksResponse+    :: Int -- ^ 'lmtrsResponseStatus'+    -> ListMigrationTasksResponse+listMigrationTasksResponse pResponseStatus_ =+  ListMigrationTasksResponse'+  { _lmtrsMigrationTaskSummaryList = Nothing+  , _lmtrsNextToken = Nothing+  , _lmtrsResponseStatus = pResponseStatus_+  }+++-- | Lists the migration task's summary which includes: @MigrationTaskName@ , @ProgressPercent@ , @ProgressUpdateStream@ , @Status@ , and the @UpdateDateTime@ for each task.+lmtrsMigrationTaskSummaryList :: Lens' ListMigrationTasksResponse [MigrationTaskSummary]+lmtrsMigrationTaskSummaryList = lens _lmtrsMigrationTaskSummaryList (\ s a -> s{_lmtrsMigrationTaskSummaryList = a}) . _Default . _Coerce;++-- | If there are more migration tasks than the max result, return the next token to be passed to the next call as a bookmark of where to start from.+lmtrsNextToken :: Lens' ListMigrationTasksResponse (Maybe Text)+lmtrsNextToken = lens _lmtrsNextToken (\ s a -> s{_lmtrsNextToken = a});++-- | -- | The response status code.+lmtrsResponseStatus :: Lens' ListMigrationTasksResponse Int+lmtrsResponseStatus = lens _lmtrsResponseStatus (\ s a -> s{_lmtrsResponseStatus = a});++instance NFData ListMigrationTasksResponse where
+ gen/Network/AWS/MigrationHub/ListProgressUpdateStreams.hs view
@@ -0,0 +1,158 @@+{-# 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.MigrationHub.ListProgressUpdateStreams+-- Copyright   : (c) 2013-2017 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)+--+-- Lists progress update streams associated with the user account making this call.+--+--+module Network.AWS.MigrationHub.ListProgressUpdateStreams+    (+    -- * Creating a Request+      listProgressUpdateStreams+    , ListProgressUpdateStreams+    -- * Request Lenses+    , lpusNextToken+    , lpusMaxResults++    -- * Destructuring the Response+    , listProgressUpdateStreamsResponse+    , ListProgressUpdateStreamsResponse+    -- * Response Lenses+    , lpusrsProgressUpdateStreamSummaryList+    , lpusrsNextToken+    , lpusrsResponseStatus+    ) where++import Network.AWS.Lens+import Network.AWS.MigrationHub.Types+import Network.AWS.MigrationHub.Types.Product+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'listProgressUpdateStreams' smart constructor.+data ListProgressUpdateStreams = ListProgressUpdateStreams'+  { _lpusNextToken  :: !(Maybe Text)+  , _lpusMaxResults :: !(Maybe Nat)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'ListProgressUpdateStreams' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'lpusNextToken' - If a @NextToken@ was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in @NextToken@ .+--+-- * 'lpusMaxResults' - Filter to limit the maximum number of results to list per page.+listProgressUpdateStreams+    :: ListProgressUpdateStreams+listProgressUpdateStreams =+  ListProgressUpdateStreams'+  {_lpusNextToken = Nothing, _lpusMaxResults = Nothing}+++-- | If a @NextToken@ was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in @NextToken@ .+lpusNextToken :: Lens' ListProgressUpdateStreams (Maybe Text)+lpusNextToken = lens _lpusNextToken (\ s a -> s{_lpusNextToken = a});++-- | Filter to limit the maximum number of results to list per page.+lpusMaxResults :: Lens' ListProgressUpdateStreams (Maybe Natural)+lpusMaxResults = lens _lpusMaxResults (\ s a -> s{_lpusMaxResults = a}) . mapping _Nat;++instance AWSRequest ListProgressUpdateStreams where+        type Rs ListProgressUpdateStreams =+             ListProgressUpdateStreamsResponse+        request = postJSON migrationHub+        response+          = receiveJSON+              (\ s h x ->+                 ListProgressUpdateStreamsResponse' <$>+                   (x .?> "ProgressUpdateStreamSummaryList" .!@ mempty)+                     <*> (x .?> "NextToken")+                     <*> (pure (fromEnum s)))++instance Hashable ListProgressUpdateStreams where++instance NFData ListProgressUpdateStreams where++instance ToHeaders ListProgressUpdateStreams where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("AWSMigrationHub.ListProgressUpdateStreams" ::+                       ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON ListProgressUpdateStreams where+        toJSON ListProgressUpdateStreams'{..}+          = object+              (catMaybes+                 [("NextToken" .=) <$> _lpusNextToken,+                  ("MaxResults" .=) <$> _lpusMaxResults])++instance ToPath ListProgressUpdateStreams where+        toPath = const "/"++instance ToQuery ListProgressUpdateStreams where+        toQuery = const mempty++-- | /See:/ 'listProgressUpdateStreamsResponse' smart constructor.+data ListProgressUpdateStreamsResponse = ListProgressUpdateStreamsResponse'+  { _lpusrsProgressUpdateStreamSummaryList :: !(Maybe [ProgressUpdateStreamSummary])+  , _lpusrsNextToken :: !(Maybe Text)+  , _lpusrsResponseStatus :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'ListProgressUpdateStreamsResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'lpusrsProgressUpdateStreamSummaryList' - List of progress update streams up to the max number of results passed in the input.+--+-- * 'lpusrsNextToken' - If there are more streams created than the max result, return the next token to be passed to the next call as a bookmark of where to start from.+--+-- * 'lpusrsResponseStatus' - -- | The response status code.+listProgressUpdateStreamsResponse+    :: Int -- ^ 'lpusrsResponseStatus'+    -> ListProgressUpdateStreamsResponse+listProgressUpdateStreamsResponse pResponseStatus_ =+  ListProgressUpdateStreamsResponse'+  { _lpusrsProgressUpdateStreamSummaryList = Nothing+  , _lpusrsNextToken = Nothing+  , _lpusrsResponseStatus = pResponseStatus_+  }+++-- | List of progress update streams up to the max number of results passed in the input.+lpusrsProgressUpdateStreamSummaryList :: Lens' ListProgressUpdateStreamsResponse [ProgressUpdateStreamSummary]+lpusrsProgressUpdateStreamSummaryList = lens _lpusrsProgressUpdateStreamSummaryList (\ s a -> s{_lpusrsProgressUpdateStreamSummaryList = a}) . _Default . _Coerce;++-- | If there are more streams created than the max result, return the next token to be passed to the next call as a bookmark of where to start from.+lpusrsNextToken :: Lens' ListProgressUpdateStreamsResponse (Maybe Text)+lpusrsNextToken = lens _lpusrsNextToken (\ s a -> s{_lpusrsNextToken = a});++-- | -- | The response status code.+lpusrsResponseStatus :: Lens' ListProgressUpdateStreamsResponse Int+lpusrsResponseStatus = lens _lpusrsResponseStatus (\ s a -> s{_lpusrsResponseStatus = a});++instance NFData ListProgressUpdateStreamsResponse+         where
+ gen/Network/AWS/MigrationHub/NotifyApplicationState.hs view
@@ -0,0 +1,149 @@+{-# 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.MigrationHub.NotifyApplicationState+-- Copyright   : (c) 2013-2017 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)+--+-- Sets the migration state of an application. For a given application identified by the value passed to @ApplicationId@ , its status is set or updated by passing one of three values to @Status@ : @NOT_STARTED | IN_PROGRESS | COMPLETED@ .+--+--+module Network.AWS.MigrationHub.NotifyApplicationState+    (+    -- * Creating a Request+      notifyApplicationState+    , NotifyApplicationState+    -- * Request Lenses+    , nasDryRun+    , nasApplicationId+    , nasStatus++    -- * Destructuring the Response+    , notifyApplicationStateResponse+    , NotifyApplicationStateResponse+    -- * Response Lenses+    , nasrsResponseStatus+    ) where++import Network.AWS.Lens+import Network.AWS.MigrationHub.Types+import Network.AWS.MigrationHub.Types.Product+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'notifyApplicationState' smart constructor.+data NotifyApplicationState = NotifyApplicationState'+  { _nasDryRun        :: !(Maybe Bool)+  , _nasApplicationId :: !Text+  , _nasStatus        :: !ApplicationStatus+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'NotifyApplicationState' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'nasDryRun' - Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call.+--+-- * 'nasApplicationId' - The configurationId in ADS that uniquely identifies the grouped application.+--+-- * 'nasStatus' - Status of the application - Not Started, In-Progress, Complete.+notifyApplicationState+    :: Text -- ^ 'nasApplicationId'+    -> ApplicationStatus -- ^ 'nasStatus'+    -> NotifyApplicationState+notifyApplicationState pApplicationId_ pStatus_ =+  NotifyApplicationState'+  { _nasDryRun = Nothing+  , _nasApplicationId = pApplicationId_+  , _nasStatus = pStatus_+  }+++-- | Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call.+nasDryRun :: Lens' NotifyApplicationState (Maybe Bool)+nasDryRun = lens _nasDryRun (\ s a -> s{_nasDryRun = a});++-- | The configurationId in ADS that uniquely identifies the grouped application.+nasApplicationId :: Lens' NotifyApplicationState Text+nasApplicationId = lens _nasApplicationId (\ s a -> s{_nasApplicationId = a});++-- | Status of the application - Not Started, In-Progress, Complete.+nasStatus :: Lens' NotifyApplicationState ApplicationStatus+nasStatus = lens _nasStatus (\ s a -> s{_nasStatus = a});++instance AWSRequest NotifyApplicationState where+        type Rs NotifyApplicationState =+             NotifyApplicationStateResponse+        request = postJSON migrationHub+        response+          = receiveEmpty+              (\ s h x ->+                 NotifyApplicationStateResponse' <$>+                   (pure (fromEnum s)))++instance Hashable NotifyApplicationState where++instance NFData NotifyApplicationState where++instance ToHeaders NotifyApplicationState where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("AWSMigrationHub.NotifyApplicationState" ::+                       ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON NotifyApplicationState where+        toJSON NotifyApplicationState'{..}+          = object+              (catMaybes+                 [("DryRun" .=) <$> _nasDryRun,+                  Just ("ApplicationId" .= _nasApplicationId),+                  Just ("Status" .= _nasStatus)])++instance ToPath NotifyApplicationState where+        toPath = const "/"++instance ToQuery NotifyApplicationState where+        toQuery = const mempty++-- | /See:/ 'notifyApplicationStateResponse' smart constructor.+newtype NotifyApplicationStateResponse = NotifyApplicationStateResponse'+  { _nasrsResponseStatus :: Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'NotifyApplicationStateResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'nasrsResponseStatus' - -- | The response status code.+notifyApplicationStateResponse+    :: Int -- ^ 'nasrsResponseStatus'+    -> NotifyApplicationStateResponse+notifyApplicationStateResponse pResponseStatus_ =+  NotifyApplicationStateResponse' {_nasrsResponseStatus = pResponseStatus_}+++-- | -- | The response status code.+nasrsResponseStatus :: Lens' NotifyApplicationStateResponse Int+nasrsResponseStatus = lens _nasrsResponseStatus (\ s a -> s{_nasrsResponseStatus = a});++instance NFData NotifyApplicationStateResponse where
+ gen/Network/AWS/MigrationHub/NotifyMigrationTaskState.hs view
@@ -0,0 +1,194 @@+{-# 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.MigrationHub.NotifyMigrationTaskState+-- Copyright   : (c) 2013-2017 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)+--+-- Notifies Migration Hub of the current status, progress, or other detail regarding a migration task. This API has the following traits:+--+--+--     * Migration tools will call the @NotifyMigrationTaskState@ API to share the latest progress and status.+--+--     * @MigrationTaskName@ is used for addressing updates to the correct target.+--+--     * @ProgressUpdateStream@ is used for access control and to provide a namespace for each migration tool.+--+--+--+module Network.AWS.MigrationHub.NotifyMigrationTaskState+    (+    -- * Creating a Request+      notifyMigrationTaskState+    , NotifyMigrationTaskState+    -- * Request Lenses+    , nmtsDryRun+    , nmtsProgressUpdateStream+    , nmtsMigrationTaskName+    , nmtsTask+    , nmtsUpdateDateTime+    , nmtsNextUpdateSeconds++    -- * Destructuring the Response+    , notifyMigrationTaskStateResponse+    , NotifyMigrationTaskStateResponse+    -- * Response Lenses+    , nmtsrsResponseStatus+    ) where++import Network.AWS.Lens+import Network.AWS.MigrationHub.Types+import Network.AWS.MigrationHub.Types.Product+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'notifyMigrationTaskState' smart constructor.+data NotifyMigrationTaskState = NotifyMigrationTaskState'+  { _nmtsDryRun               :: !(Maybe Bool)+  , _nmtsProgressUpdateStream :: !Text+  , _nmtsMigrationTaskName    :: !Text+  , _nmtsTask                 :: !Task+  , _nmtsUpdateDateTime       :: !POSIX+  , _nmtsNextUpdateSeconds    :: !Nat+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'NotifyMigrationTaskState' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'nmtsDryRun' - Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call.+--+-- * 'nmtsProgressUpdateStream' - The name of the ProgressUpdateStream.+--+-- * 'nmtsMigrationTaskName' - Unique identifier that references the migration task.+--+-- * 'nmtsTask' - Information about the task's progress and status.+--+-- * 'nmtsUpdateDateTime' - The timestamp when the task was gathered.+--+-- * 'nmtsNextUpdateSeconds' - Number of seconds after the UpdateDateTime within which the Migration Hub can expect an update. If Migration Hub does not receive an update within the specified interval, then the migration task will be considered stale.+notifyMigrationTaskState+    :: Text -- ^ 'nmtsProgressUpdateStream'+    -> Text -- ^ 'nmtsMigrationTaskName'+    -> Task -- ^ 'nmtsTask'+    -> UTCTime -- ^ 'nmtsUpdateDateTime'+    -> Natural -- ^ 'nmtsNextUpdateSeconds'+    -> NotifyMigrationTaskState+notifyMigrationTaskState pProgressUpdateStream_ pMigrationTaskName_ pTask_ pUpdateDateTime_ pNextUpdateSeconds_ =+  NotifyMigrationTaskState'+  { _nmtsDryRun = Nothing+  , _nmtsProgressUpdateStream = pProgressUpdateStream_+  , _nmtsMigrationTaskName = pMigrationTaskName_+  , _nmtsTask = pTask_+  , _nmtsUpdateDateTime = _Time # pUpdateDateTime_+  , _nmtsNextUpdateSeconds = _Nat # pNextUpdateSeconds_+  }+++-- | Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call.+nmtsDryRun :: Lens' NotifyMigrationTaskState (Maybe Bool)+nmtsDryRun = lens _nmtsDryRun (\ s a -> s{_nmtsDryRun = a});++-- | The name of the ProgressUpdateStream.+nmtsProgressUpdateStream :: Lens' NotifyMigrationTaskState Text+nmtsProgressUpdateStream = lens _nmtsProgressUpdateStream (\ s a -> s{_nmtsProgressUpdateStream = a});++-- | Unique identifier that references the migration task.+nmtsMigrationTaskName :: Lens' NotifyMigrationTaskState Text+nmtsMigrationTaskName = lens _nmtsMigrationTaskName (\ s a -> s{_nmtsMigrationTaskName = a});++-- | Information about the task's progress and status.+nmtsTask :: Lens' NotifyMigrationTaskState Task+nmtsTask = lens _nmtsTask (\ s a -> s{_nmtsTask = a});++-- | The timestamp when the task was gathered.+nmtsUpdateDateTime :: Lens' NotifyMigrationTaskState UTCTime+nmtsUpdateDateTime = lens _nmtsUpdateDateTime (\ s a -> s{_nmtsUpdateDateTime = a}) . _Time;++-- | Number of seconds after the UpdateDateTime within which the Migration Hub can expect an update. If Migration Hub does not receive an update within the specified interval, then the migration task will be considered stale.+nmtsNextUpdateSeconds :: Lens' NotifyMigrationTaskState Natural+nmtsNextUpdateSeconds = lens _nmtsNextUpdateSeconds (\ s a -> s{_nmtsNextUpdateSeconds = a}) . _Nat;++instance AWSRequest NotifyMigrationTaskState where+        type Rs NotifyMigrationTaskState =+             NotifyMigrationTaskStateResponse+        request = postJSON migrationHub+        response+          = receiveEmpty+              (\ s h x ->+                 NotifyMigrationTaskStateResponse' <$>+                   (pure (fromEnum s)))++instance Hashable NotifyMigrationTaskState where++instance NFData NotifyMigrationTaskState where++instance ToHeaders NotifyMigrationTaskState where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("AWSMigrationHub.NotifyMigrationTaskState" ::+                       ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON NotifyMigrationTaskState where+        toJSON NotifyMigrationTaskState'{..}+          = object+              (catMaybes+                 [("DryRun" .=) <$> _nmtsDryRun,+                  Just+                    ("ProgressUpdateStream" .=+                       _nmtsProgressUpdateStream),+                  Just ("MigrationTaskName" .= _nmtsMigrationTaskName),+                  Just ("Task" .= _nmtsTask),+                  Just ("UpdateDateTime" .= _nmtsUpdateDateTime),+                  Just+                    ("NextUpdateSeconds" .= _nmtsNextUpdateSeconds)])++instance ToPath NotifyMigrationTaskState where+        toPath = const "/"++instance ToQuery NotifyMigrationTaskState where+        toQuery = const mempty++-- | /See:/ 'notifyMigrationTaskStateResponse' smart constructor.+newtype NotifyMigrationTaskStateResponse = NotifyMigrationTaskStateResponse'+  { _nmtsrsResponseStatus :: Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'NotifyMigrationTaskStateResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'nmtsrsResponseStatus' - -- | The response status code.+notifyMigrationTaskStateResponse+    :: Int -- ^ 'nmtsrsResponseStatus'+    -> NotifyMigrationTaskStateResponse+notifyMigrationTaskStateResponse pResponseStatus_ =+  NotifyMigrationTaskStateResponse' {_nmtsrsResponseStatus = pResponseStatus_}+++-- | -- | The response status code.+nmtsrsResponseStatus :: Lens' NotifyMigrationTaskStateResponse Int+nmtsrsResponseStatus = lens _nmtsrsResponseStatus (\ s a -> s{_nmtsrsResponseStatus = a});++instance NFData NotifyMigrationTaskStateResponse+         where
+ gen/Network/AWS/MigrationHub/PutResourceAttributes.hs view
@@ -0,0 +1,165 @@+{-# 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.MigrationHub.PutResourceAttributes+-- Copyright   : (c) 2013-2017 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)+--+-- Provides identifying details of the resource being migrated so that it can be associated in the Application Discovery Service (ADS)'s repository. This association occurs asynchronously after @PutResourceAttributes@ returns.+--+--+-- /Important:/ Keep in mind that subsequent calls to PutResourceAttributes will override previously stored attributes. For example, if it is first called with a MAC address, but later, it is desired to /add/ an IP address, it will then be required to call it with /both/ the IP and MAC addresses to prevent overiding the MAC address.+--+module Network.AWS.MigrationHub.PutResourceAttributes+    (+    -- * Creating a Request+      putResourceAttributes+    , PutResourceAttributes+    -- * Request Lenses+    , praDryRun+    , praProgressUpdateStream+    , praMigrationTaskName+    , praResourceAttributeList++    -- * Destructuring the Response+    , putResourceAttributesResponse+    , PutResourceAttributesResponse+    -- * Response Lenses+    , prarsResponseStatus+    ) where++import Network.AWS.Lens+import Network.AWS.MigrationHub.Types+import Network.AWS.MigrationHub.Types.Product+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'putResourceAttributes' smart constructor.+data PutResourceAttributes = PutResourceAttributes'+  { _praDryRun                :: !(Maybe Bool)+  , _praProgressUpdateStream  :: !Text+  , _praMigrationTaskName     :: !Text+  , _praResourceAttributeList :: !(List1 ResourceAttribute)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'PutResourceAttributes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'praDryRun' - Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call.+--+-- * 'praProgressUpdateStream' - The name of the ProgressUpdateStream.+--+-- * 'praMigrationTaskName' - Unique identifier that references the migration task.+--+-- * 'praResourceAttributeList' - Information about the resource that is being migrated. This data will be used to map the task to a resource in the Application Discovery Service (ADS)'s repository.+putResourceAttributes+    :: Text -- ^ 'praProgressUpdateStream'+    -> Text -- ^ 'praMigrationTaskName'+    -> NonEmpty ResourceAttribute -- ^ 'praResourceAttributeList'+    -> PutResourceAttributes+putResourceAttributes pProgressUpdateStream_ pMigrationTaskName_ pResourceAttributeList_ =+  PutResourceAttributes'+  { _praDryRun = Nothing+  , _praProgressUpdateStream = pProgressUpdateStream_+  , _praMigrationTaskName = pMigrationTaskName_+  , _praResourceAttributeList = _List1 # pResourceAttributeList_+  }+++-- | Optional boolean flag to indicate whether any effect should take place. Used to test if the caller has permission to make the call.+praDryRun :: Lens' PutResourceAttributes (Maybe Bool)+praDryRun = lens _praDryRun (\ s a -> s{_praDryRun = a});++-- | The name of the ProgressUpdateStream.+praProgressUpdateStream :: Lens' PutResourceAttributes Text+praProgressUpdateStream = lens _praProgressUpdateStream (\ s a -> s{_praProgressUpdateStream = a});++-- | Unique identifier that references the migration task.+praMigrationTaskName :: Lens' PutResourceAttributes Text+praMigrationTaskName = lens _praMigrationTaskName (\ s a -> s{_praMigrationTaskName = a});++-- | Information about the resource that is being migrated. This data will be used to map the task to a resource in the Application Discovery Service (ADS)'s repository.+praResourceAttributeList :: Lens' PutResourceAttributes (NonEmpty ResourceAttribute)+praResourceAttributeList = lens _praResourceAttributeList (\ s a -> s{_praResourceAttributeList = a}) . _List1;++instance AWSRequest PutResourceAttributes where+        type Rs PutResourceAttributes =+             PutResourceAttributesResponse+        request = postJSON migrationHub+        response+          = receiveEmpty+              (\ s h x ->+                 PutResourceAttributesResponse' <$>+                   (pure (fromEnum s)))++instance Hashable PutResourceAttributes where++instance NFData PutResourceAttributes where++instance ToHeaders PutResourceAttributes where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("AWSMigrationHub.PutResourceAttributes" ::+                       ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON PutResourceAttributes where+        toJSON PutResourceAttributes'{..}+          = object+              (catMaybes+                 [("DryRun" .=) <$> _praDryRun,+                  Just+                    ("ProgressUpdateStream" .= _praProgressUpdateStream),+                  Just ("MigrationTaskName" .= _praMigrationTaskName),+                  Just+                    ("ResourceAttributeList" .=+                       _praResourceAttributeList)])++instance ToPath PutResourceAttributes where+        toPath = const "/"++instance ToQuery PutResourceAttributes where+        toQuery = const mempty++-- | /See:/ 'putResourceAttributesResponse' smart constructor.+newtype PutResourceAttributesResponse = PutResourceAttributesResponse'+  { _prarsResponseStatus :: Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'PutResourceAttributesResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'prarsResponseStatus' - -- | The response status code.+putResourceAttributesResponse+    :: Int -- ^ 'prarsResponseStatus'+    -> PutResourceAttributesResponse+putResourceAttributesResponse pResponseStatus_ =+  PutResourceAttributesResponse' {_prarsResponseStatus = pResponseStatus_}+++-- | -- | The response status code.+prarsResponseStatus :: Lens' PutResourceAttributesResponse Int+prarsResponseStatus = lens _prarsResponseStatus (\ s a -> s{_prarsResponseStatus = a});++instance NFData PutResourceAttributesResponse where
+ gen/Network/AWS/MigrationHub/Types.hs view
@@ -0,0 +1,186 @@+{-# LANGUAGE OverloadedStrings #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Network.AWS.MigrationHub.Types+-- Copyright   : (c) 2013-2017 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.MigrationHub.Types+    (+    -- * Service Configuration+      migrationHub++    -- * Errors+    , _AccessDeniedException+    , _DryRunOperation+    , _PolicyErrorException+    , _InternalServerError+    , _InvalidInputException+    , _ServiceUnavailableException+    , _ResourceNotFoundException+    , _UnauthorizedOperation++    -- * ApplicationStatus+    , ApplicationStatus (..)++    -- * MigrationStatus+    , MigrationStatus (..)++    -- * ResourceAttributeType+    , ResourceAttributeType (..)++    -- * CreatedArtifact+    , CreatedArtifact+    , createdArtifact+    , caDescription+    , caName++    -- * DiscoveredResource+    , DiscoveredResource+    , discoveredResource+    , drDescription+    , drConfigurationId++    -- * MigrationTask+    , MigrationTask+    , migrationTask+    , mtUpdateDateTime+    , mtResourceAttributeList+    , mtTask+    , mtProgressUpdateStream+    , mtMigrationTaskName++    -- * MigrationTaskSummary+    , MigrationTaskSummary+    , migrationTaskSummary+    , mtsStatus+    , mtsUpdateDateTime+    , mtsProgressPercent+    , mtsStatusDetail+    , mtsProgressUpdateStream+    , mtsMigrationTaskName++    -- * ProgressUpdateStreamSummary+    , ProgressUpdateStreamSummary+    , progressUpdateStreamSummary+    , pussProgressUpdateStreamName++    -- * ResourceAttribute+    , ResourceAttribute+    , resourceAttribute+    , raType+    , raValue++    -- * Task+    , Task+    , task+    , tProgressPercent+    , tStatusDetail+    , tStatus+    ) where++import Network.AWS.Lens+import Network.AWS.MigrationHub.Types.Product+import Network.AWS.MigrationHub.Types.Sum+import Network.AWS.Prelude+import Network.AWS.Sign.V4++-- | API version @2017-05-31@ of the Amazon Migration Hub SDK configuration.+migrationHub :: Service+migrationHub =+  Service+  { _svcAbbrev = "MigrationHub"+  , _svcSigner = v4+  , _svcPrefix = "mgh"+  , _svcVersion = "2017-05-31"+  , _svcEndpoint = defaultEndpoint migrationHub+  , _svcTimeout = Just 70+  , _svcCheck = statusSuccess+  , _svcError = parseJSONError "MigrationHub"+  , _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 (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+++-- | Exception raised when the account making the call is not whitelisted or there are other authentication errors.+--+--+_AccessDeniedException :: AsError a => Getting (First ServiceError) a ServiceError+_AccessDeniedException = _MatchServiceError migrationHub "AccessDeniedException"+++-- | Exception raised to indicate a successfully authorized action when the @DryRun@ flag is set to "true".+--+--+_DryRunOperation :: AsError a => Getting (First ServiceError) a ServiceError+_DryRunOperation = _MatchServiceError migrationHub "DryRunOperation"+++-- | Exception raised when there are problems accessing ADS (Application Discovery Service); most likely due to a misconfigured policy or the @ADSCaller@ role is missing or not configured correctly.+--+--+_PolicyErrorException :: AsError a => Getting (First ServiceError) a ServiceError+_PolicyErrorException = _MatchServiceError migrationHub "PolicyErrorException"+++-- | Exception raised when there is an internal, configuration, or dependency error encountered.+--+--+_InternalServerError :: AsError a => Getting (First ServiceError) a ServiceError+_InternalServerError = _MatchServiceError migrationHub "InternalServerError"+++-- | Exception raised when the provided input violates a policy constraint or is entered in the wrong format or data type.+--+--+_InvalidInputException :: AsError a => Getting (First ServiceError) a ServiceError+_InvalidInputException = _MatchServiceError migrationHub "InvalidInputException"+++-- | Exception raised when the service encounters throttled communication with upstream dependencies or is overloaded with requests.+--+--+_ServiceUnavailableException :: AsError a => Getting (First ServiceError) a ServiceError+_ServiceUnavailableException =+  _MatchServiceError migrationHub "ServiceUnavailableException"+++-- | Exception raised when the request references a resource (ADS configuration, update stream, migration task, etc.) that does not exist in ADS (Application Discovery Service) or in Migration Hub's repository.+--+--+_ResourceNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError+_ResourceNotFoundException =+  _MatchServiceError migrationHub "ResourceNotFoundException"+++-- | Exception raised to indicate a request was not authorized when the @DryRun@ flag is set to "true".+--+--+_UnauthorizedOperation :: AsError a => Getting (First ServiceError) a ServiceError+_UnauthorizedOperation = _MatchServiceError migrationHub "UnauthorizedOperation"+
+ gen/Network/AWS/MigrationHub/Types/Product.hs view
@@ -0,0 +1,430 @@+{-# 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.MigrationHub.Types.Product+-- Copyright   : (c) 2013-2017 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.MigrationHub.Types.Product where++import Network.AWS.Lens+import Network.AWS.MigrationHub.Types.Sum+import Network.AWS.Prelude++-- | An ARN of the AWS cloud resource target receiving the migration (e.g., AMI, EC2 instance, RDS instance, etc.).+--+--+--+-- /See:/ 'createdArtifact' smart constructor.+data CreatedArtifact = CreatedArtifact'+  { _caDescription :: !(Maybe Text)+  , _caName        :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'CreatedArtifact' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'caDescription' - A description that can be free-form text to record additional detail about the artifact for clarity or for later reference.+--+-- * 'caName' - An ARN that uniquely identifies the result of a migration task.+createdArtifact+    :: Text -- ^ 'caName'+    -> CreatedArtifact+createdArtifact pName_ =+  CreatedArtifact' {_caDescription = Nothing, _caName = pName_}+++-- | A description that can be free-form text to record additional detail about the artifact for clarity or for later reference.+caDescription :: Lens' CreatedArtifact (Maybe Text)+caDescription = lens _caDescription (\ s a -> s{_caDescription = a});++-- | An ARN that uniquely identifies the result of a migration task.+caName :: Lens' CreatedArtifact Text+caName = lens _caName (\ s a -> s{_caName = a});++instance FromJSON CreatedArtifact where+        parseJSON+          = withObject "CreatedArtifact"+              (\ x ->+                 CreatedArtifact' <$>+                   (x .:? "Description") <*> (x .: "Name"))++instance Hashable CreatedArtifact where++instance NFData CreatedArtifact where++instance ToJSON CreatedArtifact where+        toJSON CreatedArtifact'{..}+          = object+              (catMaybes+                 [("Description" .=) <$> _caDescription,+                  Just ("Name" .= _caName)])++-- | Object representing the on-premises resource being migrated.+--+--+--+-- /See:/ 'discoveredResource' smart constructor.+data DiscoveredResource = DiscoveredResource'+  { _drDescription     :: !(Maybe Text)+  , _drConfigurationId :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DiscoveredResource' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'drDescription' - A description that can be free-form text to record additional detail about the discovered resource for clarity or later reference.+--+-- * 'drConfigurationId' - The configurationId in ADS that uniquely identifies the on-premise resource.+discoveredResource+    :: Text -- ^ 'drConfigurationId'+    -> DiscoveredResource+discoveredResource pConfigurationId_ =+  DiscoveredResource'+  {_drDescription = Nothing, _drConfigurationId = pConfigurationId_}+++-- | A description that can be free-form text to record additional detail about the discovered resource for clarity or later reference.+drDescription :: Lens' DiscoveredResource (Maybe Text)+drDescription = lens _drDescription (\ s a -> s{_drDescription = a});++-- | The configurationId in ADS that uniquely identifies the on-premise resource.+drConfigurationId :: Lens' DiscoveredResource Text+drConfigurationId = lens _drConfigurationId (\ s a -> s{_drConfigurationId = a});++instance FromJSON DiscoveredResource where+        parseJSON+          = withObject "DiscoveredResource"+              (\ x ->+                 DiscoveredResource' <$>+                   (x .:? "Description") <*> (x .: "ConfigurationId"))++instance Hashable DiscoveredResource where++instance NFData DiscoveredResource where++instance ToJSON DiscoveredResource where+        toJSON DiscoveredResource'{..}+          = object+              (catMaybes+                 [("Description" .=) <$> _drDescription,+                  Just ("ConfigurationId" .= _drConfigurationId)])++-- | Represents a migration task in a migration tool.+--+--+--+-- /See:/ 'migrationTask' smart constructor.+data MigrationTask = MigrationTask'+  { _mtUpdateDateTime        :: !(Maybe POSIX)+  , _mtResourceAttributeList :: !(Maybe [ResourceAttribute])+  , _mtTask                  :: !(Maybe Task)+  , _mtProgressUpdateStream  :: !(Maybe Text)+  , _mtMigrationTaskName     :: !(Maybe Text)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'MigrationTask' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'mtUpdateDateTime' - The timestamp when the task was gathered.+--+-- * 'mtResourceAttributeList' -+--+-- * 'mtTask' - Task object encapsulating task information.+--+-- * 'mtProgressUpdateStream' - A name that identifies the vendor of the migration tool being used.+--+-- * 'mtMigrationTaskName' - Unique identifier that references the migration task.+migrationTask+    :: MigrationTask+migrationTask =+  MigrationTask'+  { _mtUpdateDateTime = Nothing+  , _mtResourceAttributeList = Nothing+  , _mtTask = Nothing+  , _mtProgressUpdateStream = Nothing+  , _mtMigrationTaskName = Nothing+  }+++-- | The timestamp when the task was gathered.+mtUpdateDateTime :: Lens' MigrationTask (Maybe UTCTime)+mtUpdateDateTime = lens _mtUpdateDateTime (\ s a -> s{_mtUpdateDateTime = a}) . mapping _Time;++-- |+mtResourceAttributeList :: Lens' MigrationTask [ResourceAttribute]+mtResourceAttributeList = lens _mtResourceAttributeList (\ s a -> s{_mtResourceAttributeList = a}) . _Default . _Coerce;++-- | Task object encapsulating task information.+mtTask :: Lens' MigrationTask (Maybe Task)+mtTask = lens _mtTask (\ s a -> s{_mtTask = a});++-- | A name that identifies the vendor of the migration tool being used.+mtProgressUpdateStream :: Lens' MigrationTask (Maybe Text)+mtProgressUpdateStream = lens _mtProgressUpdateStream (\ s a -> s{_mtProgressUpdateStream = a});++-- | Unique identifier that references the migration task.+mtMigrationTaskName :: Lens' MigrationTask (Maybe Text)+mtMigrationTaskName = lens _mtMigrationTaskName (\ s a -> s{_mtMigrationTaskName = a});++instance FromJSON MigrationTask where+        parseJSON+          = withObject "MigrationTask"+              (\ x ->+                 MigrationTask' <$>+                   (x .:? "UpdateDateTime") <*>+                     (x .:? "ResourceAttributeList" .!= mempty)+                     <*> (x .:? "Task")+                     <*> (x .:? "ProgressUpdateStream")+                     <*> (x .:? "MigrationTaskName"))++instance Hashable MigrationTask where++instance NFData MigrationTask where++-- | MigrationTaskSummary includes @MigrationTaskName@ , @ProgressPercent@ , @ProgressUpdateStream@ , @Status@ , and @UpdateDateTime@ for each task.+--+--+--+-- /See:/ 'migrationTaskSummary' smart constructor.+data MigrationTaskSummary = MigrationTaskSummary'+  { _mtsStatus               :: !(Maybe MigrationStatus)+  , _mtsUpdateDateTime       :: !(Maybe POSIX)+  , _mtsProgressPercent      :: !(Maybe Nat)+  , _mtsStatusDetail         :: !(Maybe Text)+  , _mtsProgressUpdateStream :: !(Maybe Text)+  , _mtsMigrationTaskName    :: !(Maybe Text)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'MigrationTaskSummary' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'mtsStatus' - Status of the task.+--+-- * 'mtsUpdateDateTime' - The timestamp when the task was gathered.+--+-- * 'mtsProgressPercent' -+--+-- * 'mtsStatusDetail' - Detail information of what is being done within the overall status state.+--+-- * 'mtsProgressUpdateStream' - An AWS resource used for access control. It should uniquely identify the migration tool as it is used for all updates made by the tool.+--+-- * 'mtsMigrationTaskName' - Unique identifier that references the migration task.+migrationTaskSummary+    :: MigrationTaskSummary+migrationTaskSummary =+  MigrationTaskSummary'+  { _mtsStatus = Nothing+  , _mtsUpdateDateTime = Nothing+  , _mtsProgressPercent = Nothing+  , _mtsStatusDetail = Nothing+  , _mtsProgressUpdateStream = Nothing+  , _mtsMigrationTaskName = Nothing+  }+++-- | Status of the task.+mtsStatus :: Lens' MigrationTaskSummary (Maybe MigrationStatus)+mtsStatus = lens _mtsStatus (\ s a -> s{_mtsStatus = a});++-- | The timestamp when the task was gathered.+mtsUpdateDateTime :: Lens' MigrationTaskSummary (Maybe UTCTime)+mtsUpdateDateTime = lens _mtsUpdateDateTime (\ s a -> s{_mtsUpdateDateTime = a}) . mapping _Time;++-- |+mtsProgressPercent :: Lens' MigrationTaskSummary (Maybe Natural)+mtsProgressPercent = lens _mtsProgressPercent (\ s a -> s{_mtsProgressPercent = a}) . mapping _Nat;++-- | Detail information of what is being done within the overall status state.+mtsStatusDetail :: Lens' MigrationTaskSummary (Maybe Text)+mtsStatusDetail = lens _mtsStatusDetail (\ s a -> s{_mtsStatusDetail = a});++-- | An AWS resource used for access control. It should uniquely identify the migration tool as it is used for all updates made by the tool.+mtsProgressUpdateStream :: Lens' MigrationTaskSummary (Maybe Text)+mtsProgressUpdateStream = lens _mtsProgressUpdateStream (\ s a -> s{_mtsProgressUpdateStream = a});++-- | Unique identifier that references the migration task.+mtsMigrationTaskName :: Lens' MigrationTaskSummary (Maybe Text)+mtsMigrationTaskName = lens _mtsMigrationTaskName (\ s a -> s{_mtsMigrationTaskName = a});++instance FromJSON MigrationTaskSummary where+        parseJSON+          = withObject "MigrationTaskSummary"+              (\ x ->+                 MigrationTaskSummary' <$>+                   (x .:? "Status") <*> (x .:? "UpdateDateTime") <*>+                     (x .:? "ProgressPercent")+                     <*> (x .:? "StatusDetail")+                     <*> (x .:? "ProgressUpdateStream")+                     <*> (x .:? "MigrationTaskName"))++instance Hashable MigrationTaskSummary where++instance NFData MigrationTaskSummary where++-- | Summary of the AWS resource used for access control that is implicitly linked to your AWS account.+--+--+--+-- /See:/ 'progressUpdateStreamSummary' smart constructor.+newtype ProgressUpdateStreamSummary = ProgressUpdateStreamSummary'+  { _pussProgressUpdateStreamName :: Maybe Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'ProgressUpdateStreamSummary' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'pussProgressUpdateStreamName' - The name of the ProgressUpdateStream.+progressUpdateStreamSummary+    :: ProgressUpdateStreamSummary+progressUpdateStreamSummary =+  ProgressUpdateStreamSummary' {_pussProgressUpdateStreamName = Nothing}+++-- | The name of the ProgressUpdateStream.+pussProgressUpdateStreamName :: Lens' ProgressUpdateStreamSummary (Maybe Text)+pussProgressUpdateStreamName = lens _pussProgressUpdateStreamName (\ s a -> s{_pussProgressUpdateStreamName = a});++instance FromJSON ProgressUpdateStreamSummary where+        parseJSON+          = withObject "ProgressUpdateStreamSummary"+              (\ x ->+                 ProgressUpdateStreamSummary' <$>+                   (x .:? "ProgressUpdateStreamName"))++instance Hashable ProgressUpdateStreamSummary where++instance NFData ProgressUpdateStreamSummary where++-- | Attribute associated with a resource.+--+--+--+-- /See:/ 'resourceAttribute' smart constructor.+data ResourceAttribute = ResourceAttribute'+  { _raType  :: !ResourceAttributeType+  , _raValue :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'ResourceAttribute' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'raType' - Type of resource.+--+-- * 'raValue' - Value of the resource type.+resourceAttribute+    :: ResourceAttributeType -- ^ 'raType'+    -> Text -- ^ 'raValue'+    -> ResourceAttribute+resourceAttribute pType_ pValue_ =+  ResourceAttribute' {_raType = pType_, _raValue = pValue_}+++-- | Type of resource.+raType :: Lens' ResourceAttribute ResourceAttributeType+raType = lens _raType (\ s a -> s{_raType = a});++-- | Value of the resource type.+raValue :: Lens' ResourceAttribute Text+raValue = lens _raValue (\ s a -> s{_raValue = a});++instance FromJSON ResourceAttribute where+        parseJSON+          = withObject "ResourceAttribute"+              (\ x ->+                 ResourceAttribute' <$>+                   (x .: "Type") <*> (x .: "Value"))++instance Hashable ResourceAttribute where++instance NFData ResourceAttribute where++instance ToJSON ResourceAttribute where+        toJSON ResourceAttribute'{..}+          = object+              (catMaybes+                 [Just ("Type" .= _raType),+                  Just ("Value" .= _raValue)])++-- | Task object encapsulating task information.+--+--+--+-- /See:/ 'task' smart constructor.+data Task = Task'+  { _tProgressPercent :: !(Maybe Nat)+  , _tStatusDetail    :: !(Maybe Text)+  , _tStatus          :: !MigrationStatus+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'Task' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'tProgressPercent' - Indication of the percentage completion of the task.+--+-- * 'tStatusDetail' - Details of task status as notified by a migration tool. A tool might use this field to provide clarifying information about the status that is unique to that tool or that explains an error state.+--+-- * 'tStatus' - Status of the task - Not Started, In-Progress, Complete.+task+    :: MigrationStatus -- ^ 'tStatus'+    -> Task+task pStatus_ =+  Task'+  {_tProgressPercent = Nothing, _tStatusDetail = Nothing, _tStatus = pStatus_}+++-- | Indication of the percentage completion of the task.+tProgressPercent :: Lens' Task (Maybe Natural)+tProgressPercent = lens _tProgressPercent (\ s a -> s{_tProgressPercent = a}) . mapping _Nat;++-- | Details of task status as notified by a migration tool. A tool might use this field to provide clarifying information about the status that is unique to that tool or that explains an error state.+tStatusDetail :: Lens' Task (Maybe Text)+tStatusDetail = lens _tStatusDetail (\ s a -> s{_tStatusDetail = a});++-- | Status of the task - Not Started, In-Progress, Complete.+tStatus :: Lens' Task MigrationStatus+tStatus = lens _tStatus (\ s a -> s{_tStatus = a});++instance FromJSON Task where+        parseJSON+          = withObject "Task"+              (\ x ->+                 Task' <$>+                   (x .:? "ProgressPercent") <*> (x .:? "StatusDetail")+                     <*> (x .: "Status"))++instance Hashable Task where++instance NFData Task where++instance ToJSON Task where+        toJSON Task'{..}+          = object+              (catMaybes+                 [("ProgressPercent" .=) <$> _tProgressPercent,+                  ("StatusDetail" .=) <$> _tStatusDetail,+                  Just ("Status" .= _tStatus)])
+ gen/Network/AWS/MigrationHub/Types/Sum.hs view
@@ -0,0 +1,146 @@+{-# 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.MigrationHub.Types.Sum+-- Copyright   : (c) 2013-2017 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.MigrationHub.Types.Sum where++import Network.AWS.Prelude++data ApplicationStatus+  = ASCompleted+  | ASInProgress+  | ASNotStarted+  deriving (Eq, Ord, Read, Show, Enum, Bounded, Data, Typeable, Generic)+++instance FromText ApplicationStatus where+    parser = takeLowerText >>= \case+        "completed" -> pure ASCompleted+        "in_progress" -> pure ASInProgress+        "not_started" -> pure ASNotStarted+        e -> fromTextError $ "Failure parsing ApplicationStatus from value: '" <> e+           <> "'. Accepted values: completed, in_progress, not_started"++instance ToText ApplicationStatus where+    toText = \case+        ASCompleted -> "COMPLETED"+        ASInProgress -> "IN_PROGRESS"+        ASNotStarted -> "NOT_STARTED"++instance Hashable     ApplicationStatus+instance NFData       ApplicationStatus+instance ToByteString ApplicationStatus+instance ToQuery      ApplicationStatus+instance ToHeader     ApplicationStatus++instance ToJSON ApplicationStatus where+    toJSON = toJSONText++instance FromJSON ApplicationStatus where+    parseJSON = parseJSONText "ApplicationStatus"++data MigrationStatus+  = Completed+  | Failed+  | InProgress+  | NotStarted+  deriving (Eq, Ord, Read, Show, Enum, Bounded, Data, Typeable, Generic)+++instance FromText MigrationStatus where+    parser = takeLowerText >>= \case+        "completed" -> pure Completed+        "failed" -> pure Failed+        "in_progress" -> pure InProgress+        "not_started" -> pure NotStarted+        e -> fromTextError $ "Failure parsing MigrationStatus from value: '" <> e+           <> "'. Accepted values: completed, failed, in_progress, not_started"++instance ToText MigrationStatus where+    toText = \case+        Completed -> "COMPLETED"+        Failed -> "FAILED"+        InProgress -> "IN_PROGRESS"+        NotStarted -> "NOT_STARTED"++instance Hashable     MigrationStatus+instance NFData       MigrationStatus+instance ToByteString MigrationStatus+instance ToQuery      MigrationStatus+instance ToHeader     MigrationStatus++instance ToJSON MigrationStatus where+    toJSON = toJSONText++instance FromJSON MigrationStatus where+    parseJSON = parseJSONText "MigrationStatus"++data ResourceAttributeType+  = BiosId+  | Fqdn+  | IPV4Address+  | IPV6Address+  | Label+  | MACAddress+  | MotherboardSerialNumber+  | VMManagedObjectReference+  | VMManagerId+  | VMName+  | VMPath+  deriving (Eq, Ord, Read, Show, Enum, Bounded, Data, Typeable, Generic)+++instance FromText ResourceAttributeType where+    parser = takeLowerText >>= \case+        "bios_id" -> pure BiosId+        "fqdn" -> pure Fqdn+        "ipv4_address" -> pure IPV4Address+        "ipv6_address" -> pure IPV6Address+        "label" -> pure Label+        "mac_address" -> pure MACAddress+        "motherboard_serial_number" -> pure MotherboardSerialNumber+        "vm_managed_object_reference" -> pure VMManagedObjectReference+        "vm_manager_id" -> pure VMManagerId+        "vm_name" -> pure VMName+        "vm_path" -> pure VMPath+        e -> fromTextError $ "Failure parsing ResourceAttributeType from value: '" <> e+           <> "'. Accepted values: bios_id, fqdn, ipv4_address, ipv6_address, label, mac_address, motherboard_serial_number, vm_managed_object_reference, vm_manager_id, vm_name, vm_path"++instance ToText ResourceAttributeType where+    toText = \case+        BiosId -> "BIOS_ID"+        Fqdn -> "FQDN"+        IPV4Address -> "IPV4_ADDRESS"+        IPV6Address -> "IPV6_ADDRESS"+        Label -> "LABEL"+        MACAddress -> "MAC_ADDRESS"+        MotherboardSerialNumber -> "MOTHERBOARD_SERIAL_NUMBER"+        VMManagedObjectReference -> "VM_MANAGED_OBJECT_REFERENCE"+        VMManagerId -> "VM_MANAGER_ID"+        VMName -> "VM_NAME"+        VMPath -> "VM_PATH"++instance Hashable     ResourceAttributeType+instance NFData       ResourceAttributeType+instance ToByteString ResourceAttributeType+instance ToQuery      ResourceAttributeType+instance ToHeader     ResourceAttributeType++instance ToJSON ResourceAttributeType where+    toJSON = toJSONText++instance FromJSON ResourceAttributeType where+    parseJSON = parseJSONText "ResourceAttributeType"
+ gen/Network/AWS/MigrationHub/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.MigrationHub.Waiters+-- Copyright   : (c) 2013-2017 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.MigrationHub.Waiters where++import Network.AWS.Lens+import Network.AWS.MigrationHub.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-2017 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.MigrationHub+import Test.AWS.MigrationHub.Internal++main :: IO ()+main = defaultMain $ testGroup "MigrationHub"+    [ testGroup "tests"    tests+    , testGroup "fixtures" fixtures+    ]
+ test/Test/AWS/Gen/MigrationHub.hs view
@@ -0,0 +1,327 @@+{-# 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.MigrationHub+-- Copyright   : (c) 2013-2017 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.MigrationHub where++import Data.Proxy+import Network.AWS.MigrationHub+import Test.AWS.Fixture+import Test.AWS.MigrationHub.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"+--         [ requestAssociateDiscoveredResource $+--             associateDiscoveredResource+--+--         , requestCreateProgressUpdateStream $+--             createProgressUpdateStream+--+--         , requestListCreatedArtifacts $+--             listCreatedArtifacts+--+--         , requestDisassociateDiscoveredResource $+--             disassociateDiscoveredResource+--+--         , requestNotifyApplicationState $+--             notifyApplicationState+--+--         , requestDeleteProgressUpdateStream $+--             deleteProgressUpdateStream+--+--         , requestListProgressUpdateStreams $+--             listProgressUpdateStreams+--+--         , requestDisassociateCreatedArtifact $+--             disassociateCreatedArtifact+--+--         , requestImportMigrationTask $+--             importMigrationTask+--+--         , requestDescribeMigrationTask $+--             describeMigrationTask+--+--         , requestPutResourceAttributes $+--             putResourceAttributes+--+--         , requestAssociateCreatedArtifact $+--             associateCreatedArtifact+--+--         , requestNotifyMigrationTaskState $+--             notifyMigrationTaskState+--+--         , requestDescribeApplicationState $+--             describeApplicationState+--+--         , requestListMigrationTasks $+--             listMigrationTasks+--+--         , requestListDiscoveredResources $+--             listDiscoveredResources+--+--           ]++--     , testGroup "response"+--         [ responseAssociateDiscoveredResource $+--             associateDiscoveredResourceResponse+--+--         , responseCreateProgressUpdateStream $+--             createProgressUpdateStreamResponse+--+--         , responseListCreatedArtifacts $+--             listCreatedArtifactsResponse+--+--         , responseDisassociateDiscoveredResource $+--             disassociateDiscoveredResourceResponse+--+--         , responseNotifyApplicationState $+--             notifyApplicationStateResponse+--+--         , responseDeleteProgressUpdateStream $+--             deleteProgressUpdateStreamResponse+--+--         , responseListProgressUpdateStreams $+--             listProgressUpdateStreamsResponse+--+--         , responseDisassociateCreatedArtifact $+--             disassociateCreatedArtifactResponse+--+--         , responseImportMigrationTask $+--             importMigrationTaskResponse+--+--         , responseDescribeMigrationTask $+--             describeMigrationTaskResponse+--+--         , responsePutResourceAttributes $+--             putResourceAttributesResponse+--+--         , responseAssociateCreatedArtifact $+--             associateCreatedArtifactResponse+--+--         , responseNotifyMigrationTaskState $+--             notifyMigrationTaskStateResponse+--+--         , responseDescribeApplicationState $+--             describeApplicationStateResponse+--+--         , responseListMigrationTasks $+--             listMigrationTasksResponse+--+--         , responseListDiscoveredResources $+--             listDiscoveredResourcesResponse+--+--           ]+--     ]++-- Requests++requestAssociateDiscoveredResource :: AssociateDiscoveredResource -> TestTree+requestAssociateDiscoveredResource = req+    "AssociateDiscoveredResource"+    "fixture/AssociateDiscoveredResource.yaml"++requestCreateProgressUpdateStream :: CreateProgressUpdateStream -> TestTree+requestCreateProgressUpdateStream = req+    "CreateProgressUpdateStream"+    "fixture/CreateProgressUpdateStream.yaml"++requestListCreatedArtifacts :: ListCreatedArtifacts -> TestTree+requestListCreatedArtifacts = req+    "ListCreatedArtifacts"+    "fixture/ListCreatedArtifacts.yaml"++requestDisassociateDiscoveredResource :: DisassociateDiscoveredResource -> TestTree+requestDisassociateDiscoveredResource = req+    "DisassociateDiscoveredResource"+    "fixture/DisassociateDiscoveredResource.yaml"++requestNotifyApplicationState :: NotifyApplicationState -> TestTree+requestNotifyApplicationState = req+    "NotifyApplicationState"+    "fixture/NotifyApplicationState.yaml"++requestDeleteProgressUpdateStream :: DeleteProgressUpdateStream -> TestTree+requestDeleteProgressUpdateStream = req+    "DeleteProgressUpdateStream"+    "fixture/DeleteProgressUpdateStream.yaml"++requestListProgressUpdateStreams :: ListProgressUpdateStreams -> TestTree+requestListProgressUpdateStreams = req+    "ListProgressUpdateStreams"+    "fixture/ListProgressUpdateStreams.yaml"++requestDisassociateCreatedArtifact :: DisassociateCreatedArtifact -> TestTree+requestDisassociateCreatedArtifact = req+    "DisassociateCreatedArtifact"+    "fixture/DisassociateCreatedArtifact.yaml"++requestImportMigrationTask :: ImportMigrationTask -> TestTree+requestImportMigrationTask = req+    "ImportMigrationTask"+    "fixture/ImportMigrationTask.yaml"++requestDescribeMigrationTask :: DescribeMigrationTask -> TestTree+requestDescribeMigrationTask = req+    "DescribeMigrationTask"+    "fixture/DescribeMigrationTask.yaml"++requestPutResourceAttributes :: PutResourceAttributes -> TestTree+requestPutResourceAttributes = req+    "PutResourceAttributes"+    "fixture/PutResourceAttributes.yaml"++requestAssociateCreatedArtifact :: AssociateCreatedArtifact -> TestTree+requestAssociateCreatedArtifact = req+    "AssociateCreatedArtifact"+    "fixture/AssociateCreatedArtifact.yaml"++requestNotifyMigrationTaskState :: NotifyMigrationTaskState -> TestTree+requestNotifyMigrationTaskState = req+    "NotifyMigrationTaskState"+    "fixture/NotifyMigrationTaskState.yaml"++requestDescribeApplicationState :: DescribeApplicationState -> TestTree+requestDescribeApplicationState = req+    "DescribeApplicationState"+    "fixture/DescribeApplicationState.yaml"++requestListMigrationTasks :: ListMigrationTasks -> TestTree+requestListMigrationTasks = req+    "ListMigrationTasks"+    "fixture/ListMigrationTasks.yaml"++requestListDiscoveredResources :: ListDiscoveredResources -> TestTree+requestListDiscoveredResources = req+    "ListDiscoveredResources"+    "fixture/ListDiscoveredResources.yaml"++-- Responses++responseAssociateDiscoveredResource :: AssociateDiscoveredResourceResponse -> TestTree+responseAssociateDiscoveredResource = res+    "AssociateDiscoveredResourceResponse"+    "fixture/AssociateDiscoveredResourceResponse.proto"+    migrationHub+    (Proxy :: Proxy AssociateDiscoveredResource)++responseCreateProgressUpdateStream :: CreateProgressUpdateStreamResponse -> TestTree+responseCreateProgressUpdateStream = res+    "CreateProgressUpdateStreamResponse"+    "fixture/CreateProgressUpdateStreamResponse.proto"+    migrationHub+    (Proxy :: Proxy CreateProgressUpdateStream)++responseListCreatedArtifacts :: ListCreatedArtifactsResponse -> TestTree+responseListCreatedArtifacts = res+    "ListCreatedArtifactsResponse"+    "fixture/ListCreatedArtifactsResponse.proto"+    migrationHub+    (Proxy :: Proxy ListCreatedArtifacts)++responseDisassociateDiscoveredResource :: DisassociateDiscoveredResourceResponse -> TestTree+responseDisassociateDiscoveredResource = res+    "DisassociateDiscoveredResourceResponse"+    "fixture/DisassociateDiscoveredResourceResponse.proto"+    migrationHub+    (Proxy :: Proxy DisassociateDiscoveredResource)++responseNotifyApplicationState :: NotifyApplicationStateResponse -> TestTree+responseNotifyApplicationState = res+    "NotifyApplicationStateResponse"+    "fixture/NotifyApplicationStateResponse.proto"+    migrationHub+    (Proxy :: Proxy NotifyApplicationState)++responseDeleteProgressUpdateStream :: DeleteProgressUpdateStreamResponse -> TestTree+responseDeleteProgressUpdateStream = res+    "DeleteProgressUpdateStreamResponse"+    "fixture/DeleteProgressUpdateStreamResponse.proto"+    migrationHub+    (Proxy :: Proxy DeleteProgressUpdateStream)++responseListProgressUpdateStreams :: ListProgressUpdateStreamsResponse -> TestTree+responseListProgressUpdateStreams = res+    "ListProgressUpdateStreamsResponse"+    "fixture/ListProgressUpdateStreamsResponse.proto"+    migrationHub+    (Proxy :: Proxy ListProgressUpdateStreams)++responseDisassociateCreatedArtifact :: DisassociateCreatedArtifactResponse -> TestTree+responseDisassociateCreatedArtifact = res+    "DisassociateCreatedArtifactResponse"+    "fixture/DisassociateCreatedArtifactResponse.proto"+    migrationHub+    (Proxy :: Proxy DisassociateCreatedArtifact)++responseImportMigrationTask :: ImportMigrationTaskResponse -> TestTree+responseImportMigrationTask = res+    "ImportMigrationTaskResponse"+    "fixture/ImportMigrationTaskResponse.proto"+    migrationHub+    (Proxy :: Proxy ImportMigrationTask)++responseDescribeMigrationTask :: DescribeMigrationTaskResponse -> TestTree+responseDescribeMigrationTask = res+    "DescribeMigrationTaskResponse"+    "fixture/DescribeMigrationTaskResponse.proto"+    migrationHub+    (Proxy :: Proxy DescribeMigrationTask)++responsePutResourceAttributes :: PutResourceAttributesResponse -> TestTree+responsePutResourceAttributes = res+    "PutResourceAttributesResponse"+    "fixture/PutResourceAttributesResponse.proto"+    migrationHub+    (Proxy :: Proxy PutResourceAttributes)++responseAssociateCreatedArtifact :: AssociateCreatedArtifactResponse -> TestTree+responseAssociateCreatedArtifact = res+    "AssociateCreatedArtifactResponse"+    "fixture/AssociateCreatedArtifactResponse.proto"+    migrationHub+    (Proxy :: Proxy AssociateCreatedArtifact)++responseNotifyMigrationTaskState :: NotifyMigrationTaskStateResponse -> TestTree+responseNotifyMigrationTaskState = res+    "NotifyMigrationTaskStateResponse"+    "fixture/NotifyMigrationTaskStateResponse.proto"+    migrationHub+    (Proxy :: Proxy NotifyMigrationTaskState)++responseDescribeApplicationState :: DescribeApplicationStateResponse -> TestTree+responseDescribeApplicationState = res+    "DescribeApplicationStateResponse"+    "fixture/DescribeApplicationStateResponse.proto"+    migrationHub+    (Proxy :: Proxy DescribeApplicationState)++responseListMigrationTasks :: ListMigrationTasksResponse -> TestTree+responseListMigrationTasks = res+    "ListMigrationTasksResponse"+    "fixture/ListMigrationTasksResponse.proto"+    migrationHub+    (Proxy :: Proxy ListMigrationTasks)++responseListDiscoveredResources :: ListDiscoveredResourcesResponse -> TestTree+responseListDiscoveredResources = res+    "ListDiscoveredResourcesResponse"+    "fixture/ListDiscoveredResourcesResponse.proto"+    migrationHub+    (Proxy :: Proxy ListDiscoveredResources)
+ test/Test/AWS/MigrationHub.hs view
@@ -0,0 +1,20 @@+-- |+-- Module      : Test.AWS.MigrationHub+-- Copyright   : (c) 2013-2016 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+module Test.AWS.MigrationHub+    ( tests+    , fixtures+    ) where++import Test.Tasty (TestTree)++tests :: [TestTree]+tests = []++fixtures :: [TestTree]+fixtures = []
+ test/Test/AWS/MigrationHub/Internal.hs view
@@ -0,0 +1,9 @@+-- |+-- Module      : Test.AWS.MigrationHub.Internal+-- Copyright   : (c) 2013-2016 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+module Test.AWS.MigrationHub.Internal where