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

Syntax

Update-PCMGCampaign
-EstimatedBudget_Amount <String>
-TotalBudget_Amount <String>
-CampaignIdentifier <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>
-SocialConnection <Hashtable>
-StartOn <String>
-EmailTarget_VersionId <String>
-PartnerBadge_VersionId <String>
-ClientToken <String>
-Select <String>
-Force <SwitchParameter>
-ClientConfig <AmazonPartnerCentralMarketingConfig>

Description

Edits a campaign in place. Partial update: an omitted field is left unchanged, which is the standard meaning of an `Update` verb — a full replacement would be a `Put`. Change-only, with no way to clear a field back to empty, because the campaign's file members cannot round-trip: they are written as an `s3://` reference and read back as a URL or as metadata, so a replacement payload could not resend an unchanged recipient list without re-uploading it. Refused while an activation task runs (`CAMPAIGN_ACTIVATION_IN_PROGRESS`) and once the campaign is completed (`CAMPAIGN_COMPLETED`, the UTC date is after its `EndOn`). Last-writer-wins, with no concurrency token: this is low-contention metadata owned by one partner.

Parameters

-CampaignIdentifier <String>
The campaign identifier.
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. Accepted and not stored: this is a change-only partial update with last-writer-wins, so re-applying the same call produces the same result and the same response. There is nothing a replay cache would protect.
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 (see `CreateCampaign`). Replaces the stored list; never clears it. <para> As on `CreateCampaign`: each group once (`INVALID_VALUE` otherwise), not checked against your groups when saved, and resolved at Start where the stage can (`ENGAGEMENT_GROUPS_UNAVAILABLE` where it can't). 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. Editable only while the campaign is open, like everything else here: once the stored `EndOn` has passed the campaign is completed and this update is refused (`CAMPAIGN_COMPLETED`). Refused with `ValidationException` (`INVALID_VALUE`) when it is in the past, or earlier than the day of a scheduled send on one of the campaign's assets: move or cancel that send first. Setting it to today ends the campaign at the next UTC midnight.
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?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-PartnerAddress <String>
Sets or replaces the partner's postal address. Replaces, never clears.
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>
Sets or replaces the URL of the partner's privacy policy. Replaces, never clears.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-Select <String>
Use the -Select parameter to control the cmdlet output. The default value is 'Id'. Specifying -Select '*' will result in the cmdlet returning the whole service response (Amazon.PartnerCentralMarketing.Model.UpdateCampaignResponse). Specifying the name of a property of type Amazon.PartnerCentralMarketing.Model.UpdateCampaignResponse 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>
Sets or replaces the address the campaign's emails are sent from. Checked by the same three rules as on `CreateCampaign`, with the same codes, but only when it differs, ignoring case, from the stored sender: re-sending the stored one is not checked, and `StartCampaignAssetActivationTask` re-checks it before an email activates. <para> Replaces, never clears: like every member of this operation, an omitted value leaves the sender as it was, and there is no way to remove one once set.
Required?False
Position?Named
Accept pipeline input?True (ByPropertyName)
-SocialConnection <Hashtable>
Sets the account the campaign's social posts publish from, per platform. Each platform named replaces that platform's choice; a platform not named keeps its own. Replaces, never clears. <para> Not checked against your connections here: a connection can be deleted at any time, so the activation checks the choice. See `Campaign$SocialConnections`. 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)
AliasesSocialConnections
-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)
-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 a System.String object. The service call response (type Amazon.PartnerCentralMarketing.Model.UpdateCampaignResponse) can be returned by specifying '-Select *'.

Supported Version

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