packages feed

amazonka-fms (empty) → 1.6.0

raw patch · 50 files changed

+3601/−0 lines, 50 filesdep +amazonka-coredep +amazonka-fmsdep +amazonka-testsetup-changed

Dependencies added: amazonka-core, amazonka-fms, 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 Firewall Management Service SDK++* [Version](#version)+* [Description](#description)+* [Contribute](#contribute)+* [Licence](#licence)+++## Version++`1.6.0`+++## Description++Documentation is available via [Hackage](http://hackage.haskell.org/package/amazonka-fms)+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.FMS](http://hackage.haskell.org/package/amazonka-fms/docs/Network-AWS-FMS.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-fms` 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-fms.cabal view
@@ -0,0 +1,97 @@+name:                  amazonka-fms+version:               1.6.0+synopsis:              Amazon Firewall Management Service SDK.+homepage:              https://github.com/brendanhay/amazonka+bug-reports:           https://github.com/brendanhay/amazonka/issues+license:               MPL-2.0+license-file:          LICENSE+author:                Brendan Hay+maintainer:            Brendan Hay <brendan.g.hay+amazonka@gmail.com>+copyright:             Copyright (c) 2013-2018 Brendan Hay+category:              Network, AWS, Cloud, Distributed Computing+build-type:            Simple+cabal-version:         >= 1.10+extra-source-files:    README.md fixture/*.yaml fixture/*.proto src/.gitkeep+description:+    The types from this library are intended to be used with+    <http://hackage.haskell.org/package/amazonka amazonka>, which provides+    mechanisms for specifying AuthN/AuthZ information, sending requests,+    and receiving responses.+    .+    Lenses are used for constructing and manipulating types,+    due to the depth of nesting of AWS types and transparency regarding+    de/serialisation into more palatable Haskell values.+    The provided lenses should be compatible with any of the major lens libraries+    such as <http://hackage.haskell.org/package/lens lens> or+    <http://hackage.haskell.org/package/lens-family-core lens-family-core>.+    .+    See "Network.AWS.FMS" 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-fms++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.FMS+        , Network.AWS.FMS.AssociateAdminAccount+        , Network.AWS.FMS.DeleteNotificationChannel+        , Network.AWS.FMS.DeletePolicy+        , Network.AWS.FMS.DisassociateAdminAccount+        , Network.AWS.FMS.GetAdminAccount+        , Network.AWS.FMS.GetComplianceDetail+        , Network.AWS.FMS.GetNotificationChannel+        , Network.AWS.FMS.GetPolicy+        , Network.AWS.FMS.ListComplianceStatus+        , Network.AWS.FMS.ListPolicies+        , Network.AWS.FMS.PutNotificationChannel+        , Network.AWS.FMS.PutPolicy+        , Network.AWS.FMS.Types+        , Network.AWS.FMS.Waiters++    other-modules:+          Network.AWS.FMS.Types.Product+        , Network.AWS.FMS.Types.Sum++    build-depends:+          amazonka-core == 1.6.0.*+        , base          >= 4.7     && < 5++test-suite amazonka-fms-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.FMS+        , Test.AWS.Gen.FMS+        , Test.AWS.FMS.Internal++    build-depends:+          amazonka-core == 1.6.0.*+        , amazonka-test == 1.6.0.*+        , amazonka-fms+        , base+        , bytestring+        , tasty+        , tasty-hunit+        , text+        , time+        , unordered-containers
+ fixture/AssociateAdminAccount.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/fms/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  fms.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/AssociateAdminAccountResponse.proto view
+ fixture/DeleteNotificationChannel.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/fms/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  fms.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/DeleteNotificationChannelResponse.proto view
+ fixture/DeletePolicy.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/fms/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  fms.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/DeletePolicyResponse.proto view
+ fixture/DisassociateAdminAccount.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/fms/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  fms.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/DisassociateAdminAccountResponse.proto view
+ fixture/GetAdminAccount.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/fms/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  fms.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/GetAdminAccountResponse.proto view
+ fixture/GetComplianceDetail.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/fms/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  fms.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/GetComplianceDetailResponse.proto view
+ fixture/GetNotificationChannel.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/fms/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  fms.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/GetNotificationChannelResponse.proto view
+ fixture/GetPolicy.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/fms/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  fms.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/GetPolicyResponse.proto view
+ fixture/ListComplianceStatus.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/fms/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  fms.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/ListComplianceStatusResponse.proto view
+ fixture/ListPolicies.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/fms/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  fms.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/ListPoliciesResponse.proto view
+ fixture/PutNotificationChannel.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/fms/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  fms.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/PutNotificationChannelResponse.proto view
+ fixture/PutPolicy.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/fms/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  fms.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/PutPolicyResponse.proto view
+ gen/Network/AWS/FMS.hs view
@@ -0,0 +1,206 @@+{-# 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.FMS+-- Copyright   : (c) 2013-2018 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- __AWS Firewall Manager__+--+-- This is the /AWS Firewall Manager API Reference/ . This guide is for developers who need detailed information about the AWS Firewall Manager API actions, data types, and errors. For detailed information about AWS Firewall Manager features, see the <http://docs.aws.amazon.com/waf/latest/developerguide/fms-chapter.html AWS Firewall Manager Developer Guide> .+--+module Network.AWS.FMS+    (+    -- * Service Configuration+      fms++    -- * Errors+    -- $errors++    -- ** InternalErrorException+    , _InternalErrorException++    -- ** InvalidInputException+    , _InvalidInputException++    -- ** InvalidOperationException+    , _InvalidOperationException++    -- ** ResourceNotFoundException+    , _ResourceNotFoundException++    -- ** LimitExceededException+    , _LimitExceededException++    -- * Waiters+    -- $waiters++    -- * Operations+    -- $operations++    -- ** ListPolicies+    , module Network.AWS.FMS.ListPolicies++    -- ** GetComplianceDetail+    , module Network.AWS.FMS.GetComplianceDetail++    -- ** GetNotificationChannel+    , module Network.AWS.FMS.GetNotificationChannel++    -- ** GetAdminAccount+    , module Network.AWS.FMS.GetAdminAccount++    -- ** ListComplianceStatus+    , module Network.AWS.FMS.ListComplianceStatus++    -- ** PutPolicy+    , module Network.AWS.FMS.PutPolicy++    -- ** DeletePolicy+    , module Network.AWS.FMS.DeletePolicy++    -- ** DisassociateAdminAccount+    , module Network.AWS.FMS.DisassociateAdminAccount++    -- ** PutNotificationChannel+    , module Network.AWS.FMS.PutNotificationChannel++    -- ** DeleteNotificationChannel+    , module Network.AWS.FMS.DeleteNotificationChannel++    -- ** AssociateAdminAccount+    , module Network.AWS.FMS.AssociateAdminAccount++    -- ** GetPolicy+    , module Network.AWS.FMS.GetPolicy++    -- * Types++    -- ** PolicyComplianceStatusType+    , PolicyComplianceStatusType (..)++    -- ** SecurityServiceType+    , SecurityServiceType (..)++    -- ** ViolationReason+    , ViolationReason (..)++    -- ** ComplianceViolator+    , ComplianceViolator+    , complianceViolator+    , cvResourceId+    , cvResourceType+    , cvViolationReason++    -- ** EvaluationResult+    , EvaluationResult+    , evaluationResult+    , erViolatorCount+    , erComplianceStatus+    , erEvaluationLimitExceeded++    -- ** Policy+    , Policy+    , policy+    , pPolicyId+    , pResourceTags+    , pPolicyUpdateToken+    , pPolicyName+    , pSecurityServicePolicyData+    , pResourceType+    , pExcludeResourceTags+    , pRemediationEnabled++    -- ** PolicyComplianceDetail+    , PolicyComplianceDetail+    , policyComplianceDetail+    , pcdExpiredAt+    , pcdPolicyId+    , pcdViolators+    , pcdEvaluationLimitExceeded+    , pcdPolicyOwner+    , pcdMemberAccount++    -- ** PolicyComplianceStatus+    , PolicyComplianceStatus+    , policyComplianceStatus+    , pcsEvaluationResults+    , pcsLastUpdated+    , pcsPolicyName+    , pcsPolicyId+    , pcsPolicyOwner+    , pcsMemberAccount++    -- ** PolicySummary+    , PolicySummary+    , policySummary+    , psPolicyName+    , psRemediationEnabled+    , psResourceType+    , psPolicyId+    , psPolicyARN+    , psSecurityServiceType++    -- ** ResourceTag+    , ResourceTag+    , resourceTag+    , rtValue+    , rtKey++    -- ** SecurityServicePolicyData+    , SecurityServicePolicyData+    , securityServicePolicyData+    , sspdManagedServiceData+    , sspdType+    ) where++import Network.AWS.FMS.AssociateAdminAccount+import Network.AWS.FMS.DeleteNotificationChannel+import Network.AWS.FMS.DeletePolicy+import Network.AWS.FMS.DisassociateAdminAccount+import Network.AWS.FMS.GetAdminAccount+import Network.AWS.FMS.GetComplianceDetail+import Network.AWS.FMS.GetNotificationChannel+import Network.AWS.FMS.GetPolicy+import Network.AWS.FMS.ListComplianceStatus+import Network.AWS.FMS.ListPolicies+import Network.AWS.FMS.PutNotificationChannel+import Network.AWS.FMS.PutPolicy+import Network.AWS.FMS.Types+import Network.AWS.FMS.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 'FMS'.+-}++{- $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/FMS/AssociateAdminAccount.hs view
@@ -0,0 +1,113 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric      #-}+{-# LANGUAGE OverloadedStrings  #-}+{-# LANGUAGE RecordWildCards    #-}+{-# LANGUAGE TypeFamilies       #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds   #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Network.AWS.FMS.AssociateAdminAccount+-- Copyright   : (c) 2013-2018 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Sets the AWS Firewall Manager administrator account. AWS Firewall Manager must be associated with a master account in AWS Organizations or associated with a member account that has the appropriate permissions. If the account ID that you submit is not an AWS Organizations master account, AWS Firewall Manager will set the appropriate permissions for the given member account.+--+--+-- The account that you associate with AWS Firewall Manager is called the AWS Firewall manager administrator account.+--+module Network.AWS.FMS.AssociateAdminAccount+    (+    -- * Creating a Request+      associateAdminAccount+    , AssociateAdminAccount+    -- * Request Lenses+    , aaaAdminAccount++    -- * Destructuring the Response+    , associateAdminAccountResponse+    , AssociateAdminAccountResponse+    ) where++import Network.AWS.FMS.Types+import Network.AWS.FMS.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'associateAdminAccount' smart constructor.+newtype AssociateAdminAccount = AssociateAdminAccount'+  { _aaaAdminAccount :: Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'AssociateAdminAccount' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'aaaAdminAccount' - The AWS account ID to associate with AWS Firewall Manager as the AWS Firewall Manager administrator account. This can be an AWS Organizations master account or a member account. For more information about AWS Organizations and master accounts, see <https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts.html Managing the AWS Accounts in Your Organization> .+associateAdminAccount+    :: Text -- ^ 'aaaAdminAccount'+    -> AssociateAdminAccount+associateAdminAccount pAdminAccount_ =+  AssociateAdminAccount' {_aaaAdminAccount = pAdminAccount_}+++-- | The AWS account ID to associate with AWS Firewall Manager as the AWS Firewall Manager administrator account. This can be an AWS Organizations master account or a member account. For more information about AWS Organizations and master accounts, see <https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_accounts.html Managing the AWS Accounts in Your Organization> .+aaaAdminAccount :: Lens' AssociateAdminAccount Text+aaaAdminAccount = lens _aaaAdminAccount (\ s a -> s{_aaaAdminAccount = a})++instance AWSRequest AssociateAdminAccount where+        type Rs AssociateAdminAccount =+             AssociateAdminAccountResponse+        request = postJSON fms+        response = receiveNull AssociateAdminAccountResponse'++instance Hashable AssociateAdminAccount where++instance NFData AssociateAdminAccount where++instance ToHeaders AssociateAdminAccount where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("AWSFMS_20180101.AssociateAdminAccount" ::+                       ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON AssociateAdminAccount where+        toJSON AssociateAdminAccount'{..}+          = object+              (catMaybes+                 [Just ("AdminAccount" .= _aaaAdminAccount)])++instance ToPath AssociateAdminAccount where+        toPath = const "/"++instance ToQuery AssociateAdminAccount where+        toQuery = const mempty++-- | /See:/ 'associateAdminAccountResponse' smart constructor.+data AssociateAdminAccountResponse =+  AssociateAdminAccountResponse'+  deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'AssociateAdminAccountResponse' with the minimum fields required to make a request.+--+associateAdminAccountResponse+    :: AssociateAdminAccountResponse+associateAdminAccountResponse = AssociateAdminAccountResponse'+++instance NFData AssociateAdminAccountResponse where
+ gen/Network/AWS/FMS/DeleteNotificationChannel.hs view
@@ -0,0 +1,99 @@+{-# 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.FMS.DeleteNotificationChannel+-- Copyright   : (c) 2013-2018 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Deletes an AWS Firewall Manager association with the IAM role and the Amazon Simple Notification Service (SNS) topic that is used to record AWS Firewall Manager SNS logs.+--+--+module Network.AWS.FMS.DeleteNotificationChannel+    (+    -- * Creating a Request+      deleteNotificationChannel+    , DeleteNotificationChannel++    -- * Destructuring the Response+    , deleteNotificationChannelResponse+    , DeleteNotificationChannelResponse+    ) where++import Network.AWS.FMS.Types+import Network.AWS.FMS.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'deleteNotificationChannel' smart constructor.+data DeleteNotificationChannel =+  DeleteNotificationChannel'+  deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DeleteNotificationChannel' with the minimum fields required to make a request.+--+deleteNotificationChannel+    :: DeleteNotificationChannel+deleteNotificationChannel = DeleteNotificationChannel'+++instance AWSRequest DeleteNotificationChannel where+        type Rs DeleteNotificationChannel =+             DeleteNotificationChannelResponse+        request = postJSON fms+        response+          = receiveNull DeleteNotificationChannelResponse'++instance Hashable DeleteNotificationChannel where++instance NFData DeleteNotificationChannel where++instance ToHeaders DeleteNotificationChannel where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("AWSFMS_20180101.DeleteNotificationChannel" ::+                       ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON DeleteNotificationChannel where+        toJSON = const (Object mempty)++instance ToPath DeleteNotificationChannel where+        toPath = const "/"++instance ToQuery DeleteNotificationChannel where+        toQuery = const mempty++-- | /See:/ 'deleteNotificationChannelResponse' smart constructor.+data DeleteNotificationChannelResponse =+  DeleteNotificationChannelResponse'+  deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DeleteNotificationChannelResponse' with the minimum fields required to make a request.+--+deleteNotificationChannelResponse+    :: DeleteNotificationChannelResponse+deleteNotificationChannelResponse = DeleteNotificationChannelResponse'+++instance NFData DeleteNotificationChannelResponse+         where
+ gen/Network/AWS/FMS/DeletePolicy.hs view
@@ -0,0 +1,107 @@+{-# 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.FMS.DeletePolicy+-- Copyright   : (c) 2013-2018 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Permanently deletes an AWS Firewall Manager policy.+--+--+module Network.AWS.FMS.DeletePolicy+    (+    -- * Creating a Request+      deletePolicy+    , DeletePolicy+    -- * Request Lenses+    , dpPolicyId++    -- * Destructuring the Response+    , deletePolicyResponse+    , DeletePolicyResponse+    ) where++import Network.AWS.FMS.Types+import Network.AWS.FMS.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'deletePolicy' smart constructor.+newtype DeletePolicy = DeletePolicy'+  { _dpPolicyId :: Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DeletePolicy' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'dpPolicyId' - The ID of the policy that you want to delete. @PolicyId@ is returned by @PutPolicy@ and by @ListPolicies@ .+deletePolicy+    :: Text -- ^ 'dpPolicyId'+    -> DeletePolicy+deletePolicy pPolicyId_ = DeletePolicy' {_dpPolicyId = pPolicyId_}+++-- | The ID of the policy that you want to delete. @PolicyId@ is returned by @PutPolicy@ and by @ListPolicies@ .+dpPolicyId :: Lens' DeletePolicy Text+dpPolicyId = lens _dpPolicyId (\ s a -> s{_dpPolicyId = a})++instance AWSRequest DeletePolicy where+        type Rs DeletePolicy = DeletePolicyResponse+        request = postJSON fms+        response = receiveNull DeletePolicyResponse'++instance Hashable DeletePolicy where++instance NFData DeletePolicy where++instance ToHeaders DeletePolicy where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("AWSFMS_20180101.DeletePolicy" :: ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON DeletePolicy where+        toJSON DeletePolicy'{..}+          = object+              (catMaybes [Just ("PolicyId" .= _dpPolicyId)])++instance ToPath DeletePolicy where+        toPath = const "/"++instance ToQuery DeletePolicy where+        toQuery = const mempty++-- | /See:/ 'deletePolicyResponse' smart constructor.+data DeletePolicyResponse =+  DeletePolicyResponse'+  deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DeletePolicyResponse' with the minimum fields required to make a request.+--+deletePolicyResponse+    :: DeletePolicyResponse+deletePolicyResponse = DeletePolicyResponse'+++instance NFData DeletePolicyResponse where
+ gen/Network/AWS/FMS/DisassociateAdminAccount.hs view
@@ -0,0 +1,99 @@+{-# 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.FMS.DisassociateAdminAccount+-- Copyright   : (c) 2013-2018 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Disassociates the account that has been set as the AWS Firewall Manager administrator account. You will need to submit an @AssociateAdminAccount@ request to set a new account as the AWS Firewall administrator.+--+--+module Network.AWS.FMS.DisassociateAdminAccount+    (+    -- * Creating a Request+      disassociateAdminAccount+    , DisassociateAdminAccount++    -- * Destructuring the Response+    , disassociateAdminAccountResponse+    , DisassociateAdminAccountResponse+    ) where++import Network.AWS.FMS.Types+import Network.AWS.FMS.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'disassociateAdminAccount' smart constructor.+data DisassociateAdminAccount =+  DisassociateAdminAccount'+  deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DisassociateAdminAccount' with the minimum fields required to make a request.+--+disassociateAdminAccount+    :: DisassociateAdminAccount+disassociateAdminAccount = DisassociateAdminAccount'+++instance AWSRequest DisassociateAdminAccount where+        type Rs DisassociateAdminAccount =+             DisassociateAdminAccountResponse+        request = postJSON fms+        response+          = receiveNull DisassociateAdminAccountResponse'++instance Hashable DisassociateAdminAccount where++instance NFData DisassociateAdminAccount where++instance ToHeaders DisassociateAdminAccount where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("AWSFMS_20180101.DisassociateAdminAccount" ::+                       ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON DisassociateAdminAccount where+        toJSON = const (Object mempty)++instance ToPath DisassociateAdminAccount where+        toPath = const "/"++instance ToQuery DisassociateAdminAccount where+        toQuery = const mempty++-- | /See:/ 'disassociateAdminAccountResponse' smart constructor.+data DisassociateAdminAccountResponse =+  DisassociateAdminAccountResponse'+  deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'DisassociateAdminAccountResponse' with the minimum fields required to make a request.+--+disassociateAdminAccountResponse+    :: DisassociateAdminAccountResponse+disassociateAdminAccountResponse = DisassociateAdminAccountResponse'+++instance NFData DisassociateAdminAccountResponse+         where
+ gen/Network/AWS/FMS/GetAdminAccount.hs view
@@ -0,0 +1,119 @@+{-# 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.FMS.GetAdminAccount+-- Copyright   : (c) 2013-2018 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns the AWS Organizations master account that is associated with AWS Firewall Manager as the AWS Firewall Manager administrator.+--+--+module Network.AWS.FMS.GetAdminAccount+    (+    -- * Creating a Request+      getAdminAccount+    , GetAdminAccount++    -- * Destructuring the Response+    , getAdminAccountResponse+    , GetAdminAccountResponse+    -- * Response Lenses+    , gaarsAdminAccount+    , gaarsResponseStatus+    ) where++import Network.AWS.FMS.Types+import Network.AWS.FMS.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'getAdminAccount' smart constructor.+data GetAdminAccount =+  GetAdminAccount'+  deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'GetAdminAccount' with the minimum fields required to make a request.+--+getAdminAccount+    :: GetAdminAccount+getAdminAccount = GetAdminAccount'+++instance AWSRequest GetAdminAccount where+        type Rs GetAdminAccount = GetAdminAccountResponse+        request = postJSON fms+        response+          = receiveJSON+              (\ s h x ->+                 GetAdminAccountResponse' <$>+                   (x .?> "AdminAccount") <*> (pure (fromEnum s)))++instance Hashable GetAdminAccount where++instance NFData GetAdminAccount where++instance ToHeaders GetAdminAccount where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("AWSFMS_20180101.GetAdminAccount" :: ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON GetAdminAccount where+        toJSON = const (Object mempty)++instance ToPath GetAdminAccount where+        toPath = const "/"++instance ToQuery GetAdminAccount where+        toQuery = const mempty++-- | /See:/ 'getAdminAccountResponse' smart constructor.+data GetAdminAccountResponse = GetAdminAccountResponse'+  { _gaarsAdminAccount   :: !(Maybe Text)+  , _gaarsResponseStatus :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'GetAdminAccountResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'gaarsAdminAccount' - The AWS account that is set as the AWS Firewall Manager administrator.+--+-- * 'gaarsResponseStatus' - -- | The response status code.+getAdminAccountResponse+    :: Int -- ^ 'gaarsResponseStatus'+    -> GetAdminAccountResponse+getAdminAccountResponse pResponseStatus_ =+  GetAdminAccountResponse'+    {_gaarsAdminAccount = Nothing, _gaarsResponseStatus = pResponseStatus_}+++-- | The AWS account that is set as the AWS Firewall Manager administrator.+gaarsAdminAccount :: Lens' GetAdminAccountResponse (Maybe Text)+gaarsAdminAccount = lens _gaarsAdminAccount (\ s a -> s{_gaarsAdminAccount = a})++-- | -- | The response status code.+gaarsResponseStatus :: Lens' GetAdminAccountResponse Int+gaarsResponseStatus = lens _gaarsResponseStatus (\ s a -> s{_gaarsResponseStatus = a})++instance NFData GetAdminAccountResponse where
+ gen/Network/AWS/FMS/GetComplianceDetail.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.FMS.GetComplianceDetail+-- Copyright   : (c) 2013-2018 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns detailed compliance information about the specified member account. Details include resources that are in and out of compliance with the specified policy. Resources are considered non-compliant if the specified policy has not been applied to them.+--+--+module Network.AWS.FMS.GetComplianceDetail+    (+    -- * Creating a Request+      getComplianceDetail+    , GetComplianceDetail+    -- * Request Lenses+    , gcdPolicyId+    , gcdMemberAccount++    -- * Destructuring the Response+    , getComplianceDetailResponse+    , GetComplianceDetailResponse+    -- * Response Lenses+    , gcdrsPolicyComplianceDetail+    , gcdrsResponseStatus+    ) where++import Network.AWS.FMS.Types+import Network.AWS.FMS.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'getComplianceDetail' smart constructor.+data GetComplianceDetail = GetComplianceDetail'+  { _gcdPolicyId      :: !Text+  , _gcdMemberAccount :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'GetComplianceDetail' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'gcdPolicyId' - The ID of the policy that you want to get the details for. @PolicyId@ is returned by @PutPolicy@ and by @ListPolicies@ .+--+-- * 'gcdMemberAccount' - The AWS account that owns the resources that you want to get the details for.+getComplianceDetail+    :: Text -- ^ 'gcdPolicyId'+    -> Text -- ^ 'gcdMemberAccount'+    -> GetComplianceDetail+getComplianceDetail pPolicyId_ pMemberAccount_ =+  GetComplianceDetail'+    {_gcdPolicyId = pPolicyId_, _gcdMemberAccount = pMemberAccount_}+++-- | The ID of the policy that you want to get the details for. @PolicyId@ is returned by @PutPolicy@ and by @ListPolicies@ .+gcdPolicyId :: Lens' GetComplianceDetail Text+gcdPolicyId = lens _gcdPolicyId (\ s a -> s{_gcdPolicyId = a})++-- | The AWS account that owns the resources that you want to get the details for.+gcdMemberAccount :: Lens' GetComplianceDetail Text+gcdMemberAccount = lens _gcdMemberAccount (\ s a -> s{_gcdMemberAccount = a})++instance AWSRequest GetComplianceDetail where+        type Rs GetComplianceDetail =+             GetComplianceDetailResponse+        request = postJSON fms+        response+          = receiveJSON+              (\ s h x ->+                 GetComplianceDetailResponse' <$>+                   (x .?> "PolicyComplianceDetail") <*>+                     (pure (fromEnum s)))++instance Hashable GetComplianceDetail where++instance NFData GetComplianceDetail where++instance ToHeaders GetComplianceDetail where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("AWSFMS_20180101.GetComplianceDetail" ::+                       ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON GetComplianceDetail where+        toJSON GetComplianceDetail'{..}+          = object+              (catMaybes+                 [Just ("PolicyId" .= _gcdPolicyId),+                  Just ("MemberAccount" .= _gcdMemberAccount)])++instance ToPath GetComplianceDetail where+        toPath = const "/"++instance ToQuery GetComplianceDetail where+        toQuery = const mempty++-- | /See:/ 'getComplianceDetailResponse' smart constructor.+data GetComplianceDetailResponse = GetComplianceDetailResponse'+  { _gcdrsPolicyComplianceDetail :: !(Maybe PolicyComplianceDetail)+  , _gcdrsResponseStatus         :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'GetComplianceDetailResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'gcdrsPolicyComplianceDetail' - Information about the resources and the policy that you specified in the @GetComplianceDetail@ request.+--+-- * 'gcdrsResponseStatus' - -- | The response status code.+getComplianceDetailResponse+    :: Int -- ^ 'gcdrsResponseStatus'+    -> GetComplianceDetailResponse+getComplianceDetailResponse pResponseStatus_ =+  GetComplianceDetailResponse'+    { _gcdrsPolicyComplianceDetail = Nothing+    , _gcdrsResponseStatus = pResponseStatus_+    }+++-- | Information about the resources and the policy that you specified in the @GetComplianceDetail@ request.+gcdrsPolicyComplianceDetail :: Lens' GetComplianceDetailResponse (Maybe PolicyComplianceDetail)+gcdrsPolicyComplianceDetail = lens _gcdrsPolicyComplianceDetail (\ s a -> s{_gcdrsPolicyComplianceDetail = a})++-- | -- | The response status code.+gcdrsResponseStatus :: Lens' GetComplianceDetailResponse Int+gcdrsResponseStatus = lens _gcdrsResponseStatus (\ s a -> s{_gcdrsResponseStatus = a})++instance NFData GetComplianceDetailResponse where
+ gen/Network/AWS/FMS/GetNotificationChannel.hs view
@@ -0,0 +1,133 @@+{-# 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.FMS.GetNotificationChannel+-- Copyright   : (c) 2013-2018 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns information about the Amazon Simple Notification Service (SNS) topic that is used to record AWS Firewall Manager SNS logs.+--+--+module Network.AWS.FMS.GetNotificationChannel+    (+    -- * Creating a Request+      getNotificationChannel+    , GetNotificationChannel++    -- * Destructuring the Response+    , getNotificationChannelResponse+    , GetNotificationChannelResponse+    -- * Response Lenses+    , gncrsSNSTopicARN+    , gncrsSNSRoleName+    , gncrsResponseStatus+    ) where++import Network.AWS.FMS.Types+import Network.AWS.FMS.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'getNotificationChannel' smart constructor.+data GetNotificationChannel =+  GetNotificationChannel'+  deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'GetNotificationChannel' with the minimum fields required to make a request.+--+getNotificationChannel+    :: GetNotificationChannel+getNotificationChannel = GetNotificationChannel'+++instance AWSRequest GetNotificationChannel where+        type Rs GetNotificationChannel =+             GetNotificationChannelResponse+        request = postJSON fms+        response+          = receiveJSON+              (\ s h x ->+                 GetNotificationChannelResponse' <$>+                   (x .?> "SnsTopicArn") <*> (x .?> "SnsRoleName") <*>+                     (pure (fromEnum s)))++instance Hashable GetNotificationChannel where++instance NFData GetNotificationChannel where++instance ToHeaders GetNotificationChannel where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("AWSFMS_20180101.GetNotificationChannel" ::+                       ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON GetNotificationChannel where+        toJSON = const (Object mempty)++instance ToPath GetNotificationChannel where+        toPath = const "/"++instance ToQuery GetNotificationChannel where+        toQuery = const mempty++-- | /See:/ 'getNotificationChannelResponse' smart constructor.+data GetNotificationChannelResponse = GetNotificationChannelResponse'+  { _gncrsSNSTopicARN    :: !(Maybe Text)+  , _gncrsSNSRoleName    :: !(Maybe Text)+  , _gncrsResponseStatus :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'GetNotificationChannelResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'gncrsSNSTopicARN' - The SNS topic that records AWS Firewall Manager activity.+--+-- * 'gncrsSNSRoleName' - The IAM role that is used by AWS Firewall Manager to record activity to SNS.+--+-- * 'gncrsResponseStatus' - -- | The response status code.+getNotificationChannelResponse+    :: Int -- ^ 'gncrsResponseStatus'+    -> GetNotificationChannelResponse+getNotificationChannelResponse pResponseStatus_ =+  GetNotificationChannelResponse'+    { _gncrsSNSTopicARN = Nothing+    , _gncrsSNSRoleName = Nothing+    , _gncrsResponseStatus = pResponseStatus_+    }+++-- | The SNS topic that records AWS Firewall Manager activity.+gncrsSNSTopicARN :: Lens' GetNotificationChannelResponse (Maybe Text)+gncrsSNSTopicARN = lens _gncrsSNSTopicARN (\ s a -> s{_gncrsSNSTopicARN = a})++-- | The IAM role that is used by AWS Firewall Manager to record activity to SNS.+gncrsSNSRoleName :: Lens' GetNotificationChannelResponse (Maybe Text)+gncrsSNSRoleName = lens _gncrsSNSRoleName (\ s a -> s{_gncrsSNSRoleName = a})++-- | -- | The response status code.+gncrsResponseStatus :: Lens' GetNotificationChannelResponse Int+gncrsResponseStatus = lens _gncrsResponseStatus (\ s a -> s{_gncrsResponseStatus = a})++instance NFData GetNotificationChannelResponse where
+ gen/Network/AWS/FMS/GetPolicy.hs view
@@ -0,0 +1,143 @@+{-# 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.FMS.GetPolicy+-- Copyright   : (c) 2013-2018 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns information about the specified AWS Firewall Manager policy.+--+--+module Network.AWS.FMS.GetPolicy+    (+    -- * Creating a Request+      getPolicy+    , GetPolicy+    -- * Request Lenses+    , gpPolicyId++    -- * Destructuring the Response+    , getPolicyResponse+    , GetPolicyResponse+    -- * Response Lenses+    , gprsPolicyARN+    , gprsPolicy+    , gprsResponseStatus+    ) where++import Network.AWS.FMS.Types+import Network.AWS.FMS.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'getPolicy' smart constructor.+newtype GetPolicy = GetPolicy'+  { _gpPolicyId :: Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'GetPolicy' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'gpPolicyId' - The ID of the AWS Firewall Manager policy that you want the details for.+getPolicy+    :: Text -- ^ 'gpPolicyId'+    -> GetPolicy+getPolicy pPolicyId_ = GetPolicy' {_gpPolicyId = pPolicyId_}+++-- | The ID of the AWS Firewall Manager policy that you want the details for.+gpPolicyId :: Lens' GetPolicy Text+gpPolicyId = lens _gpPolicyId (\ s a -> s{_gpPolicyId = a})++instance AWSRequest GetPolicy where+        type Rs GetPolicy = GetPolicyResponse+        request = postJSON fms+        response+          = receiveJSON+              (\ s h x ->+                 GetPolicyResponse' <$>+                   (x .?> "PolicyArn") <*> (x .?> "Policy") <*>+                     (pure (fromEnum s)))++instance Hashable GetPolicy where++instance NFData GetPolicy where++instance ToHeaders GetPolicy where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("AWSFMS_20180101.GetPolicy" :: ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON GetPolicy where+        toJSON GetPolicy'{..}+          = object+              (catMaybes [Just ("PolicyId" .= _gpPolicyId)])++instance ToPath GetPolicy where+        toPath = const "/"++instance ToQuery GetPolicy where+        toQuery = const mempty++-- | /See:/ 'getPolicyResponse' smart constructor.+data GetPolicyResponse = GetPolicyResponse'+  { _gprsPolicyARN      :: !(Maybe Text)+  , _gprsPolicy         :: !(Maybe Policy)+  , _gprsResponseStatus :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'GetPolicyResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'gprsPolicyARN' - The Amazon Resource Name (ARN) of the specified policy.+--+-- * 'gprsPolicy' - Information about the specified AWS Firewall Manager policy.+--+-- * 'gprsResponseStatus' - -- | The response status code.+getPolicyResponse+    :: Int -- ^ 'gprsResponseStatus'+    -> GetPolicyResponse+getPolicyResponse pResponseStatus_ =+  GetPolicyResponse'+    { _gprsPolicyARN = Nothing+    , _gprsPolicy = Nothing+    , _gprsResponseStatus = pResponseStatus_+    }+++-- | The Amazon Resource Name (ARN) of the specified policy.+gprsPolicyARN :: Lens' GetPolicyResponse (Maybe Text)+gprsPolicyARN = lens _gprsPolicyARN (\ s a -> s{_gprsPolicyARN = a})++-- | Information about the specified AWS Firewall Manager policy.+gprsPolicy :: Lens' GetPolicyResponse (Maybe Policy)+gprsPolicy = lens _gprsPolicy (\ s a -> s{_gprsPolicy = a})++-- | -- | The response status code.+gprsResponseStatus :: Lens' GetPolicyResponse Int+gprsResponseStatus = lens _gprsResponseStatus (\ s a -> s{_gprsResponseStatus = a})++instance NFData GetPolicyResponse where
+ gen/Network/AWS/FMS/ListComplianceStatus.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.FMS.ListComplianceStatus+-- Copyright   : (c) 2013-2018 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns an array of @PolicyComplianceStatus@ objects in the response. Use @PolicyComplianceStatus@ to get a summary of which member accounts are protected by the specified policy.+--+--+module Network.AWS.FMS.ListComplianceStatus+    (+    -- * Creating a Request+      listComplianceStatus+    , ListComplianceStatus+    -- * Request Lenses+    , lcsNextToken+    , lcsMaxResults+    , lcsPolicyId++    -- * Destructuring the Response+    , listComplianceStatusResponse+    , ListComplianceStatusResponse+    -- * Response Lenses+    , lcsrsNextToken+    , lcsrsPolicyComplianceStatusList+    , lcsrsResponseStatus+    ) where++import Network.AWS.FMS.Types+import Network.AWS.FMS.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'listComplianceStatus' smart constructor.+data ListComplianceStatus = ListComplianceStatus'+  { _lcsNextToken  :: !(Maybe Text)+  , _lcsMaxResults :: !(Maybe Nat)+  , _lcsPolicyId   :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'ListComplianceStatus' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'lcsNextToken' - If you specify a value for @MaxResults@ and you have more @PolicyComplianceStatus@ objects than the number that you specify for @MaxResults@ , AWS Firewall Manager returns a @NextToken@ value in the response that allows you to list another group of @PolicyComplianceStatus@ objects. For the second and subsequent @ListComplianceStatus@ requests, specify the value of @NextToken@ from the previous response to get information about another batch of @PolicyComplianceStatus@ objects.+--+-- * 'lcsMaxResults' - Specifies the number of @PolicyComplianceStatus@ objects that you want AWS Firewall Manager to return for this request. If you have more @PolicyComplianceStatus@ objects than the number that you specify for @MaxResults@ , the response includes a @NextToken@ value that you can use to get another batch of @PolicyComplianceStatus@ objects.+--+-- * 'lcsPolicyId' - The ID of the AWS Firewall Manager policy that you want the details for.+listComplianceStatus+    :: Text -- ^ 'lcsPolicyId'+    -> ListComplianceStatus+listComplianceStatus pPolicyId_ =+  ListComplianceStatus'+    { _lcsNextToken = Nothing+    , _lcsMaxResults = Nothing+    , _lcsPolicyId = pPolicyId_+    }+++-- | If you specify a value for @MaxResults@ and you have more @PolicyComplianceStatus@ objects than the number that you specify for @MaxResults@ , AWS Firewall Manager returns a @NextToken@ value in the response that allows you to list another group of @PolicyComplianceStatus@ objects. For the second and subsequent @ListComplianceStatus@ requests, specify the value of @NextToken@ from the previous response to get information about another batch of @PolicyComplianceStatus@ objects.+lcsNextToken :: Lens' ListComplianceStatus (Maybe Text)+lcsNextToken = lens _lcsNextToken (\ s a -> s{_lcsNextToken = a})++-- | Specifies the number of @PolicyComplianceStatus@ objects that you want AWS Firewall Manager to return for this request. If you have more @PolicyComplianceStatus@ objects than the number that you specify for @MaxResults@ , the response includes a @NextToken@ value that you can use to get another batch of @PolicyComplianceStatus@ objects.+lcsMaxResults :: Lens' ListComplianceStatus (Maybe Natural)+lcsMaxResults = lens _lcsMaxResults (\ s a -> s{_lcsMaxResults = a}) . mapping _Nat++-- | The ID of the AWS Firewall Manager policy that you want the details for.+lcsPolicyId :: Lens' ListComplianceStatus Text+lcsPolicyId = lens _lcsPolicyId (\ s a -> s{_lcsPolicyId = a})++instance AWSRequest ListComplianceStatus where+        type Rs ListComplianceStatus =+             ListComplianceStatusResponse+        request = postJSON fms+        response+          = receiveJSON+              (\ s h x ->+                 ListComplianceStatusResponse' <$>+                   (x .?> "NextToken") <*>+                     (x .?> "PolicyComplianceStatusList" .!@ mempty)+                     <*> (pure (fromEnum s)))++instance Hashable ListComplianceStatus where++instance NFData ListComplianceStatus where++instance ToHeaders ListComplianceStatus where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("AWSFMS_20180101.ListComplianceStatus" ::+                       ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON ListComplianceStatus where+        toJSON ListComplianceStatus'{..}+          = object+              (catMaybes+                 [("NextToken" .=) <$> _lcsNextToken,+                  ("MaxResults" .=) <$> _lcsMaxResults,+                  Just ("PolicyId" .= _lcsPolicyId)])++instance ToPath ListComplianceStatus where+        toPath = const "/"++instance ToQuery ListComplianceStatus where+        toQuery = const mempty++-- | /See:/ 'listComplianceStatusResponse' smart constructor.+data ListComplianceStatusResponse = ListComplianceStatusResponse'+  { _lcsrsNextToken                  :: !(Maybe Text)+  , _lcsrsPolicyComplianceStatusList :: !(Maybe [PolicyComplianceStatus])+  , _lcsrsResponseStatus             :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'ListComplianceStatusResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'lcsrsNextToken' - If you have more @PolicyComplianceStatus@ objects than the number that you specified for @MaxResults@ in the request, the response includes a @NextToken@ value. To list more @PolicyComplianceStatus@ objects, submit another @ListComplianceStatus@ request, and specify the @NextToken@ value from the response in the @NextToken@ value in the next request.+--+-- * 'lcsrsPolicyComplianceStatusList' - An array of @PolicyComplianceStatus@ objects.+--+-- * 'lcsrsResponseStatus' - -- | The response status code.+listComplianceStatusResponse+    :: Int -- ^ 'lcsrsResponseStatus'+    -> ListComplianceStatusResponse+listComplianceStatusResponse pResponseStatus_ =+  ListComplianceStatusResponse'+    { _lcsrsNextToken = Nothing+    , _lcsrsPolicyComplianceStatusList = Nothing+    , _lcsrsResponseStatus = pResponseStatus_+    }+++-- | If you have more @PolicyComplianceStatus@ objects than the number that you specified for @MaxResults@ in the request, the response includes a @NextToken@ value. To list more @PolicyComplianceStatus@ objects, submit another @ListComplianceStatus@ request, and specify the @NextToken@ value from the response in the @NextToken@ value in the next request.+lcsrsNextToken :: Lens' ListComplianceStatusResponse (Maybe Text)+lcsrsNextToken = lens _lcsrsNextToken (\ s a -> s{_lcsrsNextToken = a})++-- | An array of @PolicyComplianceStatus@ objects.+lcsrsPolicyComplianceStatusList :: Lens' ListComplianceStatusResponse [PolicyComplianceStatus]+lcsrsPolicyComplianceStatusList = lens _lcsrsPolicyComplianceStatusList (\ s a -> s{_lcsrsPolicyComplianceStatusList = a}) . _Default . _Coerce++-- | -- | The response status code.+lcsrsResponseStatus :: Lens' ListComplianceStatusResponse Int+lcsrsResponseStatus = lens _lcsrsResponseStatus (\ s a -> s{_lcsrsResponseStatus = a})++instance NFData ListComplianceStatusResponse where
+ gen/Network/AWS/FMS/ListPolicies.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.FMS.ListPolicies+-- Copyright   : (c) 2013-2018 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns an array of @PolicySummary@ objects in the response.+--+--+module Network.AWS.FMS.ListPolicies+    (+    -- * Creating a Request+      listPolicies+    , ListPolicies+    -- * Request Lenses+    , lpNextToken+    , lpMaxResults++    -- * Destructuring the Response+    , listPoliciesResponse+    , ListPoliciesResponse+    -- * Response Lenses+    , lprsNextToken+    , lprsPolicyList+    , lprsResponseStatus+    ) where++import Network.AWS.FMS.Types+import Network.AWS.FMS.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'listPolicies' smart constructor.+data ListPolicies = ListPolicies'+  { _lpNextToken  :: !(Maybe Text)+  , _lpMaxResults :: !(Maybe Nat)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'ListPolicies' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'lpNextToken' - If you specify a value for @MaxResults@ and you have more @PolicySummary@ objects than the number that you specify for @MaxResults@ , AWS Firewall Manager returns a @NextToken@ value in the response that allows you to list another group of @PolicySummary@ objects. For the second and subsequent @ListPolicies@ requests, specify the value of @NextToken@ from the previous response to get information about another batch of @PolicySummary@ objects.+--+-- * 'lpMaxResults' - Specifies the number of @PolicySummary@ objects that you want AWS Firewall Manager to return for this request. If you have more @PolicySummary@ objects than the number that you specify for @MaxResults@ , the response includes a @NextToken@ value that you can use to get another batch of @PolicySummary@ objects.+listPolicies+    :: ListPolicies+listPolicies = ListPolicies' {_lpNextToken = Nothing, _lpMaxResults = Nothing}+++-- | If you specify a value for @MaxResults@ and you have more @PolicySummary@ objects than the number that you specify for @MaxResults@ , AWS Firewall Manager returns a @NextToken@ value in the response that allows you to list another group of @PolicySummary@ objects. For the second and subsequent @ListPolicies@ requests, specify the value of @NextToken@ from the previous response to get information about another batch of @PolicySummary@ objects.+lpNextToken :: Lens' ListPolicies (Maybe Text)+lpNextToken = lens _lpNextToken (\ s a -> s{_lpNextToken = a})++-- | Specifies the number of @PolicySummary@ objects that you want AWS Firewall Manager to return for this request. If you have more @PolicySummary@ objects than the number that you specify for @MaxResults@ , the response includes a @NextToken@ value that you can use to get another batch of @PolicySummary@ objects.+lpMaxResults :: Lens' ListPolicies (Maybe Natural)+lpMaxResults = lens _lpMaxResults (\ s a -> s{_lpMaxResults = a}) . mapping _Nat++instance AWSRequest ListPolicies where+        type Rs ListPolicies = ListPoliciesResponse+        request = postJSON fms+        response+          = receiveJSON+              (\ s h x ->+                 ListPoliciesResponse' <$>+                   (x .?> "NextToken") <*>+                     (x .?> "PolicyList" .!@ mempty)+                     <*> (pure (fromEnum s)))++instance Hashable ListPolicies where++instance NFData ListPolicies where++instance ToHeaders ListPolicies where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("AWSFMS_20180101.ListPolicies" :: ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON ListPolicies where+        toJSON ListPolicies'{..}+          = object+              (catMaybes+                 [("NextToken" .=) <$> _lpNextToken,+                  ("MaxResults" .=) <$> _lpMaxResults])++instance ToPath ListPolicies where+        toPath = const "/"++instance ToQuery ListPolicies where+        toQuery = const mempty++-- | /See:/ 'listPoliciesResponse' smart constructor.+data ListPoliciesResponse = ListPoliciesResponse'+  { _lprsNextToken      :: !(Maybe Text)+  , _lprsPolicyList     :: !(Maybe [PolicySummary])+  , _lprsResponseStatus :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'ListPoliciesResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'lprsNextToken' - If you have more @PolicySummary@ objects than the number that you specified for @MaxResults@ in the request, the response includes a @NextToken@ value. To list more @PolicySummary@ objects, submit another @ListPolicies@ request, and specify the @NextToken@ value from the response in the @NextToken@ value in the next request.+--+-- * 'lprsPolicyList' - An array of @PolicySummary@ objects.+--+-- * 'lprsResponseStatus' - -- | The response status code.+listPoliciesResponse+    :: Int -- ^ 'lprsResponseStatus'+    -> ListPoliciesResponse+listPoliciesResponse pResponseStatus_ =+  ListPoliciesResponse'+    { _lprsNextToken = Nothing+    , _lprsPolicyList = Nothing+    , _lprsResponseStatus = pResponseStatus_+    }+++-- | If you have more @PolicySummary@ objects than the number that you specified for @MaxResults@ in the request, the response includes a @NextToken@ value. To list more @PolicySummary@ objects, submit another @ListPolicies@ request, and specify the @NextToken@ value from the response in the @NextToken@ value in the next request.+lprsNextToken :: Lens' ListPoliciesResponse (Maybe Text)+lprsNextToken = lens _lprsNextToken (\ s a -> s{_lprsNextToken = a})++-- | An array of @PolicySummary@ objects.+lprsPolicyList :: Lens' ListPoliciesResponse [PolicySummary]+lprsPolicyList = lens _lprsPolicyList (\ s a -> s{_lprsPolicyList = a}) . _Default . _Coerce++-- | -- | The response status code.+lprsResponseStatus :: Lens' ListPoliciesResponse Int+lprsResponseStatus = lens _lprsResponseStatus (\ s a -> s{_lprsResponseStatus = a})++instance NFData ListPoliciesResponse where
+ gen/Network/AWS/FMS/PutNotificationChannel.hs view
@@ -0,0 +1,123 @@+{-# 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.FMS.PutNotificationChannel+-- Copyright   : (c) 2013-2018 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Designates the IAM role and Amazon Simple Notification Service (SNS) topic that AWS Firewall Manager uses to record SNS logs.+--+--+module Network.AWS.FMS.PutNotificationChannel+    (+    -- * Creating a Request+      putNotificationChannel+    , PutNotificationChannel+    -- * Request Lenses+    , pncSNSTopicARN+    , pncSNSRoleName++    -- * Destructuring the Response+    , putNotificationChannelResponse+    , PutNotificationChannelResponse+    ) where++import Network.AWS.FMS.Types+import Network.AWS.FMS.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'putNotificationChannel' smart constructor.+data PutNotificationChannel = PutNotificationChannel'+  { _pncSNSTopicARN :: !Text+  , _pncSNSRoleName :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'PutNotificationChannel' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'pncSNSTopicARN' - The Amazon Resource Name (ARN) of the SNS topic that collects notifications from AWS Firewall Manager.+--+-- * 'pncSNSRoleName' - The Amazon Resource Name (ARN) of the IAM role that allows Amazon SNS to record AWS Firewall Manager activity.+putNotificationChannel+    :: Text -- ^ 'pncSNSTopicARN'+    -> Text -- ^ 'pncSNSRoleName'+    -> PutNotificationChannel+putNotificationChannel pSNSTopicARN_ pSNSRoleName_ =+  PutNotificationChannel'+    {_pncSNSTopicARN = pSNSTopicARN_, _pncSNSRoleName = pSNSRoleName_}+++-- | The Amazon Resource Name (ARN) of the SNS topic that collects notifications from AWS Firewall Manager.+pncSNSTopicARN :: Lens' PutNotificationChannel Text+pncSNSTopicARN = lens _pncSNSTopicARN (\ s a -> s{_pncSNSTopicARN = a})++-- | The Amazon Resource Name (ARN) of the IAM role that allows Amazon SNS to record AWS Firewall Manager activity.+pncSNSRoleName :: Lens' PutNotificationChannel Text+pncSNSRoleName = lens _pncSNSRoleName (\ s a -> s{_pncSNSRoleName = a})++instance AWSRequest PutNotificationChannel where+        type Rs PutNotificationChannel =+             PutNotificationChannelResponse+        request = postJSON fms+        response+          = receiveNull PutNotificationChannelResponse'++instance Hashable PutNotificationChannel where++instance NFData PutNotificationChannel where++instance ToHeaders PutNotificationChannel where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("AWSFMS_20180101.PutNotificationChannel" ::+                       ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON PutNotificationChannel where+        toJSON PutNotificationChannel'{..}+          = object+              (catMaybes+                 [Just ("SnsTopicArn" .= _pncSNSTopicARN),+                  Just ("SnsRoleName" .= _pncSNSRoleName)])++instance ToPath PutNotificationChannel where+        toPath = const "/"++instance ToQuery PutNotificationChannel where+        toQuery = const mempty++-- | /See:/ 'putNotificationChannelResponse' smart constructor.+data PutNotificationChannelResponse =+  PutNotificationChannelResponse'+  deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'PutNotificationChannelResponse' with the minimum fields required to make a request.+--+putNotificationChannelResponse+    :: PutNotificationChannelResponse+putNotificationChannelResponse = PutNotificationChannelResponse'+++instance NFData PutNotificationChannelResponse where
+ gen/Network/AWS/FMS/PutPolicy.hs view
@@ -0,0 +1,142 @@+{-# 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.FMS.PutPolicy+-- Copyright   : (c) 2013-2018 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Creates an AWS Firewall Manager policy.+--+--+module Network.AWS.FMS.PutPolicy+    (+    -- * Creating a Request+      putPolicy+    , PutPolicy+    -- * Request Lenses+    , ppPolicy++    -- * Destructuring the Response+    , putPolicyResponse+    , PutPolicyResponse+    -- * Response Lenses+    , pprsPolicyARN+    , pprsPolicy+    , pprsResponseStatus+    ) where++import Network.AWS.FMS.Types+import Network.AWS.FMS.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'putPolicy' smart constructor.+newtype PutPolicy = PutPolicy'+  { _ppPolicy :: Policy+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'PutPolicy' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'ppPolicy' - The details of the AWS Firewall Manager policy to be created.+putPolicy+    :: Policy -- ^ 'ppPolicy'+    -> PutPolicy+putPolicy pPolicy_ = PutPolicy' {_ppPolicy = pPolicy_}+++-- | The details of the AWS Firewall Manager policy to be created.+ppPolicy :: Lens' PutPolicy Policy+ppPolicy = lens _ppPolicy (\ s a -> s{_ppPolicy = a})++instance AWSRequest PutPolicy where+        type Rs PutPolicy = PutPolicyResponse+        request = postJSON fms+        response+          = receiveJSON+              (\ s h x ->+                 PutPolicyResponse' <$>+                   (x .?> "PolicyArn") <*> (x .?> "Policy") <*>+                     (pure (fromEnum s)))++instance Hashable PutPolicy where++instance NFData PutPolicy where++instance ToHeaders PutPolicy where+        toHeaders+          = const+              (mconcat+                 ["X-Amz-Target" =#+                    ("AWSFMS_20180101.PutPolicy" :: ByteString),+                  "Content-Type" =#+                    ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON PutPolicy where+        toJSON PutPolicy'{..}+          = object (catMaybes [Just ("Policy" .= _ppPolicy)])++instance ToPath PutPolicy where+        toPath = const "/"++instance ToQuery PutPolicy where+        toQuery = const mempty++-- | /See:/ 'putPolicyResponse' smart constructor.+data PutPolicyResponse = PutPolicyResponse'+  { _pprsPolicyARN      :: !(Maybe Text)+  , _pprsPolicy         :: !(Maybe Policy)+  , _pprsResponseStatus :: !Int+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'PutPolicyResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'pprsPolicyARN' - The Amazon Resource Name (ARN) of the policy that was created.+--+-- * 'pprsPolicy' - The details of the AWS Firewall Manager policy that was created.+--+-- * 'pprsResponseStatus' - -- | The response status code.+putPolicyResponse+    :: Int -- ^ 'pprsResponseStatus'+    -> PutPolicyResponse+putPolicyResponse pResponseStatus_ =+  PutPolicyResponse'+    { _pprsPolicyARN = Nothing+    , _pprsPolicy = Nothing+    , _pprsResponseStatus = pResponseStatus_+    }+++-- | The Amazon Resource Name (ARN) of the policy that was created.+pprsPolicyARN :: Lens' PutPolicyResponse (Maybe Text)+pprsPolicyARN = lens _pprsPolicyARN (\ s a -> s{_pprsPolicyARN = a})++-- | The details of the AWS Firewall Manager policy that was created.+pprsPolicy :: Lens' PutPolicyResponse (Maybe Policy)+pprsPolicy = lens _pprsPolicy (\ s a -> s{_pprsPolicy = a})++-- | -- | The response status code.+pprsResponseStatus :: Lens' PutPolicyResponse Int+pprsResponseStatus = lens _pprsResponseStatus (\ s a -> s{_pprsResponseStatus = a})++instance NFData PutPolicyResponse where
+ gen/Network/AWS/FMS/Types.hs view
@@ -0,0 +1,181 @@+{-# LANGUAGE OverloadedStrings #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Network.AWS.FMS.Types+-- Copyright   : (c) 2013-2018 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+module Network.AWS.FMS.Types+    (+    -- * Service Configuration+      fms++    -- * Errors+    , _InternalErrorException+    , _InvalidInputException+    , _InvalidOperationException+    , _ResourceNotFoundException+    , _LimitExceededException++    -- * PolicyComplianceStatusType+    , PolicyComplianceStatusType (..)++    -- * SecurityServiceType+    , SecurityServiceType (..)++    -- * ViolationReason+    , ViolationReason (..)++    -- * ComplianceViolator+    , ComplianceViolator+    , complianceViolator+    , cvResourceId+    , cvResourceType+    , cvViolationReason++    -- * EvaluationResult+    , EvaluationResult+    , evaluationResult+    , erViolatorCount+    , erComplianceStatus+    , erEvaluationLimitExceeded++    -- * Policy+    , Policy+    , policy+    , pPolicyId+    , pResourceTags+    , pPolicyUpdateToken+    , pPolicyName+    , pSecurityServicePolicyData+    , pResourceType+    , pExcludeResourceTags+    , pRemediationEnabled++    -- * PolicyComplianceDetail+    , PolicyComplianceDetail+    , policyComplianceDetail+    , pcdExpiredAt+    , pcdPolicyId+    , pcdViolators+    , pcdEvaluationLimitExceeded+    , pcdPolicyOwner+    , pcdMemberAccount++    -- * PolicyComplianceStatus+    , PolicyComplianceStatus+    , policyComplianceStatus+    , pcsEvaluationResults+    , pcsLastUpdated+    , pcsPolicyName+    , pcsPolicyId+    , pcsPolicyOwner+    , pcsMemberAccount++    -- * PolicySummary+    , PolicySummary+    , policySummary+    , psPolicyName+    , psRemediationEnabled+    , psResourceType+    , psPolicyId+    , psPolicyARN+    , psSecurityServiceType++    -- * ResourceTag+    , ResourceTag+    , resourceTag+    , rtValue+    , rtKey++    -- * SecurityServicePolicyData+    , SecurityServicePolicyData+    , securityServicePolicyData+    , sspdManagedServiceData+    , sspdType+    ) where++import Network.AWS.FMS.Types.Product+import Network.AWS.FMS.Types.Sum+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Sign.V4++-- | API version @2018-01-01@ of the Amazon Firewall Management Service SDK configuration.+fms :: Service+fms =+  Service+    { _svcAbbrev = "FMS"+    , _svcSigner = v4+    , _svcPrefix = "fms"+    , _svcVersion = "2018-01-01"+    , _svcEndpoint = defaultEndpoint fms+    , _svcTimeout = Just 70+    , _svcCheck = statusSuccess+    , _svcError = parseJSONError "FMS"+    , _svcRetry = retry+    }+  where+    retry =+      Exponential+        { _retryBase = 5.0e-2+        , _retryGrowth = 2+        , _retryAttempts = 5+        , _retryCheck = check+        }+    check e+      | has (hasCode "ThrottledException" . hasStatus 400) e =+        Just "throttled_exception"+      | has (hasStatus 429) e = Just "too_many_requests"+      | has (hasCode "ThrottlingException" . hasStatus 400) e =+        Just "throttling_exception"+      | has (hasCode "Throttling" . hasStatus 400) e = Just "throttling"+      | has (hasStatus 504) e = Just "gateway_timeout"+      | has (hasCode "RequestThrottledException" . hasStatus 400) e =+        Just "request_throttled_exception"+      | has (hasStatus 502) e = Just "bad_gateway"+      | has (hasStatus 503) e = Just "service_unavailable"+      | has (hasStatus 500) e = Just "general_server_error"+      | has (hasStatus 509) e = Just "limit_exceeded"+      | otherwise = Nothing+++-- | The operation failed because of a system problem, even though the request was valid. Retry your request.+--+--+_InternalErrorException :: AsError a => Getting (First ServiceError) a ServiceError+_InternalErrorException = _MatchServiceError fms "InternalErrorException"+++-- | The parameters of the request were invalid.+--+--+_InvalidInputException :: AsError a => Getting (First ServiceError) a ServiceError+_InvalidInputException = _MatchServiceError fms "InvalidInputException"+++-- | The operation failed because there was nothing to do. For example, you might have submitted an @AssociateAdminAccount@ request, but the account ID that you submitted was already set as the AWS Firewall Manager administrator.+--+--+_InvalidOperationException :: AsError a => Getting (First ServiceError) a ServiceError+_InvalidOperationException = _MatchServiceError fms "InvalidOperationException"+++-- | The specified resource was not found.+--+--+_ResourceNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError+_ResourceNotFoundException = _MatchServiceError fms "ResourceNotFoundException"+++-- | The operation exceeds a resource limit, for example, the maximum number of @policy@ objects that you can create for an AWS account. For more information, see <http://docs.aws.amazon.com/waf/latest/developerguide/fms-limits.html Firewall Manager Limits> in the /AWS WAF Developer Guide/ .+--+--+_LimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError+_LimitExceededException = _MatchServiceError fms "LimitExceededException"+
+ gen/Network/AWS/FMS/Types/Product.hs view
@@ -0,0 +1,603 @@+{-# 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.FMS.Types.Product+-- Copyright   : (c) 2013-2018 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+module Network.AWS.FMS.Types.Product where++import Network.AWS.FMS.Types.Sum+import Network.AWS.Lens+import Network.AWS.Prelude++-- | Details of the resource that is not protected by the policy.+--+--+--+-- /See:/ 'complianceViolator' smart constructor.+data ComplianceViolator = ComplianceViolator'+  { _cvResourceId      :: !(Maybe Text)+  , _cvResourceType    :: !(Maybe Text)+  , _cvViolationReason :: !(Maybe ViolationReason)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'ComplianceViolator' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'cvResourceId' - The resource ID.+--+-- * 'cvResourceType' - The resource type. This is in the format shown in <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html AWS Resource Types Reference> . Valid values are @AWS::ElasticLoadBalancingV2::LoadBalancer@ or @AWS::CloudFront::Distribution@ .+--+-- * 'cvViolationReason' - The reason that the resource is not protected by the policy.+complianceViolator+    :: ComplianceViolator+complianceViolator =+  ComplianceViolator'+    { _cvResourceId = Nothing+    , _cvResourceType = Nothing+    , _cvViolationReason = Nothing+    }+++-- | The resource ID.+cvResourceId :: Lens' ComplianceViolator (Maybe Text)+cvResourceId = lens _cvResourceId (\ s a -> s{_cvResourceId = a})++-- | The resource type. This is in the format shown in <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html AWS Resource Types Reference> . Valid values are @AWS::ElasticLoadBalancingV2::LoadBalancer@ or @AWS::CloudFront::Distribution@ .+cvResourceType :: Lens' ComplianceViolator (Maybe Text)+cvResourceType = lens _cvResourceType (\ s a -> s{_cvResourceType = a})++-- | The reason that the resource is not protected by the policy.+cvViolationReason :: Lens' ComplianceViolator (Maybe ViolationReason)+cvViolationReason = lens _cvViolationReason (\ s a -> s{_cvViolationReason = a})++instance FromJSON ComplianceViolator where+        parseJSON+          = withObject "ComplianceViolator"+              (\ x ->+                 ComplianceViolator' <$>+                   (x .:? "ResourceId") <*> (x .:? "ResourceType") <*>+                     (x .:? "ViolationReason"))++instance Hashable ComplianceViolator where++instance NFData ComplianceViolator where++-- | Describes the compliance status for the account. An account is considered non-compliant if it includes resources that are not protected by the specified policy.+--+--+--+-- /See:/ 'evaluationResult' smart constructor.+data EvaluationResult = EvaluationResult'+  { _erViolatorCount           :: !(Maybe Nat)+  , _erComplianceStatus        :: !(Maybe PolicyComplianceStatusType)+  , _erEvaluationLimitExceeded :: !(Maybe Bool)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'EvaluationResult' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'erViolatorCount' - Number of resources that are non-compliant with the specified policy. A resource is considered non-compliant if it is not associated with the specified policy.+--+-- * 'erComplianceStatus' - Describes an AWS account's compliance with the AWS Firewall Manager policy.+--+-- * 'erEvaluationLimitExceeded' - Indicates that over 100 resources are non-compliant with the AWS Firewall Manager policy.+evaluationResult+    :: EvaluationResult+evaluationResult =+  EvaluationResult'+    { _erViolatorCount = Nothing+    , _erComplianceStatus = Nothing+    , _erEvaluationLimitExceeded = Nothing+    }+++-- | Number of resources that are non-compliant with the specified policy. A resource is considered non-compliant if it is not associated with the specified policy.+erViolatorCount :: Lens' EvaluationResult (Maybe Natural)+erViolatorCount = lens _erViolatorCount (\ s a -> s{_erViolatorCount = a}) . mapping _Nat++-- | Describes an AWS account's compliance with the AWS Firewall Manager policy.+erComplianceStatus :: Lens' EvaluationResult (Maybe PolicyComplianceStatusType)+erComplianceStatus = lens _erComplianceStatus (\ s a -> s{_erComplianceStatus = a})++-- | Indicates that over 100 resources are non-compliant with the AWS Firewall Manager policy.+erEvaluationLimitExceeded :: Lens' EvaluationResult (Maybe Bool)+erEvaluationLimitExceeded = lens _erEvaluationLimitExceeded (\ s a -> s{_erEvaluationLimitExceeded = a})++instance FromJSON EvaluationResult where+        parseJSON+          = withObject "EvaluationResult"+              (\ x ->+                 EvaluationResult' <$>+                   (x .:? "ViolatorCount") <*>+                     (x .:? "ComplianceStatus")+                     <*> (x .:? "EvaluationLimitExceeded"))++instance Hashable EvaluationResult where++instance NFData EvaluationResult where++-- | An AWS Firewall Manager policy.+--+--+--+-- /See:/ 'policy' smart constructor.+data Policy = Policy'+  { _pPolicyId                  :: !(Maybe Text)+  , _pResourceTags              :: !(Maybe [ResourceTag])+  , _pPolicyUpdateToken         :: !(Maybe Text)+  , _pPolicyName                :: !Text+  , _pSecurityServicePolicyData :: !SecurityServicePolicyData+  , _pResourceType              :: !Text+  , _pExcludeResourceTags       :: !Bool+  , _pRemediationEnabled        :: !Bool+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'Policy' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'pPolicyId' - The ID of the AWS Firewall Manager policy.+--+-- * 'pResourceTags' - An array of @ResourceTag@ objects.+--+-- * 'pPolicyUpdateToken' - A unique identifier for each update to the policy. When issuing a @PutPolicy@ request, the @PolicyUpdateToken@ in the request must match the @PolicyUpdateToken@ of the current policy version. To get the @PolicyUpdateToken@ of the current policy version, use a @GetPolicy@ request.+--+-- * 'pPolicyName' - The friendly name of the AWS Firewall Manager policy.+--+-- * 'pSecurityServicePolicyData' - Details about the security service that is being used to protect the resources.+--+-- * 'pResourceType' - The type of resource to protect with the policy, either an Application Load Balancer or a CloudFront distribution. This is in the format shown in <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html AWS Resource Types Reference> . Valid values are @AWS::ElasticLoadBalancingV2::LoadBalancer@ or @AWS::CloudFront::Distribution@ .+--+-- * 'pExcludeResourceTags' - If set to @True@ , resources with the tags that are specified in the @ResourceTag@ array are not protected by the policy. If set to @False@ , and the @ResourceTag@ array is not null, only resources with the specified tags are associated with the policy.+--+-- * 'pRemediationEnabled' - Indicates if the policy should be automatically applied to new resources.+policy+    :: Text -- ^ 'pPolicyName'+    -> SecurityServicePolicyData -- ^ 'pSecurityServicePolicyData'+    -> Text -- ^ 'pResourceType'+    -> Bool -- ^ 'pExcludeResourceTags'+    -> Bool -- ^ 'pRemediationEnabled'+    -> Policy+policy pPolicyName_ pSecurityServicePolicyData_ pResourceType_ pExcludeResourceTags_ pRemediationEnabled_ =+  Policy'+    { _pPolicyId = Nothing+    , _pResourceTags = Nothing+    , _pPolicyUpdateToken = Nothing+    , _pPolicyName = pPolicyName_+    , _pSecurityServicePolicyData = pSecurityServicePolicyData_+    , _pResourceType = pResourceType_+    , _pExcludeResourceTags = pExcludeResourceTags_+    , _pRemediationEnabled = pRemediationEnabled_+    }+++-- | The ID of the AWS Firewall Manager policy.+pPolicyId :: Lens' Policy (Maybe Text)+pPolicyId = lens _pPolicyId (\ s a -> s{_pPolicyId = a})++-- | An array of @ResourceTag@ objects.+pResourceTags :: Lens' Policy [ResourceTag]+pResourceTags = lens _pResourceTags (\ s a -> s{_pResourceTags = a}) . _Default . _Coerce++-- | A unique identifier for each update to the policy. When issuing a @PutPolicy@ request, the @PolicyUpdateToken@ in the request must match the @PolicyUpdateToken@ of the current policy version. To get the @PolicyUpdateToken@ of the current policy version, use a @GetPolicy@ request.+pPolicyUpdateToken :: Lens' Policy (Maybe Text)+pPolicyUpdateToken = lens _pPolicyUpdateToken (\ s a -> s{_pPolicyUpdateToken = a})++-- | The friendly name of the AWS Firewall Manager policy.+pPolicyName :: Lens' Policy Text+pPolicyName = lens _pPolicyName (\ s a -> s{_pPolicyName = a})++-- | Details about the security service that is being used to protect the resources.+pSecurityServicePolicyData :: Lens' Policy SecurityServicePolicyData+pSecurityServicePolicyData = lens _pSecurityServicePolicyData (\ s a -> s{_pSecurityServicePolicyData = a})++-- | The type of resource to protect with the policy, either an Application Load Balancer or a CloudFront distribution. This is in the format shown in <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html AWS Resource Types Reference> . Valid values are @AWS::ElasticLoadBalancingV2::LoadBalancer@ or @AWS::CloudFront::Distribution@ .+pResourceType :: Lens' Policy Text+pResourceType = lens _pResourceType (\ s a -> s{_pResourceType = a})++-- | If set to @True@ , resources with the tags that are specified in the @ResourceTag@ array are not protected by the policy. If set to @False@ , and the @ResourceTag@ array is not null, only resources with the specified tags are associated with the policy.+pExcludeResourceTags :: Lens' Policy Bool+pExcludeResourceTags = lens _pExcludeResourceTags (\ s a -> s{_pExcludeResourceTags = a})++-- | Indicates if the policy should be automatically applied to new resources.+pRemediationEnabled :: Lens' Policy Bool+pRemediationEnabled = lens _pRemediationEnabled (\ s a -> s{_pRemediationEnabled = a})++instance FromJSON Policy where+        parseJSON+          = withObject "Policy"+              (\ x ->+                 Policy' <$>+                   (x .:? "PolicyId") <*>+                     (x .:? "ResourceTags" .!= mempty)+                     <*> (x .:? "PolicyUpdateToken")+                     <*> (x .: "PolicyName")+                     <*> (x .: "SecurityServicePolicyData")+                     <*> (x .: "ResourceType")+                     <*> (x .: "ExcludeResourceTags")+                     <*> (x .: "RemediationEnabled"))++instance Hashable Policy where++instance NFData Policy where++instance ToJSON Policy where+        toJSON Policy'{..}+          = object+              (catMaybes+                 [("PolicyId" .=) <$> _pPolicyId,+                  ("ResourceTags" .=) <$> _pResourceTags,+                  ("PolicyUpdateToken" .=) <$> _pPolicyUpdateToken,+                  Just ("PolicyName" .= _pPolicyName),+                  Just+                    ("SecurityServicePolicyData" .=+                       _pSecurityServicePolicyData),+                  Just ("ResourceType" .= _pResourceType),+                  Just+                    ("ExcludeResourceTags" .= _pExcludeResourceTags),+                  Just ("RemediationEnabled" .= _pRemediationEnabled)])++-- | Describes the non-compliant resources in a member account for a specific AWS Firewall Manager policy. A maximum of 100 entries are displayed. If more than 100 resources are non-compliant, @EvaluationLimitExceeded@ is set to @True@ .+--+--+--+-- /See:/ 'policyComplianceDetail' smart constructor.+data PolicyComplianceDetail = PolicyComplianceDetail'+  { _pcdExpiredAt               :: !(Maybe POSIX)+  , _pcdPolicyId                :: !(Maybe Text)+  , _pcdViolators               :: !(Maybe [ComplianceViolator])+  , _pcdEvaluationLimitExceeded :: !(Maybe Bool)+  , _pcdPolicyOwner             :: !(Maybe Text)+  , _pcdMemberAccount           :: !(Maybe Text)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'PolicyComplianceDetail' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'pcdExpiredAt' - A time stamp that indicates when the returned information should be considered out-of-date.+--+-- * 'pcdPolicyId' - The ID of the AWS Firewall Manager policy.+--+-- * 'pcdViolators' - An array of resources that are not protected by the policy.+--+-- * 'pcdEvaluationLimitExceeded' - Indicates if over 100 resources are non-compliant with the AWS Firewall Manager policy.+--+-- * 'pcdPolicyOwner' - The AWS account that created the AWS Firewall Manager policy.+--+-- * 'pcdMemberAccount' - The AWS account ID.+policyComplianceDetail+    :: PolicyComplianceDetail+policyComplianceDetail =+  PolicyComplianceDetail'+    { _pcdExpiredAt = Nothing+    , _pcdPolicyId = Nothing+    , _pcdViolators = Nothing+    , _pcdEvaluationLimitExceeded = Nothing+    , _pcdPolicyOwner = Nothing+    , _pcdMemberAccount = Nothing+    }+++-- | A time stamp that indicates when the returned information should be considered out-of-date.+pcdExpiredAt :: Lens' PolicyComplianceDetail (Maybe UTCTime)+pcdExpiredAt = lens _pcdExpiredAt (\ s a -> s{_pcdExpiredAt = a}) . mapping _Time++-- | The ID of the AWS Firewall Manager policy.+pcdPolicyId :: Lens' PolicyComplianceDetail (Maybe Text)+pcdPolicyId = lens _pcdPolicyId (\ s a -> s{_pcdPolicyId = a})++-- | An array of resources that are not protected by the policy.+pcdViolators :: Lens' PolicyComplianceDetail [ComplianceViolator]+pcdViolators = lens _pcdViolators (\ s a -> s{_pcdViolators = a}) . _Default . _Coerce++-- | Indicates if over 100 resources are non-compliant with the AWS Firewall Manager policy.+pcdEvaluationLimitExceeded :: Lens' PolicyComplianceDetail (Maybe Bool)+pcdEvaluationLimitExceeded = lens _pcdEvaluationLimitExceeded (\ s a -> s{_pcdEvaluationLimitExceeded = a})++-- | The AWS account that created the AWS Firewall Manager policy.+pcdPolicyOwner :: Lens' PolicyComplianceDetail (Maybe Text)+pcdPolicyOwner = lens _pcdPolicyOwner (\ s a -> s{_pcdPolicyOwner = a})++-- | The AWS account ID.+pcdMemberAccount :: Lens' PolicyComplianceDetail (Maybe Text)+pcdMemberAccount = lens _pcdMemberAccount (\ s a -> s{_pcdMemberAccount = a})++instance FromJSON PolicyComplianceDetail where+        parseJSON+          = withObject "PolicyComplianceDetail"+              (\ x ->+                 PolicyComplianceDetail' <$>+                   (x .:? "ExpiredAt") <*> (x .:? "PolicyId") <*>+                     (x .:? "Violators" .!= mempty)+                     <*> (x .:? "EvaluationLimitExceeded")+                     <*> (x .:? "PolicyOwner")+                     <*> (x .:? "MemberAccount"))++instance Hashable PolicyComplianceDetail where++instance NFData PolicyComplianceDetail where++-- | Indicates whether the account is compliant with the specified policy. An account is considered non-compliant if it includes resources that are not protected by the policy.+--+--+--+-- /See:/ 'policyComplianceStatus' smart constructor.+data PolicyComplianceStatus = PolicyComplianceStatus'+  { _pcsEvaluationResults :: !(Maybe [EvaluationResult])+  , _pcsLastUpdated       :: !(Maybe POSIX)+  , _pcsPolicyName        :: !(Maybe Text)+  , _pcsPolicyId          :: !(Maybe Text)+  , _pcsPolicyOwner       :: !(Maybe Text)+  , _pcsMemberAccount     :: !(Maybe Text)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'PolicyComplianceStatus' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'pcsEvaluationResults' - An array of @EvaluationResult@ objects.+--+-- * 'pcsLastUpdated' - Time stamp of the last update to the @EvaluationResult@ objects.+--+-- * 'pcsPolicyName' - The friendly name of the AWS Firewall Manager policy.+--+-- * 'pcsPolicyId' - The ID of the AWS Firewall Manager policy.+--+-- * 'pcsPolicyOwner' - The AWS account that created the AWS Firewall Manager policy.+--+-- * 'pcsMemberAccount' - The member account ID.+policyComplianceStatus+    :: PolicyComplianceStatus+policyComplianceStatus =+  PolicyComplianceStatus'+    { _pcsEvaluationResults = Nothing+    , _pcsLastUpdated = Nothing+    , _pcsPolicyName = Nothing+    , _pcsPolicyId = Nothing+    , _pcsPolicyOwner = Nothing+    , _pcsMemberAccount = Nothing+    }+++-- | An array of @EvaluationResult@ objects.+pcsEvaluationResults :: Lens' PolicyComplianceStatus [EvaluationResult]+pcsEvaluationResults = lens _pcsEvaluationResults (\ s a -> s{_pcsEvaluationResults = a}) . _Default . _Coerce++-- | Time stamp of the last update to the @EvaluationResult@ objects.+pcsLastUpdated :: Lens' PolicyComplianceStatus (Maybe UTCTime)+pcsLastUpdated = lens _pcsLastUpdated (\ s a -> s{_pcsLastUpdated = a}) . mapping _Time++-- | The friendly name of the AWS Firewall Manager policy.+pcsPolicyName :: Lens' PolicyComplianceStatus (Maybe Text)+pcsPolicyName = lens _pcsPolicyName (\ s a -> s{_pcsPolicyName = a})++-- | The ID of the AWS Firewall Manager policy.+pcsPolicyId :: Lens' PolicyComplianceStatus (Maybe Text)+pcsPolicyId = lens _pcsPolicyId (\ s a -> s{_pcsPolicyId = a})++-- | The AWS account that created the AWS Firewall Manager policy.+pcsPolicyOwner :: Lens' PolicyComplianceStatus (Maybe Text)+pcsPolicyOwner = lens _pcsPolicyOwner (\ s a -> s{_pcsPolicyOwner = a})++-- | The member account ID.+pcsMemberAccount :: Lens' PolicyComplianceStatus (Maybe Text)+pcsMemberAccount = lens _pcsMemberAccount (\ s a -> s{_pcsMemberAccount = a})++instance FromJSON PolicyComplianceStatus where+        parseJSON+          = withObject "PolicyComplianceStatus"+              (\ x ->+                 PolicyComplianceStatus' <$>+                   (x .:? "EvaluationResults" .!= mempty) <*>+                     (x .:? "LastUpdated")+                     <*> (x .:? "PolicyName")+                     <*> (x .:? "PolicyId")+                     <*> (x .:? "PolicyOwner")+                     <*> (x .:? "MemberAccount"))++instance Hashable PolicyComplianceStatus where++instance NFData PolicyComplianceStatus where++-- | Details of the AWS Firewall Manager policy.+--+--+--+-- /See:/ 'policySummary' smart constructor.+data PolicySummary = PolicySummary'+  { _psPolicyName          :: !(Maybe Text)+  , _psRemediationEnabled  :: !(Maybe Bool)+  , _psResourceType        :: !(Maybe Text)+  , _psPolicyId            :: !(Maybe Text)+  , _psPolicyARN           :: !(Maybe Text)+  , _psSecurityServiceType :: !(Maybe SecurityServiceType)+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'PolicySummary' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'psPolicyName' - The friendly name of the specified policy.+--+-- * 'psRemediationEnabled' - Indicates if the policy should be automatically applied to new resources.+--+-- * 'psResourceType' - The type of resource to protect with the policy, either an Application Load Balancer or a CloudFront distribution. This is in the format shown in <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html AWS Resource Types Reference> . Valid values are @AWS::ElasticLoadBalancingV2::LoadBalancer@ or @AWS::CloudFront::Distribution@ .+--+-- * 'psPolicyId' - The ID of the specified policy.+--+-- * 'psPolicyARN' - The Amazon Resource Name (ARN) of the specified policy.+--+-- * 'psSecurityServiceType' - The service that the policy is using to protect the resources. This value is @WAF@ .+policySummary+    :: PolicySummary+policySummary =+  PolicySummary'+    { _psPolicyName = Nothing+    , _psRemediationEnabled = Nothing+    , _psResourceType = Nothing+    , _psPolicyId = Nothing+    , _psPolicyARN = Nothing+    , _psSecurityServiceType = Nothing+    }+++-- | The friendly name of the specified policy.+psPolicyName :: Lens' PolicySummary (Maybe Text)+psPolicyName = lens _psPolicyName (\ s a -> s{_psPolicyName = a})++-- | Indicates if the policy should be automatically applied to new resources.+psRemediationEnabled :: Lens' PolicySummary (Maybe Bool)+psRemediationEnabled = lens _psRemediationEnabled (\ s a -> s{_psRemediationEnabled = a})++-- | The type of resource to protect with the policy, either an Application Load Balancer or a CloudFront distribution. This is in the format shown in <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html AWS Resource Types Reference> . Valid values are @AWS::ElasticLoadBalancingV2::LoadBalancer@ or @AWS::CloudFront::Distribution@ .+psResourceType :: Lens' PolicySummary (Maybe Text)+psResourceType = lens _psResourceType (\ s a -> s{_psResourceType = a})++-- | The ID of the specified policy.+psPolicyId :: Lens' PolicySummary (Maybe Text)+psPolicyId = lens _psPolicyId (\ s a -> s{_psPolicyId = a})++-- | The Amazon Resource Name (ARN) of the specified policy.+psPolicyARN :: Lens' PolicySummary (Maybe Text)+psPolicyARN = lens _psPolicyARN (\ s a -> s{_psPolicyARN = a})++-- | The service that the policy is using to protect the resources. This value is @WAF@ .+psSecurityServiceType :: Lens' PolicySummary (Maybe SecurityServiceType)+psSecurityServiceType = lens _psSecurityServiceType (\ s a -> s{_psSecurityServiceType = a})++instance FromJSON PolicySummary where+        parseJSON+          = withObject "PolicySummary"+              (\ x ->+                 PolicySummary' <$>+                   (x .:? "PolicyName") <*> (x .:? "RemediationEnabled")+                     <*> (x .:? "ResourceType")+                     <*> (x .:? "PolicyId")+                     <*> (x .:? "PolicyArn")+                     <*> (x .:? "SecurityServiceType"))++instance Hashable PolicySummary where++instance NFData PolicySummary where++-- | The resource tags that AWS Firewall Manager uses to determine if a particular resource should be included or excluded from protection by the AWS Firewall Manager policy. Tags enable you to categorize your AWS resources in different ways, for example, by purpose, owner, or environment. Each tag consists of a key and an optional value, both of which you define. Tags are combined with an "OR." That is, if you add more than one tag, if any of the tags matches, the resource is considered a match for the include or exclude. <https://docs.aws.amazon.com/awsconsolehelpdocs/latest/gsg/tag-editor.html Working with Tag Editor> .+--+--+--+-- /See:/ 'resourceTag' smart constructor.+data ResourceTag = ResourceTag'+  { _rtValue :: !(Maybe Text)+  , _rtKey   :: !Text+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'ResourceTag' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'rtValue' - The resource tag value.+--+-- * 'rtKey' - The resource tag key.+resourceTag+    :: Text -- ^ 'rtKey'+    -> ResourceTag+resourceTag pKey_ = ResourceTag' {_rtValue = Nothing, _rtKey = pKey_}+++-- | The resource tag value.+rtValue :: Lens' ResourceTag (Maybe Text)+rtValue = lens _rtValue (\ s a -> s{_rtValue = a})++-- | The resource tag key.+rtKey :: Lens' ResourceTag Text+rtKey = lens _rtKey (\ s a -> s{_rtKey = a})++instance FromJSON ResourceTag where+        parseJSON+          = withObject "ResourceTag"+              (\ x ->+                 ResourceTag' <$> (x .:? "Value") <*> (x .: "Key"))++instance Hashable ResourceTag where++instance NFData ResourceTag where++instance ToJSON ResourceTag where+        toJSON ResourceTag'{..}+          = object+              (catMaybes+                 [("Value" .=) <$> _rtValue, Just ("Key" .= _rtKey)])++-- | Details about the security service that is being used to protect the resources.+--+--+--+-- /See:/ 'securityServicePolicyData' smart constructor.+data SecurityServicePolicyData = SecurityServicePolicyData'+  { _sspdManagedServiceData :: !(Maybe Text)+  , _sspdType               :: !SecurityServiceType+  } deriving (Eq, Read, Show, Data, Typeable, Generic)+++-- | Creates a value of 'SecurityServicePolicyData' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'sspdManagedServiceData' - Details about the service. This contains @WAF@ data in JSON format, as shown in the following example: @ManagedServiceData": "{\"type\": \"WAF\", \"ruleGroups\": [{\"id\": \"12345678-1bcd-9012-efga-0987654321ab\", \"overrideAction\" : {\"type\": \"COUNT\"}}], \"defaultAction\": {\"type\": \"BLOCK\"}}@+--+-- * 'sspdType' - The service that the policy is using to protect the resources. This value is @WAF@ .+securityServicePolicyData+    :: SecurityServiceType -- ^ 'sspdType'+    -> SecurityServicePolicyData+securityServicePolicyData pType_ =+  SecurityServicePolicyData'+    {_sspdManagedServiceData = Nothing, _sspdType = pType_}+++-- | Details about the service. This contains @WAF@ data in JSON format, as shown in the following example: @ManagedServiceData": "{\"type\": \"WAF\", \"ruleGroups\": [{\"id\": \"12345678-1bcd-9012-efga-0987654321ab\", \"overrideAction\" : {\"type\": \"COUNT\"}}], \"defaultAction\": {\"type\": \"BLOCK\"}}@+sspdManagedServiceData :: Lens' SecurityServicePolicyData (Maybe Text)+sspdManagedServiceData = lens _sspdManagedServiceData (\ s a -> s{_sspdManagedServiceData = a})++-- | The service that the policy is using to protect the resources. This value is @WAF@ .+sspdType :: Lens' SecurityServicePolicyData SecurityServiceType+sspdType = lens _sspdType (\ s a -> s{_sspdType = a})++instance FromJSON SecurityServicePolicyData where+        parseJSON+          = withObject "SecurityServicePolicyData"+              (\ x ->+                 SecurityServicePolicyData' <$>+                   (x .:? "ManagedServiceData") <*> (x .: "Type"))++instance Hashable SecurityServicePolicyData where++instance NFData SecurityServicePolicyData where++instance ToJSON SecurityServicePolicyData where+        toJSON SecurityServicePolicyData'{..}+          = object+              (catMaybes+                 [("ManagedServiceData" .=) <$>+                    _sspdManagedServiceData,+                  Just ("Type" .= _sspdType)])
+ gen/Network/AWS/FMS/Types/Sum.hs view
@@ -0,0 +1,104 @@+{-# 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.FMS.Types.Sum+-- Copyright   : (c) 2013-2018 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+module Network.AWS.FMS.Types.Sum where++import Network.AWS.Prelude++data PolicyComplianceStatusType+  = Compliant+  | NonCompliant+  deriving (Eq, Ord, Read, Show, Enum, Bounded, Data, Typeable, Generic)+++instance FromText PolicyComplianceStatusType where+    parser = takeLowerText >>= \case+        "compliant" -> pure Compliant+        "non_compliant" -> pure NonCompliant+        e -> fromTextError $ "Failure parsing PolicyComplianceStatusType from value: '" <> e+           <> "'. Accepted values: compliant, non_compliant"++instance ToText PolicyComplianceStatusType where+    toText = \case+        Compliant -> "COMPLIANT"+        NonCompliant -> "NON_COMPLIANT"++instance Hashable     PolicyComplianceStatusType+instance NFData       PolicyComplianceStatusType+instance ToByteString PolicyComplianceStatusType+instance ToQuery      PolicyComplianceStatusType+instance ToHeader     PolicyComplianceStatusType++instance FromJSON PolicyComplianceStatusType where+    parseJSON = parseJSONText "PolicyComplianceStatusType"++data SecurityServiceType =+  Waf+  deriving (Eq, Ord, Read, Show, Enum, Bounded, Data, Typeable, Generic)+++instance FromText SecurityServiceType where+    parser = takeLowerText >>= \case+        "waf" -> pure Waf+        e -> fromTextError $ "Failure parsing SecurityServiceType from value: '" <> e+           <> "'. Accepted values: waf"++instance ToText SecurityServiceType where+    toText = \case+        Waf -> "WAF"++instance Hashable     SecurityServiceType+instance NFData       SecurityServiceType+instance ToByteString SecurityServiceType+instance ToQuery      SecurityServiceType+instance ToHeader     SecurityServiceType++instance ToJSON SecurityServiceType where+    toJSON = toJSONText++instance FromJSON SecurityServiceType where+    parseJSON = parseJSONText "SecurityServiceType"++data ViolationReason+  = ResourceIncorrectWebACL+  | ResourceMissingWebACL+  | WebACLMissingRuleGroup+  deriving (Eq, Ord, Read, Show, Enum, Bounded, Data, Typeable, Generic)+++instance FromText ViolationReason where+    parser = takeLowerText >>= \case+        "resource_incorrect_web_acl" -> pure ResourceIncorrectWebACL+        "resource_missing_web_acl" -> pure ResourceMissingWebACL+        "web_acl_missing_rule_group" -> pure WebACLMissingRuleGroup+        e -> fromTextError $ "Failure parsing ViolationReason from value: '" <> e+           <> "'. Accepted values: resource_incorrect_web_acl, resource_missing_web_acl, web_acl_missing_rule_group"++instance ToText ViolationReason where+    toText = \case+        ResourceIncorrectWebACL -> "RESOURCE_INCORRECT_WEB_ACL"+        ResourceMissingWebACL -> "RESOURCE_MISSING_WEB_ACL"+        WebACLMissingRuleGroup -> "WEB_ACL_MISSING_RULE_GROUP"++instance Hashable     ViolationReason+instance NFData       ViolationReason+instance ToByteString ViolationReason+instance ToQuery      ViolationReason+instance ToHeader     ViolationReason++instance FromJSON ViolationReason where+    parseJSON = parseJSONText "ViolationReason"
+ gen/Network/AWS/FMS/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.FMS.Waiters+-- Copyright   : (c) 2013-2018 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+module Network.AWS.FMS.Waiters where++import Network.AWS.FMS.Types+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Waiter
+ src/.gitkeep view
+ test/Main.hs view
@@ -0,0 +1,21 @@+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- |+-- Module      : Main+-- Copyright   : (c) 2013-2018 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+module Main (main) where++import Test.Tasty+import Test.AWS.FMS+import Test.AWS.FMS.Internal++main :: IO ()+main = defaultMain $ testGroup "FMS"+    [ testGroup "tests"    tests+    , testGroup "fixtures" fixtures+    ]
+ test/Test/AWS/FMS.hs view
@@ -0,0 +1,20 @@+-- |+-- Module      : Test.AWS.FMS+-- Copyright   : (c) 2013-2018 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+module Test.AWS.FMS+    ( tests+    , fixtures+    ) where++import Test.Tasty (TestTree)++tests :: [TestTree]+tests = []++fixtures :: [TestTree]+fixtures = []
+ test/Test/AWS/FMS/Internal.hs view
@@ -0,0 +1,9 @@+-- |+-- Module      : Test.AWS.FMS.Internal+-- Copyright   : (c) 2013-2018 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+module Test.AWS.FMS.Internal where
+ test/Test/AWS/Gen/FMS.hs view
@@ -0,0 +1,255 @@+{-# 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.FMS+-- Copyright   : (c) 2013-2018 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+module Test.AWS.Gen.FMS where++import Data.Proxy+import Network.AWS.FMS+import Test.AWS.Fixture+import Test.AWS.FMS.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"+--         [ requestListPolicies $+--             listPolicies+--+--         , requestGetComplianceDetail $+--             getComplianceDetail+--+--         , requestGetNotificationChannel $+--             getNotificationChannel+--+--         , requestGetAdminAccount $+--             getAdminAccount+--+--         , requestListComplianceStatus $+--             listComplianceStatus+--+--         , requestPutPolicy $+--             putPolicy+--+--         , requestDeletePolicy $+--             deletePolicy+--+--         , requestDisassociateAdminAccount $+--             disassociateAdminAccount+--+--         , requestPutNotificationChannel $+--             putNotificationChannel+--+--         , requestDeleteNotificationChannel $+--             deleteNotificationChannel+--+--         , requestAssociateAdminAccount $+--             associateAdminAccount+--+--         , requestGetPolicy $+--             getPolicy+--+--           ]++--     , testGroup "response"+--         [ responseListPolicies $+--             listPoliciesResponse+--+--         , responseGetComplianceDetail $+--             getComplianceDetailResponse+--+--         , responseGetNotificationChannel $+--             getNotificationChannelResponse+--+--         , responseGetAdminAccount $+--             getAdminAccountResponse+--+--         , responseListComplianceStatus $+--             listComplianceStatusResponse+--+--         , responsePutPolicy $+--             putPolicyResponse+--+--         , responseDeletePolicy $+--             deletePolicyResponse+--+--         , responseDisassociateAdminAccount $+--             disassociateAdminAccountResponse+--+--         , responsePutNotificationChannel $+--             putNotificationChannelResponse+--+--         , responseDeleteNotificationChannel $+--             deleteNotificationChannelResponse+--+--         , responseAssociateAdminAccount $+--             associateAdminAccountResponse+--+--         , responseGetPolicy $+--             getPolicyResponse+--+--           ]+--     ]++-- Requests++requestListPolicies :: ListPolicies -> TestTree+requestListPolicies = req+    "ListPolicies"+    "fixture/ListPolicies.yaml"++requestGetComplianceDetail :: GetComplianceDetail -> TestTree+requestGetComplianceDetail = req+    "GetComplianceDetail"+    "fixture/GetComplianceDetail.yaml"++requestGetNotificationChannel :: GetNotificationChannel -> TestTree+requestGetNotificationChannel = req+    "GetNotificationChannel"+    "fixture/GetNotificationChannel.yaml"++requestGetAdminAccount :: GetAdminAccount -> TestTree+requestGetAdminAccount = req+    "GetAdminAccount"+    "fixture/GetAdminAccount.yaml"++requestListComplianceStatus :: ListComplianceStatus -> TestTree+requestListComplianceStatus = req+    "ListComplianceStatus"+    "fixture/ListComplianceStatus.yaml"++requestPutPolicy :: PutPolicy -> TestTree+requestPutPolicy = req+    "PutPolicy"+    "fixture/PutPolicy.yaml"++requestDeletePolicy :: DeletePolicy -> TestTree+requestDeletePolicy = req+    "DeletePolicy"+    "fixture/DeletePolicy.yaml"++requestDisassociateAdminAccount :: DisassociateAdminAccount -> TestTree+requestDisassociateAdminAccount = req+    "DisassociateAdminAccount"+    "fixture/DisassociateAdminAccount.yaml"++requestPutNotificationChannel :: PutNotificationChannel -> TestTree+requestPutNotificationChannel = req+    "PutNotificationChannel"+    "fixture/PutNotificationChannel.yaml"++requestDeleteNotificationChannel :: DeleteNotificationChannel -> TestTree+requestDeleteNotificationChannel = req+    "DeleteNotificationChannel"+    "fixture/DeleteNotificationChannel.yaml"++requestAssociateAdminAccount :: AssociateAdminAccount -> TestTree+requestAssociateAdminAccount = req+    "AssociateAdminAccount"+    "fixture/AssociateAdminAccount.yaml"++requestGetPolicy :: GetPolicy -> TestTree+requestGetPolicy = req+    "GetPolicy"+    "fixture/GetPolicy.yaml"++-- Responses++responseListPolicies :: ListPoliciesResponse -> TestTree+responseListPolicies = res+    "ListPoliciesResponse"+    "fixture/ListPoliciesResponse.proto"+    fms+    (Proxy :: Proxy ListPolicies)++responseGetComplianceDetail :: GetComplianceDetailResponse -> TestTree+responseGetComplianceDetail = res+    "GetComplianceDetailResponse"+    "fixture/GetComplianceDetailResponse.proto"+    fms+    (Proxy :: Proxy GetComplianceDetail)++responseGetNotificationChannel :: GetNotificationChannelResponse -> TestTree+responseGetNotificationChannel = res+    "GetNotificationChannelResponse"+    "fixture/GetNotificationChannelResponse.proto"+    fms+    (Proxy :: Proxy GetNotificationChannel)++responseGetAdminAccount :: GetAdminAccountResponse -> TestTree+responseGetAdminAccount = res+    "GetAdminAccountResponse"+    "fixture/GetAdminAccountResponse.proto"+    fms+    (Proxy :: Proxy GetAdminAccount)++responseListComplianceStatus :: ListComplianceStatusResponse -> TestTree+responseListComplianceStatus = res+    "ListComplianceStatusResponse"+    "fixture/ListComplianceStatusResponse.proto"+    fms+    (Proxy :: Proxy ListComplianceStatus)++responsePutPolicy :: PutPolicyResponse -> TestTree+responsePutPolicy = res+    "PutPolicyResponse"+    "fixture/PutPolicyResponse.proto"+    fms+    (Proxy :: Proxy PutPolicy)++responseDeletePolicy :: DeletePolicyResponse -> TestTree+responseDeletePolicy = res+    "DeletePolicyResponse"+    "fixture/DeletePolicyResponse.proto"+    fms+    (Proxy :: Proxy DeletePolicy)++responseDisassociateAdminAccount :: DisassociateAdminAccountResponse -> TestTree+responseDisassociateAdminAccount = res+    "DisassociateAdminAccountResponse"+    "fixture/DisassociateAdminAccountResponse.proto"+    fms+    (Proxy :: Proxy DisassociateAdminAccount)++responsePutNotificationChannel :: PutNotificationChannelResponse -> TestTree+responsePutNotificationChannel = res+    "PutNotificationChannelResponse"+    "fixture/PutNotificationChannelResponse.proto"+    fms+    (Proxy :: Proxy PutNotificationChannel)++responseDeleteNotificationChannel :: DeleteNotificationChannelResponse -> TestTree+responseDeleteNotificationChannel = res+    "DeleteNotificationChannelResponse"+    "fixture/DeleteNotificationChannelResponse.proto"+    fms+    (Proxy :: Proxy DeleteNotificationChannel)++responseAssociateAdminAccount :: AssociateAdminAccountResponse -> TestTree+responseAssociateAdminAccount = res+    "AssociateAdminAccountResponse"+    "fixture/AssociateAdminAccountResponse.proto"+    fms+    (Proxy :: Proxy AssociateAdminAccount)++responseGetPolicy :: GetPolicyResponse -> TestTree+responseGetPolicy = res+    "GetPolicyResponse"+    "fixture/GetPolicyResponse.proto"+    fms+    (Proxy :: Proxy GetPolicy)