amazonka-personalize-2.0: Amazon Personalize SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

You can still get recommendations from a campaign while an update is in progress. The campaign will use the previous solution version and campaign configuration to generate recommendations until the latest campaign update status is Active.

For more information on campaigns, see CreateCampaign.

Synopsis

Creating a Request

data UpdateCampaign Source #

See: newUpdateCampaign smart constructor.

Constructors

UpdateCampaign' 

Fields

Instances

Instances details
ToJSON UpdateCampaign Source # 
Instance details

Defined in Amazonka.Personalize.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

AWSRequest UpdateCampaign Source # 
Instance details

Defined in Amazonka.Personalize.UpdateCampaign

Associated Types

type AWSResponse UpdateCampaign #

Generic UpdateCampaign Source # 
Instance details

Defined in Amazonka.Personalize.UpdateCampaign

Associated Types

type Rep UpdateCampaign :: Type -> Type #

Read UpdateCampaign Source # 
Instance details

Defined in Amazonka.Personalize.UpdateCampaign

Show UpdateCampaign Source # 
Instance details

Defined in Amazonka.Personalize.UpdateCampaign

NFData UpdateCampaign Source # 
Instance details

Defined in Amazonka.Personalize.UpdateCampaign

Methods

rnf :: UpdateCampaign -> () #

Eq UpdateCampaign Source # 
Instance details

Defined in Amazonka.Personalize.UpdateCampaign

Hashable UpdateCampaign Source # 
Instance details

Defined in Amazonka.Personalize.UpdateCampaign

type AWSResponse 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" "amazonka-personalize-2.0-9kdbGNMxU7zEIoXPqEwwTg" '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))))

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:

UpdateCampaign, updateCampaign_campaignConfig - The configuration details of a campaign.

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

UpdateCampaign, updateCampaign_solutionVersionArn - The ARN of a new solution version to deploy.

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
Generic UpdateCampaignResponse Source # 
Instance details

Defined in Amazonka.Personalize.UpdateCampaign

Associated Types

type Rep UpdateCampaignResponse :: Type -> Type #

Read UpdateCampaignResponse Source # 
Instance details

Defined in Amazonka.Personalize.UpdateCampaign

Show UpdateCampaignResponse Source # 
Instance details

Defined in Amazonka.Personalize.UpdateCampaign

NFData UpdateCampaignResponse Source # 
Instance details

Defined in Amazonka.Personalize.UpdateCampaign

Methods

rnf :: UpdateCampaignResponse -> () #

Eq UpdateCampaignResponse Source # 
Instance details

Defined in Amazonka.Personalize.UpdateCampaign

type Rep UpdateCampaignResponse Source # 
Instance details

Defined in Amazonka.Personalize.UpdateCampaign

type Rep UpdateCampaignResponse = D1 ('MetaData "UpdateCampaignResponse" "Amazonka.Personalize.UpdateCampaign" "amazonka-personalize-2.0-9kdbGNMxU7zEIoXPqEwwTg" '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:

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.