| Copyright | (c) 2013-2023 Brendan Hay | 
|---|---|
| License | Mozilla Public License, v. 2.0. | 
| Maintainer | Brendan Hay | 
| Stability | auto-generated | 
| Portability | non-portable (GHC extensions) | 
| Safe Haskell | Safe-Inferred | 
| Language | Haskell2010 | 
Amazonka.Pinpoint.DeleteCampaign
Description
Deletes a campaign from an application.
Synopsis
- data DeleteCampaign = DeleteCampaign' {
- campaignId :: Text
 - applicationId :: Text
 
 - newDeleteCampaign :: Text -> Text -> DeleteCampaign
 - deleteCampaign_campaignId :: Lens' DeleteCampaign Text
 - deleteCampaign_applicationId :: Lens' DeleteCampaign Text
 - data DeleteCampaignResponse = DeleteCampaignResponse' {}
 - newDeleteCampaignResponse :: Int -> CampaignResponse -> DeleteCampaignResponse
 - deleteCampaignResponse_httpStatus :: Lens' DeleteCampaignResponse Int
 - deleteCampaignResponse_campaignResponse :: Lens' DeleteCampaignResponse CampaignResponse
 
Creating a Request
data DeleteCampaign Source #
See: newDeleteCampaign smart constructor.
Constructors
| DeleteCampaign' | |
Fields 
  | |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> DeleteCampaign | 
Create a value of DeleteCampaign 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:
DeleteCampaign, deleteCampaign_campaignId - The unique identifier for the campaign.
DeleteCampaign, deleteCampaign_applicationId - The unique identifier for the application. This identifier is displayed
 as the Project ID on the Amazon Pinpoint console.
Request Lenses
deleteCampaign_campaignId :: Lens' DeleteCampaign Text Source #
The unique identifier for the campaign.
deleteCampaign_applicationId :: Lens' DeleteCampaign Text Source #
The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
Destructuring the Response
data DeleteCampaignResponse Source #
See: newDeleteCampaignResponse smart constructor.
Constructors
| DeleteCampaignResponse' | |
Fields 
  | |
Instances
newDeleteCampaignResponse Source #
Arguments
| :: Int | |
| -> CampaignResponse | |
| -> DeleteCampaignResponse | 
Create a value of DeleteCampaignResponse 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:DeleteCampaignResponse', deleteCampaignResponse_httpStatus - The response's http status code.
$sel:campaignResponse:DeleteCampaignResponse', deleteCampaignResponse_campaignResponse - Undocumented member.
Response Lenses
deleteCampaignResponse_httpStatus :: Lens' DeleteCampaignResponse Int Source #
The response's http status code.
deleteCampaignResponse_campaignResponse :: Lens' DeleteCampaignResponse CampaignResponse Source #
Undocumented member.