amazonka-health (empty) → 1.4.5
raw patch · 32 files changed
+3173/−0 lines, 32 filesdep +amazonka-coredep +amazonka-healthdep +amazonka-testsetup-changed
Dependencies added: amazonka-core, amazonka-health, amazonka-test, base, bytestring, tasty, tasty-hunit, text, time, unordered-containers
Files
- LICENSE +367/−0
- README.md +45/−0
- Setup.hs +2/−0
- amazonka-health.cabal +86/−0
- fixture/DescribeAffectedEntities.yaml +10/−0
- fixture/DescribeAffectedEntitiesResponse.proto +0/−0
- fixture/DescribeEntityAggregates.yaml +10/−0
- fixture/DescribeEntityAggregatesResponse.proto +0/−0
- fixture/DescribeEventAggregates.yaml +10/−0
- fixture/DescribeEventAggregatesResponse.proto +0/−0
- fixture/DescribeEventDetails.yaml +10/−0
- fixture/DescribeEventDetailsResponse.proto +0/−0
- fixture/DescribeEventTypes.yaml +10/−0
- fixture/DescribeEventTypesResponse.proto +0/−0
- fixture/DescribeEvents.yaml +10/−0
- fixture/DescribeEventsResponse.proto +0/−0
- gen/Network/AWS/AWSHealth.hs +243/−0
- gen/Network/AWS/AWSHealth/DescribeAffectedEntities.hs +177/−0
- gen/Network/AWS/AWSHealth/DescribeEntityAggregates.hs +134/−0
- gen/Network/AWS/AWSHealth/DescribeEventAggregates.hs +176/−0
- gen/Network/AWS/AWSHealth/DescribeEventDetails.hs +158/−0
- gen/Network/AWS/AWSHealth/DescribeEventTypes.hs +175/−0
- gen/Network/AWS/AWSHealth/DescribeEvents.hs +174/−0
- gen/Network/AWS/AWSHealth/Types.hs +188/−0
- gen/Network/AWS/AWSHealth/Types/Product.hs +831/−0
- gen/Network/AWS/AWSHealth/Types/Sum.hs +139/−0
- gen/Network/AWS/AWSHealth/Waiters.hs +21/−0
- src/.gitkeep +0/−0
- test/Main.hs +21/−0
- test/Test/AWS/AWSHealth.hs +20/−0
- test/Test/AWS/AWSHealth/Internal.hs +9/−0
- test/Test/AWS/Gen/AWSHealth.hs +147/−0
+ LICENSE view
@@ -0,0 +1,367 @@+Mozilla Public License Version 2.0+==================================++1. Definitions+--------------++1.1. "Contributor"+ means each individual or legal entity that creates, contributes to+ the creation of, or owns Covered Software.++1.2. "Contributor Version"+ means the combination of the Contributions of others (if any) used+ by a Contributor and that particular Contributor's Contribution.++1.3. "Contribution"+ means Covered Software of a particular Contributor.++1.4. "Covered Software"+ means Source Code Form to which the initial Contributor has attached+ the notice in Exhibit A, the Executable Form of such Source Code+ Form, and Modifications of such Source Code Form, in each case+ including portions thereof.++1.5. "Incompatible With Secondary Licenses"+ means++ (a) that the initial Contributor has attached the notice described+ in Exhibit B to the Covered Software; or++ (b) that the Covered Software was made available under the terms of+ version 1.1 or earlier of the License, but not also under the+ terms of a Secondary License.++1.6. "Executable Form"+ means any form of the work other than Source Code Form.++1.7. "Larger Work"+ means a work that combines Covered Software with other material, in+ a separate file or files, that is not Covered Software.++1.8. "License"+ means this document.++1.9. "Licensable"+ means having the right to grant, to the maximum extent possible,+ whether at the time of the initial grant or subsequently, any and+ all of the rights conveyed by this License.++1.10. "Modifications"+ means any of the following:++ (a) any file in Source Code Form that results from an addition to,+ deletion from, or modification of the contents of Covered+ Software; or++ (b) any new file in Source Code Form that contains any Covered+ Software.++1.11. "Patent Claims" of a Contributor+ means any patent claim(s), including without limitation, method,+ process, and apparatus claims, in any patent Licensable by such+ Contributor that would be infringed, but for the grant of the+ License, by the making, using, selling, offering for sale, having+ made, import, or transfer of either its Contributions or its+ Contributor Version.++1.12. "Secondary License"+ means either the GNU General Public License, Version 2.0, the GNU+ Lesser General Public License, Version 2.1, the GNU Affero General+ Public License, Version 3.0, or any later versions of those+ licenses.++1.13. "Source Code Form"+ means the form of the work preferred for making modifications.++1.14. "You" (or "Your")+ means an individual or a legal entity exercising rights under this+ License. For legal entities, "You" includes any entity that+ controls, is controlled by, or is under common control with You. For+ purposes of this definition, "control" means (a) the power, direct+ or indirect, to cause the direction or management of such entity,+ whether by contract or otherwise, or (b) ownership of more than+ fifty percent (50%) of the outstanding shares or beneficial+ ownership of such entity.++2. License Grants and Conditions+--------------------------------++2.1. Grants++Each Contributor hereby grants You a world-wide, royalty-free,+non-exclusive license:++(a) under intellectual property rights (other than patent or trademark)+ Licensable by such Contributor to use, reproduce, make available,+ modify, display, perform, distribute, and otherwise exploit its+ Contributions, either on an unmodified basis, with Modifications, or+ as part of a Larger Work; and++(b) under Patent Claims of such Contributor to make, use, sell, offer+ for sale, have made, import, and otherwise transfer either its+ Contributions or its Contributor Version.++2.2. Effective Date++The licenses granted in Section 2.1 with respect to any Contribution+become effective for each Contribution on the date the Contributor first+distributes such Contribution.++2.3. Limitations on Grant Scope++The licenses granted in this Section 2 are the only rights granted under+this License. No additional rights or licenses will be implied from the+distribution or licensing of Covered Software under this License.+Notwithstanding Section 2.1(b) above, no patent license is granted by a+Contributor:++(a) for any code that a Contributor has removed from Covered Software;+ or++(b) for infringements caused by: (i) Your and any other third party's+ modifications of Covered Software, or (ii) the combination of its+ Contributions with other software (except as part of its Contributor+ Version); or++(c) under Patent Claims infringed by Covered Software in the absence of+ its Contributions.++This License does not grant any rights in the trademarks, service marks,+or logos of any Contributor (except as may be necessary to comply with+the notice requirements in Section 3.4).++2.4. Subsequent Licenses++No Contributor makes additional grants as a result of Your choice to+distribute the Covered Software under a subsequent version of this+License (see Section 10.2) or under the terms of a Secondary License (if+permitted under the terms of Section 3.3).++2.5. Representation++Each Contributor represents that the Contributor believes its+Contributions are its original creation(s) or it has sufficient rights+to grant the rights to its Contributions conveyed by this License.++2.6. Fair Use++This License is not intended to limit any rights You have under+applicable copyright doctrines of fair use, fair dealing, or other+equivalents.++2.7. Conditions++Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted+in Section 2.1.++3. Responsibilities+-------------------++3.1. Distribution of Source Form++All distribution of Covered Software in Source Code Form, including any+Modifications that You create or to which You contribute, must be under+the terms of this License. You must inform recipients that the Source+Code Form of the Covered Software is governed by the terms of this+License, and how they can obtain a copy of this License. You may not+attempt to alter or restrict the recipients' rights in the Source Code+Form.++3.2. Distribution of Executable Form++If You distribute Covered Software in Executable Form then:++(a) such Covered Software must also be made available in Source Code+ Form, as described in Section 3.1, and You must inform recipients of+ the Executable Form how they can obtain a copy of such Source Code+ Form by reasonable means in a timely manner, at a charge no more+ than the cost of distribution to the recipient; and++(b) You may distribute such Executable Form under the terms of this+ License, or sublicense it under different terms, provided that the+ license for the Executable Form does not attempt to limit or alter+ the recipients' rights in the Source Code Form under this License.++3.3. Distribution of a Larger Work++You may create and distribute a Larger Work under terms of Your choice,+provided that You also comply with the requirements of this License for+the Covered Software. If the Larger Work is a combination of Covered+Software with a work governed by one or more Secondary Licenses, and the+Covered Software is not Incompatible With Secondary Licenses, this+License permits You to additionally distribute such Covered Software+under the terms of such Secondary License(s), so that the recipient of+the Larger Work may, at their option, further distribute the Covered+Software under the terms of either this License or such Secondary+License(s).++3.4. Notices++You may not remove or alter the substance of any license notices+(including copyright notices, patent notices, disclaimers of warranty,+or limitations of liability) contained within the Source Code Form of+the Covered Software, except that You may alter any license notices to+the extent required to remedy known factual inaccuracies.++3.5. Application of Additional Terms++You may choose to offer, and to charge a fee for, warranty, support,+indemnity or liability obligations to one or more recipients of Covered+Software. However, You may do so only on Your own behalf, and not on+behalf of any Contributor. You must make it absolutely clear that any+such warranty, support, indemnity, or liability obligation is offered by+You alone, and You hereby agree to indemnify every Contributor for any+liability incurred by such Contributor as a result of warranty, support,+indemnity or liability terms You offer. You may include additional+disclaimers of warranty and limitations of liability specific to any+jurisdiction.++4. Inability to Comply Due to Statute or Regulation+---------------------------------------------------++If it is impossible for You to comply with any of the terms of this+License with respect to some or all of the Covered Software due to+statute, judicial order, or regulation then You must: (a) comply with+the terms of this License to the maximum extent possible; and (b)+describe the limitations and the code they affect. Such description must+be placed in a text file included with all distributions of the Covered+Software under this License. Except to the extent prohibited by statute+or regulation, such description must be sufficiently detailed for a+recipient of ordinary skill to be able to understand it.++5. Termination+--------------++5.1. The rights granted under this License will terminate automatically+if You fail to comply with any of its terms. However, if You become+compliant, then the rights granted under this License from a particular+Contributor are reinstated (a) provisionally, unless and until such+Contributor explicitly and finally terminates Your grants, and (b) on an+ongoing basis, if such Contributor fails to notify You of the+non-compliance by some reasonable means prior to 60 days after You have+come back into compliance. Moreover, Your grants from a particular+Contributor are reinstated on an ongoing basis if such Contributor+notifies You of the non-compliance by some reasonable means, this is the+first time You have received notice of non-compliance with this License+from such Contributor, and You become compliant prior to 30 days after+Your receipt of the notice.++5.2. If You initiate litigation against any entity by asserting a patent+infringement claim (excluding declaratory judgment actions,+counter-claims, and cross-claims) alleging that a Contributor Version+directly or indirectly infringes any patent, then the rights granted to+You by any and all Contributors for the Covered Software under Section+2.1 of this License shall terminate.++5.3. In the event of termination under Sections 5.1 or 5.2 above, all+end user license agreements (excluding distributors and resellers) which+have been validly granted by You or Your distributors under this License+prior to termination shall survive termination.++************************************************************************+* *+* 6. Disclaimer of Warranty *+* ------------------------- *+* *+* Covered Software is provided under this License on an "as is" *+* basis, without warranty of any kind, either expressed, implied, or *+* statutory, including, without limitation, warranties that the *+* Covered Software is free of defects, merchantable, fit for a *+* particular purpose or non-infringing. The entire risk as to the *+* quality and performance of the Covered Software is with You. *+* Should any Covered Software prove defective in any respect, You *+* (not any Contributor) assume the cost of any necessary servicing, *+* repair, or correction. This disclaimer of warranty constitutes an *+* essential part of this License. No use of any Covered Software is *+* authorized under this License except under this disclaimer. *+* *+************************************************************************++************************************************************************+* *+* 7. Limitation of Liability *+* -------------------------- *+* *+* Under no circumstances and under no legal theory, whether tort *+* (including negligence), contract, or otherwise, shall any *+* Contributor, or anyone who distributes Covered Software as *+* permitted above, be liable to You for any direct, indirect, *+* special, incidental, or consequential damages of any character *+* including, without limitation, damages for lost profits, loss of *+* goodwill, work stoppage, computer failure or malfunction, or any *+* and all other commercial damages or losses, even if such party *+* shall have been informed of the possibility of such damages. This *+* limitation of liability shall not apply to liability for death or *+* personal injury resulting from such party's negligence to the *+* extent applicable law prohibits such limitation. Some *+* jurisdictions do not allow the exclusion or limitation of *+* incidental or consequential damages, so this exclusion and *+* limitation may not apply to You. *+* *+************************************************************************++8. Litigation+-------------++Any litigation relating to this License may be brought only in the+courts of a jurisdiction where the defendant maintains its principal+place of business and such litigation shall be governed by laws of that+jurisdiction, without reference to its conflict-of-law provisions.+Nothing in this Section shall prevent a party's ability to bring+cross-claims or counter-claims.++9. Miscellaneous+----------------++This License represents the complete agreement concerning the subject+matter hereof. If any provision of this License is held to be+unenforceable, such provision shall be reformed only to the extent+necessary to make it enforceable. Any law or regulation which provides+that the language of a contract shall be construed against the drafter+shall not be used to construe this License against a Contributor.++10. Versions of the License+---------------------------++10.1. New Versions++Mozilla Foundation is the license steward. Except as provided in Section+10.3, no one other than the license steward has the right to modify or+publish new versions of this License. Each version will be given a+distinguishing version number.++10.2. Effect of New Versions++You may distribute the Covered Software under the terms of the version+of the License under which You originally received the Covered Software,+or under the terms of any subsequent version published by the license+steward.++10.3. Modified Versions++If you create software not governed by this License, and you want to+create a new license for such software, you may create and use a+modified version of this License if you rename the license and remove+any references to the name of the license steward (except to note that+such modified license differs from this License).++10.4. Distributing Source Code Form that is Incompatible With Secondary+Licenses++If You choose to distribute Source Code Form that is Incompatible With+Secondary Licenses under the terms of this version of the License, the+notice described in Exhibit B of this License must be attached.++Exhibit A - Source Code Form License Notice+-------------------------------------------++ This Source Code Form is subject to the terms of the Mozilla Public+ License, v. 2.0. If a copy of the MPL was not distributed with this+ file, You can obtain one at http://mozilla.org/MPL/2.0/.++If it is not possible or desirable to put the notice in a particular+file, then You may include the notice in a location (such as a LICENSE+file in a relevant directory) where a recipient would be likely to look+for such a notice.++You may add additional accurate notices of copyright ownership.
+ README.md view
@@ -0,0 +1,45 @@+# Amazon Health APIs and Notifications SDK++* [Version](#version)+* [Description](#description)+* [Contribute](#contribute)+* [Licence](#licence)+++## Version++`1.4.5`+++## Description++Documentation is available via [Hackage](http://hackage.haskell.org/package/amazonka-health)+and the [AWS API Reference](https://aws.amazon.com/documentation/).++The types from this library are intended to be used with [amazonka](http://hackage.haskell.org/package/amazonka),+which provides mechanisms for specifying AuthN/AuthZ information, sending requests,+and receiving responses.++Lenses are used for constructing and manipulating types,+due to the depth of nesting of AWS types and transparency regarding+de/serialisation into more palatable Haskell values.+The provided lenses should be compatible with any of the major lens libraries+[lens](http://hackage.haskell.org/package/lens) or [lens-family-core](http://hackage.haskell.org/package/lens-family-core).++See [Network.AWS.AWSHealth](http://hackage.haskell.org/package/amazonka-health/docs/Network-AWS-AWSHealth.html)+or [the AWS documentation](https://aws.amazon.com/documentation/) to get started.+++## Contribute++For any problems, comments, or feedback please create an issue [here on GitHub](https://github.com/brendanhay/amazonka/issues).++> _Note:_ this library is an auto-generated Haskell package. Please see `amazonka-gen` for more information.+++## Licence++`amazonka-health` is released under the [Mozilla Public License Version 2.0](http://www.mozilla.org/MPL/).++Parts of the code are derived from AWS service descriptions, licensed under Apache 2.0.+Source files subject to this contain an additional licensing clause in their header.
+ Setup.hs view
@@ -0,0 +1,2 @@+import Distribution.Simple+main = defaultMain
+ amazonka-health.cabal view
@@ -0,0 +1,86 @@+name: amazonka-health+version: 1.4.5+synopsis: Amazon Health APIs and Notifications SDK.+homepage: https://github.com/brendanhay/amazonka+bug-reports: https://github.com/brendanhay/amazonka/issues+license: OtherLicense+license-file: LICENSE+author: Brendan Hay+maintainer: Brendan Hay <brendan.g.hay@gmail.com>+copyright: Copyright (c) 2013-2016 Brendan Hay+category: Network, AWS, Cloud, Distributed Computing+build-type: Simple+cabal-version: >= 1.10+extra-source-files: README.md fixture/*.yaml fixture/*.proto src/.gitkeep+description:+ The types from this library are intended to be used with+ <http://hackage.haskell.org/package/amazonka amazonka>, which provides+ mechanisms for specifying AuthN/AuthZ information, sending requests,+ and receiving responses.+ .+ Lenses are used for constructing and manipulating types,+ due to the depth of nesting of AWS types and transparency regarding+ de/serialisation into more palatable Haskell values.+ The provided lenses should be compatible with any of the major lens libraries+ such as <http://hackage.haskell.org/package/lens lens> or+ <http://hackage.haskell.org/package/lens-family-core lens-family-core>.+ .+ See "Network.AWS.AWSHealth" or <https://aws.amazon.com/documentation/ the AWS documentation>+ to get started.++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.AWSHealth+ , Network.AWS.AWSHealth.DescribeAffectedEntities+ , Network.AWS.AWSHealth.DescribeEntityAggregates+ , Network.AWS.AWSHealth.DescribeEventAggregates+ , Network.AWS.AWSHealth.DescribeEventDetails+ , Network.AWS.AWSHealth.DescribeEventTypes+ , Network.AWS.AWSHealth.DescribeEvents+ , Network.AWS.AWSHealth.Types+ , Network.AWS.AWSHealth.Waiters++ other-modules:+ Network.AWS.AWSHealth.Types.Product+ , Network.AWS.AWSHealth.Types.Sum++ build-depends:+ amazonka-core == 1.4.5.*+ , base >= 4.7 && < 5++test-suite amazonka-health-test+ type: exitcode-stdio-1.0+ default-language: Haskell2010+ hs-source-dirs: test+ main-is: Main.hs++ ghc-options: -Wall -threaded++ -- This section is encoded by the template and any modules added by+ -- hand outside these namespaces will not correctly be added to the+ -- distribution package.+ other-modules:+ Test.AWS.AWSHealth+ , Test.AWS.Gen.AWSHealth+ , Test.AWS.AWSHealth.Internal++ build-depends:+ amazonka-core == 1.4.5.*+ , amazonka-test == 1.4.5.*+ , amazonka-health == 1.4.5.*+ , base+ , bytestring+ , tasty+ , tasty-hunit+ , text+ , time+ , unordered-containers
+ fixture/DescribeAffectedEntities.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/health/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: health.us-east-1.amazonaws.com+ Content-Type: application/x-www-form-urlencoded; charset=utf-8+ X-Amz-Content-SHA256: abcdef+ X-Amz-Date: 20091028T223200Z+body:+ ''
+ fixture/DescribeAffectedEntitiesResponse.proto view
+ fixture/DescribeEntityAggregates.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/health/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: health.us-east-1.amazonaws.com+ Content-Type: application/x-www-form-urlencoded; charset=utf-8+ X-Amz-Content-SHA256: abcdef+ X-Amz-Date: 20091028T223200Z+body:+ ''
+ fixture/DescribeEntityAggregatesResponse.proto view
+ fixture/DescribeEventAggregates.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/health/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: health.us-east-1.amazonaws.com+ Content-Type: application/x-www-form-urlencoded; charset=utf-8+ X-Amz-Content-SHA256: abcdef+ X-Amz-Date: 20091028T223200Z+body:+ ''
+ fixture/DescribeEventAggregatesResponse.proto view
+ fixture/DescribeEventDetails.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/health/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: health.us-east-1.amazonaws.com+ Content-Type: application/x-www-form-urlencoded; charset=utf-8+ X-Amz-Content-SHA256: abcdef+ X-Amz-Date: 20091028T223200Z+body:+ ''
+ fixture/DescribeEventDetailsResponse.proto view
+ fixture/DescribeEventTypes.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/health/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: health.us-east-1.amazonaws.com+ Content-Type: application/x-www-form-urlencoded; charset=utf-8+ X-Amz-Content-SHA256: abcdef+ X-Amz-Date: 20091028T223200Z+body:+ ''
+ fixture/DescribeEventTypesResponse.proto view
+ fixture/DescribeEvents.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/health/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: health.us-east-1.amazonaws.com+ Content-Type: application/x-www-form-urlencoded; charset=utf-8+ X-Amz-Content-SHA256: abcdef+ X-Amz-Date: 20091028T223200Z+body:+ ''
+ fixture/DescribeEventsResponse.proto view
+ gen/Network/AWS/AWSHealth.hs view
@@ -0,0 +1,243 @@+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Network.AWS.AWSHealth+-- Copyright : (c) 2013-2016 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- __AWS Health__+--+-- The AWS Health API provides programmatic access to the AWS Health information that is presented in the AWS Personal Health Dashboard. You can get information about events that affect your AWS resources:+--+-- * 'DescribeEvents' : Summary information about events.+--+-- * 'DescribeEventDetails' : Detailed information about one or more events.+--+-- * 'DescribeAffectedEntities' : Information about AWS resources that are affected by one or more events.+--+--+--+-- In addition, these operations provide information about event types and summary counts of events or affected entities:+--+-- * 'DescribeEventTypes' : Information about the kinds of events that AWS Health tracks.+--+-- * 'DescribeEventAggregates' : A count of the number of events that meet specified criteria.+--+-- * 'DescribeEntityAggregates' : A count of the number of affected entities that meet specified criteria.+--+--+--+-- The Health API requires a Business or Enterprise support plan from <http://aws.amazon.com/premiumsupport/ AWS Support> . Calling the Health API from an account that does not have a Business or Enterprise support plan causes a @SubscriptionRequiredException@ .+--+-- For authentication of requests, AWS Health uses the <http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html Signature Version 4 Signing Process> .+--+-- See the <http://docs.aws.amazon.com/health/latest/ug/what-is-aws-health.html AWS Health User Guide> for information about how to use the API.+--+-- __Service Endpoint__+--+-- The HTTP endpoint for the AWS Health API is:+--+-- * https://health.us-east-1.amazonaws.com+--+--+--+module Network.AWS.AWSHealth+ (+ -- * Service Configuration+ awsHealth++ -- * Errors+ -- $errors++ -- ** InvalidPaginationToken+ , _InvalidPaginationToken++ -- ** UnsupportedLocale+ , _UnsupportedLocale++ -- * Waiters+ -- $waiters++ -- * Operations+ -- $operations++ -- ** DescribeEntityAggregates+ , module Network.AWS.AWSHealth.DescribeEntityAggregates++ -- ** DescribeEvents+ , module Network.AWS.AWSHealth.DescribeEvents++ -- ** DescribeEventDetails+ , module Network.AWS.AWSHealth.DescribeEventDetails++ -- ** DescribeEventAggregates+ , module Network.AWS.AWSHealth.DescribeEventAggregates++ -- ** DescribeAffectedEntities+ , module Network.AWS.AWSHealth.DescribeAffectedEntities++ -- ** DescribeEventTypes+ , module Network.AWS.AWSHealth.DescribeEventTypes++ -- * Types++ -- ** EntityStatusCode+ , EntityStatusCode (..)++ -- ** EventAggregateField+ , EventAggregateField (..)++ -- ** EventStatusCode+ , EventStatusCode (..)++ -- ** EventTypeCategory+ , EventTypeCategory (..)++ -- ** AffectedEntity+ , AffectedEntity+ , affectedEntity+ , aeLastUpdatedTime+ , aeEntityValue+ , aeAwsAccountId+ , aeEventARN+ , aeEntityARN+ , aeTags+ , aeStatusCode++ -- ** DateTimeRange+ , DateTimeRange+ , dateTimeRange+ , dtrTo+ , dtrFrom++ -- ** EntityAggregate+ , EntityAggregate+ , entityAggregate+ , eCount+ , eEventARN++ -- ** EntityFilter+ , EntityFilter+ , entityFilter+ , eStatusCodes+ , eEntityARNs+ , eEntityValues+ , eTags+ , eLastUpdatedTimes+ , eEventARNs++ -- ** Event+ , Event+ , event+ , eLastUpdatedTime+ , eArn+ , eService+ , eStartTime+ , eEventTypeCode+ , eEventTypeCategory+ , eAvailabilityZone+ , eEndTime+ , eRegion+ , eStatusCode++ -- ** EventAggregate+ , EventAggregate+ , eventAggregate+ , eaCount+ , eaAggregateValue++ -- ** EventDescription+ , EventDescription+ , eventDescription+ , edLatestDescription++ -- ** EventDetails+ , EventDetails+ , eventDetails+ , edEvent+ , edEventDescription+ , edEventMetadata++ -- ** EventDetailsErrorItem+ , EventDetailsErrorItem+ , eventDetailsErrorItem+ , edeiEventARN+ , edeiErrorName+ , edeiErrorMessage++ -- ** EventFilter+ , EventFilter+ , eventFilter+ , efEventARNs+ , efEventTypeCategories+ , efEventTypeCodes+ , efRegions+ , efEventStatusCodes+ , efEndTimes+ , efAvailabilityZones+ , efEntityARNs+ , efEntityValues+ , efStartTimes+ , efServices+ , efTags+ , efLastUpdatedTimes++ -- ** EventType+ , EventType+ , eventType+ , etService+ , etCategory+ , etCode++ -- ** EventTypeFilter+ , EventTypeFilter+ , eventTypeFilter+ , etfEventTypeCategories+ , etfEventTypeCodes+ , etfServices+ ) where++import Network.AWS.AWSHealth.DescribeAffectedEntities+import Network.AWS.AWSHealth.DescribeEntityAggregates+import Network.AWS.AWSHealth.DescribeEventAggregates+import Network.AWS.AWSHealth.DescribeEventDetails+import Network.AWS.AWSHealth.DescribeEvents+import Network.AWS.AWSHealth.DescribeEventTypes+import Network.AWS.AWSHealth.Types+import Network.AWS.AWSHealth.Waiters++{- $errors+Error matchers are designed for use with the functions provided by+<http://hackage.haskell.org/package/lens/docs/Control-Exception-Lens.html Control.Exception.Lens>.+This allows catching (and rethrowing) service specific errors returned+by 'AWSHealth'.+-}++{- $operations+Some AWS operations return results that are incomplete and require subsequent+requests in order to obtain the entire result set. The process of sending+subsequent requests to continue where a previous request left off is called+pagination. For example, the 'ListObjects' operation of Amazon S3 returns up to+1000 objects at a time, and you must send subsequent requests with the+appropriate Marker in order to retrieve the next page of results.++Operations that have an 'AWSPager' instance can transparently perform subsequent+requests, correctly setting Markers and other request facets to iterate through+the entire result set of a truncated API operation. Operations which support+this have an additional note in the documentation.++Many operations have the ability to filter results on the server side. See the+individual operation parameters for details.+-}++{- $waiters+Waiters poll by repeatedly sending a request until some remote success condition+configured by the 'Wait' specification is fulfilled. The 'Wait' specification+determines how many attempts should be made, in addition to delay and retry strategies.+-}
+ gen/Network/AWS/AWSHealth/DescribeAffectedEntities.hs view
@@ -0,0 +1,177 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Network.AWS.AWSHealth.DescribeAffectedEntities+-- Copyright : (c) 2013-2016 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns a list of entities that have been affected by the specified events, based on the specified filter criteria. Entities can refer to individual customer resources, groups of customer resources, or any other construct, depending on the AWS service. Events that have impact beyond that of the affected entities, or where the extent of impact is unknown, include at least one entity indicating this.+--+--+-- At least one event ARN is required. Results are sorted by the @lastUpdatedTime@ of the entity, starting with the most recent.+--+module Network.AWS.AWSHealth.DescribeAffectedEntities+ (+ -- * Creating a Request+ describeAffectedEntities+ , DescribeAffectedEntities+ -- * Request Lenses+ , daeLocale+ , daeNextToken+ , daeMaxResults+ , daeFilter++ -- * Destructuring the Response+ , describeAffectedEntitiesResponse+ , DescribeAffectedEntitiesResponse+ -- * Response Lenses+ , daersEntities+ , daersNextToken+ , daersResponseStatus+ ) where++import Network.AWS.AWSHealth.Types+import Network.AWS.AWSHealth.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'describeAffectedEntities' smart constructor.+data DescribeAffectedEntities = DescribeAffectedEntities'+ { _daeLocale :: !(Maybe Text)+ , _daeNextToken :: !(Maybe Text)+ , _daeMaxResults :: !(Maybe Nat)+ , _daeFilter :: !EntityFilter+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'DescribeAffectedEntities' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'daeLocale' - The locale (language) to return information in. The default is English.+--+-- * 'daeNextToken' - If the results of a search are large, only a portion of the results are returned, and a @nextToken@ pagination token is returned in the response. To retrieve the next batch of results, reissue the search request and include the returned token. When all results have been returned, the response does not contain a pagination token value.+--+-- * 'daeMaxResults' - The maximum number of items to return in one batch.+--+-- * 'daeFilter' - Values to narrow the results returned. At least one event ARN is required.+describeAffectedEntities+ :: EntityFilter -- ^ 'daeFilter'+ -> DescribeAffectedEntities+describeAffectedEntities pFilter_ =+ DescribeAffectedEntities'+ { _daeLocale = Nothing+ , _daeNextToken = Nothing+ , _daeMaxResults = Nothing+ , _daeFilter = pFilter_+ }++-- | The locale (language) to return information in. The default is English.+daeLocale :: Lens' DescribeAffectedEntities (Maybe Text)+daeLocale = lens _daeLocale (\ s a -> s{_daeLocale = a});++-- | If the results of a search are large, only a portion of the results are returned, and a @nextToken@ pagination token is returned in the response. To retrieve the next batch of results, reissue the search request and include the returned token. When all results have been returned, the response does not contain a pagination token value.+daeNextToken :: Lens' DescribeAffectedEntities (Maybe Text)+daeNextToken = lens _daeNextToken (\ s a -> s{_daeNextToken = a});++-- | The maximum number of items to return in one batch.+daeMaxResults :: Lens' DescribeAffectedEntities (Maybe Natural)+daeMaxResults = lens _daeMaxResults (\ s a -> s{_daeMaxResults = a}) . mapping _Nat;++-- | Values to narrow the results returned. At least one event ARN is required.+daeFilter :: Lens' DescribeAffectedEntities EntityFilter+daeFilter = lens _daeFilter (\ s a -> s{_daeFilter = a});++instance AWSRequest DescribeAffectedEntities where+ type Rs DescribeAffectedEntities =+ DescribeAffectedEntitiesResponse+ request = postJSON awsHealth+ response+ = receiveJSON+ (\ s h x ->+ DescribeAffectedEntitiesResponse' <$>+ (x .?> "entities" .!@ mempty) <*> (x .?> "nextToken")+ <*> (pure (fromEnum s)))++instance Hashable DescribeAffectedEntities++instance NFData DescribeAffectedEntities++instance ToHeaders DescribeAffectedEntities where+ toHeaders+ = const+ (mconcat+ ["X-Amz-Target" =#+ ("AWSHealth_20160804.DescribeAffectedEntities" ::+ ByteString),+ "Content-Type" =#+ ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON DescribeAffectedEntities where+ toJSON DescribeAffectedEntities'{..}+ = object+ (catMaybes+ [("locale" .=) <$> _daeLocale,+ ("nextToken" .=) <$> _daeNextToken,+ ("maxResults" .=) <$> _daeMaxResults,+ Just ("filter" .= _daeFilter)])++instance ToPath DescribeAffectedEntities where+ toPath = const "/"++instance ToQuery DescribeAffectedEntities where+ toQuery = const mempty++-- | /See:/ 'describeAffectedEntitiesResponse' smart constructor.+data DescribeAffectedEntitiesResponse = DescribeAffectedEntitiesResponse'+ { _daersEntities :: !(Maybe [AffectedEntity])+ , _daersNextToken :: !(Maybe Text)+ , _daersResponseStatus :: !Int+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'DescribeAffectedEntitiesResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'daersEntities' - The entities that match the filter criteria.+--+-- * 'daersNextToken' - If the results of a search are large, only a portion of the results are returned, and a @nextToken@ pagination token is returned in the response. To retrieve the next batch of results, reissue the search request and include the returned token. When all results have been returned, the response does not contain a pagination token value.+--+-- * 'daersResponseStatus' - -- | The response status code.+describeAffectedEntitiesResponse+ :: Int -- ^ 'daersResponseStatus'+ -> DescribeAffectedEntitiesResponse+describeAffectedEntitiesResponse pResponseStatus_ =+ DescribeAffectedEntitiesResponse'+ { _daersEntities = Nothing+ , _daersNextToken = Nothing+ , _daersResponseStatus = pResponseStatus_+ }++-- | The entities that match the filter criteria.+daersEntities :: Lens' DescribeAffectedEntitiesResponse [AffectedEntity]+daersEntities = lens _daersEntities (\ s a -> s{_daersEntities = a}) . _Default . _Coerce;++-- | If the results of a search are large, only a portion of the results are returned, and a @nextToken@ pagination token is returned in the response. To retrieve the next batch of results, reissue the search request and include the returned token. When all results have been returned, the response does not contain a pagination token value.+daersNextToken :: Lens' DescribeAffectedEntitiesResponse (Maybe Text)+daersNextToken = lens _daersNextToken (\ s a -> s{_daersNextToken = a});++-- | -- | The response status code.+daersResponseStatus :: Lens' DescribeAffectedEntitiesResponse Int+daersResponseStatus = lens _daersResponseStatus (\ s a -> s{_daersResponseStatus = a});++instance NFData DescribeAffectedEntitiesResponse
+ gen/Network/AWS/AWSHealth/DescribeEntityAggregates.hs view
@@ -0,0 +1,134 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Network.AWS.AWSHealth.DescribeEntityAggregates+-- Copyright : (c) 2013-2016 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns the number of entities that are affected by each of the specified events. If no events are specified, the counts of all affected entities are returned.+--+--+module Network.AWS.AWSHealth.DescribeEntityAggregates+ (+ -- * Creating a Request+ describeEntityAggregates+ , DescribeEntityAggregates+ -- * Request Lenses+ , deaEventARNs++ -- * Destructuring the Response+ , describeEntityAggregatesResponse+ , DescribeEntityAggregatesResponse+ -- * Response Lenses+ , dearsEntityAggregates+ , dearsResponseStatus+ ) where++import Network.AWS.AWSHealth.Types+import Network.AWS.AWSHealth.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'describeEntityAggregates' smart constructor.+newtype DescribeEntityAggregates = DescribeEntityAggregates'+ { _deaEventARNs :: Maybe (List1 Text)+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'DescribeEntityAggregates' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'deaEventARNs' - A list of event ARNs (unique identifiers). For example: @"arn:aws:health:us-east-1::event/AWS_EC2_MAINTENANCE_5331", "arn:aws:health:us-west-1::event/AWS_EBS_LOST_VOLUME_xyz"@+describeEntityAggregates+ :: DescribeEntityAggregates+describeEntityAggregates =+ DescribeEntityAggregates'+ { _deaEventARNs = Nothing+ }++-- | A list of event ARNs (unique identifiers). For example: @"arn:aws:health:us-east-1::event/AWS_EC2_MAINTENANCE_5331", "arn:aws:health:us-west-1::event/AWS_EBS_LOST_VOLUME_xyz"@+deaEventARNs :: Lens' DescribeEntityAggregates (Maybe (NonEmpty Text))+deaEventARNs = lens _deaEventARNs (\ s a -> s{_deaEventARNs = a}) . mapping _List1;++instance AWSRequest DescribeEntityAggregates where+ type Rs DescribeEntityAggregates =+ DescribeEntityAggregatesResponse+ request = postJSON awsHealth+ response+ = receiveJSON+ (\ s h x ->+ DescribeEntityAggregatesResponse' <$>+ (x .?> "entityAggregates" .!@ mempty) <*>+ (pure (fromEnum s)))++instance Hashable DescribeEntityAggregates++instance NFData DescribeEntityAggregates++instance ToHeaders DescribeEntityAggregates where+ toHeaders+ = const+ (mconcat+ ["X-Amz-Target" =#+ ("AWSHealth_20160804.DescribeEntityAggregates" ::+ ByteString),+ "Content-Type" =#+ ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON DescribeEntityAggregates where+ toJSON DescribeEntityAggregates'{..}+ = object+ (catMaybes [("eventArns" .=) <$> _deaEventARNs])++instance ToPath DescribeEntityAggregates where+ toPath = const "/"++instance ToQuery DescribeEntityAggregates where+ toQuery = const mempty++-- | /See:/ 'describeEntityAggregatesResponse' smart constructor.+data DescribeEntityAggregatesResponse = DescribeEntityAggregatesResponse'+ { _dearsEntityAggregates :: !(Maybe [EntityAggregate])+ , _dearsResponseStatus :: !Int+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'DescribeEntityAggregatesResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'dearsEntityAggregates' - The number of entities that are affected by each of the specified events.+--+-- * 'dearsResponseStatus' - -- | The response status code.+describeEntityAggregatesResponse+ :: Int -- ^ 'dearsResponseStatus'+ -> DescribeEntityAggregatesResponse+describeEntityAggregatesResponse pResponseStatus_ =+ DescribeEntityAggregatesResponse'+ { _dearsEntityAggregates = Nothing+ , _dearsResponseStatus = pResponseStatus_+ }++-- | The number of entities that are affected by each of the specified events.+dearsEntityAggregates :: Lens' DescribeEntityAggregatesResponse [EntityAggregate]+dearsEntityAggregates = lens _dearsEntityAggregates (\ s a -> s{_dearsEntityAggregates = a}) . _Default . _Coerce;++-- | -- | The response status code.+dearsResponseStatus :: Lens' DescribeEntityAggregatesResponse Int+dearsResponseStatus = lens _dearsResponseStatus (\ s a -> s{_dearsResponseStatus = a});++instance NFData DescribeEntityAggregatesResponse
+ gen/Network/AWS/AWSHealth/DescribeEventAggregates.hs view
@@ -0,0 +1,176 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Network.AWS.AWSHealth.DescribeEventAggregates+-- Copyright : (c) 2013-2016 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns the number of events of each event type (issue, scheduled change, and account notification). If no filter is specified, the counts of all events in each category are returned.+--+--+module Network.AWS.AWSHealth.DescribeEventAggregates+ (+ -- * Creating a Request+ describeEventAggregates+ , DescribeEventAggregates+ -- * Request Lenses+ , deaNextToken+ , deaFilter+ , deaMaxResults+ , deaAggregateField++ -- * Destructuring the Response+ , describeEventAggregatesResponse+ , DescribeEventAggregatesResponse+ -- * Response Lenses+ , drsNextToken+ , drsEventAggregates+ , drsResponseStatus+ ) where++import Network.AWS.AWSHealth.Types+import Network.AWS.AWSHealth.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'describeEventAggregates' smart constructor.+data DescribeEventAggregates = DescribeEventAggregates'+ { _deaNextToken :: !(Maybe Text)+ , _deaFilter :: !(Maybe EventFilter)+ , _deaMaxResults :: !(Maybe Nat)+ , _deaAggregateField :: !EventAggregateField+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'DescribeEventAggregates' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'deaNextToken' - If the results of a search are large, only a portion of the results are returned, and a @nextToken@ pagination token is returned in the response. To retrieve the next batch of results, reissue the search request and include the returned token. When all results have been returned, the response does not contain a pagination token value.+--+-- * 'deaFilter' - Values to narrow the results returned.+--+-- * 'deaMaxResults' - The maximum number of items to return in one batch.+--+-- * 'deaAggregateField' - The only currently supported value is @eventTypeCategory@ .+describeEventAggregates+ :: EventAggregateField -- ^ 'deaAggregateField'+ -> DescribeEventAggregates+describeEventAggregates pAggregateField_ =+ DescribeEventAggregates'+ { _deaNextToken = Nothing+ , _deaFilter = Nothing+ , _deaMaxResults = Nothing+ , _deaAggregateField = pAggregateField_+ }++-- | If the results of a search are large, only a portion of the results are returned, and a @nextToken@ pagination token is returned in the response. To retrieve the next batch of results, reissue the search request and include the returned token. When all results have been returned, the response does not contain a pagination token value.+deaNextToken :: Lens' DescribeEventAggregates (Maybe Text)+deaNextToken = lens _deaNextToken (\ s a -> s{_deaNextToken = a});++-- | Values to narrow the results returned.+deaFilter :: Lens' DescribeEventAggregates (Maybe EventFilter)+deaFilter = lens _deaFilter (\ s a -> s{_deaFilter = a});++-- | The maximum number of items to return in one batch.+deaMaxResults :: Lens' DescribeEventAggregates (Maybe Natural)+deaMaxResults = lens _deaMaxResults (\ s a -> s{_deaMaxResults = a}) . mapping _Nat;++-- | The only currently supported value is @eventTypeCategory@ .+deaAggregateField :: Lens' DescribeEventAggregates EventAggregateField+deaAggregateField = lens _deaAggregateField (\ s a -> s{_deaAggregateField = a});++instance AWSRequest DescribeEventAggregates where+ type Rs DescribeEventAggregates =+ DescribeEventAggregatesResponse+ request = postJSON awsHealth+ response+ = receiveJSON+ (\ s h x ->+ DescribeEventAggregatesResponse' <$>+ (x .?> "nextToken") <*>+ (x .?> "eventAggregates" .!@ mempty)+ <*> (pure (fromEnum s)))++instance Hashable DescribeEventAggregates++instance NFData DescribeEventAggregates++instance ToHeaders DescribeEventAggregates where+ toHeaders+ = const+ (mconcat+ ["X-Amz-Target" =#+ ("AWSHealth_20160804.DescribeEventAggregates" ::+ ByteString),+ "Content-Type" =#+ ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON DescribeEventAggregates where+ toJSON DescribeEventAggregates'{..}+ = object+ (catMaybes+ [("nextToken" .=) <$> _deaNextToken,+ ("filter" .=) <$> _deaFilter,+ ("maxResults" .=) <$> _deaMaxResults,+ Just ("aggregateField" .= _deaAggregateField)])++instance ToPath DescribeEventAggregates where+ toPath = const "/"++instance ToQuery DescribeEventAggregates where+ toQuery = const mempty++-- | /See:/ 'describeEventAggregatesResponse' smart constructor.+data DescribeEventAggregatesResponse = DescribeEventAggregatesResponse'+ { _drsNextToken :: !(Maybe Text)+ , _drsEventAggregates :: !(Maybe [EventAggregate])+ , _drsResponseStatus :: !Int+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'DescribeEventAggregatesResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'drsNextToken' - If the results of a search are large, only a portion of the results are returned, and a @nextToken@ pagination token is returned in the response. To retrieve the next batch of results, reissue the search request and include the returned token. When all results have been returned, the response does not contain a pagination token value.+--+-- * 'drsEventAggregates' - The number of events in each category that meet the optional filter criteria.+--+-- * 'drsResponseStatus' - -- | The response status code.+describeEventAggregatesResponse+ :: Int -- ^ 'drsResponseStatus'+ -> DescribeEventAggregatesResponse+describeEventAggregatesResponse pResponseStatus_ =+ DescribeEventAggregatesResponse'+ { _drsNextToken = Nothing+ , _drsEventAggregates = Nothing+ , _drsResponseStatus = pResponseStatus_+ }++-- | If the results of a search are large, only a portion of the results are returned, and a @nextToken@ pagination token is returned in the response. To retrieve the next batch of results, reissue the search request and include the returned token. When all results have been returned, the response does not contain a pagination token value.+drsNextToken :: Lens' DescribeEventAggregatesResponse (Maybe Text)+drsNextToken = lens _drsNextToken (\ s a -> s{_drsNextToken = a});++-- | The number of events in each category that meet the optional filter criteria.+drsEventAggregates :: Lens' DescribeEventAggregatesResponse [EventAggregate]+drsEventAggregates = lens _drsEventAggregates (\ s a -> s{_drsEventAggregates = a}) . _Default . _Coerce;++-- | -- | The response status code.+drsResponseStatus :: Lens' DescribeEventAggregatesResponse Int+drsResponseStatus = lens _drsResponseStatus (\ s a -> s{_drsResponseStatus = a});++instance NFData DescribeEventAggregatesResponse
+ gen/Network/AWS/AWSHealth/DescribeEventDetails.hs view
@@ -0,0 +1,158 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Network.AWS.AWSHealth.DescribeEventDetails+-- Copyright : (c) 2013-2016 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns detailed information about one or more specified events. Information includes standard event data (region, service, etc., as returned by 'DescribeEvents' ), a detailed event description, and possible additional metadata that depends upon the nature of the event. Affected entities are not included; to retrieve those, use the 'DescribeAffectedEntities' operation.+--+--+-- If a specified event cannot be retrieved, an error message is returned for that event.+--+module Network.AWS.AWSHealth.DescribeEventDetails+ (+ -- * Creating a Request+ describeEventDetails+ , DescribeEventDetails+ -- * Request Lenses+ , dedLocale+ , dedEventARNs++ -- * Destructuring the Response+ , describeEventDetailsResponse+ , DescribeEventDetailsResponse+ -- * Response Lenses+ , dedrsSuccessfulSet+ , dedrsFailedSet+ , dedrsResponseStatus+ ) where++import Network.AWS.AWSHealth.Types+import Network.AWS.AWSHealth.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'describeEventDetails' smart constructor.+data DescribeEventDetails = DescribeEventDetails'+ { _dedLocale :: !(Maybe Text)+ , _dedEventARNs :: !(List1 Text)+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'DescribeEventDetails' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'dedLocale' - The locale (language) to return information in. The default is English.+--+-- * 'dedEventARNs' - A list of event ARNs (unique identifiers). For example: @"arn:aws:health:us-east-1::event/AWS_EC2_MAINTENANCE_5331", "arn:aws:health:us-west-1::event/AWS_EBS_LOST_VOLUME_xyz"@+describeEventDetails+ :: NonEmpty Text -- ^ 'dedEventARNs'+ -> DescribeEventDetails+describeEventDetails pEventARNs_ =+ DescribeEventDetails'+ { _dedLocale = Nothing+ , _dedEventARNs = _List1 # pEventARNs_+ }++-- | The locale (language) to return information in. The default is English.+dedLocale :: Lens' DescribeEventDetails (Maybe Text)+dedLocale = lens _dedLocale (\ s a -> s{_dedLocale = a});++-- | A list of event ARNs (unique identifiers). For example: @"arn:aws:health:us-east-1::event/AWS_EC2_MAINTENANCE_5331", "arn:aws:health:us-west-1::event/AWS_EBS_LOST_VOLUME_xyz"@+dedEventARNs :: Lens' DescribeEventDetails (NonEmpty Text)+dedEventARNs = lens _dedEventARNs (\ s a -> s{_dedEventARNs = a}) . _List1;++instance AWSRequest DescribeEventDetails where+ type Rs DescribeEventDetails =+ DescribeEventDetailsResponse+ request = postJSON awsHealth+ response+ = receiveJSON+ (\ s h x ->+ DescribeEventDetailsResponse' <$>+ (x .?> "successfulSet" .!@ mempty) <*>+ (x .?> "failedSet" .!@ mempty)+ <*> (pure (fromEnum s)))++instance Hashable DescribeEventDetails++instance NFData DescribeEventDetails++instance ToHeaders DescribeEventDetails where+ toHeaders+ = const+ (mconcat+ ["X-Amz-Target" =#+ ("AWSHealth_20160804.DescribeEventDetails" ::+ ByteString),+ "Content-Type" =#+ ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON DescribeEventDetails where+ toJSON DescribeEventDetails'{..}+ = object+ (catMaybes+ [("locale" .=) <$> _dedLocale,+ Just ("eventArns" .= _dedEventARNs)])++instance ToPath DescribeEventDetails where+ toPath = const "/"++instance ToQuery DescribeEventDetails where+ toQuery = const mempty++-- | /See:/ 'describeEventDetailsResponse' smart constructor.+data DescribeEventDetailsResponse = DescribeEventDetailsResponse'+ { _dedrsSuccessfulSet :: !(Maybe [EventDetails])+ , _dedrsFailedSet :: !(Maybe [EventDetailsErrorItem])+ , _dedrsResponseStatus :: !Int+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'DescribeEventDetailsResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'dedrsSuccessfulSet' - Information about the events that could be retrieved.+--+-- * 'dedrsFailedSet' - Error messages for any events that could not be retrieved.+--+-- * 'dedrsResponseStatus' - -- | The response status code.+describeEventDetailsResponse+ :: Int -- ^ 'dedrsResponseStatus'+ -> DescribeEventDetailsResponse+describeEventDetailsResponse pResponseStatus_ =+ DescribeEventDetailsResponse'+ { _dedrsSuccessfulSet = Nothing+ , _dedrsFailedSet = Nothing+ , _dedrsResponseStatus = pResponseStatus_+ }++-- | Information about the events that could be retrieved.+dedrsSuccessfulSet :: Lens' DescribeEventDetailsResponse [EventDetails]+dedrsSuccessfulSet = lens _dedrsSuccessfulSet (\ s a -> s{_dedrsSuccessfulSet = a}) . _Default . _Coerce;++-- | Error messages for any events that could not be retrieved.+dedrsFailedSet :: Lens' DescribeEventDetailsResponse [EventDetailsErrorItem]+dedrsFailedSet = lens _dedrsFailedSet (\ s a -> s{_dedrsFailedSet = a}) . _Default . _Coerce;++-- | -- | The response status code.+dedrsResponseStatus :: Lens' DescribeEventDetailsResponse Int+dedrsResponseStatus = lens _dedrsResponseStatus (\ s a -> s{_dedrsResponseStatus = a});++instance NFData DescribeEventDetailsResponse
+ gen/Network/AWS/AWSHealth/DescribeEventTypes.hs view
@@ -0,0 +1,175 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Network.AWS.AWSHealth.DescribeEventTypes+-- Copyright : (c) 2013-2016 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns the event types that meet the specified filter criteria. If no filter criteria are specified, all event types are returned, in no particular order.+--+--+module Network.AWS.AWSHealth.DescribeEventTypes+ (+ -- * Creating a Request+ describeEventTypes+ , DescribeEventTypes+ -- * Request Lenses+ , detLocale+ , detNextToken+ , detFilter+ , detMaxResults++ -- * Destructuring the Response+ , describeEventTypesResponse+ , DescribeEventTypesResponse+ -- * Response Lenses+ , detrsEventTypes+ , detrsNextToken+ , detrsResponseStatus+ ) where++import Network.AWS.AWSHealth.Types+import Network.AWS.AWSHealth.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'describeEventTypes' smart constructor.+data DescribeEventTypes = DescribeEventTypes'+ { _detLocale :: !(Maybe Text)+ , _detNextToken :: !(Maybe Text)+ , _detFilter :: !(Maybe EventTypeFilter)+ , _detMaxResults :: !(Maybe Nat)+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'DescribeEventTypes' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'detLocale' - The locale (language) to return information in. The default is English.+--+-- * 'detNextToken' - If the results of a search are large, only a portion of the results are returned, and a @nextToken@ pagination token is returned in the response. To retrieve the next batch of results, reissue the search request and include the returned token. When all results have been returned, the response does not contain a pagination token value.+--+-- * 'detFilter' - Values to narrow the results returned.+--+-- * 'detMaxResults' - The maximum number of items to return in one batch.+describeEventTypes+ :: DescribeEventTypes+describeEventTypes =+ DescribeEventTypes'+ { _detLocale = Nothing+ , _detNextToken = Nothing+ , _detFilter = Nothing+ , _detMaxResults = Nothing+ }++-- | The locale (language) to return information in. The default is English.+detLocale :: Lens' DescribeEventTypes (Maybe Text)+detLocale = lens _detLocale (\ s a -> s{_detLocale = a});++-- | If the results of a search are large, only a portion of the results are returned, and a @nextToken@ pagination token is returned in the response. To retrieve the next batch of results, reissue the search request and include the returned token. When all results have been returned, the response does not contain a pagination token value.+detNextToken :: Lens' DescribeEventTypes (Maybe Text)+detNextToken = lens _detNextToken (\ s a -> s{_detNextToken = a});++-- | Values to narrow the results returned.+detFilter :: Lens' DescribeEventTypes (Maybe EventTypeFilter)+detFilter = lens _detFilter (\ s a -> s{_detFilter = a});++-- | The maximum number of items to return in one batch.+detMaxResults :: Lens' DescribeEventTypes (Maybe Natural)+detMaxResults = lens _detMaxResults (\ s a -> s{_detMaxResults = a}) . mapping _Nat;++instance AWSRequest DescribeEventTypes where+ type Rs DescribeEventTypes =+ DescribeEventTypesResponse+ request = postJSON awsHealth+ response+ = receiveJSON+ (\ s h x ->+ DescribeEventTypesResponse' <$>+ (x .?> "eventTypes" .!@ mempty) <*>+ (x .?> "nextToken")+ <*> (pure (fromEnum s)))++instance Hashable DescribeEventTypes++instance NFData DescribeEventTypes++instance ToHeaders DescribeEventTypes where+ toHeaders+ = const+ (mconcat+ ["X-Amz-Target" =#+ ("AWSHealth_20160804.DescribeEventTypes" ::+ ByteString),+ "Content-Type" =#+ ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON DescribeEventTypes where+ toJSON DescribeEventTypes'{..}+ = object+ (catMaybes+ [("locale" .=) <$> _detLocale,+ ("nextToken" .=) <$> _detNextToken,+ ("filter" .=) <$> _detFilter,+ ("maxResults" .=) <$> _detMaxResults])++instance ToPath DescribeEventTypes where+ toPath = const "/"++instance ToQuery DescribeEventTypes where+ toQuery = const mempty++-- | /See:/ 'describeEventTypesResponse' smart constructor.+data DescribeEventTypesResponse = DescribeEventTypesResponse'+ { _detrsEventTypes :: !(Maybe [EventType])+ , _detrsNextToken :: !(Maybe Text)+ , _detrsResponseStatus :: !Int+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'DescribeEventTypesResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'detrsEventTypes' - List of event types to be matched with.+--+-- * 'detrsNextToken' - If the results of a search are large, only a portion of the results are returned, and a @nextToken@ pagination token is returned in the response. To retrieve the next batch of results, reissue the search request and include the returned token. When all results have been returned, the response does not contain a pagination token value.+--+-- * 'detrsResponseStatus' - -- | The response status code.+describeEventTypesResponse+ :: Int -- ^ 'detrsResponseStatus'+ -> DescribeEventTypesResponse+describeEventTypesResponse pResponseStatus_ =+ DescribeEventTypesResponse'+ { _detrsEventTypes = Nothing+ , _detrsNextToken = Nothing+ , _detrsResponseStatus = pResponseStatus_+ }++-- | List of event types to be matched with.+detrsEventTypes :: Lens' DescribeEventTypesResponse [EventType]+detrsEventTypes = lens _detrsEventTypes (\ s a -> s{_detrsEventTypes = a}) . _Default . _Coerce;++-- | If the results of a search are large, only a portion of the results are returned, and a @nextToken@ pagination token is returned in the response. To retrieve the next batch of results, reissue the search request and include the returned token. When all results have been returned, the response does not contain a pagination token value.+detrsNextToken :: Lens' DescribeEventTypesResponse (Maybe Text)+detrsNextToken = lens _detrsNextToken (\ s a -> s{_detrsNextToken = a});++-- | -- | The response status code.+detrsResponseStatus :: Lens' DescribeEventTypesResponse Int+detrsResponseStatus = lens _detrsResponseStatus (\ s a -> s{_detrsResponseStatus = a});++instance NFData DescribeEventTypesResponse
+ gen/Network/AWS/AWSHealth/DescribeEvents.hs view
@@ -0,0 +1,174 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Network.AWS.AWSHealth.DescribeEvents+-- Copyright : (c) 2013-2016 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns information about events that meet the specified filter criteria. Events are returned in a summary form and do not include the detailed description, any additional metadata that depends on the event type, or any affected resources. To retrieve that information, use the 'DescribeEventDetails' and 'DescribeAffectedEntities' operations.+--+--+-- If no filter criteria are specified, all events are returned. Results are sorted by @lastModifiedTime@ , starting with the most recent.+--+module Network.AWS.AWSHealth.DescribeEvents+ (+ -- * Creating a Request+ describeEvents+ , DescribeEvents+ -- * Request Lenses+ , deLocale+ , deNextToken+ , deFilter+ , deMaxResults++ -- * Destructuring the Response+ , describeEventsResponse+ , DescribeEventsResponse+ -- * Response Lenses+ , dersNextToken+ , dersEvents+ , dersResponseStatus+ ) where++import Network.AWS.AWSHealth.Types+import Network.AWS.AWSHealth.Types.Product+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'describeEvents' smart constructor.+data DescribeEvents = DescribeEvents'+ { _deLocale :: !(Maybe Text)+ , _deNextToken :: !(Maybe Text)+ , _deFilter :: !(Maybe EventFilter)+ , _deMaxResults :: !(Maybe Nat)+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'DescribeEvents' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'deLocale' - The locale (language) to return information in. The default is English.+--+-- * 'deNextToken' - If the results of a search are large, only a portion of the results are returned, and a @nextToken@ pagination token is returned in the response. To retrieve the next batch of results, reissue the search request and include the returned token. When all results have been returned, the response does not contain a pagination token value.+--+-- * 'deFilter' - Values to narrow the results returned.+--+-- * 'deMaxResults' - The maximum number of items to return in one batch.+describeEvents+ :: DescribeEvents+describeEvents =+ DescribeEvents'+ { _deLocale = Nothing+ , _deNextToken = Nothing+ , _deFilter = Nothing+ , _deMaxResults = Nothing+ }++-- | The locale (language) to return information in. The default is English.+deLocale :: Lens' DescribeEvents (Maybe Text)+deLocale = lens _deLocale (\ s a -> s{_deLocale = a});++-- | If the results of a search are large, only a portion of the results are returned, and a @nextToken@ pagination token is returned in the response. To retrieve the next batch of results, reissue the search request and include the returned token. When all results have been returned, the response does not contain a pagination token value.+deNextToken :: Lens' DescribeEvents (Maybe Text)+deNextToken = lens _deNextToken (\ s a -> s{_deNextToken = a});++-- | Values to narrow the results returned.+deFilter :: Lens' DescribeEvents (Maybe EventFilter)+deFilter = lens _deFilter (\ s a -> s{_deFilter = a});++-- | The maximum number of items to return in one batch.+deMaxResults :: Lens' DescribeEvents (Maybe Natural)+deMaxResults = lens _deMaxResults (\ s a -> s{_deMaxResults = a}) . mapping _Nat;++instance AWSRequest DescribeEvents where+ type Rs DescribeEvents = DescribeEventsResponse+ request = postJSON awsHealth+ response+ = receiveJSON+ (\ s h x ->+ DescribeEventsResponse' <$>+ (x .?> "nextToken") <*> (x .?> "events" .!@ mempty)+ <*> (pure (fromEnum s)))++instance Hashable DescribeEvents++instance NFData DescribeEvents++instance ToHeaders DescribeEvents where+ toHeaders+ = const+ (mconcat+ ["X-Amz-Target" =#+ ("AWSHealth_20160804.DescribeEvents" :: ByteString),+ "Content-Type" =#+ ("application/x-amz-json-1.1" :: ByteString)])++instance ToJSON DescribeEvents where+ toJSON DescribeEvents'{..}+ = object+ (catMaybes+ [("locale" .=) <$> _deLocale,+ ("nextToken" .=) <$> _deNextToken,+ ("filter" .=) <$> _deFilter,+ ("maxResults" .=) <$> _deMaxResults])++instance ToPath DescribeEvents where+ toPath = const "/"++instance ToQuery DescribeEvents where+ toQuery = const mempty++-- | /See:/ 'describeEventsResponse' smart constructor.+data DescribeEventsResponse = DescribeEventsResponse'+ { _dersNextToken :: !(Maybe Text)+ , _dersEvents :: !(Maybe [Event])+ , _dersResponseStatus :: !Int+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'DescribeEventsResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'dersNextToken' - If the results of a search are large, only a portion of the results are returned, and a @nextToken@ pagination token is returned in the response. To retrieve the next batch of results, reissue the search request and include the returned token. When all results have been returned, the response does not contain a pagination token value.+--+-- * 'dersEvents' - The events that match the specified filter criteria.+--+-- * 'dersResponseStatus' - -- | The response status code.+describeEventsResponse+ :: Int -- ^ 'dersResponseStatus'+ -> DescribeEventsResponse+describeEventsResponse pResponseStatus_ =+ DescribeEventsResponse'+ { _dersNextToken = Nothing+ , _dersEvents = Nothing+ , _dersResponseStatus = pResponseStatus_+ }++-- | If the results of a search are large, only a portion of the results are returned, and a @nextToken@ pagination token is returned in the response. To retrieve the next batch of results, reissue the search request and include the returned token. When all results have been returned, the response does not contain a pagination token value.+dersNextToken :: Lens' DescribeEventsResponse (Maybe Text)+dersNextToken = lens _dersNextToken (\ s a -> s{_dersNextToken = a});++-- | The events that match the specified filter criteria.+dersEvents :: Lens' DescribeEventsResponse [Event]+dersEvents = lens _dersEvents (\ s a -> s{_dersEvents = a}) . _Default . _Coerce;++-- | -- | The response status code.+dersResponseStatus :: Lens' DescribeEventsResponse Int+dersResponseStatus = lens _dersResponseStatus (\ s a -> s{_dersResponseStatus = a});++instance NFData DescribeEventsResponse
+ gen/Network/AWS/AWSHealth/Types.hs view
@@ -0,0 +1,188 @@+{-# LANGUAGE OverloadedStrings #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Network.AWS.AWSHealth.Types+-- Copyright : (c) 2013-2016 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+module Network.AWS.AWSHealth.Types+ (+ -- * Service Configuration+ awsHealth++ -- * Errors+ , _InvalidPaginationToken+ , _UnsupportedLocale++ -- * EntityStatusCode+ , EntityStatusCode (..)++ -- * EventAggregateField+ , EventAggregateField (..)++ -- * EventStatusCode+ , EventStatusCode (..)++ -- * EventTypeCategory+ , EventTypeCategory (..)++ -- * AffectedEntity+ , AffectedEntity+ , affectedEntity+ , aeLastUpdatedTime+ , aeEntityValue+ , aeAwsAccountId+ , aeEventARN+ , aeEntityARN+ , aeTags+ , aeStatusCode++ -- * DateTimeRange+ , DateTimeRange+ , dateTimeRange+ , dtrTo+ , dtrFrom++ -- * EntityAggregate+ , EntityAggregate+ , entityAggregate+ , eCount+ , eEventARN++ -- * EntityFilter+ , EntityFilter+ , entityFilter+ , eStatusCodes+ , eEntityARNs+ , eEntityValues+ , eTags+ , eLastUpdatedTimes+ , eEventARNs++ -- * Event+ , Event+ , event+ , eLastUpdatedTime+ , eArn+ , eService+ , eStartTime+ , eEventTypeCode+ , eEventTypeCategory+ , eAvailabilityZone+ , eEndTime+ , eRegion+ , eStatusCode++ -- * EventAggregate+ , EventAggregate+ , eventAggregate+ , eaCount+ , eaAggregateValue++ -- * EventDescription+ , EventDescription+ , eventDescription+ , edLatestDescription++ -- * EventDetails+ , EventDetails+ , eventDetails+ , edEvent+ , edEventDescription+ , edEventMetadata++ -- * EventDetailsErrorItem+ , EventDetailsErrorItem+ , eventDetailsErrorItem+ , edeiEventARN+ , edeiErrorName+ , edeiErrorMessage++ -- * EventFilter+ , EventFilter+ , eventFilter+ , efEventARNs+ , efEventTypeCategories+ , efEventTypeCodes+ , efRegions+ , efEventStatusCodes+ , efEndTimes+ , efAvailabilityZones+ , efEntityARNs+ , efEntityValues+ , efStartTimes+ , efServices+ , efTags+ , efLastUpdatedTimes++ -- * EventType+ , EventType+ , eventType+ , etService+ , etCategory+ , etCode++ -- * EventTypeFilter+ , EventTypeFilter+ , eventTypeFilter+ , etfEventTypeCategories+ , etfEventTypeCodes+ , etfServices+ ) where++import Network.AWS.AWSHealth.Types.Product+import Network.AWS.AWSHealth.Types.Sum+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Sign.V4++-- | API version @2016-08-04@ of the Amazon Health APIs and Notifications SDK configuration.+awsHealth :: Service+awsHealth =+ Service+ { _svcAbbrev = "AWSHealth"+ , _svcSigner = v4+ , _svcPrefix = "health"+ , _svcVersion = "2016-08-04"+ , _svcEndpoint = defaultEndpoint awsHealth+ , _svcTimeout = Just 70+ , _svcCheck = statusSuccess+ , _svcError = parseJSONError "AWSHealth"+ , _svcRetry = retry+ }+ where+ retry =+ Exponential+ { _retryBase = 5.0e-2+ , _retryGrowth = 2+ , _retryAttempts = 5+ , _retryCheck = check+ }+ check e+ | has (hasStatus 429) e = Just "too_many_requests"+ | has (hasCode "ThrottlingException" . hasStatus 400) e =+ Just "throttling_exception"+ | has (hasCode "Throttling" . hasStatus 400) e = Just "throttling"+ | has (hasStatus 504) e = Just "gateway_timeout"+ | has (hasStatus 502) e = Just "bad_gateway"+ | has (hasStatus 503) e = Just "service_unavailable"+ | has (hasStatus 500) e = Just "general_server_error"+ | has (hasStatus 509) e = Just "limit_exceeded"+ | otherwise = Nothing++-- | The specified pagination token (@nextToken@ ) is not valid.+--+--+_InvalidPaginationToken :: AsError a => Getting (First ServiceError) a ServiceError+_InvalidPaginationToken = _ServiceError . hasCode "InvalidPaginationToken"++-- | The specified locale is not supported.+--+--+_UnsupportedLocale :: AsError a => Getting (First ServiceError) a ServiceError+_UnsupportedLocale = _ServiceError . hasCode "UnsupportedLocale"
+ gen/Network/AWS/AWSHealth/Types/Product.hs view
@@ -0,0 +1,831 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Network.AWS.AWSHealth.Types.Product+-- Copyright : (c) 2013-2016 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+module Network.AWS.AWSHealth.Types.Product where++import Network.AWS.AWSHealth.Types.Sum+import Network.AWS.Lens+import Network.AWS.Prelude++-- | Information about an entity that is affected by a Health event.+--+--+--+-- /See:/ 'affectedEntity' smart constructor.+data AffectedEntity = AffectedEntity'+ { _aeLastUpdatedTime :: !(Maybe POSIX)+ , _aeEntityValue :: !(Maybe Text)+ , _aeAwsAccountId :: !(Maybe Text)+ , _aeEventARN :: !(Maybe Text)+ , _aeEntityARN :: !(Maybe Text)+ , _aeTags :: !(Maybe (Map Text Text))+ , _aeStatusCode :: !(Maybe EntityStatusCode)+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'AffectedEntity' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'aeLastUpdatedTime' - The most recent time that the entity was updated.+--+-- * 'aeEntityValue' - The ID of the affected entity.+--+-- * 'aeAwsAccountId' - The 12-digit AWS account number that contains the affected entity.+--+-- * 'aeEventARN' - The unique identifier for the event. Format: @arn:aws:health:/event-region/ ::event//EVENT_TYPE_PLUS_ID/ @ . Example: @arn:aws:health:us-east-1::event/AWS_EC2_MAINTENANCE_5331@+--+-- * 'aeEntityARN' - The unique identifier for the entity. Format: @arn:aws:health:/entity-region/ :/aws-account/ :entity//entity-id/ @ . Example: @arn:aws:health:us-east-1:111222333444:entity/AVh5GGT7ul1arKr1sE1K@+--+-- * 'aeTags' - A map of entity tags attached to the affected entity.+--+-- * 'aeStatusCode' - The most recent status of the entity affected by the event. The possible values are @IMPAIRED@ , @UNIMPAIRED@ , and @UNKNOWN@ .+affectedEntity+ :: AffectedEntity+affectedEntity =+ AffectedEntity'+ { _aeLastUpdatedTime = Nothing+ , _aeEntityValue = Nothing+ , _aeAwsAccountId = Nothing+ , _aeEventARN = Nothing+ , _aeEntityARN = Nothing+ , _aeTags = Nothing+ , _aeStatusCode = Nothing+ }++-- | The most recent time that the entity was updated.+aeLastUpdatedTime :: Lens' AffectedEntity (Maybe UTCTime)+aeLastUpdatedTime = lens _aeLastUpdatedTime (\ s a -> s{_aeLastUpdatedTime = a}) . mapping _Time;++-- | The ID of the affected entity.+aeEntityValue :: Lens' AffectedEntity (Maybe Text)+aeEntityValue = lens _aeEntityValue (\ s a -> s{_aeEntityValue = a});++-- | The 12-digit AWS account number that contains the affected entity.+aeAwsAccountId :: Lens' AffectedEntity (Maybe Text)+aeAwsAccountId = lens _aeAwsAccountId (\ s a -> s{_aeAwsAccountId = a});++-- | The unique identifier for the event. Format: @arn:aws:health:/event-region/ ::event//EVENT_TYPE_PLUS_ID/ @ . Example: @arn:aws:health:us-east-1::event/AWS_EC2_MAINTENANCE_5331@+aeEventARN :: Lens' AffectedEntity (Maybe Text)+aeEventARN = lens _aeEventARN (\ s a -> s{_aeEventARN = a});++-- | The unique identifier for the entity. Format: @arn:aws:health:/entity-region/ :/aws-account/ :entity//entity-id/ @ . Example: @arn:aws:health:us-east-1:111222333444:entity/AVh5GGT7ul1arKr1sE1K@+aeEntityARN :: Lens' AffectedEntity (Maybe Text)+aeEntityARN = lens _aeEntityARN (\ s a -> s{_aeEntityARN = a});++-- | A map of entity tags attached to the affected entity.+aeTags :: Lens' AffectedEntity (HashMap Text Text)+aeTags = lens _aeTags (\ s a -> s{_aeTags = a}) . _Default . _Map;++-- | The most recent status of the entity affected by the event. The possible values are @IMPAIRED@ , @UNIMPAIRED@ , and @UNKNOWN@ .+aeStatusCode :: Lens' AffectedEntity (Maybe EntityStatusCode)+aeStatusCode = lens _aeStatusCode (\ s a -> s{_aeStatusCode = a});++instance FromJSON AffectedEntity where+ parseJSON+ = withObject "AffectedEntity"+ (\ x ->+ AffectedEntity' <$>+ (x .:? "lastUpdatedTime") <*> (x .:? "entityValue")+ <*> (x .:? "awsAccountId")+ <*> (x .:? "eventArn")+ <*> (x .:? "entityArn")+ <*> (x .:? "tags" .!= mempty)+ <*> (x .:? "statusCode"))++instance Hashable AffectedEntity++instance NFData AffectedEntity++-- | A range of dates and times that is used by the 'EventFilter' and 'EntityFilter' objects. If @from@ is set and @to@ is set: match items where the timestamp (@startTime@ , @endTime@ , or @lastUpdatedTime@ ) is between @from@ and @to@ inclusive. If @from@ is set and @to@ is not set: match items where the timestamp value is equal to or after @from@ . If @from@ is not set and @to@ is set: match items where the timestamp value is equal to or before @to@ .+--+--+--+-- /See:/ 'dateTimeRange' smart constructor.+data DateTimeRange = DateTimeRange'+ { _dtrTo :: !(Maybe POSIX)+ , _dtrFrom :: !(Maybe POSIX)+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'DateTimeRange' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'dtrTo' - The ending date and time of a time range.+--+-- * 'dtrFrom' - The starting date and time of a time range.+dateTimeRange+ :: DateTimeRange+dateTimeRange =+ DateTimeRange'+ { _dtrTo = Nothing+ , _dtrFrom = Nothing+ }++-- | The ending date and time of a time range.+dtrTo :: Lens' DateTimeRange (Maybe UTCTime)+dtrTo = lens _dtrTo (\ s a -> s{_dtrTo = a}) . mapping _Time;++-- | The starting date and time of a time range.+dtrFrom :: Lens' DateTimeRange (Maybe UTCTime)+dtrFrom = lens _dtrFrom (\ s a -> s{_dtrFrom = a}) . mapping _Time;++instance Hashable DateTimeRange++instance NFData DateTimeRange++instance ToJSON DateTimeRange where+ toJSON DateTimeRange'{..}+ = object+ (catMaybes+ [("to" .=) <$> _dtrTo, ("from" .=) <$> _dtrFrom])++-- | The number of entities that are affected by one or more events. Returned by the 'DescribeEntityAggregates' operation.+--+--+--+-- /See:/ 'entityAggregate' smart constructor.+data EntityAggregate = EntityAggregate'+ { _eCount :: !(Maybe Int)+ , _eEventARN :: !(Maybe Text)+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'EntityAggregate' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'eCount' - The number entities that match the criteria for the specified events.+--+-- * 'eEventARN' - The unique identifier for the event. Format: @arn:aws:health:/event-region/ ::event//EVENT_TYPE_PLUS_ID/ @ . Example: @arn:aws:health:us-east-1::event/AWS_EC2_MAINTENANCE_5331@+entityAggregate+ :: EntityAggregate+entityAggregate =+ EntityAggregate'+ { _eCount = Nothing+ , _eEventARN = Nothing+ }++-- | The number entities that match the criteria for the specified events.+eCount :: Lens' EntityAggregate (Maybe Int)+eCount = lens _eCount (\ s a -> s{_eCount = a});++-- | The unique identifier for the event. Format: @arn:aws:health:/event-region/ ::event//EVENT_TYPE_PLUS_ID/ @ . Example: @arn:aws:health:us-east-1::event/AWS_EC2_MAINTENANCE_5331@+eEventARN :: Lens' EntityAggregate (Maybe Text)+eEventARN = lens _eEventARN (\ s a -> s{_eEventARN = a});++instance FromJSON EntityAggregate where+ parseJSON+ = withObject "EntityAggregate"+ (\ x ->+ EntityAggregate' <$>+ (x .:? "count") <*> (x .:? "eventArn"))++instance Hashable EntityAggregate++instance NFData EntityAggregate++-- | The values to use to filter results from the 'DescribeAffectedEntities' operation.+--+--+--+-- /See:/ 'entityFilter' smart constructor.+data EntityFilter = EntityFilter'+ { _eStatusCodes :: !(Maybe (List1 EntityStatusCode))+ , _eEntityARNs :: !(Maybe (List1 Text))+ , _eEntityValues :: !(Maybe (List1 Text))+ , _eTags :: !(Maybe [Map Text Text])+ , _eLastUpdatedTimes :: !(Maybe (List1 DateTimeRange))+ , _eEventARNs :: !(List1 Text)+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'EntityFilter' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'eStatusCodes' - A list of entity status codes (@IMPAIRED@ , @UNIMPAIRED@ , or @UNKNOWN@ ).+--+-- * 'eEntityARNs' - A list of entity ARNs (unique identifiers).+--+-- * 'eEntityValues' - A list of IDs for affected entities.+--+-- * 'eTags' - A map of entity tags attached to the affected entity.+--+-- * 'eLastUpdatedTimes' - A list of the most recent dates and times that the entity was updated.+--+-- * 'eEventARNs' - A list of event ARNs (unique identifiers). For example: @"arn:aws:health:us-east-1::event/AWS_EC2_MAINTENANCE_5331", "arn:aws:health:us-west-1::event/AWS_EBS_LOST_VOLUME_xyz"@+entityFilter+ :: NonEmpty Text -- ^ 'eEventARNs'+ -> EntityFilter+entityFilter pEventARNs_ =+ EntityFilter'+ { _eStatusCodes = Nothing+ , _eEntityARNs = Nothing+ , _eEntityValues = Nothing+ , _eTags = Nothing+ , _eLastUpdatedTimes = Nothing+ , _eEventARNs = _List1 # pEventARNs_+ }++-- | A list of entity status codes (@IMPAIRED@ , @UNIMPAIRED@ , or @UNKNOWN@ ).+eStatusCodes :: Lens' EntityFilter (Maybe (NonEmpty EntityStatusCode))+eStatusCodes = lens _eStatusCodes (\ s a -> s{_eStatusCodes = a}) . mapping _List1;++-- | A list of entity ARNs (unique identifiers).+eEntityARNs :: Lens' EntityFilter (Maybe (NonEmpty Text))+eEntityARNs = lens _eEntityARNs (\ s a -> s{_eEntityARNs = a}) . mapping _List1;++-- | A list of IDs for affected entities.+eEntityValues :: Lens' EntityFilter (Maybe (NonEmpty Text))+eEntityValues = lens _eEntityValues (\ s a -> s{_eEntityValues = a}) . mapping _List1;++-- | A map of entity tags attached to the affected entity.+eTags :: Lens' EntityFilter [HashMap Text Text]+eTags = lens _eTags (\ s a -> s{_eTags = a}) . _Default . _Coerce;++-- | A list of the most recent dates and times that the entity was updated.+eLastUpdatedTimes :: Lens' EntityFilter (Maybe (NonEmpty DateTimeRange))+eLastUpdatedTimes = lens _eLastUpdatedTimes (\ s a -> s{_eLastUpdatedTimes = a}) . mapping _List1;++-- | A list of event ARNs (unique identifiers). For example: @"arn:aws:health:us-east-1::event/AWS_EC2_MAINTENANCE_5331", "arn:aws:health:us-west-1::event/AWS_EBS_LOST_VOLUME_xyz"@+eEventARNs :: Lens' EntityFilter (NonEmpty Text)+eEventARNs = lens _eEventARNs (\ s a -> s{_eEventARNs = a}) . _List1;++instance Hashable EntityFilter++instance NFData EntityFilter++instance ToJSON EntityFilter where+ toJSON EntityFilter'{..}+ = object+ (catMaybes+ [("statusCodes" .=) <$> _eStatusCodes,+ ("entityArns" .=) <$> _eEntityARNs,+ ("entityValues" .=) <$> _eEntityValues,+ ("tags" .=) <$> _eTags,+ ("lastUpdatedTimes" .=) <$> _eLastUpdatedTimes,+ Just ("eventArns" .= _eEventARNs)])++-- | Summary information about an event, returned by the 'DescribeEvents' operation. The 'DescribeEventDetails' operation also returns this information, as well as the 'EventDescription' and additional event metadata.+--+--+--+-- /See:/ 'event' smart constructor.+data Event = Event'+ { _eLastUpdatedTime :: !(Maybe POSIX)+ , _eArn :: !(Maybe Text)+ , _eService :: !(Maybe Text)+ , _eStartTime :: !(Maybe POSIX)+ , _eEventTypeCode :: !(Maybe Text)+ , _eEventTypeCategory :: !(Maybe EventTypeCategory)+ , _eAvailabilityZone :: !(Maybe Text)+ , _eEndTime :: !(Maybe POSIX)+ , _eRegion :: !(Maybe Text)+ , _eStatusCode :: !(Maybe EventStatusCode)+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'Event' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'eLastUpdatedTime' - The most recent date and time that the event was updated.+--+-- * 'eArn' - The unique identifier for the event. Format: @arn:aws:health:/event-region/ ::event//EVENT_TYPE_PLUS_ID/ @ . Example: @arn:aws:health:us-east-1::event/AWS_EC2_MAINTENANCE_5331@+--+-- * 'eService' - The AWS service that is affected by the event. For example, @EC2@ , @RDS@ .+--+-- * 'eStartTime' - The date and time that the event began.+--+-- * 'eEventTypeCode' - The unique identifier for the event type. The format is @AWS_/SERVICE/ _/DESCRIPTION/ @ ; for example, @AWS_EC2_SYSTEM_MAINTENANCE_EVENT@ .+--+-- * 'eEventTypeCategory' - The+--+-- * 'eAvailabilityZone' - The AWS Availability Zone of the event. For example, us-east-1a.+--+-- * 'eEndTime' - The date and time that the event ended.+--+-- * 'eRegion' - The AWS region name of the event.+--+-- * 'eStatusCode' - The most recent status of the event. Possible values are @open@ , @closed@ , and @upcoming@ .+event+ :: Event+event =+ Event'+ { _eLastUpdatedTime = Nothing+ , _eArn = Nothing+ , _eService = Nothing+ , _eStartTime = Nothing+ , _eEventTypeCode = Nothing+ , _eEventTypeCategory = Nothing+ , _eAvailabilityZone = Nothing+ , _eEndTime = Nothing+ , _eRegion = Nothing+ , _eStatusCode = Nothing+ }++-- | The most recent date and time that the event was updated.+eLastUpdatedTime :: Lens' Event (Maybe UTCTime)+eLastUpdatedTime = lens _eLastUpdatedTime (\ s a -> s{_eLastUpdatedTime = a}) . mapping _Time;++-- | The unique identifier for the event. Format: @arn:aws:health:/event-region/ ::event//EVENT_TYPE_PLUS_ID/ @ . Example: @arn:aws:health:us-east-1::event/AWS_EC2_MAINTENANCE_5331@+eArn :: Lens' Event (Maybe Text)+eArn = lens _eArn (\ s a -> s{_eArn = a});++-- | The AWS service that is affected by the event. For example, @EC2@ , @RDS@ .+eService :: Lens' Event (Maybe Text)+eService = lens _eService (\ s a -> s{_eService = a});++-- | The date and time that the event began.+eStartTime :: Lens' Event (Maybe UTCTime)+eStartTime = lens _eStartTime (\ s a -> s{_eStartTime = a}) . mapping _Time;++-- | The unique identifier for the event type. The format is @AWS_/SERVICE/ _/DESCRIPTION/ @ ; for example, @AWS_EC2_SYSTEM_MAINTENANCE_EVENT@ .+eEventTypeCode :: Lens' Event (Maybe Text)+eEventTypeCode = lens _eEventTypeCode (\ s a -> s{_eEventTypeCode = a});++-- | The+eEventTypeCategory :: Lens' Event (Maybe EventTypeCategory)+eEventTypeCategory = lens _eEventTypeCategory (\ s a -> s{_eEventTypeCategory = a});++-- | The AWS Availability Zone of the event. For example, us-east-1a.+eAvailabilityZone :: Lens' Event (Maybe Text)+eAvailabilityZone = lens _eAvailabilityZone (\ s a -> s{_eAvailabilityZone = a});++-- | The date and time that the event ended.+eEndTime :: Lens' Event (Maybe UTCTime)+eEndTime = lens _eEndTime (\ s a -> s{_eEndTime = a}) . mapping _Time;++-- | The AWS region name of the event.+eRegion :: Lens' Event (Maybe Text)+eRegion = lens _eRegion (\ s a -> s{_eRegion = a});++-- | The most recent status of the event. Possible values are @open@ , @closed@ , and @upcoming@ .+eStatusCode :: Lens' Event (Maybe EventStatusCode)+eStatusCode = lens _eStatusCode (\ s a -> s{_eStatusCode = a});++instance FromJSON Event where+ parseJSON+ = withObject "Event"+ (\ x ->+ Event' <$>+ (x .:? "lastUpdatedTime") <*> (x .:? "arn") <*>+ (x .:? "service")+ <*> (x .:? "startTime")+ <*> (x .:? "eventTypeCode")+ <*> (x .:? "eventTypeCategory")+ <*> (x .:? "availabilityZone")+ <*> (x .:? "endTime")+ <*> (x .:? "region")+ <*> (x .:? "statusCode"))++instance Hashable Event++instance NFData Event++-- | The number of events of each issue type. Returned by the 'DescribeEventAggregates' operation.+--+--+--+-- /See:/ 'eventAggregate' smart constructor.+data EventAggregate = EventAggregate'+ { _eaCount :: !(Maybe Int)+ , _eaAggregateValue :: !(Maybe Text)+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'EventAggregate' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'eaCount' - The number of events of the associated issue type.+--+-- * 'eaAggregateValue' - The issue type for the associated count.+eventAggregate+ :: EventAggregate+eventAggregate =+ EventAggregate'+ { _eaCount = Nothing+ , _eaAggregateValue = Nothing+ }++-- | The number of events of the associated issue type.+eaCount :: Lens' EventAggregate (Maybe Int)+eaCount = lens _eaCount (\ s a -> s{_eaCount = a});++-- | The issue type for the associated count.+eaAggregateValue :: Lens' EventAggregate (Maybe Text)+eaAggregateValue = lens _eaAggregateValue (\ s a -> s{_eaAggregateValue = a});++instance FromJSON EventAggregate where+ parseJSON+ = withObject "EventAggregate"+ (\ x ->+ EventAggregate' <$>+ (x .:? "count") <*> (x .:? "aggregateValue"))++instance Hashable EventAggregate++instance NFData EventAggregate++-- | The detailed description of the event. Included in the information returned by the 'DescribeEventDetails' operation.+--+--+--+-- /See:/ 'eventDescription' smart constructor.+newtype EventDescription = EventDescription'+ { _edLatestDescription :: Maybe Text+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'EventDescription' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'edLatestDescription' - The most recent description of the event.+eventDescription+ :: EventDescription+eventDescription =+ EventDescription'+ { _edLatestDescription = Nothing+ }++-- | The most recent description of the event.+edLatestDescription :: Lens' EventDescription (Maybe Text)+edLatestDescription = lens _edLatestDescription (\ s a -> s{_edLatestDescription = a});++instance FromJSON EventDescription where+ parseJSON+ = withObject "EventDescription"+ (\ x ->+ EventDescription' <$> (x .:? "latestDescription"))++instance Hashable EventDescription++instance NFData EventDescription++-- | Detailed information about an event. A combination of an 'Event' object, an 'EventDescription' object, and additional metadata about the event. Returned by the 'DescribeEventDetails' operation.+--+--+--+-- /See:/ 'eventDetails' smart constructor.+data EventDetails = EventDetails'+ { _edEvent :: !(Maybe Event)+ , _edEventDescription :: !(Maybe EventDescription)+ , _edEventMetadata :: !(Maybe (Map Text Text))+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'EventDetails' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'edEvent' - Summary information about the event.+--+-- * 'edEventDescription' - The most recent description of the event.+--+-- * 'edEventMetadata' - Additional metadata about the event.+eventDetails+ :: EventDetails+eventDetails =+ EventDetails'+ { _edEvent = Nothing+ , _edEventDescription = Nothing+ , _edEventMetadata = Nothing+ }++-- | Summary information about the event.+edEvent :: Lens' EventDetails (Maybe Event)+edEvent = lens _edEvent (\ s a -> s{_edEvent = a});++-- | The most recent description of the event.+edEventDescription :: Lens' EventDetails (Maybe EventDescription)+edEventDescription = lens _edEventDescription (\ s a -> s{_edEventDescription = a});++-- | Additional metadata about the event.+edEventMetadata :: Lens' EventDetails (HashMap Text Text)+edEventMetadata = lens _edEventMetadata (\ s a -> s{_edEventMetadata = a}) . _Default . _Map;++instance FromJSON EventDetails where+ parseJSON+ = withObject "EventDetails"+ (\ x ->+ EventDetails' <$>+ (x .:? "event") <*> (x .:? "eventDescription") <*>+ (x .:? "eventMetadata" .!= mempty))++instance Hashable EventDetails++instance NFData EventDetails++-- | Error information returned when a 'DescribeEventDetails' operation cannot find a specified event.+--+--+--+-- /See:/ 'eventDetailsErrorItem' smart constructor.+data EventDetailsErrorItem = EventDetailsErrorItem'+ { _edeiEventARN :: !(Maybe Text)+ , _edeiErrorName :: !(Maybe Text)+ , _edeiErrorMessage :: !(Maybe Text)+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'EventDetailsErrorItem' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'edeiEventARN' - The unique identifier for the event. Format: @arn:aws:health:/event-region/ ::event//EVENT_TYPE_PLUS_ID/ @ . Example: @arn:aws:health:us-east-1::event/AWS_EC2_MAINTENANCE_5331@+--+-- * 'edeiErrorName' - The name of the error.+--+-- * 'edeiErrorMessage' - A message that describes the error.+eventDetailsErrorItem+ :: EventDetailsErrorItem+eventDetailsErrorItem =+ EventDetailsErrorItem'+ { _edeiEventARN = Nothing+ , _edeiErrorName = Nothing+ , _edeiErrorMessage = Nothing+ }++-- | The unique identifier for the event. Format: @arn:aws:health:/event-region/ ::event//EVENT_TYPE_PLUS_ID/ @ . Example: @arn:aws:health:us-east-1::event/AWS_EC2_MAINTENANCE_5331@+edeiEventARN :: Lens' EventDetailsErrorItem (Maybe Text)+edeiEventARN = lens _edeiEventARN (\ s a -> s{_edeiEventARN = a});++-- | The name of the error.+edeiErrorName :: Lens' EventDetailsErrorItem (Maybe Text)+edeiErrorName = lens _edeiErrorName (\ s a -> s{_edeiErrorName = a});++-- | A message that describes the error.+edeiErrorMessage :: Lens' EventDetailsErrorItem (Maybe Text)+edeiErrorMessage = lens _edeiErrorMessage (\ s a -> s{_edeiErrorMessage = a});++instance FromJSON EventDetailsErrorItem where+ parseJSON+ = withObject "EventDetailsErrorItem"+ (\ x ->+ EventDetailsErrorItem' <$>+ (x .:? "eventArn") <*> (x .:? "errorName") <*>+ (x .:? "errorMessage"))++instance Hashable EventDetailsErrorItem++instance NFData EventDetailsErrorItem++-- | The values to use to filter results from the 'DescribeEvents' and 'DescribeEventAggregates' operations.+--+--+--+-- /See:/ 'eventFilter' smart constructor.+data EventFilter = EventFilter'+ { _efEventARNs :: !(Maybe (List1 Text))+ , _efEventTypeCategories :: !(Maybe (List1 EventTypeCategory))+ , _efEventTypeCodes :: !(Maybe (List1 Text))+ , _efRegions :: !(Maybe (List1 Text))+ , _efEventStatusCodes :: !(Maybe (List1 EventStatusCode))+ , _efEndTimes :: !(Maybe (List1 DateTimeRange))+ , _efAvailabilityZones :: !(Maybe [Text])+ , _efEntityARNs :: !(Maybe (List1 Text))+ , _efEntityValues :: !(Maybe (List1 Text))+ , _efStartTimes :: !(Maybe (List1 DateTimeRange))+ , _efServices :: !(Maybe (List1 Text))+ , _efTags :: !(Maybe [Map Text Text])+ , _efLastUpdatedTimes :: !(Maybe (List1 DateTimeRange))+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'EventFilter' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'efEventARNs' - A list of event ARNs (unique identifiers). For example: @"arn:aws:health:us-east-1::event/AWS_EC2_MAINTENANCE_5331", "arn:aws:health:us-west-1::event/AWS_EBS_LOST_VOLUME_xyz"@+--+-- * 'efEventTypeCategories' - A list of event type category codes (@issue@ , @scheduledChange@ , or @accountNotification@ ).+--+-- * 'efEventTypeCodes' - A list of unique identifiers for event types. For example, @"AWS_EC2_SYSTEM_MAINTENANCE_EVENT","AWS_RDS_MAINTENANCE_SCHEDULED"@+--+-- * 'efRegions' - A list of AWS regions.+--+-- * 'efEventStatusCodes' - A list of event status codes.+--+-- * 'efEndTimes' - A list of dates and times that the event ended.+--+-- * 'efAvailabilityZones' - A list of AWS availability zones.+--+-- * 'efEntityARNs' - A list of entity ARNs (unique identifiers).+--+-- * 'efEntityValues' - A list of entity identifiers, such as EC2 instance IDs (@i-34ab692e@ ) or EBS volumes (@vol-426ab23e@ ).+--+-- * 'efStartTimes' - A list of dates and times that the event began.+--+-- * 'efServices' - The AWS services associated with the event. For example, @EC2@ , @RDS@ .+--+-- * 'efTags' - A map of entity tags attached to the affected entity.+--+-- * 'efLastUpdatedTimes' - A list of dates and times that the event was last updated.+eventFilter+ :: EventFilter+eventFilter =+ EventFilter'+ { _efEventARNs = Nothing+ , _efEventTypeCategories = Nothing+ , _efEventTypeCodes = Nothing+ , _efRegions = Nothing+ , _efEventStatusCodes = Nothing+ , _efEndTimes = Nothing+ , _efAvailabilityZones = Nothing+ , _efEntityARNs = Nothing+ , _efEntityValues = Nothing+ , _efStartTimes = Nothing+ , _efServices = Nothing+ , _efTags = Nothing+ , _efLastUpdatedTimes = Nothing+ }++-- | A list of event ARNs (unique identifiers). For example: @"arn:aws:health:us-east-1::event/AWS_EC2_MAINTENANCE_5331", "arn:aws:health:us-west-1::event/AWS_EBS_LOST_VOLUME_xyz"@+efEventARNs :: Lens' EventFilter (Maybe (NonEmpty Text))+efEventARNs = lens _efEventARNs (\ s a -> s{_efEventARNs = a}) . mapping _List1;++-- | A list of event type category codes (@issue@ , @scheduledChange@ , or @accountNotification@ ).+efEventTypeCategories :: Lens' EventFilter (Maybe (NonEmpty EventTypeCategory))+efEventTypeCategories = lens _efEventTypeCategories (\ s a -> s{_efEventTypeCategories = a}) . mapping _List1;++-- | A list of unique identifiers for event types. For example, @"AWS_EC2_SYSTEM_MAINTENANCE_EVENT","AWS_RDS_MAINTENANCE_SCHEDULED"@+efEventTypeCodes :: Lens' EventFilter (Maybe (NonEmpty Text))+efEventTypeCodes = lens _efEventTypeCodes (\ s a -> s{_efEventTypeCodes = a}) . mapping _List1;++-- | A list of AWS regions.+efRegions :: Lens' EventFilter (Maybe (NonEmpty Text))+efRegions = lens _efRegions (\ s a -> s{_efRegions = a}) . mapping _List1;++-- | A list of event status codes.+efEventStatusCodes :: Lens' EventFilter (Maybe (NonEmpty EventStatusCode))+efEventStatusCodes = lens _efEventStatusCodes (\ s a -> s{_efEventStatusCodes = a}) . mapping _List1;++-- | A list of dates and times that the event ended.+efEndTimes :: Lens' EventFilter (Maybe (NonEmpty DateTimeRange))+efEndTimes = lens _efEndTimes (\ s a -> s{_efEndTimes = a}) . mapping _List1;++-- | A list of AWS availability zones.+efAvailabilityZones :: Lens' EventFilter [Text]+efAvailabilityZones = lens _efAvailabilityZones (\ s a -> s{_efAvailabilityZones = a}) . _Default . _Coerce;++-- | A list of entity ARNs (unique identifiers).+efEntityARNs :: Lens' EventFilter (Maybe (NonEmpty Text))+efEntityARNs = lens _efEntityARNs (\ s a -> s{_efEntityARNs = a}) . mapping _List1;++-- | A list of entity identifiers, such as EC2 instance IDs (@i-34ab692e@ ) or EBS volumes (@vol-426ab23e@ ).+efEntityValues :: Lens' EventFilter (Maybe (NonEmpty Text))+efEntityValues = lens _efEntityValues (\ s a -> s{_efEntityValues = a}) . mapping _List1;++-- | A list of dates and times that the event began.+efStartTimes :: Lens' EventFilter (Maybe (NonEmpty DateTimeRange))+efStartTimes = lens _efStartTimes (\ s a -> s{_efStartTimes = a}) . mapping _List1;++-- | The AWS services associated with the event. For example, @EC2@ , @RDS@ .+efServices :: Lens' EventFilter (Maybe (NonEmpty Text))+efServices = lens _efServices (\ s a -> s{_efServices = a}) . mapping _List1;++-- | A map of entity tags attached to the affected entity.+efTags :: Lens' EventFilter [HashMap Text Text]+efTags = lens _efTags (\ s a -> s{_efTags = a}) . _Default . _Coerce;++-- | A list of dates and times that the event was last updated.+efLastUpdatedTimes :: Lens' EventFilter (Maybe (NonEmpty DateTimeRange))+efLastUpdatedTimes = lens _efLastUpdatedTimes (\ s a -> s{_efLastUpdatedTimes = a}) . mapping _List1;++instance Hashable EventFilter++instance NFData EventFilter++instance ToJSON EventFilter where+ toJSON EventFilter'{..}+ = object+ (catMaybes+ [("eventArns" .=) <$> _efEventARNs,+ ("eventTypeCategories" .=) <$>+ _efEventTypeCategories,+ ("eventTypeCodes" .=) <$> _efEventTypeCodes,+ ("regions" .=) <$> _efRegions,+ ("eventStatusCodes" .=) <$> _efEventStatusCodes,+ ("endTimes" .=) <$> _efEndTimes,+ ("availabilityZones" .=) <$> _efAvailabilityZones,+ ("entityArns" .=) <$> _efEntityARNs,+ ("entityValues" .=) <$> _efEntityValues,+ ("startTimes" .=) <$> _efStartTimes,+ ("services" .=) <$> _efServices,+ ("tags" .=) <$> _efTags,+ ("lastUpdatedTimes" .=) <$> _efLastUpdatedTimes])++-- | Metadata about a type of event that is reported by AWS Health. Data consists of the category (for example, @issue@ , the service (for example, @EC2@ ), and the event type code (for example, @AWS_EC2_SYSTEM_MAINTENANCE_EVENT@ ).+--+--+--+-- /See:/ 'eventType' smart constructor.+data EventType = EventType'+ { _etService :: !(Maybe Text)+ , _etCategory :: !(Maybe EventTypeCategory)+ , _etCode :: !(Maybe Text)+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'EventType' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'etService' - The AWS service that is affected by the event. For example, @EC2@ , @RDS@ .+--+-- * 'etCategory' - A list of event type category codes (@issue@ , @scheduledChange@ , or @accountNotification@ ).+--+-- * 'etCode' - The unique identifier for the event type. The format is @AWS_/SERVICE/ _/DESCRIPTION/ @ ; for example, @AWS_EC2_SYSTEM_MAINTENANCE_EVENT@ .+eventType+ :: EventType+eventType =+ EventType'+ { _etService = Nothing+ , _etCategory = Nothing+ , _etCode = Nothing+ }++-- | The AWS service that is affected by the event. For example, @EC2@ , @RDS@ .+etService :: Lens' EventType (Maybe Text)+etService = lens _etService (\ s a -> s{_etService = a});++-- | A list of event type category codes (@issue@ , @scheduledChange@ , or @accountNotification@ ).+etCategory :: Lens' EventType (Maybe EventTypeCategory)+etCategory = lens _etCategory (\ s a -> s{_etCategory = a});++-- | The unique identifier for the event type. The format is @AWS_/SERVICE/ _/DESCRIPTION/ @ ; for example, @AWS_EC2_SYSTEM_MAINTENANCE_EVENT@ .+etCode :: Lens' EventType (Maybe Text)+etCode = lens _etCode (\ s a -> s{_etCode = a});++instance FromJSON EventType where+ parseJSON+ = withObject "EventType"+ (\ x ->+ EventType' <$>+ (x .:? "service") <*> (x .:? "category") <*>+ (x .:? "code"))++instance Hashable EventType++instance NFData EventType++-- | The values to use to filter results from the 'DescribeEventTypes' operation.+--+--+--+-- /See:/ 'eventTypeFilter' smart constructor.+data EventTypeFilter = EventTypeFilter'+ { _etfEventTypeCategories :: !(Maybe (List1 EventTypeCategory))+ , _etfEventTypeCodes :: !(Maybe (List1 Text))+ , _etfServices :: !(Maybe (List1 Text))+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'EventTypeFilter' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'etfEventTypeCategories' - A list of event type category codes (@issue@ , @scheduledChange@ , or @accountNotification@ ).+--+-- * 'etfEventTypeCodes' - A list of event type codes.+--+-- * 'etfServices' - The AWS services associated with the event. For example, @EC2@ , @RDS@ .+eventTypeFilter+ :: EventTypeFilter+eventTypeFilter =+ EventTypeFilter'+ { _etfEventTypeCategories = Nothing+ , _etfEventTypeCodes = Nothing+ , _etfServices = Nothing+ }++-- | A list of event type category codes (@issue@ , @scheduledChange@ , or @accountNotification@ ).+etfEventTypeCategories :: Lens' EventTypeFilter (Maybe (NonEmpty EventTypeCategory))+etfEventTypeCategories = lens _etfEventTypeCategories (\ s a -> s{_etfEventTypeCategories = a}) . mapping _List1;++-- | A list of event type codes.+etfEventTypeCodes :: Lens' EventTypeFilter (Maybe (NonEmpty Text))+etfEventTypeCodes = lens _etfEventTypeCodes (\ s a -> s{_etfEventTypeCodes = a}) . mapping _List1;++-- | The AWS services associated with the event. For example, @EC2@ , @RDS@ .+etfServices :: Lens' EventTypeFilter (Maybe (NonEmpty Text))+etfServices = lens _etfServices (\ s a -> s{_etfServices = a}) . mapping _List1;++instance Hashable EventTypeFilter++instance NFData EventTypeFilter++instance ToJSON EventTypeFilter where+ toJSON EventTypeFilter'{..}+ = object+ (catMaybes+ [("eventTypeCategories" .=) <$>+ _etfEventTypeCategories,+ ("eventTypeCodes" .=) <$> _etfEventTypeCodes,+ ("services" .=) <$> _etfServices])
+ gen/Network/AWS/AWSHealth/Types/Sum.hs view
@@ -0,0 +1,139 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Network.AWS.AWSHealth.Types.Sum+-- Copyright : (c) 2013-2016 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+module Network.AWS.AWSHealth.Types.Sum where++import Network.AWS.Prelude++data EntityStatusCode+ = Impaired+ | Unimpaired+ | Unknown+ deriving (Eq,Ord,Read,Show,Enum,Bounded,Data,Typeable,Generic)++instance FromText EntityStatusCode where+ parser = takeLowerText >>= \case+ "impaired" -> pure Impaired+ "unimpaired" -> pure Unimpaired+ "unknown" -> pure Unknown+ e -> fromTextError $ "Failure parsing EntityStatusCode from value: '" <> e+ <> "'. Accepted values: impaired, unimpaired, unknown"++instance ToText EntityStatusCode where+ toText = \case+ Impaired -> "IMPAIRED"+ Unimpaired -> "UNIMPAIRED"+ Unknown -> "UNKNOWN"++instance Hashable EntityStatusCode+instance NFData EntityStatusCode+instance ToByteString EntityStatusCode+instance ToQuery EntityStatusCode+instance ToHeader EntityStatusCode++instance ToJSON EntityStatusCode where+ toJSON = toJSONText++instance FromJSON EntityStatusCode where+ parseJSON = parseJSONText "EntityStatusCode"++data EventAggregateField =+ EventTypeCategory+ deriving (Eq,Ord,Read,Show,Enum,Bounded,Data,Typeable,Generic)++instance FromText EventAggregateField where+ parser = takeLowerText >>= \case+ "eventtypecategory" -> pure EventTypeCategory+ e -> fromTextError $ "Failure parsing EventAggregateField from value: '" <> e+ <> "'. Accepted values: eventtypecategory"++instance ToText EventAggregateField where+ toText = \case+ EventTypeCategory -> "eventTypeCategory"++instance Hashable EventAggregateField+instance NFData EventAggregateField+instance ToByteString EventAggregateField+instance ToQuery EventAggregateField+instance ToHeader EventAggregateField++instance ToJSON EventAggregateField where+ toJSON = toJSONText++data EventStatusCode+ = Closed+ | Open+ | Upcoming+ deriving (Eq,Ord,Read,Show,Enum,Bounded,Data,Typeable,Generic)++instance FromText EventStatusCode where+ parser = takeLowerText >>= \case+ "closed" -> pure Closed+ "open" -> pure Open+ "upcoming" -> pure Upcoming+ e -> fromTextError $ "Failure parsing EventStatusCode from value: '" <> e+ <> "'. Accepted values: closed, open, upcoming"++instance ToText EventStatusCode where+ toText = \case+ Closed -> "closed"+ Open -> "open"+ Upcoming -> "upcoming"++instance Hashable EventStatusCode+instance NFData EventStatusCode+instance ToByteString EventStatusCode+instance ToQuery EventStatusCode+instance ToHeader EventStatusCode++instance ToJSON EventStatusCode where+ toJSON = toJSONText++instance FromJSON EventStatusCode where+ parseJSON = parseJSONText "EventStatusCode"++data EventTypeCategory+ = AccountNotification+ | Issue+ | ScheduledChange+ deriving (Eq,Ord,Read,Show,Enum,Bounded,Data,Typeable,Generic)++instance FromText EventTypeCategory where+ parser = takeLowerText >>= \case+ "accountnotification" -> pure AccountNotification+ "issue" -> pure Issue+ "scheduledchange" -> pure ScheduledChange+ e -> fromTextError $ "Failure parsing EventTypeCategory from value: '" <> e+ <> "'. Accepted values: accountnotification, issue, scheduledchange"++instance ToText EventTypeCategory where+ toText = \case+ AccountNotification -> "accountNotification"+ Issue -> "issue"+ ScheduledChange -> "scheduledChange"++instance Hashable EventTypeCategory+instance NFData EventTypeCategory+instance ToByteString EventTypeCategory+instance ToQuery EventTypeCategory+instance ToHeader EventTypeCategory++instance ToJSON EventTypeCategory where+ toJSON = toJSONText++instance FromJSON EventTypeCategory where+ parseJSON = parseJSONText "EventTypeCategory"
+ gen/Network/AWS/AWSHealth/Waiters.hs view
@@ -0,0 +1,21 @@+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Network.AWS.AWSHealth.Waiters+-- Copyright : (c) 2013-2016 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+module Network.AWS.AWSHealth.Waiters where++import Network.AWS.AWSHealth.Types+import Network.AWS.Lens+import Network.AWS.Prelude+import Network.AWS.Waiter
+ src/.gitkeep view
+ test/Main.hs view
@@ -0,0 +1,21 @@+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- |+-- Module : Main+-- Copyright : (c) 2013-2016 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+module Main (main) where++import Test.Tasty+import Test.AWS.AWSHealth+import Test.AWS.AWSHealth.Internal++main :: IO ()+main = defaultMain $ testGroup "AWSHealth"+ [ testGroup "tests" tests+ , testGroup "fixtures" fixtures+ ]
+ test/Test/AWS/AWSHealth.hs view
@@ -0,0 +1,20 @@+-- |+-- Module : Test.AWS.AWSHealth+-- Copyright : (c) 2013-2016 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+module Test.AWS.AWSHealth+ ( tests+ , fixtures+ ) where++import Test.Tasty (TestTree)++tests :: [TestTree]+tests = []++fixtures :: [TestTree]+fixtures = []
+ test/Test/AWS/AWSHealth/Internal.hs view
@@ -0,0 +1,9 @@+-- |+-- Module : Test.AWS.AWSHealth.Internal+-- Copyright : (c) 2013-2016 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+module Test.AWS.AWSHealth.Internal where
+ test/Test/AWS/Gen/AWSHealth.hs view
@@ -0,0 +1,147 @@+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-orphans #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Test.AWS.Gen.AWSHealth+-- Copyright : (c) 2013-2016 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+module Test.AWS.Gen.AWSHealth where++import Data.Proxy+import Test.AWS.Fixture+import Test.AWS.Prelude+import Test.Tasty+import Network.AWS.AWSHealth+import Test.AWS.AWSHealth.Internal++-- Auto-generated: the actual test selection needs to be manually placed into+-- the top-level so that real test data can be incrementally added.+--+-- This commented snippet is what the entire set should look like:++-- fixtures :: TestTree+-- fixtures =+-- [ testGroup "request"+-- [ requestDescribeEntityAggregates $+-- describeEntityAggregates+--+-- , requestDescribeEvents $+-- describeEvents+--+-- , requestDescribeEventDetails $+-- describeEventDetails+--+-- , requestDescribeEventAggregates $+-- describeEventAggregates+--+-- , requestDescribeAffectedEntities $+-- describeAffectedEntities+--+-- , requestDescribeEventTypes $+-- describeEventTypes+--+-- ]++-- , testGroup "response"+-- [ responseDescribeEntityAggregates $+-- describeEntityAggregatesResponse+--+-- , responseDescribeEvents $+-- describeEventsResponse+--+-- , responseDescribeEventDetails $+-- describeEventDetailsResponse+--+-- , responseDescribeEventAggregates $+-- describeEventAggregatesResponse+--+-- , responseDescribeAffectedEntities $+-- describeAffectedEntitiesResponse+--+-- , responseDescribeEventTypes $+-- describeEventTypesResponse+--+-- ]+-- ]++-- Requests++requestDescribeEntityAggregates :: DescribeEntityAggregates -> TestTree+requestDescribeEntityAggregates = req+ "DescribeEntityAggregates"+ "fixture/DescribeEntityAggregates.yaml"++requestDescribeEvents :: DescribeEvents -> TestTree+requestDescribeEvents = req+ "DescribeEvents"+ "fixture/DescribeEvents.yaml"++requestDescribeEventDetails :: DescribeEventDetails -> TestTree+requestDescribeEventDetails = req+ "DescribeEventDetails"+ "fixture/DescribeEventDetails.yaml"++requestDescribeEventAggregates :: DescribeEventAggregates -> TestTree+requestDescribeEventAggregates = req+ "DescribeEventAggregates"+ "fixture/DescribeEventAggregates.yaml"++requestDescribeAffectedEntities :: DescribeAffectedEntities -> TestTree+requestDescribeAffectedEntities = req+ "DescribeAffectedEntities"+ "fixture/DescribeAffectedEntities.yaml"++requestDescribeEventTypes :: DescribeEventTypes -> TestTree+requestDescribeEventTypes = req+ "DescribeEventTypes"+ "fixture/DescribeEventTypes.yaml"++-- Responses++responseDescribeEntityAggregates :: DescribeEntityAggregatesResponse -> TestTree+responseDescribeEntityAggregates = res+ "DescribeEntityAggregatesResponse"+ "fixture/DescribeEntityAggregatesResponse.proto"+ awsHealth+ (Proxy :: Proxy DescribeEntityAggregates)++responseDescribeEvents :: DescribeEventsResponse -> TestTree+responseDescribeEvents = res+ "DescribeEventsResponse"+ "fixture/DescribeEventsResponse.proto"+ awsHealth+ (Proxy :: Proxy DescribeEvents)++responseDescribeEventDetails :: DescribeEventDetailsResponse -> TestTree+responseDescribeEventDetails = res+ "DescribeEventDetailsResponse"+ "fixture/DescribeEventDetailsResponse.proto"+ awsHealth+ (Proxy :: Proxy DescribeEventDetails)++responseDescribeEventAggregates :: DescribeEventAggregatesResponse -> TestTree+responseDescribeEventAggregates = res+ "DescribeEventAggregatesResponse"+ "fixture/DescribeEventAggregatesResponse.proto"+ awsHealth+ (Proxy :: Proxy DescribeEventAggregates)++responseDescribeAffectedEntities :: DescribeAffectedEntitiesResponse -> TestTree+responseDescribeAffectedEntities = res+ "DescribeAffectedEntitiesResponse"+ "fixture/DescribeAffectedEntitiesResponse.proto"+ awsHealth+ (Proxy :: Proxy DescribeAffectedEntities)++responseDescribeEventTypes :: DescribeEventTypesResponse -> TestTree+responseDescribeEventTypes = res+ "DescribeEventTypesResponse"+ "fixture/DescribeEventTypesResponse.proto"+ awsHealth+ (Proxy :: Proxy DescribeEventTypes)