packages feed

amazonka-macie (empty) → 2.0

raw patch · 42 files changed

+3602/−0 lines, 42 filesdep +amazonka-coredep +amazonka-maciedep +amazonka-test

Dependencies added: amazonka-core, amazonka-macie, amazonka-test, base, bytestring, case-insensitive, 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,44 @@+# Amazon Macie SDK++* [Version](#version)+* [Description](#description)+* [Contribute](#contribute)+* [Licence](#licence)+++## Version+ +`2.0` - Derived from API version @2017-12-19@ of the AWS service descriptions, licensed under Apache 2.0.++## Description++Documentation is available via [Hackage](http://hackage.haskell.org/package/amazonka-macie)+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 [Amazonka.Macie](http://hackage.haskell.org/package/amazonka-macie/docs/Amazonka-Macie.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-macie` 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.
+ amazonka-macie.cabal view
@@ -0,0 +1,99 @@+cabal-version:      2.2+name:               amazonka-macie+version:            2.0+synopsis:           Amazon Macie 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>, Jack Kelly <jack@jackkelly.name>++copyright:          Copyright (c) 2013-2023 Brendan Hay+category:           AWS+build-type:         Simple+extra-source-files:+  fixture/*.proto+  fixture/*.yaml+  README.md+  src/.gitkeep++description:+  Derived from API version @2017-12-19@ of the AWS service descriptions, licensed under Apache 2.0.+  .+  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.+  .+  It is recommended to use generic lenses or optics from packages such as <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify optional fields and deconstruct responses.+  .+  Generated lenses can be found in "Amazonka.Macie.Lens" and are+  suitable for use with a lens package such as <http://hackage.haskell.org/package/lens lens> or <http://hackage.haskell.org/package/lens-family-core lens-family-core>.+  .+  See "Amazonka.Macie" and the <https://aws.amazon.com/documentation/ AWS documentation> to get started.++source-repository head+  type:     git+  location: git://github.com/brendanhay/amazonka.git+  subdir:   amazonka-macie++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:+    Amazonka.Macie+    Amazonka.Macie.AssociateMemberAccount+    Amazonka.Macie.AssociateS3Resources+    Amazonka.Macie.DisassociateMemberAccount+    Amazonka.Macie.DisassociateS3Resources+    Amazonka.Macie.Lens+    Amazonka.Macie.ListMemberAccounts+    Amazonka.Macie.ListS3Resources+    Amazonka.Macie.Types+    Amazonka.Macie.Types.ClassificationType+    Amazonka.Macie.Types.ClassificationTypeUpdate+    Amazonka.Macie.Types.FailedS3Resource+    Amazonka.Macie.Types.MemberAccount+    Amazonka.Macie.Types.S3ContinuousClassificationType+    Amazonka.Macie.Types.S3OneTimeClassificationType+    Amazonka.Macie.Types.S3Resource+    Amazonka.Macie.Types.S3ResourceClassification+    Amazonka.Macie.Types.S3ResourceClassificationUpdate+    Amazonka.Macie.UpdateS3Resources+    Amazonka.Macie.Waiters++  build-depends:+    , amazonka-core  >=2.0  && <2.1+    , base           >=4.12 && <5++test-suite amazonka-macie-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.Amazonka.Gen.Macie+    Test.Amazonka.Macie+    Test.Amazonka.Macie.Internal++  build-depends:+    , amazonka-core         >=2.0 && <2.1+    , amazonka-macie+    , amazonka-test         >=2.0 && <2.1+    , base+    , bytestring+    , case-insensitive+    , tasty+    , tasty-hunit+    , text+    , time+    , unordered-containers
+ fixture/AssociateMemberAccount.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/macie/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  macie.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/AssociateMemberAccountResponse.proto view
+ fixture/AssociateS3Resources.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/macie/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  macie.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/AssociateS3ResourcesResponse.proto view
+ fixture/DisassociateMemberAccount.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/macie/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  macie.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/DisassociateMemberAccountResponse.proto view
+ fixture/DisassociateS3Resources.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/macie/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  macie.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/DisassociateS3ResourcesResponse.proto view
+ fixture/ListMemberAccounts.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/macie/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  macie.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/ListMemberAccountsResponse.proto view
+ fixture/ListS3Resources.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/macie/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  macie.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/ListS3ResourcesResponse.proto view
+ fixture/UpdateS3Resources.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+  Authorization:         AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/macie/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+  Host:                  macie.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/UpdateS3ResourcesResponse.proto view
+ gen/Amazonka/Macie.hs view
@@ -0,0 +1,167 @@+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- |+-- Module      : Amazonka.Macie+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Derived from API version @2017-12-19@ of the AWS service descriptions, licensed under Apache 2.0.+--+-- Amazon Macie Classic+--+-- Amazon Macie Classic has been discontinued and is no longer available.+--+-- A new Amazon Macie is now available with significant design improvements+-- and additional features, at a lower price and in most Amazon Web+-- Services Regions. We encourage you to take advantage of the new and+-- improved features, and benefit from the reduced cost. To learn about+-- features and pricing for the new Macie, see+-- <http://aws.amazon.com/macie/ Amazon Macie>. To learn how to use the new+-- Macie, see the+-- <https://docs.aws.amazon.com/macie/latest/user/what-is-macie.html Amazon Macie User Guide>.+module Amazonka.Macie+  ( -- * Service Configuration+    defaultService,++    -- * Errors+    -- $errors++    -- ** AccessDeniedException+    _AccessDeniedException,++    -- ** InternalException+    _InternalException,++    -- ** InvalidInputException+    _InvalidInputException,++    -- ** LimitExceededException+    _LimitExceededException,++    -- * Waiters+    -- $waiters++    -- * Operations+    -- $operations++    -- ** AssociateMemberAccount+    AssociateMemberAccount (AssociateMemberAccount'),+    newAssociateMemberAccount,+    AssociateMemberAccountResponse (AssociateMemberAccountResponse'),+    newAssociateMemberAccountResponse,++    -- ** AssociateS3Resources+    AssociateS3Resources (AssociateS3Resources'),+    newAssociateS3Resources,+    AssociateS3ResourcesResponse (AssociateS3ResourcesResponse'),+    newAssociateS3ResourcesResponse,++    -- ** DisassociateMemberAccount+    DisassociateMemberAccount (DisassociateMemberAccount'),+    newDisassociateMemberAccount,+    DisassociateMemberAccountResponse (DisassociateMemberAccountResponse'),+    newDisassociateMemberAccountResponse,++    -- ** DisassociateS3Resources+    DisassociateS3Resources (DisassociateS3Resources'),+    newDisassociateS3Resources,+    DisassociateS3ResourcesResponse (DisassociateS3ResourcesResponse'),+    newDisassociateS3ResourcesResponse,++    -- ** ListMemberAccounts (Paginated)+    ListMemberAccounts (ListMemberAccounts'),+    newListMemberAccounts,+    ListMemberAccountsResponse (ListMemberAccountsResponse'),+    newListMemberAccountsResponse,++    -- ** ListS3Resources (Paginated)+    ListS3Resources (ListS3Resources'),+    newListS3Resources,+    ListS3ResourcesResponse (ListS3ResourcesResponse'),+    newListS3ResourcesResponse,++    -- ** UpdateS3Resources+    UpdateS3Resources (UpdateS3Resources'),+    newUpdateS3Resources,+    UpdateS3ResourcesResponse (UpdateS3ResourcesResponse'),+    newUpdateS3ResourcesResponse,++    -- * Types++    -- ** S3ContinuousClassificationType+    S3ContinuousClassificationType (..),++    -- ** S3OneTimeClassificationType+    S3OneTimeClassificationType (..),++    -- ** ClassificationType+    ClassificationType (ClassificationType'),+    newClassificationType,++    -- ** ClassificationTypeUpdate+    ClassificationTypeUpdate (ClassificationTypeUpdate'),+    newClassificationTypeUpdate,++    -- ** FailedS3Resource+    FailedS3Resource (FailedS3Resource'),+    newFailedS3Resource,++    -- ** MemberAccount+    MemberAccount (MemberAccount'),+    newMemberAccount,++    -- ** S3Resource+    S3Resource (S3Resource'),+    newS3Resource,++    -- ** S3ResourceClassification+    S3ResourceClassification (S3ResourceClassification'),+    newS3ResourceClassification,++    -- ** S3ResourceClassificationUpdate+    S3ResourceClassificationUpdate (S3ResourceClassificationUpdate'),+    newS3ResourceClassificationUpdate,+  )+where++import Amazonka.Macie.AssociateMemberAccount+import Amazonka.Macie.AssociateS3Resources+import Amazonka.Macie.DisassociateMemberAccount+import Amazonka.Macie.DisassociateS3Resources+import Amazonka.Macie.Lens+import Amazonka.Macie.ListMemberAccounts+import Amazonka.Macie.ListS3Resources+import Amazonka.Macie.Types+import Amazonka.Macie.UpdateS3Resources+import Amazonka.Macie.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 'Macie'.++-- $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/Amazonka/Macie/AssociateMemberAccount.hs view
@@ -0,0 +1,147 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.Macie.AssociateMemberAccount+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- (Discontinued) Associates a specified Amazon Web Services account with+-- Amazon Macie Classic as a member account.+module Amazonka.Macie.AssociateMemberAccount+  ( -- * Creating a Request+    AssociateMemberAccount (..),+    newAssociateMemberAccount,++    -- * Request Lenses+    associateMemberAccount_memberAccountId,++    -- * Destructuring the Response+    AssociateMemberAccountResponse (..),+    newAssociateMemberAccountResponse,+  )+where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import Amazonka.Macie.Types+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newAssociateMemberAccount' smart constructor.+data AssociateMemberAccount = AssociateMemberAccount'+  { -- | (Discontinued) The ID of the Amazon Web Services account that you want+    -- to associate with Amazon Macie Classic as a member account.+    memberAccountId :: Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'AssociateMemberAccount' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'memberAccountId', 'associateMemberAccount_memberAccountId' - (Discontinued) The ID of the Amazon Web Services account that you want+-- to associate with Amazon Macie Classic as a member account.+newAssociateMemberAccount ::+  -- | 'memberAccountId'+  Prelude.Text ->+  AssociateMemberAccount+newAssociateMemberAccount pMemberAccountId_ =+  AssociateMemberAccount'+    { memberAccountId =+        pMemberAccountId_+    }++-- | (Discontinued) The ID of the Amazon Web Services account that you want+-- to associate with Amazon Macie Classic as a member account.+associateMemberAccount_memberAccountId :: Lens.Lens' AssociateMemberAccount Prelude.Text+associateMemberAccount_memberAccountId = Lens.lens (\AssociateMemberAccount' {memberAccountId} -> memberAccountId) (\s@AssociateMemberAccount' {} a -> s {memberAccountId = a} :: AssociateMemberAccount)++instance Core.AWSRequest AssociateMemberAccount where+  type+    AWSResponse AssociateMemberAccount =+      AssociateMemberAccountResponse+  request overrides =+    Request.postJSON (overrides defaultService)+  response =+    Response.receiveNull+      AssociateMemberAccountResponse'++instance Prelude.Hashable AssociateMemberAccount where+  hashWithSalt _salt AssociateMemberAccount' {..} =+    _salt `Prelude.hashWithSalt` memberAccountId++instance Prelude.NFData AssociateMemberAccount where+  rnf AssociateMemberAccount' {..} =+    Prelude.rnf memberAccountId++instance Data.ToHeaders AssociateMemberAccount where+  toHeaders =+    Prelude.const+      ( Prelude.mconcat+          [ "X-Amz-Target"+              Data.=# ( "MacieService.AssociateMemberAccount" ::+                          Prelude.ByteString+                      ),+            "Content-Type"+              Data.=# ( "application/x-amz-json-1.1" ::+                          Prelude.ByteString+                      )+          ]+      )++instance Data.ToJSON AssociateMemberAccount where+  toJSON AssociateMemberAccount' {..} =+    Data.object+      ( Prelude.catMaybes+          [ Prelude.Just+              ("memberAccountId" Data..= memberAccountId)+          ]+      )++instance Data.ToPath AssociateMemberAccount where+  toPath = Prelude.const "/"++instance Data.ToQuery AssociateMemberAccount where+  toQuery = Prelude.const Prelude.mempty++-- | /See:/ 'newAssociateMemberAccountResponse' smart constructor.+data AssociateMemberAccountResponse = AssociateMemberAccountResponse'+  {+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'AssociateMemberAccountResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+newAssociateMemberAccountResponse ::+  AssociateMemberAccountResponse+newAssociateMemberAccountResponse =+  AssociateMemberAccountResponse'++instance+  Prelude.NFData+    AssociateMemberAccountResponse+  where+  rnf _ = ()
+ gen/Amazonka/Macie/AssociateS3Resources.hs view
@@ -0,0 +1,206 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.Macie.AssociateS3Resources+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- (Discontinued) Associates specified S3 resources with Amazon Macie+-- Classic for monitoring and data classification. If @memberAccountId@+-- isn\'t specified, the action associates specified S3 resources with+-- Macie Classic for the current Macie Classic administrator account. If+-- @memberAccountId@ is specified, the action associates specified S3+-- resources with Macie Classic for the specified member account.+module Amazonka.Macie.AssociateS3Resources+  ( -- * Creating a Request+    AssociateS3Resources (..),+    newAssociateS3Resources,++    -- * Request Lenses+    associateS3Resources_memberAccountId,+    associateS3Resources_s3Resources,++    -- * Destructuring the Response+    AssociateS3ResourcesResponse (..),+    newAssociateS3ResourcesResponse,++    -- * Response Lenses+    associateS3ResourcesResponse_failedS3Resources,+    associateS3ResourcesResponse_httpStatus,+  )+where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import Amazonka.Macie.Types+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newAssociateS3Resources' smart constructor.+data AssociateS3Resources = AssociateS3Resources'+  { -- | (Discontinued) The ID of the Amazon Macie Classic member account whose+    -- resources you want to associate with Macie Classic.+    memberAccountId :: Prelude.Maybe Prelude.Text,+    -- | (Discontinued) The S3 resources that you want to associate with Amazon+    -- Macie Classic for monitoring and data classification.+    s3Resources :: [S3ResourceClassification]+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'AssociateS3Resources' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'memberAccountId', 'associateS3Resources_memberAccountId' - (Discontinued) The ID of the Amazon Macie Classic member account whose+-- resources you want to associate with Macie Classic.+--+-- 's3Resources', 'associateS3Resources_s3Resources' - (Discontinued) The S3 resources that you want to associate with Amazon+-- Macie Classic for monitoring and data classification.+newAssociateS3Resources ::+  AssociateS3Resources+newAssociateS3Resources =+  AssociateS3Resources'+    { memberAccountId =+        Prelude.Nothing,+      s3Resources = Prelude.mempty+    }++-- | (Discontinued) The ID of the Amazon Macie Classic member account whose+-- resources you want to associate with Macie Classic.+associateS3Resources_memberAccountId :: Lens.Lens' AssociateS3Resources (Prelude.Maybe Prelude.Text)+associateS3Resources_memberAccountId = Lens.lens (\AssociateS3Resources' {memberAccountId} -> memberAccountId) (\s@AssociateS3Resources' {} a -> s {memberAccountId = a} :: AssociateS3Resources)++-- | (Discontinued) The S3 resources that you want to associate with Amazon+-- Macie Classic for monitoring and data classification.+associateS3Resources_s3Resources :: Lens.Lens' AssociateS3Resources [S3ResourceClassification]+associateS3Resources_s3Resources = Lens.lens (\AssociateS3Resources' {s3Resources} -> s3Resources) (\s@AssociateS3Resources' {} a -> s {s3Resources = a} :: AssociateS3Resources) Prelude.. Lens.coerced++instance Core.AWSRequest AssociateS3Resources where+  type+    AWSResponse AssociateS3Resources =+      AssociateS3ResourcesResponse+  request overrides =+    Request.postJSON (overrides defaultService)+  response =+    Response.receiveJSON+      ( \s h x ->+          AssociateS3ResourcesResponse'+            Prelude.<$> ( x+                            Data..?> "failedS3Resources"+                            Core..!@ Prelude.mempty+                        )+            Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+      )++instance Prelude.Hashable AssociateS3Resources where+  hashWithSalt _salt AssociateS3Resources' {..} =+    _salt+      `Prelude.hashWithSalt` memberAccountId+      `Prelude.hashWithSalt` s3Resources++instance Prelude.NFData AssociateS3Resources where+  rnf AssociateS3Resources' {..} =+    Prelude.rnf memberAccountId+      `Prelude.seq` Prelude.rnf s3Resources++instance Data.ToHeaders AssociateS3Resources where+  toHeaders =+    Prelude.const+      ( Prelude.mconcat+          [ "X-Amz-Target"+              Data.=# ( "MacieService.AssociateS3Resources" ::+                          Prelude.ByteString+                      ),+            "Content-Type"+              Data.=# ( "application/x-amz-json-1.1" ::+                          Prelude.ByteString+                      )+          ]+      )++instance Data.ToJSON AssociateS3Resources where+  toJSON AssociateS3Resources' {..} =+    Data.object+      ( Prelude.catMaybes+          [ ("memberAccountId" Data..=)+              Prelude.<$> memberAccountId,+            Prelude.Just ("s3Resources" Data..= s3Resources)+          ]+      )++instance Data.ToPath AssociateS3Resources where+  toPath = Prelude.const "/"++instance Data.ToQuery AssociateS3Resources where+  toQuery = Prelude.const Prelude.mempty++-- | /See:/ 'newAssociateS3ResourcesResponse' smart constructor.+data AssociateS3ResourcesResponse = AssociateS3ResourcesResponse'+  { -- | (Discontinued) S3 resources that couldn\'t be associated with Amazon+    -- Macie Classic. An error code and an error message are provided for each+    -- failed item.+    failedS3Resources :: Prelude.Maybe [FailedS3Resource],+    -- | The response's http status code.+    httpStatus :: Prelude.Int+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'AssociateS3ResourcesResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'failedS3Resources', 'associateS3ResourcesResponse_failedS3Resources' - (Discontinued) S3 resources that couldn\'t be associated with Amazon+-- Macie Classic. An error code and an error message are provided for each+-- failed item.+--+-- 'httpStatus', 'associateS3ResourcesResponse_httpStatus' - The response's http status code.+newAssociateS3ResourcesResponse ::+  -- | 'httpStatus'+  Prelude.Int ->+  AssociateS3ResourcesResponse+newAssociateS3ResourcesResponse pHttpStatus_ =+  AssociateS3ResourcesResponse'+    { failedS3Resources =+        Prelude.Nothing,+      httpStatus = pHttpStatus_+    }++-- | (Discontinued) S3 resources that couldn\'t be associated with Amazon+-- Macie Classic. An error code and an error message are provided for each+-- failed item.+associateS3ResourcesResponse_failedS3Resources :: Lens.Lens' AssociateS3ResourcesResponse (Prelude.Maybe [FailedS3Resource])+associateS3ResourcesResponse_failedS3Resources = Lens.lens (\AssociateS3ResourcesResponse' {failedS3Resources} -> failedS3Resources) (\s@AssociateS3ResourcesResponse' {} a -> s {failedS3Resources = a} :: AssociateS3ResourcesResponse) Prelude.. Lens.mapping Lens.coerced++-- | The response's http status code.+associateS3ResourcesResponse_httpStatus :: Lens.Lens' AssociateS3ResourcesResponse Prelude.Int+associateS3ResourcesResponse_httpStatus = Lens.lens (\AssociateS3ResourcesResponse' {httpStatus} -> httpStatus) (\s@AssociateS3ResourcesResponse' {} a -> s {httpStatus = a} :: AssociateS3ResourcesResponse)++instance Prelude.NFData AssociateS3ResourcesResponse where+  rnf AssociateS3ResourcesResponse' {..} =+    Prelude.rnf failedS3Resources+      `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/Macie/DisassociateMemberAccount.hs view
@@ -0,0 +1,147 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.Macie.DisassociateMemberAccount+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- (Discontinued) Removes the specified member account from Amazon Macie+-- Classic.+module Amazonka.Macie.DisassociateMemberAccount+  ( -- * Creating a Request+    DisassociateMemberAccount (..),+    newDisassociateMemberAccount,++    -- * Request Lenses+    disassociateMemberAccount_memberAccountId,++    -- * Destructuring the Response+    DisassociateMemberAccountResponse (..),+    newDisassociateMemberAccountResponse,+  )+where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import Amazonka.Macie.Types+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newDisassociateMemberAccount' smart constructor.+data DisassociateMemberAccount = DisassociateMemberAccount'+  { -- | (Discontinued) The ID of the member account that you want to remove from+    -- Amazon Macie Classic.+    memberAccountId :: Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'DisassociateMemberAccount' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'memberAccountId', 'disassociateMemberAccount_memberAccountId' - (Discontinued) The ID of the member account that you want to remove from+-- Amazon Macie Classic.+newDisassociateMemberAccount ::+  -- | 'memberAccountId'+  Prelude.Text ->+  DisassociateMemberAccount+newDisassociateMemberAccount pMemberAccountId_ =+  DisassociateMemberAccount'+    { memberAccountId =+        pMemberAccountId_+    }++-- | (Discontinued) The ID of the member account that you want to remove from+-- Amazon Macie Classic.+disassociateMemberAccount_memberAccountId :: Lens.Lens' DisassociateMemberAccount Prelude.Text+disassociateMemberAccount_memberAccountId = Lens.lens (\DisassociateMemberAccount' {memberAccountId} -> memberAccountId) (\s@DisassociateMemberAccount' {} a -> s {memberAccountId = a} :: DisassociateMemberAccount)++instance Core.AWSRequest DisassociateMemberAccount where+  type+    AWSResponse DisassociateMemberAccount =+      DisassociateMemberAccountResponse+  request overrides =+    Request.postJSON (overrides defaultService)+  response =+    Response.receiveNull+      DisassociateMemberAccountResponse'++instance Prelude.Hashable DisassociateMemberAccount where+  hashWithSalt _salt DisassociateMemberAccount' {..} =+    _salt `Prelude.hashWithSalt` memberAccountId++instance Prelude.NFData DisassociateMemberAccount where+  rnf DisassociateMemberAccount' {..} =+    Prelude.rnf memberAccountId++instance Data.ToHeaders DisassociateMemberAccount where+  toHeaders =+    Prelude.const+      ( Prelude.mconcat+          [ "X-Amz-Target"+              Data.=# ( "MacieService.DisassociateMemberAccount" ::+                          Prelude.ByteString+                      ),+            "Content-Type"+              Data.=# ( "application/x-amz-json-1.1" ::+                          Prelude.ByteString+                      )+          ]+      )++instance Data.ToJSON DisassociateMemberAccount where+  toJSON DisassociateMemberAccount' {..} =+    Data.object+      ( Prelude.catMaybes+          [ Prelude.Just+              ("memberAccountId" Data..= memberAccountId)+          ]+      )++instance Data.ToPath DisassociateMemberAccount where+  toPath = Prelude.const "/"++instance Data.ToQuery DisassociateMemberAccount where+  toQuery = Prelude.const Prelude.mempty++-- | /See:/ 'newDisassociateMemberAccountResponse' smart constructor.+data DisassociateMemberAccountResponse = DisassociateMemberAccountResponse'+  {+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'DisassociateMemberAccountResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+newDisassociateMemberAccountResponse ::+  DisassociateMemberAccountResponse+newDisassociateMemberAccountResponse =+  DisassociateMemberAccountResponse'++instance+  Prelude.NFData+    DisassociateMemberAccountResponse+  where+  rnf _ = ()
+ gen/Amazonka/Macie/DisassociateS3Resources.hs view
@@ -0,0 +1,212 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.Macie.DisassociateS3Resources+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- (Discontinued) Removes specified S3 resources from being monitored by+-- Amazon Macie Classic. If @memberAccountId@ isn\'t specified, the action+-- removes specified S3 resources from Macie Classic for the current Macie+-- Classic administrator account. If @memberAccountId@ is specified, the+-- action removes specified S3 resources from Macie Classic for the+-- specified member account.+module Amazonka.Macie.DisassociateS3Resources+  ( -- * Creating a Request+    DisassociateS3Resources (..),+    newDisassociateS3Resources,++    -- * Request Lenses+    disassociateS3Resources_memberAccountId,+    disassociateS3Resources_associatedS3Resources,++    -- * Destructuring the Response+    DisassociateS3ResourcesResponse (..),+    newDisassociateS3ResourcesResponse,++    -- * Response Lenses+    disassociateS3ResourcesResponse_failedS3Resources,+    disassociateS3ResourcesResponse_httpStatus,+  )+where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import Amazonka.Macie.Types+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newDisassociateS3Resources' smart constructor.+data DisassociateS3Resources = DisassociateS3Resources'+  { -- | (Discontinued) The ID of the Amazon Macie Classic member account whose+    -- resources you want to remove from being monitored by Macie Classic.+    memberAccountId :: Prelude.Maybe Prelude.Text,+    -- | (Discontinued) The S3 resources (buckets or prefixes) that you want to+    -- remove from being monitored and classified by Amazon Macie Classic.+    associatedS3Resources :: [S3Resource]+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'DisassociateS3Resources' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'memberAccountId', 'disassociateS3Resources_memberAccountId' - (Discontinued) The ID of the Amazon Macie Classic member account whose+-- resources you want to remove from being monitored by Macie Classic.+--+-- 'associatedS3Resources', 'disassociateS3Resources_associatedS3Resources' - (Discontinued) The S3 resources (buckets or prefixes) that you want to+-- remove from being monitored and classified by Amazon Macie Classic.+newDisassociateS3Resources ::+  DisassociateS3Resources+newDisassociateS3Resources =+  DisassociateS3Resources'+    { memberAccountId =+        Prelude.Nothing,+      associatedS3Resources = Prelude.mempty+    }++-- | (Discontinued) The ID of the Amazon Macie Classic member account whose+-- resources you want to remove from being monitored by Macie Classic.+disassociateS3Resources_memberAccountId :: Lens.Lens' DisassociateS3Resources (Prelude.Maybe Prelude.Text)+disassociateS3Resources_memberAccountId = Lens.lens (\DisassociateS3Resources' {memberAccountId} -> memberAccountId) (\s@DisassociateS3Resources' {} a -> s {memberAccountId = a} :: DisassociateS3Resources)++-- | (Discontinued) The S3 resources (buckets or prefixes) that you want to+-- remove from being monitored and classified by Amazon Macie Classic.+disassociateS3Resources_associatedS3Resources :: Lens.Lens' DisassociateS3Resources [S3Resource]+disassociateS3Resources_associatedS3Resources = Lens.lens (\DisassociateS3Resources' {associatedS3Resources} -> associatedS3Resources) (\s@DisassociateS3Resources' {} a -> s {associatedS3Resources = a} :: DisassociateS3Resources) Prelude.. Lens.coerced++instance Core.AWSRequest DisassociateS3Resources where+  type+    AWSResponse DisassociateS3Resources =+      DisassociateS3ResourcesResponse+  request overrides =+    Request.postJSON (overrides defaultService)+  response =+    Response.receiveJSON+      ( \s h x ->+          DisassociateS3ResourcesResponse'+            Prelude.<$> ( x+                            Data..?> "failedS3Resources"+                            Core..!@ Prelude.mempty+                        )+            Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+      )++instance Prelude.Hashable DisassociateS3Resources where+  hashWithSalt _salt DisassociateS3Resources' {..} =+    _salt+      `Prelude.hashWithSalt` memberAccountId+      `Prelude.hashWithSalt` associatedS3Resources++instance Prelude.NFData DisassociateS3Resources where+  rnf DisassociateS3Resources' {..} =+    Prelude.rnf memberAccountId+      `Prelude.seq` Prelude.rnf associatedS3Resources++instance Data.ToHeaders DisassociateS3Resources where+  toHeaders =+    Prelude.const+      ( Prelude.mconcat+          [ "X-Amz-Target"+              Data.=# ( "MacieService.DisassociateS3Resources" ::+                          Prelude.ByteString+                      ),+            "Content-Type"+              Data.=# ( "application/x-amz-json-1.1" ::+                          Prelude.ByteString+                      )+          ]+      )++instance Data.ToJSON DisassociateS3Resources where+  toJSON DisassociateS3Resources' {..} =+    Data.object+      ( Prelude.catMaybes+          [ ("memberAccountId" Data..=)+              Prelude.<$> memberAccountId,+            Prelude.Just+              ( "associatedS3Resources"+                  Data..= associatedS3Resources+              )+          ]+      )++instance Data.ToPath DisassociateS3Resources where+  toPath = Prelude.const "/"++instance Data.ToQuery DisassociateS3Resources where+  toQuery = Prelude.const Prelude.mempty++-- | /See:/ 'newDisassociateS3ResourcesResponse' smart constructor.+data DisassociateS3ResourcesResponse = DisassociateS3ResourcesResponse'+  { -- | (Discontinued) S3 resources that couldn\'t be removed from being+    -- monitored and classified by Amazon Macie Classic. An error code and an+    -- error message are provided for each failed item.+    failedS3Resources :: Prelude.Maybe [FailedS3Resource],+    -- | The response's http status code.+    httpStatus :: Prelude.Int+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'DisassociateS3ResourcesResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'failedS3Resources', 'disassociateS3ResourcesResponse_failedS3Resources' - (Discontinued) S3 resources that couldn\'t be removed from being+-- monitored and classified by Amazon Macie Classic. An error code and an+-- error message are provided for each failed item.+--+-- 'httpStatus', 'disassociateS3ResourcesResponse_httpStatus' - The response's http status code.+newDisassociateS3ResourcesResponse ::+  -- | 'httpStatus'+  Prelude.Int ->+  DisassociateS3ResourcesResponse+newDisassociateS3ResourcesResponse pHttpStatus_ =+  DisassociateS3ResourcesResponse'+    { failedS3Resources =+        Prelude.Nothing,+      httpStatus = pHttpStatus_+    }++-- | (Discontinued) S3 resources that couldn\'t be removed from being+-- monitored and classified by Amazon Macie Classic. An error code and an+-- error message are provided for each failed item.+disassociateS3ResourcesResponse_failedS3Resources :: Lens.Lens' DisassociateS3ResourcesResponse (Prelude.Maybe [FailedS3Resource])+disassociateS3ResourcesResponse_failedS3Resources = Lens.lens (\DisassociateS3ResourcesResponse' {failedS3Resources} -> failedS3Resources) (\s@DisassociateS3ResourcesResponse' {} a -> s {failedS3Resources = a} :: DisassociateS3ResourcesResponse) Prelude.. Lens.mapping Lens.coerced++-- | The response's http status code.+disassociateS3ResourcesResponse_httpStatus :: Lens.Lens' DisassociateS3ResourcesResponse Prelude.Int+disassociateS3ResourcesResponse_httpStatus = Lens.lens (\DisassociateS3ResourcesResponse' {httpStatus} -> httpStatus) (\s@DisassociateS3ResourcesResponse' {} a -> s {httpStatus = a} :: DisassociateS3ResourcesResponse)++instance+  Prelude.NFData+    DisassociateS3ResourcesResponse+  where+  rnf DisassociateS3ResourcesResponse' {..} =+    Prelude.rnf failedS3Resources+      `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/Macie/Lens.hs view
@@ -0,0 +1,103 @@+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.Macie.Lens+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.Macie.Lens+  ( -- * Operations++    -- ** AssociateMemberAccount+    associateMemberAccount_memberAccountId,++    -- ** AssociateS3Resources+    associateS3Resources_memberAccountId,+    associateS3Resources_s3Resources,+    associateS3ResourcesResponse_failedS3Resources,+    associateS3ResourcesResponse_httpStatus,++    -- ** DisassociateMemberAccount+    disassociateMemberAccount_memberAccountId,++    -- ** DisassociateS3Resources+    disassociateS3Resources_memberAccountId,+    disassociateS3Resources_associatedS3Resources,+    disassociateS3ResourcesResponse_failedS3Resources,+    disassociateS3ResourcesResponse_httpStatus,++    -- ** ListMemberAccounts+    listMemberAccounts_maxResults,+    listMemberAccounts_nextToken,+    listMemberAccountsResponse_memberAccounts,+    listMemberAccountsResponse_nextToken,+    listMemberAccountsResponse_httpStatus,++    -- ** ListS3Resources+    listS3Resources_maxResults,+    listS3Resources_memberAccountId,+    listS3Resources_nextToken,+    listS3ResourcesResponse_nextToken,+    listS3ResourcesResponse_s3Resources,+    listS3ResourcesResponse_httpStatus,++    -- ** UpdateS3Resources+    updateS3Resources_memberAccountId,+    updateS3Resources_s3ResourcesUpdate,+    updateS3ResourcesResponse_failedS3Resources,+    updateS3ResourcesResponse_httpStatus,++    -- * Types++    -- ** ClassificationType+    classificationType_oneTime,+    classificationType_continuous,++    -- ** ClassificationTypeUpdate+    classificationTypeUpdate_continuous,+    classificationTypeUpdate_oneTime,++    -- ** FailedS3Resource+    failedS3Resource_errorCode,+    failedS3Resource_errorMessage,+    failedS3Resource_failedItem,++    -- ** MemberAccount+    memberAccount_accountId,++    -- ** S3Resource+    s3Resource_prefix,+    s3Resource_bucketName,++    -- ** S3ResourceClassification+    s3ResourceClassification_prefix,+    s3ResourceClassification_bucketName,+    s3ResourceClassification_classificationType,++    -- ** S3ResourceClassificationUpdate+    s3ResourceClassificationUpdate_prefix,+    s3ResourceClassificationUpdate_bucketName,+    s3ResourceClassificationUpdate_classificationTypeUpdate,+  )+where++import Amazonka.Macie.AssociateMemberAccount+import Amazonka.Macie.AssociateS3Resources+import Amazonka.Macie.DisassociateMemberAccount+import Amazonka.Macie.DisassociateS3Resources+import Amazonka.Macie.ListMemberAccounts+import Amazonka.Macie.ListS3Resources+import Amazonka.Macie.Types.ClassificationType+import Amazonka.Macie.Types.ClassificationTypeUpdate+import Amazonka.Macie.Types.FailedS3Resource+import Amazonka.Macie.Types.MemberAccount+import Amazonka.Macie.Types.S3Resource+import Amazonka.Macie.Types.S3ResourceClassification+import Amazonka.Macie.Types.S3ResourceClassificationUpdate+import Amazonka.Macie.UpdateS3Resources
+ gen/Amazonka/Macie/ListMemberAccounts.hs view
@@ -0,0 +1,251 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.Macie.ListMemberAccounts+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- (Discontinued) Lists all Amazon Macie Classic member accounts for the+-- current Macie Classic administrator account.+--+-- This operation returns paginated results.+module Amazonka.Macie.ListMemberAccounts+  ( -- * Creating a Request+    ListMemberAccounts (..),+    newListMemberAccounts,++    -- * Request Lenses+    listMemberAccounts_maxResults,+    listMemberAccounts_nextToken,++    -- * Destructuring the Response+    ListMemberAccountsResponse (..),+    newListMemberAccountsResponse,++    -- * Response Lenses+    listMemberAccountsResponse_memberAccounts,+    listMemberAccountsResponse_nextToken,+    listMemberAccountsResponse_httpStatus,+  )+where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import Amazonka.Macie.Types+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newListMemberAccounts' smart constructor.+data ListMemberAccounts = ListMemberAccounts'+  { -- | (Discontinued) Use this parameter to indicate the maximum number of+    -- items that you want in the response. The default value is 250.+    maxResults :: Prelude.Maybe Prelude.Int,+    -- | (Discontinued) Use this parameter when paginating results. Set the value+    -- of this parameter to null on your first call to the @ListMemberAccounts@+    -- action. Subsequent calls to the action fill @nextToken@ in the request+    -- with the value of @nextToken@ from the previous response to continue+    -- listing data.+    nextToken :: Prelude.Maybe Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'ListMemberAccounts' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'maxResults', 'listMemberAccounts_maxResults' - (Discontinued) Use this parameter to indicate the maximum number of+-- items that you want in the response. The default value is 250.+--+-- 'nextToken', 'listMemberAccounts_nextToken' - (Discontinued) Use this parameter when paginating results. Set the value+-- of this parameter to null on your first call to the @ListMemberAccounts@+-- action. Subsequent calls to the action fill @nextToken@ in the request+-- with the value of @nextToken@ from the previous response to continue+-- listing data.+newListMemberAccounts ::+  ListMemberAccounts+newListMemberAccounts =+  ListMemberAccounts'+    { maxResults = Prelude.Nothing,+      nextToken = Prelude.Nothing+    }++-- | (Discontinued) Use this parameter to indicate the maximum number of+-- items that you want in the response. The default value is 250.+listMemberAccounts_maxResults :: Lens.Lens' ListMemberAccounts (Prelude.Maybe Prelude.Int)+listMemberAccounts_maxResults = Lens.lens (\ListMemberAccounts' {maxResults} -> maxResults) (\s@ListMemberAccounts' {} a -> s {maxResults = a} :: ListMemberAccounts)++-- | (Discontinued) Use this parameter when paginating results. Set the value+-- of this parameter to null on your first call to the @ListMemberAccounts@+-- action. Subsequent calls to the action fill @nextToken@ in the request+-- with the value of @nextToken@ from the previous response to continue+-- listing data.+listMemberAccounts_nextToken :: Lens.Lens' ListMemberAccounts (Prelude.Maybe Prelude.Text)+listMemberAccounts_nextToken = Lens.lens (\ListMemberAccounts' {nextToken} -> nextToken) (\s@ListMemberAccounts' {} a -> s {nextToken = a} :: ListMemberAccounts)++instance Core.AWSPager ListMemberAccounts where+  page rq rs+    | Core.stop+        ( rs+            Lens.^? listMemberAccountsResponse_nextToken+            Prelude.. Lens._Just+        ) =+        Prelude.Nothing+    | Core.stop+        ( rs+            Lens.^? listMemberAccountsResponse_memberAccounts+            Prelude.. Lens._Just+        ) =+        Prelude.Nothing+    | Prelude.otherwise =+        Prelude.Just+          Prelude.$ rq+          Prelude.& listMemberAccounts_nextToken+          Lens..~ rs+          Lens.^? listMemberAccountsResponse_nextToken+          Prelude.. Lens._Just++instance Core.AWSRequest ListMemberAccounts where+  type+    AWSResponse ListMemberAccounts =+      ListMemberAccountsResponse+  request overrides =+    Request.postJSON (overrides defaultService)+  response =+    Response.receiveJSON+      ( \s h x ->+          ListMemberAccountsResponse'+            Prelude.<$> (x Data..?> "memberAccounts" Core..!@ Prelude.mempty)+            Prelude.<*> (x Data..?> "nextToken")+            Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+      )++instance Prelude.Hashable ListMemberAccounts where+  hashWithSalt _salt ListMemberAccounts' {..} =+    _salt+      `Prelude.hashWithSalt` maxResults+      `Prelude.hashWithSalt` nextToken++instance Prelude.NFData ListMemberAccounts where+  rnf ListMemberAccounts' {..} =+    Prelude.rnf maxResults+      `Prelude.seq` Prelude.rnf nextToken++instance Data.ToHeaders ListMemberAccounts where+  toHeaders =+    Prelude.const+      ( Prelude.mconcat+          [ "X-Amz-Target"+              Data.=# ( "MacieService.ListMemberAccounts" ::+                          Prelude.ByteString+                      ),+            "Content-Type"+              Data.=# ( "application/x-amz-json-1.1" ::+                          Prelude.ByteString+                      )+          ]+      )++instance Data.ToJSON ListMemberAccounts where+  toJSON ListMemberAccounts' {..} =+    Data.object+      ( Prelude.catMaybes+          [ ("maxResults" Data..=) Prelude.<$> maxResults,+            ("nextToken" Data..=) Prelude.<$> nextToken+          ]+      )++instance Data.ToPath ListMemberAccounts where+  toPath = Prelude.const "/"++instance Data.ToQuery ListMemberAccounts where+  toQuery = Prelude.const Prelude.mempty++-- | /See:/ 'newListMemberAccountsResponse' smart constructor.+data ListMemberAccountsResponse = ListMemberAccountsResponse'+  { -- | (Discontinued) A list of the Amazon Macie Classic member accounts+    -- returned by the action. The current Macie Classic administrator account+    -- is also included in this list.+    memberAccounts :: Prelude.Maybe [MemberAccount],+    -- | (Discontinued) When a response is generated, if there is more data to be+    -- listed, this parameter is present in the response and contains the value+    -- to use for the @nextToken@ parameter in a subsequent pagination request.+    -- If there is no more data to be listed, this parameter is set to null.+    nextToken :: Prelude.Maybe Prelude.Text,+    -- | The response's http status code.+    httpStatus :: Prelude.Int+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'ListMemberAccountsResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'memberAccounts', 'listMemberAccountsResponse_memberAccounts' - (Discontinued) A list of the Amazon Macie Classic member accounts+-- returned by the action. The current Macie Classic administrator account+-- is also included in this list.+--+-- 'nextToken', 'listMemberAccountsResponse_nextToken' - (Discontinued) When a response is generated, if there is more data to be+-- listed, this parameter is present in the response and contains the value+-- to use for the @nextToken@ parameter in a subsequent pagination request.+-- If there is no more data to be listed, this parameter is set to null.+--+-- 'httpStatus', 'listMemberAccountsResponse_httpStatus' - The response's http status code.+newListMemberAccountsResponse ::+  -- | 'httpStatus'+  Prelude.Int ->+  ListMemberAccountsResponse+newListMemberAccountsResponse pHttpStatus_ =+  ListMemberAccountsResponse'+    { memberAccounts =+        Prelude.Nothing,+      nextToken = Prelude.Nothing,+      httpStatus = pHttpStatus_+    }++-- | (Discontinued) A list of the Amazon Macie Classic member accounts+-- returned by the action. The current Macie Classic administrator account+-- is also included in this list.+listMemberAccountsResponse_memberAccounts :: Lens.Lens' ListMemberAccountsResponse (Prelude.Maybe [MemberAccount])+listMemberAccountsResponse_memberAccounts = Lens.lens (\ListMemberAccountsResponse' {memberAccounts} -> memberAccounts) (\s@ListMemberAccountsResponse' {} a -> s {memberAccounts = a} :: ListMemberAccountsResponse) Prelude.. Lens.mapping Lens.coerced++-- | (Discontinued) When a response is generated, if there is more data to be+-- listed, this parameter is present in the response and contains the value+-- to use for the @nextToken@ parameter in a subsequent pagination request.+-- If there is no more data to be listed, this parameter is set to null.+listMemberAccountsResponse_nextToken :: Lens.Lens' ListMemberAccountsResponse (Prelude.Maybe Prelude.Text)+listMemberAccountsResponse_nextToken = Lens.lens (\ListMemberAccountsResponse' {nextToken} -> nextToken) (\s@ListMemberAccountsResponse' {} a -> s {nextToken = a} :: ListMemberAccountsResponse)++-- | The response's http status code.+listMemberAccountsResponse_httpStatus :: Lens.Lens' ListMemberAccountsResponse Prelude.Int+listMemberAccountsResponse_httpStatus = Lens.lens (\ListMemberAccountsResponse' {httpStatus} -> httpStatus) (\s@ListMemberAccountsResponse' {} a -> s {httpStatus = a} :: ListMemberAccountsResponse)++instance Prelude.NFData ListMemberAccountsResponse where+  rnf ListMemberAccountsResponse' {..} =+    Prelude.rnf memberAccounts+      `Prelude.seq` Prelude.rnf nextToken+      `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/Macie/ListS3Resources.hs view
@@ -0,0 +1,266 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.Macie.ListS3Resources+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- (Discontinued) Lists all the S3 resources associated with Amazon Macie+-- Classic. If @memberAccountId@ isn\'t specified, the action lists the S3+-- resources associated with Macie Classic for the current Macie Classic+-- administrator account. If @memberAccountId@ is specified, the action+-- lists the S3 resources associated with Macie Classic for the specified+-- member account.+--+-- This operation returns paginated results.+module Amazonka.Macie.ListS3Resources+  ( -- * Creating a Request+    ListS3Resources (..),+    newListS3Resources,++    -- * Request Lenses+    listS3Resources_maxResults,+    listS3Resources_memberAccountId,+    listS3Resources_nextToken,++    -- * Destructuring the Response+    ListS3ResourcesResponse (..),+    newListS3ResourcesResponse,++    -- * Response Lenses+    listS3ResourcesResponse_nextToken,+    listS3ResourcesResponse_s3Resources,+    listS3ResourcesResponse_httpStatus,+  )+where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import Amazonka.Macie.Types+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newListS3Resources' smart constructor.+data ListS3Resources = ListS3Resources'+  { -- | (Discontinued) Use this parameter to indicate the maximum number of+    -- items that you want in the response. The default value is 250.+    maxResults :: Prelude.Maybe Prelude.Int,+    -- | (Discontinued) The Amazon Macie Classic member account ID whose+    -- associated S3 resources you want to list.+    memberAccountId :: Prelude.Maybe Prelude.Text,+    -- | (Discontinued) Use this parameter when paginating results. Set its value+    -- to null on your first call to the @ListS3Resources@ action. Subsequent+    -- calls to the action fill @nextToken@ in the request with the value of+    -- @nextToken@ from the previous response to continue listing data.+    nextToken :: Prelude.Maybe Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'ListS3Resources' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'maxResults', 'listS3Resources_maxResults' - (Discontinued) Use this parameter to indicate the maximum number of+-- items that you want in the response. The default value is 250.+--+-- 'memberAccountId', 'listS3Resources_memberAccountId' - (Discontinued) The Amazon Macie Classic member account ID whose+-- associated S3 resources you want to list.+--+-- 'nextToken', 'listS3Resources_nextToken' - (Discontinued) Use this parameter when paginating results. Set its value+-- to null on your first call to the @ListS3Resources@ action. Subsequent+-- calls to the action fill @nextToken@ in the request with the value of+-- @nextToken@ from the previous response to continue listing data.+newListS3Resources ::+  ListS3Resources+newListS3Resources =+  ListS3Resources'+    { maxResults = Prelude.Nothing,+      memberAccountId = Prelude.Nothing,+      nextToken = Prelude.Nothing+    }++-- | (Discontinued) Use this parameter to indicate the maximum number of+-- items that you want in the response. The default value is 250.+listS3Resources_maxResults :: Lens.Lens' ListS3Resources (Prelude.Maybe Prelude.Int)+listS3Resources_maxResults = Lens.lens (\ListS3Resources' {maxResults} -> maxResults) (\s@ListS3Resources' {} a -> s {maxResults = a} :: ListS3Resources)++-- | (Discontinued) The Amazon Macie Classic member account ID whose+-- associated S3 resources you want to list.+listS3Resources_memberAccountId :: Lens.Lens' ListS3Resources (Prelude.Maybe Prelude.Text)+listS3Resources_memberAccountId = Lens.lens (\ListS3Resources' {memberAccountId} -> memberAccountId) (\s@ListS3Resources' {} a -> s {memberAccountId = a} :: ListS3Resources)++-- | (Discontinued) Use this parameter when paginating results. Set its value+-- to null on your first call to the @ListS3Resources@ action. Subsequent+-- calls to the action fill @nextToken@ in the request with the value of+-- @nextToken@ from the previous response to continue listing data.+listS3Resources_nextToken :: Lens.Lens' ListS3Resources (Prelude.Maybe Prelude.Text)+listS3Resources_nextToken = Lens.lens (\ListS3Resources' {nextToken} -> nextToken) (\s@ListS3Resources' {} a -> s {nextToken = a} :: ListS3Resources)++instance Core.AWSPager ListS3Resources where+  page rq rs+    | Core.stop+        ( rs+            Lens.^? listS3ResourcesResponse_nextToken+            Prelude.. Lens._Just+        ) =+        Prelude.Nothing+    | Core.stop+        ( rs+            Lens.^? listS3ResourcesResponse_s3Resources+            Prelude.. Lens._Just+        ) =+        Prelude.Nothing+    | Prelude.otherwise =+        Prelude.Just+          Prelude.$ rq+          Prelude.& listS3Resources_nextToken+          Lens..~ rs+          Lens.^? listS3ResourcesResponse_nextToken+          Prelude.. Lens._Just++instance Core.AWSRequest ListS3Resources where+  type+    AWSResponse ListS3Resources =+      ListS3ResourcesResponse+  request overrides =+    Request.postJSON (overrides defaultService)+  response =+    Response.receiveJSON+      ( \s h x ->+          ListS3ResourcesResponse'+            Prelude.<$> (x Data..?> "nextToken")+            Prelude.<*> (x Data..?> "s3Resources" Core..!@ Prelude.mempty)+            Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+      )++instance Prelude.Hashable ListS3Resources where+  hashWithSalt _salt ListS3Resources' {..} =+    _salt+      `Prelude.hashWithSalt` maxResults+      `Prelude.hashWithSalt` memberAccountId+      `Prelude.hashWithSalt` nextToken++instance Prelude.NFData ListS3Resources where+  rnf ListS3Resources' {..} =+    Prelude.rnf maxResults+      `Prelude.seq` Prelude.rnf memberAccountId+      `Prelude.seq` Prelude.rnf nextToken++instance Data.ToHeaders ListS3Resources where+  toHeaders =+    Prelude.const+      ( Prelude.mconcat+          [ "X-Amz-Target"+              Data.=# ( "MacieService.ListS3Resources" ::+                          Prelude.ByteString+                      ),+            "Content-Type"+              Data.=# ( "application/x-amz-json-1.1" ::+                          Prelude.ByteString+                      )+          ]+      )++instance Data.ToJSON ListS3Resources where+  toJSON ListS3Resources' {..} =+    Data.object+      ( Prelude.catMaybes+          [ ("maxResults" Data..=) Prelude.<$> maxResults,+            ("memberAccountId" Data..=)+              Prelude.<$> memberAccountId,+            ("nextToken" Data..=) Prelude.<$> nextToken+          ]+      )++instance Data.ToPath ListS3Resources where+  toPath = Prelude.const "/"++instance Data.ToQuery ListS3Resources where+  toQuery = Prelude.const Prelude.mempty++-- | /See:/ 'newListS3ResourcesResponse' smart constructor.+data ListS3ResourcesResponse = ListS3ResourcesResponse'+  { -- | (Discontinued) When a response is generated, if there is more data to be+    -- listed, this parameter is present in the response and contains the value+    -- to use for the @nextToken@ parameter in a subsequent pagination request.+    -- If there is no more data to be listed, this parameter is set to null.+    nextToken :: Prelude.Maybe Prelude.Text,+    -- | (Discontinued) A list of the associated S3 resources returned by the+    -- action.+    s3Resources :: Prelude.Maybe [S3ResourceClassification],+    -- | The response's http status code.+    httpStatus :: Prelude.Int+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'ListS3ResourcesResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'nextToken', 'listS3ResourcesResponse_nextToken' - (Discontinued) When a response is generated, if there is more data to be+-- listed, this parameter is present in the response and contains the value+-- to use for the @nextToken@ parameter in a subsequent pagination request.+-- If there is no more data to be listed, this parameter is set to null.+--+-- 's3Resources', 'listS3ResourcesResponse_s3Resources' - (Discontinued) A list of the associated S3 resources returned by the+-- action.+--+-- 'httpStatus', 'listS3ResourcesResponse_httpStatus' - The response's http status code.+newListS3ResourcesResponse ::+  -- | 'httpStatus'+  Prelude.Int ->+  ListS3ResourcesResponse+newListS3ResourcesResponse pHttpStatus_ =+  ListS3ResourcesResponse'+    { nextToken =+        Prelude.Nothing,+      s3Resources = Prelude.Nothing,+      httpStatus = pHttpStatus_+    }++-- | (Discontinued) When a response is generated, if there is more data to be+-- listed, this parameter is present in the response and contains the value+-- to use for the @nextToken@ parameter in a subsequent pagination request.+-- If there is no more data to be listed, this parameter is set to null.+listS3ResourcesResponse_nextToken :: Lens.Lens' ListS3ResourcesResponse (Prelude.Maybe Prelude.Text)+listS3ResourcesResponse_nextToken = Lens.lens (\ListS3ResourcesResponse' {nextToken} -> nextToken) (\s@ListS3ResourcesResponse' {} a -> s {nextToken = a} :: ListS3ResourcesResponse)++-- | (Discontinued) A list of the associated S3 resources returned by the+-- action.+listS3ResourcesResponse_s3Resources :: Lens.Lens' ListS3ResourcesResponse (Prelude.Maybe [S3ResourceClassification])+listS3ResourcesResponse_s3Resources = Lens.lens (\ListS3ResourcesResponse' {s3Resources} -> s3Resources) (\s@ListS3ResourcesResponse' {} a -> s {s3Resources = a} :: ListS3ResourcesResponse) Prelude.. Lens.mapping Lens.coerced++-- | The response's http status code.+listS3ResourcesResponse_httpStatus :: Lens.Lens' ListS3ResourcesResponse Prelude.Int+listS3ResourcesResponse_httpStatus = Lens.lens (\ListS3ResourcesResponse' {httpStatus} -> httpStatus) (\s@ListS3ResourcesResponse' {} a -> s {httpStatus = a} :: ListS3ResourcesResponse)++instance Prelude.NFData ListS3ResourcesResponse where+  rnf ListS3ResourcesResponse' {..} =+    Prelude.rnf nextToken+      `Prelude.seq` Prelude.rnf s3Resources+      `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/Macie/Types.hs view
@@ -0,0 +1,192 @@+{-# LANGUAGE DisambiguateRecordFields #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.Macie.Types+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.Macie.Types+  ( -- * Service Configuration+    defaultService,++    -- * Errors+    _AccessDeniedException,+    _InternalException,+    _InvalidInputException,+    _LimitExceededException,++    -- * S3ContinuousClassificationType+    S3ContinuousClassificationType (..),++    -- * S3OneTimeClassificationType+    S3OneTimeClassificationType (..),++    -- * ClassificationType+    ClassificationType (..),+    newClassificationType,+    classificationType_oneTime,+    classificationType_continuous,++    -- * ClassificationTypeUpdate+    ClassificationTypeUpdate (..),+    newClassificationTypeUpdate,+    classificationTypeUpdate_continuous,+    classificationTypeUpdate_oneTime,++    -- * FailedS3Resource+    FailedS3Resource (..),+    newFailedS3Resource,+    failedS3Resource_errorCode,+    failedS3Resource_errorMessage,+    failedS3Resource_failedItem,++    -- * MemberAccount+    MemberAccount (..),+    newMemberAccount,+    memberAccount_accountId,++    -- * S3Resource+    S3Resource (..),+    newS3Resource,+    s3Resource_prefix,+    s3Resource_bucketName,++    -- * S3ResourceClassification+    S3ResourceClassification (..),+    newS3ResourceClassification,+    s3ResourceClassification_prefix,+    s3ResourceClassification_bucketName,+    s3ResourceClassification_classificationType,++    -- * S3ResourceClassificationUpdate+    S3ResourceClassificationUpdate (..),+    newS3ResourceClassificationUpdate,+    s3ResourceClassificationUpdate_prefix,+    s3ResourceClassificationUpdate_bucketName,+    s3ResourceClassificationUpdate_classificationTypeUpdate,+  )+where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import Amazonka.Macie.Types.ClassificationType+import Amazonka.Macie.Types.ClassificationTypeUpdate+import Amazonka.Macie.Types.FailedS3Resource+import Amazonka.Macie.Types.MemberAccount+import Amazonka.Macie.Types.S3ContinuousClassificationType+import Amazonka.Macie.Types.S3OneTimeClassificationType+import Amazonka.Macie.Types.S3Resource+import Amazonka.Macie.Types.S3ResourceClassification+import Amazonka.Macie.Types.S3ResourceClassificationUpdate+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Sign.V4 as Sign++-- | API version @2017-12-19@ of the Amazon Macie SDK configuration.+defaultService :: Core.Service+defaultService =+  Core.Service+    { Core.abbrev = "Macie",+      Core.signer = Sign.v4,+      Core.endpointPrefix = "macie",+      Core.signingName = "macie",+      Core.version = "2017-12-19",+      Core.s3AddressingStyle = Core.S3AddressingStyleAuto,+      Core.endpoint = Core.defaultEndpoint defaultService,+      Core.timeout = Prelude.Just 70,+      Core.check = Core.statusSuccess,+      Core.error = Core.parseJSONError "Macie",+      Core.retry = retry+    }+  where+    retry =+      Core.Exponential+        { Core.base = 5.0e-2,+          Core.growth = 2,+          Core.attempts = 5,+          Core.check = check+        }+    check e+      | Lens.has (Core.hasStatus 502) e =+          Prelude.Just "bad_gateway"+      | Lens.has (Core.hasStatus 504) e =+          Prelude.Just "gateway_timeout"+      | Lens.has (Core.hasStatus 500) e =+          Prelude.Just "general_server_error"+      | Lens.has (Core.hasStatus 509) e =+          Prelude.Just "limit_exceeded"+      | Lens.has+          ( Core.hasCode "RequestThrottledException"+              Prelude.. Core.hasStatus 400+          )+          e =+          Prelude.Just "request_throttled_exception"+      | Lens.has (Core.hasStatus 503) e =+          Prelude.Just "service_unavailable"+      | Lens.has+          ( Core.hasCode "ThrottledException"+              Prelude.. Core.hasStatus 400+          )+          e =+          Prelude.Just "throttled_exception"+      | Lens.has+          ( Core.hasCode "Throttling"+              Prelude.. Core.hasStatus 400+          )+          e =+          Prelude.Just "throttling"+      | Lens.has+          ( Core.hasCode "ThrottlingException"+              Prelude.. Core.hasStatus 400+          )+          e =+          Prelude.Just "throttling_exception"+      | Lens.has+          ( Core.hasCode+              "ProvisionedThroughputExceededException"+              Prelude.. Core.hasStatus 400+          )+          e =+          Prelude.Just "throughput_exceeded"+      | Lens.has (Core.hasStatus 429) e =+          Prelude.Just "too_many_requests"+      | Prelude.otherwise = Prelude.Nothing++-- | (Discontinued) You do not have required permissions to access the+-- requested resource.+_AccessDeniedException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_AccessDeniedException =+  Core._MatchServiceError+    defaultService+    "AccessDeniedException"++-- | (Discontinued) Internal server error.+_InternalException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_InternalException =+  Core._MatchServiceError+    defaultService+    "InternalException"++-- | (Discontinued) The request was rejected because an invalid or+-- out-of-range value was supplied for an input parameter.+_InvalidInputException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_InvalidInputException =+  Core._MatchServiceError+    defaultService+    "InvalidInputException"++-- | (Discontinued) The request was rejected because it attempted to create+-- resources beyond the current Amazon Web Services account quotas. The+-- error code describes the quota exceeded.+_LimitExceededException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_LimitExceededException =+  Core._MatchServiceError+    defaultService+    "LimitExceededException"
+ gen/Amazonka/Macie/Types/ClassificationType.hs view
@@ -0,0 +1,112 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.Macie.Types.ClassificationType+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.Macie.Types.ClassificationType where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import Amazonka.Macie.Types.S3ContinuousClassificationType+import Amazonka.Macie.Types.S3OneTimeClassificationType+import qualified Amazonka.Prelude as Prelude++-- | (Discontinued) The classification type that Amazon Macie Classic applies+-- to the associated S3 resources.+--+-- /See:/ 'newClassificationType' smart constructor.+data ClassificationType = ClassificationType'+  { -- | (Discontinued) A one-time classification of all of the existing objects+    -- in a specified S3 bucket.+    oneTime :: S3OneTimeClassificationType,+    -- | (Discontinued) A continuous classification of the objects that are added+    -- to a specified S3 bucket. Amazon Macie Classic begins performing+    -- continuous classification after a bucket is successfully associated with+    -- Macie Classic.+    continuous :: S3ContinuousClassificationType+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'ClassificationType' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'oneTime', 'classificationType_oneTime' - (Discontinued) A one-time classification of all of the existing objects+-- in a specified S3 bucket.+--+-- 'continuous', 'classificationType_continuous' - (Discontinued) A continuous classification of the objects that are added+-- to a specified S3 bucket. Amazon Macie Classic begins performing+-- continuous classification after a bucket is successfully associated with+-- Macie Classic.+newClassificationType ::+  -- | 'oneTime'+  S3OneTimeClassificationType ->+  -- | 'continuous'+  S3ContinuousClassificationType ->+  ClassificationType+newClassificationType pOneTime_ pContinuous_ =+  ClassificationType'+    { oneTime = pOneTime_,+      continuous = pContinuous_+    }++-- | (Discontinued) A one-time classification of all of the existing objects+-- in a specified S3 bucket.+classificationType_oneTime :: Lens.Lens' ClassificationType S3OneTimeClassificationType+classificationType_oneTime = Lens.lens (\ClassificationType' {oneTime} -> oneTime) (\s@ClassificationType' {} a -> s {oneTime = a} :: ClassificationType)++-- | (Discontinued) A continuous classification of the objects that are added+-- to a specified S3 bucket. Amazon Macie Classic begins performing+-- continuous classification after a bucket is successfully associated with+-- Macie Classic.+classificationType_continuous :: Lens.Lens' ClassificationType S3ContinuousClassificationType+classificationType_continuous = Lens.lens (\ClassificationType' {continuous} -> continuous) (\s@ClassificationType' {} a -> s {continuous = a} :: ClassificationType)++instance Data.FromJSON ClassificationType where+  parseJSON =+    Data.withObject+      "ClassificationType"+      ( \x ->+          ClassificationType'+            Prelude.<$> (x Data..: "oneTime")+            Prelude.<*> (x Data..: "continuous")+      )++instance Prelude.Hashable ClassificationType where+  hashWithSalt _salt ClassificationType' {..} =+    _salt+      `Prelude.hashWithSalt` oneTime+      `Prelude.hashWithSalt` continuous++instance Prelude.NFData ClassificationType where+  rnf ClassificationType' {..} =+    Prelude.rnf oneTime+      `Prelude.seq` Prelude.rnf continuous++instance Data.ToJSON ClassificationType where+  toJSON ClassificationType' {..} =+    Data.object+      ( Prelude.catMaybes+          [ Prelude.Just ("oneTime" Data..= oneTime),+            Prelude.Just ("continuous" Data..= continuous)+          ]+      )
+ gen/Amazonka/Macie/Types/ClassificationTypeUpdate.hs view
@@ -0,0 +1,100 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.Macie.Types.ClassificationTypeUpdate+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.Macie.Types.ClassificationTypeUpdate where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import Amazonka.Macie.Types.S3ContinuousClassificationType+import Amazonka.Macie.Types.S3OneTimeClassificationType+import qualified Amazonka.Prelude as Prelude++-- | (Discontinued) The classification type that Amazon Macie Classic applies+-- to the associated S3 resources. At least one of the classification types+-- (@oneTime@ or @continuous@) must be specified.+--+-- /See:/ 'newClassificationTypeUpdate' smart constructor.+data ClassificationTypeUpdate = ClassificationTypeUpdate'+  { -- | (Discontinued) A continuous classification of the objects that are added+    -- to a specified S3 bucket. Amazon Macie Classic begins performing+    -- continuous classification after a bucket is successfully associated with+    -- Macie Classic.+    continuous :: Prelude.Maybe S3ContinuousClassificationType,+    -- | (Discontinued) A one-time classification of all of the existing objects+    -- in a specified S3 bucket.+    oneTime :: Prelude.Maybe S3OneTimeClassificationType+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'ClassificationTypeUpdate' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'continuous', 'classificationTypeUpdate_continuous' - (Discontinued) A continuous classification of the objects that are added+-- to a specified S3 bucket. Amazon Macie Classic begins performing+-- continuous classification after a bucket is successfully associated with+-- Macie Classic.+--+-- 'oneTime', 'classificationTypeUpdate_oneTime' - (Discontinued) A one-time classification of all of the existing objects+-- in a specified S3 bucket.+newClassificationTypeUpdate ::+  ClassificationTypeUpdate+newClassificationTypeUpdate =+  ClassificationTypeUpdate'+    { continuous =+        Prelude.Nothing,+      oneTime = Prelude.Nothing+    }++-- | (Discontinued) A continuous classification of the objects that are added+-- to a specified S3 bucket. Amazon Macie Classic begins performing+-- continuous classification after a bucket is successfully associated with+-- Macie Classic.+classificationTypeUpdate_continuous :: Lens.Lens' ClassificationTypeUpdate (Prelude.Maybe S3ContinuousClassificationType)+classificationTypeUpdate_continuous = Lens.lens (\ClassificationTypeUpdate' {continuous} -> continuous) (\s@ClassificationTypeUpdate' {} a -> s {continuous = a} :: ClassificationTypeUpdate)++-- | (Discontinued) A one-time classification of all of the existing objects+-- in a specified S3 bucket.+classificationTypeUpdate_oneTime :: Lens.Lens' ClassificationTypeUpdate (Prelude.Maybe S3OneTimeClassificationType)+classificationTypeUpdate_oneTime = Lens.lens (\ClassificationTypeUpdate' {oneTime} -> oneTime) (\s@ClassificationTypeUpdate' {} a -> s {oneTime = a} :: ClassificationTypeUpdate)++instance Prelude.Hashable ClassificationTypeUpdate where+  hashWithSalt _salt ClassificationTypeUpdate' {..} =+    _salt+      `Prelude.hashWithSalt` continuous+      `Prelude.hashWithSalt` oneTime++instance Prelude.NFData ClassificationTypeUpdate where+  rnf ClassificationTypeUpdate' {..} =+    Prelude.rnf continuous+      `Prelude.seq` Prelude.rnf oneTime++instance Data.ToJSON ClassificationTypeUpdate where+  toJSON ClassificationTypeUpdate' {..} =+    Data.object+      ( Prelude.catMaybes+          [ ("continuous" Data..=) Prelude.<$> continuous,+            ("oneTime" Data..=) Prelude.<$> oneTime+          ]+      )
+ gen/Amazonka/Macie/Types/FailedS3Resource.hs view
@@ -0,0 +1,97 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.Macie.Types.FailedS3Resource+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.Macie.Types.FailedS3Resource where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import Amazonka.Macie.Types.S3Resource+import qualified Amazonka.Prelude as Prelude++-- | (Discontinued) Includes details about the failed S3 resources.+--+-- /See:/ 'newFailedS3Resource' smart constructor.+data FailedS3Resource = FailedS3Resource'+  { -- | (Discontinued) The status code of a failed item.+    errorCode :: Prelude.Maybe Prelude.Text,+    -- | (Discontinued) The error message of a failed item.+    errorMessage :: Prelude.Maybe Prelude.Text,+    -- | (Discontinued) The failed S3 resources.+    failedItem :: Prelude.Maybe S3Resource+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'FailedS3Resource' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'errorCode', 'failedS3Resource_errorCode' - (Discontinued) The status code of a failed item.+--+-- 'errorMessage', 'failedS3Resource_errorMessage' - (Discontinued) The error message of a failed item.+--+-- 'failedItem', 'failedS3Resource_failedItem' - (Discontinued) The failed S3 resources.+newFailedS3Resource ::+  FailedS3Resource+newFailedS3Resource =+  FailedS3Resource'+    { errorCode = Prelude.Nothing,+      errorMessage = Prelude.Nothing,+      failedItem = Prelude.Nothing+    }++-- | (Discontinued) The status code of a failed item.+failedS3Resource_errorCode :: Lens.Lens' FailedS3Resource (Prelude.Maybe Prelude.Text)+failedS3Resource_errorCode = Lens.lens (\FailedS3Resource' {errorCode} -> errorCode) (\s@FailedS3Resource' {} a -> s {errorCode = a} :: FailedS3Resource)++-- | (Discontinued) The error message of a failed item.+failedS3Resource_errorMessage :: Lens.Lens' FailedS3Resource (Prelude.Maybe Prelude.Text)+failedS3Resource_errorMessage = Lens.lens (\FailedS3Resource' {errorMessage} -> errorMessage) (\s@FailedS3Resource' {} a -> s {errorMessage = a} :: FailedS3Resource)++-- | (Discontinued) The failed S3 resources.+failedS3Resource_failedItem :: Lens.Lens' FailedS3Resource (Prelude.Maybe S3Resource)+failedS3Resource_failedItem = Lens.lens (\FailedS3Resource' {failedItem} -> failedItem) (\s@FailedS3Resource' {} a -> s {failedItem = a} :: FailedS3Resource)++instance Data.FromJSON FailedS3Resource where+  parseJSON =+    Data.withObject+      "FailedS3Resource"+      ( \x ->+          FailedS3Resource'+            Prelude.<$> (x Data..:? "errorCode")+            Prelude.<*> (x Data..:? "errorMessage")+            Prelude.<*> (x Data..:? "failedItem")+      )++instance Prelude.Hashable FailedS3Resource where+  hashWithSalt _salt FailedS3Resource' {..} =+    _salt+      `Prelude.hashWithSalt` errorCode+      `Prelude.hashWithSalt` errorMessage+      `Prelude.hashWithSalt` failedItem++instance Prelude.NFData FailedS3Resource where+  rnf FailedS3Resource' {..} =+    Prelude.rnf errorCode+      `Prelude.seq` Prelude.rnf errorMessage+      `Prelude.seq` Prelude.rnf failedItem
+ gen/Amazonka/Macie/Types/MemberAccount.hs view
@@ -0,0 +1,71 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.Macie.Types.MemberAccount+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.Macie.Types.MemberAccount where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | (Discontinued) Contains information about the Amazon Macie Classic+-- member account.+--+-- /See:/ 'newMemberAccount' smart constructor.+data MemberAccount = MemberAccount'+  { -- | (Discontinued) The Amazon Web Services account ID of the Amazon Macie+    -- Classic member account.+    accountId :: Prelude.Maybe Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'MemberAccount' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'accountId', 'memberAccount_accountId' - (Discontinued) The Amazon Web Services account ID of the Amazon Macie+-- Classic member account.+newMemberAccount ::+  MemberAccount+newMemberAccount =+  MemberAccount' {accountId = Prelude.Nothing}++-- | (Discontinued) The Amazon Web Services account ID of the Amazon Macie+-- Classic member account.+memberAccount_accountId :: Lens.Lens' MemberAccount (Prelude.Maybe Prelude.Text)+memberAccount_accountId = Lens.lens (\MemberAccount' {accountId} -> accountId) (\s@MemberAccount' {} a -> s {accountId = a} :: MemberAccount)++instance Data.FromJSON MemberAccount where+  parseJSON =+    Data.withObject+      "MemberAccount"+      ( \x ->+          MemberAccount' Prelude.<$> (x Data..:? "accountId")+      )++instance Prelude.Hashable MemberAccount where+  hashWithSalt _salt MemberAccount' {..} =+    _salt `Prelude.hashWithSalt` accountId++instance Prelude.NFData MemberAccount where+  rnf MemberAccount' {..} = Prelude.rnf accountId
+ gen/Amazonka/Macie/Types/S3ContinuousClassificationType.hs view
@@ -0,0 +1,66 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.Macie.Types.S3ContinuousClassificationType+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.Macie.Types.S3ContinuousClassificationType+  ( S3ContinuousClassificationType+      ( ..,+        S3ContinuousClassificationType_FULL+      ),+  )+where++import qualified Amazonka.Core as Core+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++newtype S3ContinuousClassificationType = S3ContinuousClassificationType'+  { fromS3ContinuousClassificationType ::+      Data.Text+  }+  deriving stock+    ( Prelude.Show,+      Prelude.Read,+      Prelude.Eq,+      Prelude.Ord,+      Prelude.Generic+    )+  deriving newtype+    ( Prelude.Hashable,+      Prelude.NFData,+      Data.FromText,+      Data.ToText,+      Data.ToByteString,+      Data.ToLog,+      Data.ToHeader,+      Data.ToQuery,+      Data.FromJSON,+      Data.FromJSONKey,+      Data.ToJSON,+      Data.ToJSONKey,+      Data.FromXML,+      Data.ToXML+    )++pattern S3ContinuousClassificationType_FULL :: S3ContinuousClassificationType+pattern S3ContinuousClassificationType_FULL = S3ContinuousClassificationType' "FULL"++{-# COMPLETE+  S3ContinuousClassificationType_FULL,+  S3ContinuousClassificationType'+  #-}
+ gen/Amazonka/Macie/Types/S3OneTimeClassificationType.hs view
@@ -0,0 +1,71 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.Macie.Types.S3OneTimeClassificationType+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.Macie.Types.S3OneTimeClassificationType+  ( S3OneTimeClassificationType+      ( ..,+        S3OneTimeClassificationType_FULL,+        S3OneTimeClassificationType_NONE+      ),+  )+where++import qualified Amazonka.Core as Core+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++newtype S3OneTimeClassificationType = S3OneTimeClassificationType'+  { fromS3OneTimeClassificationType ::+      Data.Text+  }+  deriving stock+    ( Prelude.Show,+      Prelude.Read,+      Prelude.Eq,+      Prelude.Ord,+      Prelude.Generic+    )+  deriving newtype+    ( Prelude.Hashable,+      Prelude.NFData,+      Data.FromText,+      Data.ToText,+      Data.ToByteString,+      Data.ToLog,+      Data.ToHeader,+      Data.ToQuery,+      Data.FromJSON,+      Data.FromJSONKey,+      Data.ToJSON,+      Data.ToJSONKey,+      Data.FromXML,+      Data.ToXML+    )++pattern S3OneTimeClassificationType_FULL :: S3OneTimeClassificationType+pattern S3OneTimeClassificationType_FULL = S3OneTimeClassificationType' "FULL"++pattern S3OneTimeClassificationType_NONE :: S3OneTimeClassificationType+pattern S3OneTimeClassificationType_NONE = S3OneTimeClassificationType' "NONE"++{-# COMPLETE+  S3OneTimeClassificationType_FULL,+  S3OneTimeClassificationType_NONE,+  S3OneTimeClassificationType'+  #-}
+ gen/Amazonka/Macie/Types/S3Resource.hs view
@@ -0,0 +1,98 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.Macie.Types.S3Resource+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.Macie.Types.S3Resource where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | (Discontinued) Contains information about the S3 resource. This data+-- type is used as a request parameter in the @DisassociateS3Resources@+-- action and can be used as a response parameter in the+-- @AssociateS3Resources@ and @UpdateS3Resources@ actions.+--+-- /See:/ 'newS3Resource' smart constructor.+data S3Resource = S3Resource'+  { -- | (Discontinued) The prefix of the S3 bucket.+    prefix :: Prelude.Maybe Prelude.Text,+    -- | (Discontinued) The name of the S3 bucket.+    bucketName :: Prelude.Text+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'S3Resource' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'prefix', 's3Resource_prefix' - (Discontinued) The prefix of the S3 bucket.+--+-- 'bucketName', 's3Resource_bucketName' - (Discontinued) The name of the S3 bucket.+newS3Resource ::+  -- | 'bucketName'+  Prelude.Text ->+  S3Resource+newS3Resource pBucketName_ =+  S3Resource'+    { prefix = Prelude.Nothing,+      bucketName = pBucketName_+    }++-- | (Discontinued) The prefix of the S3 bucket.+s3Resource_prefix :: Lens.Lens' S3Resource (Prelude.Maybe Prelude.Text)+s3Resource_prefix = Lens.lens (\S3Resource' {prefix} -> prefix) (\s@S3Resource' {} a -> s {prefix = a} :: S3Resource)++-- | (Discontinued) The name of the S3 bucket.+s3Resource_bucketName :: Lens.Lens' S3Resource Prelude.Text+s3Resource_bucketName = Lens.lens (\S3Resource' {bucketName} -> bucketName) (\s@S3Resource' {} a -> s {bucketName = a} :: S3Resource)++instance Data.FromJSON S3Resource where+  parseJSON =+    Data.withObject+      "S3Resource"+      ( \x ->+          S3Resource'+            Prelude.<$> (x Data..:? "prefix")+            Prelude.<*> (x Data..: "bucketName")+      )++instance Prelude.Hashable S3Resource where+  hashWithSalt _salt S3Resource' {..} =+    _salt+      `Prelude.hashWithSalt` prefix+      `Prelude.hashWithSalt` bucketName++instance Prelude.NFData S3Resource where+  rnf S3Resource' {..} =+    Prelude.rnf prefix+      `Prelude.seq` Prelude.rnf bucketName++instance Data.ToJSON S3Resource where+  toJSON S3Resource' {..} =+    Data.object+      ( Prelude.catMaybes+          [ ("prefix" Data..=) Prelude.<$> prefix,+            Prelude.Just ("bucketName" Data..= bucketName)+          ]+      )
+ gen/Amazonka/Macie/Types/S3ResourceClassification.hs view
@@ -0,0 +1,126 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.Macie.Types.S3ResourceClassification+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.Macie.Types.S3ResourceClassification where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import Amazonka.Macie.Types.ClassificationType+import qualified Amazonka.Prelude as Prelude++-- | (Discontinued) The S3 resources that you want to associate with Amazon+-- Macie Classic for monitoring and data classification. This data type is+-- used as a request parameter in the @AssociateS3Resources@ action and a+-- response parameter in the @ListS3Resources@ action.+--+-- /See:/ 'newS3ResourceClassification' smart constructor.+data S3ResourceClassification = S3ResourceClassification'+  { -- | (Discontinued) The prefix of the S3 bucket that you want to associate+    -- with Amazon Macie Classic.+    prefix :: Prelude.Maybe Prelude.Text,+    -- | (Discontinued) The name of the S3 bucket that you want to associate with+    -- Amazon Macie Classic.+    bucketName :: Prelude.Text,+    -- | (Discontinued) The classification type that you want to specify for the+    -- resource associated with Amazon Macie Classic.+    classificationType :: ClassificationType+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'S3ResourceClassification' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'prefix', 's3ResourceClassification_prefix' - (Discontinued) The prefix of the S3 bucket that you want to associate+-- with Amazon Macie Classic.+--+-- 'bucketName', 's3ResourceClassification_bucketName' - (Discontinued) The name of the S3 bucket that you want to associate with+-- Amazon Macie Classic.+--+-- 'classificationType', 's3ResourceClassification_classificationType' - (Discontinued) The classification type that you want to specify for the+-- resource associated with Amazon Macie Classic.+newS3ResourceClassification ::+  -- | 'bucketName'+  Prelude.Text ->+  -- | 'classificationType'+  ClassificationType ->+  S3ResourceClassification+newS3ResourceClassification+  pBucketName_+  pClassificationType_ =+    S3ResourceClassification'+      { prefix = Prelude.Nothing,+        bucketName = pBucketName_,+        classificationType = pClassificationType_+      }++-- | (Discontinued) The prefix of the S3 bucket that you want to associate+-- with Amazon Macie Classic.+s3ResourceClassification_prefix :: Lens.Lens' S3ResourceClassification (Prelude.Maybe Prelude.Text)+s3ResourceClassification_prefix = Lens.lens (\S3ResourceClassification' {prefix} -> prefix) (\s@S3ResourceClassification' {} a -> s {prefix = a} :: S3ResourceClassification)++-- | (Discontinued) The name of the S3 bucket that you want to associate with+-- Amazon Macie Classic.+s3ResourceClassification_bucketName :: Lens.Lens' S3ResourceClassification Prelude.Text+s3ResourceClassification_bucketName = Lens.lens (\S3ResourceClassification' {bucketName} -> bucketName) (\s@S3ResourceClassification' {} a -> s {bucketName = a} :: S3ResourceClassification)++-- | (Discontinued) The classification type that you want to specify for the+-- resource associated with Amazon Macie Classic.+s3ResourceClassification_classificationType :: Lens.Lens' S3ResourceClassification ClassificationType+s3ResourceClassification_classificationType = Lens.lens (\S3ResourceClassification' {classificationType} -> classificationType) (\s@S3ResourceClassification' {} a -> s {classificationType = a} :: S3ResourceClassification)++instance Data.FromJSON S3ResourceClassification where+  parseJSON =+    Data.withObject+      "S3ResourceClassification"+      ( \x ->+          S3ResourceClassification'+            Prelude.<$> (x Data..:? "prefix")+            Prelude.<*> (x Data..: "bucketName")+            Prelude.<*> (x Data..: "classificationType")+      )++instance Prelude.Hashable S3ResourceClassification where+  hashWithSalt _salt S3ResourceClassification' {..} =+    _salt+      `Prelude.hashWithSalt` prefix+      `Prelude.hashWithSalt` bucketName+      `Prelude.hashWithSalt` classificationType++instance Prelude.NFData S3ResourceClassification where+  rnf S3ResourceClassification' {..} =+    Prelude.rnf prefix+      `Prelude.seq` Prelude.rnf bucketName+      `Prelude.seq` Prelude.rnf classificationType++instance Data.ToJSON S3ResourceClassification where+  toJSON S3ResourceClassification' {..} =+    Data.object+      ( Prelude.catMaybes+          [ ("prefix" Data..=) Prelude.<$> prefix,+            Prelude.Just ("bucketName" Data..= bucketName),+            Prelude.Just+              ("classificationType" Data..= classificationType)+          ]+      )
+ gen/Amazonka/Macie/Types/S3ResourceClassificationUpdate.hs view
@@ -0,0 +1,126 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.Macie.Types.S3ResourceClassificationUpdate+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.Macie.Types.S3ResourceClassificationUpdate where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import Amazonka.Macie.Types.ClassificationTypeUpdate+import qualified Amazonka.Prelude as Prelude++-- | (Discontinued) The S3 resources whose classification types you want to+-- update. This data type is used as a request parameter in the+-- @UpdateS3Resources@ action.+--+-- /See:/ 'newS3ResourceClassificationUpdate' smart constructor.+data S3ResourceClassificationUpdate = S3ResourceClassificationUpdate'+  { -- | (Discontinued) The prefix of the S3 bucket whose classification types+    -- you want to update.+    prefix :: Prelude.Maybe Prelude.Text,+    -- | (Discontinued) The name of the S3 bucket whose classification types you+    -- want to update.+    bucketName :: Prelude.Text,+    -- | (Discontinued) The classification type that you want to update for the+    -- resource associated with Amazon Macie Classic.+    classificationTypeUpdate :: ClassificationTypeUpdate+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'S3ResourceClassificationUpdate' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'prefix', 's3ResourceClassificationUpdate_prefix' - (Discontinued) The prefix of the S3 bucket whose classification types+-- you want to update.+--+-- 'bucketName', 's3ResourceClassificationUpdate_bucketName' - (Discontinued) The name of the S3 bucket whose classification types you+-- want to update.+--+-- 'classificationTypeUpdate', 's3ResourceClassificationUpdate_classificationTypeUpdate' - (Discontinued) The classification type that you want to update for the+-- resource associated with Amazon Macie Classic.+newS3ResourceClassificationUpdate ::+  -- | 'bucketName'+  Prelude.Text ->+  -- | 'classificationTypeUpdate'+  ClassificationTypeUpdate ->+  S3ResourceClassificationUpdate+newS3ResourceClassificationUpdate+  pBucketName_+  pClassificationTypeUpdate_ =+    S3ResourceClassificationUpdate'+      { prefix =+          Prelude.Nothing,+        bucketName = pBucketName_,+        classificationTypeUpdate =+          pClassificationTypeUpdate_+      }++-- | (Discontinued) The prefix of the S3 bucket whose classification types+-- you want to update.+s3ResourceClassificationUpdate_prefix :: Lens.Lens' S3ResourceClassificationUpdate (Prelude.Maybe Prelude.Text)+s3ResourceClassificationUpdate_prefix = Lens.lens (\S3ResourceClassificationUpdate' {prefix} -> prefix) (\s@S3ResourceClassificationUpdate' {} a -> s {prefix = a} :: S3ResourceClassificationUpdate)++-- | (Discontinued) The name of the S3 bucket whose classification types you+-- want to update.+s3ResourceClassificationUpdate_bucketName :: Lens.Lens' S3ResourceClassificationUpdate Prelude.Text+s3ResourceClassificationUpdate_bucketName = Lens.lens (\S3ResourceClassificationUpdate' {bucketName} -> bucketName) (\s@S3ResourceClassificationUpdate' {} a -> s {bucketName = a} :: S3ResourceClassificationUpdate)++-- | (Discontinued) The classification type that you want to update for the+-- resource associated with Amazon Macie Classic.+s3ResourceClassificationUpdate_classificationTypeUpdate :: Lens.Lens' S3ResourceClassificationUpdate ClassificationTypeUpdate+s3ResourceClassificationUpdate_classificationTypeUpdate = Lens.lens (\S3ResourceClassificationUpdate' {classificationTypeUpdate} -> classificationTypeUpdate) (\s@S3ResourceClassificationUpdate' {} a -> s {classificationTypeUpdate = a} :: S3ResourceClassificationUpdate)++instance+  Prelude.Hashable+    S3ResourceClassificationUpdate+  where+  hashWithSalt+    _salt+    S3ResourceClassificationUpdate' {..} =+      _salt+        `Prelude.hashWithSalt` prefix+        `Prelude.hashWithSalt` bucketName+        `Prelude.hashWithSalt` classificationTypeUpdate++instance+  Prelude.NFData+    S3ResourceClassificationUpdate+  where+  rnf S3ResourceClassificationUpdate' {..} =+    Prelude.rnf prefix+      `Prelude.seq` Prelude.rnf bucketName+      `Prelude.seq` Prelude.rnf classificationTypeUpdate++instance Data.ToJSON S3ResourceClassificationUpdate where+  toJSON S3ResourceClassificationUpdate' {..} =+    Data.object+      ( Prelude.catMaybes+          [ ("prefix" Data..=) Prelude.<$> prefix,+            Prelude.Just ("bucketName" Data..= bucketName),+            Prelude.Just+              ( "classificationTypeUpdate"+                  Data..= classificationTypeUpdate+              )+          ]+      )
+ gen/Amazonka/Macie/UpdateS3Resources.hs view
@@ -0,0 +1,211 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.Macie.UpdateS3Resources+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- (Discontinued) Updates the classification types for the specified S3+-- resources. If @memberAccountId@ isn\'t specified, the action updates the+-- classification types of the S3 resources associated with Amazon Macie+-- Classic for the current Macie Classic administrator account. If+-- @memberAccountId@ is specified, the action updates the classification+-- types of the S3 resources associated with Macie Classic for the+-- specified member account.+module Amazonka.Macie.UpdateS3Resources+  ( -- * Creating a Request+    UpdateS3Resources (..),+    newUpdateS3Resources,++    -- * Request Lenses+    updateS3Resources_memberAccountId,+    updateS3Resources_s3ResourcesUpdate,++    -- * Destructuring the Response+    UpdateS3ResourcesResponse (..),+    newUpdateS3ResourcesResponse,++    -- * Response Lenses+    updateS3ResourcesResponse_failedS3Resources,+    updateS3ResourcesResponse_httpStatus,+  )+where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import Amazonka.Macie.Types+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response++-- | /See:/ 'newUpdateS3Resources' smart constructor.+data UpdateS3Resources = UpdateS3Resources'+  { -- | (Discontinued) The Amazon Web Services account ID of the Amazon Macie+    -- Classic member account whose S3 resources\' classification types you+    -- want to update.+    memberAccountId :: Prelude.Maybe Prelude.Text,+    -- | (Discontinued) The S3 resources whose classification types you want to+    -- update.+    s3ResourcesUpdate :: [S3ResourceClassificationUpdate]+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'UpdateS3Resources' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'memberAccountId', 'updateS3Resources_memberAccountId' - (Discontinued) The Amazon Web Services account ID of the Amazon Macie+-- Classic member account whose S3 resources\' classification types you+-- want to update.+--+-- 's3ResourcesUpdate', 'updateS3Resources_s3ResourcesUpdate' - (Discontinued) The S3 resources whose classification types you want to+-- update.+newUpdateS3Resources ::+  UpdateS3Resources+newUpdateS3Resources =+  UpdateS3Resources'+    { memberAccountId =+        Prelude.Nothing,+      s3ResourcesUpdate = Prelude.mempty+    }++-- | (Discontinued) The Amazon Web Services account ID of the Amazon Macie+-- Classic member account whose S3 resources\' classification types you+-- want to update.+updateS3Resources_memberAccountId :: Lens.Lens' UpdateS3Resources (Prelude.Maybe Prelude.Text)+updateS3Resources_memberAccountId = Lens.lens (\UpdateS3Resources' {memberAccountId} -> memberAccountId) (\s@UpdateS3Resources' {} a -> s {memberAccountId = a} :: UpdateS3Resources)++-- | (Discontinued) The S3 resources whose classification types you want to+-- update.+updateS3Resources_s3ResourcesUpdate :: Lens.Lens' UpdateS3Resources [S3ResourceClassificationUpdate]+updateS3Resources_s3ResourcesUpdate = Lens.lens (\UpdateS3Resources' {s3ResourcesUpdate} -> s3ResourcesUpdate) (\s@UpdateS3Resources' {} a -> s {s3ResourcesUpdate = a} :: UpdateS3Resources) Prelude.. Lens.coerced++instance Core.AWSRequest UpdateS3Resources where+  type+    AWSResponse UpdateS3Resources =+      UpdateS3ResourcesResponse+  request overrides =+    Request.postJSON (overrides defaultService)+  response =+    Response.receiveJSON+      ( \s h x ->+          UpdateS3ResourcesResponse'+            Prelude.<$> ( x+                            Data..?> "failedS3Resources"+                            Core..!@ Prelude.mempty+                        )+            Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+      )++instance Prelude.Hashable UpdateS3Resources where+  hashWithSalt _salt UpdateS3Resources' {..} =+    _salt+      `Prelude.hashWithSalt` memberAccountId+      `Prelude.hashWithSalt` s3ResourcesUpdate++instance Prelude.NFData UpdateS3Resources where+  rnf UpdateS3Resources' {..} =+    Prelude.rnf memberAccountId+      `Prelude.seq` Prelude.rnf s3ResourcesUpdate++instance Data.ToHeaders UpdateS3Resources where+  toHeaders =+    Prelude.const+      ( Prelude.mconcat+          [ "X-Amz-Target"+              Data.=# ( "MacieService.UpdateS3Resources" ::+                          Prelude.ByteString+                      ),+            "Content-Type"+              Data.=# ( "application/x-amz-json-1.1" ::+                          Prelude.ByteString+                      )+          ]+      )++instance Data.ToJSON UpdateS3Resources where+  toJSON UpdateS3Resources' {..} =+    Data.object+      ( Prelude.catMaybes+          [ ("memberAccountId" Data..=)+              Prelude.<$> memberAccountId,+            Prelude.Just+              ("s3ResourcesUpdate" Data..= s3ResourcesUpdate)+          ]+      )++instance Data.ToPath UpdateS3Resources where+  toPath = Prelude.const "/"++instance Data.ToQuery UpdateS3Resources where+  toQuery = Prelude.const Prelude.mempty++-- | /See:/ 'newUpdateS3ResourcesResponse' smart constructor.+data UpdateS3ResourcesResponse = UpdateS3ResourcesResponse'+  { -- | (Discontinued) The S3 resources whose classification types can\'t be+    -- updated. An error code and an error message are provided for each failed+    -- item.+    failedS3Resources :: Prelude.Maybe [FailedS3Resource],+    -- | The response's http status code.+    httpStatus :: Prelude.Int+  }+  deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'UpdateS3ResourcesResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'failedS3Resources', 'updateS3ResourcesResponse_failedS3Resources' - (Discontinued) The S3 resources whose classification types can\'t be+-- updated. An error code and an error message are provided for each failed+-- item.+--+-- 'httpStatus', 'updateS3ResourcesResponse_httpStatus' - The response's http status code.+newUpdateS3ResourcesResponse ::+  -- | 'httpStatus'+  Prelude.Int ->+  UpdateS3ResourcesResponse+newUpdateS3ResourcesResponse pHttpStatus_ =+  UpdateS3ResourcesResponse'+    { failedS3Resources =+        Prelude.Nothing,+      httpStatus = pHttpStatus_+    }++-- | (Discontinued) The S3 resources whose classification types can\'t be+-- updated. An error code and an error message are provided for each failed+-- item.+updateS3ResourcesResponse_failedS3Resources :: Lens.Lens' UpdateS3ResourcesResponse (Prelude.Maybe [FailedS3Resource])+updateS3ResourcesResponse_failedS3Resources = Lens.lens (\UpdateS3ResourcesResponse' {failedS3Resources} -> failedS3Resources) (\s@UpdateS3ResourcesResponse' {} a -> s {failedS3Resources = a} :: UpdateS3ResourcesResponse) Prelude.. Lens.mapping Lens.coerced++-- | The response's http status code.+updateS3ResourcesResponse_httpStatus :: Lens.Lens' UpdateS3ResourcesResponse Prelude.Int+updateS3ResourcesResponse_httpStatus = Lens.lens (\UpdateS3ResourcesResponse' {httpStatus} -> httpStatus) (\s@UpdateS3ResourcesResponse' {} a -> s {httpStatus = a} :: UpdateS3ResourcesResponse)++instance Prelude.NFData UpdateS3ResourcesResponse where+  rnf UpdateS3ResourcesResponse' {..} =+    Prelude.rnf failedS3Resources+      `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/Macie/Waiters.hs view
@@ -0,0 +1,24 @@+{-# LANGUAGE DisambiguateRecordFields #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Amazonka.Macie.Waiters+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.Macie.Waiters where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import Amazonka.Macie.Lens+import Amazonka.Macie.Types+import qualified Amazonka.Prelude as Prelude
+ src/.gitkeep view
+ test/Main.hs view
@@ -0,0 +1,23 @@+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- |+-- Module      : Main+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Main (main) where++import Test.Amazonka.Macie+import Test.Amazonka.Macie.Internal+import Test.Tasty++main :: IO ()+main =+  defaultMain $+    testGroup+      "Macie"+      [ testGroup "tests" tests,+        testGroup "fixtures" fixtures+      ]
+ test/Test/Amazonka/Gen/Macie.hs view
@@ -0,0 +1,178 @@+{-# OPTIONS_GHC -fno-warn-orphans #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module      : Test.Amazonka.Gen.Macie+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Test.Amazonka.Gen.Macie where++import Amazonka.Macie+import qualified Data.Proxy as Proxy+import Test.Amazonka.Fixture+import Test.Amazonka.Macie.Internal+import Test.Amazonka.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"+--         [ requestAssociateMemberAccount $+--             newAssociateMemberAccount+--+--         , requestAssociateS3Resources $+--             newAssociateS3Resources+--+--         , requestDisassociateMemberAccount $+--             newDisassociateMemberAccount+--+--         , requestDisassociateS3Resources $+--             newDisassociateS3Resources+--+--         , requestListMemberAccounts $+--             newListMemberAccounts+--+--         , requestListS3Resources $+--             newListS3Resources+--+--         , requestUpdateS3Resources $+--             newUpdateS3Resources+--+--           ]++--     , testGroup "response"+--         [ responseAssociateMemberAccount $+--             newAssociateMemberAccountResponse+--+--         , responseAssociateS3Resources $+--             newAssociateS3ResourcesResponse+--+--         , responseDisassociateMemberAccount $+--             newDisassociateMemberAccountResponse+--+--         , responseDisassociateS3Resources $+--             newDisassociateS3ResourcesResponse+--+--         , responseListMemberAccounts $+--             newListMemberAccountsResponse+--+--         , responseListS3Resources $+--             newListS3ResourcesResponse+--+--         , responseUpdateS3Resources $+--             newUpdateS3ResourcesResponse+--+--           ]+--     ]++-- Requests++requestAssociateMemberAccount :: AssociateMemberAccount -> TestTree+requestAssociateMemberAccount =+  req+    "AssociateMemberAccount"+    "fixture/AssociateMemberAccount.yaml"++requestAssociateS3Resources :: AssociateS3Resources -> TestTree+requestAssociateS3Resources =+  req+    "AssociateS3Resources"+    "fixture/AssociateS3Resources.yaml"++requestDisassociateMemberAccount :: DisassociateMemberAccount -> TestTree+requestDisassociateMemberAccount =+  req+    "DisassociateMemberAccount"+    "fixture/DisassociateMemberAccount.yaml"++requestDisassociateS3Resources :: DisassociateS3Resources -> TestTree+requestDisassociateS3Resources =+  req+    "DisassociateS3Resources"+    "fixture/DisassociateS3Resources.yaml"++requestListMemberAccounts :: ListMemberAccounts -> TestTree+requestListMemberAccounts =+  req+    "ListMemberAccounts"+    "fixture/ListMemberAccounts.yaml"++requestListS3Resources :: ListS3Resources -> TestTree+requestListS3Resources =+  req+    "ListS3Resources"+    "fixture/ListS3Resources.yaml"++requestUpdateS3Resources :: UpdateS3Resources -> TestTree+requestUpdateS3Resources =+  req+    "UpdateS3Resources"+    "fixture/UpdateS3Resources.yaml"++-- Responses++responseAssociateMemberAccount :: AssociateMemberAccountResponse -> TestTree+responseAssociateMemberAccount =+  res+    "AssociateMemberAccountResponse"+    "fixture/AssociateMemberAccountResponse.proto"+    defaultService+    (Proxy.Proxy :: Proxy.Proxy AssociateMemberAccount)++responseAssociateS3Resources :: AssociateS3ResourcesResponse -> TestTree+responseAssociateS3Resources =+  res+    "AssociateS3ResourcesResponse"+    "fixture/AssociateS3ResourcesResponse.proto"+    defaultService+    (Proxy.Proxy :: Proxy.Proxy AssociateS3Resources)++responseDisassociateMemberAccount :: DisassociateMemberAccountResponse -> TestTree+responseDisassociateMemberAccount =+  res+    "DisassociateMemberAccountResponse"+    "fixture/DisassociateMemberAccountResponse.proto"+    defaultService+    (Proxy.Proxy :: Proxy.Proxy DisassociateMemberAccount)++responseDisassociateS3Resources :: DisassociateS3ResourcesResponse -> TestTree+responseDisassociateS3Resources =+  res+    "DisassociateS3ResourcesResponse"+    "fixture/DisassociateS3ResourcesResponse.proto"+    defaultService+    (Proxy.Proxy :: Proxy.Proxy DisassociateS3Resources)++responseListMemberAccounts :: ListMemberAccountsResponse -> TestTree+responseListMemberAccounts =+  res+    "ListMemberAccountsResponse"+    "fixture/ListMemberAccountsResponse.proto"+    defaultService+    (Proxy.Proxy :: Proxy.Proxy ListMemberAccounts)++responseListS3Resources :: ListS3ResourcesResponse -> TestTree+responseListS3Resources =+  res+    "ListS3ResourcesResponse"+    "fixture/ListS3ResourcesResponse.proto"+    defaultService+    (Proxy.Proxy :: Proxy.Proxy ListS3Resources)++responseUpdateS3Resources :: UpdateS3ResourcesResponse -> TestTree+responseUpdateS3Resources =+  res+    "UpdateS3ResourcesResponse"+    "fixture/UpdateS3ResourcesResponse.proto"+    defaultService+    (Proxy.Proxy :: Proxy.Proxy UpdateS3Resources)
+ test/Test/Amazonka/Macie.hs view
@@ -0,0 +1,20 @@+-- |+-- Module      : Test.Amazonka.Macie+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Test.Amazonka.Macie+  ( tests,+    fixtures,+  )+where++import Test.Tasty (TestTree)++tests :: [TestTree]+tests = []++fixtures :: [TestTree]+fixtures = []
+ test/Test/Amazonka/Macie/Internal.hs view
@@ -0,0 +1,8 @@+-- |+-- Module      : Test.Amazonka.Macie.Internal+-- Copyright   : (c) 2013-2023 Brendan Hay+-- License     : Mozilla Public License, v. 2.0.+-- Maintainer  : Brendan Hay+-- Stability   : auto-generated+-- Portability : non-portable (GHC extensions)+module Test.Amazonka.Macie.Internal where