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.UpdateCampaign

Description

Updates a campaign by either deploying a new solution or changing the value of the campaign's minProvisionedTPS parameter.

To update a campaign, the campaign status must be ACTIVE or CREATE FAILED. Check the campaign status using the DescribeCampaign API.

You must wait until the status of the updated campaign is ACTIVE before asking the campaign for recommendations.

For more information on campaigns, see CreateCampaign.

Synopsis

Creating a Request

data UpdateCampaign Source #

See: newUpdateCampaign smart constructor.

Constructors

UpdateCampaign' 

Fields

Instances

Instances details
Eq UpdateCampaign Source # 
Instance details

Defined in Amazonka.Personalize.UpdateCampaign

Read UpdateCampaign Source # 
Instance details

Defined in Amazonka.Personalize.UpdateCampaign

Show UpdateCampaign Source # 
Instance details

Defined in Amazonka.Personalize.UpdateCampaign

Generic UpdateCampaign Source # 
Instance details

Defined in Amazonka.Personalize.UpdateCampaign

Associated Types

type Rep UpdateCampaign :: Type -> Type #

NFData UpdateCampaign Source # 
Instance details

Defined in Amazonka.Personalize.UpdateCampaign

Methods

rnf :: UpdateCampaign -> () #

Hashable UpdateCampaign Source # 
Instance details

Defined in Amazonka.Personalize.UpdateCampaign

ToJSON UpdateCampaign Source # 
Instance details

Defined in Amazonka.Personalize.UpdateCampaign

AWSRequest UpdateCampaign Source # 
Instance details

Defined in Amazonka.Personalize.UpdateCampaign

Associated Types

type AWSResponse UpdateCampaign #

ToHeaders UpdateCampaign Source # 
Instance details

Defined in Amazonka.Personalize.UpdateCampaign

ToPath UpdateCampaign Source # 
Instance details

Defined in Amazonka.Personalize.UpdateCampaign

ToQuery UpdateCampaign Source # 
Instance details

Defined in Amazonka.Personalize.UpdateCampaign

type Rep UpdateCampaign Source # 
Instance details

Defined in Amazonka.Personalize.UpdateCampaign

type Rep UpdateCampaign = D1 ('MetaData "UpdateCampaign" "Amazonka.Personalize.UpdateCampaign" "libZSservicesZSamazonka-personalizeZSamazonka-personalize" 'False) (C1 ('MetaCons "UpdateCampaign'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "campaignConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CampaignConfig)) :*: S1 ('MetaSel ('Just "minProvisionedTPS") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))) :*: (S1 ('MetaSel ('Just "solutionVersionArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "campaignArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse UpdateCampaign Source # 
Instance details

Defined in Amazonka.Personalize.UpdateCampaign

newUpdateCampaign Source #

Create a value of UpdateCampaign 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:campaignConfig:UpdateCampaign', updateCampaign_campaignConfig - The configuration details of a campaign.

$sel:minProvisionedTPS:UpdateCampaign', updateCampaign_minProvisionedTPS - Specifies the requested minimum provisioned transactions (recommendations) per second that Amazon Personalize will support.

$sel:solutionVersionArn:UpdateCampaign', updateCampaign_solutionVersionArn - The ARN of a new solution version to deploy.

$sel:campaignArn:UpdateCampaign', updateCampaign_campaignArn - The Amazon Resource Name (ARN) of the campaign.

Request Lenses

updateCampaign_campaignConfig :: Lens' UpdateCampaign (Maybe CampaignConfig) Source #

The configuration details of a campaign.

updateCampaign_minProvisionedTPS :: Lens' UpdateCampaign (Maybe Natural) Source #

Specifies the requested minimum provisioned transactions (recommendations) per second that Amazon Personalize will support.

updateCampaign_solutionVersionArn :: Lens' UpdateCampaign (Maybe Text) Source #

The ARN of a new solution version to deploy.

updateCampaign_campaignArn :: Lens' UpdateCampaign Text Source #

The Amazon Resource Name (ARN) of the campaign.

Destructuring the Response

data UpdateCampaignResponse Source #

See: newUpdateCampaignResponse smart constructor.

Constructors

UpdateCampaignResponse' 

Fields

Instances

Instances details
Eq UpdateCampaignResponse Source # 
Instance details

Defined in Amazonka.Personalize.UpdateCampaign

Read UpdateCampaignResponse Source # 
Instance details

Defined in Amazonka.Personalize.UpdateCampaign

Show UpdateCampaignResponse Source # 
Instance details

Defined in Amazonka.Personalize.UpdateCampaign

Generic UpdateCampaignResponse Source # 
Instance details

Defined in Amazonka.Personalize.UpdateCampaign

Associated Types

type Rep UpdateCampaignResponse :: Type -> Type #

NFData UpdateCampaignResponse Source # 
Instance details

Defined in Amazonka.Personalize.UpdateCampaign

Methods

rnf :: UpdateCampaignResponse -> () #

type Rep UpdateCampaignResponse Source # 
Instance details

Defined in Amazonka.Personalize.UpdateCampaign

type Rep UpdateCampaignResponse = D1 ('MetaData "UpdateCampaignResponse" "Amazonka.Personalize.UpdateCampaign" "libZSservicesZSamazonka-personalizeZSamazonka-personalize" 'False) (C1 ('MetaCons "UpdateCampaignResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "campaignArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newUpdateCampaignResponse Source #

Create a value of UpdateCampaignResponse 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:campaignArn:UpdateCampaign', updateCampaignResponse_campaignArn - The same campaign ARN as given in the request.

$sel:httpStatus:UpdateCampaignResponse', updateCampaignResponse_httpStatus - The response's http status code.

Response Lenses

updateCampaignResponse_campaignArn :: Lens' UpdateCampaignResponse (Maybe Text) Source #

The same campaign ARN as given in the request.