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 |
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.
CreateCampaign' | |
|
Instances
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:
$sel:applicationId: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.
CreateCampaignResponse' | |
|
Instances
newCreateCampaignResponse Source #
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.