| 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.GetCampaigns
Description
Retrieves information about the status, configuration, and other settings for all the campaigns that are associated with an application.
Synopsis
- data GetCampaigns = GetCampaigns' {}
- newGetCampaigns :: Text -> GetCampaigns
- getCampaigns_pageSize :: Lens' GetCampaigns (Maybe Text)
- getCampaigns_token :: Lens' GetCampaigns (Maybe Text)
- getCampaigns_applicationId :: Lens' GetCampaigns Text
- data GetCampaignsResponse = GetCampaignsResponse' {}
- newGetCampaignsResponse :: Int -> CampaignsResponse -> GetCampaignsResponse
- getCampaignsResponse_httpStatus :: Lens' GetCampaignsResponse Int
- getCampaignsResponse_campaignsResponse :: Lens' GetCampaignsResponse CampaignsResponse
Creating a Request
data GetCampaigns Source #
See: newGetCampaigns smart constructor.
Constructors
| GetCampaigns' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> GetCampaigns |
Create a value of GetCampaigns 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:pageSize:GetCampaigns', getCampaigns_pageSize - The maximum number of items to include in each page of a paginated
response. This parameter is not supported for application, campaign, and
journey metrics.
$sel:token:GetCampaigns', getCampaigns_token - The NextToken string that specifies which page of results to return in a
paginated response.
GetCampaigns, getCampaigns_applicationId - The unique identifier for the application. This identifier is displayed
as the Project ID on the Amazon Pinpoint console.
Request Lenses
getCampaigns_pageSize :: Lens' GetCampaigns (Maybe Text) Source #
The maximum number of items to include in each page of a paginated response. This parameter is not supported for application, campaign, and journey metrics.
getCampaigns_token :: Lens' GetCampaigns (Maybe Text) Source #
The NextToken string that specifies which page of results to return in a paginated response.
getCampaigns_applicationId :: Lens' GetCampaigns 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 GetCampaignsResponse Source #
See: newGetCampaignsResponse smart constructor.
Constructors
| GetCampaignsResponse' | |
Fields
| |
Instances
newGetCampaignsResponse Source #
Arguments
| :: Int | |
| -> CampaignsResponse | |
| -> GetCampaignsResponse |
Create a value of GetCampaignsResponse 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:GetCampaignsResponse', getCampaignsResponse_httpStatus - The response's http status code.
$sel:campaignsResponse:GetCampaignsResponse', getCampaignsResponse_campaignsResponse - Undocumented member.
Response Lenses
getCampaignsResponse_httpStatus :: Lens' GetCampaignsResponse Int Source #
The response's http status code.
getCampaignsResponse_campaignsResponse :: Lens' GetCampaignsResponse CampaignsResponse Source #
Undocumented member.