libZSservicesZSamazonka-personalizeZSamazonka-personalize
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Personalize.ListCampaigns

Description

Returns a list of campaigns that use the given solution. When a solution is not specified, all the campaigns associated with the account are listed. The response provides the properties for each campaign, including the Amazon Resource Name (ARN). For more information on campaigns, see CreateCampaign.

This operation returns paginated results.

Synopsis

Creating a Request

data ListCampaigns Source #

See: newListCampaigns smart constructor.

Constructors

ListCampaigns' 

Fields

  • solutionArn :: Maybe Text

    The Amazon Resource Name (ARN) of the solution to list the campaigns for. When a solution is not specified, all the campaigns associated with the account are listed.

  • nextToken :: Maybe Text

    A token returned from the previous call to ListCampaigns for getting the next set of campaigns (if they exist).

  • maxResults :: Maybe Natural

    The maximum number of campaigns to return.

Instances

Instances details
Eq ListCampaigns Source # 
Instance details

Defined in Amazonka.Personalize.ListCampaigns

Read ListCampaigns Source # 
Instance details

Defined in Amazonka.Personalize.ListCampaigns

Show ListCampaigns Source # 
Instance details

Defined in Amazonka.Personalize.ListCampaigns

Generic ListCampaigns Source # 
Instance details

Defined in Amazonka.Personalize.ListCampaigns

Associated Types

type Rep ListCampaigns :: Type -> Type #

NFData ListCampaigns Source # 
Instance details

Defined in Amazonka.Personalize.ListCampaigns

Methods

rnf :: ListCampaigns -> () #

Hashable ListCampaigns Source # 
Instance details

Defined in Amazonka.Personalize.ListCampaigns

ToJSON ListCampaigns Source # 
Instance details

Defined in Amazonka.Personalize.ListCampaigns

AWSPager ListCampaigns Source # 
Instance details

Defined in Amazonka.Personalize.ListCampaigns

AWSRequest ListCampaigns Source # 
Instance details

Defined in Amazonka.Personalize.ListCampaigns

Associated Types

type AWSResponse ListCampaigns #

ToHeaders ListCampaigns Source # 
Instance details

Defined in Amazonka.Personalize.ListCampaigns

ToPath ListCampaigns Source # 
Instance details

Defined in Amazonka.Personalize.ListCampaigns

ToQuery ListCampaigns Source # 
Instance details

Defined in Amazonka.Personalize.ListCampaigns

type Rep ListCampaigns Source # 
Instance details

Defined in Amazonka.Personalize.ListCampaigns

type Rep ListCampaigns = D1 ('MetaData "ListCampaigns" "Amazonka.Personalize.ListCampaigns" "libZSservicesZSamazonka-personalizeZSamazonka-personalize" 'False) (C1 ('MetaCons "ListCampaigns'" 'PrefixI 'True) (S1 ('MetaSel ('Just "solutionArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)))))
type AWSResponse ListCampaigns Source # 
Instance details

Defined in Amazonka.Personalize.ListCampaigns

newListCampaigns :: ListCampaigns Source #

Create a value of ListCampaigns 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:solutionArn:ListCampaigns', listCampaigns_solutionArn - The Amazon Resource Name (ARN) of the solution to list the campaigns for. When a solution is not specified, all the campaigns associated with the account are listed.

$sel:nextToken:ListCampaigns', listCampaigns_nextToken - A token returned from the previous call to ListCampaigns for getting the next set of campaigns (if they exist).

$sel:maxResults:ListCampaigns', listCampaigns_maxResults - The maximum number of campaigns to return.

Request Lenses

listCampaigns_solutionArn :: Lens' ListCampaigns (Maybe Text) Source #

The Amazon Resource Name (ARN) of the solution to list the campaigns for. When a solution is not specified, all the campaigns associated with the account are listed.

listCampaigns_nextToken :: Lens' ListCampaigns (Maybe Text) Source #

A token returned from the previous call to ListCampaigns for getting the next set of campaigns (if they exist).

listCampaigns_maxResults :: Lens' ListCampaigns (Maybe Natural) Source #

The maximum number of campaigns to return.

Destructuring the Response

data ListCampaignsResponse Source #

See: newListCampaignsResponse smart constructor.

Constructors

ListCampaignsResponse' 

Fields

Instances

Instances details
Eq ListCampaignsResponse Source # 
Instance details

Defined in Amazonka.Personalize.ListCampaigns

Read ListCampaignsResponse Source # 
Instance details

Defined in Amazonka.Personalize.ListCampaigns

Show ListCampaignsResponse Source # 
Instance details

Defined in Amazonka.Personalize.ListCampaigns

Generic ListCampaignsResponse Source # 
Instance details

Defined in Amazonka.Personalize.ListCampaigns

Associated Types

type Rep ListCampaignsResponse :: Type -> Type #

NFData ListCampaignsResponse Source # 
Instance details

Defined in Amazonka.Personalize.ListCampaigns

Methods

rnf :: ListCampaignsResponse -> () #

type Rep ListCampaignsResponse Source # 
Instance details

Defined in Amazonka.Personalize.ListCampaigns

type Rep ListCampaignsResponse = D1 ('MetaData "ListCampaignsResponse" "Amazonka.Personalize.ListCampaigns" "libZSservicesZSamazonka-personalizeZSamazonka-personalize" 'False) (C1 ('MetaCons "ListCampaignsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "campaigns") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [CampaignSummary])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListCampaignsResponse Source #

Create a value of ListCampaignsResponse 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:campaigns:ListCampaignsResponse', listCampaignsResponse_campaigns - A list of the campaigns.

$sel:nextToken:ListCampaigns', listCampaignsResponse_nextToken - A token for getting the next set of campaigns (if they exist).

$sel:httpStatus:ListCampaignsResponse', listCampaignsResponse_httpStatus - The response's http status code.

Response Lenses

listCampaignsResponse_nextToken :: Lens' ListCampaignsResponse (Maybe Text) Source #

A token for getting the next set of campaigns (if they exist).