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 |
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
- data UpdateCampaign = UpdateCampaign' {}
- newUpdateCampaign :: Text -> UpdateCampaign
- updateCampaign_campaignConfig :: Lens' UpdateCampaign (Maybe CampaignConfig)
- updateCampaign_minProvisionedTPS :: Lens' UpdateCampaign (Maybe Natural)
- updateCampaign_solutionVersionArn :: Lens' UpdateCampaign (Maybe Text)
- updateCampaign_campaignArn :: Lens' UpdateCampaign Text
- data UpdateCampaignResponse = UpdateCampaignResponse' {
- campaignArn :: Maybe Text
- httpStatus :: Int
- newUpdateCampaignResponse :: Int -> UpdateCampaignResponse
- updateCampaignResponse_campaignArn :: Lens' UpdateCampaignResponse (Maybe Text)
- updateCampaignResponse_httpStatus :: Lens' UpdateCampaignResponse Int
Creating a Request
data UpdateCampaign Source #
See: newUpdateCampaign
smart constructor.
UpdateCampaign' | |
|
Instances
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.
UpdateCampaignResponse' | |
|
Instances
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.
updateCampaignResponse_httpStatus :: Lens' UpdateCampaignResponse Int Source #
The response's http status code.