amazonka-pinpoint-2.0: Amazon Pinpoint SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Pinpoint.Types.JourneyResponse

Description

 
Synopsis

Documentation

data JourneyResponse Source #

Provides information about the status, configuration, and other settings for a journey.

See: newJourneyResponse smart constructor.

Constructors

JourneyResponse' 

Fields

  • activities :: Maybe (HashMap Text Activity)

    A map that contains a set of Activity objects, one object for each activity in the journey. For each Activity object, the key is the unique identifier (string) for an activity and the value is the settings for the activity.

  • closedDays :: Maybe ClosedDays

    The time when journey will stop sending messages. QuietTime should be configured first and SendingSchedule should be set to true.

  • creationDate :: Maybe Text

    The date, in ISO 8601 format, when the journey was created.

  • journeyChannelSettings :: Maybe JourneyChannelSettings

    The channel-specific configurations for the journey.

  • lastModifiedDate :: Maybe Text

    The date, in ISO 8601 format, when the journey was last modified.

  • limits :: Maybe JourneyLimits

    The messaging and entry limits for the journey.

  • localTime :: Maybe Bool

    Specifies whether the journey's scheduled start and end times use each participant's local time. If this value is true, the schedule uses each participant's local time.

  • openHours :: Maybe OpenHours

    The time when journey allow to send messages. QuietTime should be configured first and SendingSchedule should be set to true.

  • quietTime :: Maybe QuietTime

    The quiet time settings for the journey. Quiet time is a specific time range when a journey doesn't send messages to participants, if all the following conditions are met:

    • The EndpointDemographic.Timezone property of the endpoint for the participant is set to a valid value.
    • The current time in the participant's time zone is later than or equal to the time specified by the QuietTime.Start property for the journey.
    • The current time in the participant's time zone is earlier than or equal to the time specified by the QuietTime.End property for the journey.

    If any of the preceding conditions isn't met, the participant will receive messages from the journey, even if quiet time is enabled.

  • refreshFrequency :: Maybe Text

    The frequency with which Amazon Pinpoint evaluates segment and event data for the journey, as a duration in ISO 8601 format.

  • refreshOnSegmentUpdate :: Maybe Bool

    Specifies whether a journey should be refreshed on segment update.

  • schedule :: Maybe JourneySchedule

    The schedule settings for the journey.

  • sendingSchedule :: Maybe Bool

    Indicates if journey have Advance Quiet Time (OpenHours and ClosedDays). This flag should be set to true in order to allow (OpenHours and ClosedDays)

  • startActivity :: Maybe Text

    The unique identifier for the first activity in the journey.

  • startCondition :: Maybe StartCondition

    The segment that defines which users are participants in the journey.

  • state :: Maybe State

    The current status of the journey. Possible values are:

    • DRAFT - The journey is being developed and hasn't been published yet.
    • ACTIVE - The journey has been developed and published. Depending on the journey's schedule, the journey may currently be running or scheduled to start running at a later time. If a journey's status is ACTIVE, you can't add, change, or remove activities from it.
    • COMPLETED - The journey has been published and has finished running. All participants have entered the journey and no participants are waiting to complete the journey or any activities in the journey.
    • CANCELLED - The journey has been stopped. If a journey's status is CANCELLED, you can't add, change, or remove activities or segment settings from the journey.
    • CLOSED - The journey has been published and has started running. It may have also passed its scheduled end time, or passed its scheduled start time and a refresh frequency hasn't been specified for it. If a journey's status is CLOSED, you can't add participants to it, and no existing participants can enter the journey for the first time. However, any existing participants who are currently waiting to start an activity may continue the journey.
  • waitForQuietTime :: Maybe Bool

    Specifies whether endpoints in quiet hours should enter a wait till the end of their quiet hours.

  • tags :: Maybe (HashMap Text Text)

    This object is not used or supported.

  • name :: Text

    The name of the journey.

  • id :: Text

    The unique identifier for the journey.

  • applicationId :: Text

    The unique identifier for the application that the journey applies to.

Instances

Instances details
FromJSON JourneyResponse Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.JourneyResponse

Generic JourneyResponse Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.JourneyResponse

Associated Types

type Rep JourneyResponse :: Type -> Type #

Read JourneyResponse Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.JourneyResponse

Show JourneyResponse Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.JourneyResponse

NFData JourneyResponse Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.JourneyResponse

Methods

rnf :: JourneyResponse -> () #

Eq JourneyResponse Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.JourneyResponse

Hashable JourneyResponse Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.JourneyResponse

type Rep JourneyResponse Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.JourneyResponse

type Rep JourneyResponse = D1 ('MetaData "JourneyResponse" "Amazonka.Pinpoint.Types.JourneyResponse" "amazonka-pinpoint-2.0-GBFs9S7wa7bFiDe66NqAzt" 'False) (C1 ('MetaCons "JourneyResponse'" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "activities") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Activity))) :*: S1 ('MetaSel ('Just "closedDays") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ClosedDays))) :*: (S1 ('MetaSel ('Just "creationDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "journeyChannelSettings") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe JourneyChannelSettings)) :*: S1 ('MetaSel ('Just "lastModifiedDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 ('MetaSel ('Just "limits") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe JourneyLimits)) :*: S1 ('MetaSel ('Just "localTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "openHours") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe OpenHours)) :*: (S1 ('MetaSel ('Just "quietTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe QuietTime)) :*: S1 ('MetaSel ('Just "refreshFrequency") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))) :*: (((S1 ('MetaSel ('Just "refreshOnSegmentUpdate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "schedule") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe JourneySchedule))) :*: (S1 ('MetaSel ('Just "sendingSchedule") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "startActivity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "startCondition") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe StartCondition))))) :*: ((S1 ('MetaSel ('Just "state") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe State)) :*: (S1 ('MetaSel ('Just "waitForQuietTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))))) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "applicationId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))))

newJourneyResponse Source #

Create a value of JourneyResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:activities:JourneyResponse', journeyResponse_activities - A map that contains a set of Activity objects, one object for each activity in the journey. For each Activity object, the key is the unique identifier (string) for an activity and the value is the settings for the activity.

$sel:closedDays:JourneyResponse', journeyResponse_closedDays - The time when journey will stop sending messages. QuietTime should be configured first and SendingSchedule should be set to true.

$sel:creationDate:JourneyResponse', journeyResponse_creationDate - The date, in ISO 8601 format, when the journey was created.

$sel:journeyChannelSettings:JourneyResponse', journeyResponse_journeyChannelSettings - The channel-specific configurations for the journey.

$sel:lastModifiedDate:JourneyResponse', journeyResponse_lastModifiedDate - The date, in ISO 8601 format, when the journey was last modified.

$sel:limits:JourneyResponse', journeyResponse_limits - The messaging and entry limits for the journey.

$sel:localTime:JourneyResponse', journeyResponse_localTime - Specifies whether the journey's scheduled start and end times use each participant's local time. If this value is true, the schedule uses each participant's local time.

$sel:openHours:JourneyResponse', journeyResponse_openHours - The time when journey allow to send messages. QuietTime should be configured first and SendingSchedule should be set to true.

$sel:quietTime:JourneyResponse', journeyResponse_quietTime - The quiet time settings for the journey. Quiet time is a specific time range when a journey doesn't send messages to participants, if all the following conditions are met:

  • The EndpointDemographic.Timezone property of the endpoint for the participant is set to a valid value.
  • The current time in the participant's time zone is later than or equal to the time specified by the QuietTime.Start property for the journey.
  • The current time in the participant's time zone is earlier than or equal to the time specified by the QuietTime.End property for the journey.

If any of the preceding conditions isn't met, the participant will receive messages from the journey, even if quiet time is enabled.

$sel:refreshFrequency:JourneyResponse', journeyResponse_refreshFrequency - The frequency with which Amazon Pinpoint evaluates segment and event data for the journey, as a duration in ISO 8601 format.

$sel:refreshOnSegmentUpdate:JourneyResponse', journeyResponse_refreshOnSegmentUpdate - Specifies whether a journey should be refreshed on segment update.

$sel:schedule:JourneyResponse', journeyResponse_schedule - The schedule settings for the journey.

$sel:sendingSchedule:JourneyResponse', journeyResponse_sendingSchedule - Indicates if journey have Advance Quiet Time (OpenHours and ClosedDays). This flag should be set to true in order to allow (OpenHours and ClosedDays)

$sel:startActivity:JourneyResponse', journeyResponse_startActivity - The unique identifier for the first activity in the journey.

$sel:startCondition:JourneyResponse', journeyResponse_startCondition - The segment that defines which users are participants in the journey.

$sel:state:JourneyResponse', journeyResponse_state - The current status of the journey. Possible values are:

  • DRAFT - The journey is being developed and hasn't been published yet.
  • ACTIVE - The journey has been developed and published. Depending on the journey's schedule, the journey may currently be running or scheduled to start running at a later time. If a journey's status is ACTIVE, you can't add, change, or remove activities from it.
  • COMPLETED - The journey has been published and has finished running. All participants have entered the journey and no participants are waiting to complete the journey or any activities in the journey.
  • CANCELLED - The journey has been stopped. If a journey's status is CANCELLED, you can't add, change, or remove activities or segment settings from the journey.
  • CLOSED - The journey has been published and has started running. It may have also passed its scheduled end time, or passed its scheduled start time and a refresh frequency hasn't been specified for it. If a journey's status is CLOSED, you can't add participants to it, and no existing participants can enter the journey for the first time. However, any existing participants who are currently waiting to start an activity may continue the journey.

$sel:waitForQuietTime:JourneyResponse', journeyResponse_waitForQuietTime - Specifies whether endpoints in quiet hours should enter a wait till the end of their quiet hours.

$sel:tags:JourneyResponse', journeyResponse_tags - This object is not used or supported.

$sel:name:JourneyResponse', journeyResponse_name - The name of the journey.

$sel:id:JourneyResponse', journeyResponse_id - The unique identifier for the journey.

$sel:applicationId:JourneyResponse', journeyResponse_applicationId - The unique identifier for the application that the journey applies to.

journeyResponse_activities :: Lens' JourneyResponse (Maybe (HashMap Text Activity)) Source #

A map that contains a set of Activity objects, one object for each activity in the journey. For each Activity object, the key is the unique identifier (string) for an activity and the value is the settings for the activity.

journeyResponse_closedDays :: Lens' JourneyResponse (Maybe ClosedDays) Source #

The time when journey will stop sending messages. QuietTime should be configured first and SendingSchedule should be set to true.

journeyResponse_creationDate :: Lens' JourneyResponse (Maybe Text) Source #

The date, in ISO 8601 format, when the journey was created.

journeyResponse_journeyChannelSettings :: Lens' JourneyResponse (Maybe JourneyChannelSettings) Source #

The channel-specific configurations for the journey.

journeyResponse_lastModifiedDate :: Lens' JourneyResponse (Maybe Text) Source #

The date, in ISO 8601 format, when the journey was last modified.

journeyResponse_limits :: Lens' JourneyResponse (Maybe JourneyLimits) Source #

The messaging and entry limits for the journey.

journeyResponse_localTime :: Lens' JourneyResponse (Maybe Bool) Source #

Specifies whether the journey's scheduled start and end times use each participant's local time. If this value is true, the schedule uses each participant's local time.

journeyResponse_openHours :: Lens' JourneyResponse (Maybe OpenHours) Source #

The time when journey allow to send messages. QuietTime should be configured first and SendingSchedule should be set to true.

journeyResponse_quietTime :: Lens' JourneyResponse (Maybe QuietTime) Source #

The quiet time settings for the journey. Quiet time is a specific time range when a journey doesn't send messages to participants, if all the following conditions are met:

  • The EndpointDemographic.Timezone property of the endpoint for the participant is set to a valid value.
  • The current time in the participant's time zone is later than or equal to the time specified by the QuietTime.Start property for the journey.
  • The current time in the participant's time zone is earlier than or equal to the time specified by the QuietTime.End property for the journey.

If any of the preceding conditions isn't met, the participant will receive messages from the journey, even if quiet time is enabled.

journeyResponse_refreshFrequency :: Lens' JourneyResponse (Maybe Text) Source #

The frequency with which Amazon Pinpoint evaluates segment and event data for the journey, as a duration in ISO 8601 format.

journeyResponse_refreshOnSegmentUpdate :: Lens' JourneyResponse (Maybe Bool) Source #

Specifies whether a journey should be refreshed on segment update.

journeyResponse_schedule :: Lens' JourneyResponse (Maybe JourneySchedule) Source #

The schedule settings for the journey.

journeyResponse_sendingSchedule :: Lens' JourneyResponse (Maybe Bool) Source #

Indicates if journey have Advance Quiet Time (OpenHours and ClosedDays). This flag should be set to true in order to allow (OpenHours and ClosedDays)

journeyResponse_startActivity :: Lens' JourneyResponse (Maybe Text) Source #

The unique identifier for the first activity in the journey.

journeyResponse_startCondition :: Lens' JourneyResponse (Maybe StartCondition) Source #

The segment that defines which users are participants in the journey.

journeyResponse_state :: Lens' JourneyResponse (Maybe State) Source #

The current status of the journey. Possible values are:

  • DRAFT - The journey is being developed and hasn't been published yet.
  • ACTIVE - The journey has been developed and published. Depending on the journey's schedule, the journey may currently be running or scheduled to start running at a later time. If a journey's status is ACTIVE, you can't add, change, or remove activities from it.
  • COMPLETED - The journey has been published and has finished running. All participants have entered the journey and no participants are waiting to complete the journey or any activities in the journey.
  • CANCELLED - The journey has been stopped. If a journey's status is CANCELLED, you can't add, change, or remove activities or segment settings from the journey.
  • CLOSED - The journey has been published and has started running. It may have also passed its scheduled end time, or passed its scheduled start time and a refresh frequency hasn't been specified for it. If a journey's status is CLOSED, you can't add participants to it, and no existing participants can enter the journey for the first time. However, any existing participants who are currently waiting to start an activity may continue the journey.

journeyResponse_waitForQuietTime :: Lens' JourneyResponse (Maybe Bool) Source #

Specifies whether endpoints in quiet hours should enter a wait till the end of their quiet hours.

journeyResponse_tags :: Lens' JourneyResponse (Maybe (HashMap Text Text)) Source #

This object is not used or supported.

journeyResponse_id :: Lens' JourneyResponse Text Source #

The unique identifier for the journey.

journeyResponse_applicationId :: Lens' JourneyResponse Text Source #

The unique identifier for the application that the journey applies to.