Updating an Amazon Personalize campaign's configuration
To change your campaign's Minimum provisioned TPS, manually deploy a new solution version, or modify a campaign's configuration, such as enabling metadata in recommendations, you must manually update the campaign.
The following doesn't require a manual campaign update:
-
If your campaign uses automatic campaign updates, you don't have to update it to deploy the latest automatically or manually trained solution version of your solution. For more information, see Enabling automatic campaign updates.
-
With User-Personalization-v2, User-Personalization, or Next-Best-Action, Amazon Personalize automatically updates your latest solution version every two hours to include new items or actions in recommendations. Your campaign automatically uses the updated solution version.
You manually update a campaign with the Amazon Personalize console, Amazon Command Line Interface (Amazon CLI), or Amazon SDKs.
Topics
Updating a campaign (console)
To deploy a manually retrained solution version or make changes to your campaign configuration, you must update your campaign.
To update a campaign (console)
-
Open the Amazon Personalize console at https://console.amazonaws.cn/personalize/home
and sign into your account. -
Choose the dataset group with the campaign you want to update.
-
In the navigation pane, choose Campaigns.
-
On the Campaigns page, choose the campaign you want to update.
-
On the campaign details page, choose Update.
-
On the Update campaign page, make your changes. For example, if you are deploying a retrained solution version, for Solution version ID, choose the identification number for the new solution version.
-
Choose Update. Amazon Personalize updates the campaign to use the new solution version and any changed configurations.
Updating a campaign (Amazon CLI)
To deploy a new solution version, change your campaign's Minimum provisioned TPS,
or change your campaign's configuration, you must update your campaign. Use the following update-campaign
command to update a campaign
to use a new solution version with the Amazon CLI.
Replace campaign arn
with the Amazon Resource Name (ARN) of the campaign you want to update. Replace new solution version arn
with the solution version you want to deploy.
aws personalize update-campaign \ --campaign-arn
campaign arn
\ --solution-version-arnnew solution version arn
\ --min-provisioned-tps1
Updating a campaign (Amazon SDKs)
To deploy a new solution version, change your campaign's Minimum provisioned TPS or change your campaign's configuration, you must update your campaign. Use the following code to update a campaign with the SDK for Python (Boto3) or SDK for Java 2.x. For a complete list of parameters, see UpdateCampaign.