Copyright | (c) 2013-2021 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) |
Safe Haskell | None |
Deletes a subscriber.
Deleting the last subscriber to a notification also deletes the notification.
Synopsis
- data DeleteSubscriber = DeleteSubscriber' {}
- newDeleteSubscriber :: Text -> Text -> Notification -> Subscriber -> DeleteSubscriber
- deleteSubscriber_accountId :: Lens' DeleteSubscriber Text
- deleteSubscriber_budgetName :: Lens' DeleteSubscriber Text
- deleteSubscriber_notification :: Lens' DeleteSubscriber Notification
- deleteSubscriber_subscriber :: Lens' DeleteSubscriber Subscriber
- data DeleteSubscriberResponse = DeleteSubscriberResponse' {
- httpStatus :: Int
- newDeleteSubscriberResponse :: Int -> DeleteSubscriberResponse
- deleteSubscriberResponse_httpStatus :: Lens' DeleteSubscriberResponse Int
Creating a Request
data DeleteSubscriber Source #
Request of DeleteSubscriber
See: newDeleteSubscriber
smart constructor.
DeleteSubscriber' | |
|
Instances
:: Text | |
-> Text | |
-> Notification | |
-> Subscriber | |
-> DeleteSubscriber |
Create a value of DeleteSubscriber
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:accountId:DeleteSubscriber'
, deleteSubscriber_accountId
- The accountId
that is associated with the budget whose subscriber you
want to delete.
$sel:budgetName:DeleteSubscriber'
, deleteSubscriber_budgetName
- The name of the budget whose subscriber you want to delete.
$sel:notification:DeleteSubscriber'
, deleteSubscriber_notification
- The notification whose subscriber you want to delete.
$sel:subscriber:DeleteSubscriber'
, deleteSubscriber_subscriber
- The subscriber that you want to delete.
Request Lenses
deleteSubscriber_accountId :: Lens' DeleteSubscriber Text Source #
The accountId
that is associated with the budget whose subscriber you
want to delete.
deleteSubscriber_budgetName :: Lens' DeleteSubscriber Text Source #
The name of the budget whose subscriber you want to delete.
deleteSubscriber_notification :: Lens' DeleteSubscriber Notification Source #
The notification whose subscriber you want to delete.
deleteSubscriber_subscriber :: Lens' DeleteSubscriber Subscriber Source #
The subscriber that you want to delete.
Destructuring the Response
data DeleteSubscriberResponse Source #
Response of DeleteSubscriber
See: newDeleteSubscriberResponse
smart constructor.
DeleteSubscriberResponse' | |
|
Instances
newDeleteSubscriberResponse Source #
Create a value of DeleteSubscriberResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:DeleteSubscriberResponse'
, deleteSubscriberResponse_httpStatus
- The response's http status code.
Response Lenses
deleteSubscriberResponse_httpStatus :: Lens' DeleteSubscriberResponse Int Source #
The response's http status code.