We recommend new projects start with resources from the AWS provider.
published on Monday, Nov 2, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
published on Monday, Nov 2, 2026 by Pulumi
A deployment of a solution version that provides real-time recommendations.
Create Campaign Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Campaign(name: string, args: CampaignArgs, opts?: CustomResourceOptions);@overload
def Campaign(resource_name: str,
args: CampaignArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Campaign(resource_name: str,
opts: Optional[ResourceOptions] = None,
solution_version_arn: Optional[str] = None,
campaign_config: Optional[CampaignConfigArgs] = None,
min_provisioned_tps: Optional[int] = None,
name: Optional[str] = None,
tags: Optional[Sequence[_root_inputs.TagArgs]] = None)func NewCampaign(ctx *Context, name string, args CampaignArgs, opts ...ResourceOption) (*Campaign, error)public Campaign(string name, CampaignArgs args, CustomResourceOptions? opts = null)
public Campaign(String name, CampaignArgs args)
public Campaign(String name, CampaignArgs args, CustomResourceOptions options)
type: aws-native:personalize:Campaign
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aws-native_personalize_campaign" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args CampaignArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args CampaignArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args CampaignArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CampaignArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CampaignArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Campaign Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Campaign resource accepts the following input properties:
- Solution
Version stringArn - The ARN of the solution version to deploy.
- Campaign
Config Pulumi.Aws Native. Personalize. Inputs. Campaign Config - Min
Provisioned intTps - Specifies the requested minimum provisioned transactions per second.
- Name string
- The name of the campaign.
-
List<Pulumi.
Aws Native. Inputs. Tag> - Tags to associate with the campaign.
- Solution
Version stringArn - The ARN of the solution version to deploy.
- Campaign
Config CampaignConfig Args - Min
Provisioned intTps - Specifies the requested minimum provisioned transactions per second.
- Name string
- The name of the campaign.
-
Tag
Args - Tags to associate with the campaign.
- solution_
version_ stringarn - The ARN of the solution version to deploy.
- campaign_
config object - min_
provisioned_ numbertps - Specifies the requested minimum provisioned transactions per second.
- name string
- The name of the campaign.
- list(object)
- Tags to associate with the campaign.
- solution
Version StringArn - The ARN of the solution version to deploy.
- campaign
Config CampaignConfig - min
Provisioned IntegerTps - Specifies the requested minimum provisioned transactions per second.
- name String
- The name of the campaign.
- List<Tag>
- Tags to associate with the campaign.
- solution
Version stringArn - The ARN of the solution version to deploy.
- campaign
Config CampaignConfig - min
Provisioned numberTps - Specifies the requested minimum provisioned transactions per second.
- name string
- The name of the campaign.
- Tag[]
- Tags to associate with the campaign.
- solution_
version_ strarn - The ARN of the solution version to deploy.
- campaign_
config CampaignConfig Args - min_
provisioned_ inttps - Specifies the requested minimum provisioned transactions per second.
- name str
- The name of the campaign.
-
Sequence[Tag
Args] - Tags to associate with the campaign.
- solution
Version StringArn - The ARN of the solution version to deploy.
- campaign
Config Property Map - min
Provisioned NumberTps - Specifies the requested minimum provisioned transactions per second.
- name String
- The name of the campaign.
- List<Property Map>
- Tags to associate with the campaign.
Outputs
All input properties are implicitly available as output properties. Additionally, the Campaign resource produces the following output properties:
- Campaign
Arn string - The ARN of the campaign.
- Creation
Date stringTime - The time at which the campaign was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated stringDate Time - The time at which the campaign was last updated.
- Status string
- The status of the campaign.
- Campaign
Arn string - The ARN of the campaign.
- Creation
Date stringTime - The time at which the campaign was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated stringDate Time - The time at which the campaign was last updated.
- Status string
- The status of the campaign.
- campaign_
arn string - The ARN of the campaign.
- creation_
date_ stringtime - The time at which the campaign was created.
- id string
- The provider-assigned unique ID for this managed resource.
- last_
updated_ stringdate_ time - The time at which the campaign was last updated.
- status string
- The status of the campaign.
- campaign
Arn String - The ARN of the campaign.
- creation
Date StringTime - The time at which the campaign was created.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated StringDate Time - The time at which the campaign was last updated.
- status String
- The status of the campaign.
- campaign
Arn string - The ARN of the campaign.
- creation
Date stringTime - The time at which the campaign was created.
- id string
- The provider-assigned unique ID for this managed resource.
- last
Updated stringDate Time - The time at which the campaign was last updated.
- status string
- The status of the campaign.
- campaign_
arn str - The ARN of the campaign.
- creation_
date_ strtime - The time at which the campaign was created.
- id str
- The provider-assigned unique ID for this managed resource.
- last_
updated_ strdate_ time - The time at which the campaign was last updated.
- status str
- The status of the campaign.
- campaign
Arn String - The ARN of the campaign.
- creation
Date StringTime - The time at which the campaign was created.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated StringDate Time - The time at which the campaign was last updated.
- status String
- The status of the campaign.
Supporting Types
CampaignConfig, CampaignConfigArgs
The configuration details of a campaign.- Enable
Metadata boolWith Recommendations - Whether metadata with recommendations is enabled for the campaign.
- Item
Exploration Dictionary<string, string>Config - Specifies the exploration configuration hyperparameters.
- Ranking
Influence Dictionary<string, double> - A map of ranking influence values for POPULARITY and FRESHNESS.
- Sync
With boolLatest Solution Version - Whether the campaign automatically updates to use the latest solution version.
- Enable
Metadata boolWith Recommendations - Whether metadata with recommendations is enabled for the campaign.
- Item
Exploration map[string]stringConfig - Specifies the exploration configuration hyperparameters.
- Ranking
Influence map[string]float64 - A map of ranking influence values for POPULARITY and FRESHNESS.
- Sync
With boolLatest Solution Version - Whether the campaign automatically updates to use the latest solution version.
- enable_
metadata_ boolwith_ recommendations - Whether metadata with recommendations is enabled for the campaign.
- item_
exploration_ map(string)config - Specifies the exploration configuration hyperparameters.
- ranking_
influence map(number) - A map of ranking influence values for POPULARITY and FRESHNESS.
- sync_
with_ boollatest_ solution_ version - Whether the campaign automatically updates to use the latest solution version.
- enable
Metadata BooleanWith Recommendations - Whether metadata with recommendations is enabled for the campaign.
- item
Exploration Map<String,String>Config - Specifies the exploration configuration hyperparameters.
- ranking
Influence Map<String,Double> - A map of ranking influence values for POPULARITY and FRESHNESS.
- sync
With BooleanLatest Solution Version - Whether the campaign automatically updates to use the latest solution version.
- enable
Metadata booleanWith Recommendations - Whether metadata with recommendations is enabled for the campaign.
- item
Exploration {[key: string]: string}Config - Specifies the exploration configuration hyperparameters.
- ranking
Influence {[key: string]: number} - A map of ranking influence values for POPULARITY and FRESHNESS.
- sync
With booleanLatest Solution Version - Whether the campaign automatically updates to use the latest solution version.
- enable_
metadata_ boolwith_ recommendations - Whether metadata with recommendations is enabled for the campaign.
- item_
exploration_ Mapping[str, str]config - Specifies the exploration configuration hyperparameters.
- ranking_
influence Mapping[str, float] - A map of ranking influence values for POPULARITY and FRESHNESS.
- sync_
with_ boollatest_ solution_ version - Whether the campaign automatically updates to use the latest solution version.
- enable
Metadata BooleanWith Recommendations - Whether metadata with recommendations is enabled for the campaign.
- item
Exploration Map<String>Config - Specifies the exploration configuration hyperparameters.
- ranking
Influence Map<Number> - A map of ranking influence values for POPULARITY and FRESHNESS.
- sync
With BooleanLatest Solution Version - Whether the campaign automatically updates to use the latest solution version.
Tag, TagArgs
A set of tags to apply to the resource.Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
published on Monday, Nov 2, 2026 by Pulumi