AWS Tools for Windows PowerShell
Command Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Synopsis

Calls the Partner Central Marketing API CreateCampaign API operation.

Syntax

New-PCMGCampaign
-EstimatedBudget_Amount <String>
-TotalBudget_Amount <String>
-CampaignTemplateId <String>
-Catalog <Catalog>
-TargetAudience_CompanySize <String[]>
-TargetAudience_Country <String[]>
-EstimatedBudget_CurrencyCode <String>
-TotalBudget_CurrencyCode <String>
-EmailTargetEngagementGroupId <String[]>
-EndOn <String>
-TargetAudience_Industry <String[]>
-Name <String>
-PartnerAddress <String>
-PrivacyPolicyUrl <String>
-EmailTarget_S3Uri <String>
-PartnerBadge_S3Uri <String>
-SenderEmail <String>
-StartOn <String>
-Tag <Tag[]>
-EmailTarget_VersionId <String>
-PartnerBadge_VersionId <String>
-ClientToken <String>
-Select <String>
-Force <SwitchParameter>
-ClientConfig <AmazonPartnerCentralMarketingConfig>

Description

Creates a new marketing campaign. Returns the identity of the new campaign, not the campaign. Growing a response is backward compatible and shrinking one is not, and the caller's next step is a `GetCampaign` anyway — a write that supplies an audience cannot report its scan verdict, because that is decided after it commits.

Parameters

-CampaignTemplateId <String>
The campaign template this campaign draws its assets from. <para> Binds the campaign to a single source template: every asset must come from this template's asset templates, and one from another template is refused at `BatchCreateCampaignAsset`. Immutable once set. Every campaign has one: a campaign's language and its assets' blueprints both come from its template. <para> Templates are AWS-authored and read-only — they are discovered through `SearchCampaignTemplates` and `GetCampaignTemplate`, and there is no create, update or delete operation for one. <para> The template's id only: a campaign template has no ARN (DG-084). The member keeps the `<Resource>Id` name, which is the convention for referencing another resource from a body.
Required?True
Position?Named
Accept pipeline input?True (ByPropertyName)
-Catalog <Catalog>
The catalog (AWS or Sandbox).
Required?True
Position?Named
Accept pipeline input?True (ByPropertyName)
Amazon.PowerShell.Cmdlets.PCMG.AmazonPartnerCentralMarketingClientCmdlet.ClientConfig
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-ClientToken <String>
Idempotency token. Same token within 24h returns existing resource.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-EmailTarget_S3Uri <String>
The `s3://` location of the file.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-EmailTarget_VersionId <String>
The version of the object to take: the `VersionId` the staging upload returned.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-EmailTargetEngagementGroupId <String[]>
Engagement groups whose contacts the campaign's emails will also go to: the `Id`s `ListEngagementGroups` returns (AWS Partner Central Selling). 1–10, each named once. <para> Each group is named once: a repeated id is refused with field code `INVALID_VALUE`. Not checked against your groups when saved. StartCampaignAssetActivationTask resolves them to recipients. On a stage that can't resolve groups yet, Start refuses an email while groups are set (`ENGAGEMENT_GROUPS_UNAVAILABLE`), rather than send to `EmailTarget` alone. Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesEmailTargetEngagementGroupIds
-EndOn <String>
The last day of the campaign's run window, inclusive and in UTC. Not in the past: the campaign completes at the UTC midnight after it (see `CampaignState`). A scheduled send must fall on or before it. Optional here, but required before any asset activates: until it is set, GetCampaign's `ActivationIssues` reports `END_ON_MISSING` and StartCampaignAssetActivationTask refuses (`CAMPAIGN_INCOMPLETE`). Set it with UpdateCampaign.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-EstimatedBudget_Amount <String>
The amount, as a decimal string with at most two decimal places.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-EstimatedBudget_CurrencyCode <String>
The ISO 4217 currency the amount is denominated in.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
This parameter overrides confirmation prompts to force the cmdlet to continue its operation. This parameter should always be used with caution.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Name <String>
The display name.
Required?True
Position?Named
Accept pipeline input?True (ByPropertyName)
-PartnerAddress <String>
The partner's physical postal address, shown in every email footer and as a landing page's contact line. Optional here: an email that shows it cannot activate until one is set. A landing page that shows it publishes it empty when it is unset, and a document's footer then prints the partner's name alone.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-PartnerBadge_S3Uri <String>
The `s3://` location of the file.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-PartnerBadge_VersionId <String>
The version of the object to take: the `VersionId` the staging upload returned.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-PrivacyPolicyUrl <String>
The URL of the partner's privacy policy, linked from every email and landing page footer. Optional here: a campaign whose emails or landing pages show it cannot activate them until one is set.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Select <String>
Use the -Select parameter to control the cmdlet output. The default value is '*'. Specifying -Select '*' will result in the cmdlet returning the whole service response (Amazon.PartnerCentralMarketing.Model.CreateCampaignResponse). Specifying the name of a property of type Amazon.PartnerCentralMarketing.Model.CreateCampaignResponse will result in that property being returned. Specifying -Select '^ParameterName' will result in the cmdlet returning the selected cmdlet parameter value.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-SenderEmail <String>
The address every email of this campaign is sent from. <para> Printable ASCII only, with no spaces or line breaks, or field code `PATTERN_MISMATCH`. Then three rules, all checked when the sender is set. Its domain must exactly match, ignoring case, the domain of the partner's alliance lead email in AWS Partner Central (a subdomain does not), or field code `SENDER_DOMAIN_NOT_ALLIANCE_LEAD`. Then, for a sender at example.com, DNS must hold the CNAME `dkim._domainkey.example.com` → `dkim._domainkey.md02.com` (field code `SENDER_DOMAIN_DKIM_MISSING`) and a DMARC record, one TXT `_dmarc.example.com` starting `v=DMARC1` with a `p` of `none`, `quarantine` or `reject` (field code `SENDER_DOMAIN_DMARC_MISSING`). Both DNS codes are reported together when both records are missing. <para> A partner who can't satisfy them can't set a sender, so can't run email campaigns. A shared mail provider's domain, such as gmail.com, can't carry the records. Optional here: a campaign with no sender can be created and edited, but its email assets cannot be activated until one is set.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-StartOn <String>
The first day of the campaign's run window. Not after `EndOn` (`ValidationException`, `INVALID_VALUE`).
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Tag <Tag[]>
Tags to apply at creation. Tag-on-create rather than create-then-tag is a Tagris requirement, not a convenience: it is what lets a tag-based access control policy govern the creation itself. A campaign created untagged and tagged a moment later is briefly outside any such policy. <para> A key beginning `aws:` (any case) is reserved for AWS-applied system tags and is refused with `ValidationException`, as is a key repeated in the list; nothing is created. The tags are recorded before the campaign is written, so a create that cannot record them fails and creates nothing. A retry with the same `ClientToken` returns the campaign the first attempt created and does not re-apply tags — use `TagResource` to change them afterwards. `ListTagsForResource` returns them. Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesTags
-TargetAudience_CompanySize <String[]>
Target company sizes. Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesTargetAudience_CompanySizes
-TargetAudience_Country <String[]>
Target countries, as ISO 3166-1 alpha-2 codes. Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesTargetAudience_Countries
-TargetAudience_Industry <String[]>
Target industries. Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesTargetAudience_Industries
-TotalBudget_Amount <String>
The amount, as a decimal string with at most two decimal places.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-TotalBudget_CurrencyCode <String>
The ISO 4217 currency the amount is denominated in.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)

Common Credential and Region Parameters

-AccessKey <String>
The AWS access key for the user account. This can be a temporary access key if the corresponding session token is supplied to the -SessionToken parameter.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesAK
-Credential <AWSCredentials>
An AWSCredentials object instance containing access and secret key information, and optionally a token for session-based credentials.
Required?False
Position?Named
Accept pipeline input?True (ByValue, ByPropertyName)
-EndpointUrl <String>
The endpoint to make the call against.Note: This parameter is primarily for internal AWS use and is not required/should not be specified for normal usage. The cmdlets normally determine which endpoint to call based on the region specified to the -Region parameter or set as default in the shell (via Set-DefaultAWSRegion). Only specify this parameter if you must direct the call to a specific custom endpoint.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-NetworkCredential <PSCredential>
Used with SAML-based authentication when ProfileName references a SAML role profile. Contains the network credentials to be supplied during authentication with the configured identity provider's endpoint. This parameter is not required if the user's default network identity can or should be used during authentication.
Required?False
Position?Named
Accept pipeline input?True (ByValue, ByPropertyName)
-ProfileLocation <String>
Used to specify the name and location of the ini-format credential file (shared with the AWS CLI and other AWS SDKs)If this optional parameter is omitted this cmdlet will search the encrypted credential file used by the AWS SDK for .NET and AWS Toolkit for Visual Studio first. If the profile is not found then the cmdlet will search in the ini-format credential file at the default location: (user's home directory)\.aws\credentials.If this parameter is specified then this cmdlet will only search the ini-format credential file at the location given.As the current folder can vary in a shell or during script execution it is advised that you use specify a fully qualified path instead of a relative path.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesAWSProfilesLocation, ProfilesLocation
-ProfileName <String>
The user-defined name of an AWS credentials or SAML-based role profile containing credential information. The profile is expected to be found in the secure credential file shared with the AWS SDK for .NET and AWS Toolkit for Visual Studio. You can also specify the name of a profile stored in the .ini-format credential file used with the AWS CLI and other AWS SDKs.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesStoredCredentials, AWSProfileName
-Region <Object>
The system name of an AWS region or an AWSRegion instance. This governs the endpoint that will be used when calling service operations. Note that the AWS resources referenced in a call are usually region-specific.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesRegionToCall
-SecretKey <String>
The AWS secret key for the user account. This can be a temporary secret key if the corresponding session token is supplied to the -SessionToken parameter.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesSK, SecretAccessKey
-SessionToken <String>
The session token if the access and secret keys are temporary session-based credentials.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
AliasesST

Outputs

This cmdlet returns an Amazon.PartnerCentralMarketing.Model.CreateCampaignResponse object containing multiple properties.

Supported Version

AWS Tools for PowerShell: 2.x.y.z