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 |
Deletes a data collection campaign. Deleting a campaign suspends all data collection and removes it from any vehicles.
Synopsis
- data DeleteCampaign = DeleteCampaign' {}
- newDeleteCampaign :: Text -> DeleteCampaign
- deleteCampaign_name :: Lens' DeleteCampaign Text
- data DeleteCampaignResponse = DeleteCampaignResponse' {}
- newDeleteCampaignResponse :: Int -> DeleteCampaignResponse
- deleteCampaignResponse_arn :: Lens' DeleteCampaignResponse (Maybe Text)
- deleteCampaignResponse_name :: Lens' DeleteCampaignResponse (Maybe Text)
- deleteCampaignResponse_httpStatus :: Lens' DeleteCampaignResponse Int
Creating a Request
data DeleteCampaign Source #
See: newDeleteCampaign
smart constructor.
Instances
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_name
- The name of the campaign to delete.
Request Lenses
deleteCampaign_name :: Lens' DeleteCampaign Text Source #
The name of the campaign to delete.
Destructuring the Response
data DeleteCampaignResponse Source #
See: newDeleteCampaignResponse
smart constructor.
Instances
newDeleteCampaignResponse Source #
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:
DeleteCampaignResponse
, deleteCampaignResponse_arn
- The Amazon Resource Name (ARN) of the deleted campaign.
The ARN isn’t returned if a campaign doesn’t exist.
DeleteCampaign
, deleteCampaignResponse_name
- The name of the deleted campaign.
$sel:httpStatus:DeleteCampaignResponse'
, deleteCampaignResponse_httpStatus
- The response's http status code.
Response Lenses
deleteCampaignResponse_arn :: Lens' DeleteCampaignResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the deleted campaign.
The ARN isn’t returned if a campaign doesn’t exist.
deleteCampaignResponse_name :: Lens' DeleteCampaignResponse (Maybe Text) Source #
The name of the deleted campaign.
deleteCampaignResponse_httpStatus :: Lens' DeleteCampaignResponse Int Source #
The response's http status code.