Skip to content

Create Journey

pinpoint_create_journey R Documentation

Creates a journey for an application

Description

Creates a journey for an application.

Usage

pinpoint_create_journey(ApplicationId, WriteJourneyRequest)

Arguments

ApplicationId

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

WriteJourneyRequest

[required]

Value

A list with the following syntax:

list(
  JourneyResponse = list(
    Activities = list(
      list(
        CUSTOM = list(
          DeliveryUri = "string",
          EndpointTypes = list(
            "PUSH"|"GCM"|"APNS"|"APNS_SANDBOX"|"APNS_VOIP"|"APNS_VOIP_SANDBOX"|"ADM"|"SMS"|"VOICE"|"EMAIL"|"BAIDU"|"CUSTOM"|"IN_APP"
          ),
          MessageConfig = list(
            Data = "string"
          ),
          NextActivity = "string",
          TemplateName = "string",
          TemplateVersion = "string"
        ),
        ConditionalSplit = list(
          Condition = list(
            Conditions = list(
              list(
                EventCondition = list(
                  Dimensions = list(
                    Attributes = list(
                      list(
                        AttributeType = "INCLUSIVE"|"EXCLUSIVE"|"CONTAINS"|"BEFORE"|"AFTER"|"ON"|"BETWEEN",
                        Values = list(
                          "string"
                        )
                      )
                    ),
                    EventType = list(
                      DimensionType = "INCLUSIVE"|"EXCLUSIVE",
                      Values = list(
                        "string"
                      )
                    ),
                    Metrics = list(
                      list(
                        ComparisonOperator = "string",
                        Value = 123.0
                      )
                    )
                  ),
                  MessageActivity = "string"
                ),
                SegmentCondition = list(
                  SegmentId = "string"
                ),
                SegmentDimensions = list(
                  Attributes = list(
                    list(
                      AttributeType = "INCLUSIVE"|"EXCLUSIVE"|"CONTAINS"|"BEFORE"|"AFTER"|"ON"|"BETWEEN",
                      Values = list(
                        "string"
                      )
                    )
                  ),
                  Behavior = list(
                    Recency = list(
                      Duration = "HR_24"|"DAY_7"|"DAY_14"|"DAY_30",
                      RecencyType = "ACTIVE"|"INACTIVE"
                    )
                  ),
                  Demographic = list(
                    AppVersion = list(
                      DimensionType = "INCLUSIVE"|"EXCLUSIVE",
                      Values = list(
                        "string"
                      )
                    ),
                    Channel = list(
                      DimensionType = "INCLUSIVE"|"EXCLUSIVE",
                      Values = list(
                        "string"
                      )
                    ),
                    DeviceType = list(
                      DimensionType = "INCLUSIVE"|"EXCLUSIVE",
                      Values = list(
                        "string"
                      )
                    ),
                    Make = list(
                      DimensionType = "INCLUSIVE"|"EXCLUSIVE",
                      Values = list(
                        "string"
                      )
                    ),
                    Model = list(
                      DimensionType = "INCLUSIVE"|"EXCLUSIVE",
                      Values = list(
                        "string"
                      )
                    ),
                    Platform = list(
                      DimensionType = "INCLUSIVE"|"EXCLUSIVE",
                      Values = list(
                        "string"
                      )
                    )
                  ),
                  Location = list(
                    Country = list(
                      DimensionType = "INCLUSIVE"|"EXCLUSIVE",
                      Values = list(
                        "string"
                      )
                    ),
                    GPSPoint = list(
                      Coordinates = list(
                        Latitude = 123.0,
                        Longitude = 123.0
                      ),
                      RangeInKilometers = 123.0
                    )
                  ),
                  Metrics = list(
                    list(
                      ComparisonOperator = "string",
                      Value = 123.0
                    )
                  ),
                  UserAttributes = list(
                    list(
                      AttributeType = "INCLUSIVE"|"EXCLUSIVE"|"CONTAINS"|"BEFORE"|"AFTER"|"ON"|"BETWEEN",
                      Values = list(
                        "string"
                      )
                    )
                  )
                )
              )
            ),
            Operator = "ALL"|"ANY"
          ),
          EvaluationWaitTime = list(
            WaitFor = "string",
            WaitUntil = "string"
          ),
          FalseActivity = "string",
          TrueActivity = "string"
        ),
        Description = "string",
        EMAIL = list(
          MessageConfig = list(
            FromAddress = "string"
          ),
          NextActivity = "string",
          TemplateName = "string",
          TemplateVersion = "string"
        ),
        Holdout = list(
          NextActivity = "string",
          Percentage = 123
        ),
        MultiCondition = list(
          Branches = list(
            list(
              Condition = list(
                EventCondition = list(
                  Dimensions = list(
                    Attributes = list(
                      list(
                        AttributeType = "INCLUSIVE"|"EXCLUSIVE"|"CONTAINS"|"BEFORE"|"AFTER"|"ON"|"BETWEEN",
                        Values = list(
                          "string"
                        )
                      )
                    ),
                    EventType = list(
                      DimensionType = "INCLUSIVE"|"EXCLUSIVE",
                      Values = list(
                        "string"
                      )
                    ),
                    Metrics = list(
                      list(
                        ComparisonOperator = "string",
                        Value = 123.0
                      )
                    )
                  ),
                  MessageActivity = "string"
                ),
                SegmentCondition = list(
                  SegmentId = "string"
                ),
                SegmentDimensions = list(
                  Attributes = list(
                    list(
                      AttributeType = "INCLUSIVE"|"EXCLUSIVE"|"CONTAINS"|"BEFORE"|"AFTER"|"ON"|"BETWEEN",
                      Values = list(
                        "string"
                      )
                    )
                  ),
                  Behavior = list(
                    Recency = list(
                      Duration = "HR_24"|"DAY_7"|"DAY_14"|"DAY_30",
                      RecencyType = "ACTIVE"|"INACTIVE"
                    )
                  ),
                  Demographic = list(
                    AppVersion = list(
                      DimensionType = "INCLUSIVE"|"EXCLUSIVE",
                      Values = list(
                        "string"
                      )
                    ),
                    Channel = list(
                      DimensionType = "INCLUSIVE"|"EXCLUSIVE",
                      Values = list(
                        "string"
                      )
                    ),
                    DeviceType = list(
                      DimensionType = "INCLUSIVE"|"EXCLUSIVE",
                      Values = list(
                        "string"
                      )
                    ),
                    Make = list(
                      DimensionType = "INCLUSIVE"|"EXCLUSIVE",
                      Values = list(
                        "string"
                      )
                    ),
                    Model = list(
                      DimensionType = "INCLUSIVE"|"EXCLUSIVE",
                      Values = list(
                        "string"
                      )
                    ),
                    Platform = list(
                      DimensionType = "INCLUSIVE"|"EXCLUSIVE",
                      Values = list(
                        "string"
                      )
                    )
                  ),
                  Location = list(
                    Country = list(
                      DimensionType = "INCLUSIVE"|"EXCLUSIVE",
                      Values = list(
                        "string"
                      )
                    ),
                    GPSPoint = list(
                      Coordinates = list(
                        Latitude = 123.0,
                        Longitude = 123.0
                      ),
                      RangeInKilometers = 123.0
                    )
                  ),
                  Metrics = list(
                    list(
                      ComparisonOperator = "string",
                      Value = 123.0
                    )
                  ),
                  UserAttributes = list(
                    list(
                      AttributeType = "INCLUSIVE"|"EXCLUSIVE"|"CONTAINS"|"BEFORE"|"AFTER"|"ON"|"BETWEEN",
                      Values = list(
                        "string"
                      )
                    )
                  )
                )
              ),
              NextActivity = "string"
            )
          ),
          DefaultActivity = "string",
          EvaluationWaitTime = list(
            WaitFor = "string",
            WaitUntil = "string"
          )
        ),
        PUSH = list(
          MessageConfig = list(
            TimeToLive = "string"
          ),
          NextActivity = "string",
          TemplateName = "string",
          TemplateVersion = "string"
        ),
        RandomSplit = list(
          Branches = list(
            list(
              NextActivity = "string",
              Percentage = 123
            )
          )
        ),
        SMS = list(
          MessageConfig = list(
            MessageType = "TRANSACTIONAL"|"PROMOTIONAL",
            OriginationNumber = "string",
            SenderId = "string",
            EntityId = "string",
            TemplateId = "string"
          ),
          NextActivity = "string",
          TemplateName = "string",
          TemplateVersion = "string"
        ),
        Wait = list(
          NextActivity = "string",
          WaitTime = list(
            WaitFor = "string",
            WaitUntil = "string"
          )
        ),
        ContactCenter = list(
          NextActivity = "string"
        )
      )
    ),
    ApplicationId = "string",
    CreationDate = "string",
    Id = "string",
    LastModifiedDate = "string",
    Limits = list(
      DailyCap = 123,
      EndpointReentryCap = 123,
      MessagesPerSecond = 123,
      EndpointReentryInterval = "string",
      TimeframeCap = list(
        Cap = 123,
        Days = 123
      ),
      TotalCap = 123
    ),
    LocalTime = TRUE|FALSE,
    Name = "string",
    QuietTime = list(
      End = "string",
      Start = "string"
    ),
    RefreshFrequency = "string",
    Schedule = list(
      EndTime = as.POSIXct(
        "2015-01-01"
      ),
      StartTime = as.POSIXct(
        "2015-01-01"
      ),
      Timezone = "string"
    ),
    StartActivity = "string",
    StartCondition = list(
      Description = "string",
      EventStartCondition = list(
        EventFilter = list(
          Dimensions = list(
            Attributes = list(
              list(
                AttributeType = "INCLUSIVE"|"EXCLUSIVE"|"CONTAINS"|"BEFORE"|"AFTER"|"ON"|"BETWEEN",
                Values = list(
                  "string"
                )
              )
            ),
            EventType = list(
              DimensionType = "INCLUSIVE"|"EXCLUSIVE",
              Values = list(
                "string"
              )
            ),
            Metrics = list(
              list(
                ComparisonOperator = "string",
                Value = 123.0
              )
            )
          ),
          FilterType = "SYSTEM"|"ENDPOINT"
        ),
        SegmentId = "string"
      ),
      SegmentStartCondition = list(
        SegmentId = "string"
      )
    ),
    State = "DRAFT"|"ACTIVE"|"COMPLETED"|"CANCELLED"|"CLOSED"|"PAUSED",
    tags = list(
      "string"
    ),
    WaitForQuietTime = TRUE|FALSE,
    RefreshOnSegmentUpdate = TRUE|FALSE,
    JourneyChannelSettings = list(
      ConnectCampaignArn = "string",
      ConnectCampaignExecutionRoleArn = "string"
    ),
    SendingSchedule = TRUE|FALSE,
    OpenHours = list(
      EMAIL = list(
        list(
          list(
            StartTime = "string",
            EndTime = "string"
          )
        )
      ),
      SMS = list(
        list(
          list(
            StartTime = "string",
            EndTime = "string"
          )
        )
      ),
      PUSH = list(
        list(
          list(
            StartTime = "string",
            EndTime = "string"
          )
        )
      ),
      VOICE = list(
        list(
          list(
            StartTime = "string",
            EndTime = "string"
          )
        )
      ),
      CUSTOM = list(
        list(
          list(
            StartTime = "string",
            EndTime = "string"
          )
        )
      )
    ),
    ClosedDays = list(
      EMAIL = list(
        list(
          Name = "string",
          StartDateTime = "string",
          EndDateTime = "string"
        )
      ),
      SMS = list(
        list(
          Name = "string",
          StartDateTime = "string",
          EndDateTime = "string"
        )
      ),
      PUSH = list(
        list(
          Name = "string",
          StartDateTime = "string",
          EndDateTime = "string"
        )
      ),
      VOICE = list(
        list(
          Name = "string",
          StartDateTime = "string",
          EndDateTime = "string"
        )
      ),
      CUSTOM = list(
        list(
          Name = "string",
          StartDateTime = "string",
          EndDateTime = "string"
        )
      )
    ),
    TimezoneEstimationMethods = list(
      "PHONE_NUMBER"|"POSTAL_CODE"
    )
  )
)

Request syntax

svc$create_journey(
  ApplicationId = "string",
  WriteJourneyRequest = list(
    Activities = list(
      list(
        CUSTOM = list(
          DeliveryUri = "string",
          EndpointTypes = list(
            "PUSH"|"GCM"|"APNS"|"APNS_SANDBOX"|"APNS_VOIP"|"APNS_VOIP_SANDBOX"|"ADM"|"SMS"|"VOICE"|"EMAIL"|"BAIDU"|"CUSTOM"|"IN_APP"
          ),
          MessageConfig = list(
            Data = "string"
          ),
          NextActivity = "string",
          TemplateName = "string",
          TemplateVersion = "string"
        ),
        ConditionalSplit = list(
          Condition = list(
            Conditions = list(
              list(
                EventCondition = list(
                  Dimensions = list(
                    Attributes = list(
                      list(
                        AttributeType = "INCLUSIVE"|"EXCLUSIVE"|"CONTAINS"|"BEFORE"|"AFTER"|"ON"|"BETWEEN",
                        Values = list(
                          "string"
                        )
                      )
                    ),
                    EventType = list(
                      DimensionType = "INCLUSIVE"|"EXCLUSIVE",
                      Values = list(
                        "string"
                      )
                    ),
                    Metrics = list(
                      list(
                        ComparisonOperator = "string",
                        Value = 123.0
                      )
                    )
                  ),
                  MessageActivity = "string"
                ),
                SegmentCondition = list(
                  SegmentId = "string"
                ),
                SegmentDimensions = list(
                  Attributes = list(
                    list(
                      AttributeType = "INCLUSIVE"|"EXCLUSIVE"|"CONTAINS"|"BEFORE"|"AFTER"|"ON"|"BETWEEN",
                      Values = list(
                        "string"
                      )
                    )
                  ),
                  Behavior = list(
                    Recency = list(
                      Duration = "HR_24"|"DAY_7"|"DAY_14"|"DAY_30",
                      RecencyType = "ACTIVE"|"INACTIVE"
                    )
                  ),
                  Demographic = list(
                    AppVersion = list(
                      DimensionType = "INCLUSIVE"|"EXCLUSIVE",
                      Values = list(
                        "string"
                      )
                    ),
                    Channel = list(
                      DimensionType = "INCLUSIVE"|"EXCLUSIVE",
                      Values = list(
                        "string"
                      )
                    ),
                    DeviceType = list(
                      DimensionType = "INCLUSIVE"|"EXCLUSIVE",
                      Values = list(
                        "string"
                      )
                    ),
                    Make = list(
                      DimensionType = "INCLUSIVE"|"EXCLUSIVE",
                      Values = list(
                        "string"
                      )
                    ),
                    Model = list(
                      DimensionType = "INCLUSIVE"|"EXCLUSIVE",
                      Values = list(
                        "string"
                      )
                    ),
                    Platform = list(
                      DimensionType = "INCLUSIVE"|"EXCLUSIVE",
                      Values = list(
                        "string"
                      )
                    )
                  ),
                  Location = list(
                    Country = list(
                      DimensionType = "INCLUSIVE"|"EXCLUSIVE",
                      Values = list(
                        "string"
                      )
                    ),
                    GPSPoint = list(
                      Coordinates = list(
                        Latitude = 123.0,
                        Longitude = 123.0
                      ),
                      RangeInKilometers = 123.0
                    )
                  ),
                  Metrics = list(
                    list(
                      ComparisonOperator = "string",
                      Value = 123.0
                    )
                  ),
                  UserAttributes = list(
                    list(
                      AttributeType = "INCLUSIVE"|"EXCLUSIVE"|"CONTAINS"|"BEFORE"|"AFTER"|"ON"|"BETWEEN",
                      Values = list(
                        "string"
                      )
                    )
                  )
                )
              )
            ),
            Operator = "ALL"|"ANY"
          ),
          EvaluationWaitTime = list(
            WaitFor = "string",
            WaitUntil = "string"
          ),
          FalseActivity = "string",
          TrueActivity = "string"
        ),
        Description = "string",
        EMAIL = list(
          MessageConfig = list(
            FromAddress = "string"
          ),
          NextActivity = "string",
          TemplateName = "string",
          TemplateVersion = "string"
        ),
        Holdout = list(
          NextActivity = "string",
          Percentage = 123
        ),
        MultiCondition = list(
          Branches = list(
            list(
              Condition = list(
                EventCondition = list(
                  Dimensions = list(
                    Attributes = list(
                      list(
                        AttributeType = "INCLUSIVE"|"EXCLUSIVE"|"CONTAINS"|"BEFORE"|"AFTER"|"ON"|"BETWEEN",
                        Values = list(
                          "string"
                        )
                      )
                    ),
                    EventType = list(
                      DimensionType = "INCLUSIVE"|"EXCLUSIVE",
                      Values = list(
                        "string"
                      )
                    ),
                    Metrics = list(
                      list(
                        ComparisonOperator = "string",
                        Value = 123.0
                      )
                    )
                  ),
                  MessageActivity = "string"
                ),
                SegmentCondition = list(
                  SegmentId = "string"
                ),
                SegmentDimensions = list(
                  Attributes = list(
                    list(
                      AttributeType = "INCLUSIVE"|"EXCLUSIVE"|"CONTAINS"|"BEFORE"|"AFTER"|"ON"|"BETWEEN",
                      Values = list(
                        "string"
                      )
                    )
                  ),
                  Behavior = list(
                    Recency = list(
                      Duration = "HR_24"|"DAY_7"|"DAY_14"|"DAY_30",
                      RecencyType = "ACTIVE"|"INACTIVE"
                    )
                  ),
                  Demographic = list(
                    AppVersion = list(
                      DimensionType = "INCLUSIVE"|"EXCLUSIVE",
                      Values = list(
                        "string"
                      )
                    ),
                    Channel = list(
                      DimensionType = "INCLUSIVE"|"EXCLUSIVE",
                      Values = list(
                        "string"
                      )
                    ),
                    DeviceType = list(
                      DimensionType = "INCLUSIVE"|"EXCLUSIVE",
                      Values = list(
                        "string"
                      )
                    ),
                    Make = list(
                      DimensionType = "INCLUSIVE"|"EXCLUSIVE",
                      Values = list(
                        "string"
                      )
                    ),
                    Model = list(
                      DimensionType = "INCLUSIVE"|"EXCLUSIVE",
                      Values = list(
                        "string"
                      )
                    ),
                    Platform = list(
                      DimensionType = "INCLUSIVE"|"EXCLUSIVE",
                      Values = list(
                        "string"
                      )
                    )
                  ),
                  Location = list(
                    Country = list(
                      DimensionType = "INCLUSIVE"|"EXCLUSIVE",
                      Values = list(
                        "string"
                      )
                    ),
                    GPSPoint = list(
                      Coordinates = list(
                        Latitude = 123.0,
                        Longitude = 123.0
                      ),
                      RangeInKilometers = 123.0
                    )
                  ),
                  Metrics = list(
                    list(
                      ComparisonOperator = "string",
                      Value = 123.0
                    )
                  ),
                  UserAttributes = list(
                    list(
                      AttributeType = "INCLUSIVE"|"EXCLUSIVE"|"CONTAINS"|"BEFORE"|"AFTER"|"ON"|"BETWEEN",
                      Values = list(
                        "string"
                      )
                    )
                  )
                )
              ),
              NextActivity = "string"
            )
          ),
          DefaultActivity = "string",
          EvaluationWaitTime = list(
            WaitFor = "string",
            WaitUntil = "string"
          )
        ),
        PUSH = list(
          MessageConfig = list(
            TimeToLive = "string"
          ),
          NextActivity = "string",
          TemplateName = "string",
          TemplateVersion = "string"
        ),
        RandomSplit = list(
          Branches = list(
            list(
              NextActivity = "string",
              Percentage = 123
            )
          )
        ),
        SMS = list(
          MessageConfig = list(
            MessageType = "TRANSACTIONAL"|"PROMOTIONAL",
            OriginationNumber = "string",
            SenderId = "string",
            EntityId = "string",
            TemplateId = "string"
          ),
          NextActivity = "string",
          TemplateName = "string",
          TemplateVersion = "string"
        ),
        Wait = list(
          NextActivity = "string",
          WaitTime = list(
            WaitFor = "string",
            WaitUntil = "string"
          )
        ),
        ContactCenter = list(
          NextActivity = "string"
        )
      )
    ),
    CreationDate = "string",
    LastModifiedDate = "string",
    Limits = list(
      DailyCap = 123,
      EndpointReentryCap = 123,
      MessagesPerSecond = 123,
      EndpointReentryInterval = "string",
      TimeframeCap = list(
        Cap = 123,
        Days = 123
      ),
      TotalCap = 123
    ),
    LocalTime = TRUE|FALSE,
    Name = "string",
    QuietTime = list(
      End = "string",
      Start = "string"
    ),
    RefreshFrequency = "string",
    Schedule = list(
      EndTime = as.POSIXct(
        "2015-01-01"
      ),
      StartTime = as.POSIXct(
        "2015-01-01"
      ),
      Timezone = "string"
    ),
    StartActivity = "string",
    StartCondition = list(
      Description = "string",
      EventStartCondition = list(
        EventFilter = list(
          Dimensions = list(
            Attributes = list(
              list(
                AttributeType = "INCLUSIVE"|"EXCLUSIVE"|"CONTAINS"|"BEFORE"|"AFTER"|"ON"|"BETWEEN",
                Values = list(
                  "string"
                )
              )
            ),
            EventType = list(
              DimensionType = "INCLUSIVE"|"EXCLUSIVE",
              Values = list(
                "string"
              )
            ),
            Metrics = list(
              list(
                ComparisonOperator = "string",
                Value = 123.0
              )
            )
          ),
          FilterType = "SYSTEM"|"ENDPOINT"
        ),
        SegmentId = "string"
      ),
      SegmentStartCondition = list(
        SegmentId = "string"
      )
    ),
    State = "DRAFT"|"ACTIVE"|"COMPLETED"|"CANCELLED"|"CLOSED"|"PAUSED",
    WaitForQuietTime = TRUE|FALSE,
    RefreshOnSegmentUpdate = TRUE|FALSE,
    JourneyChannelSettings = list(
      ConnectCampaignArn = "string",
      ConnectCampaignExecutionRoleArn = "string"
    ),
    SendingSchedule = TRUE|FALSE,
    OpenHours = list(
      EMAIL = list(
        list(
          list(
            StartTime = "string",
            EndTime = "string"
          )
        )
      ),
      SMS = list(
        list(
          list(
            StartTime = "string",
            EndTime = "string"
          )
        )
      ),
      PUSH = list(
        list(
          list(
            StartTime = "string",
            EndTime = "string"
          )
        )
      ),
      VOICE = list(
        list(
          list(
            StartTime = "string",
            EndTime = "string"
          )
        )
      ),
      CUSTOM = list(
        list(
          list(
            StartTime = "string",
            EndTime = "string"
          )
        )
      )
    ),
    ClosedDays = list(
      EMAIL = list(
        list(
          Name = "string",
          StartDateTime = "string",
          EndDateTime = "string"
        )
      ),
      SMS = list(
        list(
          Name = "string",
          StartDateTime = "string",
          EndDateTime = "string"
        )
      ),
      PUSH = list(
        list(
          Name = "string",
          StartDateTime = "string",
          EndDateTime = "string"
        )
      ),
      VOICE = list(
        list(
          Name = "string",
          StartDateTime = "string",
          EndDateTime = "string"
        )
      ),
      CUSTOM = list(
        list(
          Name = "string",
          StartDateTime = "string",
          EndDateTime = "string"
        )
      )
    ),
    TimezoneEstimationMethods = list(
      "PHONE_NUMBER"|"POSTAL_CODE"
    )
  )
)