| 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.CreateCampaign
Description
Creates a new campaign for an application or updates the settings of an existing campaign for an application.
Synopsis
- data CreateCampaign = CreateCampaign' {}
- newCreateCampaign :: Text -> WriteCampaignRequest -> CreateCampaign
- createCampaign_applicationId :: Lens' CreateCampaign Text
- createCampaign_writeCampaignRequest :: Lens' CreateCampaign WriteCampaignRequest
- data CreateCampaignResponse = CreateCampaignResponse' {}
- newCreateCampaignResponse :: Int -> CampaignResponse -> CreateCampaignResponse
- createCampaignResponse_httpStatus :: Lens' CreateCampaignResponse Int
- createCampaignResponse_campaignResponse :: Lens' CreateCampaignResponse CampaignResponse
Creating a Request
data CreateCampaign Source #
See: newCreateCampaign smart constructor.
Constructors
| CreateCampaign' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> WriteCampaignRequest | |
| -> CreateCampaign |
Create a value of CreateCampaign 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:
CreateCampaign, createCampaign_applicationId - The unique identifier for the application. This identifier is displayed
as the Project ID on the Amazon Pinpoint console.
$sel:writeCampaignRequest:CreateCampaign', createCampaign_writeCampaignRequest - Undocumented member.
Request Lenses
createCampaign_applicationId :: Lens' CreateCampaign Text Source #
The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
createCampaign_writeCampaignRequest :: Lens' CreateCampaign WriteCampaignRequest Source #
Undocumented member.
Destructuring the Response
data CreateCampaignResponse Source #
See: newCreateCampaignResponse smart constructor.
Constructors
| CreateCampaignResponse' | |
Fields
| |
Instances
newCreateCampaignResponse Source #
Arguments
| :: Int | |
| -> CampaignResponse | |
| -> CreateCampaignResponse |
Create a value of CreateCampaignResponse 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:CreateCampaignResponse', createCampaignResponse_httpStatus - The response's http status code.
$sel:campaignResponse:CreateCampaignResponse', createCampaignResponse_campaignResponse - Undocumented member.
Response Lenses
createCampaignResponse_httpStatus :: Lens' CreateCampaignResponse Int Source #
The response's http status code.
createCampaignResponse_campaignResponse :: Lens' CreateCampaignResponse CampaignResponse Source #
Undocumented member.