amazonka-route53-recovery-cluster (empty) → 2.0
raw patch · 27 files changed
+2461/−0 lines, 27 filesdep +amazonka-coredep +amazonka-route53-recovery-clusterdep +amazonka-test
Dependencies added: amazonka-core, amazonka-route53-recovery-cluster, amazonka-test, base, bytestring, case-insensitive, tasty, tasty-hunit, text, time, unordered-containers
Files
- LICENSE +367/−0
- README.md +44/−0
- amazonka-route53-recovery-cluster.cabal +90/−0
- fixture/GetRoutingControlState.yaml +10/−0
- fixture/GetRoutingControlStateResponse.proto +0/−0
- fixture/ListRoutingControls.yaml +10/−0
- fixture/ListRoutingControlsResponse.proto +0/−0
- fixture/UpdateRoutingControlState.yaml +10/−0
- fixture/UpdateRoutingControlStateResponse.proto +0/−0
- fixture/UpdateRoutingControlStates.yaml +10/−0
- fixture/UpdateRoutingControlStatesResponse.proto +0/−0
- gen/Amazonka/Route53RecoveryCluster.hs +174/−0
- gen/Amazonka/Route53RecoveryCluster/GetRoutingControlState.hs +237/−0
- gen/Amazonka/Route53RecoveryCluster/Lens.hs +63/−0
- gen/Amazonka/Route53RecoveryCluster/ListRoutingControls.hs +277/−0
- gen/Amazonka/Route53RecoveryCluster/Types.hs +186/−0
- gen/Amazonka/Route53RecoveryCluster/Types/RoutingControl.hs +132/−0
- gen/Amazonka/Route53RecoveryCluster/Types/RoutingControlState.hs +71/−0
- gen/Amazonka/Route53RecoveryCluster/Types/UpdateRoutingControlStateEntry.hs +101/−0
- gen/Amazonka/Route53RecoveryCluster/UpdateRoutingControlState.hs +253/−0
- gen/Amazonka/Route53RecoveryCluster/UpdateRoutingControlStates.hs +233/−0
- gen/Amazonka/Route53RecoveryCluster/Waiters.hs +24/−0
- src/.gitkeep +0/−0
- test/Main.hs +23/−0
- test/Test/Amazonka/Gen/Route53RecoveryCluster.hs +118/−0
- test/Test/Amazonka/Route53RecoveryCluster.hs +20/−0
- test/Test/Amazonka/Route53RecoveryCluster/Internal.hs +8/−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,44 @@+# Amazon Route53 Recovery Cluster SDK++* [Version](#version)+* [Description](#description)+* [Contribute](#contribute)+* [Licence](#licence)+++## Version+ +`2.0` - Derived from API version @2019-12-02@ of the AWS service descriptions, licensed under Apache 2.0.++## Description++Documentation is available via [Hackage](http://hackage.haskell.org/package/amazonka-route53-recovery-cluster)+and the [AWS API Reference](https://aws.amazon.com/documentation/).++The types from this library are intended to be used with [amazonka](http://hackage.haskell.org/package/amazonka),+which provides mechanisms for specifying AuthN/AuthZ information, sending requests,+and receiving responses.++Lenses are used for constructing and manipulating types,+due to the depth of nesting of AWS types and transparency regarding+de/serialisation into more palatable Haskell values.+The provided lenses should be compatible with any of the major lens libraries+[lens](http://hackage.haskell.org/package/lens) or [lens-family-core](http://hackage.haskell.org/package/lens-family-core).++See [Amazonka.Route53RecoveryCluster](http://hackage.haskell.org/package/amazonka-route53-recovery-cluster/docs/Amazonka-Route53RecoveryCluster.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-route53-recovery-cluster` is released under the [Mozilla Public License Version 2.0](http://www.mozilla.org/MPL/).++Parts of the code are derived from AWS service descriptions, licensed under Apache 2.0.+Source files subject to this contain an additional licensing clause in their header.
+ amazonka-route53-recovery-cluster.cabal view
@@ -0,0 +1,90 @@+cabal-version: 2.2+name: amazonka-route53-recovery-cluster+version: 2.0+synopsis: Amazon Route53 Recovery Cluster SDK.+homepage: https://github.com/brendanhay/amazonka+bug-reports: https://github.com/brendanhay/amazonka/issues+license: MPL-2.0+license-file: LICENSE+author: Brendan Hay+maintainer:+ Brendan Hay <brendan.g.hay+amazonka@gmail.com>, Jack Kelly <jack@jackkelly.name>++copyright: Copyright (c) 2013-2023 Brendan Hay+category: AWS+build-type: Simple+extra-source-files:+ fixture/*.proto+ fixture/*.yaml+ README.md+ src/.gitkeep++description:+ Derived from API version @2019-12-02@ of the AWS service descriptions, licensed under Apache 2.0.+ .+ The types from this library are intended to be used with <http://hackage.haskell.org/package/amazonka amazonka>,+ which provides mechanisms for specifying AuthN/AuthZ information, sending requests, and receiving responses.+ .+ It is recommended to use generic lenses or optics from packages such as <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify optional fields and deconstruct responses.+ .+ Generated lenses can be found in "Amazonka.Route53RecoveryCluster.Lens" and are+ suitable for use with a lens package such as <http://hackage.haskell.org/package/lens lens> or <http://hackage.haskell.org/package/lens-family-core lens-family-core>.+ .+ See "Amazonka.Route53RecoveryCluster" and the <https://aws.amazon.com/documentation/ AWS documentation> to get started.++source-repository head+ type: git+ location: git://github.com/brendanhay/amazonka.git+ subdir: amazonka-route53-recovery-cluster++library+ default-language: Haskell2010+ hs-source-dirs: src gen+ ghc-options:+ -Wall -fwarn-incomplete-uni-patterns+ -fwarn-incomplete-record-updates -funbox-strict-fields++ exposed-modules:+ Amazonka.Route53RecoveryCluster+ Amazonka.Route53RecoveryCluster.GetRoutingControlState+ Amazonka.Route53RecoveryCluster.Lens+ Amazonka.Route53RecoveryCluster.ListRoutingControls+ Amazonka.Route53RecoveryCluster.Types+ Amazonka.Route53RecoveryCluster.Types.RoutingControl+ Amazonka.Route53RecoveryCluster.Types.RoutingControlState+ Amazonka.Route53RecoveryCluster.Types.UpdateRoutingControlStateEntry+ Amazonka.Route53RecoveryCluster.UpdateRoutingControlState+ Amazonka.Route53RecoveryCluster.UpdateRoutingControlStates+ Amazonka.Route53RecoveryCluster.Waiters++ build-depends:+ , amazonka-core >=2.0 && <2.1+ , base >=4.12 && <5++test-suite amazonka-route53-recovery-cluster-test+ type: exitcode-stdio-1.0+ default-language: Haskell2010+ hs-source-dirs: test+ main-is: Main.hs+ ghc-options: -Wall -threaded++ -- This section is encoded by the template and any modules added by+ -- hand outside these namespaces will not correctly be added to the+ -- distribution package.+ other-modules:+ Test.Amazonka.Gen.Route53RecoveryCluster+ Test.Amazonka.Route53RecoveryCluster+ Test.Amazonka.Route53RecoveryCluster.Internal++ build-depends:+ , amazonka-core >=2.0 && <2.1+ , amazonka-route53-recovery-cluster+ , amazonka-test >=2.0 && <2.1+ , base+ , bytestring+ , case-insensitive+ , tasty+ , tasty-hunit+ , text+ , time+ , unordered-containers
+ fixture/GetRoutingControlState.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/route53-recovery-cluster/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: route53-recovery-cluster.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/GetRoutingControlStateResponse.proto view
+ fixture/ListRoutingControls.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/route53-recovery-cluster/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: route53-recovery-cluster.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/ListRoutingControlsResponse.proto view
+ fixture/UpdateRoutingControlState.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/route53-recovery-cluster/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: route53-recovery-cluster.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/UpdateRoutingControlStateResponse.proto view
+ fixture/UpdateRoutingControlStates.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/route53-recovery-cluster/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: route53-recovery-cluster.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/UpdateRoutingControlStatesResponse.proto view
+ gen/Amazonka/Route53RecoveryCluster.hs view
@@ -0,0 +1,174 @@+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- |+-- Module : Amazonka.Route53RecoveryCluster+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Derived from API version @2019-12-02@ of the AWS service descriptions, licensed under Apache 2.0.+--+-- Welcome to the Routing Control (Recovery Cluster) API Reference Guide+-- for Amazon Route 53 Application Recovery Controller.+--+-- With Route 53 ARC, you can use routing control with extreme reliability+-- to recover applications by rerouting traffic across Availability Zones+-- or Amazon Web Services Regions. Routing controls are simple on\/off+-- switches hosted on a highly available cluster in Route 53 ARC. A cluster+-- provides a set of five redundant Regional endpoints against which you+-- can run API calls to get or update the state of routing controls. To+-- implement failover, you set one routing control On and another one Off,+-- to reroute traffic from one Availability Zone or Amazon Web Services+-- Region to another.+--+-- /Be aware that you must specify a Regional endpoint for a cluster when+-- you work with API cluster operations to get or update routing control+-- states in Route 53 ARC./ In addition, you must specify the US West+-- (Oregon) Region for Route 53 ARC API calls. For example, use the+-- parameter @--region us-west-2@ with AWS CLI commands. For more+-- information, see+-- <https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.update.api.html Get and update routing control states using the API>+-- in the Amazon Route 53 Application Recovery Controller Developer Guide.+--+-- This API guide includes information about the API operations for how to+-- get and update routing control states in Route 53 ARC. To work with+-- routing control in Route 53 ARC, you must first create the required+-- components (clusters, control panels, and routing controls) using the+-- recovery cluster configuration API.+--+-- For more information about working with routing control in Route 53 ARC,+-- see the following:+--+-- - Create clusters, control panels, and routing controls by using API+-- operations. For more information, see the+-- <https://docs.aws.amazon.com/recovery-cluster/latest/api/ Recovery Control Configuration API Reference Guide for Amazon Route 53 Application Recovery Controller>.+--+-- - Learn about the components in recovery control, including clusters,+-- routing controls, and control panels, and how to work with Route 53+-- ARC in the Amazon Web Services console. For more information, see+-- <https://docs.aws.amazon.com/r53recovery/latest/dg/introduction-components.html#introduction-components-routing Recovery control components>+-- in the Amazon Route 53 Application Recovery Controller Developer+-- Guide.+--+-- - Route 53 ARC also provides readiness checks that continually audit+-- resources to help make sure that your applications are scaled and+-- ready to handle failover traffic. For more information about the+-- related API operations, see the+-- <https://docs.aws.amazon.com/recovery-readiness/latest/api/ Recovery Readiness API Reference Guide for Amazon Route 53 Application Recovery Controller>.+--+-- - For more information about creating resilient applications and+-- preparing for recovery readiness with Route 53 ARC, see the+-- <https://docs.aws.amazon.com/r53recovery/latest/dg/ Amazon Route 53 Application Recovery Controller Developer Guide>.+module Amazonka.Route53RecoveryCluster+ ( -- * Service Configuration+ defaultService,++ -- * Errors+ -- $errors++ -- ** AccessDeniedException+ _AccessDeniedException,++ -- ** ConflictException+ _ConflictException,++ -- ** EndpointTemporarilyUnavailableException+ _EndpointTemporarilyUnavailableException,++ -- ** InternalServerException+ _InternalServerException,++ -- ** ResourceNotFoundException+ _ResourceNotFoundException,++ -- ** ServiceLimitExceededException+ _ServiceLimitExceededException,++ -- ** ThrottlingException+ _ThrottlingException,++ -- ** ValidationException+ _ValidationException,++ -- * Waiters+ -- $waiters++ -- * Operations+ -- $operations++ -- ** GetRoutingControlState+ GetRoutingControlState (GetRoutingControlState'),+ newGetRoutingControlState,+ GetRoutingControlStateResponse (GetRoutingControlStateResponse'),+ newGetRoutingControlStateResponse,++ -- ** ListRoutingControls (Paginated)+ ListRoutingControls (ListRoutingControls'),+ newListRoutingControls,+ ListRoutingControlsResponse (ListRoutingControlsResponse'),+ newListRoutingControlsResponse,++ -- ** UpdateRoutingControlState+ UpdateRoutingControlState (UpdateRoutingControlState'),+ newUpdateRoutingControlState,+ UpdateRoutingControlStateResponse (UpdateRoutingControlStateResponse'),+ newUpdateRoutingControlStateResponse,++ -- ** UpdateRoutingControlStates+ UpdateRoutingControlStates (UpdateRoutingControlStates'),+ newUpdateRoutingControlStates,+ UpdateRoutingControlStatesResponse (UpdateRoutingControlStatesResponse'),+ newUpdateRoutingControlStatesResponse,++ -- * Types++ -- ** RoutingControlState+ RoutingControlState (..),++ -- ** RoutingControl+ RoutingControl (RoutingControl'),+ newRoutingControl,++ -- ** UpdateRoutingControlStateEntry+ UpdateRoutingControlStateEntry (UpdateRoutingControlStateEntry'),+ newUpdateRoutingControlStateEntry,+ )+where++import Amazonka.Route53RecoveryCluster.GetRoutingControlState+import Amazonka.Route53RecoveryCluster.Lens+import Amazonka.Route53RecoveryCluster.ListRoutingControls+import Amazonka.Route53RecoveryCluster.Types+import Amazonka.Route53RecoveryCluster.UpdateRoutingControlState+import Amazonka.Route53RecoveryCluster.UpdateRoutingControlStates+import Amazonka.Route53RecoveryCluster.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 'Route53RecoveryCluster'.++-- $operations+-- Some AWS operations return results that are incomplete and require subsequent+-- requests in order to obtain the entire result set. The process of sending+-- subsequent requests to continue where a previous request left off is called+-- pagination. For example, the 'ListObjects' operation of Amazon S3 returns up to+-- 1000 objects at a time, and you must send subsequent requests with the+-- appropriate Marker in order to retrieve the next page of results.+--+-- Operations that have an 'AWSPager' instance can transparently perform subsequent+-- requests, correctly setting Markers and other request facets to iterate through+-- the entire result set of a truncated API operation. Operations which support+-- this have an additional note in the documentation.+--+-- Many operations have the ability to filter results on the server side. See the+-- individual operation parameters for details.++-- $waiters+-- Waiters poll by repeatedly sending a request until some remote success condition+-- configured by the 'Wait' specification is fulfilled. The 'Wait' specification+-- determines how many attempts should be made, in addition to delay and retry strategies.
+ gen/Amazonka/Route53RecoveryCluster/GetRoutingControlState.hs view
@@ -0,0 +1,237 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.Route53RecoveryCluster.GetRoutingControlState+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Get the state for a routing control. A routing control is a simple+-- on\/off switch that you can use to route traffic to cells. When a+-- routing control state is On, traffic flows to a cell. When the state is+-- Off, traffic does not flow.+--+-- Before you can create a routing control, you must first create a+-- cluster, and then host the control in a control panel on the cluster.+-- For more information, see+-- <https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.create.html Create routing control structures>+-- in the Amazon Route 53 Application Recovery Controller Developer Guide.+-- You access one of the endpoints for the cluster to get or update the+-- routing control state to redirect traffic for your application.+--+-- /You must specify Regional endpoints when you work with API cluster+-- operations to get or update routing control states in Route 53 ARC./+--+-- To see a code example for getting a routing control state, including+-- accessing Regional cluster endpoints in sequence, see+-- <https://docs.aws.amazon.com/r53recovery/latest/dg/service_code_examples_actions.html API examples>+-- in the Amazon Route 53 Application Recovery Controller Developer Guide.+--+-- Learn more about working with routing controls in the following topics+-- in the Amazon Route 53 Application Recovery Controller Developer Guide:+--+-- - <https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.update.html Viewing and updating routing control states>+--+-- - <https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.html Working with routing controls in Route 53 ARC>+module Amazonka.Route53RecoveryCluster.GetRoutingControlState+ ( -- * Creating a Request+ GetRoutingControlState (..),+ newGetRoutingControlState,++ -- * Request Lenses+ getRoutingControlState_routingControlArn,++ -- * Destructuring the Response+ GetRoutingControlStateResponse (..),+ newGetRoutingControlStateResponse,++ -- * Response Lenses+ getRoutingControlStateResponse_routingControlName,+ getRoutingControlStateResponse_httpStatus,+ getRoutingControlStateResponse_routingControlArn,+ getRoutingControlStateResponse_routingControlState,+ )+where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response+import Amazonka.Route53RecoveryCluster.Types++-- | /See:/ 'newGetRoutingControlState' smart constructor.+data GetRoutingControlState = GetRoutingControlState'+ { -- | The Amazon Resource Name (ARN) for the routing control that you want to+ -- get the state for.+ routingControlArn :: Prelude.Text+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'GetRoutingControlState' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'routingControlArn', 'getRoutingControlState_routingControlArn' - The Amazon Resource Name (ARN) for the routing control that you want to+-- get the state for.+newGetRoutingControlState ::+ -- | 'routingControlArn'+ Prelude.Text ->+ GetRoutingControlState+newGetRoutingControlState pRoutingControlArn_ =+ GetRoutingControlState'+ { routingControlArn =+ pRoutingControlArn_+ }++-- | The Amazon Resource Name (ARN) for the routing control that you want to+-- get the state for.+getRoutingControlState_routingControlArn :: Lens.Lens' GetRoutingControlState Prelude.Text+getRoutingControlState_routingControlArn = Lens.lens (\GetRoutingControlState' {routingControlArn} -> routingControlArn) (\s@GetRoutingControlState' {} a -> s {routingControlArn = a} :: GetRoutingControlState)++instance Core.AWSRequest GetRoutingControlState where+ type+ AWSResponse GetRoutingControlState =+ GetRoutingControlStateResponse+ request overrides =+ Request.postJSON (overrides defaultService)+ response =+ Response.receiveJSON+ ( \s h x ->+ GetRoutingControlStateResponse'+ Prelude.<$> (x Data..?> "RoutingControlName")+ Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+ Prelude.<*> (x Data..:> "RoutingControlArn")+ Prelude.<*> (x Data..:> "RoutingControlState")+ )++instance Prelude.Hashable GetRoutingControlState where+ hashWithSalt _salt GetRoutingControlState' {..} =+ _salt `Prelude.hashWithSalt` routingControlArn++instance Prelude.NFData GetRoutingControlState where+ rnf GetRoutingControlState' {..} =+ Prelude.rnf routingControlArn++instance Data.ToHeaders GetRoutingControlState where+ toHeaders =+ Prelude.const+ ( Prelude.mconcat+ [ "X-Amz-Target"+ Data.=# ( "ToggleCustomerAPI.GetRoutingControlState" ::+ Prelude.ByteString+ ),+ "Content-Type"+ Data.=# ( "application/x-amz-json-1.0" ::+ Prelude.ByteString+ )+ ]+ )++instance Data.ToJSON GetRoutingControlState where+ toJSON GetRoutingControlState' {..} =+ Data.object+ ( Prelude.catMaybes+ [ Prelude.Just+ ("RoutingControlArn" Data..= routingControlArn)+ ]+ )++instance Data.ToPath GetRoutingControlState where+ toPath = Prelude.const "/"++instance Data.ToQuery GetRoutingControlState where+ toQuery = Prelude.const Prelude.mempty++-- | /See:/ 'newGetRoutingControlStateResponse' smart constructor.+data GetRoutingControlStateResponse = GetRoutingControlStateResponse'+ { -- | The routing control name.+ routingControlName :: Prelude.Maybe Prelude.Text,+ -- | The response's http status code.+ httpStatus :: Prelude.Int,+ -- | The Amazon Resource Name (ARN) of the response.+ routingControlArn :: Prelude.Text,+ -- | The state of the routing control.+ routingControlState :: RoutingControlState+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'GetRoutingControlStateResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'routingControlName', 'getRoutingControlStateResponse_routingControlName' - The routing control name.+--+-- 'httpStatus', 'getRoutingControlStateResponse_httpStatus' - The response's http status code.+--+-- 'routingControlArn', 'getRoutingControlStateResponse_routingControlArn' - The Amazon Resource Name (ARN) of the response.+--+-- 'routingControlState', 'getRoutingControlStateResponse_routingControlState' - The state of the routing control.+newGetRoutingControlStateResponse ::+ -- | 'httpStatus'+ Prelude.Int ->+ -- | 'routingControlArn'+ Prelude.Text ->+ -- | 'routingControlState'+ RoutingControlState ->+ GetRoutingControlStateResponse+newGetRoutingControlStateResponse+ pHttpStatus_+ pRoutingControlArn_+ pRoutingControlState_ =+ GetRoutingControlStateResponse'+ { routingControlName =+ Prelude.Nothing,+ httpStatus = pHttpStatus_,+ routingControlArn = pRoutingControlArn_,+ routingControlState = pRoutingControlState_+ }++-- | The routing control name.+getRoutingControlStateResponse_routingControlName :: Lens.Lens' GetRoutingControlStateResponse (Prelude.Maybe Prelude.Text)+getRoutingControlStateResponse_routingControlName = Lens.lens (\GetRoutingControlStateResponse' {routingControlName} -> routingControlName) (\s@GetRoutingControlStateResponse' {} a -> s {routingControlName = a} :: GetRoutingControlStateResponse)++-- | The response's http status code.+getRoutingControlStateResponse_httpStatus :: Lens.Lens' GetRoutingControlStateResponse Prelude.Int+getRoutingControlStateResponse_httpStatus = Lens.lens (\GetRoutingControlStateResponse' {httpStatus} -> httpStatus) (\s@GetRoutingControlStateResponse' {} a -> s {httpStatus = a} :: GetRoutingControlStateResponse)++-- | The Amazon Resource Name (ARN) of the response.+getRoutingControlStateResponse_routingControlArn :: Lens.Lens' GetRoutingControlStateResponse Prelude.Text+getRoutingControlStateResponse_routingControlArn = Lens.lens (\GetRoutingControlStateResponse' {routingControlArn} -> routingControlArn) (\s@GetRoutingControlStateResponse' {} a -> s {routingControlArn = a} :: GetRoutingControlStateResponse)++-- | The state of the routing control.+getRoutingControlStateResponse_routingControlState :: Lens.Lens' GetRoutingControlStateResponse RoutingControlState+getRoutingControlStateResponse_routingControlState = Lens.lens (\GetRoutingControlStateResponse' {routingControlState} -> routingControlState) (\s@GetRoutingControlStateResponse' {} a -> s {routingControlState = a} :: GetRoutingControlStateResponse)++instance+ Prelude.NFData+ GetRoutingControlStateResponse+ where+ rnf GetRoutingControlStateResponse' {..} =+ Prelude.rnf routingControlName+ `Prelude.seq` Prelude.rnf httpStatus+ `Prelude.seq` Prelude.rnf routingControlArn+ `Prelude.seq` Prelude.rnf routingControlState
+ gen/Amazonka/Route53RecoveryCluster/Lens.hs view
@@ -0,0 +1,63 @@+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.Route53RecoveryCluster.Lens+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.Route53RecoveryCluster.Lens+ ( -- * Operations++ -- ** GetRoutingControlState+ getRoutingControlState_routingControlArn,+ getRoutingControlStateResponse_routingControlName,+ getRoutingControlStateResponse_httpStatus,+ getRoutingControlStateResponse_routingControlArn,+ getRoutingControlStateResponse_routingControlState,++ -- ** ListRoutingControls+ listRoutingControls_controlPanelArn,+ listRoutingControls_maxResults,+ listRoutingControls_nextToken,+ listRoutingControlsResponse_nextToken,+ listRoutingControlsResponse_httpStatus,+ listRoutingControlsResponse_routingControls,++ -- ** UpdateRoutingControlState+ updateRoutingControlState_safetyRulesToOverride,+ updateRoutingControlState_routingControlArn,+ updateRoutingControlState_routingControlState,+ updateRoutingControlStateResponse_httpStatus,++ -- ** UpdateRoutingControlStates+ updateRoutingControlStates_safetyRulesToOverride,+ updateRoutingControlStates_updateRoutingControlStateEntries,+ updateRoutingControlStatesResponse_httpStatus,++ -- * Types++ -- ** RoutingControl+ routingControl_controlPanelArn,+ routingControl_controlPanelName,+ routingControl_routingControlArn,+ routingControl_routingControlName,+ routingControl_routingControlState,++ -- ** UpdateRoutingControlStateEntry+ updateRoutingControlStateEntry_routingControlArn,+ updateRoutingControlStateEntry_routingControlState,+ )+where++import Amazonka.Route53RecoveryCluster.GetRoutingControlState+import Amazonka.Route53RecoveryCluster.ListRoutingControls+import Amazonka.Route53RecoveryCluster.Types.RoutingControl+import Amazonka.Route53RecoveryCluster.Types.UpdateRoutingControlStateEntry+import Amazonka.Route53RecoveryCluster.UpdateRoutingControlState+import Amazonka.Route53RecoveryCluster.UpdateRoutingControlStates
+ gen/Amazonka/Route53RecoveryCluster/ListRoutingControls.hs view
@@ -0,0 +1,277 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.Route53RecoveryCluster.ListRoutingControls+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- List routing control names and Amazon Resource Names (ARNs), as well as+-- the routing control state for each routing control, along with the+-- control panel name and control panel ARN for the routing controls. If+-- you specify a control panel ARN, this call lists the routing controls in+-- the control panel. Otherwise, it lists all the routing controls in the+-- cluster.+--+-- A routing control is a simple on\/off switch in Route 53 ARC that you+-- can use to route traffic to cells. When a routing control state is On,+-- traffic flows to a cell. When the state is Off, traffic does not flow.+--+-- Before you can create a routing control, you must first create a+-- cluster, and then host the control in a control panel on the cluster.+-- For more information, see+-- <https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.create.html Create routing control structures>+-- in the Amazon Route 53 Application Recovery Controller Developer Guide.+-- You access one of the endpoints for the cluster to get or update the+-- routing control state to redirect traffic for your application.+--+-- /You must specify Regional endpoints when you work with API cluster+-- operations to use this API operation to list routing controls in Route+-- 53 ARC./+--+-- Learn more about working with routing controls in the following topics+-- in the Amazon Route 53 Application Recovery Controller Developer Guide:+--+-- - <https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.update.html Viewing and updating routing control states>+--+-- - <https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.html Working with routing controls in Route 53 ARC>+--+-- This operation returns paginated results.+module Amazonka.Route53RecoveryCluster.ListRoutingControls+ ( -- * Creating a Request+ ListRoutingControls (..),+ newListRoutingControls,++ -- * Request Lenses+ listRoutingControls_controlPanelArn,+ listRoutingControls_maxResults,+ listRoutingControls_nextToken,++ -- * Destructuring the Response+ ListRoutingControlsResponse (..),+ newListRoutingControlsResponse,++ -- * Response Lenses+ listRoutingControlsResponse_nextToken,+ listRoutingControlsResponse_httpStatus,+ listRoutingControlsResponse_routingControls,+ )+where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response+import Amazonka.Route53RecoveryCluster.Types++-- | /See:/ 'newListRoutingControls' smart constructor.+data ListRoutingControls = ListRoutingControls'+ { -- | The Amazon Resource Name (ARN) of the control panel of the routing+ -- controls to list.+ controlPanelArn :: Prelude.Maybe Prelude.Text,+ -- | The number of routing controls objects that you want to return with this+ -- call. The default value is 500.+ maxResults :: Prelude.Maybe Prelude.Natural,+ -- | The token for the next set of results. You receive this token from a+ -- previous call.+ nextToken :: Prelude.Maybe Prelude.Text+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'ListRoutingControls' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'controlPanelArn', 'listRoutingControls_controlPanelArn' - The Amazon Resource Name (ARN) of the control panel of the routing+-- controls to list.+--+-- 'maxResults', 'listRoutingControls_maxResults' - The number of routing controls objects that you want to return with this+-- call. The default value is 500.+--+-- 'nextToken', 'listRoutingControls_nextToken' - The token for the next set of results. You receive this token from a+-- previous call.+newListRoutingControls ::+ ListRoutingControls+newListRoutingControls =+ ListRoutingControls'+ { controlPanelArn =+ Prelude.Nothing,+ maxResults = Prelude.Nothing,+ nextToken = Prelude.Nothing+ }++-- | The Amazon Resource Name (ARN) of the control panel of the routing+-- controls to list.+listRoutingControls_controlPanelArn :: Lens.Lens' ListRoutingControls (Prelude.Maybe Prelude.Text)+listRoutingControls_controlPanelArn = Lens.lens (\ListRoutingControls' {controlPanelArn} -> controlPanelArn) (\s@ListRoutingControls' {} a -> s {controlPanelArn = a} :: ListRoutingControls)++-- | The number of routing controls objects that you want to return with this+-- call. The default value is 500.+listRoutingControls_maxResults :: Lens.Lens' ListRoutingControls (Prelude.Maybe Prelude.Natural)+listRoutingControls_maxResults = Lens.lens (\ListRoutingControls' {maxResults} -> maxResults) (\s@ListRoutingControls' {} a -> s {maxResults = a} :: ListRoutingControls)++-- | The token for the next set of results. You receive this token from a+-- previous call.+listRoutingControls_nextToken :: Lens.Lens' ListRoutingControls (Prelude.Maybe Prelude.Text)+listRoutingControls_nextToken = Lens.lens (\ListRoutingControls' {nextToken} -> nextToken) (\s@ListRoutingControls' {} a -> s {nextToken = a} :: ListRoutingControls)++instance Core.AWSPager ListRoutingControls where+ page rq rs+ | Core.stop+ ( rs+ Lens.^? listRoutingControlsResponse_nextToken+ Prelude.. Lens._Just+ ) =+ Prelude.Nothing+ | Core.stop+ ( rs+ Lens.^. listRoutingControlsResponse_routingControls+ ) =+ Prelude.Nothing+ | Prelude.otherwise =+ Prelude.Just+ Prelude.$ rq+ Prelude.& listRoutingControls_nextToken+ Lens..~ rs+ Lens.^? listRoutingControlsResponse_nextToken+ Prelude.. Lens._Just++instance Core.AWSRequest ListRoutingControls where+ type+ AWSResponse ListRoutingControls =+ ListRoutingControlsResponse+ request overrides =+ Request.postJSON (overrides defaultService)+ response =+ Response.receiveJSON+ ( \s h x ->+ ListRoutingControlsResponse'+ Prelude.<$> (x Data..?> "NextToken")+ Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+ Prelude.<*> ( x+ Data..?> "RoutingControls"+ Core..!@ Prelude.mempty+ )+ )++instance Prelude.Hashable ListRoutingControls where+ hashWithSalt _salt ListRoutingControls' {..} =+ _salt+ `Prelude.hashWithSalt` controlPanelArn+ `Prelude.hashWithSalt` maxResults+ `Prelude.hashWithSalt` nextToken++instance Prelude.NFData ListRoutingControls where+ rnf ListRoutingControls' {..} =+ Prelude.rnf controlPanelArn+ `Prelude.seq` Prelude.rnf maxResults+ `Prelude.seq` Prelude.rnf nextToken++instance Data.ToHeaders ListRoutingControls where+ toHeaders =+ Prelude.const+ ( Prelude.mconcat+ [ "X-Amz-Target"+ Data.=# ( "ToggleCustomerAPI.ListRoutingControls" ::+ Prelude.ByteString+ ),+ "Content-Type"+ Data.=# ( "application/x-amz-json-1.0" ::+ Prelude.ByteString+ )+ ]+ )++instance Data.ToJSON ListRoutingControls where+ toJSON ListRoutingControls' {..} =+ Data.object+ ( Prelude.catMaybes+ [ ("ControlPanelArn" Data..=)+ Prelude.<$> controlPanelArn,+ ("MaxResults" Data..=) Prelude.<$> maxResults,+ ("NextToken" Data..=) Prelude.<$> nextToken+ ]+ )++instance Data.ToPath ListRoutingControls where+ toPath = Prelude.const "/"++instance Data.ToQuery ListRoutingControls where+ toQuery = Prelude.const Prelude.mempty++-- | /See:/ 'newListRoutingControlsResponse' smart constructor.+data ListRoutingControlsResponse = ListRoutingControlsResponse'+ { -- | The token for the next set of results. You receive this token from a+ -- previous call.+ nextToken :: Prelude.Maybe Prelude.Text,+ -- | The response's http status code.+ httpStatus :: Prelude.Int,+ -- | The list of routing controls.+ routingControls :: [RoutingControl]+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'ListRoutingControlsResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'nextToken', 'listRoutingControlsResponse_nextToken' - The token for the next set of results. You receive this token from a+-- previous call.+--+-- 'httpStatus', 'listRoutingControlsResponse_httpStatus' - The response's http status code.+--+-- 'routingControls', 'listRoutingControlsResponse_routingControls' - The list of routing controls.+newListRoutingControlsResponse ::+ -- | 'httpStatus'+ Prelude.Int ->+ ListRoutingControlsResponse+newListRoutingControlsResponse pHttpStatus_ =+ ListRoutingControlsResponse'+ { nextToken =+ Prelude.Nothing,+ httpStatus = pHttpStatus_,+ routingControls = Prelude.mempty+ }++-- | The token for the next set of results. You receive this token from a+-- previous call.+listRoutingControlsResponse_nextToken :: Lens.Lens' ListRoutingControlsResponse (Prelude.Maybe Prelude.Text)+listRoutingControlsResponse_nextToken = Lens.lens (\ListRoutingControlsResponse' {nextToken} -> nextToken) (\s@ListRoutingControlsResponse' {} a -> s {nextToken = a} :: ListRoutingControlsResponse)++-- | The response's http status code.+listRoutingControlsResponse_httpStatus :: Lens.Lens' ListRoutingControlsResponse Prelude.Int+listRoutingControlsResponse_httpStatus = Lens.lens (\ListRoutingControlsResponse' {httpStatus} -> httpStatus) (\s@ListRoutingControlsResponse' {} a -> s {httpStatus = a} :: ListRoutingControlsResponse)++-- | The list of routing controls.+listRoutingControlsResponse_routingControls :: Lens.Lens' ListRoutingControlsResponse [RoutingControl]+listRoutingControlsResponse_routingControls = Lens.lens (\ListRoutingControlsResponse' {routingControls} -> routingControls) (\s@ListRoutingControlsResponse' {} a -> s {routingControls = a} :: ListRoutingControlsResponse) Prelude.. Lens.coerced++instance Prelude.NFData ListRoutingControlsResponse where+ rnf ListRoutingControlsResponse' {..} =+ Prelude.rnf nextToken+ `Prelude.seq` Prelude.rnf httpStatus+ `Prelude.seq` Prelude.rnf routingControls
+ gen/Amazonka/Route53RecoveryCluster/Types.hs view
@@ -0,0 +1,186 @@+{-# LANGUAGE DisambiguateRecordFields #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.Route53RecoveryCluster.Types+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.Route53RecoveryCluster.Types+ ( -- * Service Configuration+ defaultService,++ -- * Errors+ _AccessDeniedException,+ _ConflictException,+ _EndpointTemporarilyUnavailableException,+ _InternalServerException,+ _ResourceNotFoundException,+ _ServiceLimitExceededException,+ _ThrottlingException,+ _ValidationException,++ -- * RoutingControlState+ RoutingControlState (..),++ -- * RoutingControl+ RoutingControl (..),+ newRoutingControl,+ routingControl_controlPanelArn,+ routingControl_controlPanelName,+ routingControl_routingControlArn,+ routingControl_routingControlName,+ routingControl_routingControlState,++ -- * UpdateRoutingControlStateEntry+ UpdateRoutingControlStateEntry (..),+ newUpdateRoutingControlStateEntry,+ updateRoutingControlStateEntry_routingControlArn,+ updateRoutingControlStateEntry_routingControlState,+ )+where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Prelude as Prelude+import Amazonka.Route53RecoveryCluster.Types.RoutingControl+import Amazonka.Route53RecoveryCluster.Types.RoutingControlState+import Amazonka.Route53RecoveryCluster.Types.UpdateRoutingControlStateEntry+import qualified Amazonka.Sign.V4 as Sign++-- | API version @2019-12-02@ of the Amazon Route53 Recovery Cluster SDK configuration.+defaultService :: Core.Service+defaultService =+ Core.Service+ { Core.abbrev =+ "Route53RecoveryCluster",+ Core.signer = Sign.v4,+ Core.endpointPrefix = "route53-recovery-cluster",+ Core.signingName = "route53-recovery-cluster",+ Core.version = "2019-12-02",+ Core.s3AddressingStyle = Core.S3AddressingStyleAuto,+ Core.endpoint = Core.defaultEndpoint defaultService,+ Core.timeout = Prelude.Just 70,+ Core.check = Core.statusSuccess,+ Core.error =+ Core.parseJSONError "Route53RecoveryCluster",+ Core.retry = retry+ }+ where+ retry =+ Core.Exponential+ { Core.base = 5.0e-2,+ Core.growth = 2,+ Core.attempts = 5,+ Core.check = check+ }+ check e+ | Lens.has (Core.hasStatus 502) e =+ Prelude.Just "bad_gateway"+ | Lens.has (Core.hasStatus 504) e =+ Prelude.Just "gateway_timeout"+ | Lens.has (Core.hasStatus 500) e =+ Prelude.Just "general_server_error"+ | Lens.has (Core.hasStatus 509) e =+ Prelude.Just "limit_exceeded"+ | Lens.has+ ( Core.hasCode "RequestThrottledException"+ Prelude.. Core.hasStatus 400+ )+ e =+ Prelude.Just "request_throttled_exception"+ | Lens.has (Core.hasStatus 503) e =+ Prelude.Just "service_unavailable"+ | Lens.has+ ( Core.hasCode "ThrottledException"+ Prelude.. Core.hasStatus 400+ )+ e =+ Prelude.Just "throttled_exception"+ | Lens.has+ ( Core.hasCode "Throttling"+ Prelude.. Core.hasStatus 400+ )+ e =+ Prelude.Just "throttling"+ | Lens.has+ ( Core.hasCode "ThrottlingException"+ Prelude.. Core.hasStatus 400+ )+ e =+ Prelude.Just "throttling_exception"+ | Lens.has+ ( Core.hasCode+ "ProvisionedThroughputExceededException"+ Prelude.. Core.hasStatus 400+ )+ e =+ Prelude.Just "throughput_exceeded"+ | Lens.has (Core.hasStatus 429) e =+ Prelude.Just "too_many_requests"+ | Prelude.otherwise = Prelude.Nothing++-- | You don\'t have sufficient permissions to perform this action.+_AccessDeniedException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_AccessDeniedException =+ Core._MatchServiceError+ defaultService+ "AccessDeniedException"++-- | There was a conflict with this request. Try again.+_ConflictException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_ConflictException =+ Core._MatchServiceError+ defaultService+ "ConflictException"++-- | The cluster endpoint isn\'t available. Try another cluster endpoint.+_EndpointTemporarilyUnavailableException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_EndpointTemporarilyUnavailableException =+ Core._MatchServiceError+ defaultService+ "EndpointTemporarilyUnavailableException"++-- | There was an unexpected error during processing of the request.+_InternalServerException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_InternalServerException =+ Core._MatchServiceError+ defaultService+ "InternalServerException"++-- | The request references a routing control or control panel that was not+-- found.+_ResourceNotFoundException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_ResourceNotFoundException =+ Core._MatchServiceError+ defaultService+ "ResourceNotFoundException"++-- | The request can\'t update that many routing control states at the same+-- time. Try again with fewer routing control states.+_ServiceLimitExceededException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_ServiceLimitExceededException =+ Core._MatchServiceError+ defaultService+ "ServiceLimitExceededException"++-- | The request was denied because of request throttling.+_ThrottlingException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_ThrottlingException =+ Core._MatchServiceError+ defaultService+ "ThrottlingException"++-- | There was a validation error on the request.+_ValidationException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_ValidationException =+ Core._MatchServiceError+ defaultService+ "ValidationException"
+ gen/Amazonka/Route53RecoveryCluster/Types/RoutingControl.hs view
@@ -0,0 +1,132 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.Route53RecoveryCluster.Types.RoutingControl+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.Route53RecoveryCluster.Types.RoutingControl where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import Amazonka.Route53RecoveryCluster.Types.RoutingControlState++-- | A routing control, which is a simple on\/off switch that you can use to+-- route traffic to cells. When a routing control state is On, traffic+-- flows to a cell. When the state is Off, traffic does not flow.+--+-- /See:/ 'newRoutingControl' smart constructor.+data RoutingControl = RoutingControl'+ { -- | The Amazon Resource Name (ARN) of the control panel where the routing+ -- control is located.+ controlPanelArn :: Prelude.Maybe Prelude.Text,+ -- | The name of the control panel where the routing control is located.+ controlPanelName :: Prelude.Maybe Prelude.Text,+ -- | The Amazon Resource Name (ARN) of the routing control.+ routingControlArn :: Prelude.Maybe Prelude.Text,+ -- | The name of the routing control.+ routingControlName :: Prelude.Maybe Prelude.Text,+ -- | The current state of the routing control. When a routing control state+ -- is On, traffic flows to a cell. When the state is Off, traffic does not+ -- flow.+ routingControlState :: Prelude.Maybe RoutingControlState+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'RoutingControl' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'controlPanelArn', 'routingControl_controlPanelArn' - The Amazon Resource Name (ARN) of the control panel where the routing+-- control is located.+--+-- 'controlPanelName', 'routingControl_controlPanelName' - The name of the control panel where the routing control is located.+--+-- 'routingControlArn', 'routingControl_routingControlArn' - The Amazon Resource Name (ARN) of the routing control.+--+-- 'routingControlName', 'routingControl_routingControlName' - The name of the routing control.+--+-- 'routingControlState', 'routingControl_routingControlState' - The current state of the routing control. When a routing control state+-- is On, traffic flows to a cell. When the state is Off, traffic does not+-- flow.+newRoutingControl ::+ RoutingControl+newRoutingControl =+ RoutingControl'+ { controlPanelArn = Prelude.Nothing,+ controlPanelName = Prelude.Nothing,+ routingControlArn = Prelude.Nothing,+ routingControlName = Prelude.Nothing,+ routingControlState = Prelude.Nothing+ }++-- | The Amazon Resource Name (ARN) of the control panel where the routing+-- control is located.+routingControl_controlPanelArn :: Lens.Lens' RoutingControl (Prelude.Maybe Prelude.Text)+routingControl_controlPanelArn = Lens.lens (\RoutingControl' {controlPanelArn} -> controlPanelArn) (\s@RoutingControl' {} a -> s {controlPanelArn = a} :: RoutingControl)++-- | The name of the control panel where the routing control is located.+routingControl_controlPanelName :: Lens.Lens' RoutingControl (Prelude.Maybe Prelude.Text)+routingControl_controlPanelName = Lens.lens (\RoutingControl' {controlPanelName} -> controlPanelName) (\s@RoutingControl' {} a -> s {controlPanelName = a} :: RoutingControl)++-- | The Amazon Resource Name (ARN) of the routing control.+routingControl_routingControlArn :: Lens.Lens' RoutingControl (Prelude.Maybe Prelude.Text)+routingControl_routingControlArn = Lens.lens (\RoutingControl' {routingControlArn} -> routingControlArn) (\s@RoutingControl' {} a -> s {routingControlArn = a} :: RoutingControl)++-- | The name of the routing control.+routingControl_routingControlName :: Lens.Lens' RoutingControl (Prelude.Maybe Prelude.Text)+routingControl_routingControlName = Lens.lens (\RoutingControl' {routingControlName} -> routingControlName) (\s@RoutingControl' {} a -> s {routingControlName = a} :: RoutingControl)++-- | The current state of the routing control. When a routing control state+-- is On, traffic flows to a cell. When the state is Off, traffic does not+-- flow.+routingControl_routingControlState :: Lens.Lens' RoutingControl (Prelude.Maybe RoutingControlState)+routingControl_routingControlState = Lens.lens (\RoutingControl' {routingControlState} -> routingControlState) (\s@RoutingControl' {} a -> s {routingControlState = a} :: RoutingControl)++instance Data.FromJSON RoutingControl where+ parseJSON =+ Data.withObject+ "RoutingControl"+ ( \x ->+ RoutingControl'+ Prelude.<$> (x Data..:? "ControlPanelArn")+ Prelude.<*> (x Data..:? "ControlPanelName")+ Prelude.<*> (x Data..:? "RoutingControlArn")+ Prelude.<*> (x Data..:? "RoutingControlName")+ Prelude.<*> (x Data..:? "RoutingControlState")+ )++instance Prelude.Hashable RoutingControl where+ hashWithSalt _salt RoutingControl' {..} =+ _salt+ `Prelude.hashWithSalt` controlPanelArn+ `Prelude.hashWithSalt` controlPanelName+ `Prelude.hashWithSalt` routingControlArn+ `Prelude.hashWithSalt` routingControlName+ `Prelude.hashWithSalt` routingControlState++instance Prelude.NFData RoutingControl where+ rnf RoutingControl' {..} =+ Prelude.rnf controlPanelArn+ `Prelude.seq` Prelude.rnf controlPanelName+ `Prelude.seq` Prelude.rnf routingControlArn+ `Prelude.seq` Prelude.rnf routingControlName+ `Prelude.seq` Prelude.rnf routingControlState
+ gen/Amazonka/Route53RecoveryCluster/Types/RoutingControlState.hs view
@@ -0,0 +1,71 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE GeneralizedNewtypeDeriving #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.Route53RecoveryCluster.Types.RoutingControlState+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.Route53RecoveryCluster.Types.RoutingControlState+ ( RoutingControlState+ ( ..,+ RoutingControlState_Off,+ RoutingControlState_On+ ),+ )+where++import qualified Amazonka.Core as Core+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++newtype RoutingControlState = RoutingControlState'+ { fromRoutingControlState ::+ Data.Text+ }+ deriving stock+ ( Prelude.Show,+ Prelude.Read,+ Prelude.Eq,+ Prelude.Ord,+ Prelude.Generic+ )+ deriving newtype+ ( Prelude.Hashable,+ Prelude.NFData,+ Data.FromText,+ Data.ToText,+ Data.ToByteString,+ Data.ToLog,+ Data.ToHeader,+ Data.ToQuery,+ Data.FromJSON,+ Data.FromJSONKey,+ Data.ToJSON,+ Data.ToJSONKey,+ Data.FromXML,+ Data.ToXML+ )++pattern RoutingControlState_Off :: RoutingControlState+pattern RoutingControlState_Off = RoutingControlState' "Off"++pattern RoutingControlState_On :: RoutingControlState+pattern RoutingControlState_On = RoutingControlState' "On"++{-# COMPLETE+ RoutingControlState_Off,+ RoutingControlState_On,+ RoutingControlState'+ #-}
+ gen/Amazonka/Route53RecoveryCluster/Types/UpdateRoutingControlStateEntry.hs view
@@ -0,0 +1,101 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.Route53RecoveryCluster.Types.UpdateRoutingControlStateEntry+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.Route53RecoveryCluster.Types.UpdateRoutingControlStateEntry where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import Amazonka.Route53RecoveryCluster.Types.RoutingControlState++-- | A routing control state entry.+--+-- /See:/ 'newUpdateRoutingControlStateEntry' smart constructor.+data UpdateRoutingControlStateEntry = UpdateRoutingControlStateEntry'+ { -- | The Amazon Resource Name (ARN) for a routing control state entry.+ routingControlArn :: Prelude.Text,+ -- | The routing control state in a set of routing control state entries.+ routingControlState :: RoutingControlState+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'UpdateRoutingControlStateEntry' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'routingControlArn', 'updateRoutingControlStateEntry_routingControlArn' - The Amazon Resource Name (ARN) for a routing control state entry.+--+-- 'routingControlState', 'updateRoutingControlStateEntry_routingControlState' - The routing control state in a set of routing control state entries.+newUpdateRoutingControlStateEntry ::+ -- | 'routingControlArn'+ Prelude.Text ->+ -- | 'routingControlState'+ RoutingControlState ->+ UpdateRoutingControlStateEntry+newUpdateRoutingControlStateEntry+ pRoutingControlArn_+ pRoutingControlState_ =+ UpdateRoutingControlStateEntry'+ { routingControlArn =+ pRoutingControlArn_,+ routingControlState = pRoutingControlState_+ }++-- | The Amazon Resource Name (ARN) for a routing control state entry.+updateRoutingControlStateEntry_routingControlArn :: Lens.Lens' UpdateRoutingControlStateEntry Prelude.Text+updateRoutingControlStateEntry_routingControlArn = Lens.lens (\UpdateRoutingControlStateEntry' {routingControlArn} -> routingControlArn) (\s@UpdateRoutingControlStateEntry' {} a -> s {routingControlArn = a} :: UpdateRoutingControlStateEntry)++-- | The routing control state in a set of routing control state entries.+updateRoutingControlStateEntry_routingControlState :: Lens.Lens' UpdateRoutingControlStateEntry RoutingControlState+updateRoutingControlStateEntry_routingControlState = Lens.lens (\UpdateRoutingControlStateEntry' {routingControlState} -> routingControlState) (\s@UpdateRoutingControlStateEntry' {} a -> s {routingControlState = a} :: UpdateRoutingControlStateEntry)++instance+ Prelude.Hashable+ UpdateRoutingControlStateEntry+ where+ hashWithSalt+ _salt+ UpdateRoutingControlStateEntry' {..} =+ _salt+ `Prelude.hashWithSalt` routingControlArn+ `Prelude.hashWithSalt` routingControlState++instance+ Prelude.NFData+ UpdateRoutingControlStateEntry+ where+ rnf UpdateRoutingControlStateEntry' {..} =+ Prelude.rnf routingControlArn+ `Prelude.seq` Prelude.rnf routingControlState++instance Data.ToJSON UpdateRoutingControlStateEntry where+ toJSON UpdateRoutingControlStateEntry' {..} =+ Data.object+ ( Prelude.catMaybes+ [ Prelude.Just+ ("RoutingControlArn" Data..= routingControlArn),+ Prelude.Just+ ("RoutingControlState" Data..= routingControlState)+ ]+ )
+ gen/Amazonka/Route53RecoveryCluster/UpdateRoutingControlState.hs view
@@ -0,0 +1,253 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.Route53RecoveryCluster.UpdateRoutingControlState+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Set the state of the routing control to reroute traffic. You can set the+-- value to be On or Off. When the state is On, traffic flows to a cell.+-- When the state is Off, traffic does not flow.+--+-- With Route 53 ARC, you can add safety rules for routing controls, which+-- are safeguards for routing control state updates that help prevent+-- unexpected outcomes, like fail open traffic routing. However, there are+-- scenarios when you might want to bypass the routing control safeguards+-- that are enforced with safety rules that you\'ve configured. For+-- example, you might want to fail over quickly for disaster recovery, and+-- one or more safety rules might be unexpectedly preventing you from+-- updating a routing control state to reroute traffic. In a \"break+-- glass\" scenario like this, you can override one or more safety rules to+-- change a routing control state and fail over your application.+--+-- The @SafetyRulesToOverride@ property enables you override one or more+-- safety rules and update routing control states. For more information,+-- see+-- <https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.override-safety-rule.html Override safety rules to reroute traffic>+-- in the Amazon Route 53 Application Recovery Controller Developer Guide.+--+-- /You must specify Regional endpoints when you work with API cluster+-- operations to get or update routing control states in Route 53 ARC./+--+-- To see a code example for getting a routing control state, including+-- accessing Regional cluster endpoints in sequence, see+-- <https://docs.aws.amazon.com/r53recovery/latest/dg/service_code_examples_actions.html API examples>+-- in the Amazon Route 53 Application Recovery Controller Developer Guide.+--+-- - <https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.update.html Viewing and updating routing control states>+--+-- - <https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.html Working with routing controls overall>+module Amazonka.Route53RecoveryCluster.UpdateRoutingControlState+ ( -- * Creating a Request+ UpdateRoutingControlState (..),+ newUpdateRoutingControlState,++ -- * Request Lenses+ updateRoutingControlState_safetyRulesToOverride,+ updateRoutingControlState_routingControlArn,+ updateRoutingControlState_routingControlState,++ -- * Destructuring the Response+ UpdateRoutingControlStateResponse (..),+ newUpdateRoutingControlStateResponse,++ -- * Response Lenses+ updateRoutingControlStateResponse_httpStatus,+ )+where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response+import Amazonka.Route53RecoveryCluster.Types++-- | /See:/ 'newUpdateRoutingControlState' smart constructor.+data UpdateRoutingControlState = UpdateRoutingControlState'+ { -- | The Amazon Resource Names (ARNs) for the safety rules that you want to+ -- override when you\'re updating the state of a routing control. You can+ -- override one safety rule or multiple safety rules by including one or+ -- more ARNs, separated by commas.+ --+ -- For more information, see+ -- <https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.override-safety-rule.html Override safety rules to reroute traffic>+ -- in the Amazon Route 53 Application Recovery Controller Developer Guide.+ safetyRulesToOverride :: Prelude.Maybe [Prelude.Text],+ -- | The Amazon Resource Name (ARN) for the routing control that you want to+ -- update the state for.+ routingControlArn :: Prelude.Text,+ -- | The state of the routing control. You can set the value to be On or Off.+ routingControlState :: RoutingControlState+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'UpdateRoutingControlState' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'safetyRulesToOverride', 'updateRoutingControlState_safetyRulesToOverride' - The Amazon Resource Names (ARNs) for the safety rules that you want to+-- override when you\'re updating the state of a routing control. You can+-- override one safety rule or multiple safety rules by including one or+-- more ARNs, separated by commas.+--+-- For more information, see+-- <https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.override-safety-rule.html Override safety rules to reroute traffic>+-- in the Amazon Route 53 Application Recovery Controller Developer Guide.+--+-- 'routingControlArn', 'updateRoutingControlState_routingControlArn' - The Amazon Resource Name (ARN) for the routing control that you want to+-- update the state for.+--+-- 'routingControlState', 'updateRoutingControlState_routingControlState' - The state of the routing control. You can set the value to be On or Off.+newUpdateRoutingControlState ::+ -- | 'routingControlArn'+ Prelude.Text ->+ -- | 'routingControlState'+ RoutingControlState ->+ UpdateRoutingControlState+newUpdateRoutingControlState+ pRoutingControlArn_+ pRoutingControlState_ =+ UpdateRoutingControlState'+ { safetyRulesToOverride =+ Prelude.Nothing,+ routingControlArn = pRoutingControlArn_,+ routingControlState = pRoutingControlState_+ }++-- | The Amazon Resource Names (ARNs) for the safety rules that you want to+-- override when you\'re updating the state of a routing control. You can+-- override one safety rule or multiple safety rules by including one or+-- more ARNs, separated by commas.+--+-- For more information, see+-- <https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.override-safety-rule.html Override safety rules to reroute traffic>+-- in the Amazon Route 53 Application Recovery Controller Developer Guide.+updateRoutingControlState_safetyRulesToOverride :: Lens.Lens' UpdateRoutingControlState (Prelude.Maybe [Prelude.Text])+updateRoutingControlState_safetyRulesToOverride = Lens.lens (\UpdateRoutingControlState' {safetyRulesToOverride} -> safetyRulesToOverride) (\s@UpdateRoutingControlState' {} a -> s {safetyRulesToOverride = a} :: UpdateRoutingControlState) Prelude.. Lens.mapping Lens.coerced++-- | The Amazon Resource Name (ARN) for the routing control that you want to+-- update the state for.+updateRoutingControlState_routingControlArn :: Lens.Lens' UpdateRoutingControlState Prelude.Text+updateRoutingControlState_routingControlArn = Lens.lens (\UpdateRoutingControlState' {routingControlArn} -> routingControlArn) (\s@UpdateRoutingControlState' {} a -> s {routingControlArn = a} :: UpdateRoutingControlState)++-- | The state of the routing control. You can set the value to be On or Off.+updateRoutingControlState_routingControlState :: Lens.Lens' UpdateRoutingControlState RoutingControlState+updateRoutingControlState_routingControlState = Lens.lens (\UpdateRoutingControlState' {routingControlState} -> routingControlState) (\s@UpdateRoutingControlState' {} a -> s {routingControlState = a} :: UpdateRoutingControlState)++instance Core.AWSRequest UpdateRoutingControlState where+ type+ AWSResponse UpdateRoutingControlState =+ UpdateRoutingControlStateResponse+ request overrides =+ Request.postJSON (overrides defaultService)+ response =+ Response.receiveEmpty+ ( \s h x ->+ UpdateRoutingControlStateResponse'+ Prelude.<$> (Prelude.pure (Prelude.fromEnum s))+ )++instance Prelude.Hashable UpdateRoutingControlState where+ hashWithSalt _salt UpdateRoutingControlState' {..} =+ _salt+ `Prelude.hashWithSalt` safetyRulesToOverride+ `Prelude.hashWithSalt` routingControlArn+ `Prelude.hashWithSalt` routingControlState++instance Prelude.NFData UpdateRoutingControlState where+ rnf UpdateRoutingControlState' {..} =+ Prelude.rnf safetyRulesToOverride+ `Prelude.seq` Prelude.rnf routingControlArn+ `Prelude.seq` Prelude.rnf routingControlState++instance Data.ToHeaders UpdateRoutingControlState where+ toHeaders =+ Prelude.const+ ( Prelude.mconcat+ [ "X-Amz-Target"+ Data.=# ( "ToggleCustomerAPI.UpdateRoutingControlState" ::+ Prelude.ByteString+ ),+ "Content-Type"+ Data.=# ( "application/x-amz-json-1.0" ::+ Prelude.ByteString+ )+ ]+ )++instance Data.ToJSON UpdateRoutingControlState where+ toJSON UpdateRoutingControlState' {..} =+ Data.object+ ( Prelude.catMaybes+ [ ("SafetyRulesToOverride" Data..=)+ Prelude.<$> safetyRulesToOverride,+ Prelude.Just+ ("RoutingControlArn" Data..= routingControlArn),+ Prelude.Just+ ("RoutingControlState" Data..= routingControlState)+ ]+ )++instance Data.ToPath UpdateRoutingControlState where+ toPath = Prelude.const "/"++instance Data.ToQuery UpdateRoutingControlState where+ toQuery = Prelude.const Prelude.mempty++-- | /See:/ 'newUpdateRoutingControlStateResponse' smart constructor.+data UpdateRoutingControlStateResponse = UpdateRoutingControlStateResponse'+ { -- | The response's http status code.+ httpStatus :: Prelude.Int+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'UpdateRoutingControlStateResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'httpStatus', 'updateRoutingControlStateResponse_httpStatus' - The response's http status code.+newUpdateRoutingControlStateResponse ::+ -- | 'httpStatus'+ Prelude.Int ->+ UpdateRoutingControlStateResponse+newUpdateRoutingControlStateResponse pHttpStatus_ =+ UpdateRoutingControlStateResponse'+ { httpStatus =+ pHttpStatus_+ }++-- | The response's http status code.+updateRoutingControlStateResponse_httpStatus :: Lens.Lens' UpdateRoutingControlStateResponse Prelude.Int+updateRoutingControlStateResponse_httpStatus = Lens.lens (\UpdateRoutingControlStateResponse' {httpStatus} -> httpStatus) (\s@UpdateRoutingControlStateResponse' {} a -> s {httpStatus = a} :: UpdateRoutingControlStateResponse)++instance+ Prelude.NFData+ UpdateRoutingControlStateResponse+ where+ rnf UpdateRoutingControlStateResponse' {..} =+ Prelude.rnf httpStatus
+ gen/Amazonka/Route53RecoveryCluster/UpdateRoutingControlStates.hs view
@@ -0,0 +1,233 @@+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.Route53RecoveryCluster.UpdateRoutingControlStates+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Set multiple routing control states. You can set the value for each+-- state to be On or Off. When the state is On, traffic flows to a cell.+-- When it\'s Off, traffic does not flow.+--+-- With Route 53 ARC, you can add safety rules for routing controls, which+-- are safeguards for routing control state updates that help prevent+-- unexpected outcomes, like fail open traffic routing. However, there are+-- scenarios when you might want to bypass the routing control safeguards+-- that are enforced with safety rules that you\'ve configured. For+-- example, you might want to fail over quickly for disaster recovery, and+-- one or more safety rules might be unexpectedly preventing you from+-- updating a routing control state to reroute traffic. In a \"break+-- glass\" scenario like this, you can override one or more safety rules to+-- change a routing control state and fail over your application.+--+-- The @SafetyRulesToOverride@ property enables you override one or more+-- safety rules and update routing control states. For more information,+-- see+-- <https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.override-safety-rule.html Override safety rules to reroute traffic>+-- in the Amazon Route 53 Application Recovery Controller Developer Guide.+--+-- /You must specify Regional endpoints when you work with API cluster+-- operations to get or update routing control states in Route 53 ARC./+--+-- To see a code example for getting a routing control state, including+-- accessing Regional cluster endpoints in sequence, see+-- <https://docs.aws.amazon.com/r53recovery/latest/dg/service_code_examples_actions.html API examples>+-- in the Amazon Route 53 Application Recovery Controller Developer Guide.+--+-- - <https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.update.html Viewing and updating routing control states>+--+-- - <https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.html Working with routing controls overall>+module Amazonka.Route53RecoveryCluster.UpdateRoutingControlStates+ ( -- * Creating a Request+ UpdateRoutingControlStates (..),+ newUpdateRoutingControlStates,++ -- * Request Lenses+ updateRoutingControlStates_safetyRulesToOverride,+ updateRoutingControlStates_updateRoutingControlStateEntries,++ -- * Destructuring the Response+ UpdateRoutingControlStatesResponse (..),+ newUpdateRoutingControlStatesResponse,++ -- * Response Lenses+ updateRoutingControlStatesResponse_httpStatus,+ )+where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Request as Request+import qualified Amazonka.Response as Response+import Amazonka.Route53RecoveryCluster.Types++-- | /See:/ 'newUpdateRoutingControlStates' smart constructor.+data UpdateRoutingControlStates = UpdateRoutingControlStates'+ { -- | The Amazon Resource Names (ARNs) for the safety rules that you want to+ -- override when you\'re updating routing control states. You can override+ -- one safety rule or multiple safety rules by including one or more ARNs,+ -- separated by commas.+ --+ -- For more information, see+ -- <https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.override-safety-rule.html Override safety rules to reroute traffic>+ -- in the Amazon Route 53 Application Recovery Controller Developer Guide.+ safetyRulesToOverride :: Prelude.Maybe [Prelude.Text],+ -- | A set of routing control entries that you want to update.+ updateRoutingControlStateEntries :: [UpdateRoutingControlStateEntry]+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'UpdateRoutingControlStates' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'safetyRulesToOverride', 'updateRoutingControlStates_safetyRulesToOverride' - The Amazon Resource Names (ARNs) for the safety rules that you want to+-- override when you\'re updating routing control states. You can override+-- one safety rule or multiple safety rules by including one or more ARNs,+-- separated by commas.+--+-- For more information, see+-- <https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.override-safety-rule.html Override safety rules to reroute traffic>+-- in the Amazon Route 53 Application Recovery Controller Developer Guide.+--+-- 'updateRoutingControlStateEntries', 'updateRoutingControlStates_updateRoutingControlStateEntries' - A set of routing control entries that you want to update.+newUpdateRoutingControlStates ::+ UpdateRoutingControlStates+newUpdateRoutingControlStates =+ UpdateRoutingControlStates'+ { safetyRulesToOverride =+ Prelude.Nothing,+ updateRoutingControlStateEntries =+ Prelude.mempty+ }++-- | The Amazon Resource Names (ARNs) for the safety rules that you want to+-- override when you\'re updating routing control states. You can override+-- one safety rule or multiple safety rules by including one or more ARNs,+-- separated by commas.+--+-- For more information, see+-- <https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.override-safety-rule.html Override safety rules to reroute traffic>+-- in the Amazon Route 53 Application Recovery Controller Developer Guide.+updateRoutingControlStates_safetyRulesToOverride :: Lens.Lens' UpdateRoutingControlStates (Prelude.Maybe [Prelude.Text])+updateRoutingControlStates_safetyRulesToOverride = Lens.lens (\UpdateRoutingControlStates' {safetyRulesToOverride} -> safetyRulesToOverride) (\s@UpdateRoutingControlStates' {} a -> s {safetyRulesToOverride = a} :: UpdateRoutingControlStates) Prelude.. Lens.mapping Lens.coerced++-- | A set of routing control entries that you want to update.+updateRoutingControlStates_updateRoutingControlStateEntries :: Lens.Lens' UpdateRoutingControlStates [UpdateRoutingControlStateEntry]+updateRoutingControlStates_updateRoutingControlStateEntries = Lens.lens (\UpdateRoutingControlStates' {updateRoutingControlStateEntries} -> updateRoutingControlStateEntries) (\s@UpdateRoutingControlStates' {} a -> s {updateRoutingControlStateEntries = a} :: UpdateRoutingControlStates) Prelude.. Lens.coerced++instance Core.AWSRequest UpdateRoutingControlStates where+ type+ AWSResponse UpdateRoutingControlStates =+ UpdateRoutingControlStatesResponse+ request overrides =+ Request.postJSON (overrides defaultService)+ response =+ Response.receiveEmpty+ ( \s h x ->+ UpdateRoutingControlStatesResponse'+ Prelude.<$> (Prelude.pure (Prelude.fromEnum s))+ )++instance Prelude.Hashable UpdateRoutingControlStates where+ hashWithSalt _salt UpdateRoutingControlStates' {..} =+ _salt+ `Prelude.hashWithSalt` safetyRulesToOverride+ `Prelude.hashWithSalt` updateRoutingControlStateEntries++instance Prelude.NFData UpdateRoutingControlStates where+ rnf UpdateRoutingControlStates' {..} =+ Prelude.rnf safetyRulesToOverride+ `Prelude.seq` Prelude.rnf updateRoutingControlStateEntries++instance Data.ToHeaders UpdateRoutingControlStates where+ toHeaders =+ Prelude.const+ ( Prelude.mconcat+ [ "X-Amz-Target"+ Data.=# ( "ToggleCustomerAPI.UpdateRoutingControlStates" ::+ Prelude.ByteString+ ),+ "Content-Type"+ Data.=# ( "application/x-amz-json-1.0" ::+ Prelude.ByteString+ )+ ]+ )++instance Data.ToJSON UpdateRoutingControlStates where+ toJSON UpdateRoutingControlStates' {..} =+ Data.object+ ( Prelude.catMaybes+ [ ("SafetyRulesToOverride" Data..=)+ Prelude.<$> safetyRulesToOverride,+ Prelude.Just+ ( "UpdateRoutingControlStateEntries"+ Data..= updateRoutingControlStateEntries+ )+ ]+ )++instance Data.ToPath UpdateRoutingControlStates where+ toPath = Prelude.const "/"++instance Data.ToQuery UpdateRoutingControlStates where+ toQuery = Prelude.const Prelude.mempty++-- | /See:/ 'newUpdateRoutingControlStatesResponse' smart constructor.+data UpdateRoutingControlStatesResponse = UpdateRoutingControlStatesResponse'+ { -- | The response's http status code.+ httpStatus :: Prelude.Int+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'UpdateRoutingControlStatesResponse' with all optional fields omitted.+--+-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.+--+-- The following record fields are available, with the corresponding lenses provided+-- for backwards compatibility:+--+-- 'httpStatus', 'updateRoutingControlStatesResponse_httpStatus' - The response's http status code.+newUpdateRoutingControlStatesResponse ::+ -- | 'httpStatus'+ Prelude.Int ->+ UpdateRoutingControlStatesResponse+newUpdateRoutingControlStatesResponse pHttpStatus_ =+ UpdateRoutingControlStatesResponse'+ { httpStatus =+ pHttpStatus_+ }++-- | The response's http status code.+updateRoutingControlStatesResponse_httpStatus :: Lens.Lens' UpdateRoutingControlStatesResponse Prelude.Int+updateRoutingControlStatesResponse_httpStatus = Lens.lens (\UpdateRoutingControlStatesResponse' {httpStatus} -> httpStatus) (\s@UpdateRoutingControlStatesResponse' {} a -> s {httpStatus = a} :: UpdateRoutingControlStatesResponse)++instance+ Prelude.NFData+ UpdateRoutingControlStatesResponse+ where+ rnf UpdateRoutingControlStatesResponse' {..} =+ Prelude.rnf httpStatus
+ gen/Amazonka/Route53RecoveryCluster/Waiters.hs view
@@ -0,0 +1,24 @@+{-# LANGUAGE DisambiguateRecordFields #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Amazonka.Route53RecoveryCluster.Waiters+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Amazonka.Route53RecoveryCluster.Waiters where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude+import Amazonka.Route53RecoveryCluster.Lens+import Amazonka.Route53RecoveryCluster.Types
+ src/.gitkeep view
+ test/Main.hs view
@@ -0,0 +1,23 @@+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- |+-- Module : Main+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Main (main) where++import Test.Amazonka.Route53RecoveryCluster+import Test.Amazonka.Route53RecoveryCluster.Internal+import Test.Tasty++main :: IO ()+main =+ defaultMain $+ testGroup+ "Route53RecoveryCluster"+ [ testGroup "tests" tests,+ testGroup "fixtures" fixtures+ ]
+ test/Test/Amazonka/Gen/Route53RecoveryCluster.hs view
@@ -0,0 +1,118 @@+{-# OPTIONS_GHC -fno-warn-orphans #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Test.Amazonka.Gen.Route53RecoveryCluster+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Test.Amazonka.Gen.Route53RecoveryCluster where++import Amazonka.Route53RecoveryCluster+import qualified Data.Proxy as Proxy+import Test.Amazonka.Fixture+import Test.Amazonka.Prelude+import Test.Amazonka.Route53RecoveryCluster.Internal+import Test.Tasty++-- Auto-generated: the actual test selection needs to be manually placed into+-- the top-level so that real test data can be incrementally added.+--+-- This commented snippet is what the entire set should look like:++-- fixtures :: TestTree+-- fixtures =+-- [ testGroup "request"+-- [ requestGetRoutingControlState $+-- newGetRoutingControlState+--+-- , requestListRoutingControls $+-- newListRoutingControls+--+-- , requestUpdateRoutingControlState $+-- newUpdateRoutingControlState+--+-- , requestUpdateRoutingControlStates $+-- newUpdateRoutingControlStates+--+-- ]++-- , testGroup "response"+-- [ responseGetRoutingControlState $+-- newGetRoutingControlStateResponse+--+-- , responseListRoutingControls $+-- newListRoutingControlsResponse+--+-- , responseUpdateRoutingControlState $+-- newUpdateRoutingControlStateResponse+--+-- , responseUpdateRoutingControlStates $+-- newUpdateRoutingControlStatesResponse+--+-- ]+-- ]++-- Requests++requestGetRoutingControlState :: GetRoutingControlState -> TestTree+requestGetRoutingControlState =+ req+ "GetRoutingControlState"+ "fixture/GetRoutingControlState.yaml"++requestListRoutingControls :: ListRoutingControls -> TestTree+requestListRoutingControls =+ req+ "ListRoutingControls"+ "fixture/ListRoutingControls.yaml"++requestUpdateRoutingControlState :: UpdateRoutingControlState -> TestTree+requestUpdateRoutingControlState =+ req+ "UpdateRoutingControlState"+ "fixture/UpdateRoutingControlState.yaml"++requestUpdateRoutingControlStates :: UpdateRoutingControlStates -> TestTree+requestUpdateRoutingControlStates =+ req+ "UpdateRoutingControlStates"+ "fixture/UpdateRoutingControlStates.yaml"++-- Responses++responseGetRoutingControlState :: GetRoutingControlStateResponse -> TestTree+responseGetRoutingControlState =+ res+ "GetRoutingControlStateResponse"+ "fixture/GetRoutingControlStateResponse.proto"+ defaultService+ (Proxy.Proxy :: Proxy.Proxy GetRoutingControlState)++responseListRoutingControls :: ListRoutingControlsResponse -> TestTree+responseListRoutingControls =+ res+ "ListRoutingControlsResponse"+ "fixture/ListRoutingControlsResponse.proto"+ defaultService+ (Proxy.Proxy :: Proxy.Proxy ListRoutingControls)++responseUpdateRoutingControlState :: UpdateRoutingControlStateResponse -> TestTree+responseUpdateRoutingControlState =+ res+ "UpdateRoutingControlStateResponse"+ "fixture/UpdateRoutingControlStateResponse.proto"+ defaultService+ (Proxy.Proxy :: Proxy.Proxy UpdateRoutingControlState)++responseUpdateRoutingControlStates :: UpdateRoutingControlStatesResponse -> TestTree+responseUpdateRoutingControlStates =+ res+ "UpdateRoutingControlStatesResponse"+ "fixture/UpdateRoutingControlStatesResponse.proto"+ defaultService+ (Proxy.Proxy :: Proxy.Proxy UpdateRoutingControlStates)
+ test/Test/Amazonka/Route53RecoveryCluster.hs view
@@ -0,0 +1,20 @@+-- |+-- Module : Test.Amazonka.Route53RecoveryCluster+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Test.Amazonka.Route53RecoveryCluster+ ( tests,+ fixtures,+ )+where++import Test.Tasty (TestTree)++tests :: [TestTree]+tests = []++fixtures :: [TestTree]+fixtures = []
+ test/Test/Amazonka/Route53RecoveryCluster/Internal.hs view
@@ -0,0 +1,8 @@+-- |+-- Module : Test.Amazonka.Route53RecoveryCluster.Internal+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Test.Amazonka.Route53RecoveryCluster.Internal where