amazonka-config (empty) → 0.0.0
raw patch · 17 files changed
+2752/−0 lines, 17 filesdep +amazonka-coredep +basesetup-changed
Dependencies added: amazonka-core, base
Files
- LICENSE +373/−0
- README.md +26/−0
- Setup.hs +2/−0
- amazonka-config.cabal +59/−0
- gen/Network/AWS/Config.hs +45/−0
- gen/Network/AWS/Config/DeleteDeliveryChannel.hs +95/−0
- gen/Network/AWS/Config/DeliverConfigSnapshot.hs +116/−0
- gen/Network/AWS/Config/DescribeConfigurationRecorderStatus.hs +130/−0
- gen/Network/AWS/Config/DescribeConfigurationRecorders.hs +129/−0
- gen/Network/AWS/Config/DescribeDeliveryChannelStatus.hs +128/−0
- gen/Network/AWS/Config/DescribeDeliveryChannels.hs +126/−0
- gen/Network/AWS/Config/GetResourceConfigHistory.hs +192/−0
- gen/Network/AWS/Config/PutConfigurationRecorder.hs +97/−0
- gen/Network/AWS/Config/PutDeliveryChannel.hs +100/−0
- gen/Network/AWS/Config/StartConfigurationRecorder.hs +96/−0
- gen/Network/AWS/Config/StopConfigurationRecorder.hs +95/−0
- gen/Network/AWS/Config/Types.hs +943/−0
+ LICENSE view
@@ -0,0 +1,373 @@+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.++Exhibit B - "Incompatible With Secondary Licenses" Notice+---------------------------------------------------------++ This Source Code Form is "Incompatible With Secondary Licenses", as+ defined by the Mozilla Public License, v. 2.0.
+ README.md view
@@ -0,0 +1,26 @@+# Amazon Config SDK++> _Warning:_ This is an experimental preview release which is still under heavy development and not intended for public consumption, _caveat emptor_!++* [description](#description)+* [Contribute](#contribute)+* [Licence](#licence)++## Description++Amazon Config is a fully managed service that provides you with an Amazon resource inventory, configuration history, and configuration change notifications to enable security and governance. With Amazon Config you can discover existing Amazon resources, export a complete inventory of your Amazon resources with all configuration details, and determine how a resource was configured at any point in time. These capabilities enable compliance auditing, security analysis, resource change tracking, and troubleshooting.++Documentation is available via [Hackage](http://hackage.haskell.org/package/amazonka-config)+and [AWS API Reference](http://docs.aws.amazon.com/config/latest/APIReference/Welcome.html).+++## 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-config` is released under the [Mozilla Public License Version 2.0](http://www.mozilla.org/MPL/).
+ Setup.hs view
@@ -0,0 +1,2 @@+import Distribution.Simple+main = defaultMain
+ amazonka-config.cabal view
@@ -0,0 +1,59 @@+name: amazonka-config+version: 0.0.0+synopsis: Amazon Config SDK.+homepage: https://github.com/brendanhay/amazonka+license: OtherLicense+license-file: LICENSE+author: Brendan Hay+maintainer: Brendan Hay <brendan.g.hay@gmail.com>+copyright: Copyright (c) 2013-2014 Brendan Hay+category: Network, AWS, Cloud+build-type: Simple+extra-source-files: README.md+cabal-version: >= 1.10++description:+ Amazon Config is a fully managed service that provides you with an+ Amazon resource inventory, configuration history, and configuration+ change notifications to enable security and governance. With Amazon+ Config you can discover existing Amazon resources, export a complete+ inventory of your Amazon resources with all configuration details, and+ determine how a resource was configured at any point in time. These+ capabilities enable compliance auditing, security analysis, resource+ change tracking, and troubleshooting.+ .+ /See:/ <http://docs.aws.amazon.com/config/latest/APIReference/Welcome.html AWS API Reference>+ .+ /Warning:/ This is an experimental preview release which is still under+ heavy development and not intended for public consumption, caveat emptor!++source-repository head+ type: git+ location: git://github.com/brendanhay/amazonka.git++library+ default-language: Haskell2010+ hs-source-dirs: src gen++ ghc-options: -Wall++ exposed-modules:+ Network.AWS.Config+ , Network.AWS.Config.DeleteDeliveryChannel+ , Network.AWS.Config.DeliverConfigSnapshot+ , Network.AWS.Config.DescribeConfigurationRecorderStatus+ , Network.AWS.Config.DescribeConfigurationRecorders+ , Network.AWS.Config.DescribeDeliveryChannelStatus+ , Network.AWS.Config.DescribeDeliveryChannels+ , Network.AWS.Config.GetResourceConfigHistory+ , Network.AWS.Config.PutConfigurationRecorder+ , Network.AWS.Config.PutDeliveryChannel+ , Network.AWS.Config.StartConfigurationRecorder+ , Network.AWS.Config.StopConfigurationRecorder+ , Network.AWS.Config.Types++ other-modules:++ build-depends:+ amazonka-core+ , base >= 4.7 && < 5
+ gen/Network/AWS/Config.hs view
@@ -0,0 +1,45 @@+-- Module : Network.AWS.Config+-- Copyright : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>+-- License : This Source Code Form is subject to the terms of+-- the Mozilla Public License, v. 2.0.+-- A copy of the MPL can be found in the LICENSE file or+-- you can obtain it at http://mozilla.org/MPL/2.0/.+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability : experimental+-- Portability : non-portable (GHC extensions)++-- | Amazon Config is a fully managed service that provides you with an Amazon+-- resource inventory, configuration history, and configuration change+-- notifications to enable security and governance. With Amazon Config you can+-- discover existing Amazon resources, export a complete inventory of your+-- Amazon resources with all configuration details, and determine how a+-- resource was configured at any point in time. These capabilities enable+-- compliance auditing, security analysis, resource change tracking, and+-- troubleshooting.+module Network.AWS.Config+ ( module Network.AWS.Config.DeleteDeliveryChannel+ , module Network.AWS.Config.DeliverConfigSnapshot+ , module Network.AWS.Config.DescribeConfigurationRecorderStatus+ , module Network.AWS.Config.DescribeConfigurationRecorders+ , module Network.AWS.Config.DescribeDeliveryChannelStatus+ , module Network.AWS.Config.DescribeDeliveryChannels+ , module Network.AWS.Config.GetResourceConfigHistory+ , module Network.AWS.Config.PutConfigurationRecorder+ , module Network.AWS.Config.PutDeliveryChannel+ , module Network.AWS.Config.StartConfigurationRecorder+ , module Network.AWS.Config.StopConfigurationRecorder+ , module Network.AWS.Config.Types+ ) where++import Network.AWS.Config.DeleteDeliveryChannel+import Network.AWS.Config.DeliverConfigSnapshot+import Network.AWS.Config.DescribeConfigurationRecorderStatus+import Network.AWS.Config.DescribeConfigurationRecorders+import Network.AWS.Config.DescribeDeliveryChannelStatus+import Network.AWS.Config.DescribeDeliveryChannels+import Network.AWS.Config.GetResourceConfigHistory+import Network.AWS.Config.PutConfigurationRecorder+import Network.AWS.Config.PutDeliveryChannel+import Network.AWS.Config.StartConfigurationRecorder+import Network.AWS.Config.StopConfigurationRecorder+import Network.AWS.Config.Types
+ gen/Network/AWS/Config/DeleteDeliveryChannel.hs view
@@ -0,0 +1,95 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE FlexibleInstances #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Module : Network.AWS.Config.DeleteDeliveryChannel+-- Copyright : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>+-- License : This Source Code Form is subject to the terms of+-- the Mozilla Public License, v. 2.0.+-- A copy of the MPL can be found in the LICENSE file or+-- you can obtain it at http://mozilla.org/MPL/2.0/.+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability : experimental+-- Portability : non-portable (GHC extensions)++-- | Deletes the specified delivery channel. The delivery channel cannot be+-- deleted if it is the only delivery channel and the configuration recorder+-- is still running. To delete the delivery channel, stop the running+-- configuration recorder using the StopConfigurationRecorder action.+--+-- <http://docs.aws.amazon.com/config/latest/APIReference/API_DeleteDeliveryChannel.html>+module Network.AWS.Config.DeleteDeliveryChannel+ (+ -- * Request+ DeleteDeliveryChannel+ -- ** Request constructor+ , deleteDeliveryChannel+ -- ** Request lenses+ , ddcDeliveryChannelName++ -- * Response+ , DeleteDeliveryChannelResponse+ -- ** Response constructor+ , deleteDeliveryChannelResponse+ ) where++import Network.AWS.Prelude+import Network.AWS.Request.JSON+import Network.AWS.Config.Types+import qualified GHC.Exts++newtype DeleteDeliveryChannel = DeleteDeliveryChannel+ { _ddcDeliveryChannelName :: Text+ } deriving (Eq, Ord, Show, Monoid, IsString)++-- | 'DeleteDeliveryChannel' constructor.+--+-- The fields accessible through corresponding lenses are:+--+-- * 'ddcDeliveryChannelName' @::@ 'Text'+--+deleteDeliveryChannel :: Text -- ^ 'ddcDeliveryChannelName'+ -> DeleteDeliveryChannel+deleteDeliveryChannel p1 = DeleteDeliveryChannel+ { _ddcDeliveryChannelName = p1+ }++-- | The name of the delivery channel to delete.+ddcDeliveryChannelName :: Lens' DeleteDeliveryChannel Text+ddcDeliveryChannelName =+ lens _ddcDeliveryChannelName (\s a -> s { _ddcDeliveryChannelName = a })++data DeleteDeliveryChannelResponse = DeleteDeliveryChannelResponse+ deriving (Eq, Ord, Show, Generic)++-- | 'DeleteDeliveryChannelResponse' constructor.+deleteDeliveryChannelResponse :: DeleteDeliveryChannelResponse+deleteDeliveryChannelResponse = DeleteDeliveryChannelResponse++instance ToPath DeleteDeliveryChannel where+ toPath = const "/"++instance ToQuery DeleteDeliveryChannel where+ toQuery = const mempty++instance ToHeaders DeleteDeliveryChannel++instance ToJSON DeleteDeliveryChannel where+ toJSON DeleteDeliveryChannel{..} = object+ [ "DeliveryChannelName" .= _ddcDeliveryChannelName+ ]++instance AWSRequest DeleteDeliveryChannel where+ type Sv DeleteDeliveryChannel = Config+ type Rs DeleteDeliveryChannel = DeleteDeliveryChannelResponse++ request = post "DeleteDeliveryChannel"+ response = nullResponse DeleteDeliveryChannelResponse
+ gen/Network/AWS/Config/DeliverConfigSnapshot.hs view
@@ -0,0 +1,116 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE FlexibleInstances #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Module : Network.AWS.Config.DeliverConfigSnapshot+-- Copyright : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>+-- License : This Source Code Form is subject to the terms of+-- the Mozilla Public License, v. 2.0.+-- A copy of the MPL can be found in the LICENSE file or+-- you can obtain it at http://mozilla.org/MPL/2.0/.+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability : experimental+-- Portability : non-portable (GHC extensions)++-- | Schedules delivery of a configuration snapshot to the Amazon S3 bucket in+-- the specified delivery channel. After the delivery has started, AWS Config+-- sends following notifications using an Amazon SNS topic that you have+-- specified. Notification of starting the delivery. Notification of delivery+-- completed, if the delivery was successfully completed. Notification of+-- delivery failure, if the delivery failed to complete.+--+-- <http://docs.aws.amazon.com/config/latest/APIReference/API_DeliverConfigSnapshot.html>+module Network.AWS.Config.DeliverConfigSnapshot+ (+ -- * Request+ DeliverConfigSnapshot+ -- ** Request constructor+ , deliverConfigSnapshot+ -- ** Request lenses+ , dcsDeliveryChannelName++ -- * Response+ , DeliverConfigSnapshotResponse+ -- ** Response constructor+ , deliverConfigSnapshotResponse+ -- ** Response lenses+ , dcsrConfigSnapshotId+ ) where++import Network.AWS.Prelude+import Network.AWS.Request.JSON+import Network.AWS.Config.Types+import qualified GHC.Exts++newtype DeliverConfigSnapshot = DeliverConfigSnapshot+ { _dcsDeliveryChannelName :: Text+ } deriving (Eq, Ord, Show, Monoid, IsString)++-- | 'DeliverConfigSnapshot' constructor.+--+-- The fields accessible through corresponding lenses are:+--+-- * 'dcsDeliveryChannelName' @::@ 'Text'+--+deliverConfigSnapshot :: Text -- ^ 'dcsDeliveryChannelName'+ -> DeliverConfigSnapshot+deliverConfigSnapshot p1 = DeliverConfigSnapshot+ { _dcsDeliveryChannelName = p1+ }++-- | The name of the delivery channel through which the snapshot is delivered.+dcsDeliveryChannelName :: Lens' DeliverConfigSnapshot Text+dcsDeliveryChannelName =+ lens _dcsDeliveryChannelName (\s a -> s { _dcsDeliveryChannelName = a })++newtype DeliverConfigSnapshotResponse = DeliverConfigSnapshotResponse+ { _dcsrConfigSnapshotId :: Maybe Text+ } deriving (Eq, Ord, Show, Monoid)++-- | 'DeliverConfigSnapshotResponse' constructor.+--+-- The fields accessible through corresponding lenses are:+--+-- * 'dcsrConfigSnapshotId' @::@ 'Maybe' 'Text'+--+deliverConfigSnapshotResponse :: DeliverConfigSnapshotResponse+deliverConfigSnapshotResponse = DeliverConfigSnapshotResponse+ { _dcsrConfigSnapshotId = Nothing+ }++-- | The ID of the snapshot that is being created.+dcsrConfigSnapshotId :: Lens' DeliverConfigSnapshotResponse (Maybe Text)+dcsrConfigSnapshotId =+ lens _dcsrConfigSnapshotId (\s a -> s { _dcsrConfigSnapshotId = a })++instance ToPath DeliverConfigSnapshot where+ toPath = const "/"++instance ToQuery DeliverConfigSnapshot where+ toQuery = const mempty++instance ToHeaders DeliverConfigSnapshot++instance ToJSON DeliverConfigSnapshot where+ toJSON DeliverConfigSnapshot{..} = object+ [ "deliveryChannelName" .= _dcsDeliveryChannelName+ ]++instance AWSRequest DeliverConfigSnapshot where+ type Sv DeliverConfigSnapshot = Config+ type Rs DeliverConfigSnapshot = DeliverConfigSnapshotResponse++ request = post "DeliverConfigSnapshot"+ response = jsonResponse++instance FromJSON DeliverConfigSnapshotResponse where+ parseJSON = withObject "DeliverConfigSnapshotResponse" $ \o -> DeliverConfigSnapshotResponse+ <$> o .:? "configSnapshotId"
+ gen/Network/AWS/Config/DescribeConfigurationRecorderStatus.hs view
@@ -0,0 +1,130 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE FlexibleInstances #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Module : Network.AWS.Config.DescribeConfigurationRecorderStatus+-- Copyright : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>+-- License : This Source Code Form is subject to the terms of+-- the Mozilla Public License, v. 2.0.+-- A copy of the MPL can be found in the LICENSE file or+-- you can obtain it at http://mozilla.org/MPL/2.0/.+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability : experimental+-- Portability : non-portable (GHC extensions)++-- | Returns the current status of the specified configuration recorder. If a+-- configuration recorder is not specified, this action returns the status of+-- all configuration recorder associated with the account.+--+-- <http://docs.aws.amazon.com/config/latest/APIReference/API_DescribeConfigurationRecorderStatus.html>+module Network.AWS.Config.DescribeConfigurationRecorderStatus+ (+ -- * Request+ DescribeConfigurationRecorderStatus+ -- ** Request constructor+ , describeConfigurationRecorderStatus+ -- ** Request lenses+ , dcrsConfigurationRecorderNames++ -- * Response+ , DescribeConfigurationRecorderStatusResponse+ -- ** Response constructor+ , describeConfigurationRecorderStatusResponse+ -- ** Response lenses+ , dcrsrConfigurationRecordersStatus+ ) where++import Network.AWS.Prelude+import Network.AWS.Request.JSON+import Network.AWS.Config.Types+import qualified GHC.Exts++newtype DescribeConfigurationRecorderStatus = DescribeConfigurationRecorderStatus+ { _dcrsConfigurationRecorderNames :: List "ConfigurationRecorderNames" Text+ } deriving (Eq, Ord, Show, Monoid, Semigroup)++instance GHC.Exts.IsList DescribeConfigurationRecorderStatus where+ type Item DescribeConfigurationRecorderStatus = Text++ fromList = DescribeConfigurationRecorderStatus . GHC.Exts.fromList+ toList = GHC.Exts.toList . _dcrsConfigurationRecorderNames++-- | 'DescribeConfigurationRecorderStatus' constructor.+--+-- The fields accessible through corresponding lenses are:+--+-- * 'dcrsConfigurationRecorderNames' @::@ ['Text']+--+describeConfigurationRecorderStatus :: DescribeConfigurationRecorderStatus+describeConfigurationRecorderStatus = DescribeConfigurationRecorderStatus+ { _dcrsConfigurationRecorderNames = mempty+ }++-- | The name(s) of the configuration recorder. If the name is not specified,+-- the action returns the current status of all the configuration recorders+-- associated with the account.+dcrsConfigurationRecorderNames :: Lens' DescribeConfigurationRecorderStatus [Text]+dcrsConfigurationRecorderNames =+ lens _dcrsConfigurationRecorderNames+ (\s a -> s { _dcrsConfigurationRecorderNames = a })+ . _List++newtype DescribeConfigurationRecorderStatusResponse = DescribeConfigurationRecorderStatusResponse+ { _dcrsrConfigurationRecordersStatus :: List "ConfigurationRecordersStatus" ConfigurationRecorderStatus+ } deriving (Eq, Show, Monoid, Semigroup)++instance GHC.Exts.IsList DescribeConfigurationRecorderStatusResponse where+ type Item DescribeConfigurationRecorderStatusResponse = ConfigurationRecorderStatus++ fromList = DescribeConfigurationRecorderStatusResponse . GHC.Exts.fromList+ toList = GHC.Exts.toList . _dcrsrConfigurationRecordersStatus++-- | 'DescribeConfigurationRecorderStatusResponse' constructor.+--+-- The fields accessible through corresponding lenses are:+--+-- * 'dcrsrConfigurationRecordersStatus' @::@ ['ConfigurationRecorderStatus']+--+describeConfigurationRecorderStatusResponse :: DescribeConfigurationRecorderStatusResponse+describeConfigurationRecorderStatusResponse = DescribeConfigurationRecorderStatusResponse+ { _dcrsrConfigurationRecordersStatus = mempty+ }++-- | A list that contains status of the specified recorders.+dcrsrConfigurationRecordersStatus :: Lens' DescribeConfigurationRecorderStatusResponse [ConfigurationRecorderStatus]+dcrsrConfigurationRecordersStatus =+ lens _dcrsrConfigurationRecordersStatus+ (\s a -> s { _dcrsrConfigurationRecordersStatus = a })+ . _List++instance ToPath DescribeConfigurationRecorderStatus where+ toPath = const "/"++instance ToQuery DescribeConfigurationRecorderStatus where+ toQuery = const mempty++instance ToHeaders DescribeConfigurationRecorderStatus++instance ToJSON DescribeConfigurationRecorderStatus where+ toJSON DescribeConfigurationRecorderStatus{..} = object+ [ "ConfigurationRecorderNames" .= _dcrsConfigurationRecorderNames+ ]++instance AWSRequest DescribeConfigurationRecorderStatus where+ type Sv DescribeConfigurationRecorderStatus = Config+ type Rs DescribeConfigurationRecorderStatus = DescribeConfigurationRecorderStatusResponse++ request = post "DescribeConfigurationRecorderStatus"+ response = jsonResponse++instance FromJSON DescribeConfigurationRecorderStatusResponse where+ parseJSON = withObject "DescribeConfigurationRecorderStatusResponse" $ \o -> DescribeConfigurationRecorderStatusResponse+ <$> o .: "ConfigurationRecordersStatus"
+ gen/Network/AWS/Config/DescribeConfigurationRecorders.hs view
@@ -0,0 +1,129 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE FlexibleInstances #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Module : Network.AWS.Config.DescribeConfigurationRecorders+-- Copyright : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>+-- License : This Source Code Form is subject to the terms of+-- the Mozilla Public License, v. 2.0.+-- A copy of the MPL can be found in the LICENSE file or+-- you can obtain it at http://mozilla.org/MPL/2.0/.+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability : experimental+-- Portability : non-portable (GHC extensions)++-- | Returns the name of one or more specified configuration recorders. If the+-- recorder name is not specified, this action returns the names of all the+-- configuration recorders associated with the account.+--+-- <http://docs.aws.amazon.com/config/latest/APIReference/API_DescribeConfigurationRecorders.html>+module Network.AWS.Config.DescribeConfigurationRecorders+ (+ -- * Request+ DescribeConfigurationRecorders+ -- ** Request constructor+ , describeConfigurationRecorders+ -- ** Request lenses+ , dcrConfigurationRecorderNames++ -- * Response+ , DescribeConfigurationRecordersResponse+ -- ** Response constructor+ , describeConfigurationRecordersResponse+ -- ** Response lenses+ , dcrrConfigurationRecorders+ ) where++import Network.AWS.Prelude+import Network.AWS.Request.JSON+import Network.AWS.Config.Types+import qualified GHC.Exts++newtype DescribeConfigurationRecorders = DescribeConfigurationRecorders+ { _dcrConfigurationRecorderNames :: List "ConfigurationRecorderNames" Text+ } deriving (Eq, Ord, Show, Monoid, Semigroup)++instance GHC.Exts.IsList DescribeConfigurationRecorders where+ type Item DescribeConfigurationRecorders = Text++ fromList = DescribeConfigurationRecorders . GHC.Exts.fromList+ toList = GHC.Exts.toList . _dcrConfigurationRecorderNames++-- | 'DescribeConfigurationRecorders' constructor.+--+-- The fields accessible through corresponding lenses are:+--+-- * 'dcrConfigurationRecorderNames' @::@ ['Text']+--+describeConfigurationRecorders :: DescribeConfigurationRecorders+describeConfigurationRecorders = DescribeConfigurationRecorders+ { _dcrConfigurationRecorderNames = mempty+ }++-- | A list of configuration recorder names.+dcrConfigurationRecorderNames :: Lens' DescribeConfigurationRecorders [Text]+dcrConfigurationRecorderNames =+ lens _dcrConfigurationRecorderNames+ (\s a -> s { _dcrConfigurationRecorderNames = a })+ . _List++newtype DescribeConfigurationRecordersResponse = DescribeConfigurationRecordersResponse+ { _dcrrConfigurationRecorders :: List "ConfigurationRecorders" ConfigurationRecorder+ } deriving (Eq, Show, Monoid, Semigroup)++instance GHC.Exts.IsList DescribeConfigurationRecordersResponse where+ type Item DescribeConfigurationRecordersResponse = ConfigurationRecorder++ fromList = DescribeConfigurationRecordersResponse . GHC.Exts.fromList+ toList = GHC.Exts.toList . _dcrrConfigurationRecorders++-- | 'DescribeConfigurationRecordersResponse' constructor.+--+-- The fields accessible through corresponding lenses are:+--+-- * 'dcrrConfigurationRecorders' @::@ ['ConfigurationRecorder']+--+describeConfigurationRecordersResponse :: DescribeConfigurationRecordersResponse+describeConfigurationRecordersResponse = DescribeConfigurationRecordersResponse+ { _dcrrConfigurationRecorders = mempty+ }++-- | A list that contains the descriptions of the specified configuration+-- recorders.+dcrrConfigurationRecorders :: Lens' DescribeConfigurationRecordersResponse [ConfigurationRecorder]+dcrrConfigurationRecorders =+ lens _dcrrConfigurationRecorders+ (\s a -> s { _dcrrConfigurationRecorders = a })+ . _List++instance ToPath DescribeConfigurationRecorders where+ toPath = const "/"++instance ToQuery DescribeConfigurationRecorders where+ toQuery = const mempty++instance ToHeaders DescribeConfigurationRecorders++instance ToJSON DescribeConfigurationRecorders where+ toJSON DescribeConfigurationRecorders{..} = object+ [ "ConfigurationRecorderNames" .= _dcrConfigurationRecorderNames+ ]++instance AWSRequest DescribeConfigurationRecorders where+ type Sv DescribeConfigurationRecorders = Config+ type Rs DescribeConfigurationRecorders = DescribeConfigurationRecordersResponse++ request = post "DescribeConfigurationRecorders"+ response = jsonResponse++instance FromJSON DescribeConfigurationRecordersResponse where+ parseJSON = withObject "DescribeConfigurationRecordersResponse" $ \o -> DescribeConfigurationRecordersResponse+ <$> o .: "ConfigurationRecorders"
+ gen/Network/AWS/Config/DescribeDeliveryChannelStatus.hs view
@@ -0,0 +1,128 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE FlexibleInstances #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Module : Network.AWS.Config.DescribeDeliveryChannelStatus+-- Copyright : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>+-- License : This Source Code Form is subject to the terms of+-- the Mozilla Public License, v. 2.0.+-- A copy of the MPL can be found in the LICENSE file or+-- you can obtain it at http://mozilla.org/MPL/2.0/.+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability : experimental+-- Portability : non-portable (GHC extensions)++-- | Returns the current status of the specified delivery channel. If a delivery+-- channel is not specified, this action returns the current status of all+-- delivery channels associated with the account.+--+-- <http://docs.aws.amazon.com/config/latest/APIReference/API_DescribeDeliveryChannelStatus.html>+module Network.AWS.Config.DescribeDeliveryChannelStatus+ (+ -- * Request+ DescribeDeliveryChannelStatus+ -- ** Request constructor+ , describeDeliveryChannelStatus+ -- ** Request lenses+ , ddcsDeliveryChannelNames++ -- * Response+ , DescribeDeliveryChannelStatusResponse+ -- ** Response constructor+ , describeDeliveryChannelStatusResponse+ -- ** Response lenses+ , ddcsrDeliveryChannelsStatus+ ) where++import Network.AWS.Prelude+import Network.AWS.Request.JSON+import Network.AWS.Config.Types+import qualified GHC.Exts++newtype DescribeDeliveryChannelStatus = DescribeDeliveryChannelStatus+ { _ddcsDeliveryChannelNames :: List "DeliveryChannelNames" Text+ } deriving (Eq, Ord, Show, Monoid, Semigroup)++instance GHC.Exts.IsList DescribeDeliveryChannelStatus where+ type Item DescribeDeliveryChannelStatus = Text++ fromList = DescribeDeliveryChannelStatus . GHC.Exts.fromList+ toList = GHC.Exts.toList . _ddcsDeliveryChannelNames++-- | 'DescribeDeliveryChannelStatus' constructor.+--+-- The fields accessible through corresponding lenses are:+--+-- * 'ddcsDeliveryChannelNames' @::@ ['Text']+--+describeDeliveryChannelStatus :: DescribeDeliveryChannelStatus+describeDeliveryChannelStatus = DescribeDeliveryChannelStatus+ { _ddcsDeliveryChannelNames = mempty+ }++-- | A list of delivery channel names.+ddcsDeliveryChannelNames :: Lens' DescribeDeliveryChannelStatus [Text]+ddcsDeliveryChannelNames =+ lens _ddcsDeliveryChannelNames+ (\s a -> s { _ddcsDeliveryChannelNames = a })+ . _List++newtype DescribeDeliveryChannelStatusResponse = DescribeDeliveryChannelStatusResponse+ { _ddcsrDeliveryChannelsStatus :: List "DeliveryChannelsStatus" DeliveryChannelStatus+ } deriving (Eq, Show, Monoid, Semigroup)++instance GHC.Exts.IsList DescribeDeliveryChannelStatusResponse where+ type Item DescribeDeliveryChannelStatusResponse = DeliveryChannelStatus++ fromList = DescribeDeliveryChannelStatusResponse . GHC.Exts.fromList+ toList = GHC.Exts.toList . _ddcsrDeliveryChannelsStatus++-- | 'DescribeDeliveryChannelStatusResponse' constructor.+--+-- The fields accessible through corresponding lenses are:+--+-- * 'ddcsrDeliveryChannelsStatus' @::@ ['DeliveryChannelStatus']+--+describeDeliveryChannelStatusResponse :: DescribeDeliveryChannelStatusResponse+describeDeliveryChannelStatusResponse = DescribeDeliveryChannelStatusResponse+ { _ddcsrDeliveryChannelsStatus = mempty+ }++-- | A list that contains the status of a specified delivery channel.+ddcsrDeliveryChannelsStatus :: Lens' DescribeDeliveryChannelStatusResponse [DeliveryChannelStatus]+ddcsrDeliveryChannelsStatus =+ lens _ddcsrDeliveryChannelsStatus+ (\s a -> s { _ddcsrDeliveryChannelsStatus = a })+ . _List++instance ToPath DescribeDeliveryChannelStatus where+ toPath = const "/"++instance ToQuery DescribeDeliveryChannelStatus where+ toQuery = const mempty++instance ToHeaders DescribeDeliveryChannelStatus++instance ToJSON DescribeDeliveryChannelStatus where+ toJSON DescribeDeliveryChannelStatus{..} = object+ [ "DeliveryChannelNames" .= _ddcsDeliveryChannelNames+ ]++instance AWSRequest DescribeDeliveryChannelStatus where+ type Sv DescribeDeliveryChannelStatus = Config+ type Rs DescribeDeliveryChannelStatus = DescribeDeliveryChannelStatusResponse++ request = post "DescribeDeliveryChannelStatus"+ response = jsonResponse++instance FromJSON DescribeDeliveryChannelStatusResponse where+ parseJSON = withObject "DescribeDeliveryChannelStatusResponse" $ \o -> DescribeDeliveryChannelStatusResponse+ <$> o .: "DeliveryChannelsStatus"
+ gen/Network/AWS/Config/DescribeDeliveryChannels.hs view
@@ -0,0 +1,126 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE FlexibleInstances #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Module : Network.AWS.Config.DescribeDeliveryChannels+-- Copyright : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>+-- License : This Source Code Form is subject to the terms of+-- the Mozilla Public License, v. 2.0.+-- A copy of the MPL can be found in the LICENSE file or+-- you can obtain it at http://mozilla.org/MPL/2.0/.+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability : experimental+-- Portability : non-portable (GHC extensions)++-- | Returns details about the specified delivery channel. If a delivery channel+-- is not specified, this action returns the details of all delivery channels+-- associated with the account.+--+-- <http://docs.aws.amazon.com/config/latest/APIReference/API_DescribeDeliveryChannels.html>+module Network.AWS.Config.DescribeDeliveryChannels+ (+ -- * Request+ DescribeDeliveryChannels+ -- ** Request constructor+ , describeDeliveryChannels+ -- ** Request lenses+ , ddcDeliveryChannelNames++ -- * Response+ , DescribeDeliveryChannelsResponse+ -- ** Response constructor+ , describeDeliveryChannelsResponse+ -- ** Response lenses+ , ddcrDeliveryChannels+ ) where++import Network.AWS.Prelude+import Network.AWS.Request.JSON+import Network.AWS.Config.Types+import qualified GHC.Exts++newtype DescribeDeliveryChannels = DescribeDeliveryChannels+ { _ddcDeliveryChannelNames :: List "DeliveryChannelNames" Text+ } deriving (Eq, Ord, Show, Monoid, Semigroup)++instance GHC.Exts.IsList DescribeDeliveryChannels where+ type Item DescribeDeliveryChannels = Text++ fromList = DescribeDeliveryChannels . GHC.Exts.fromList+ toList = GHC.Exts.toList . _ddcDeliveryChannelNames++-- | 'DescribeDeliveryChannels' constructor.+--+-- The fields accessible through corresponding lenses are:+--+-- * 'ddcDeliveryChannelNames' @::@ ['Text']+--+describeDeliveryChannels :: DescribeDeliveryChannels+describeDeliveryChannels = DescribeDeliveryChannels+ { _ddcDeliveryChannelNames = mempty+ }++-- | A list of delivery channel names.+ddcDeliveryChannelNames :: Lens' DescribeDeliveryChannels [Text]+ddcDeliveryChannelNames =+ lens _ddcDeliveryChannelNames (\s a -> s { _ddcDeliveryChannelNames = a })+ . _List++newtype DescribeDeliveryChannelsResponse = DescribeDeliveryChannelsResponse+ { _ddcrDeliveryChannels :: List "DeliveryChannels" DeliveryChannel+ } deriving (Eq, Show, Monoid, Semigroup)++instance GHC.Exts.IsList DescribeDeliveryChannelsResponse where+ type Item DescribeDeliveryChannelsResponse = DeliveryChannel++ fromList = DescribeDeliveryChannelsResponse . GHC.Exts.fromList+ toList = GHC.Exts.toList . _ddcrDeliveryChannels++-- | 'DescribeDeliveryChannelsResponse' constructor.+--+-- The fields accessible through corresponding lenses are:+--+-- * 'ddcrDeliveryChannels' @::@ ['DeliveryChannel']+--+describeDeliveryChannelsResponse :: DescribeDeliveryChannelsResponse+describeDeliveryChannelsResponse = DescribeDeliveryChannelsResponse+ { _ddcrDeliveryChannels = mempty+ }++-- | A list that contains the descriptions of the specified delivery channel.+ddcrDeliveryChannels :: Lens' DescribeDeliveryChannelsResponse [DeliveryChannel]+ddcrDeliveryChannels =+ lens _ddcrDeliveryChannels (\s a -> s { _ddcrDeliveryChannels = a })+ . _List++instance ToPath DescribeDeliveryChannels where+ toPath = const "/"++instance ToQuery DescribeDeliveryChannels where+ toQuery = const mempty++instance ToHeaders DescribeDeliveryChannels++instance ToJSON DescribeDeliveryChannels where+ toJSON DescribeDeliveryChannels{..} = object+ [ "DeliveryChannelNames" .= _ddcDeliveryChannelNames+ ]++instance AWSRequest DescribeDeliveryChannels where+ type Sv DescribeDeliveryChannels = Config+ type Rs DescribeDeliveryChannels = DescribeDeliveryChannelsResponse++ request = post "DescribeDeliveryChannels"+ response = jsonResponse++instance FromJSON DescribeDeliveryChannelsResponse where+ parseJSON = withObject "DescribeDeliveryChannelsResponse" $ \o -> DescribeDeliveryChannelsResponse+ <$> o .: "DeliveryChannels"
+ gen/Network/AWS/Config/GetResourceConfigHistory.hs view
@@ -0,0 +1,192 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE FlexibleInstances #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Module : Network.AWS.Config.GetResourceConfigHistory+-- Copyright : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>+-- License : This Source Code Form is subject to the terms of+-- the Mozilla Public License, v. 2.0.+-- A copy of the MPL can be found in the LICENSE file or+-- you can obtain it at http://mozilla.org/MPL/2.0/.+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability : experimental+-- Portability : non-portable (GHC extensions)++-- | Returns a list of configuration items for the specified resource. The list+-- contains details about each state of the resource during the specified time+-- interval. You can specify a limit on the number of results returned on the+-- page. If a limit is specified, a nextToken is returned as part of the+-- result that you can use to continue this request.+--+-- <http://docs.aws.amazon.com/config/latest/APIReference/API_GetResourceConfigHistory.html>+module Network.AWS.Config.GetResourceConfigHistory+ (+ -- * Request+ GetResourceConfigHistory+ -- ** Request constructor+ , getResourceConfigHistory+ -- ** Request lenses+ , grchChronologicalOrder+ , grchEarlierTime+ , grchLaterTime+ , grchLimit+ , grchNextToken+ , grchResourceId+ , grchResourceType++ -- * Response+ , GetResourceConfigHistoryResponse+ -- ** Response constructor+ , getResourceConfigHistoryResponse+ -- ** Response lenses+ , grchrConfigurationItems+ , grchrNextToken+ ) where++import Network.AWS.Prelude+import Network.AWS.Request.JSON+import Network.AWS.Config.Types+import qualified GHC.Exts++data GetResourceConfigHistory = GetResourceConfigHistory+ { _grchChronologicalOrder :: Maybe Text+ , _grchEarlierTime :: Maybe RFC822+ , _grchLaterTime :: Maybe RFC822+ , _grchLimit :: Maybe Nat+ , _grchNextToken :: Maybe Text+ , _grchResourceId :: Text+ , _grchResourceType :: Text+ } deriving (Eq, Ord, Show)++-- | 'GetResourceConfigHistory' constructor.+--+-- The fields accessible through corresponding lenses are:+--+-- * 'grchChronologicalOrder' @::@ 'Maybe' 'Text'+--+-- * 'grchEarlierTime' @::@ 'Maybe' 'UTCTime'+--+-- * 'grchLaterTime' @::@ 'Maybe' 'UTCTime'+--+-- * 'grchLimit' @::@ 'Maybe' 'Natural'+--+-- * 'grchNextToken' @::@ 'Maybe' 'Text'+--+-- * 'grchResourceId' @::@ 'Text'+--+-- * 'grchResourceType' @::@ 'Text'+--+getResourceConfigHistory :: Text -- ^ 'grchResourceType'+ -> Text -- ^ 'grchResourceId'+ -> GetResourceConfigHistory+getResourceConfigHistory p1 p2 = GetResourceConfigHistory+ { _grchResourceType = p1+ , _grchResourceId = p2+ , _grchLaterTime = Nothing+ , _grchEarlierTime = Nothing+ , _grchChronologicalOrder = Nothing+ , _grchLimit = Nothing+ , _grchNextToken = Nothing+ }++-- | The chronological order for configuration items listed. By default the+-- results are listed in reverse chronological order.+grchChronologicalOrder :: Lens' GetResourceConfigHistory (Maybe Text)+grchChronologicalOrder =+ lens _grchChronologicalOrder (\s a -> s { _grchChronologicalOrder = a })++-- | The time stamp that indicates an earlier time. If not specified, the+-- action returns paginated results that contain configuration items that+-- start from when the first configuration item was recorded.+grchEarlierTime :: Lens' GetResourceConfigHistory (Maybe UTCTime)+grchEarlierTime = lens _grchEarlierTime (\s a -> s { _grchEarlierTime = a }) . mapping _Time++-- | The time stamp that indicates a later time. If not specified, current+-- time is taken.+grchLaterTime :: Lens' GetResourceConfigHistory (Maybe UTCTime)+grchLaterTime = lens _grchLaterTime (\s a -> s { _grchLaterTime = a }) . mapping _Time++-- | The maximum number of configuration items returned in each page. The+-- default is 10. You cannot specify a limit greater than 100.+grchLimit :: Lens' GetResourceConfigHistory (Maybe Natural)+grchLimit = lens _grchLimit (\s a -> s { _grchLimit = a }) . mapping _Nat++-- | An optional parameter used for pagination of the results.+grchNextToken :: Lens' GetResourceConfigHistory (Maybe Text)+grchNextToken = lens _grchNextToken (\s a -> s { _grchNextToken = a })++-- | The ID of the resource (for example., sg-xxxxxx).+grchResourceId :: Lens' GetResourceConfigHistory Text+grchResourceId = lens _grchResourceId (\s a -> s { _grchResourceId = a })++-- | The resource type.+grchResourceType :: Lens' GetResourceConfigHistory Text+grchResourceType = lens _grchResourceType (\s a -> s { _grchResourceType = a })++data GetResourceConfigHistoryResponse = GetResourceConfigHistoryResponse+ { _grchrConfigurationItems :: List "configurationItems" ConfigurationItem+ , _grchrNextToken :: Maybe Text+ } deriving (Eq, Show)++-- | 'GetResourceConfigHistoryResponse' constructor.+--+-- The fields accessible through corresponding lenses are:+--+-- * 'grchrConfigurationItems' @::@ ['ConfigurationItem']+--+-- * 'grchrNextToken' @::@ 'Maybe' 'Text'+--+getResourceConfigHistoryResponse :: GetResourceConfigHistoryResponse+getResourceConfigHistoryResponse = GetResourceConfigHistoryResponse+ { _grchrConfigurationItems = mempty+ , _grchrNextToken = Nothing+ }++-- | A list that contains the configuration history of one or more resources.+grchrConfigurationItems :: Lens' GetResourceConfigHistoryResponse [ConfigurationItem]+grchrConfigurationItems =+ lens _grchrConfigurationItems (\s a -> s { _grchrConfigurationItems = a })+ . _List++-- | A token used for pagination of results.+grchrNextToken :: Lens' GetResourceConfigHistoryResponse (Maybe Text)+grchrNextToken = lens _grchrNextToken (\s a -> s { _grchrNextToken = a })++instance ToPath GetResourceConfigHistory where+ toPath = const "/"++instance ToQuery GetResourceConfigHistory where+ toQuery = const mempty++instance ToHeaders GetResourceConfigHistory++instance ToJSON GetResourceConfigHistory where+ toJSON GetResourceConfigHistory{..} = object+ [ "resourceType" .= _grchResourceType+ , "resourceId" .= _grchResourceId+ , "laterTime" .= _grchLaterTime+ , "earlierTime" .= _grchEarlierTime+ , "chronologicalOrder" .= _grchChronologicalOrder+ , "limit" .= _grchLimit+ , "nextToken" .= _grchNextToken+ ]++instance AWSRequest GetResourceConfigHistory where+ type Sv GetResourceConfigHistory = Config+ type Rs GetResourceConfigHistory = GetResourceConfigHistoryResponse++ request = post "GetResourceConfigHistory"+ response = jsonResponse++instance FromJSON GetResourceConfigHistoryResponse where+ parseJSON = withObject "GetResourceConfigHistoryResponse" $ \o -> GetResourceConfigHistoryResponse+ <$> o .: "configurationItems"+ <*> o .:? "nextToken"
+ gen/Network/AWS/Config/PutConfigurationRecorder.hs view
@@ -0,0 +1,97 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE FlexibleInstances #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Module : Network.AWS.Config.PutConfigurationRecorder+-- Copyright : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>+-- License : This Source Code Form is subject to the terms of+-- the Mozilla Public License, v. 2.0.+-- A copy of the MPL can be found in the LICENSE file or+-- you can obtain it at http://mozilla.org/MPL/2.0/.+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability : experimental+-- Portability : non-portable (GHC extensions)++-- | Creates a new configuration recorder to record the resource configurations.+-- You can use this action to change the role (roleARN) of an existing+-- recorder. To change the role, call the action on the existing configuration+-- recorder and specify a role.+--+-- <http://docs.aws.amazon.com/config/latest/APIReference/API_PutConfigurationRecorder.html>+module Network.AWS.Config.PutConfigurationRecorder+ (+ -- * Request+ PutConfigurationRecorder+ -- ** Request constructor+ , putConfigurationRecorder+ -- ** Request lenses+ , pcrConfigurationRecorder++ -- * Response+ , PutConfigurationRecorderResponse+ -- ** Response constructor+ , putConfigurationRecorderResponse+ ) where++import Network.AWS.Prelude+import Network.AWS.Request.JSON+import Network.AWS.Config.Types+import qualified GHC.Exts++newtype PutConfigurationRecorder = PutConfigurationRecorder+ { _pcrConfigurationRecorder :: ConfigurationRecorder+ } deriving (Eq, Show)++-- | 'PutConfigurationRecorder' constructor.+--+-- The fields accessible through corresponding lenses are:+--+-- * 'pcrConfigurationRecorder' @::@ 'ConfigurationRecorder'+--+putConfigurationRecorder :: ConfigurationRecorder -- ^ 'pcrConfigurationRecorder'+ -> PutConfigurationRecorder+putConfigurationRecorder p1 = PutConfigurationRecorder+ { _pcrConfigurationRecorder = p1+ }++-- | The configuration recorder object that records each configuration change+-- made to the resources.+pcrConfigurationRecorder :: Lens' PutConfigurationRecorder ConfigurationRecorder+pcrConfigurationRecorder =+ lens _pcrConfigurationRecorder+ (\s a -> s { _pcrConfigurationRecorder = a })++data PutConfigurationRecorderResponse = PutConfigurationRecorderResponse+ deriving (Eq, Ord, Show, Generic)++-- | 'PutConfigurationRecorderResponse' constructor.+putConfigurationRecorderResponse :: PutConfigurationRecorderResponse+putConfigurationRecorderResponse = PutConfigurationRecorderResponse++instance ToPath PutConfigurationRecorder where+ toPath = const "/"++instance ToQuery PutConfigurationRecorder where+ toQuery = const mempty++instance ToHeaders PutConfigurationRecorder++instance ToJSON PutConfigurationRecorder where+ toJSON PutConfigurationRecorder{..} = object+ [ "ConfigurationRecorder" .= _pcrConfigurationRecorder+ ]++instance AWSRequest PutConfigurationRecorder where+ type Sv PutConfigurationRecorder = Config+ type Rs PutConfigurationRecorder = PutConfigurationRecorderResponse++ request = post "PutConfigurationRecorder"+ response = nullResponse PutConfigurationRecorderResponse
+ gen/Network/AWS/Config/PutDeliveryChannel.hs view
@@ -0,0 +1,100 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE FlexibleInstances #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Module : Network.AWS.Config.PutDeliveryChannel+-- Copyright : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>+-- License : This Source Code Form is subject to the terms of+-- the Mozilla Public License, v. 2.0.+-- A copy of the MPL can be found in the LICENSE file or+-- you can obtain it at http://mozilla.org/MPL/2.0/.+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability : experimental+-- Portability : non-portable (GHC extensions)++-- | Creates a new delivery channel object to deliver the configuration+-- information to an Amazon S3 bucket, and to an Amazon SNS topic. You can use+-- this action to change the Amazon S3 bucket or an Amazon SNS topic of the+-- existing delivery channel. To change the Amazon S3 bucket or an Amazon SNS+-- topic, call this action and specify the changed values for the S3 bucket+-- and the SNS topic. If you specify a different value for either the S3+-- bucket or the SNS topic, this action will keep the existing value for the+-- parameter that is not changed.+--+-- <http://docs.aws.amazon.com/config/latest/APIReference/API_PutDeliveryChannel.html>+module Network.AWS.Config.PutDeliveryChannel+ (+ -- * Request+ PutDeliveryChannel+ -- ** Request constructor+ , putDeliveryChannel+ -- ** Request lenses+ , pdcDeliveryChannel++ -- * Response+ , PutDeliveryChannelResponse+ -- ** Response constructor+ , putDeliveryChannelResponse+ ) where++import Network.AWS.Prelude+import Network.AWS.Request.JSON+import Network.AWS.Config.Types+import qualified GHC.Exts++newtype PutDeliveryChannel = PutDeliveryChannel+ { _pdcDeliveryChannel :: DeliveryChannel+ } deriving (Eq, Show)++-- | 'PutDeliveryChannel' constructor.+--+-- The fields accessible through corresponding lenses are:+--+-- * 'pdcDeliveryChannel' @::@ 'DeliveryChannel'+--+putDeliveryChannel :: DeliveryChannel -- ^ 'pdcDeliveryChannel'+ -> PutDeliveryChannel+putDeliveryChannel p1 = PutDeliveryChannel+ { _pdcDeliveryChannel = p1+ }++-- | The configuration delivery channel object that delivers the configuration+-- information to an Amazon S3 bucket, and to an Amazon SNS topic.+pdcDeliveryChannel :: Lens' PutDeliveryChannel DeliveryChannel+pdcDeliveryChannel =+ lens _pdcDeliveryChannel (\s a -> s { _pdcDeliveryChannel = a })++data PutDeliveryChannelResponse = PutDeliveryChannelResponse+ deriving (Eq, Ord, Show, Generic)++-- | 'PutDeliveryChannelResponse' constructor.+putDeliveryChannelResponse :: PutDeliveryChannelResponse+putDeliveryChannelResponse = PutDeliveryChannelResponse++instance ToPath PutDeliveryChannel where+ toPath = const "/"++instance ToQuery PutDeliveryChannel where+ toQuery = const mempty++instance ToHeaders PutDeliveryChannel++instance ToJSON PutDeliveryChannel where+ toJSON PutDeliveryChannel{..} = object+ [ "DeliveryChannel" .= _pdcDeliveryChannel+ ]++instance AWSRequest PutDeliveryChannel where+ type Sv PutDeliveryChannel = Config+ type Rs PutDeliveryChannel = PutDeliveryChannelResponse++ request = post "PutDeliveryChannel"+ response = nullResponse PutDeliveryChannelResponse
+ gen/Network/AWS/Config/StartConfigurationRecorder.hs view
@@ -0,0 +1,96 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE FlexibleInstances #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Module : Network.AWS.Config.StartConfigurationRecorder+-- Copyright : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>+-- License : This Source Code Form is subject to the terms of+-- the Mozilla Public License, v. 2.0.+-- A copy of the MPL can be found in the LICENSE file or+-- you can obtain it at http://mozilla.org/MPL/2.0/.+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability : experimental+-- Portability : non-portable (GHC extensions)++-- | Starts recording configurations of all the resources associated with the+-- account. You must have created at least one delivery channel to+-- successfully start the configuration recorder.+--+-- <http://docs.aws.amazon.com/config/latest/APIReference/API_StartConfigurationRecorder.html>+module Network.AWS.Config.StartConfigurationRecorder+ (+ -- * Request+ StartConfigurationRecorder+ -- ** Request constructor+ , startConfigurationRecorder+ -- ** Request lenses+ , scr1ConfigurationRecorderName++ -- * Response+ , StartConfigurationRecorderResponse+ -- ** Response constructor+ , startConfigurationRecorderResponse+ ) where++import Network.AWS.Prelude+import Network.AWS.Request.JSON+import Network.AWS.Config.Types+import qualified GHC.Exts++newtype StartConfigurationRecorder = StartConfigurationRecorder+ { _scr1ConfigurationRecorderName :: Text+ } deriving (Eq, Ord, Show, Monoid, IsString)++-- | 'StartConfigurationRecorder' constructor.+--+-- The fields accessible through corresponding lenses are:+--+-- * 'scr1ConfigurationRecorderName' @::@ 'Text'+--+startConfigurationRecorder :: Text -- ^ 'scr1ConfigurationRecorderName'+ -> StartConfigurationRecorder+startConfigurationRecorder p1 = StartConfigurationRecorder+ { _scr1ConfigurationRecorderName = p1+ }++-- | The name of the recorder object that records each configuration change+-- made to the resources.+scr1ConfigurationRecorderName :: Lens' StartConfigurationRecorder Text+scr1ConfigurationRecorderName =+ lens _scr1ConfigurationRecorderName+ (\s a -> s { _scr1ConfigurationRecorderName = a })++data StartConfigurationRecorderResponse = StartConfigurationRecorderResponse+ deriving (Eq, Ord, Show, Generic)++-- | 'StartConfigurationRecorderResponse' constructor.+startConfigurationRecorderResponse :: StartConfigurationRecorderResponse+startConfigurationRecorderResponse = StartConfigurationRecorderResponse++instance ToPath StartConfigurationRecorder where+ toPath = const "/"++instance ToQuery StartConfigurationRecorder where+ toQuery = const mempty++instance ToHeaders StartConfigurationRecorder++instance ToJSON StartConfigurationRecorder where+ toJSON StartConfigurationRecorder{..} = object+ [ "ConfigurationRecorderName" .= _scr1ConfigurationRecorderName+ ]++instance AWSRequest StartConfigurationRecorder where+ type Sv StartConfigurationRecorder = Config+ type Rs StartConfigurationRecorder = StartConfigurationRecorderResponse++ request = post "StartConfigurationRecorder"+ response = nullResponse StartConfigurationRecorderResponse
+ gen/Network/AWS/Config/StopConfigurationRecorder.hs view
@@ -0,0 +1,95 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE FlexibleInstances #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Module : Network.AWS.Config.StopConfigurationRecorder+-- Copyright : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>+-- License : This Source Code Form is subject to the terms of+-- the Mozilla Public License, v. 2.0.+-- A copy of the MPL can be found in the LICENSE file or+-- you can obtain it at http://mozilla.org/MPL/2.0/.+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability : experimental+-- Portability : non-portable (GHC extensions)++-- | Stops recording configurations of all the resources associated with the+-- account.+--+-- <http://docs.aws.amazon.com/config/latest/APIReference/API_StopConfigurationRecorder.html>+module Network.AWS.Config.StopConfigurationRecorder+ (+ -- * Request+ StopConfigurationRecorder+ -- ** Request constructor+ , stopConfigurationRecorder+ -- ** Request lenses+ , scrConfigurationRecorderName++ -- * Response+ , StopConfigurationRecorderResponse+ -- ** Response constructor+ , stopConfigurationRecorderResponse+ ) where++import Network.AWS.Prelude+import Network.AWS.Request.JSON+import Network.AWS.Config.Types+import qualified GHC.Exts++newtype StopConfigurationRecorder = StopConfigurationRecorder+ { _scrConfigurationRecorderName :: Text+ } deriving (Eq, Ord, Show, Monoid, IsString)++-- | 'StopConfigurationRecorder' constructor.+--+-- The fields accessible through corresponding lenses are:+--+-- * 'scrConfigurationRecorderName' @::@ 'Text'+--+stopConfigurationRecorder :: Text -- ^ 'scrConfigurationRecorderName'+ -> StopConfigurationRecorder+stopConfigurationRecorder p1 = StopConfigurationRecorder+ { _scrConfigurationRecorderName = p1+ }++-- | The name of the recorder object that records each configuration change+-- made to the resources.+scrConfigurationRecorderName :: Lens' StopConfigurationRecorder Text+scrConfigurationRecorderName =+ lens _scrConfigurationRecorderName+ (\s a -> s { _scrConfigurationRecorderName = a })++data StopConfigurationRecorderResponse = StopConfigurationRecorderResponse+ deriving (Eq, Ord, Show, Generic)++-- | 'StopConfigurationRecorderResponse' constructor.+stopConfigurationRecorderResponse :: StopConfigurationRecorderResponse+stopConfigurationRecorderResponse = StopConfigurationRecorderResponse++instance ToPath StopConfigurationRecorder where+ toPath = const "/"++instance ToQuery StopConfigurationRecorder where+ toQuery = const mempty++instance ToHeaders StopConfigurationRecorder++instance ToJSON StopConfigurationRecorder where+ toJSON StopConfigurationRecorder{..} = object+ [ "ConfigurationRecorderName" .= _scrConfigurationRecorderName+ ]++instance AWSRequest StopConfigurationRecorder where+ type Sv StopConfigurationRecorder = Config+ type Rs StopConfigurationRecorder = StopConfigurationRecorderResponse++ request = post "StopConfigurationRecorder"+ response = nullResponse StopConfigurationRecorderResponse
+ gen/Network/AWS/Config/Types.hs view
@@ -0,0 +1,943 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE FlexibleInstances #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Module : Network.AWS.Config.Types+-- Copyright : (c) 2013-2014 Brendan Hay <brendan.g.hay@gmail.com>+-- License : This Source Code Form is subject to the terms of+-- the Mozilla Public License, v. 2.0.+-- A copy of the MPL can be found in the LICENSE file or+-- you can obtain it at http://mozilla.org/MPL/2.0/.+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability : experimental+-- Portability : non-portable (GHC extensions)++module Network.AWS.Config.Types+ (+ -- * Service+ Config+ -- ** Error+ , JSONError++ -- * ConfigExportDeliveryInfo+ , ConfigExportDeliveryInfo+ , configExportDeliveryInfo+ , cediLastAttemptTime+ , cediLastErrorCode+ , cediLastErrorMessage+ , cediLastStatus+ , cediLastSuccessfulTime++ -- * ConfigStreamDeliveryInfo+ , ConfigStreamDeliveryInfo+ , configStreamDeliveryInfo+ , csdiLastErrorCode+ , csdiLastErrorMessage+ , csdiLastStatus+ , csdiLastStatusChangeTime++ -- * Relationship+ , Relationship+ , relationship+ , rRelationshipName+ , rResourceId+ , rResourceType++ -- * DeliveryChannel+ , DeliveryChannel+ , deliveryChannel+ , dcName+ , dcS3BucketName+ , dcS3KeyPrefix+ , dcSnsTopicARN++ -- * ChronologicalOrder+ , ChronologicalOrder (..)++ -- * ResourceType+ , ResourceType (..)++ -- * ConfigurationItem+ , ConfigurationItem+ , configurationItem+ , ciAccountId+ , ciArn+ , ciAvailabilityZone+ , ciConfiguration+ , ciConfigurationItemCaptureTime+ , ciConfigurationItemMD5Hash+ , ciConfigurationItemStatus+ , ciConfigurationStateId+ , ciRelatedEvents+ , ciRelationships+ , ciResourceCreationTime+ , ciResourceId+ , ciResourceType+ , ciTags+ , ciVersion++ -- * DeliveryStatus+ , DeliveryStatus (..)++ -- * DeliveryChannelStatus+ , DeliveryChannelStatus+ , deliveryChannelStatus+ , dcsConfigHistoryDeliveryInfo+ , dcsConfigSnapshotDeliveryInfo+ , dcsConfigStreamDeliveryInfo+ , dcsName++ -- * ConfigurationRecorderStatus+ , ConfigurationRecorderStatus+ , configurationRecorderStatus+ , crsLastErrorCode+ , crsLastErrorMessage+ , crsLastStartTime+ , crsLastStatus+ , crsLastStatusChangeTime+ , crsLastStopTime+ , crsName+ , crsRecording++ -- * ConfigurationItemStatus+ , ConfigurationItemStatus (..)++ -- * ConfigurationRecorder+ , ConfigurationRecorder+ , configurationRecorder+ , crName+ , crRoleARN++ -- * RecorderStatus+ , RecorderStatus (..)+ ) where++import Data.Char (isUpper)+import Network.AWS.Error+import Network.AWS.Prelude+import Network.AWS.Signing.V4+import qualified GHC.Exts++-- | Version @2014-11-12@ of the Amazon Config service.+data Config++instance AWSService Config where+ type Sg Config = V4+ type Er Config = JSONError++ service = Service+ { _svcEndpoint = regional+ , _svcAbbrev = "Config"+ , _svcPrefix = "config"+ , _svcVersion = "2014-11-12"+ , _svcTargetPrefix = Just "StarlingDoveService"+ , _svcJSONVersion = Just "1.1"+ }++ handle = jsonError statusSuccess++data ConfigExportDeliveryInfo = ConfigExportDeliveryInfo+ { _cediLastAttemptTime :: Maybe RFC822+ , _cediLastErrorCode :: Maybe Text+ , _cediLastErrorMessage :: Maybe Text+ , _cediLastStatus :: Maybe Text+ , _cediLastSuccessfulTime :: Maybe RFC822+ } deriving (Eq, Ord, Show)++-- | 'ConfigExportDeliveryInfo' constructor.+--+-- The fields accessible through corresponding lenses are:+--+-- * 'cediLastAttemptTime' @::@ 'Maybe' 'UTCTime'+--+-- * 'cediLastErrorCode' @::@ 'Maybe' 'Text'+--+-- * 'cediLastErrorMessage' @::@ 'Maybe' 'Text'+--+-- * 'cediLastStatus' @::@ 'Maybe' 'Text'+--+-- * 'cediLastSuccessfulTime' @::@ 'Maybe' 'UTCTime'+--+configExportDeliveryInfo :: ConfigExportDeliveryInfo+configExportDeliveryInfo = ConfigExportDeliveryInfo+ { _cediLastStatus = Nothing+ , _cediLastErrorCode = Nothing+ , _cediLastErrorMessage = Nothing+ , _cediLastAttemptTime = Nothing+ , _cediLastSuccessfulTime = Nothing+ }++-- | The time of the last attempted delivery.+cediLastAttemptTime :: Lens' ConfigExportDeliveryInfo (Maybe UTCTime)+cediLastAttemptTime =+ lens _cediLastAttemptTime (\s a -> s { _cediLastAttemptTime = a })+ . mapping _Time++-- | The error code from the last attempted delivery.+cediLastErrorCode :: Lens' ConfigExportDeliveryInfo (Maybe Text)+cediLastErrorCode =+ lens _cediLastErrorCode (\s a -> s { _cediLastErrorCode = a })++-- | The error message from the last attempted delivery.+cediLastErrorMessage :: Lens' ConfigExportDeliveryInfo (Maybe Text)+cediLastErrorMessage =+ lens _cediLastErrorMessage (\s a -> s { _cediLastErrorMessage = a })++-- | Status of the last attempted delivery.+cediLastStatus :: Lens' ConfigExportDeliveryInfo (Maybe Text)+cediLastStatus = lens _cediLastStatus (\s a -> s { _cediLastStatus = a })++-- | The time of the last successful delivery.+cediLastSuccessfulTime :: Lens' ConfigExportDeliveryInfo (Maybe UTCTime)+cediLastSuccessfulTime =+ lens _cediLastSuccessfulTime (\s a -> s { _cediLastSuccessfulTime = a })+ . mapping _Time++instance FromJSON ConfigExportDeliveryInfo where+ parseJSON = withObject "ConfigExportDeliveryInfo" $ \o -> ConfigExportDeliveryInfo+ <$> o .:? "lastAttemptTime"+ <*> o .:? "lastErrorCode"+ <*> o .:? "lastErrorMessage"+ <*> o .:? "lastStatus"+ <*> o .:? "lastSuccessfulTime"++instance ToJSON ConfigExportDeliveryInfo where+ toJSON ConfigExportDeliveryInfo{..} = object+ [ "lastStatus" .= _cediLastStatus+ , "lastErrorCode" .= _cediLastErrorCode+ , "lastErrorMessage" .= _cediLastErrorMessage+ , "lastAttemptTime" .= _cediLastAttemptTime+ , "lastSuccessfulTime" .= _cediLastSuccessfulTime+ ]++data ConfigStreamDeliveryInfo = ConfigStreamDeliveryInfo+ { _csdiLastErrorCode :: Maybe Text+ , _csdiLastErrorMessage :: Maybe Text+ , _csdiLastStatus :: Maybe Text+ , _csdiLastStatusChangeTime :: Maybe RFC822+ } deriving (Eq, Ord, Show)++-- | 'ConfigStreamDeliveryInfo' constructor.+--+-- The fields accessible through corresponding lenses are:+--+-- * 'csdiLastErrorCode' @::@ 'Maybe' 'Text'+--+-- * 'csdiLastErrorMessage' @::@ 'Maybe' 'Text'+--+-- * 'csdiLastStatus' @::@ 'Maybe' 'Text'+--+-- * 'csdiLastStatusChangeTime' @::@ 'Maybe' 'UTCTime'+--+configStreamDeliveryInfo :: ConfigStreamDeliveryInfo+configStreamDeliveryInfo = ConfigStreamDeliveryInfo+ { _csdiLastStatus = Nothing+ , _csdiLastErrorCode = Nothing+ , _csdiLastErrorMessage = Nothing+ , _csdiLastStatusChangeTime = Nothing+ }++-- | The error code from the last attempted delivery.+csdiLastErrorCode :: Lens' ConfigStreamDeliveryInfo (Maybe Text)+csdiLastErrorCode =+ lens _csdiLastErrorCode (\s a -> s { _csdiLastErrorCode = a })++-- | The error message from the last attempted delivery.+csdiLastErrorMessage :: Lens' ConfigStreamDeliveryInfo (Maybe Text)+csdiLastErrorMessage =+ lens _csdiLastErrorMessage (\s a -> s { _csdiLastErrorMessage = a })++-- | Status of the last attempted delivery.+csdiLastStatus :: Lens' ConfigStreamDeliveryInfo (Maybe Text)+csdiLastStatus = lens _csdiLastStatus (\s a -> s { _csdiLastStatus = a })++-- | The time from the last status change.+csdiLastStatusChangeTime :: Lens' ConfigStreamDeliveryInfo (Maybe UTCTime)+csdiLastStatusChangeTime =+ lens _csdiLastStatusChangeTime+ (\s a -> s { _csdiLastStatusChangeTime = a })+ . mapping _Time++instance FromJSON ConfigStreamDeliveryInfo where+ parseJSON = withObject "ConfigStreamDeliveryInfo" $ \o -> ConfigStreamDeliveryInfo+ <$> o .:? "lastErrorCode"+ <*> o .:? "lastErrorMessage"+ <*> o .:? "lastStatus"+ <*> o .:? "lastStatusChangeTime"++instance ToJSON ConfigStreamDeliveryInfo where+ toJSON ConfigStreamDeliveryInfo{..} = object+ [ "lastStatus" .= _csdiLastStatus+ , "lastErrorCode" .= _csdiLastErrorCode+ , "lastErrorMessage" .= _csdiLastErrorMessage+ , "lastStatusChangeTime" .= _csdiLastStatusChangeTime+ ]++data Relationship = Relationship+ { _rRelationshipName :: Maybe Text+ , _rResourceId :: Maybe Text+ , _rResourceType :: Maybe Text+ } deriving (Eq, Ord, Show)++-- | 'Relationship' constructor.+--+-- The fields accessible through corresponding lenses are:+--+-- * 'rRelationshipName' @::@ 'Maybe' 'Text'+--+-- * 'rResourceId' @::@ 'Maybe' 'Text'+--+-- * 'rResourceType' @::@ 'Maybe' 'Text'+--+relationship :: Relationship+relationship = Relationship+ { _rResourceType = Nothing+ , _rResourceId = Nothing+ , _rRelationshipName = Nothing+ }++-- | The name of the related resource.+rRelationshipName :: Lens' Relationship (Maybe Text)+rRelationshipName =+ lens _rRelationshipName (\s a -> s { _rRelationshipName = a })++-- | The resource ID of the related resource (for example, sg-xxxxxx.+rResourceId :: Lens' Relationship (Maybe Text)+rResourceId = lens _rResourceId (\s a -> s { _rResourceId = a })++-- | The resource type of the related resource.+rResourceType :: Lens' Relationship (Maybe Text)+rResourceType = lens _rResourceType (\s a -> s { _rResourceType = a })++instance FromJSON Relationship where+ parseJSON = withObject "Relationship" $ \o -> Relationship+ <$> o .:? "relationshipName"+ <*> o .:? "resourceId"+ <*> o .:? "resourceType"++instance ToJSON Relationship where+ toJSON Relationship{..} = object+ [ "resourceType" .= _rResourceType+ , "resourceId" .= _rResourceId+ , "relationshipName" .= _rRelationshipName+ ]++data DeliveryChannel = DeliveryChannel+ { _dcName :: Maybe Text+ , _dcS3BucketName :: Maybe Text+ , _dcS3KeyPrefix :: Maybe Text+ , _dcSnsTopicARN :: Maybe Text+ } deriving (Eq, Ord, Show)++-- | 'DeliveryChannel' constructor.+--+-- The fields accessible through corresponding lenses are:+--+-- * 'dcName' @::@ 'Maybe' 'Text'+--+-- * 'dcS3BucketName' @::@ 'Maybe' 'Text'+--+-- * 'dcS3KeyPrefix' @::@ 'Maybe' 'Text'+--+-- * 'dcSnsTopicARN' @::@ 'Maybe' 'Text'+--+deliveryChannel :: DeliveryChannel+deliveryChannel = DeliveryChannel+ { _dcName = Nothing+ , _dcS3BucketName = Nothing+ , _dcS3KeyPrefix = Nothing+ , _dcSnsTopicARN = Nothing+ }++-- | The name of the delivery channel. By default, AWS Config automatically+-- assigns the name "default" when creating the delivery channel. You cannot+-- change the assigned name.+dcName :: Lens' DeliveryChannel (Maybe Text)+dcName = lens _dcName (\s a -> s { _dcName = a })++-- | The name of the Amazon S3 bucket used to store configuration history for+-- the delivery channel.+dcS3BucketName :: Lens' DeliveryChannel (Maybe Text)+dcS3BucketName = lens _dcS3BucketName (\s a -> s { _dcS3BucketName = a })++-- | The prefix for the specified Amazon S3 bucket.+dcS3KeyPrefix :: Lens' DeliveryChannel (Maybe Text)+dcS3KeyPrefix = lens _dcS3KeyPrefix (\s a -> s { _dcS3KeyPrefix = a })++-- | The Amazon Resource Name (ARN) of the IAM role used for accessing the+-- Amazon S3 bucket and the Amazon SNS topic.+dcSnsTopicARN :: Lens' DeliveryChannel (Maybe Text)+dcSnsTopicARN = lens _dcSnsTopicARN (\s a -> s { _dcSnsTopicARN = a })++instance FromJSON DeliveryChannel where+ parseJSON = withObject "DeliveryChannel" $ \o -> DeliveryChannel+ <$> o .:? "name"+ <*> o .:? "s3BucketName"+ <*> o .:? "s3KeyPrefix"+ <*> o .:? "snsTopicARN"++instance ToJSON DeliveryChannel where+ toJSON DeliveryChannel{..} = object+ [ "name" .= _dcName+ , "s3BucketName" .= _dcS3BucketName+ , "s3KeyPrefix" .= _dcS3KeyPrefix+ , "snsTopicARN" .= _dcSnsTopicARN+ ]++data ChronologicalOrder+ = Forward -- ^ Forward+ | Reverse -- ^ Reverse+ deriving (Eq, Ord, Show, Generic, Enum)++instance Hashable ChronologicalOrder++instance FromText ChronologicalOrder where+ parser = match "Forward" Forward+ <|> match "Reverse" Reverse++instance ToText ChronologicalOrder where+ toText = \case+ Forward -> "Forward"+ Reverse -> "Reverse"++instance FromJSON ChronologicalOrder where+ parseJSON = parseJSONText "ChronologicalOrder"++instance ToJSON ChronologicalOrder where+ toJSON = toJSONText++data ResourceType+ = AWSCloudTrailTrail -- ^ AWS::CloudTrail::Trail+ | AWSEC2CustomerGateway -- ^ AWS::EC2::CustomerGateway+ | AWSEC2EIP -- ^ AWS::EC2::EIP+ | AWSEC2Instance -- ^ AWS::EC2::Instance+ | AWSEC2InternetGateway -- ^ AWS::EC2::InternetGateway+ | AWSEC2NetworkAcl -- ^ AWS::EC2::NetworkAcl+ | AWSEC2NetworkInterface -- ^ AWS::EC2::NetworkInterface+ | AWSEC2RouteTable -- ^ AWS::EC2::RouteTable+ | AWSEC2SecurityGroup -- ^ AWS::EC2::SecurityGroup+ | AWSEC2Subnet -- ^ AWS::EC2::Subnet+ | AWSEC2VPC -- ^ AWS::EC2::VPC+ | AWSEC2VPNConnection -- ^ AWS::EC2::VPNConnection+ | AWSEC2VPNGateway -- ^ AWS::EC2::VPNGateway+ | AWSEC2Volume -- ^ AWS::EC2::Volume+ deriving (Eq, Ord, Show, Generic, Enum)++instance Hashable ResourceType++instance FromText ResourceType where+ parser = match "AWS::CloudTrail::Trail" AWSCloudTrailTrail+ <|> match "AWS::EC2::CustomerGateway" AWSEC2CustomerGateway+ <|> match "AWS::EC2::EIP" AWSEC2EIP+ <|> match "AWS::EC2::Instance" AWSEC2Instance+ <|> match "AWS::EC2::InternetGateway" AWSEC2InternetGateway+ <|> match "AWS::EC2::NetworkAcl" AWSEC2NetworkAcl+ <|> match "AWS::EC2::NetworkInterface" AWSEC2NetworkInterface+ <|> match "AWS::EC2::RouteTable" AWSEC2RouteTable+ <|> match "AWS::EC2::SecurityGroup" AWSEC2SecurityGroup+ <|> match "AWS::EC2::Subnet" AWSEC2Subnet+ <|> match "AWS::EC2::VPC" AWSEC2VPC+ <|> match "AWS::EC2::VPNConnection" AWSEC2VPNConnection+ <|> match "AWS::EC2::VPNGateway" AWSEC2VPNGateway+ <|> match "AWS::EC2::Volume" AWSEC2Volume++instance ToText ResourceType where+ toText = \case+ AWSCloudTrailTrail -> "AWS::CloudTrail::Trail"+ AWSEC2CustomerGateway -> "AWS::EC2::CustomerGateway"+ AWSEC2EIP -> "AWS::EC2::EIP"+ AWSEC2Instance -> "AWS::EC2::Instance"+ AWSEC2InternetGateway -> "AWS::EC2::InternetGateway"+ AWSEC2NetworkAcl -> "AWS::EC2::NetworkAcl"+ AWSEC2NetworkInterface -> "AWS::EC2::NetworkInterface"+ AWSEC2RouteTable -> "AWS::EC2::RouteTable"+ AWSEC2SecurityGroup -> "AWS::EC2::SecurityGroup"+ AWSEC2Subnet -> "AWS::EC2::Subnet"+ AWSEC2VPC -> "AWS::EC2::VPC"+ AWSEC2VPNConnection -> "AWS::EC2::VPNConnection"+ AWSEC2VPNGateway -> "AWS::EC2::VPNGateway"+ AWSEC2Volume -> "AWS::EC2::Volume"++instance FromJSON ResourceType where+ parseJSON = parseJSONText "ResourceType"++instance ToJSON ResourceType where+ toJSON = toJSONText++data ConfigurationItem = ConfigurationItem+ { _ciAccountId :: Maybe Text+ , _ciArn :: Maybe Text+ , _ciAvailabilityZone :: Maybe Text+ , _ciConfiguration :: Maybe Text+ , _ciConfigurationItemCaptureTime :: Maybe RFC822+ , _ciConfigurationItemMD5Hash :: Maybe Text+ , _ciConfigurationItemStatus :: Maybe Text+ , _ciConfigurationStateId :: Maybe Text+ , _ciRelatedEvents :: List "relatedEvents" Text+ , _ciRelationships :: List "relationships" Relationship+ , _ciResourceCreationTime :: Maybe RFC822+ , _ciResourceId :: Maybe Text+ , _ciResourceType :: Maybe Text+ , _ciTags :: Map Text Text+ , _ciVersion :: Maybe Text+ } deriving (Eq, Show)++-- | 'ConfigurationItem' constructor.+--+-- The fields accessible through corresponding lenses are:+--+-- * 'ciAccountId' @::@ 'Maybe' 'Text'+--+-- * 'ciArn' @::@ 'Maybe' 'Text'+--+-- * 'ciAvailabilityZone' @::@ 'Maybe' 'Text'+--+-- * 'ciConfiguration' @::@ 'Maybe' 'Text'+--+-- * 'ciConfigurationItemCaptureTime' @::@ 'Maybe' 'UTCTime'+--+-- * 'ciConfigurationItemMD5Hash' @::@ 'Maybe' 'Text'+--+-- * 'ciConfigurationItemStatus' @::@ 'Maybe' 'Text'+--+-- * 'ciConfigurationStateId' @::@ 'Maybe' 'Text'+--+-- * 'ciRelatedEvents' @::@ ['Text']+--+-- * 'ciRelationships' @::@ ['Relationship']+--+-- * 'ciResourceCreationTime' @::@ 'Maybe' 'UTCTime'+--+-- * 'ciResourceId' @::@ 'Maybe' 'Text'+--+-- * 'ciResourceType' @::@ 'Maybe' 'Text'+--+-- * 'ciTags' @::@ 'HashMap' 'Text' 'Text'+--+-- * 'ciVersion' @::@ 'Maybe' 'Text'+--+configurationItem :: ConfigurationItem+configurationItem = ConfigurationItem+ { _ciVersion = Nothing+ , _ciAccountId = Nothing+ , _ciConfigurationItemCaptureTime = Nothing+ , _ciConfigurationItemStatus = Nothing+ , _ciConfigurationStateId = Nothing+ , _ciConfigurationItemMD5Hash = Nothing+ , _ciArn = Nothing+ , _ciResourceType = Nothing+ , _ciResourceId = Nothing+ , _ciAvailabilityZone = Nothing+ , _ciResourceCreationTime = Nothing+ , _ciTags = mempty+ , _ciRelatedEvents = mempty+ , _ciRelationships = mempty+ , _ciConfiguration = Nothing+ }++-- | The 12 digit AWS account ID associated with the resource.+ciAccountId :: Lens' ConfigurationItem (Maybe Text)+ciAccountId = lens _ciAccountId (\s a -> s { _ciAccountId = a })++-- | The Amazon Resource Name (ARN) of the resource.+ciArn :: Lens' ConfigurationItem (Maybe Text)+ciArn = lens _ciArn (\s a -> s { _ciArn = a })++-- | The Availability Zone associated with the resource.+ciAvailabilityZone :: Lens' ConfigurationItem (Maybe Text)+ciAvailabilityZone =+ lens _ciAvailabilityZone (\s a -> s { _ciAvailabilityZone = a })++-- | The description of the resource configuration.+ciConfiguration :: Lens' ConfigurationItem (Maybe Text)+ciConfiguration = lens _ciConfiguration (\s a -> s { _ciConfiguration = a })++-- | The time when the configuration recording was initiated.+ciConfigurationItemCaptureTime :: Lens' ConfigurationItem (Maybe UTCTime)+ciConfigurationItemCaptureTime =+ lens _ciConfigurationItemCaptureTime+ (\s a -> s { _ciConfigurationItemCaptureTime = a })+ . mapping _Time++-- | Unique MD5 hash that represents the configuration item's state. You can+-- use MD5 hash to compare the states of two or more configuration items+-- that are associated with the same resource.+ciConfigurationItemMD5Hash :: Lens' ConfigurationItem (Maybe Text)+ciConfigurationItemMD5Hash =+ lens _ciConfigurationItemMD5Hash+ (\s a -> s { _ciConfigurationItemMD5Hash = a })++-- | The configuration item status.+ciConfigurationItemStatus :: Lens' ConfigurationItem (Maybe Text)+ciConfigurationItemStatus =+ lens _ciConfigurationItemStatus+ (\s a -> s { _ciConfigurationItemStatus = a })++-- | An identifier that indicates the ordering of the configuration items of a+-- resource.+ciConfigurationStateId :: Lens' ConfigurationItem (Maybe Text)+ciConfigurationStateId =+ lens _ciConfigurationStateId (\s a -> s { _ciConfigurationStateId = a })++-- | A list of CloudTrail event IDs. A populated field indicates that the+-- current configuration was initiated by the events recorded in the+-- CloudTrail log. For more information about CloudTrail, see What is AWS+-- CloudTrail?. An empty field indicates that the current configuration was+-- not initiated by any event.+ciRelatedEvents :: Lens' ConfigurationItem [Text]+ciRelatedEvents = lens _ciRelatedEvents (\s a -> s { _ciRelatedEvents = a }) . _List++-- | A list of related AWS resources.+ciRelationships :: Lens' ConfigurationItem [Relationship]+ciRelationships = lens _ciRelationships (\s a -> s { _ciRelationships = a }) . _List++-- | The time stamp when the resource was created.+ciResourceCreationTime :: Lens' ConfigurationItem (Maybe UTCTime)+ciResourceCreationTime =+ lens _ciResourceCreationTime (\s a -> s { _ciResourceCreationTime = a })+ . mapping _Time++-- | The ID of the resource (for example., sg-xxxxxx).+ciResourceId :: Lens' ConfigurationItem (Maybe Text)+ciResourceId = lens _ciResourceId (\s a -> s { _ciResourceId = a })++-- | The type of AWS resource.+ciResourceType :: Lens' ConfigurationItem (Maybe Text)+ciResourceType = lens _ciResourceType (\s a -> s { _ciResourceType = a })++-- | A mapping of key value tags associated with the resource.+ciTags :: Lens' ConfigurationItem (HashMap Text Text)+ciTags = lens _ciTags (\s a -> s { _ciTags = a }) . _Map++-- | The version number of the resource configuration.+ciVersion :: Lens' ConfigurationItem (Maybe Text)+ciVersion = lens _ciVersion (\s a -> s { _ciVersion = a })++instance FromJSON ConfigurationItem where+ parseJSON = withObject "ConfigurationItem" $ \o -> ConfigurationItem+ <$> o .:? "accountId"+ <*> o .:? "arn"+ <*> o .:? "availabilityZone"+ <*> o .:? "configuration"+ <*> o .:? "configurationItemCaptureTime"+ <*> o .:? "configurationItemMD5Hash"+ <*> o .:? "configurationItemStatus"+ <*> o .:? "configurationStateId"+ <*> o .: "relatedEvents"+ <*> o .: "relationships"+ <*> o .:? "resourceCreationTime"+ <*> o .:? "resourceId"+ <*> o .:? "resourceType"+ <*> o .: "tags"+ <*> o .:? "version"++instance ToJSON ConfigurationItem where+ toJSON ConfigurationItem{..} = object+ [ "version" .= _ciVersion+ , "accountId" .= _ciAccountId+ , "configurationItemCaptureTime" .= _ciConfigurationItemCaptureTime+ , "configurationItemStatus" .= _ciConfigurationItemStatus+ , "configurationStateId" .= _ciConfigurationStateId+ , "configurationItemMD5Hash" .= _ciConfigurationItemMD5Hash+ , "arn" .= _ciArn+ , "resourceType" .= _ciResourceType+ , "resourceId" .= _ciResourceId+ , "availabilityZone" .= _ciAvailabilityZone+ , "resourceCreationTime" .= _ciResourceCreationTime+ , "tags" .= _ciTags+ , "relatedEvents" .= _ciRelatedEvents+ , "relationships" .= _ciRelationships+ , "configuration" .= _ciConfiguration+ ]++data DeliveryStatus+ = Failure -- ^ Failure+ | Success -- ^ Success+ deriving (Eq, Ord, Show, Generic, Enum)++instance Hashable DeliveryStatus++instance FromText DeliveryStatus where+ parser = match "Failure" Failure+ <|> match "Success" Success++instance ToText DeliveryStatus where+ toText = \case+ Failure -> "Failure"+ Success -> "Success"++instance FromJSON DeliveryStatus where+ parseJSON = parseJSONText "DeliveryStatus"++instance ToJSON DeliveryStatus where+ toJSON = toJSONText++data DeliveryChannelStatus = DeliveryChannelStatus+ { _dcsConfigHistoryDeliveryInfo :: Maybe ConfigExportDeliveryInfo+ , _dcsConfigSnapshotDeliveryInfo :: Maybe ConfigExportDeliveryInfo+ , _dcsConfigStreamDeliveryInfo :: Maybe ConfigStreamDeliveryInfo+ , _dcsName :: Maybe Text+ } deriving (Eq, Show)++-- | 'DeliveryChannelStatus' constructor.+--+-- The fields accessible through corresponding lenses are:+--+-- * 'dcsConfigHistoryDeliveryInfo' @::@ 'Maybe' 'ConfigExportDeliveryInfo'+--+-- * 'dcsConfigSnapshotDeliveryInfo' @::@ 'Maybe' 'ConfigExportDeliveryInfo'+--+-- * 'dcsConfigStreamDeliveryInfo' @::@ 'Maybe' 'ConfigStreamDeliveryInfo'+--+-- * 'dcsName' @::@ 'Maybe' 'Text'+--+deliveryChannelStatus :: DeliveryChannelStatus+deliveryChannelStatus = DeliveryChannelStatus+ { _dcsName = Nothing+ , _dcsConfigSnapshotDeliveryInfo = Nothing+ , _dcsConfigHistoryDeliveryInfo = Nothing+ , _dcsConfigStreamDeliveryInfo = Nothing+ }++-- | A list that contains the status of the delivery of the configuration+-- history to the specified Amazon S3 bucket.+dcsConfigHistoryDeliveryInfo :: Lens' DeliveryChannelStatus (Maybe ConfigExportDeliveryInfo)+dcsConfigHistoryDeliveryInfo =+ lens _dcsConfigHistoryDeliveryInfo+ (\s a -> s { _dcsConfigHistoryDeliveryInfo = a })++-- | A list containing the status of the delivery of the snapshot to the+-- specified Amazon S3 bucket.+dcsConfigSnapshotDeliveryInfo :: Lens' DeliveryChannelStatus (Maybe ConfigExportDeliveryInfo)+dcsConfigSnapshotDeliveryInfo =+ lens _dcsConfigSnapshotDeliveryInfo+ (\s a -> s { _dcsConfigSnapshotDeliveryInfo = a })++-- | A list containing the status of the delivery of the configuration stream+-- notification to the specified Amazon SNS topic.+dcsConfigStreamDeliveryInfo :: Lens' DeliveryChannelStatus (Maybe ConfigStreamDeliveryInfo)+dcsConfigStreamDeliveryInfo =+ lens _dcsConfigStreamDeliveryInfo+ (\s a -> s { _dcsConfigStreamDeliveryInfo = a })++-- | The name of the delivery channel.+dcsName :: Lens' DeliveryChannelStatus (Maybe Text)+dcsName = lens _dcsName (\s a -> s { _dcsName = a })++instance FromJSON DeliveryChannelStatus where+ parseJSON = withObject "DeliveryChannelStatus" $ \o -> DeliveryChannelStatus+ <$> o .:? "configHistoryDeliveryInfo"+ <*> o .:? "configSnapshotDeliveryInfo"+ <*> o .:? "configStreamDeliveryInfo"+ <*> o .:? "name"++instance ToJSON DeliveryChannelStatus where+ toJSON DeliveryChannelStatus{..} = object+ [ "name" .= _dcsName+ , "configSnapshotDeliveryInfo" .= _dcsConfigSnapshotDeliveryInfo+ , "configHistoryDeliveryInfo" .= _dcsConfigHistoryDeliveryInfo+ , "configStreamDeliveryInfo" .= _dcsConfigStreamDeliveryInfo+ ]++data ConfigurationRecorderStatus = ConfigurationRecorderStatus+ { _crsLastErrorCode :: Maybe Text+ , _crsLastErrorMessage :: Maybe Text+ , _crsLastStartTime :: Maybe RFC822+ , _crsLastStatus :: Maybe Text+ , _crsLastStatusChangeTime :: Maybe RFC822+ , _crsLastStopTime :: Maybe RFC822+ , _crsName :: Maybe Text+ , _crsRecording :: Maybe Bool+ } deriving (Eq, Ord, Show)++-- | 'ConfigurationRecorderStatus' constructor.+--+-- The fields accessible through corresponding lenses are:+--+-- * 'crsLastErrorCode' @::@ 'Maybe' 'Text'+--+-- * 'crsLastErrorMessage' @::@ 'Maybe' 'Text'+--+-- * 'crsLastStartTime' @::@ 'Maybe' 'UTCTime'+--+-- * 'crsLastStatus' @::@ 'Maybe' 'Text'+--+-- * 'crsLastStatusChangeTime' @::@ 'Maybe' 'UTCTime'+--+-- * 'crsLastStopTime' @::@ 'Maybe' 'UTCTime'+--+-- * 'crsName' @::@ 'Maybe' 'Text'+--+-- * 'crsRecording' @::@ 'Maybe' 'Bool'+--+configurationRecorderStatus :: ConfigurationRecorderStatus+configurationRecorderStatus = ConfigurationRecorderStatus+ { _crsName = Nothing+ , _crsLastStartTime = Nothing+ , _crsLastStopTime = Nothing+ , _crsRecording = Nothing+ , _crsLastStatus = Nothing+ , _crsLastErrorCode = Nothing+ , _crsLastErrorMessage = Nothing+ , _crsLastStatusChangeTime = Nothing+ }++-- | The error code indicating that the recording failed.+crsLastErrorCode :: Lens' ConfigurationRecorderStatus (Maybe Text)+crsLastErrorCode = lens _crsLastErrorCode (\s a -> s { _crsLastErrorCode = a })++-- | The message indicating that the recording failed due to an error.+crsLastErrorMessage :: Lens' ConfigurationRecorderStatus (Maybe Text)+crsLastErrorMessage =+ lens _crsLastErrorMessage (\s a -> s { _crsLastErrorMessage = a })++-- | The time the recorder was last started.+crsLastStartTime :: Lens' ConfigurationRecorderStatus (Maybe UTCTime)+crsLastStartTime = lens _crsLastStartTime (\s a -> s { _crsLastStartTime = a }) . mapping _Time++-- | The last (previous) status of the recorder.+crsLastStatus :: Lens' ConfigurationRecorderStatus (Maybe Text)+crsLastStatus = lens _crsLastStatus (\s a -> s { _crsLastStatus = a })++-- | The time when the status was last changed.+crsLastStatusChangeTime :: Lens' ConfigurationRecorderStatus (Maybe UTCTime)+crsLastStatusChangeTime =+ lens _crsLastStatusChangeTime (\s a -> s { _crsLastStatusChangeTime = a })+ . mapping _Time++-- | The time the recorder was last stopped.+crsLastStopTime :: Lens' ConfigurationRecorderStatus (Maybe UTCTime)+crsLastStopTime = lens _crsLastStopTime (\s a -> s { _crsLastStopTime = a }) . mapping _Time++-- | The name of the configuration recorder.+crsName :: Lens' ConfigurationRecorderStatus (Maybe Text)+crsName = lens _crsName (\s a -> s { _crsName = a })++-- | Specifies whether the recorder is currently recording or not.+crsRecording :: Lens' ConfigurationRecorderStatus (Maybe Bool)+crsRecording = lens _crsRecording (\s a -> s { _crsRecording = a })++instance FromJSON ConfigurationRecorderStatus where+ parseJSON = withObject "ConfigurationRecorderStatus" $ \o -> ConfigurationRecorderStatus+ <$> o .:? "lastErrorCode"+ <*> o .:? "lastErrorMessage"+ <*> o .:? "lastStartTime"+ <*> o .:? "lastStatus"+ <*> o .:? "lastStatusChangeTime"+ <*> o .:? "lastStopTime"+ <*> o .:? "name"+ <*> o .:? "recording"++instance ToJSON ConfigurationRecorderStatus where+ toJSON ConfigurationRecorderStatus{..} = object+ [ "name" .= _crsName+ , "lastStartTime" .= _crsLastStartTime+ , "lastStopTime" .= _crsLastStopTime+ , "recording" .= _crsRecording+ , "lastStatus" .= _crsLastStatus+ , "lastErrorCode" .= _crsLastErrorCode+ , "lastErrorMessage" .= _crsLastErrorMessage+ , "lastStatusChangeTime" .= _crsLastStatusChangeTime+ ]++data ConfigurationItemStatus+ = Deleted -- ^ Deleted+ | Discovered -- ^ Discovered+ | Failed -- ^ Failed+ | Ok -- ^ Ok+ deriving (Eq, Ord, Show, Generic, Enum)++instance Hashable ConfigurationItemStatus++instance FromText ConfigurationItemStatus where+ parser = match "Deleted" Deleted+ <|> match "Discovered" Discovered+ <|> match "Failed" Failed+ <|> match "Ok" Ok++instance ToText ConfigurationItemStatus where+ toText = \case+ Deleted -> "Deleted"+ Discovered -> "Discovered"+ Failed -> "Failed"+ Ok -> "Ok"++instance FromJSON ConfigurationItemStatus where+ parseJSON = parseJSONText "ConfigurationItemStatus"++instance ToJSON ConfigurationItemStatus where+ toJSON = toJSONText++data ConfigurationRecorder = ConfigurationRecorder+ { _crName :: Maybe Text+ , _crRoleARN :: Maybe Text+ } deriving (Eq, Ord, Show)++-- | 'ConfigurationRecorder' constructor.+--+-- The fields accessible through corresponding lenses are:+--+-- * 'crName' @::@ 'Maybe' 'Text'+--+-- * 'crRoleARN' @::@ 'Maybe' 'Text'+--+configurationRecorder :: ConfigurationRecorder+configurationRecorder = ConfigurationRecorder+ { _crName = Nothing+ , _crRoleARN = Nothing+ }++-- | The name of the recorder. By default, AWS Config automatically assigns+-- the name "default" when creating the configuration recorder. You cannot+-- change the assigned name.+crName :: Lens' ConfigurationRecorder (Maybe Text)+crName = lens _crName (\s a -> s { _crName = a })++-- | Amazon Resource Name (ARN) of the IAM role used to describe the AWS+-- resources associated with the account.+crRoleARN :: Lens' ConfigurationRecorder (Maybe Text)+crRoleARN = lens _crRoleARN (\s a -> s { _crRoleARN = a })++instance FromJSON ConfigurationRecorder where+ parseJSON = withObject "ConfigurationRecorder" $ \o -> ConfigurationRecorder+ <$> o .:? "name"+ <*> o .:? "roleARN"++instance ToJSON ConfigurationRecorder where+ toJSON ConfigurationRecorder{..} = object+ [ "name" .= _crName+ , "roleARN" .= _crRoleARN+ ]++data RecorderStatus+ = RSFailure -- ^ Failure+ | RSPending -- ^ Pending+ | RSSuccess -- ^ Success+ deriving (Eq, Ord, Show, Generic, Enum)++instance Hashable RecorderStatus++instance FromText RecorderStatus where+ parser = match "Failure" RSFailure+ <|> match "Pending" RSPending+ <|> match "Success" RSSuccess++instance ToText RecorderStatus where+ toText = \case+ RSFailure -> "Failure"+ RSPending -> "Pending"+ RSSuccess -> "Success"++instance FromJSON RecorderStatus where+ parseJSON = parseJSONText "RecorderStatus"++instance ToJSON RecorderStatus where+ toJSON = toJSONText