ConnectCampaignServiceV2 / Client / update_campaign_source

update_campaign_source#

ConnectCampaignServiceV2.Client.update_campaign_source(**kwargs)#

Updates the campaign source with a campaign. This API is idempotent.

See also: AWS API Documentation

Request Syntax

response = client.update_campaign_source(
    id='string',
    source={
        'customerProfilesSegmentArn': 'string',
        'eventTrigger': {
            'customerProfilesDomainArn': 'string'
        }
    }
)
Parameters:
  • id (string) –

    [REQUIRED]

    Identifier representing a Campaign

  • source (dict) –

    [REQUIRED]

    Source of the campaign

    Note

    This is a Tagged Union structure. Only one of the following top level keys can be set: customerProfilesSegmentArn, eventTrigger.

    • customerProfilesSegmentArn (string) –

      Amazon Resource Names(ARN)

    • eventTrigger (dict) –

      Event trigger of the campaign

      • customerProfilesDomainArn (string) –

        Amazon Resource Names(ARN)

Returns:

None

Exceptions

  • ConnectCampaignServiceV2.Client.exceptions.InternalServerException

  • ConnectCampaignServiceV2.Client.exceptions.ResourceNotFoundException

  • ConnectCampaignServiceV2.Client.exceptions.ValidationException

  • ConnectCampaignServiceV2.Client.exceptions.ConflictException

  • ConnectCampaignServiceV2.Client.exceptions.InvalidCampaignStateException

  • ConnectCampaignServiceV2.Client.exceptions.AccessDeniedException