NAME

Paws::Pinpoint::UpdateCampaign - Arguments for method UpdateCampaign on Paws::Pinpoint

DESCRIPTION

This class represents the parameters used for calling the method UpdateCampaign on the Amazon Pinpoint service. Use the attributes of this class as arguments to method UpdateCampaign.

You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateCampaign.

SYNOPSIS

my $pinpoint = Paws->service('Pinpoint');
my $UpdateCampaignResponse = $pinpoint->UpdateCampaign(
  ApplicationId        => 'My__string',
  CampaignId           => 'My__string',
  WriteCampaignRequest => {
    AdditionalTreatments => [
      {
        SizePercent                 => 1,
        CustomDeliveryConfiguration => {
          DeliveryUri   => 'My__string',
          EndpointTypes => [
            'PUSH',
            ... # values: PUSH, GCM, APNS, APNS_SANDBOX, APNS_VOIP, APNS_VOIP_SANDBOX, ADM, SMS, VOICE, EMAIL, BAIDU, CUSTOM
          ],    # OPTIONAL
        },    # OPTIONAL
        MessageConfiguration => {
          ADMMessage => {
            Action =>
              'OPEN_APP',    # values: OPEN_APP, DEEP_LINK, URL; OPTIONAL
            Body              => 'My__string',
            ImageIconUrl      => 'My__string',
            ImageSmallIconUrl => 'My__string',
            ImageUrl          => 'My__string',
            JsonBody          => 'My__string',
            MediaUrl          => 'My__string',
            RawContent        => 'My__string',
            SilentPush        => 1,              # OPTIONAL
            TimeToLive        => 1,
            Title             => 'My__string',
            Url               => 'My__string',
          },    # OPTIONAL
          APNSMessage => {
            Action =>
              'OPEN_APP',    # values: OPEN_APP, DEEP_LINK, URL; OPTIONAL
            Body              => 'My__string',
            ImageIconUrl      => 'My__string',
            ImageSmallIconUrl => 'My__string',
            ImageUrl          => 'My__string',
            JsonBody          => 'My__string',
            MediaUrl          => 'My__string',
            RawContent        => 'My__string',
            SilentPush        => 1,              # OPTIONAL
            TimeToLive        => 1,
            Title             => 'My__string',
            Url               => 'My__string',
          },    # OPTIONAL
          BaiduMessage => {
            Action =>
              'OPEN_APP',    # values: OPEN_APP, DEEP_LINK, URL; OPTIONAL
            Body              => 'My__string',
            ImageIconUrl      => 'My__string',
            ImageSmallIconUrl => 'My__string',
            ImageUrl          => 'My__string',
            JsonBody          => 'My__string',
            MediaUrl          => 'My__string',
            RawContent        => 'My__string',
            SilentPush        => 1,              # OPTIONAL
            TimeToLive        => 1,
            Title             => 'My__string',
            Url               => 'My__string',
          },    # OPTIONAL
          CustomMessage  => { Data => 'My__string', },    # OPTIONAL
          DefaultMessage => {
            Action =>
              'OPEN_APP',    # values: OPEN_APP, DEEP_LINK, URL; OPTIONAL
            Body              => 'My__string',
            ImageIconUrl      => 'My__string',
            ImageSmallIconUrl => 'My__string',
            ImageUrl          => 'My__string',
            JsonBody          => 'My__string',
            MediaUrl          => 'My__string',
            RawContent        => 'My__string',
            SilentPush        => 1,              # OPTIONAL
            TimeToLive        => 1,
            Title             => 'My__string',
            Url               => 'My__string',
          },    # OPTIONAL
          EmailMessage => {
            Body        => 'My__string',
            FromAddress => 'My__string',
            HtmlBody    => 'My__string',
            Title       => 'My__string',
          },    # OPTIONAL
          GCMMessage => {
            Action =>
              'OPEN_APP',    # values: OPEN_APP, DEEP_LINK, URL; OPTIONAL
            Body              => 'My__string',
            ImageIconUrl      => 'My__string',
            ImageSmallIconUrl => 'My__string',
            ImageUrl          => 'My__string',
            JsonBody          => 'My__string',
            MediaUrl          => 'My__string',
            RawContent        => 'My__string',
            SilentPush        => 1,              # OPTIONAL
            TimeToLive        => 1,
            Title             => 'My__string',
            Url               => 'My__string',
          },    # OPTIONAL
          SMSMessage => {
            Body        => 'My__string',
            EntityId    => 'My__string',
            MessageType => 'TRANSACTIONAL'
            ,    # values: TRANSACTIONAL, PROMOTIONAL; OPTIONAL
            OriginationNumber => 'My__string',
            SenderId          => 'My__string',
            TemplateId        => 'My__string',
          },    # OPTIONAL
        },    # OPTIONAL
        Schedule => {
          StartTime   => 'My__string',
          EndTime     => 'My__string',
          EventFilter => {
            Dimensions => {
              Attributes => {
                'My__string' => {
                  Values        => [ 'My__string', ... ],
                  AttributeType => 'INCLUSIVE'
                  , # values: INCLUSIVE, EXCLUSIVE, CONTAINS, BEFORE, AFTER, ON, BETWEEN; OPTIONAL
                },
              },    # OPTIONAL
              EventType => {
                Values        => [ 'My__string', ... ],
                DimensionType =>
                  'INCLUSIVE',    # values: INCLUSIVE, EXCLUSIVE; OPTIONAL
              },    # OPTIONAL
              Metrics => {
                'My__string' => {
                  ComparisonOperator => 'My__string',
                  Value              => 1,

                },
              },    # OPTIONAL
            },
            FilterType => 'SYSTEM',    # values: SYSTEM, ENDPOINT

          },    # OPTIONAL
          Frequency => 'ONCE'
          ,  # values: ONCE, HOURLY, DAILY, WEEKLY, MONTHLY, EVENT; OPTIONAL
          IsLocalTime => 1,    # OPTIONAL
          QuietTime   => {
            End   => 'My__string',
            Start => 'My__string',
          },                   # OPTIONAL
          Timezone => 'My__string',
        },    # OPTIONAL
        TemplateConfiguration => {
          EmailTemplate => {
            Name    => 'My__string',
            Version => 'My__string',
          },    # OPTIONAL
          PushTemplate => {
            Name    => 'My__string',
            Version => 'My__string',
          },    # OPTIONAL
          SMSTemplate => {
            Name    => 'My__string',
            Version => 'My__string',
          },    # OPTIONAL
          VoiceTemplate => {
            Name    => 'My__string',
            Version => 'My__string',
          },    # OPTIONAL
        },    # OPTIONAL
        TreatmentDescription => 'My__string',
        TreatmentName        => 'My__string',
      },
      ...
    ],    # OPTIONAL
    CustomDeliveryConfiguration => {
      DeliveryUri   => 'My__string',
      EndpointTypes => [
        'PUSH',
        ... # values: PUSH, GCM, APNS, APNS_SANDBOX, APNS_VOIP, APNS_VOIP_SANDBOX, ADM, SMS, VOICE, EMAIL, BAIDU, CUSTOM
      ],    # OPTIONAL
    },    # OPTIONAL
    Description    => 'My__string',
    HoldoutPercent => 1,
    Hook           => {
      LambdaFunctionName => 'My__string',
      Mode   => 'DELIVERY',     # values: DELIVERY, FILTER; OPTIONAL
      WebUrl => 'My__string',
    },    # OPTIONAL
    IsPaused => 1,    # OPTIONAL
    Limits   => {
      Daily             => 1,
      MaximumDuration   => 1,
      MessagesPerSecond => 1,
      Total             => 1,
    },                # OPTIONAL
    MessageConfiguration => {
      ADMMessage => {
        Action => 'OPEN_APP',   # values: OPEN_APP, DEEP_LINK, URL; OPTIONAL
        Body   => 'My__string',
        ImageIconUrl      => 'My__string',
        ImageSmallIconUrl => 'My__string',
        ImageUrl          => 'My__string',
        JsonBody          => 'My__string',
        MediaUrl          => 'My__string',
        RawContent        => 'My__string',
        SilentPush        => 1,              # OPTIONAL
        TimeToLive        => 1,
        Title             => 'My__string',
        Url               => 'My__string',
      },    # OPTIONAL
      APNSMessage => {
        Action => 'OPEN_APP',   # values: OPEN_APP, DEEP_LINK, URL; OPTIONAL
        Body   => 'My__string',
        ImageIconUrl      => 'My__string',
        ImageSmallIconUrl => 'My__string',
        ImageUrl          => 'My__string',
        JsonBody          => 'My__string',
        MediaUrl          => 'My__string',
        RawContent        => 'My__string',
        SilentPush        => 1,              # OPTIONAL
        TimeToLive        => 1,
        Title             => 'My__string',
        Url               => 'My__string',
      },    # OPTIONAL
      BaiduMessage => {
        Action => 'OPEN_APP',   # values: OPEN_APP, DEEP_LINK, URL; OPTIONAL
        Body   => 'My__string',
        ImageIconUrl      => 'My__string',
        ImageSmallIconUrl => 'My__string',
        ImageUrl          => 'My__string',
        JsonBody          => 'My__string',
        MediaUrl          => 'My__string',
        RawContent        => 'My__string',
        SilentPush        => 1,              # OPTIONAL
        TimeToLive        => 1,
        Title             => 'My__string',
        Url               => 'My__string',
      },    # OPTIONAL
      CustomMessage  => { Data => 'My__string', },    # OPTIONAL
      DefaultMessage => {
        Action => 'OPEN_APP',   # values: OPEN_APP, DEEP_LINK, URL; OPTIONAL
        Body   => 'My__string',
        ImageIconUrl      => 'My__string',
        ImageSmallIconUrl => 'My__string',
        ImageUrl          => 'My__string',
        JsonBody          => 'My__string',
        MediaUrl          => 'My__string',
        RawContent        => 'My__string',
        SilentPush        => 1,              # OPTIONAL
        TimeToLive        => 1,
        Title             => 'My__string',
        Url               => 'My__string',
      },    # OPTIONAL
      EmailMessage => {
        Body        => 'My__string',
        FromAddress => 'My__string',
        HtmlBody    => 'My__string',
        Title       => 'My__string',
      },    # OPTIONAL
      GCMMessage => {
        Action => 'OPEN_APP',   # values: OPEN_APP, DEEP_LINK, URL; OPTIONAL
        Body   => 'My__string',
        ImageIconUrl      => 'My__string',
        ImageSmallIconUrl => 'My__string',
        ImageUrl          => 'My__string',
        JsonBody          => 'My__string',
        MediaUrl          => 'My__string',
        RawContent        => 'My__string',
        SilentPush        => 1,              # OPTIONAL
        TimeToLive        => 1,
        Title             => 'My__string',
        Url               => 'My__string',
      },    # OPTIONAL
      SMSMessage => {
        Body        => 'My__string',
        EntityId    => 'My__string',
        MessageType =>
          'TRANSACTIONAL',    # values: TRANSACTIONAL, PROMOTIONAL; OPTIONAL
        OriginationNumber => 'My__string',
        SenderId          => 'My__string',
        TemplateId        => 'My__string',
      },    # OPTIONAL
    },    # OPTIONAL
    Name     => 'My__string',
    Schedule => {
      StartTime   => 'My__string',
      EndTime     => 'My__string',
      EventFilter => {
        Dimensions => {
          Attributes => {
            'My__string' => {
              Values        => [ 'My__string', ... ],
              AttributeType => 'INCLUSIVE'
              , # values: INCLUSIVE, EXCLUSIVE, CONTAINS, BEFORE, AFTER, ON, BETWEEN; OPTIONAL
            },
          },    # OPTIONAL
          EventType => {
            Values        => [ 'My__string', ... ],
            DimensionType =>
              'INCLUSIVE',    # values: INCLUSIVE, EXCLUSIVE; OPTIONAL
          },    # OPTIONAL
          Metrics => {
            'My__string' => {
              ComparisonOperator => 'My__string',
              Value              => 1,

            },
          },    # OPTIONAL
        },
        FilterType => 'SYSTEM',    # values: SYSTEM, ENDPOINT

      },    # OPTIONAL
      Frequency => 'ONCE'
      ,     # values: ONCE, HOURLY, DAILY, WEEKLY, MONTHLY, EVENT; OPTIONAL
      IsLocalTime => 1,    # OPTIONAL
      QuietTime   => {
        End   => 'My__string',
        Start => 'My__string',
      },                   # OPTIONAL
      Timezone => 'My__string',
    },    # OPTIONAL
    SegmentId             => 'My__string',
    SegmentVersion        => 1,
    Tags                  => { 'My__string' => 'My__string', },   # OPTIONAL
    TemplateConfiguration => {
      EmailTemplate => {
        Name    => 'My__string',
        Version => 'My__string',
      },                                                          # OPTIONAL
      PushTemplate => {
        Name    => 'My__string',
        Version => 'My__string',
      },                                                          # OPTIONAL
      SMSTemplate => {
        Name    => 'My__string',
        Version => 'My__string',
      },                                                          # OPTIONAL
      VoiceTemplate => {
        Name    => 'My__string',
        Version => 'My__string',
      },                                                          # OPTIONAL
    },    # OPTIONAL
    TreatmentDescription => 'My__string',
    TreatmentName        => 'My__string',
  },

);

# Results:
my $CampaignResponse = $UpdateCampaignResponse->CampaignResponse;

# Returns a L<Paws::Pinpoint::UpdateCampaignResponse> object.

Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see https://docs.aws.amazon.com/goto/WebAPI/pinpoint/UpdateCampaign

ATTRIBUTES

REQUIRED ApplicationId => Str

The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.

REQUIRED CampaignId => Str

The unique identifier for the campaign.

REQUIRED WriteCampaignRequest => Paws::Pinpoint::WriteCampaignRequest

SEE ALSO

This class forms part of Paws, documenting arguments for method UpdateCampaign in Paws::Pinpoint

BUGS and CONTRIBUTIONS

The source code is located here: https://github.com/pplu/aws-sdk-perl

Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues