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 specified target for notifications.
Synopsis
- data DeleteTarget = DeleteTarget' {}
- newDeleteTarget :: Text -> DeleteTarget
- deleteTarget_forceUnsubscribeAll :: Lens' DeleteTarget (Maybe Bool)
- deleteTarget_targetAddress :: Lens' DeleteTarget Text
- data DeleteTargetResponse = DeleteTargetResponse' {
- httpStatus :: Int
- newDeleteTargetResponse :: Int -> DeleteTargetResponse
- deleteTargetResponse_httpStatus :: Lens' DeleteTargetResponse Int
Creating a Request
data DeleteTarget Source #
See: newDeleteTarget
smart constructor.
DeleteTarget' | |
|
Instances
Create a value of DeleteTarget
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:forceUnsubscribeAll:DeleteTarget'
, deleteTarget_forceUnsubscribeAll
- A Boolean value that can be used to delete all associations with this
SNS topic. The default value is FALSE. If set to TRUE, all associations
between that target and every notification rule in your AWS account are
deleted.
$sel:targetAddress:DeleteTarget'
, deleteTarget_targetAddress
- The Amazon Resource Name (ARN) of the SNS topic to delete.
Request Lenses
deleteTarget_forceUnsubscribeAll :: Lens' DeleteTarget (Maybe Bool) Source #
A Boolean value that can be used to delete all associations with this SNS topic. The default value is FALSE. If set to TRUE, all associations between that target and every notification rule in your AWS account are deleted.
deleteTarget_targetAddress :: Lens' DeleteTarget Text Source #
The Amazon Resource Name (ARN) of the SNS topic to delete.
Destructuring the Response
data DeleteTargetResponse Source #
See: newDeleteTargetResponse
smart constructor.
DeleteTargetResponse' | |
|
Instances
newDeleteTargetResponse Source #
Create a value of DeleteTargetResponse
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:DeleteTargetResponse'
, deleteTargetResponse_httpStatus
- The response's http status code.
Response Lenses
deleteTargetResponse_httpStatus :: Lens' DeleteTargetResponse Int Source #
The response's http status code.