amazonka-sms-voice (empty) → 2.0
raw patch · 46 files changed
+4053/−0 lines, 46 filesdep +amazonka-coredep +amazonka-sms-voicedep +amazonka-test
Dependencies added: amazonka-core, amazonka-sms-voice, amazonka-test, base, bytestring, case-insensitive, tasty, tasty-hunit, text, time, unordered-containers
Files
- LICENSE +367/−0
- README.md +44/−0
- amazonka-sms-voice.cabal +101/−0
- fixture/CreateConfigurationSet.yaml +10/−0
- fixture/CreateConfigurationSetEventDestination.yaml +10/−0
- fixture/CreateConfigurationSetEventDestinationResponse.proto +0/−0
- fixture/CreateConfigurationSetResponse.proto +0/−0
- fixture/DeleteConfigurationSet.yaml +10/−0
- fixture/DeleteConfigurationSetEventDestination.yaml +10/−0
- fixture/DeleteConfigurationSetEventDestinationResponse.proto +0/−0
- fixture/DeleteConfigurationSetResponse.proto +0/−0
- fixture/GetConfigurationSetEventDestinations.yaml +10/−0
- fixture/GetConfigurationSetEventDestinationsResponse.proto +0/−0
- fixture/ListConfigurationSets.yaml +10/−0
- fixture/ListConfigurationSetsResponse.proto +0/−0
- fixture/SendVoiceMessage.yaml +10/−0
- fixture/SendVoiceMessageResponse.proto +0/−0
- fixture/UpdateConfigurationSetEventDestination.yaml +10/−0
- fixture/UpdateConfigurationSetEventDestinationResponse.proto +0/−0
- gen/Amazonka/SmsVoice.hs +174/−0
- gen/Amazonka/SmsVoice/CreateConfigurationSet.hs +166/−0
- gen/Amazonka/SmsVoice/CreateConfigurationSetEventDestination.hs +226/−0
- gen/Amazonka/SmsVoice/DeleteConfigurationSet.hs +159/−0
- gen/Amazonka/SmsVoice/DeleteConfigurationSetEventDestination.hs +202/−0
- gen/Amazonka/SmsVoice/GetConfigurationSetEventDestinations.hs +197/−0
- gen/Amazonka/SmsVoice/Lens.hs +127/−0
- gen/Amazonka/SmsVoice/ListConfigurationSets.hs +207/−0
- gen/Amazonka/SmsVoice/SendVoiceMessage.hs +241/−0
- gen/Amazonka/SmsVoice/Types.hs +229/−0
- gen/Amazonka/SmsVoice/Types/CallInstructionsMessageType.hs +74/−0
- gen/Amazonka/SmsVoice/Types/CloudWatchLogsDestination.hs +104/−0
- gen/Amazonka/SmsVoice/Types/EventDestination.hs +142/−0
- gen/Amazonka/SmsVoice/Types/EventDestinationDefinition.hs +130/−0
- gen/Amazonka/SmsVoice/Types/EventType.hs +97/−0
- gen/Amazonka/SmsVoice/Types/KinesisFirehoseDestination.hs +102/−0
- gen/Amazonka/SmsVoice/Types/PlainTextMessageType.hs +102/−0
- gen/Amazonka/SmsVoice/Types/SSMLMessageType.hs +101/−0
- gen/Amazonka/SmsVoice/Types/SnsDestination.hs +78/−0
- gen/Amazonka/SmsVoice/Types/VoiceMessageContent.hs +99/−0
- gen/Amazonka/SmsVoice/UpdateConfigurationSetEventDestination.hs +231/−0
- gen/Amazonka/SmsVoice/Waiters.hs +24/−0
- src/.gitkeep +0/−0
- test/Main.hs +23/−0
- test/Test/Amazonka/Gen/SmsVoice.hs +198/−0
- test/Test/Amazonka/SmsVoice.hs +20/−0
- test/Test/Amazonka/SmsVoice/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 Pinpoint SMS and Voice Service SDK++* [Version](#version)+* [Description](#description)+* [Contribute](#contribute)+* [Licence](#licence)+++## Version+ +`2.0` - Derived from API version @2018-09-05@ of the AWS service descriptions, licensed under Apache 2.0.++## Description++Documentation is available via [Hackage](http://hackage.haskell.org/package/amazonka-sms-voice)+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.SmsVoice](http://hackage.haskell.org/package/amazonka-sms-voice/docs/Amazonka-SmsVoice.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-sms-voice` 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-sms-voice.cabal view
@@ -0,0 +1,101 @@+cabal-version: 2.2+name: amazonka-sms-voice+version: 2.0+synopsis: Amazon Pinpoint SMS and Voice Service SDK.+homepage: https://github.com/brendanhay/amazonka+bug-reports: https://github.com/brendanhay/amazonka/issues+license: MPL-2.0+license-file: LICENSE+author: Brendan Hay+maintainer:+ Brendan Hay <brendan.g.hay+amazonka@gmail.com>, 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 @2018-09-05@ 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.SmsVoice.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.SmsVoice" 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-sms-voice++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.SmsVoice+ Amazonka.SmsVoice.CreateConfigurationSet+ Amazonka.SmsVoice.CreateConfigurationSetEventDestination+ Amazonka.SmsVoice.DeleteConfigurationSet+ Amazonka.SmsVoice.DeleteConfigurationSetEventDestination+ Amazonka.SmsVoice.GetConfigurationSetEventDestinations+ Amazonka.SmsVoice.Lens+ Amazonka.SmsVoice.ListConfigurationSets+ Amazonka.SmsVoice.SendVoiceMessage+ Amazonka.SmsVoice.Types+ Amazonka.SmsVoice.Types.CallInstructionsMessageType+ Amazonka.SmsVoice.Types.CloudWatchLogsDestination+ Amazonka.SmsVoice.Types.EventDestination+ Amazonka.SmsVoice.Types.EventDestinationDefinition+ Amazonka.SmsVoice.Types.EventType+ Amazonka.SmsVoice.Types.KinesisFirehoseDestination+ Amazonka.SmsVoice.Types.PlainTextMessageType+ Amazonka.SmsVoice.Types.SnsDestination+ Amazonka.SmsVoice.Types.SSMLMessageType+ Amazonka.SmsVoice.Types.VoiceMessageContent+ Amazonka.SmsVoice.UpdateConfigurationSetEventDestination+ Amazonka.SmsVoice.Waiters++ build-depends:+ , amazonka-core >=2.0 && <2.1+ , base >=4.12 && <5++test-suite amazonka-sms-voice-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.SmsVoice+ Test.Amazonka.SmsVoice+ Test.Amazonka.SmsVoice.Internal++ build-depends:+ , amazonka-core >=2.0 && <2.1+ , amazonka-sms-voice+ , amazonka-test >=2.0 && <2.1+ , base+ , bytestring+ , case-insensitive+ , tasty+ , tasty-hunit+ , text+ , time+ , unordered-containers
+ fixture/CreateConfigurationSet.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/sms-voice.pinpoint/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: sms-voice.pinpoint.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/CreateConfigurationSetEventDestination.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/sms-voice.pinpoint/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: sms-voice.pinpoint.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/CreateConfigurationSetEventDestinationResponse.proto view
+ fixture/CreateConfigurationSetResponse.proto view
+ fixture/DeleteConfigurationSet.yaml view
@@ -0,0 +1,10 @@+---+method: DELETE+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/sms-voice.pinpoint/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: sms-voice.pinpoint.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/DeleteConfigurationSetEventDestination.yaml view
@@ -0,0 +1,10 @@+---+method: DELETE+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/sms-voice.pinpoint/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: sms-voice.pinpoint.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/DeleteConfigurationSetEventDestinationResponse.proto view
+ fixture/DeleteConfigurationSetResponse.proto view
+ fixture/GetConfigurationSetEventDestinations.yaml view
@@ -0,0 +1,10 @@+---+method: GET+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/sms-voice.pinpoint/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: sms-voice.pinpoint.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/GetConfigurationSetEventDestinationsResponse.proto view
+ fixture/ListConfigurationSets.yaml view
@@ -0,0 +1,10 @@+---+method: GET+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/sms-voice.pinpoint/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: sms-voice.pinpoint.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/ListConfigurationSetsResponse.proto view
+ fixture/SendVoiceMessage.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/sms-voice.pinpoint/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: sms-voice.pinpoint.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/SendVoiceMessageResponse.proto view
+ fixture/UpdateConfigurationSetEventDestination.yaml view
@@ -0,0 +1,10 @@+---+method: PUT+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/sms-voice.pinpoint/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: sms-voice.pinpoint.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/UpdateConfigurationSetEventDestinationResponse.proto view
+ gen/Amazonka/SmsVoice.hs view
@@ -0,0 +1,174 @@+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- |+-- Module : Amazonka.SmsVoice+-- 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 @2018-09-05@ of the AWS service descriptions, licensed under Apache 2.0.+--+-- Pinpoint SMS and Voice Messaging public facing APIs+module Amazonka.SmsVoice+ ( -- * Service Configuration+ defaultService,++ -- * Errors+ -- $errors++ -- ** AlreadyExistsException+ _AlreadyExistsException,++ -- ** BadRequestException+ _BadRequestException,++ -- ** InternalServiceErrorException+ _InternalServiceErrorException,++ -- ** LimitExceededException+ _LimitExceededException,++ -- ** NotFoundException+ _NotFoundException,++ -- ** TooManyRequestsException+ _TooManyRequestsException,++ -- * Waiters+ -- $waiters++ -- * Operations+ -- $operations++ -- ** CreateConfigurationSet+ CreateConfigurationSet (CreateConfigurationSet'),+ newCreateConfigurationSet,+ CreateConfigurationSetResponse (CreateConfigurationSetResponse'),+ newCreateConfigurationSetResponse,++ -- ** CreateConfigurationSetEventDestination+ CreateConfigurationSetEventDestination (CreateConfigurationSetEventDestination'),+ newCreateConfigurationSetEventDestination,+ CreateConfigurationSetEventDestinationResponse (CreateConfigurationSetEventDestinationResponse'),+ newCreateConfigurationSetEventDestinationResponse,++ -- ** DeleteConfigurationSet+ DeleteConfigurationSet (DeleteConfigurationSet'),+ newDeleteConfigurationSet,+ DeleteConfigurationSetResponse (DeleteConfigurationSetResponse'),+ newDeleteConfigurationSetResponse,++ -- ** DeleteConfigurationSetEventDestination+ DeleteConfigurationSetEventDestination (DeleteConfigurationSetEventDestination'),+ newDeleteConfigurationSetEventDestination,+ DeleteConfigurationSetEventDestinationResponse (DeleteConfigurationSetEventDestinationResponse'),+ newDeleteConfigurationSetEventDestinationResponse,++ -- ** GetConfigurationSetEventDestinations+ GetConfigurationSetEventDestinations (GetConfigurationSetEventDestinations'),+ newGetConfigurationSetEventDestinations,+ GetConfigurationSetEventDestinationsResponse (GetConfigurationSetEventDestinationsResponse'),+ newGetConfigurationSetEventDestinationsResponse,++ -- ** ListConfigurationSets+ ListConfigurationSets (ListConfigurationSets'),+ newListConfigurationSets,+ ListConfigurationSetsResponse (ListConfigurationSetsResponse'),+ newListConfigurationSetsResponse,++ -- ** SendVoiceMessage+ SendVoiceMessage (SendVoiceMessage'),+ newSendVoiceMessage,+ SendVoiceMessageResponse (SendVoiceMessageResponse'),+ newSendVoiceMessageResponse,++ -- ** UpdateConfigurationSetEventDestination+ UpdateConfigurationSetEventDestination (UpdateConfigurationSetEventDestination'),+ newUpdateConfigurationSetEventDestination,+ UpdateConfigurationSetEventDestinationResponse (UpdateConfigurationSetEventDestinationResponse'),+ newUpdateConfigurationSetEventDestinationResponse,++ -- * Types++ -- ** EventType+ EventType (..),++ -- ** CallInstructionsMessageType+ CallInstructionsMessageType (CallInstructionsMessageType'),+ newCallInstructionsMessageType,++ -- ** CloudWatchLogsDestination+ CloudWatchLogsDestination (CloudWatchLogsDestination'),+ newCloudWatchLogsDestination,++ -- ** EventDestination+ EventDestination (EventDestination'),+ newEventDestination,++ -- ** EventDestinationDefinition+ EventDestinationDefinition (EventDestinationDefinition'),+ newEventDestinationDefinition,++ -- ** KinesisFirehoseDestination+ KinesisFirehoseDestination (KinesisFirehoseDestination'),+ newKinesisFirehoseDestination,++ -- ** PlainTextMessageType+ PlainTextMessageType (PlainTextMessageType'),+ newPlainTextMessageType,++ -- ** SSMLMessageType+ SSMLMessageType (SSMLMessageType'),+ newSSMLMessageType,++ -- ** SnsDestination+ SnsDestination (SnsDestination'),+ newSnsDestination,++ -- ** VoiceMessageContent+ VoiceMessageContent (VoiceMessageContent'),+ newVoiceMessageContent,+ )+where++import Amazonka.SmsVoice.CreateConfigurationSet+import Amazonka.SmsVoice.CreateConfigurationSetEventDestination+import Amazonka.SmsVoice.DeleteConfigurationSet+import Amazonka.SmsVoice.DeleteConfigurationSetEventDestination+import Amazonka.SmsVoice.GetConfigurationSetEventDestinations+import Amazonka.SmsVoice.Lens+import Amazonka.SmsVoice.ListConfigurationSets+import Amazonka.SmsVoice.SendVoiceMessage+import Amazonka.SmsVoice.Types+import Amazonka.SmsVoice.UpdateConfigurationSetEventDestination+import Amazonka.SmsVoice.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 'SmsVoice'.++-- $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/SmsVoice/CreateConfigurationSet.hs view
@@ -0,0 +1,166 @@+{-# 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.SmsVoice.CreateConfigurationSet+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Create a new configuration set. After you create the configuration set,+-- you can add one or more event destinations to it.+module Amazonka.SmsVoice.CreateConfigurationSet+ ( -- * Creating a Request+ CreateConfigurationSet (..),+ newCreateConfigurationSet,++ -- * Request Lenses+ createConfigurationSet_configurationSetName,++ -- * Destructuring the Response+ CreateConfigurationSetResponse (..),+ newCreateConfigurationSetResponse,++ -- * Response Lenses+ createConfigurationSetResponse_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.SmsVoice.Types++-- | A request to create a new configuration set.+--+-- /See:/ 'newCreateConfigurationSet' smart constructor.+data CreateConfigurationSet = CreateConfigurationSet'+ { -- | The name that you want to give the configuration set.+ configurationSetName :: Prelude.Maybe Prelude.Text+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'CreateConfigurationSet' 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:+--+-- 'configurationSetName', 'createConfigurationSet_configurationSetName' - The name that you want to give the configuration set.+newCreateConfigurationSet ::+ CreateConfigurationSet+newCreateConfigurationSet =+ CreateConfigurationSet'+ { configurationSetName =+ Prelude.Nothing+ }++-- | The name that you want to give the configuration set.+createConfigurationSet_configurationSetName :: Lens.Lens' CreateConfigurationSet (Prelude.Maybe Prelude.Text)+createConfigurationSet_configurationSetName = Lens.lens (\CreateConfigurationSet' {configurationSetName} -> configurationSetName) (\s@CreateConfigurationSet' {} a -> s {configurationSetName = a} :: CreateConfigurationSet)++instance Core.AWSRequest CreateConfigurationSet where+ type+ AWSResponse CreateConfigurationSet =+ CreateConfigurationSetResponse+ request overrides =+ Request.postJSON (overrides defaultService)+ response =+ Response.receiveEmpty+ ( \s h x ->+ CreateConfigurationSetResponse'+ Prelude.<$> (Prelude.pure (Prelude.fromEnum s))+ )++instance Prelude.Hashable CreateConfigurationSet where+ hashWithSalt _salt CreateConfigurationSet' {..} =+ _salt `Prelude.hashWithSalt` configurationSetName++instance Prelude.NFData CreateConfigurationSet where+ rnf CreateConfigurationSet' {..} =+ Prelude.rnf configurationSetName++instance Data.ToHeaders CreateConfigurationSet where+ toHeaders =+ Prelude.const+ ( Prelude.mconcat+ [ "Content-Type"+ Data.=# ( "application/x-amz-json-1.1" ::+ Prelude.ByteString+ )+ ]+ )++instance Data.ToJSON CreateConfigurationSet where+ toJSON CreateConfigurationSet' {..} =+ Data.object+ ( Prelude.catMaybes+ [ ("ConfigurationSetName" Data..=)+ Prelude.<$> configurationSetName+ ]+ )++instance Data.ToPath CreateConfigurationSet where+ toPath =+ Prelude.const "/v1/sms-voice/configuration-sets"++instance Data.ToQuery CreateConfigurationSet where+ toQuery = Prelude.const Prelude.mempty++-- | An empty object that indicates that the configuration set was+-- successfully created.+--+-- /See:/ 'newCreateConfigurationSetResponse' smart constructor.+data CreateConfigurationSetResponse = CreateConfigurationSetResponse'+ { -- | The response's http status code.+ httpStatus :: Prelude.Int+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'CreateConfigurationSetResponse' 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', 'createConfigurationSetResponse_httpStatus' - The response's http status code.+newCreateConfigurationSetResponse ::+ -- | 'httpStatus'+ Prelude.Int ->+ CreateConfigurationSetResponse+newCreateConfigurationSetResponse pHttpStatus_ =+ CreateConfigurationSetResponse'+ { httpStatus =+ pHttpStatus_+ }++-- | The response's http status code.+createConfigurationSetResponse_httpStatus :: Lens.Lens' CreateConfigurationSetResponse Prelude.Int+createConfigurationSetResponse_httpStatus = Lens.lens (\CreateConfigurationSetResponse' {httpStatus} -> httpStatus) (\s@CreateConfigurationSetResponse' {} a -> s {httpStatus = a} :: CreateConfigurationSetResponse)++instance+ Prelude.NFData+ CreateConfigurationSetResponse+ where+ rnf CreateConfigurationSetResponse' {..} =+ Prelude.rnf httpStatus
+ gen/Amazonka/SmsVoice/CreateConfigurationSetEventDestination.hs view
@@ -0,0 +1,226 @@+{-# 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.SmsVoice.CreateConfigurationSetEventDestination+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Create a new event destination in a configuration set.+module Amazonka.SmsVoice.CreateConfigurationSetEventDestination+ ( -- * Creating a Request+ CreateConfigurationSetEventDestination (..),+ newCreateConfigurationSetEventDestination,++ -- * Request Lenses+ createConfigurationSetEventDestination_eventDestination,+ createConfigurationSetEventDestination_eventDestinationName,+ createConfigurationSetEventDestination_configurationSetName,++ -- * Destructuring the Response+ CreateConfigurationSetEventDestinationResponse (..),+ newCreateConfigurationSetEventDestinationResponse,++ -- * Response Lenses+ createConfigurationSetEventDestinationResponse_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.SmsVoice.Types++-- | Create a new event destination in a configuration set.+--+-- /See:/ 'newCreateConfigurationSetEventDestination' smart constructor.+data CreateConfigurationSetEventDestination = CreateConfigurationSetEventDestination'+ { eventDestination :: Prelude.Maybe EventDestinationDefinition,+ -- | A name that identifies the event destination.+ eventDestinationName :: Prelude.Maybe Prelude.Text,+ -- | ConfigurationSetName+ configurationSetName :: Prelude.Text+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'CreateConfigurationSetEventDestination' 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:+--+-- 'eventDestination', 'createConfigurationSetEventDestination_eventDestination' - Undocumented member.+--+-- 'eventDestinationName', 'createConfigurationSetEventDestination_eventDestinationName' - A name that identifies the event destination.+--+-- 'configurationSetName', 'createConfigurationSetEventDestination_configurationSetName' - ConfigurationSetName+newCreateConfigurationSetEventDestination ::+ -- | 'configurationSetName'+ Prelude.Text ->+ CreateConfigurationSetEventDestination+newCreateConfigurationSetEventDestination+ pConfigurationSetName_ =+ CreateConfigurationSetEventDestination'+ { eventDestination =+ Prelude.Nothing,+ eventDestinationName =+ Prelude.Nothing,+ configurationSetName =+ pConfigurationSetName_+ }++-- | Undocumented member.+createConfigurationSetEventDestination_eventDestination :: Lens.Lens' CreateConfigurationSetEventDestination (Prelude.Maybe EventDestinationDefinition)+createConfigurationSetEventDestination_eventDestination = Lens.lens (\CreateConfigurationSetEventDestination' {eventDestination} -> eventDestination) (\s@CreateConfigurationSetEventDestination' {} a -> s {eventDestination = a} :: CreateConfigurationSetEventDestination)++-- | A name that identifies the event destination.+createConfigurationSetEventDestination_eventDestinationName :: Lens.Lens' CreateConfigurationSetEventDestination (Prelude.Maybe Prelude.Text)+createConfigurationSetEventDestination_eventDestinationName = Lens.lens (\CreateConfigurationSetEventDestination' {eventDestinationName} -> eventDestinationName) (\s@CreateConfigurationSetEventDestination' {} a -> s {eventDestinationName = a} :: CreateConfigurationSetEventDestination)++-- | ConfigurationSetName+createConfigurationSetEventDestination_configurationSetName :: Lens.Lens' CreateConfigurationSetEventDestination Prelude.Text+createConfigurationSetEventDestination_configurationSetName = Lens.lens (\CreateConfigurationSetEventDestination' {configurationSetName} -> configurationSetName) (\s@CreateConfigurationSetEventDestination' {} a -> s {configurationSetName = a} :: CreateConfigurationSetEventDestination)++instance+ Core.AWSRequest+ CreateConfigurationSetEventDestination+ where+ type+ AWSResponse+ CreateConfigurationSetEventDestination =+ CreateConfigurationSetEventDestinationResponse+ request overrides =+ Request.postJSON (overrides defaultService)+ response =+ Response.receiveEmpty+ ( \s h x ->+ CreateConfigurationSetEventDestinationResponse'+ Prelude.<$> (Prelude.pure (Prelude.fromEnum s))+ )++instance+ Prelude.Hashable+ CreateConfigurationSetEventDestination+ where+ hashWithSalt+ _salt+ CreateConfigurationSetEventDestination' {..} =+ _salt+ `Prelude.hashWithSalt` eventDestination+ `Prelude.hashWithSalt` eventDestinationName+ `Prelude.hashWithSalt` configurationSetName++instance+ Prelude.NFData+ CreateConfigurationSetEventDestination+ where+ rnf CreateConfigurationSetEventDestination' {..} =+ Prelude.rnf eventDestination+ `Prelude.seq` Prelude.rnf eventDestinationName+ `Prelude.seq` Prelude.rnf configurationSetName++instance+ Data.ToHeaders+ CreateConfigurationSetEventDestination+ where+ toHeaders =+ Prelude.const+ ( Prelude.mconcat+ [ "Content-Type"+ Data.=# ( "application/x-amz-json-1.1" ::+ Prelude.ByteString+ )+ ]+ )++instance+ Data.ToJSON+ CreateConfigurationSetEventDestination+ where+ toJSON CreateConfigurationSetEventDestination' {..} =+ Data.object+ ( Prelude.catMaybes+ [ ("EventDestination" Data..=)+ Prelude.<$> eventDestination,+ ("EventDestinationName" Data..=)+ Prelude.<$> eventDestinationName+ ]+ )++instance+ Data.ToPath+ CreateConfigurationSetEventDestination+ where+ toPath CreateConfigurationSetEventDestination' {..} =+ Prelude.mconcat+ [ "/v1/sms-voice/configuration-sets/",+ Data.toBS configurationSetName,+ "/event-destinations"+ ]++instance+ Data.ToQuery+ CreateConfigurationSetEventDestination+ where+ toQuery = Prelude.const Prelude.mempty++-- | An empty object that indicates that the event destination was created+-- successfully.+--+-- /See:/ 'newCreateConfigurationSetEventDestinationResponse' smart constructor.+data CreateConfigurationSetEventDestinationResponse = CreateConfigurationSetEventDestinationResponse'+ { -- | The response's http status code.+ httpStatus :: Prelude.Int+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'CreateConfigurationSetEventDestinationResponse' 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', 'createConfigurationSetEventDestinationResponse_httpStatus' - The response's http status code.+newCreateConfigurationSetEventDestinationResponse ::+ -- | 'httpStatus'+ Prelude.Int ->+ CreateConfigurationSetEventDestinationResponse+newCreateConfigurationSetEventDestinationResponse+ pHttpStatus_ =+ CreateConfigurationSetEventDestinationResponse'+ { httpStatus =+ pHttpStatus_+ }++-- | The response's http status code.+createConfigurationSetEventDestinationResponse_httpStatus :: Lens.Lens' CreateConfigurationSetEventDestinationResponse Prelude.Int+createConfigurationSetEventDestinationResponse_httpStatus = Lens.lens (\CreateConfigurationSetEventDestinationResponse' {httpStatus} -> httpStatus) (\s@CreateConfigurationSetEventDestinationResponse' {} a -> s {httpStatus = a} :: CreateConfigurationSetEventDestinationResponse)++instance+ Prelude.NFData+ CreateConfigurationSetEventDestinationResponse+ where+ rnf+ CreateConfigurationSetEventDestinationResponse' {..} =+ Prelude.rnf httpStatus
+ gen/Amazonka/SmsVoice/DeleteConfigurationSet.hs view
@@ -0,0 +1,159 @@+{-# 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.SmsVoice.DeleteConfigurationSet+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Deletes an existing configuration set.+module Amazonka.SmsVoice.DeleteConfigurationSet+ ( -- * Creating a Request+ DeleteConfigurationSet (..),+ newDeleteConfigurationSet,++ -- * Request Lenses+ deleteConfigurationSet_configurationSetName,++ -- * Destructuring the Response+ DeleteConfigurationSetResponse (..),+ newDeleteConfigurationSetResponse,++ -- * Response Lenses+ deleteConfigurationSetResponse_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.SmsVoice.Types++-- | /See:/ 'newDeleteConfigurationSet' smart constructor.+data DeleteConfigurationSet = DeleteConfigurationSet'+ { -- | ConfigurationSetName+ configurationSetName :: Prelude.Text+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'DeleteConfigurationSet' 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:+--+-- 'configurationSetName', 'deleteConfigurationSet_configurationSetName' - ConfigurationSetName+newDeleteConfigurationSet ::+ -- | 'configurationSetName'+ Prelude.Text ->+ DeleteConfigurationSet+newDeleteConfigurationSet pConfigurationSetName_ =+ DeleteConfigurationSet'+ { configurationSetName =+ pConfigurationSetName_+ }++-- | ConfigurationSetName+deleteConfigurationSet_configurationSetName :: Lens.Lens' DeleteConfigurationSet Prelude.Text+deleteConfigurationSet_configurationSetName = Lens.lens (\DeleteConfigurationSet' {configurationSetName} -> configurationSetName) (\s@DeleteConfigurationSet' {} a -> s {configurationSetName = a} :: DeleteConfigurationSet)++instance Core.AWSRequest DeleteConfigurationSet where+ type+ AWSResponse DeleteConfigurationSet =+ DeleteConfigurationSetResponse+ request overrides =+ Request.delete (overrides defaultService)+ response =+ Response.receiveEmpty+ ( \s h x ->+ DeleteConfigurationSetResponse'+ Prelude.<$> (Prelude.pure (Prelude.fromEnum s))+ )++instance Prelude.Hashable DeleteConfigurationSet where+ hashWithSalt _salt DeleteConfigurationSet' {..} =+ _salt `Prelude.hashWithSalt` configurationSetName++instance Prelude.NFData DeleteConfigurationSet where+ rnf DeleteConfigurationSet' {..} =+ Prelude.rnf configurationSetName++instance Data.ToHeaders DeleteConfigurationSet where+ toHeaders =+ Prelude.const+ ( Prelude.mconcat+ [ "Content-Type"+ Data.=# ( "application/x-amz-json-1.1" ::+ Prelude.ByteString+ )+ ]+ )++instance Data.ToPath DeleteConfigurationSet where+ toPath DeleteConfigurationSet' {..} =+ Prelude.mconcat+ [ "/v1/sms-voice/configuration-sets/",+ Data.toBS configurationSetName+ ]++instance Data.ToQuery DeleteConfigurationSet where+ toQuery = Prelude.const Prelude.mempty++-- | An empty object that indicates that the configuration set was deleted+-- successfully.+--+-- /See:/ 'newDeleteConfigurationSetResponse' smart constructor.+data DeleteConfigurationSetResponse = DeleteConfigurationSetResponse'+ { -- | The response's http status code.+ httpStatus :: Prelude.Int+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'DeleteConfigurationSetResponse' 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', 'deleteConfigurationSetResponse_httpStatus' - The response's http status code.+newDeleteConfigurationSetResponse ::+ -- | 'httpStatus'+ Prelude.Int ->+ DeleteConfigurationSetResponse+newDeleteConfigurationSetResponse pHttpStatus_ =+ DeleteConfigurationSetResponse'+ { httpStatus =+ pHttpStatus_+ }++-- | The response's http status code.+deleteConfigurationSetResponse_httpStatus :: Lens.Lens' DeleteConfigurationSetResponse Prelude.Int+deleteConfigurationSetResponse_httpStatus = Lens.lens (\DeleteConfigurationSetResponse' {httpStatus} -> httpStatus) (\s@DeleteConfigurationSetResponse' {} a -> s {httpStatus = a} :: DeleteConfigurationSetResponse)++instance+ Prelude.NFData+ DeleteConfigurationSetResponse+ where+ rnf DeleteConfigurationSetResponse' {..} =+ Prelude.rnf httpStatus
+ gen/Amazonka/SmsVoice/DeleteConfigurationSetEventDestination.hs view
@@ -0,0 +1,202 @@+{-# 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.SmsVoice.DeleteConfigurationSetEventDestination+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Deletes an event destination in a configuration set.+module Amazonka.SmsVoice.DeleteConfigurationSetEventDestination+ ( -- * Creating a Request+ DeleteConfigurationSetEventDestination (..),+ newDeleteConfigurationSetEventDestination,++ -- * Request Lenses+ deleteConfigurationSetEventDestination_eventDestinationName,+ deleteConfigurationSetEventDestination_configurationSetName,++ -- * Destructuring the Response+ DeleteConfigurationSetEventDestinationResponse (..),+ newDeleteConfigurationSetEventDestinationResponse,++ -- * Response Lenses+ deleteConfigurationSetEventDestinationResponse_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.SmsVoice.Types++-- | /See:/ 'newDeleteConfigurationSetEventDestination' smart constructor.+data DeleteConfigurationSetEventDestination = DeleteConfigurationSetEventDestination'+ { -- | EventDestinationName+ eventDestinationName :: Prelude.Text,+ -- | ConfigurationSetName+ configurationSetName :: Prelude.Text+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'DeleteConfigurationSetEventDestination' 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:+--+-- 'eventDestinationName', 'deleteConfigurationSetEventDestination_eventDestinationName' - EventDestinationName+--+-- 'configurationSetName', 'deleteConfigurationSetEventDestination_configurationSetName' - ConfigurationSetName+newDeleteConfigurationSetEventDestination ::+ -- | 'eventDestinationName'+ Prelude.Text ->+ -- | 'configurationSetName'+ Prelude.Text ->+ DeleteConfigurationSetEventDestination+newDeleteConfigurationSetEventDestination+ pEventDestinationName_+ pConfigurationSetName_ =+ DeleteConfigurationSetEventDestination'+ { eventDestinationName =+ pEventDestinationName_,+ configurationSetName =+ pConfigurationSetName_+ }++-- | EventDestinationName+deleteConfigurationSetEventDestination_eventDestinationName :: Lens.Lens' DeleteConfigurationSetEventDestination Prelude.Text+deleteConfigurationSetEventDestination_eventDestinationName = Lens.lens (\DeleteConfigurationSetEventDestination' {eventDestinationName} -> eventDestinationName) (\s@DeleteConfigurationSetEventDestination' {} a -> s {eventDestinationName = a} :: DeleteConfigurationSetEventDestination)++-- | ConfigurationSetName+deleteConfigurationSetEventDestination_configurationSetName :: Lens.Lens' DeleteConfigurationSetEventDestination Prelude.Text+deleteConfigurationSetEventDestination_configurationSetName = Lens.lens (\DeleteConfigurationSetEventDestination' {configurationSetName} -> configurationSetName) (\s@DeleteConfigurationSetEventDestination' {} a -> s {configurationSetName = a} :: DeleteConfigurationSetEventDestination)++instance+ Core.AWSRequest+ DeleteConfigurationSetEventDestination+ where+ type+ AWSResponse+ DeleteConfigurationSetEventDestination =+ DeleteConfigurationSetEventDestinationResponse+ request overrides =+ Request.delete (overrides defaultService)+ response =+ Response.receiveEmpty+ ( \s h x ->+ DeleteConfigurationSetEventDestinationResponse'+ Prelude.<$> (Prelude.pure (Prelude.fromEnum s))+ )++instance+ Prelude.Hashable+ DeleteConfigurationSetEventDestination+ where+ hashWithSalt+ _salt+ DeleteConfigurationSetEventDestination' {..} =+ _salt+ `Prelude.hashWithSalt` eventDestinationName+ `Prelude.hashWithSalt` configurationSetName++instance+ Prelude.NFData+ DeleteConfigurationSetEventDestination+ where+ rnf DeleteConfigurationSetEventDestination' {..} =+ Prelude.rnf eventDestinationName+ `Prelude.seq` Prelude.rnf configurationSetName++instance+ Data.ToHeaders+ DeleteConfigurationSetEventDestination+ where+ toHeaders =+ Prelude.const+ ( Prelude.mconcat+ [ "Content-Type"+ Data.=# ( "application/x-amz-json-1.1" ::+ Prelude.ByteString+ )+ ]+ )++instance+ Data.ToPath+ DeleteConfigurationSetEventDestination+ where+ toPath DeleteConfigurationSetEventDestination' {..} =+ Prelude.mconcat+ [ "/v1/sms-voice/configuration-sets/",+ Data.toBS configurationSetName,+ "/event-destinations/",+ Data.toBS eventDestinationName+ ]++instance+ Data.ToQuery+ DeleteConfigurationSetEventDestination+ where+ toQuery = Prelude.const Prelude.mempty++-- | An empty object that indicates that the event destination was deleted+-- successfully.+--+-- /See:/ 'newDeleteConfigurationSetEventDestinationResponse' smart constructor.+data DeleteConfigurationSetEventDestinationResponse = DeleteConfigurationSetEventDestinationResponse'+ { -- | The response's http status code.+ httpStatus :: Prelude.Int+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'DeleteConfigurationSetEventDestinationResponse' 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', 'deleteConfigurationSetEventDestinationResponse_httpStatus' - The response's http status code.+newDeleteConfigurationSetEventDestinationResponse ::+ -- | 'httpStatus'+ Prelude.Int ->+ DeleteConfigurationSetEventDestinationResponse+newDeleteConfigurationSetEventDestinationResponse+ pHttpStatus_ =+ DeleteConfigurationSetEventDestinationResponse'+ { httpStatus =+ pHttpStatus_+ }++-- | The response's http status code.+deleteConfigurationSetEventDestinationResponse_httpStatus :: Lens.Lens' DeleteConfigurationSetEventDestinationResponse Prelude.Int+deleteConfigurationSetEventDestinationResponse_httpStatus = Lens.lens (\DeleteConfigurationSetEventDestinationResponse' {httpStatus} -> httpStatus) (\s@DeleteConfigurationSetEventDestinationResponse' {} a -> s {httpStatus = a} :: DeleteConfigurationSetEventDestinationResponse)++instance+ Prelude.NFData+ DeleteConfigurationSetEventDestinationResponse+ where+ rnf+ DeleteConfigurationSetEventDestinationResponse' {..} =+ Prelude.rnf httpStatus
+ gen/Amazonka/SmsVoice/GetConfigurationSetEventDestinations.hs view
@@ -0,0 +1,197 @@+{-# 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.SmsVoice.GetConfigurationSetEventDestinations+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Obtain information about an event destination, including the types of+-- events it reports, the Amazon Resource Name (ARN) of the destination,+-- and the name of the event destination.+module Amazonka.SmsVoice.GetConfigurationSetEventDestinations+ ( -- * Creating a Request+ GetConfigurationSetEventDestinations (..),+ newGetConfigurationSetEventDestinations,++ -- * Request Lenses+ getConfigurationSetEventDestinations_configurationSetName,++ -- * Destructuring the Response+ GetConfigurationSetEventDestinationsResponse (..),+ newGetConfigurationSetEventDestinationsResponse,++ -- * Response Lenses+ getConfigurationSetEventDestinationsResponse_eventDestinations,+ getConfigurationSetEventDestinationsResponse_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.SmsVoice.Types++-- | /See:/ 'newGetConfigurationSetEventDestinations' smart constructor.+data GetConfigurationSetEventDestinations = GetConfigurationSetEventDestinations'+ { -- | ConfigurationSetName+ configurationSetName :: Prelude.Text+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'GetConfigurationSetEventDestinations' 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:+--+-- 'configurationSetName', 'getConfigurationSetEventDestinations_configurationSetName' - ConfigurationSetName+newGetConfigurationSetEventDestinations ::+ -- | 'configurationSetName'+ Prelude.Text ->+ GetConfigurationSetEventDestinations+newGetConfigurationSetEventDestinations+ pConfigurationSetName_ =+ GetConfigurationSetEventDestinations'+ { configurationSetName =+ pConfigurationSetName_+ }++-- | ConfigurationSetName+getConfigurationSetEventDestinations_configurationSetName :: Lens.Lens' GetConfigurationSetEventDestinations Prelude.Text+getConfigurationSetEventDestinations_configurationSetName = Lens.lens (\GetConfigurationSetEventDestinations' {configurationSetName} -> configurationSetName) (\s@GetConfigurationSetEventDestinations' {} a -> s {configurationSetName = a} :: GetConfigurationSetEventDestinations)++instance+ Core.AWSRequest+ GetConfigurationSetEventDestinations+ where+ type+ AWSResponse GetConfigurationSetEventDestinations =+ GetConfigurationSetEventDestinationsResponse+ request overrides =+ Request.get (overrides defaultService)+ response =+ Response.receiveJSON+ ( \s h x ->+ GetConfigurationSetEventDestinationsResponse'+ Prelude.<$> ( x+ Data..?> "EventDestinations"+ Core..!@ Prelude.mempty+ )+ Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+ )++instance+ Prelude.Hashable+ GetConfigurationSetEventDestinations+ where+ hashWithSalt+ _salt+ GetConfigurationSetEventDestinations' {..} =+ _salt `Prelude.hashWithSalt` configurationSetName++instance+ Prelude.NFData+ GetConfigurationSetEventDestinations+ where+ rnf GetConfigurationSetEventDestinations' {..} =+ Prelude.rnf configurationSetName++instance+ Data.ToHeaders+ GetConfigurationSetEventDestinations+ where+ toHeaders =+ Prelude.const+ ( Prelude.mconcat+ [ "Content-Type"+ Data.=# ( "application/x-amz-json-1.1" ::+ Prelude.ByteString+ )+ ]+ )++instance+ Data.ToPath+ GetConfigurationSetEventDestinations+ where+ toPath GetConfigurationSetEventDestinations' {..} =+ Prelude.mconcat+ [ "/v1/sms-voice/configuration-sets/",+ Data.toBS configurationSetName,+ "/event-destinations"+ ]++instance+ Data.ToQuery+ GetConfigurationSetEventDestinations+ where+ toQuery = Prelude.const Prelude.mempty++-- | An object that contains information about an event destination.+--+-- /See:/ 'newGetConfigurationSetEventDestinationsResponse' smart constructor.+data GetConfigurationSetEventDestinationsResponse = GetConfigurationSetEventDestinationsResponse'+ { eventDestinations :: Prelude.Maybe [EventDestination],+ -- | The response's http status code.+ httpStatus :: Prelude.Int+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'GetConfigurationSetEventDestinationsResponse' 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:+--+-- 'eventDestinations', 'getConfigurationSetEventDestinationsResponse_eventDestinations' - Undocumented member.+--+-- 'httpStatus', 'getConfigurationSetEventDestinationsResponse_httpStatus' - The response's http status code.+newGetConfigurationSetEventDestinationsResponse ::+ -- | 'httpStatus'+ Prelude.Int ->+ GetConfigurationSetEventDestinationsResponse+newGetConfigurationSetEventDestinationsResponse+ pHttpStatus_ =+ GetConfigurationSetEventDestinationsResponse'+ { eventDestinations =+ Prelude.Nothing,+ httpStatus = pHttpStatus_+ }++-- | Undocumented member.+getConfigurationSetEventDestinationsResponse_eventDestinations :: Lens.Lens' GetConfigurationSetEventDestinationsResponse (Prelude.Maybe [EventDestination])+getConfigurationSetEventDestinationsResponse_eventDestinations = Lens.lens (\GetConfigurationSetEventDestinationsResponse' {eventDestinations} -> eventDestinations) (\s@GetConfigurationSetEventDestinationsResponse' {} a -> s {eventDestinations = a} :: GetConfigurationSetEventDestinationsResponse) Prelude.. Lens.mapping Lens.coerced++-- | The response's http status code.+getConfigurationSetEventDestinationsResponse_httpStatus :: Lens.Lens' GetConfigurationSetEventDestinationsResponse Prelude.Int+getConfigurationSetEventDestinationsResponse_httpStatus = Lens.lens (\GetConfigurationSetEventDestinationsResponse' {httpStatus} -> httpStatus) (\s@GetConfigurationSetEventDestinationsResponse' {} a -> s {httpStatus = a} :: GetConfigurationSetEventDestinationsResponse)++instance+ Prelude.NFData+ GetConfigurationSetEventDestinationsResponse+ where+ rnf GetConfigurationSetEventDestinationsResponse' {..} =+ Prelude.rnf eventDestinations+ `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/SmsVoice/Lens.hs view
@@ -0,0 +1,127 @@+{-# 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.SmsVoice.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.SmsVoice.Lens+ ( -- * Operations++ -- ** CreateConfigurationSet+ createConfigurationSet_configurationSetName,+ createConfigurationSetResponse_httpStatus,++ -- ** CreateConfigurationSetEventDestination+ createConfigurationSetEventDestination_eventDestination,+ createConfigurationSetEventDestination_eventDestinationName,+ createConfigurationSetEventDestination_configurationSetName,+ createConfigurationSetEventDestinationResponse_httpStatus,++ -- ** DeleteConfigurationSet+ deleteConfigurationSet_configurationSetName,+ deleteConfigurationSetResponse_httpStatus,++ -- ** DeleteConfigurationSetEventDestination+ deleteConfigurationSetEventDestination_eventDestinationName,+ deleteConfigurationSetEventDestination_configurationSetName,+ deleteConfigurationSetEventDestinationResponse_httpStatus,++ -- ** GetConfigurationSetEventDestinations+ getConfigurationSetEventDestinations_configurationSetName,+ getConfigurationSetEventDestinationsResponse_eventDestinations,+ getConfigurationSetEventDestinationsResponse_httpStatus,++ -- ** ListConfigurationSets+ listConfigurationSets_nextToken,+ listConfigurationSets_pageSize,+ listConfigurationSetsResponse_configurationSets,+ listConfigurationSetsResponse_nextToken,+ listConfigurationSetsResponse_httpStatus,++ -- ** SendVoiceMessage+ sendVoiceMessage_callerId,+ sendVoiceMessage_configurationSetName,+ sendVoiceMessage_content,+ sendVoiceMessage_destinationPhoneNumber,+ sendVoiceMessage_originationPhoneNumber,+ sendVoiceMessageResponse_messageId,+ sendVoiceMessageResponse_httpStatus,++ -- ** UpdateConfigurationSetEventDestination+ updateConfigurationSetEventDestination_eventDestination,+ updateConfigurationSetEventDestination_eventDestinationName,+ updateConfigurationSetEventDestination_configurationSetName,+ updateConfigurationSetEventDestinationResponse_httpStatus,++ -- * Types++ -- ** CallInstructionsMessageType+ callInstructionsMessageType_text,++ -- ** CloudWatchLogsDestination+ cloudWatchLogsDestination_iamRoleArn,+ cloudWatchLogsDestination_logGroupArn,++ -- ** EventDestination+ eventDestination_cloudWatchLogsDestination,+ eventDestination_enabled,+ eventDestination_kinesisFirehoseDestination,+ eventDestination_matchingEventTypes,+ eventDestination_name,+ eventDestination_snsDestination,++ -- ** EventDestinationDefinition+ eventDestinationDefinition_cloudWatchLogsDestination,+ eventDestinationDefinition_enabled,+ eventDestinationDefinition_kinesisFirehoseDestination,+ eventDestinationDefinition_matchingEventTypes,+ eventDestinationDefinition_snsDestination,++ -- ** KinesisFirehoseDestination+ kinesisFirehoseDestination_deliveryStreamArn,+ kinesisFirehoseDestination_iamRoleArn,++ -- ** PlainTextMessageType+ plainTextMessageType_languageCode,+ plainTextMessageType_text,+ plainTextMessageType_voiceId,++ -- ** SSMLMessageType+ sSMLMessageType_languageCode,+ sSMLMessageType_text,+ sSMLMessageType_voiceId,++ -- ** SnsDestination+ snsDestination_topicArn,++ -- ** VoiceMessageContent+ voiceMessageContent_callInstructionsMessage,+ voiceMessageContent_plainTextMessage,+ voiceMessageContent_sSMLMessage,+ )+where++import Amazonka.SmsVoice.CreateConfigurationSet+import Amazonka.SmsVoice.CreateConfigurationSetEventDestination+import Amazonka.SmsVoice.DeleteConfigurationSet+import Amazonka.SmsVoice.DeleteConfigurationSetEventDestination+import Amazonka.SmsVoice.GetConfigurationSetEventDestinations+import Amazonka.SmsVoice.ListConfigurationSets+import Amazonka.SmsVoice.SendVoiceMessage+import Amazonka.SmsVoice.Types.CallInstructionsMessageType+import Amazonka.SmsVoice.Types.CloudWatchLogsDestination+import Amazonka.SmsVoice.Types.EventDestination+import Amazonka.SmsVoice.Types.EventDestinationDefinition+import Amazonka.SmsVoice.Types.KinesisFirehoseDestination+import Amazonka.SmsVoice.Types.PlainTextMessageType+import Amazonka.SmsVoice.Types.SSMLMessageType+import Amazonka.SmsVoice.Types.SnsDestination+import Amazonka.SmsVoice.Types.VoiceMessageContent+import Amazonka.SmsVoice.UpdateConfigurationSetEventDestination
+ gen/Amazonka/SmsVoice/ListConfigurationSets.hs view
@@ -0,0 +1,207 @@+{-# 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.SmsVoice.ListConfigurationSets+-- 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 all of the configuration sets associated with your Amazon Pinpoint+-- account in the current region.+module Amazonka.SmsVoice.ListConfigurationSets+ ( -- * Creating a Request+ ListConfigurationSets (..),+ newListConfigurationSets,++ -- * Request Lenses+ listConfigurationSets_nextToken,+ listConfigurationSets_pageSize,++ -- * Destructuring the Response+ ListConfigurationSetsResponse (..),+ newListConfigurationSetsResponse,++ -- * Response Lenses+ listConfigurationSetsResponse_configurationSets,+ listConfigurationSetsResponse_nextToken,+ listConfigurationSetsResponse_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.SmsVoice.Types++-- | /See:/ 'newListConfigurationSets' smart constructor.+data ListConfigurationSets = ListConfigurationSets'+ { -- | A token returned from a previous call to the API that indicates the+ -- position in the list of results.+ nextToken :: Prelude.Maybe Prelude.Text,+ -- | Used to specify the number of items that should be returned in the+ -- response.+ pageSize :: Prelude.Maybe Prelude.Text+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'ListConfigurationSets' 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', 'listConfigurationSets_nextToken' - A token returned from a previous call to the API that indicates the+-- position in the list of results.+--+-- 'pageSize', 'listConfigurationSets_pageSize' - Used to specify the number of items that should be returned in the+-- response.+newListConfigurationSets ::+ ListConfigurationSets+newListConfigurationSets =+ ListConfigurationSets'+ { nextToken = Prelude.Nothing,+ pageSize = Prelude.Nothing+ }++-- | A token returned from a previous call to the API that indicates the+-- position in the list of results.+listConfigurationSets_nextToken :: Lens.Lens' ListConfigurationSets (Prelude.Maybe Prelude.Text)+listConfigurationSets_nextToken = Lens.lens (\ListConfigurationSets' {nextToken} -> nextToken) (\s@ListConfigurationSets' {} a -> s {nextToken = a} :: ListConfigurationSets)++-- | Used to specify the number of items that should be returned in the+-- response.+listConfigurationSets_pageSize :: Lens.Lens' ListConfigurationSets (Prelude.Maybe Prelude.Text)+listConfigurationSets_pageSize = Lens.lens (\ListConfigurationSets' {pageSize} -> pageSize) (\s@ListConfigurationSets' {} a -> s {pageSize = a} :: ListConfigurationSets)++instance Core.AWSRequest ListConfigurationSets where+ type+ AWSResponse ListConfigurationSets =+ ListConfigurationSetsResponse+ request overrides =+ Request.get (overrides defaultService)+ response =+ Response.receiveJSON+ ( \s h x ->+ ListConfigurationSetsResponse'+ Prelude.<$> ( x+ Data..?> "ConfigurationSets"+ Core..!@ Prelude.mempty+ )+ Prelude.<*> (x Data..?> "NextToken")+ Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+ )++instance Prelude.Hashable ListConfigurationSets where+ hashWithSalt _salt ListConfigurationSets' {..} =+ _salt+ `Prelude.hashWithSalt` nextToken+ `Prelude.hashWithSalt` pageSize++instance Prelude.NFData ListConfigurationSets where+ rnf ListConfigurationSets' {..} =+ Prelude.rnf nextToken+ `Prelude.seq` Prelude.rnf pageSize++instance Data.ToHeaders ListConfigurationSets where+ toHeaders =+ Prelude.const+ ( Prelude.mconcat+ [ "Content-Type"+ Data.=# ( "application/x-amz-json-1.1" ::+ Prelude.ByteString+ )+ ]+ )++instance Data.ToPath ListConfigurationSets where+ toPath =+ Prelude.const "/v1/sms-voice/configuration-sets"++instance Data.ToQuery ListConfigurationSets where+ toQuery ListConfigurationSets' {..} =+ Prelude.mconcat+ [ "NextToken" Data.=: nextToken,+ "PageSize" Data.=: pageSize+ ]++-- | An object that contains information about the configuration sets for+-- your account in the current region.+--+-- /See:/ 'newListConfigurationSetsResponse' smart constructor.+data ListConfigurationSetsResponse = ListConfigurationSetsResponse'+ { -- | An object that contains a list of configuration sets for your account in+ -- the current region.+ configurationSets :: Prelude.Maybe [Prelude.Text],+ -- | A token returned from a previous call to ListConfigurationSets to+ -- indicate the position in the list of configuration sets.+ nextToken :: Prelude.Maybe Prelude.Text,+ -- | The response's http status code.+ httpStatus :: Prelude.Int+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'ListConfigurationSetsResponse' 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:+--+-- 'configurationSets', 'listConfigurationSetsResponse_configurationSets' - An object that contains a list of configuration sets for your account in+-- the current region.+--+-- 'nextToken', 'listConfigurationSetsResponse_nextToken' - A token returned from a previous call to ListConfigurationSets to+-- indicate the position in the list of configuration sets.+--+-- 'httpStatus', 'listConfigurationSetsResponse_httpStatus' - The response's http status code.+newListConfigurationSetsResponse ::+ -- | 'httpStatus'+ Prelude.Int ->+ ListConfigurationSetsResponse+newListConfigurationSetsResponse pHttpStatus_ =+ ListConfigurationSetsResponse'+ { configurationSets =+ Prelude.Nothing,+ nextToken = Prelude.Nothing,+ httpStatus = pHttpStatus_+ }++-- | An object that contains a list of configuration sets for your account in+-- the current region.+listConfigurationSetsResponse_configurationSets :: Lens.Lens' ListConfigurationSetsResponse (Prelude.Maybe [Prelude.Text])+listConfigurationSetsResponse_configurationSets = Lens.lens (\ListConfigurationSetsResponse' {configurationSets} -> configurationSets) (\s@ListConfigurationSetsResponse' {} a -> s {configurationSets = a} :: ListConfigurationSetsResponse) Prelude.. Lens.mapping Lens.coerced++-- | A token returned from a previous call to ListConfigurationSets to+-- indicate the position in the list of configuration sets.+listConfigurationSetsResponse_nextToken :: Lens.Lens' ListConfigurationSetsResponse (Prelude.Maybe Prelude.Text)+listConfigurationSetsResponse_nextToken = Lens.lens (\ListConfigurationSetsResponse' {nextToken} -> nextToken) (\s@ListConfigurationSetsResponse' {} a -> s {nextToken = a} :: ListConfigurationSetsResponse)++-- | The response's http status code.+listConfigurationSetsResponse_httpStatus :: Lens.Lens' ListConfigurationSetsResponse Prelude.Int+listConfigurationSetsResponse_httpStatus = Lens.lens (\ListConfigurationSetsResponse' {httpStatus} -> httpStatus) (\s@ListConfigurationSetsResponse' {} a -> s {httpStatus = a} :: ListConfigurationSetsResponse)++instance Prelude.NFData ListConfigurationSetsResponse where+ rnf ListConfigurationSetsResponse' {..} =+ Prelude.rnf configurationSets+ `Prelude.seq` Prelude.rnf nextToken+ `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/SmsVoice/SendVoiceMessage.hs view
@@ -0,0 +1,241 @@+{-# 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.SmsVoice.SendVoiceMessage+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Create a new voice message and send it to a recipient\'s phone number.+module Amazonka.SmsVoice.SendVoiceMessage+ ( -- * Creating a Request+ SendVoiceMessage (..),+ newSendVoiceMessage,++ -- * Request Lenses+ sendVoiceMessage_callerId,+ sendVoiceMessage_configurationSetName,+ sendVoiceMessage_content,+ sendVoiceMessage_destinationPhoneNumber,+ sendVoiceMessage_originationPhoneNumber,++ -- * Destructuring the Response+ SendVoiceMessageResponse (..),+ newSendVoiceMessageResponse,++ -- * Response Lenses+ sendVoiceMessageResponse_messageId,+ sendVoiceMessageResponse_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.SmsVoice.Types++-- | SendVoiceMessageRequest+--+-- /See:/ 'newSendVoiceMessage' smart constructor.+data SendVoiceMessage = SendVoiceMessage'+ { -- | The phone number that appears on recipients\' devices when they receive+ -- the message.+ callerId :: Prelude.Maybe Prelude.Text,+ -- | The name of the configuration set that you want to use to send the+ -- message.+ configurationSetName :: Prelude.Maybe Prelude.Text,+ content :: Prelude.Maybe VoiceMessageContent,+ -- | The phone number that you want to send the voice message to.+ destinationPhoneNumber :: Prelude.Maybe Prelude.Text,+ -- | The phone number that Amazon Pinpoint should use to send the voice+ -- message. This isn\'t necessarily the phone number that appears on+ -- recipients\' devices when they receive the message, because you can+ -- specify a CallerId parameter in the request.+ originationPhoneNumber :: Prelude.Maybe Prelude.Text+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'SendVoiceMessage' 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:+--+-- 'callerId', 'sendVoiceMessage_callerId' - The phone number that appears on recipients\' devices when they receive+-- the message.+--+-- 'configurationSetName', 'sendVoiceMessage_configurationSetName' - The name of the configuration set that you want to use to send the+-- message.+--+-- 'content', 'sendVoiceMessage_content' - Undocumented member.+--+-- 'destinationPhoneNumber', 'sendVoiceMessage_destinationPhoneNumber' - The phone number that you want to send the voice message to.+--+-- 'originationPhoneNumber', 'sendVoiceMessage_originationPhoneNumber' - The phone number that Amazon Pinpoint should use to send the voice+-- message. This isn\'t necessarily the phone number that appears on+-- recipients\' devices when they receive the message, because you can+-- specify a CallerId parameter in the request.+newSendVoiceMessage ::+ SendVoiceMessage+newSendVoiceMessage =+ SendVoiceMessage'+ { callerId = Prelude.Nothing,+ configurationSetName = Prelude.Nothing,+ content = Prelude.Nothing,+ destinationPhoneNumber = Prelude.Nothing,+ originationPhoneNumber = Prelude.Nothing+ }++-- | The phone number that appears on recipients\' devices when they receive+-- the message.+sendVoiceMessage_callerId :: Lens.Lens' SendVoiceMessage (Prelude.Maybe Prelude.Text)+sendVoiceMessage_callerId = Lens.lens (\SendVoiceMessage' {callerId} -> callerId) (\s@SendVoiceMessage' {} a -> s {callerId = a} :: SendVoiceMessage)++-- | The name of the configuration set that you want to use to send the+-- message.+sendVoiceMessage_configurationSetName :: Lens.Lens' SendVoiceMessage (Prelude.Maybe Prelude.Text)+sendVoiceMessage_configurationSetName = Lens.lens (\SendVoiceMessage' {configurationSetName} -> configurationSetName) (\s@SendVoiceMessage' {} a -> s {configurationSetName = a} :: SendVoiceMessage)++-- | Undocumented member.+sendVoiceMessage_content :: Lens.Lens' SendVoiceMessage (Prelude.Maybe VoiceMessageContent)+sendVoiceMessage_content = Lens.lens (\SendVoiceMessage' {content} -> content) (\s@SendVoiceMessage' {} a -> s {content = a} :: SendVoiceMessage)++-- | The phone number that you want to send the voice message to.+sendVoiceMessage_destinationPhoneNumber :: Lens.Lens' SendVoiceMessage (Prelude.Maybe Prelude.Text)+sendVoiceMessage_destinationPhoneNumber = Lens.lens (\SendVoiceMessage' {destinationPhoneNumber} -> destinationPhoneNumber) (\s@SendVoiceMessage' {} a -> s {destinationPhoneNumber = a} :: SendVoiceMessage)++-- | The phone number that Amazon Pinpoint should use to send the voice+-- message. This isn\'t necessarily the phone number that appears on+-- recipients\' devices when they receive the message, because you can+-- specify a CallerId parameter in the request.+sendVoiceMessage_originationPhoneNumber :: Lens.Lens' SendVoiceMessage (Prelude.Maybe Prelude.Text)+sendVoiceMessage_originationPhoneNumber = Lens.lens (\SendVoiceMessage' {originationPhoneNumber} -> originationPhoneNumber) (\s@SendVoiceMessage' {} a -> s {originationPhoneNumber = a} :: SendVoiceMessage)++instance Core.AWSRequest SendVoiceMessage where+ type+ AWSResponse SendVoiceMessage =+ SendVoiceMessageResponse+ request overrides =+ Request.postJSON (overrides defaultService)+ response =+ Response.receiveJSON+ ( \s h x ->+ SendVoiceMessageResponse'+ Prelude.<$> (x Data..?> "MessageId")+ Prelude.<*> (Prelude.pure (Prelude.fromEnum s))+ )++instance Prelude.Hashable SendVoiceMessage where+ hashWithSalt _salt SendVoiceMessage' {..} =+ _salt+ `Prelude.hashWithSalt` callerId+ `Prelude.hashWithSalt` configurationSetName+ `Prelude.hashWithSalt` content+ `Prelude.hashWithSalt` destinationPhoneNumber+ `Prelude.hashWithSalt` originationPhoneNumber++instance Prelude.NFData SendVoiceMessage where+ rnf SendVoiceMessage' {..} =+ Prelude.rnf callerId+ `Prelude.seq` Prelude.rnf configurationSetName+ `Prelude.seq` Prelude.rnf content+ `Prelude.seq` Prelude.rnf destinationPhoneNumber+ `Prelude.seq` Prelude.rnf originationPhoneNumber++instance Data.ToHeaders SendVoiceMessage where+ toHeaders =+ Prelude.const+ ( Prelude.mconcat+ [ "Content-Type"+ Data.=# ( "application/x-amz-json-1.1" ::+ Prelude.ByteString+ )+ ]+ )++instance Data.ToJSON SendVoiceMessage where+ toJSON SendVoiceMessage' {..} =+ Data.object+ ( Prelude.catMaybes+ [ ("CallerId" Data..=) Prelude.<$> callerId,+ ("ConfigurationSetName" Data..=)+ Prelude.<$> configurationSetName,+ ("Content" Data..=) Prelude.<$> content,+ ("DestinationPhoneNumber" Data..=)+ Prelude.<$> destinationPhoneNumber,+ ("OriginationPhoneNumber" Data..=)+ Prelude.<$> originationPhoneNumber+ ]+ )++instance Data.ToPath SendVoiceMessage where+ toPath = Prelude.const "/v1/sms-voice/voice/message"++instance Data.ToQuery SendVoiceMessage where+ toQuery = Prelude.const Prelude.mempty++-- | An object that that contains the Message ID of a Voice message that was+-- sent successfully.+--+-- /See:/ 'newSendVoiceMessageResponse' smart constructor.+data SendVoiceMessageResponse = SendVoiceMessageResponse'+ { -- | A unique identifier for the voice message.+ messageId :: Prelude.Maybe Prelude.Text,+ -- | The response's http status code.+ httpStatus :: Prelude.Int+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'SendVoiceMessageResponse' 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:+--+-- 'messageId', 'sendVoiceMessageResponse_messageId' - A unique identifier for the voice message.+--+-- 'httpStatus', 'sendVoiceMessageResponse_httpStatus' - The response's http status code.+newSendVoiceMessageResponse ::+ -- | 'httpStatus'+ Prelude.Int ->+ SendVoiceMessageResponse+newSendVoiceMessageResponse pHttpStatus_ =+ SendVoiceMessageResponse'+ { messageId =+ Prelude.Nothing,+ httpStatus = pHttpStatus_+ }++-- | A unique identifier for the voice message.+sendVoiceMessageResponse_messageId :: Lens.Lens' SendVoiceMessageResponse (Prelude.Maybe Prelude.Text)+sendVoiceMessageResponse_messageId = Lens.lens (\SendVoiceMessageResponse' {messageId} -> messageId) (\s@SendVoiceMessageResponse' {} a -> s {messageId = a} :: SendVoiceMessageResponse)++-- | The response's http status code.+sendVoiceMessageResponse_httpStatus :: Lens.Lens' SendVoiceMessageResponse Prelude.Int+sendVoiceMessageResponse_httpStatus = Lens.lens (\SendVoiceMessageResponse' {httpStatus} -> httpStatus) (\s@SendVoiceMessageResponse' {} a -> s {httpStatus = a} :: SendVoiceMessageResponse)++instance Prelude.NFData SendVoiceMessageResponse where+ rnf SendVoiceMessageResponse' {..} =+ Prelude.rnf messageId+ `Prelude.seq` Prelude.rnf httpStatus
+ gen/Amazonka/SmsVoice/Types.hs view
@@ -0,0 +1,229 @@+{-# 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.SmsVoice.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.SmsVoice.Types+ ( -- * Service Configuration+ defaultService,++ -- * Errors+ _AlreadyExistsException,+ _BadRequestException,+ _InternalServiceErrorException,+ _LimitExceededException,+ _NotFoundException,+ _TooManyRequestsException,++ -- * EventType+ EventType (..),++ -- * CallInstructionsMessageType+ CallInstructionsMessageType (..),+ newCallInstructionsMessageType,+ callInstructionsMessageType_text,++ -- * CloudWatchLogsDestination+ CloudWatchLogsDestination (..),+ newCloudWatchLogsDestination,+ cloudWatchLogsDestination_iamRoleArn,+ cloudWatchLogsDestination_logGroupArn,++ -- * EventDestination+ EventDestination (..),+ newEventDestination,+ eventDestination_cloudWatchLogsDestination,+ eventDestination_enabled,+ eventDestination_kinesisFirehoseDestination,+ eventDestination_matchingEventTypes,+ eventDestination_name,+ eventDestination_snsDestination,++ -- * EventDestinationDefinition+ EventDestinationDefinition (..),+ newEventDestinationDefinition,+ eventDestinationDefinition_cloudWatchLogsDestination,+ eventDestinationDefinition_enabled,+ eventDestinationDefinition_kinesisFirehoseDestination,+ eventDestinationDefinition_matchingEventTypes,+ eventDestinationDefinition_snsDestination,++ -- * KinesisFirehoseDestination+ KinesisFirehoseDestination (..),+ newKinesisFirehoseDestination,+ kinesisFirehoseDestination_deliveryStreamArn,+ kinesisFirehoseDestination_iamRoleArn,++ -- * PlainTextMessageType+ PlainTextMessageType (..),+ newPlainTextMessageType,+ plainTextMessageType_languageCode,+ plainTextMessageType_text,+ plainTextMessageType_voiceId,++ -- * SSMLMessageType+ SSMLMessageType (..),+ newSSMLMessageType,+ sSMLMessageType_languageCode,+ sSMLMessageType_text,+ sSMLMessageType_voiceId,++ -- * SnsDestination+ SnsDestination (..),+ newSnsDestination,+ snsDestination_topicArn,++ -- * VoiceMessageContent+ VoiceMessageContent (..),+ newVoiceMessageContent,+ voiceMessageContent_callInstructionsMessage,+ voiceMessageContent_plainTextMessage,+ voiceMessageContent_sSMLMessage,+ )+where++import qualified Amazonka.Core as Core+import qualified Amazonka.Core.Lens.Internal as Lens+import qualified Amazonka.Prelude as Prelude+import qualified Amazonka.Sign.V4 as Sign+import Amazonka.SmsVoice.Types.CallInstructionsMessageType+import Amazonka.SmsVoice.Types.CloudWatchLogsDestination+import Amazonka.SmsVoice.Types.EventDestination+import Amazonka.SmsVoice.Types.EventDestinationDefinition+import Amazonka.SmsVoice.Types.EventType+import Amazonka.SmsVoice.Types.KinesisFirehoseDestination+import Amazonka.SmsVoice.Types.PlainTextMessageType+import Amazonka.SmsVoice.Types.SSMLMessageType+import Amazonka.SmsVoice.Types.SnsDestination+import Amazonka.SmsVoice.Types.VoiceMessageContent++-- | API version @2018-09-05@ of the Amazon Pinpoint SMS and Voice Service SDK configuration.+defaultService :: Core.Service+defaultService =+ Core.Service+ { Core.abbrev = "SmsVoice",+ Core.signer = Sign.v4,+ Core.endpointPrefix = "sms-voice.pinpoint",+ Core.signingName = "sms-voice",+ Core.version = "2018-09-05",+ Core.s3AddressingStyle = Core.S3AddressingStyleAuto,+ Core.endpoint = Core.defaultEndpoint defaultService,+ Core.timeout = Prelude.Just 70,+ Core.check = Core.statusSuccess,+ Core.error = Core.parseJSONError "SmsVoice",+ 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++-- | The resource specified in your request already exists.+_AlreadyExistsException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_AlreadyExistsException =+ Core._MatchServiceError+ defaultService+ "AlreadyExistsException"+ Prelude.. Core.hasStatus 409++-- | The input you provided is invalid.+_BadRequestException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_BadRequestException =+ Core._MatchServiceError+ defaultService+ "BadRequestException"+ Prelude.. Core.hasStatus 400++-- | The API encountered an unexpected error and couldn\'t complete the+-- request. You might be able to successfully issue the request again in+-- the future.+_InternalServiceErrorException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_InternalServiceErrorException =+ Core._MatchServiceError+ defaultService+ "InternalServiceErrorException"+ Prelude.. Core.hasStatus 500++-- | There are too many instances of the specified resource type.+_LimitExceededException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_LimitExceededException =+ Core._MatchServiceError+ defaultService+ "LimitExceededException"+ Prelude.. Core.hasStatus 412++-- | The resource you attempted to access doesn\'t exist.+_NotFoundException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_NotFoundException =+ Core._MatchServiceError+ defaultService+ "NotFoundException"+ Prelude.. Core.hasStatus 404++-- | You\'ve issued too many requests to the resource. Wait a few minutes,+-- and then try again.+_TooManyRequestsException :: (Core.AsError a) => Lens.Fold a Core.ServiceError+_TooManyRequestsException =+ Core._MatchServiceError+ defaultService+ "TooManyRequestsException"+ Prelude.. Core.hasStatus 429
+ gen/Amazonka/SmsVoice/Types/CallInstructionsMessageType.hs view
@@ -0,0 +1,74 @@+{-# 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.SmsVoice.Types.CallInstructionsMessageType+-- 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.SmsVoice.Types.CallInstructionsMessageType 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++-- | An object that defines a message that contains text formatted using+-- Amazon Pinpoint Voice Instructions markup.+--+-- /See:/ 'newCallInstructionsMessageType' smart constructor.+data CallInstructionsMessageType = CallInstructionsMessageType'+ { -- | The language to use when delivering the message. For a complete list of+ -- supported languages, see the Amazon Polly Developer Guide.+ text :: Prelude.Maybe Prelude.Text+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'CallInstructionsMessageType' 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:+--+-- 'text', 'callInstructionsMessageType_text' - The language to use when delivering the message. For a complete list of+-- supported languages, see the Amazon Polly Developer Guide.+newCallInstructionsMessageType ::+ CallInstructionsMessageType+newCallInstructionsMessageType =+ CallInstructionsMessageType'+ { text =+ Prelude.Nothing+ }++-- | The language to use when delivering the message. For a complete list of+-- supported languages, see the Amazon Polly Developer Guide.+callInstructionsMessageType_text :: Lens.Lens' CallInstructionsMessageType (Prelude.Maybe Prelude.Text)+callInstructionsMessageType_text = Lens.lens (\CallInstructionsMessageType' {text} -> text) (\s@CallInstructionsMessageType' {} a -> s {text = a} :: CallInstructionsMessageType)++instance Prelude.Hashable CallInstructionsMessageType where+ hashWithSalt _salt CallInstructionsMessageType' {..} =+ _salt `Prelude.hashWithSalt` text++instance Prelude.NFData CallInstructionsMessageType where+ rnf CallInstructionsMessageType' {..} =+ Prelude.rnf text++instance Data.ToJSON CallInstructionsMessageType where+ toJSON CallInstructionsMessageType' {..} =+ Data.object+ ( Prelude.catMaybes+ [("Text" Data..=) Prelude.<$> text]+ )
+ gen/Amazonka/SmsVoice/Types/CloudWatchLogsDestination.hs view
@@ -0,0 +1,104 @@+{-# 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.SmsVoice.Types.CloudWatchLogsDestination+-- 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.SmsVoice.Types.CloudWatchLogsDestination 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++-- | An object that contains information about an event destination that+-- sends data to Amazon CloudWatch Logs.+--+-- /See:/ 'newCloudWatchLogsDestination' smart constructor.+data CloudWatchLogsDestination = CloudWatchLogsDestination'+ { -- | The Amazon Resource Name (ARN) of an Amazon Identity and Access+ -- Management (IAM) role that is able to write event data to an Amazon+ -- CloudWatch destination.+ iamRoleArn :: Prelude.Maybe Prelude.Text,+ -- | The name of the Amazon CloudWatch Log Group that you want to record+ -- events in.+ logGroupArn :: Prelude.Maybe Prelude.Text+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'CloudWatchLogsDestination' 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:+--+-- 'iamRoleArn', 'cloudWatchLogsDestination_iamRoleArn' - The Amazon Resource Name (ARN) of an Amazon Identity and Access+-- Management (IAM) role that is able to write event data to an Amazon+-- CloudWatch destination.+--+-- 'logGroupArn', 'cloudWatchLogsDestination_logGroupArn' - The name of the Amazon CloudWatch Log Group that you want to record+-- events in.+newCloudWatchLogsDestination ::+ CloudWatchLogsDestination+newCloudWatchLogsDestination =+ CloudWatchLogsDestination'+ { iamRoleArn =+ Prelude.Nothing,+ logGroupArn = Prelude.Nothing+ }++-- | The Amazon Resource Name (ARN) of an Amazon Identity and Access+-- Management (IAM) role that is able to write event data to an Amazon+-- CloudWatch destination.+cloudWatchLogsDestination_iamRoleArn :: Lens.Lens' CloudWatchLogsDestination (Prelude.Maybe Prelude.Text)+cloudWatchLogsDestination_iamRoleArn = Lens.lens (\CloudWatchLogsDestination' {iamRoleArn} -> iamRoleArn) (\s@CloudWatchLogsDestination' {} a -> s {iamRoleArn = a} :: CloudWatchLogsDestination)++-- | The name of the Amazon CloudWatch Log Group that you want to record+-- events in.+cloudWatchLogsDestination_logGroupArn :: Lens.Lens' CloudWatchLogsDestination (Prelude.Maybe Prelude.Text)+cloudWatchLogsDestination_logGroupArn = Lens.lens (\CloudWatchLogsDestination' {logGroupArn} -> logGroupArn) (\s@CloudWatchLogsDestination' {} a -> s {logGroupArn = a} :: CloudWatchLogsDestination)++instance Data.FromJSON CloudWatchLogsDestination where+ parseJSON =+ Data.withObject+ "CloudWatchLogsDestination"+ ( \x ->+ CloudWatchLogsDestination'+ Prelude.<$> (x Data..:? "IamRoleArn")+ Prelude.<*> (x Data..:? "LogGroupArn")+ )++instance Prelude.Hashable CloudWatchLogsDestination where+ hashWithSalt _salt CloudWatchLogsDestination' {..} =+ _salt+ `Prelude.hashWithSalt` iamRoleArn+ `Prelude.hashWithSalt` logGroupArn++instance Prelude.NFData CloudWatchLogsDestination where+ rnf CloudWatchLogsDestination' {..} =+ Prelude.rnf iamRoleArn+ `Prelude.seq` Prelude.rnf logGroupArn++instance Data.ToJSON CloudWatchLogsDestination where+ toJSON CloudWatchLogsDestination' {..} =+ Data.object+ ( Prelude.catMaybes+ [ ("IamRoleArn" Data..=) Prelude.<$> iamRoleArn,+ ("LogGroupArn" Data..=) Prelude.<$> logGroupArn+ ]+ )
+ gen/Amazonka/SmsVoice/Types/EventDestination.hs view
@@ -0,0 +1,142 @@+{-# 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.SmsVoice.Types.EventDestination+-- 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.SmsVoice.Types.EventDestination 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.SmsVoice.Types.CloudWatchLogsDestination+import Amazonka.SmsVoice.Types.EventType+import Amazonka.SmsVoice.Types.KinesisFirehoseDestination+import Amazonka.SmsVoice.Types.SnsDestination++-- | An object that defines an event destination.+--+-- /See:/ 'newEventDestination' smart constructor.+data EventDestination = EventDestination'+ { cloudWatchLogsDestination :: Prelude.Maybe CloudWatchLogsDestination,+ -- | Indicates whether or not the event destination is enabled. If the event+ -- destination is enabled, then Amazon Pinpoint sends response data to the+ -- specified event destination.+ enabled :: Prelude.Maybe Prelude.Bool,+ kinesisFirehoseDestination :: Prelude.Maybe KinesisFirehoseDestination,+ matchingEventTypes :: Prelude.Maybe [EventType],+ -- | A name that identifies the event destination configuration.+ name :: Prelude.Maybe Prelude.Text,+ snsDestination :: Prelude.Maybe SnsDestination+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'EventDestination' 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:+--+-- 'cloudWatchLogsDestination', 'eventDestination_cloudWatchLogsDestination' - Undocumented member.+--+-- 'enabled', 'eventDestination_enabled' - Indicates whether or not the event destination is enabled. If the event+-- destination is enabled, then Amazon Pinpoint sends response data to the+-- specified event destination.+--+-- 'kinesisFirehoseDestination', 'eventDestination_kinesisFirehoseDestination' - Undocumented member.+--+-- 'matchingEventTypes', 'eventDestination_matchingEventTypes' - Undocumented member.+--+-- 'name', 'eventDestination_name' - A name that identifies the event destination configuration.+--+-- 'snsDestination', 'eventDestination_snsDestination' - Undocumented member.+newEventDestination ::+ EventDestination+newEventDestination =+ EventDestination'+ { cloudWatchLogsDestination =+ Prelude.Nothing,+ enabled = Prelude.Nothing,+ kinesisFirehoseDestination = Prelude.Nothing,+ matchingEventTypes = Prelude.Nothing,+ name = Prelude.Nothing,+ snsDestination = Prelude.Nothing+ }++-- | Undocumented member.+eventDestination_cloudWatchLogsDestination :: Lens.Lens' EventDestination (Prelude.Maybe CloudWatchLogsDestination)+eventDestination_cloudWatchLogsDestination = Lens.lens (\EventDestination' {cloudWatchLogsDestination} -> cloudWatchLogsDestination) (\s@EventDestination' {} a -> s {cloudWatchLogsDestination = a} :: EventDestination)++-- | Indicates whether or not the event destination is enabled. If the event+-- destination is enabled, then Amazon Pinpoint sends response data to the+-- specified event destination.+eventDestination_enabled :: Lens.Lens' EventDestination (Prelude.Maybe Prelude.Bool)+eventDestination_enabled = Lens.lens (\EventDestination' {enabled} -> enabled) (\s@EventDestination' {} a -> s {enabled = a} :: EventDestination)++-- | Undocumented member.+eventDestination_kinesisFirehoseDestination :: Lens.Lens' EventDestination (Prelude.Maybe KinesisFirehoseDestination)+eventDestination_kinesisFirehoseDestination = Lens.lens (\EventDestination' {kinesisFirehoseDestination} -> kinesisFirehoseDestination) (\s@EventDestination' {} a -> s {kinesisFirehoseDestination = a} :: EventDestination)++-- | Undocumented member.+eventDestination_matchingEventTypes :: Lens.Lens' EventDestination (Prelude.Maybe [EventType])+eventDestination_matchingEventTypes = Lens.lens (\EventDestination' {matchingEventTypes} -> matchingEventTypes) (\s@EventDestination' {} a -> s {matchingEventTypes = a} :: EventDestination) Prelude.. Lens.mapping Lens.coerced++-- | A name that identifies the event destination configuration.+eventDestination_name :: Lens.Lens' EventDestination (Prelude.Maybe Prelude.Text)+eventDestination_name = Lens.lens (\EventDestination' {name} -> name) (\s@EventDestination' {} a -> s {name = a} :: EventDestination)++-- | Undocumented member.+eventDestination_snsDestination :: Lens.Lens' EventDestination (Prelude.Maybe SnsDestination)+eventDestination_snsDestination = Lens.lens (\EventDestination' {snsDestination} -> snsDestination) (\s@EventDestination' {} a -> s {snsDestination = a} :: EventDestination)++instance Data.FromJSON EventDestination where+ parseJSON =+ Data.withObject+ "EventDestination"+ ( \x ->+ EventDestination'+ Prelude.<$> (x Data..:? "CloudWatchLogsDestination")+ Prelude.<*> (x Data..:? "Enabled")+ Prelude.<*> (x Data..:? "KinesisFirehoseDestination")+ Prelude.<*> ( x+ Data..:? "MatchingEventTypes"+ Data..!= Prelude.mempty+ )+ Prelude.<*> (x Data..:? "Name")+ Prelude.<*> (x Data..:? "SnsDestination")+ )++instance Prelude.Hashable EventDestination where+ hashWithSalt _salt EventDestination' {..} =+ _salt+ `Prelude.hashWithSalt` cloudWatchLogsDestination+ `Prelude.hashWithSalt` enabled+ `Prelude.hashWithSalt` kinesisFirehoseDestination+ `Prelude.hashWithSalt` matchingEventTypes+ `Prelude.hashWithSalt` name+ `Prelude.hashWithSalt` snsDestination++instance Prelude.NFData EventDestination where+ rnf EventDestination' {..} =+ Prelude.rnf cloudWatchLogsDestination+ `Prelude.seq` Prelude.rnf enabled+ `Prelude.seq` Prelude.rnf kinesisFirehoseDestination+ `Prelude.seq` Prelude.rnf matchingEventTypes+ `Prelude.seq` Prelude.rnf name+ `Prelude.seq` Prelude.rnf snsDestination
+ gen/Amazonka/SmsVoice/Types/EventDestinationDefinition.hs view
@@ -0,0 +1,130 @@+{-# 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.SmsVoice.Types.EventDestinationDefinition+-- 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.SmsVoice.Types.EventDestinationDefinition 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.SmsVoice.Types.CloudWatchLogsDestination+import Amazonka.SmsVoice.Types.EventType+import Amazonka.SmsVoice.Types.KinesisFirehoseDestination+import Amazonka.SmsVoice.Types.SnsDestination++-- | An object that defines a single event destination.+--+-- /See:/ 'newEventDestinationDefinition' smart constructor.+data EventDestinationDefinition = EventDestinationDefinition'+ { cloudWatchLogsDestination :: Prelude.Maybe CloudWatchLogsDestination,+ -- | Indicates whether or not the event destination is enabled. If the event+ -- destination is enabled, then Amazon Pinpoint sends response data to the+ -- specified event destination.+ enabled :: Prelude.Maybe Prelude.Bool,+ kinesisFirehoseDestination :: Prelude.Maybe KinesisFirehoseDestination,+ matchingEventTypes :: Prelude.Maybe [EventType],+ snsDestination :: Prelude.Maybe SnsDestination+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'EventDestinationDefinition' 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:+--+-- 'cloudWatchLogsDestination', 'eventDestinationDefinition_cloudWatchLogsDestination' - Undocumented member.+--+-- 'enabled', 'eventDestinationDefinition_enabled' - Indicates whether or not the event destination is enabled. If the event+-- destination is enabled, then Amazon Pinpoint sends response data to the+-- specified event destination.+--+-- 'kinesisFirehoseDestination', 'eventDestinationDefinition_kinesisFirehoseDestination' - Undocumented member.+--+-- 'matchingEventTypes', 'eventDestinationDefinition_matchingEventTypes' - Undocumented member.+--+-- 'snsDestination', 'eventDestinationDefinition_snsDestination' - Undocumented member.+newEventDestinationDefinition ::+ EventDestinationDefinition+newEventDestinationDefinition =+ EventDestinationDefinition'+ { cloudWatchLogsDestination =+ Prelude.Nothing,+ enabled = Prelude.Nothing,+ kinesisFirehoseDestination = Prelude.Nothing,+ matchingEventTypes = Prelude.Nothing,+ snsDestination = Prelude.Nothing+ }++-- | Undocumented member.+eventDestinationDefinition_cloudWatchLogsDestination :: Lens.Lens' EventDestinationDefinition (Prelude.Maybe CloudWatchLogsDestination)+eventDestinationDefinition_cloudWatchLogsDestination = Lens.lens (\EventDestinationDefinition' {cloudWatchLogsDestination} -> cloudWatchLogsDestination) (\s@EventDestinationDefinition' {} a -> s {cloudWatchLogsDestination = a} :: EventDestinationDefinition)++-- | Indicates whether or not the event destination is enabled. If the event+-- destination is enabled, then Amazon Pinpoint sends response data to the+-- specified event destination.+eventDestinationDefinition_enabled :: Lens.Lens' EventDestinationDefinition (Prelude.Maybe Prelude.Bool)+eventDestinationDefinition_enabled = Lens.lens (\EventDestinationDefinition' {enabled} -> enabled) (\s@EventDestinationDefinition' {} a -> s {enabled = a} :: EventDestinationDefinition)++-- | Undocumented member.+eventDestinationDefinition_kinesisFirehoseDestination :: Lens.Lens' EventDestinationDefinition (Prelude.Maybe KinesisFirehoseDestination)+eventDestinationDefinition_kinesisFirehoseDestination = Lens.lens (\EventDestinationDefinition' {kinesisFirehoseDestination} -> kinesisFirehoseDestination) (\s@EventDestinationDefinition' {} a -> s {kinesisFirehoseDestination = a} :: EventDestinationDefinition)++-- | Undocumented member.+eventDestinationDefinition_matchingEventTypes :: Lens.Lens' EventDestinationDefinition (Prelude.Maybe [EventType])+eventDestinationDefinition_matchingEventTypes = Lens.lens (\EventDestinationDefinition' {matchingEventTypes} -> matchingEventTypes) (\s@EventDestinationDefinition' {} a -> s {matchingEventTypes = a} :: EventDestinationDefinition) Prelude.. Lens.mapping Lens.coerced++-- | Undocumented member.+eventDestinationDefinition_snsDestination :: Lens.Lens' EventDestinationDefinition (Prelude.Maybe SnsDestination)+eventDestinationDefinition_snsDestination = Lens.lens (\EventDestinationDefinition' {snsDestination} -> snsDestination) (\s@EventDestinationDefinition' {} a -> s {snsDestination = a} :: EventDestinationDefinition)++instance Prelude.Hashable EventDestinationDefinition where+ hashWithSalt _salt EventDestinationDefinition' {..} =+ _salt+ `Prelude.hashWithSalt` cloudWatchLogsDestination+ `Prelude.hashWithSalt` enabled+ `Prelude.hashWithSalt` kinesisFirehoseDestination+ `Prelude.hashWithSalt` matchingEventTypes+ `Prelude.hashWithSalt` snsDestination++instance Prelude.NFData EventDestinationDefinition where+ rnf EventDestinationDefinition' {..} =+ Prelude.rnf cloudWatchLogsDestination+ `Prelude.seq` Prelude.rnf enabled+ `Prelude.seq` Prelude.rnf kinesisFirehoseDestination+ `Prelude.seq` Prelude.rnf matchingEventTypes+ `Prelude.seq` Prelude.rnf snsDestination++instance Data.ToJSON EventDestinationDefinition where+ toJSON EventDestinationDefinition' {..} =+ Data.object+ ( Prelude.catMaybes+ [ ("CloudWatchLogsDestination" Data..=)+ Prelude.<$> cloudWatchLogsDestination,+ ("Enabled" Data..=) Prelude.<$> enabled,+ ("KinesisFirehoseDestination" Data..=)+ Prelude.<$> kinesisFirehoseDestination,+ ("MatchingEventTypes" Data..=)+ Prelude.<$> matchingEventTypes,+ ("SnsDestination" Data..=)+ Prelude.<$> snsDestination+ ]+ )
+ gen/Amazonka/SmsVoice/Types/EventType.hs view
@@ -0,0 +1,97 @@+{-# 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.SmsVoice.Types.EventType+-- 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.SmsVoice.Types.EventType+ ( EventType+ ( ..,+ EventType_ANSWERED,+ EventType_BUSY,+ EventType_COMPLETED_CALL,+ EventType_FAILED,+ EventType_INITIATED_CALL,+ EventType_NO_ANSWER,+ EventType_RINGING+ ),+ )+where++import qualified Amazonka.Core as Core+import qualified Amazonka.Data as Data+import qualified Amazonka.Prelude as Prelude++-- | The types of events that are sent to the event destination.+newtype EventType = EventType'+ { fromEventType ::+ 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 EventType_ANSWERED :: EventType+pattern EventType_ANSWERED = EventType' "ANSWERED"++pattern EventType_BUSY :: EventType+pattern EventType_BUSY = EventType' "BUSY"++pattern EventType_COMPLETED_CALL :: EventType+pattern EventType_COMPLETED_CALL = EventType' "COMPLETED_CALL"++pattern EventType_FAILED :: EventType+pattern EventType_FAILED = EventType' "FAILED"++pattern EventType_INITIATED_CALL :: EventType+pattern EventType_INITIATED_CALL = EventType' "INITIATED_CALL"++pattern EventType_NO_ANSWER :: EventType+pattern EventType_NO_ANSWER = EventType' "NO_ANSWER"++pattern EventType_RINGING :: EventType+pattern EventType_RINGING = EventType' "RINGING"++{-# COMPLETE+ EventType_ANSWERED,+ EventType_BUSY,+ EventType_COMPLETED_CALL,+ EventType_FAILED,+ EventType_INITIATED_CALL,+ EventType_NO_ANSWER,+ EventType_RINGING,+ EventType'+ #-}
+ gen/Amazonka/SmsVoice/Types/KinesisFirehoseDestination.hs view
@@ -0,0 +1,102 @@+{-# 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.SmsVoice.Types.KinesisFirehoseDestination+-- 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.SmsVoice.Types.KinesisFirehoseDestination 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++-- | An object that contains information about an event destination that+-- sends data to Amazon Kinesis Data Firehose.+--+-- /See:/ 'newKinesisFirehoseDestination' smart constructor.+data KinesisFirehoseDestination = KinesisFirehoseDestination'+ { -- | The Amazon Resource Name (ARN) of an IAM role that can write data to an+ -- Amazon Kinesis Data Firehose stream.+ deliveryStreamArn :: Prelude.Maybe Prelude.Text,+ -- | The Amazon Resource Name (ARN) of the Amazon Kinesis Data Firehose+ -- destination that you want to use in the event destination.+ iamRoleArn :: Prelude.Maybe Prelude.Text+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'KinesisFirehoseDestination' 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:+--+-- 'deliveryStreamArn', 'kinesisFirehoseDestination_deliveryStreamArn' - The Amazon Resource Name (ARN) of an IAM role that can write data to an+-- Amazon Kinesis Data Firehose stream.+--+-- 'iamRoleArn', 'kinesisFirehoseDestination_iamRoleArn' - The Amazon Resource Name (ARN) of the Amazon Kinesis Data Firehose+-- destination that you want to use in the event destination.+newKinesisFirehoseDestination ::+ KinesisFirehoseDestination+newKinesisFirehoseDestination =+ KinesisFirehoseDestination'+ { deliveryStreamArn =+ Prelude.Nothing,+ iamRoleArn = Prelude.Nothing+ }++-- | The Amazon Resource Name (ARN) of an IAM role that can write data to an+-- Amazon Kinesis Data Firehose stream.+kinesisFirehoseDestination_deliveryStreamArn :: Lens.Lens' KinesisFirehoseDestination (Prelude.Maybe Prelude.Text)+kinesisFirehoseDestination_deliveryStreamArn = Lens.lens (\KinesisFirehoseDestination' {deliveryStreamArn} -> deliveryStreamArn) (\s@KinesisFirehoseDestination' {} a -> s {deliveryStreamArn = a} :: KinesisFirehoseDestination)++-- | The Amazon Resource Name (ARN) of the Amazon Kinesis Data Firehose+-- destination that you want to use in the event destination.+kinesisFirehoseDestination_iamRoleArn :: Lens.Lens' KinesisFirehoseDestination (Prelude.Maybe Prelude.Text)+kinesisFirehoseDestination_iamRoleArn = Lens.lens (\KinesisFirehoseDestination' {iamRoleArn} -> iamRoleArn) (\s@KinesisFirehoseDestination' {} a -> s {iamRoleArn = a} :: KinesisFirehoseDestination)++instance Data.FromJSON KinesisFirehoseDestination where+ parseJSON =+ Data.withObject+ "KinesisFirehoseDestination"+ ( \x ->+ KinesisFirehoseDestination'+ Prelude.<$> (x Data..:? "DeliveryStreamArn")+ Prelude.<*> (x Data..:? "IamRoleArn")+ )++instance Prelude.Hashable KinesisFirehoseDestination where+ hashWithSalt _salt KinesisFirehoseDestination' {..} =+ _salt+ `Prelude.hashWithSalt` deliveryStreamArn+ `Prelude.hashWithSalt` iamRoleArn++instance Prelude.NFData KinesisFirehoseDestination where+ rnf KinesisFirehoseDestination' {..} =+ Prelude.rnf deliveryStreamArn+ `Prelude.seq` Prelude.rnf iamRoleArn++instance Data.ToJSON KinesisFirehoseDestination where+ toJSON KinesisFirehoseDestination' {..} =+ Data.object+ ( Prelude.catMaybes+ [ ("DeliveryStreamArn" Data..=)+ Prelude.<$> deliveryStreamArn,+ ("IamRoleArn" Data..=) Prelude.<$> iamRoleArn+ ]+ )
+ gen/Amazonka/SmsVoice/Types/PlainTextMessageType.hs view
@@ -0,0 +1,102 @@+{-# 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.SmsVoice.Types.PlainTextMessageType+-- 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.SmsVoice.Types.PlainTextMessageType 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++-- | An object that defines a message that contains unformatted text.+--+-- /See:/ 'newPlainTextMessageType' smart constructor.+data PlainTextMessageType = PlainTextMessageType'+ { -- | The language to use when delivering the message. For a complete list of+ -- supported languages, see the Amazon Polly Developer Guide.+ languageCode :: Prelude.Maybe Prelude.Text,+ -- | The plain (not SSML-formatted) text to deliver to the recipient.+ text :: Prelude.Maybe Prelude.Text,+ -- | The name of the voice that you want to use to deliver the message. For a+ -- complete list of supported voices, see the Amazon Polly Developer Guide.+ voiceId :: Prelude.Maybe Prelude.Text+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'PlainTextMessageType' 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:+--+-- 'languageCode', 'plainTextMessageType_languageCode' - The language to use when delivering the message. For a complete list of+-- supported languages, see the Amazon Polly Developer Guide.+--+-- 'text', 'plainTextMessageType_text' - The plain (not SSML-formatted) text to deliver to the recipient.+--+-- 'voiceId', 'plainTextMessageType_voiceId' - The name of the voice that you want to use to deliver the message. For a+-- complete list of supported voices, see the Amazon Polly Developer Guide.+newPlainTextMessageType ::+ PlainTextMessageType+newPlainTextMessageType =+ PlainTextMessageType'+ { languageCode =+ Prelude.Nothing,+ text = Prelude.Nothing,+ voiceId = Prelude.Nothing+ }++-- | The language to use when delivering the message. For a complete list of+-- supported languages, see the Amazon Polly Developer Guide.+plainTextMessageType_languageCode :: Lens.Lens' PlainTextMessageType (Prelude.Maybe Prelude.Text)+plainTextMessageType_languageCode = Lens.lens (\PlainTextMessageType' {languageCode} -> languageCode) (\s@PlainTextMessageType' {} a -> s {languageCode = a} :: PlainTextMessageType)++-- | The plain (not SSML-formatted) text to deliver to the recipient.+plainTextMessageType_text :: Lens.Lens' PlainTextMessageType (Prelude.Maybe Prelude.Text)+plainTextMessageType_text = Lens.lens (\PlainTextMessageType' {text} -> text) (\s@PlainTextMessageType' {} a -> s {text = a} :: PlainTextMessageType)++-- | The name of the voice that you want to use to deliver the message. For a+-- complete list of supported voices, see the Amazon Polly Developer Guide.+plainTextMessageType_voiceId :: Lens.Lens' PlainTextMessageType (Prelude.Maybe Prelude.Text)+plainTextMessageType_voiceId = Lens.lens (\PlainTextMessageType' {voiceId} -> voiceId) (\s@PlainTextMessageType' {} a -> s {voiceId = a} :: PlainTextMessageType)++instance Prelude.Hashable PlainTextMessageType where+ hashWithSalt _salt PlainTextMessageType' {..} =+ _salt+ `Prelude.hashWithSalt` languageCode+ `Prelude.hashWithSalt` text+ `Prelude.hashWithSalt` voiceId++instance Prelude.NFData PlainTextMessageType where+ rnf PlainTextMessageType' {..} =+ Prelude.rnf languageCode+ `Prelude.seq` Prelude.rnf text+ `Prelude.seq` Prelude.rnf voiceId++instance Data.ToJSON PlainTextMessageType where+ toJSON PlainTextMessageType' {..} =+ Data.object+ ( Prelude.catMaybes+ [ ("LanguageCode" Data..=) Prelude.<$> languageCode,+ ("Text" Data..=) Prelude.<$> text,+ ("VoiceId" Data..=) Prelude.<$> voiceId+ ]+ )
+ gen/Amazonka/SmsVoice/Types/SSMLMessageType.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.SmsVoice.Types.SSMLMessageType+-- 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.SmsVoice.Types.SSMLMessageType 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++-- | An object that defines a message that contains SSML-formatted text.+--+-- /See:/ 'newSSMLMessageType' smart constructor.+data SSMLMessageType = SSMLMessageType'+ { -- | The language to use when delivering the message. For a complete list of+ -- supported languages, see the Amazon Polly Developer Guide.+ languageCode :: Prelude.Maybe Prelude.Text,+ -- | The SSML-formatted text to deliver to the recipient.+ text :: Prelude.Maybe Prelude.Text,+ -- | The name of the voice that you want to use to deliver the message. For a+ -- complete list of supported voices, see the Amazon Polly Developer Guide.+ voiceId :: Prelude.Maybe Prelude.Text+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'SSMLMessageType' 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:+--+-- 'languageCode', 'sSMLMessageType_languageCode' - The language to use when delivering the message. For a complete list of+-- supported languages, see the Amazon Polly Developer Guide.+--+-- 'text', 'sSMLMessageType_text' - The SSML-formatted text to deliver to the recipient.+--+-- 'voiceId', 'sSMLMessageType_voiceId' - The name of the voice that you want to use to deliver the message. For a+-- complete list of supported voices, see the Amazon Polly Developer Guide.+newSSMLMessageType ::+ SSMLMessageType+newSSMLMessageType =+ SSMLMessageType'+ { languageCode = Prelude.Nothing,+ text = Prelude.Nothing,+ voiceId = Prelude.Nothing+ }++-- | The language to use when delivering the message. For a complete list of+-- supported languages, see the Amazon Polly Developer Guide.+sSMLMessageType_languageCode :: Lens.Lens' SSMLMessageType (Prelude.Maybe Prelude.Text)+sSMLMessageType_languageCode = Lens.lens (\SSMLMessageType' {languageCode} -> languageCode) (\s@SSMLMessageType' {} a -> s {languageCode = a} :: SSMLMessageType)++-- | The SSML-formatted text to deliver to the recipient.+sSMLMessageType_text :: Lens.Lens' SSMLMessageType (Prelude.Maybe Prelude.Text)+sSMLMessageType_text = Lens.lens (\SSMLMessageType' {text} -> text) (\s@SSMLMessageType' {} a -> s {text = a} :: SSMLMessageType)++-- | The name of the voice that you want to use to deliver the message. For a+-- complete list of supported voices, see the Amazon Polly Developer Guide.+sSMLMessageType_voiceId :: Lens.Lens' SSMLMessageType (Prelude.Maybe Prelude.Text)+sSMLMessageType_voiceId = Lens.lens (\SSMLMessageType' {voiceId} -> voiceId) (\s@SSMLMessageType' {} a -> s {voiceId = a} :: SSMLMessageType)++instance Prelude.Hashable SSMLMessageType where+ hashWithSalt _salt SSMLMessageType' {..} =+ _salt+ `Prelude.hashWithSalt` languageCode+ `Prelude.hashWithSalt` text+ `Prelude.hashWithSalt` voiceId++instance Prelude.NFData SSMLMessageType where+ rnf SSMLMessageType' {..} =+ Prelude.rnf languageCode+ `Prelude.seq` Prelude.rnf text+ `Prelude.seq` Prelude.rnf voiceId++instance Data.ToJSON SSMLMessageType where+ toJSON SSMLMessageType' {..} =+ Data.object+ ( Prelude.catMaybes+ [ ("LanguageCode" Data..=) Prelude.<$> languageCode,+ ("Text" Data..=) Prelude.<$> text,+ ("VoiceId" Data..=) Prelude.<$> voiceId+ ]+ )
+ gen/Amazonka/SmsVoice/Types/SnsDestination.hs view
@@ -0,0 +1,78 @@+{-# 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.SmsVoice.Types.SnsDestination+-- 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.SmsVoice.Types.SnsDestination 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++-- | An object that contains information about an event destination that+-- sends data to Amazon SNS.+--+-- /See:/ 'newSnsDestination' smart constructor.+data SnsDestination = SnsDestination'+ { -- | The Amazon Resource Name (ARN) of the Amazon SNS topic that you want to+ -- publish events to.+ topicArn :: Prelude.Maybe Prelude.Text+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'SnsDestination' 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:+--+-- 'topicArn', 'snsDestination_topicArn' - The Amazon Resource Name (ARN) of the Amazon SNS topic that you want to+-- publish events to.+newSnsDestination ::+ SnsDestination+newSnsDestination =+ SnsDestination' {topicArn = Prelude.Nothing}++-- | The Amazon Resource Name (ARN) of the Amazon SNS topic that you want to+-- publish events to.+snsDestination_topicArn :: Lens.Lens' SnsDestination (Prelude.Maybe Prelude.Text)+snsDestination_topicArn = Lens.lens (\SnsDestination' {topicArn} -> topicArn) (\s@SnsDestination' {} a -> s {topicArn = a} :: SnsDestination)++instance Data.FromJSON SnsDestination where+ parseJSON =+ Data.withObject+ "SnsDestination"+ ( \x ->+ SnsDestination' Prelude.<$> (x Data..:? "TopicArn")+ )++instance Prelude.Hashable SnsDestination where+ hashWithSalt _salt SnsDestination' {..} =+ _salt `Prelude.hashWithSalt` topicArn++instance Prelude.NFData SnsDestination where+ rnf SnsDestination' {..} = Prelude.rnf topicArn++instance Data.ToJSON SnsDestination where+ toJSON SnsDestination' {..} =+ Data.object+ ( Prelude.catMaybes+ [("TopicArn" Data..=) Prelude.<$> topicArn]+ )
+ gen/Amazonka/SmsVoice/Types/VoiceMessageContent.hs view
@@ -0,0 +1,99 @@+{-# 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.SmsVoice.Types.VoiceMessageContent+-- 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.SmsVoice.Types.VoiceMessageContent 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.SmsVoice.Types.CallInstructionsMessageType+import Amazonka.SmsVoice.Types.PlainTextMessageType+import Amazonka.SmsVoice.Types.SSMLMessageType++-- | An object that contains a voice message and information about the+-- recipient that you want to send it to.+--+-- /See:/ 'newVoiceMessageContent' smart constructor.+data VoiceMessageContent = VoiceMessageContent'+ { callInstructionsMessage :: Prelude.Maybe CallInstructionsMessageType,+ plainTextMessage :: Prelude.Maybe PlainTextMessageType,+ sSMLMessage :: Prelude.Maybe SSMLMessageType+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'VoiceMessageContent' 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:+--+-- 'callInstructionsMessage', 'voiceMessageContent_callInstructionsMessage' - Undocumented member.+--+-- 'plainTextMessage', 'voiceMessageContent_plainTextMessage' - Undocumented member.+--+-- 'sSMLMessage', 'voiceMessageContent_sSMLMessage' - Undocumented member.+newVoiceMessageContent ::+ VoiceMessageContent+newVoiceMessageContent =+ VoiceMessageContent'+ { callInstructionsMessage =+ Prelude.Nothing,+ plainTextMessage = Prelude.Nothing,+ sSMLMessage = Prelude.Nothing+ }++-- | Undocumented member.+voiceMessageContent_callInstructionsMessage :: Lens.Lens' VoiceMessageContent (Prelude.Maybe CallInstructionsMessageType)+voiceMessageContent_callInstructionsMessage = Lens.lens (\VoiceMessageContent' {callInstructionsMessage} -> callInstructionsMessage) (\s@VoiceMessageContent' {} a -> s {callInstructionsMessage = a} :: VoiceMessageContent)++-- | Undocumented member.+voiceMessageContent_plainTextMessage :: Lens.Lens' VoiceMessageContent (Prelude.Maybe PlainTextMessageType)+voiceMessageContent_plainTextMessage = Lens.lens (\VoiceMessageContent' {plainTextMessage} -> plainTextMessage) (\s@VoiceMessageContent' {} a -> s {plainTextMessage = a} :: VoiceMessageContent)++-- | Undocumented member.+voiceMessageContent_sSMLMessage :: Lens.Lens' VoiceMessageContent (Prelude.Maybe SSMLMessageType)+voiceMessageContent_sSMLMessage = Lens.lens (\VoiceMessageContent' {sSMLMessage} -> sSMLMessage) (\s@VoiceMessageContent' {} a -> s {sSMLMessage = a} :: VoiceMessageContent)++instance Prelude.Hashable VoiceMessageContent where+ hashWithSalt _salt VoiceMessageContent' {..} =+ _salt+ `Prelude.hashWithSalt` callInstructionsMessage+ `Prelude.hashWithSalt` plainTextMessage+ `Prelude.hashWithSalt` sSMLMessage++instance Prelude.NFData VoiceMessageContent where+ rnf VoiceMessageContent' {..} =+ Prelude.rnf callInstructionsMessage+ `Prelude.seq` Prelude.rnf plainTextMessage+ `Prelude.seq` Prelude.rnf sSMLMessage++instance Data.ToJSON VoiceMessageContent where+ toJSON VoiceMessageContent' {..} =+ Data.object+ ( Prelude.catMaybes+ [ ("CallInstructionsMessage" Data..=)+ Prelude.<$> callInstructionsMessage,+ ("PlainTextMessage" Data..=)+ Prelude.<$> plainTextMessage,+ ("SSMLMessage" Data..=) Prelude.<$> sSMLMessage+ ]+ )
+ gen/Amazonka/SmsVoice/UpdateConfigurationSetEventDestination.hs view
@@ -0,0 +1,231 @@+{-# 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.SmsVoice.UpdateConfigurationSetEventDestination+-- Copyright : (c) 2013-2023 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Update an event destination in a configuration set. An event destination+-- is a location that you publish information about your voice calls to.+-- For example, you can log an event to an Amazon CloudWatch destination+-- when a call fails.+module Amazonka.SmsVoice.UpdateConfigurationSetEventDestination+ ( -- * Creating a Request+ UpdateConfigurationSetEventDestination (..),+ newUpdateConfigurationSetEventDestination,++ -- * Request Lenses+ updateConfigurationSetEventDestination_eventDestination,+ updateConfigurationSetEventDestination_eventDestinationName,+ updateConfigurationSetEventDestination_configurationSetName,++ -- * Destructuring the Response+ UpdateConfigurationSetEventDestinationResponse (..),+ newUpdateConfigurationSetEventDestinationResponse,++ -- * Response Lenses+ updateConfigurationSetEventDestinationResponse_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.SmsVoice.Types++-- | UpdateConfigurationSetEventDestinationRequest+--+-- /See:/ 'newUpdateConfigurationSetEventDestination' smart constructor.+data UpdateConfigurationSetEventDestination = UpdateConfigurationSetEventDestination'+ { eventDestination :: Prelude.Maybe EventDestinationDefinition,+ -- | EventDestinationName+ eventDestinationName :: Prelude.Text,+ -- | ConfigurationSetName+ configurationSetName :: Prelude.Text+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'UpdateConfigurationSetEventDestination' 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:+--+-- 'eventDestination', 'updateConfigurationSetEventDestination_eventDestination' - Undocumented member.+--+-- 'eventDestinationName', 'updateConfigurationSetEventDestination_eventDestinationName' - EventDestinationName+--+-- 'configurationSetName', 'updateConfigurationSetEventDestination_configurationSetName' - ConfigurationSetName+newUpdateConfigurationSetEventDestination ::+ -- | 'eventDestinationName'+ Prelude.Text ->+ -- | 'configurationSetName'+ Prelude.Text ->+ UpdateConfigurationSetEventDestination+newUpdateConfigurationSetEventDestination+ pEventDestinationName_+ pConfigurationSetName_ =+ UpdateConfigurationSetEventDestination'+ { eventDestination =+ Prelude.Nothing,+ eventDestinationName =+ pEventDestinationName_,+ configurationSetName =+ pConfigurationSetName_+ }++-- | Undocumented member.+updateConfigurationSetEventDestination_eventDestination :: Lens.Lens' UpdateConfigurationSetEventDestination (Prelude.Maybe EventDestinationDefinition)+updateConfigurationSetEventDestination_eventDestination = Lens.lens (\UpdateConfigurationSetEventDestination' {eventDestination} -> eventDestination) (\s@UpdateConfigurationSetEventDestination' {} a -> s {eventDestination = a} :: UpdateConfigurationSetEventDestination)++-- | EventDestinationName+updateConfigurationSetEventDestination_eventDestinationName :: Lens.Lens' UpdateConfigurationSetEventDestination Prelude.Text+updateConfigurationSetEventDestination_eventDestinationName = Lens.lens (\UpdateConfigurationSetEventDestination' {eventDestinationName} -> eventDestinationName) (\s@UpdateConfigurationSetEventDestination' {} a -> s {eventDestinationName = a} :: UpdateConfigurationSetEventDestination)++-- | ConfigurationSetName+updateConfigurationSetEventDestination_configurationSetName :: Lens.Lens' UpdateConfigurationSetEventDestination Prelude.Text+updateConfigurationSetEventDestination_configurationSetName = Lens.lens (\UpdateConfigurationSetEventDestination' {configurationSetName} -> configurationSetName) (\s@UpdateConfigurationSetEventDestination' {} a -> s {configurationSetName = a} :: UpdateConfigurationSetEventDestination)++instance+ Core.AWSRequest+ UpdateConfigurationSetEventDestination+ where+ type+ AWSResponse+ UpdateConfigurationSetEventDestination =+ UpdateConfigurationSetEventDestinationResponse+ request overrides =+ Request.putJSON (overrides defaultService)+ response =+ Response.receiveEmpty+ ( \s h x ->+ UpdateConfigurationSetEventDestinationResponse'+ Prelude.<$> (Prelude.pure (Prelude.fromEnum s))+ )++instance+ Prelude.Hashable+ UpdateConfigurationSetEventDestination+ where+ hashWithSalt+ _salt+ UpdateConfigurationSetEventDestination' {..} =+ _salt+ `Prelude.hashWithSalt` eventDestination+ `Prelude.hashWithSalt` eventDestinationName+ `Prelude.hashWithSalt` configurationSetName++instance+ Prelude.NFData+ UpdateConfigurationSetEventDestination+ where+ rnf UpdateConfigurationSetEventDestination' {..} =+ Prelude.rnf eventDestination+ `Prelude.seq` Prelude.rnf eventDestinationName+ `Prelude.seq` Prelude.rnf configurationSetName++instance+ Data.ToHeaders+ UpdateConfigurationSetEventDestination+ where+ toHeaders =+ Prelude.const+ ( Prelude.mconcat+ [ "Content-Type"+ Data.=# ( "application/x-amz-json-1.1" ::+ Prelude.ByteString+ )+ ]+ )++instance+ Data.ToJSON+ UpdateConfigurationSetEventDestination+ where+ toJSON UpdateConfigurationSetEventDestination' {..} =+ Data.object+ ( Prelude.catMaybes+ [ ("EventDestination" Data..=)+ Prelude.<$> eventDestination+ ]+ )++instance+ Data.ToPath+ UpdateConfigurationSetEventDestination+ where+ toPath UpdateConfigurationSetEventDestination' {..} =+ Prelude.mconcat+ [ "/v1/sms-voice/configuration-sets/",+ Data.toBS configurationSetName,+ "/event-destinations/",+ Data.toBS eventDestinationName+ ]++instance+ Data.ToQuery+ UpdateConfigurationSetEventDestination+ where+ toQuery = Prelude.const Prelude.mempty++-- | An empty object that indicates that the event destination was updated+-- successfully.+--+-- /See:/ 'newUpdateConfigurationSetEventDestinationResponse' smart constructor.+data UpdateConfigurationSetEventDestinationResponse = UpdateConfigurationSetEventDestinationResponse'+ { -- | The response's http status code.+ httpStatus :: Prelude.Int+ }+ deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic)++-- |+-- Create a value of 'UpdateConfigurationSetEventDestinationResponse' 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', 'updateConfigurationSetEventDestinationResponse_httpStatus' - The response's http status code.+newUpdateConfigurationSetEventDestinationResponse ::+ -- | 'httpStatus'+ Prelude.Int ->+ UpdateConfigurationSetEventDestinationResponse+newUpdateConfigurationSetEventDestinationResponse+ pHttpStatus_ =+ UpdateConfigurationSetEventDestinationResponse'+ { httpStatus =+ pHttpStatus_+ }++-- | The response's http status code.+updateConfigurationSetEventDestinationResponse_httpStatus :: Lens.Lens' UpdateConfigurationSetEventDestinationResponse Prelude.Int+updateConfigurationSetEventDestinationResponse_httpStatus = Lens.lens (\UpdateConfigurationSetEventDestinationResponse' {httpStatus} -> httpStatus) (\s@UpdateConfigurationSetEventDestinationResponse' {} a -> s {httpStatus = a} :: UpdateConfigurationSetEventDestinationResponse)++instance+ Prelude.NFData+ UpdateConfigurationSetEventDestinationResponse+ where+ rnf+ UpdateConfigurationSetEventDestinationResponse' {..} =+ Prelude.rnf httpStatus
+ gen/Amazonka/SmsVoice/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.SmsVoice.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.SmsVoice.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.SmsVoice.Lens+import Amazonka.SmsVoice.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.SmsVoice+import Test.Amazonka.SmsVoice.Internal+import Test.Tasty++main :: IO ()+main =+ defaultMain $+ testGroup+ "SmsVoice"+ [ testGroup "tests" tests,+ testGroup "fixtures" fixtures+ ]
+ test/Test/Amazonka/Gen/SmsVoice.hs view
@@ -0,0 +1,198 @@+{-# 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.SmsVoice+-- 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.SmsVoice where++import Amazonka.SmsVoice+import qualified Data.Proxy as Proxy+import Test.Amazonka.Fixture+import Test.Amazonka.Prelude+import Test.Amazonka.SmsVoice.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"+-- [ requestCreateConfigurationSet $+-- newCreateConfigurationSet+--+-- , requestCreateConfigurationSetEventDestination $+-- newCreateConfigurationSetEventDestination+--+-- , requestDeleteConfigurationSet $+-- newDeleteConfigurationSet+--+-- , requestDeleteConfigurationSetEventDestination $+-- newDeleteConfigurationSetEventDestination+--+-- , requestGetConfigurationSetEventDestinations $+-- newGetConfigurationSetEventDestinations+--+-- , requestListConfigurationSets $+-- newListConfigurationSets+--+-- , requestSendVoiceMessage $+-- newSendVoiceMessage+--+-- , requestUpdateConfigurationSetEventDestination $+-- newUpdateConfigurationSetEventDestination+--+-- ]++-- , testGroup "response"+-- [ responseCreateConfigurationSet $+-- newCreateConfigurationSetResponse+--+-- , responseCreateConfigurationSetEventDestination $+-- newCreateConfigurationSetEventDestinationResponse+--+-- , responseDeleteConfigurationSet $+-- newDeleteConfigurationSetResponse+--+-- , responseDeleteConfigurationSetEventDestination $+-- newDeleteConfigurationSetEventDestinationResponse+--+-- , responseGetConfigurationSetEventDestinations $+-- newGetConfigurationSetEventDestinationsResponse+--+-- , responseListConfigurationSets $+-- newListConfigurationSetsResponse+--+-- , responseSendVoiceMessage $+-- newSendVoiceMessageResponse+--+-- , responseUpdateConfigurationSetEventDestination $+-- newUpdateConfigurationSetEventDestinationResponse+--+-- ]+-- ]++-- Requests++requestCreateConfigurationSet :: CreateConfigurationSet -> TestTree+requestCreateConfigurationSet =+ req+ "CreateConfigurationSet"+ "fixture/CreateConfigurationSet.yaml"++requestCreateConfigurationSetEventDestination :: CreateConfigurationSetEventDestination -> TestTree+requestCreateConfigurationSetEventDestination =+ req+ "CreateConfigurationSetEventDestination"+ "fixture/CreateConfigurationSetEventDestination.yaml"++requestDeleteConfigurationSet :: DeleteConfigurationSet -> TestTree+requestDeleteConfigurationSet =+ req+ "DeleteConfigurationSet"+ "fixture/DeleteConfigurationSet.yaml"++requestDeleteConfigurationSetEventDestination :: DeleteConfigurationSetEventDestination -> TestTree+requestDeleteConfigurationSetEventDestination =+ req+ "DeleteConfigurationSetEventDestination"+ "fixture/DeleteConfigurationSetEventDestination.yaml"++requestGetConfigurationSetEventDestinations :: GetConfigurationSetEventDestinations -> TestTree+requestGetConfigurationSetEventDestinations =+ req+ "GetConfigurationSetEventDestinations"+ "fixture/GetConfigurationSetEventDestinations.yaml"++requestListConfigurationSets :: ListConfigurationSets -> TestTree+requestListConfigurationSets =+ req+ "ListConfigurationSets"+ "fixture/ListConfigurationSets.yaml"++requestSendVoiceMessage :: SendVoiceMessage -> TestTree+requestSendVoiceMessage =+ req+ "SendVoiceMessage"+ "fixture/SendVoiceMessage.yaml"++requestUpdateConfigurationSetEventDestination :: UpdateConfigurationSetEventDestination -> TestTree+requestUpdateConfigurationSetEventDestination =+ req+ "UpdateConfigurationSetEventDestination"+ "fixture/UpdateConfigurationSetEventDestination.yaml"++-- Responses++responseCreateConfigurationSet :: CreateConfigurationSetResponse -> TestTree+responseCreateConfigurationSet =+ res+ "CreateConfigurationSetResponse"+ "fixture/CreateConfigurationSetResponse.proto"+ defaultService+ (Proxy.Proxy :: Proxy.Proxy CreateConfigurationSet)++responseCreateConfigurationSetEventDestination :: CreateConfigurationSetEventDestinationResponse -> TestTree+responseCreateConfigurationSetEventDestination =+ res+ "CreateConfigurationSetEventDestinationResponse"+ "fixture/CreateConfigurationSetEventDestinationResponse.proto"+ defaultService+ (Proxy.Proxy :: Proxy.Proxy CreateConfigurationSetEventDestination)++responseDeleteConfigurationSet :: DeleteConfigurationSetResponse -> TestTree+responseDeleteConfigurationSet =+ res+ "DeleteConfigurationSetResponse"+ "fixture/DeleteConfigurationSetResponse.proto"+ defaultService+ (Proxy.Proxy :: Proxy.Proxy DeleteConfigurationSet)++responseDeleteConfigurationSetEventDestination :: DeleteConfigurationSetEventDestinationResponse -> TestTree+responseDeleteConfigurationSetEventDestination =+ res+ "DeleteConfigurationSetEventDestinationResponse"+ "fixture/DeleteConfigurationSetEventDestinationResponse.proto"+ defaultService+ (Proxy.Proxy :: Proxy.Proxy DeleteConfigurationSetEventDestination)++responseGetConfigurationSetEventDestinations :: GetConfigurationSetEventDestinationsResponse -> TestTree+responseGetConfigurationSetEventDestinations =+ res+ "GetConfigurationSetEventDestinationsResponse"+ "fixture/GetConfigurationSetEventDestinationsResponse.proto"+ defaultService+ (Proxy.Proxy :: Proxy.Proxy GetConfigurationSetEventDestinations)++responseListConfigurationSets :: ListConfigurationSetsResponse -> TestTree+responseListConfigurationSets =+ res+ "ListConfigurationSetsResponse"+ "fixture/ListConfigurationSetsResponse.proto"+ defaultService+ (Proxy.Proxy :: Proxy.Proxy ListConfigurationSets)++responseSendVoiceMessage :: SendVoiceMessageResponse -> TestTree+responseSendVoiceMessage =+ res+ "SendVoiceMessageResponse"+ "fixture/SendVoiceMessageResponse.proto"+ defaultService+ (Proxy.Proxy :: Proxy.Proxy SendVoiceMessage)++responseUpdateConfigurationSetEventDestination :: UpdateConfigurationSetEventDestinationResponse -> TestTree+responseUpdateConfigurationSetEventDestination =+ res+ "UpdateConfigurationSetEventDestinationResponse"+ "fixture/UpdateConfigurationSetEventDestinationResponse.proto"+ defaultService+ (Proxy.Proxy :: Proxy.Proxy UpdateConfigurationSetEventDestination)
+ test/Test/Amazonka/SmsVoice.hs view
@@ -0,0 +1,20 @@+-- |+-- Module : Test.Amazonka.SmsVoice+-- 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.SmsVoice+ ( tests,+ fixtures,+ )+where++import Test.Tasty (TestTree)++tests :: [TestTree]+tests = []++fixtures :: [TestTree]+fixtures = []
+ test/Test/Amazonka/SmsVoice/Internal.hs view
@@ -0,0 +1,8 @@+-- |+-- Module : Test.Amazonka.SmsVoice.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.SmsVoice.Internal where