amazonka-sns-1.6.0: test/Test/AWS/Gen/SNS.hs
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
-- Derived from AWS service descriptions, licensed under Apache 2.0.
-- |
-- Module : Test.AWS.Gen.SNS
-- Copyright : (c) 2013-2018 Brendan Hay
-- License : Mozilla Public License, v. 2.0.
-- Maintainer : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability : auto-generated
-- Portability : non-portable (GHC extensions)
--
module Test.AWS.Gen.SNS where
import Data.Proxy
import Network.AWS.SNS
import Test.AWS.Fixture
import Test.AWS.Prelude
import Test.AWS.SNS.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"
-- [ requestListPhoneNumbersOptedOut $
-- listPhoneNumbersOptedOut
--
-- , requestDeleteEndpoint $
-- deleteEndpoint
--
-- , requestRemovePermission $
-- removePermission
--
-- , requestDeleteTopic $
-- deleteTopic
--
-- , requestSetSMSAttributes $
-- setSMSAttributes
--
-- , requestListTopics $
-- listTopics
--
-- , requestCreatePlatformEndpoint $
-- createPlatformEndpoint
--
-- , requestSetPlatformApplicationAttributes $
-- setPlatformApplicationAttributes
--
-- , requestListSubscriptionsByTopic $
-- listSubscriptionsByTopic
--
-- , requestGetTopicAttributes $
-- getTopicAttributes
--
-- , requestOptInPhoneNumber $
-- optInPhoneNumber
--
-- , requestCreatePlatformApplication $
-- createPlatformApplication
--
-- , requestGetPlatformApplicationAttributes $
-- getPlatformApplicationAttributes
--
-- , requestListEndpointsByPlatformApplication $
-- listEndpointsByPlatformApplication
--
-- , requestSetTopicAttributes $
-- setTopicAttributes
--
-- , requestDeletePlatformApplication $
-- deletePlatformApplication
--
-- , requestGetSMSAttributes $
-- getSMSAttributes
--
-- , requestListPlatformApplications $
-- listPlatformApplications
--
-- , requestAddPermission $
-- addPermission
--
-- , requestGetEndpointAttributes $
-- getEndpointAttributes
--
-- , requestListSubscriptions $
-- listSubscriptions
--
-- , requestGetSubscriptionAttributes $
-- getSubscriptionAttributes
--
-- , requestCreateTopic $
-- createTopic
--
-- , requestCheckIfPhoneNumberIsOptedOut $
-- checkIfPhoneNumberIsOptedOut
--
-- , requestSubscribe $
-- subscribe
--
-- , requestUnsubscribe $
-- unsubscribe
--
-- , requestSetEndpointAttributes $
-- setEndpointAttributes
--
-- , requestSetSubscriptionAttributes $
-- setSubscriptionAttributes
--
-- , requestConfirmSubscription $
-- confirmSubscription
--
-- , requestPublish $
-- publish
--
-- ]
-- , testGroup "response"
-- [ responseListPhoneNumbersOptedOut $
-- listPhoneNumbersOptedOutResponse
--
-- , responseDeleteEndpoint $
-- deleteEndpointResponse
--
-- , responseRemovePermission $
-- removePermissionResponse
--
-- , responseDeleteTopic $
-- deleteTopicResponse
--
-- , responseSetSMSAttributes $
-- setSMSAttributesResponse
--
-- , responseListTopics $
-- listTopicsResponse
--
-- , responseCreatePlatformEndpoint $
-- createPlatformEndpointResponse
--
-- , responseSetPlatformApplicationAttributes $
-- setPlatformApplicationAttributesResponse
--
-- , responseListSubscriptionsByTopic $
-- listSubscriptionsByTopicResponse
--
-- , responseGetTopicAttributes $
-- getTopicAttributesResponse
--
-- , responseOptInPhoneNumber $
-- optInPhoneNumberResponse
--
-- , responseCreatePlatformApplication $
-- createPlatformApplicationResponse
--
-- , responseGetPlatformApplicationAttributes $
-- getPlatformApplicationAttributesResponse
--
-- , responseListEndpointsByPlatformApplication $
-- listEndpointsByPlatformApplicationResponse
--
-- , responseSetTopicAttributes $
-- setTopicAttributesResponse
--
-- , responseDeletePlatformApplication $
-- deletePlatformApplicationResponse
--
-- , responseGetSMSAttributes $
-- getSMSAttributesResponse
--
-- , responseListPlatformApplications $
-- listPlatformApplicationsResponse
--
-- , responseAddPermission $
-- addPermissionResponse
--
-- , responseGetEndpointAttributes $
-- getEndpointAttributesResponse
--
-- , responseListSubscriptions $
-- listSubscriptionsResponse
--
-- , responseGetSubscriptionAttributes $
-- getSubscriptionAttributesResponse
--
-- , responseCreateTopic $
-- createTopicResponse
--
-- , responseCheckIfPhoneNumberIsOptedOut $
-- checkIfPhoneNumberIsOptedOutResponse
--
-- , responseSubscribe $
-- subscribeResponse
--
-- , responseUnsubscribe $
-- unsubscribeResponse
--
-- , responseSetEndpointAttributes $
-- setEndpointAttributesResponse
--
-- , responseSetSubscriptionAttributes $
-- setSubscriptionAttributesResponse
--
-- , responseConfirmSubscription $
-- confirmSubscriptionResponse
--
-- , responsePublish $
-- publishResponse
--
-- ]
-- ]
-- Requests
requestListPhoneNumbersOptedOut :: ListPhoneNumbersOptedOut -> TestTree
requestListPhoneNumbersOptedOut = req
"ListPhoneNumbersOptedOut"
"fixture/ListPhoneNumbersOptedOut.yaml"
requestDeleteEndpoint :: DeleteEndpoint -> TestTree
requestDeleteEndpoint = req
"DeleteEndpoint"
"fixture/DeleteEndpoint.yaml"
requestRemovePermission :: RemovePermission -> TestTree
requestRemovePermission = req
"RemovePermission"
"fixture/RemovePermission.yaml"
requestDeleteTopic :: DeleteTopic -> TestTree
requestDeleteTopic = req
"DeleteTopic"
"fixture/DeleteTopic.yaml"
requestSetSMSAttributes :: SetSMSAttributes -> TestTree
requestSetSMSAttributes = req
"SetSMSAttributes"
"fixture/SetSMSAttributes.yaml"
requestListTopics :: ListTopics -> TestTree
requestListTopics = req
"ListTopics"
"fixture/ListTopics.yaml"
requestCreatePlatformEndpoint :: CreatePlatformEndpoint -> TestTree
requestCreatePlatformEndpoint = req
"CreatePlatformEndpoint"
"fixture/CreatePlatformEndpoint.yaml"
requestSetPlatformApplicationAttributes :: SetPlatformApplicationAttributes -> TestTree
requestSetPlatformApplicationAttributes = req
"SetPlatformApplicationAttributes"
"fixture/SetPlatformApplicationAttributes.yaml"
requestListSubscriptionsByTopic :: ListSubscriptionsByTopic -> TestTree
requestListSubscriptionsByTopic = req
"ListSubscriptionsByTopic"
"fixture/ListSubscriptionsByTopic.yaml"
requestGetTopicAttributes :: GetTopicAttributes -> TestTree
requestGetTopicAttributes = req
"GetTopicAttributes"
"fixture/GetTopicAttributes.yaml"
requestOptInPhoneNumber :: OptInPhoneNumber -> TestTree
requestOptInPhoneNumber = req
"OptInPhoneNumber"
"fixture/OptInPhoneNumber.yaml"
requestCreatePlatformApplication :: CreatePlatformApplication -> TestTree
requestCreatePlatformApplication = req
"CreatePlatformApplication"
"fixture/CreatePlatformApplication.yaml"
requestGetPlatformApplicationAttributes :: GetPlatformApplicationAttributes -> TestTree
requestGetPlatformApplicationAttributes = req
"GetPlatformApplicationAttributes"
"fixture/GetPlatformApplicationAttributes.yaml"
requestListEndpointsByPlatformApplication :: ListEndpointsByPlatformApplication -> TestTree
requestListEndpointsByPlatformApplication = req
"ListEndpointsByPlatformApplication"
"fixture/ListEndpointsByPlatformApplication.yaml"
requestSetTopicAttributes :: SetTopicAttributes -> TestTree
requestSetTopicAttributes = req
"SetTopicAttributes"
"fixture/SetTopicAttributes.yaml"
requestDeletePlatformApplication :: DeletePlatformApplication -> TestTree
requestDeletePlatformApplication = req
"DeletePlatformApplication"
"fixture/DeletePlatformApplication.yaml"
requestGetSMSAttributes :: GetSMSAttributes -> TestTree
requestGetSMSAttributes = req
"GetSMSAttributes"
"fixture/GetSMSAttributes.yaml"
requestListPlatformApplications :: ListPlatformApplications -> TestTree
requestListPlatformApplications = req
"ListPlatformApplications"
"fixture/ListPlatformApplications.yaml"
requestAddPermission :: AddPermission -> TestTree
requestAddPermission = req
"AddPermission"
"fixture/AddPermission.yaml"
requestGetEndpointAttributes :: GetEndpointAttributes -> TestTree
requestGetEndpointAttributes = req
"GetEndpointAttributes"
"fixture/GetEndpointAttributes.yaml"
requestListSubscriptions :: ListSubscriptions -> TestTree
requestListSubscriptions = req
"ListSubscriptions"
"fixture/ListSubscriptions.yaml"
requestGetSubscriptionAttributes :: GetSubscriptionAttributes -> TestTree
requestGetSubscriptionAttributes = req
"GetSubscriptionAttributes"
"fixture/GetSubscriptionAttributes.yaml"
requestCreateTopic :: CreateTopic -> TestTree
requestCreateTopic = req
"CreateTopic"
"fixture/CreateTopic.yaml"
requestCheckIfPhoneNumberIsOptedOut :: CheckIfPhoneNumberIsOptedOut -> TestTree
requestCheckIfPhoneNumberIsOptedOut = req
"CheckIfPhoneNumberIsOptedOut"
"fixture/CheckIfPhoneNumberIsOptedOut.yaml"
requestSubscribe :: Subscribe -> TestTree
requestSubscribe = req
"Subscribe"
"fixture/Subscribe.yaml"
requestUnsubscribe :: Unsubscribe -> TestTree
requestUnsubscribe = req
"Unsubscribe"
"fixture/Unsubscribe.yaml"
requestSetEndpointAttributes :: SetEndpointAttributes -> TestTree
requestSetEndpointAttributes = req
"SetEndpointAttributes"
"fixture/SetEndpointAttributes.yaml"
requestSetSubscriptionAttributes :: SetSubscriptionAttributes -> TestTree
requestSetSubscriptionAttributes = req
"SetSubscriptionAttributes"
"fixture/SetSubscriptionAttributes.yaml"
requestConfirmSubscription :: ConfirmSubscription -> TestTree
requestConfirmSubscription = req
"ConfirmSubscription"
"fixture/ConfirmSubscription.yaml"
requestPublish :: Publish -> TestTree
requestPublish = req
"Publish"
"fixture/Publish.yaml"
-- Responses
responseListPhoneNumbersOptedOut :: ListPhoneNumbersOptedOutResponse -> TestTree
responseListPhoneNumbersOptedOut = res
"ListPhoneNumbersOptedOutResponse"
"fixture/ListPhoneNumbersOptedOutResponse.proto"
sns
(Proxy :: Proxy ListPhoneNumbersOptedOut)
responseDeleteEndpoint :: DeleteEndpointResponse -> TestTree
responseDeleteEndpoint = res
"DeleteEndpointResponse"
"fixture/DeleteEndpointResponse.proto"
sns
(Proxy :: Proxy DeleteEndpoint)
responseRemovePermission :: RemovePermissionResponse -> TestTree
responseRemovePermission = res
"RemovePermissionResponse"
"fixture/RemovePermissionResponse.proto"
sns
(Proxy :: Proxy RemovePermission)
responseDeleteTopic :: DeleteTopicResponse -> TestTree
responseDeleteTopic = res
"DeleteTopicResponse"
"fixture/DeleteTopicResponse.proto"
sns
(Proxy :: Proxy DeleteTopic)
responseSetSMSAttributes :: SetSMSAttributesResponse -> TestTree
responseSetSMSAttributes = res
"SetSMSAttributesResponse"
"fixture/SetSMSAttributesResponse.proto"
sns
(Proxy :: Proxy SetSMSAttributes)
responseListTopics :: ListTopicsResponse -> TestTree
responseListTopics = res
"ListTopicsResponse"
"fixture/ListTopicsResponse.proto"
sns
(Proxy :: Proxy ListTopics)
responseCreatePlatformEndpoint :: CreatePlatformEndpointResponse -> TestTree
responseCreatePlatformEndpoint = res
"CreatePlatformEndpointResponse"
"fixture/CreatePlatformEndpointResponse.proto"
sns
(Proxy :: Proxy CreatePlatformEndpoint)
responseSetPlatformApplicationAttributes :: SetPlatformApplicationAttributesResponse -> TestTree
responseSetPlatformApplicationAttributes = res
"SetPlatformApplicationAttributesResponse"
"fixture/SetPlatformApplicationAttributesResponse.proto"
sns
(Proxy :: Proxy SetPlatformApplicationAttributes)
responseListSubscriptionsByTopic :: ListSubscriptionsByTopicResponse -> TestTree
responseListSubscriptionsByTopic = res
"ListSubscriptionsByTopicResponse"
"fixture/ListSubscriptionsByTopicResponse.proto"
sns
(Proxy :: Proxy ListSubscriptionsByTopic)
responseGetTopicAttributes :: GetTopicAttributesResponse -> TestTree
responseGetTopicAttributes = res
"GetTopicAttributesResponse"
"fixture/GetTopicAttributesResponse.proto"
sns
(Proxy :: Proxy GetTopicAttributes)
responseOptInPhoneNumber :: OptInPhoneNumberResponse -> TestTree
responseOptInPhoneNumber = res
"OptInPhoneNumberResponse"
"fixture/OptInPhoneNumberResponse.proto"
sns
(Proxy :: Proxy OptInPhoneNumber)
responseCreatePlatformApplication :: CreatePlatformApplicationResponse -> TestTree
responseCreatePlatformApplication = res
"CreatePlatformApplicationResponse"
"fixture/CreatePlatformApplicationResponse.proto"
sns
(Proxy :: Proxy CreatePlatformApplication)
responseGetPlatformApplicationAttributes :: GetPlatformApplicationAttributesResponse -> TestTree
responseGetPlatformApplicationAttributes = res
"GetPlatformApplicationAttributesResponse"
"fixture/GetPlatformApplicationAttributesResponse.proto"
sns
(Proxy :: Proxy GetPlatformApplicationAttributes)
responseListEndpointsByPlatformApplication :: ListEndpointsByPlatformApplicationResponse -> TestTree
responseListEndpointsByPlatformApplication = res
"ListEndpointsByPlatformApplicationResponse"
"fixture/ListEndpointsByPlatformApplicationResponse.proto"
sns
(Proxy :: Proxy ListEndpointsByPlatformApplication)
responseSetTopicAttributes :: SetTopicAttributesResponse -> TestTree
responseSetTopicAttributes = res
"SetTopicAttributesResponse"
"fixture/SetTopicAttributesResponse.proto"
sns
(Proxy :: Proxy SetTopicAttributes)
responseDeletePlatformApplication :: DeletePlatformApplicationResponse -> TestTree
responseDeletePlatformApplication = res
"DeletePlatformApplicationResponse"
"fixture/DeletePlatformApplicationResponse.proto"
sns
(Proxy :: Proxy DeletePlatformApplication)
responseGetSMSAttributes :: GetSMSAttributesResponse -> TestTree
responseGetSMSAttributes = res
"GetSMSAttributesResponse"
"fixture/GetSMSAttributesResponse.proto"
sns
(Proxy :: Proxy GetSMSAttributes)
responseListPlatformApplications :: ListPlatformApplicationsResponse -> TestTree
responseListPlatformApplications = res
"ListPlatformApplicationsResponse"
"fixture/ListPlatformApplicationsResponse.proto"
sns
(Proxy :: Proxy ListPlatformApplications)
responseAddPermission :: AddPermissionResponse -> TestTree
responseAddPermission = res
"AddPermissionResponse"
"fixture/AddPermissionResponse.proto"
sns
(Proxy :: Proxy AddPermission)
responseGetEndpointAttributes :: GetEndpointAttributesResponse -> TestTree
responseGetEndpointAttributes = res
"GetEndpointAttributesResponse"
"fixture/GetEndpointAttributesResponse.proto"
sns
(Proxy :: Proxy GetEndpointAttributes)
responseListSubscriptions :: ListSubscriptionsResponse -> TestTree
responseListSubscriptions = res
"ListSubscriptionsResponse"
"fixture/ListSubscriptionsResponse.proto"
sns
(Proxy :: Proxy ListSubscriptions)
responseGetSubscriptionAttributes :: GetSubscriptionAttributesResponse -> TestTree
responseGetSubscriptionAttributes = res
"GetSubscriptionAttributesResponse"
"fixture/GetSubscriptionAttributesResponse.proto"
sns
(Proxy :: Proxy GetSubscriptionAttributes)
responseCreateTopic :: CreateTopicResponse -> TestTree
responseCreateTopic = res
"CreateTopicResponse"
"fixture/CreateTopicResponse.proto"
sns
(Proxy :: Proxy CreateTopic)
responseCheckIfPhoneNumberIsOptedOut :: CheckIfPhoneNumberIsOptedOutResponse -> TestTree
responseCheckIfPhoneNumberIsOptedOut = res
"CheckIfPhoneNumberIsOptedOutResponse"
"fixture/CheckIfPhoneNumberIsOptedOutResponse.proto"
sns
(Proxy :: Proxy CheckIfPhoneNumberIsOptedOut)
responseSubscribe :: SubscribeResponse -> TestTree
responseSubscribe = res
"SubscribeResponse"
"fixture/SubscribeResponse.proto"
sns
(Proxy :: Proxy Subscribe)
responseUnsubscribe :: UnsubscribeResponse -> TestTree
responseUnsubscribe = res
"UnsubscribeResponse"
"fixture/UnsubscribeResponse.proto"
sns
(Proxy :: Proxy Unsubscribe)
responseSetEndpointAttributes :: SetEndpointAttributesResponse -> TestTree
responseSetEndpointAttributes = res
"SetEndpointAttributesResponse"
"fixture/SetEndpointAttributesResponse.proto"
sns
(Proxy :: Proxy SetEndpointAttributes)
responseSetSubscriptionAttributes :: SetSubscriptionAttributesResponse -> TestTree
responseSetSubscriptionAttributes = res
"SetSubscriptionAttributesResponse"
"fixture/SetSubscriptionAttributesResponse.proto"
sns
(Proxy :: Proxy SetSubscriptionAttributes)
responseConfirmSubscription :: ConfirmSubscriptionResponse -> TestTree
responseConfirmSubscription = res
"ConfirmSubscriptionResponse"
"fixture/ConfirmSubscriptionResponse.proto"
sns
(Proxy :: Proxy ConfirmSubscription)
responsePublish :: PublishResponse -> TestTree
responsePublish = res
"PublishResponse"
"fixture/PublishResponse.proto"
sns
(Proxy :: Proxy Publish)