{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.Pinpoint.Types.RecommenderConfigurationResponse
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Pinpoint.Types.RecommenderConfigurationResponse where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

-- | Provides information about Amazon Pinpoint configuration settings for
-- retrieving and processing data from a recommender model.
--
-- /See:/ 'newRecommenderConfigurationResponse' smart constructor.
data RecommenderConfigurationResponse = RecommenderConfigurationResponse'
  { -- | A map that defines 1-10 custom endpoint or user attributes, depending on
    -- the value for the RecommendationProviderIdType property. Each of these
    -- attributes temporarily stores a recommended item that\'s retrieved from
    -- the recommender model and sent to an AWS Lambda function for additional
    -- processing. Each attribute can be used as a message variable in a
    -- message template.
    --
    -- This value is null if the configuration doesn\'t invoke an AWS Lambda
    -- function (RecommendationTransformerUri) to perform additional processing
    -- of recommendation data.
    RecommenderConfigurationResponse -> Maybe (HashMap Text Text)
attributes :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | The custom description of the configuration for the recommender model.
    RecommenderConfigurationResponse -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
    -- | The custom name of the configuration for the recommender model.
    RecommenderConfigurationResponse -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | The type of Amazon Pinpoint ID that\'s associated with unique user IDs
    -- in the recommender model. This value enables the model to use attribute
    -- and event data that’s specific to a particular endpoint or user in an
    -- Amazon Pinpoint application. Possible values are:
    --
    -- -   PINPOINT_ENDPOINT_ID - Each user in the model is associated with a
    --     particular endpoint in Amazon Pinpoint. The data is correlated based
    --     on endpoint IDs in Amazon Pinpoint. This is the default value.
    --
    -- -   PINPOINT_USER_ID - Each user in the model is associated with a
    --     particular user and endpoint in Amazon Pinpoint. The data is
    --     correlated based on user IDs in Amazon Pinpoint. If this value is
    --     specified, an endpoint definition in Amazon Pinpoint has to specify
    --     both a user ID (UserId) and an endpoint ID. Otherwise, messages
    --     won’t be sent to the user\'s endpoint.
    RecommenderConfigurationResponse -> Maybe Text
recommendationProviderIdType :: Prelude.Maybe Prelude.Text,
    -- | The name or Amazon Resource Name (ARN) of the AWS Lambda function that
    -- Amazon Pinpoint invokes to perform additional processing of
    -- recommendation data that it retrieves from the recommender model.
    RecommenderConfigurationResponse -> Maybe Text
recommendationTransformerUri :: Prelude.Maybe Prelude.Text,
    -- | The custom display name for the standard endpoint or user attribute
    -- (RecommendationItems) that temporarily stores recommended items for each
    -- endpoint or user, depending on the value for the
    -- RecommendationProviderIdType property. This name appears in the
    -- __Attribute finder__ of the template editor on the Amazon Pinpoint
    -- console.
    --
    -- This value is null if the configuration doesn\'t invoke an AWS Lambda
    -- function (RecommendationTransformerUri) to perform additional processing
    -- of recommendation data.
    RecommenderConfigurationResponse -> Maybe Text
recommendationsDisplayName :: Prelude.Maybe Prelude.Text,
    -- | The number of recommended items that are retrieved from the model for
    -- each endpoint or user, depending on the value for the
    -- RecommendationProviderIdType property. This number determines how many
    -- recommended items are available for use in message variables.
    RecommenderConfigurationResponse -> Maybe Int
recommendationsPerMessage :: Prelude.Maybe Prelude.Int,
    -- | The Amazon Resource Name (ARN) of the recommender model that Amazon
    -- Pinpoint retrieves the recommendation data from. This value is the ARN
    -- of an Amazon Personalize campaign.
    RecommenderConfigurationResponse -> Text
recommendationProviderUri :: Prelude.Text,
    -- | The date, in extended ISO 8601 format, when the configuration for the
    -- recommender model was last modified.
    RecommenderConfigurationResponse -> Text
lastModifiedDate :: Prelude.Text,
    -- | The date, in extended ISO 8601 format, when the configuration was
    -- created for the recommender model.
    RecommenderConfigurationResponse -> Text
creationDate :: Prelude.Text,
    -- | The Amazon Resource Name (ARN) of the AWS Identity and Access Management
    -- (IAM) role that authorizes Amazon Pinpoint to retrieve recommendation
    -- data from the recommender model.
    RecommenderConfigurationResponse -> Text
recommendationProviderRoleArn :: Prelude.Text,
    -- | The unique identifier for the recommender model configuration.
    RecommenderConfigurationResponse -> Text
id :: Prelude.Text
  }
  deriving (RecommenderConfigurationResponse
-> RecommenderConfigurationResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RecommenderConfigurationResponse
-> RecommenderConfigurationResponse -> Bool
$c/= :: RecommenderConfigurationResponse
-> RecommenderConfigurationResponse -> Bool
== :: RecommenderConfigurationResponse
-> RecommenderConfigurationResponse -> Bool
$c== :: RecommenderConfigurationResponse
-> RecommenderConfigurationResponse -> Bool
Prelude.Eq, ReadPrec [RecommenderConfigurationResponse]
ReadPrec RecommenderConfigurationResponse
Int -> ReadS RecommenderConfigurationResponse
ReadS [RecommenderConfigurationResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RecommenderConfigurationResponse]
$creadListPrec :: ReadPrec [RecommenderConfigurationResponse]
readPrec :: ReadPrec RecommenderConfigurationResponse
$creadPrec :: ReadPrec RecommenderConfigurationResponse
readList :: ReadS [RecommenderConfigurationResponse]
$creadList :: ReadS [RecommenderConfigurationResponse]
readsPrec :: Int -> ReadS RecommenderConfigurationResponse
$creadsPrec :: Int -> ReadS RecommenderConfigurationResponse
Prelude.Read, Int -> RecommenderConfigurationResponse -> ShowS
[RecommenderConfigurationResponse] -> ShowS
RecommenderConfigurationResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RecommenderConfigurationResponse] -> ShowS
$cshowList :: [RecommenderConfigurationResponse] -> ShowS
show :: RecommenderConfigurationResponse -> String
$cshow :: RecommenderConfigurationResponse -> String
showsPrec :: Int -> RecommenderConfigurationResponse -> ShowS
$cshowsPrec :: Int -> RecommenderConfigurationResponse -> ShowS
Prelude.Show, forall x.
Rep RecommenderConfigurationResponse x
-> RecommenderConfigurationResponse
forall x.
RecommenderConfigurationResponse
-> Rep RecommenderConfigurationResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep RecommenderConfigurationResponse x
-> RecommenderConfigurationResponse
$cfrom :: forall x.
RecommenderConfigurationResponse
-> Rep RecommenderConfigurationResponse x
Prelude.Generic)

-- |
-- Create a value of 'RecommenderConfigurationResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'attributes', 'recommenderConfigurationResponse_attributes' - A map that defines 1-10 custom endpoint or user attributes, depending on
-- the value for the RecommendationProviderIdType property. Each of these
-- attributes temporarily stores a recommended item that\'s retrieved from
-- the recommender model and sent to an AWS Lambda function for additional
-- processing. Each attribute can be used as a message variable in a
-- message template.
--
-- This value is null if the configuration doesn\'t invoke an AWS Lambda
-- function (RecommendationTransformerUri) to perform additional processing
-- of recommendation data.
--
-- 'description', 'recommenderConfigurationResponse_description' - The custom description of the configuration for the recommender model.
--
-- 'name', 'recommenderConfigurationResponse_name' - The custom name of the configuration for the recommender model.
--
-- 'recommendationProviderIdType', 'recommenderConfigurationResponse_recommendationProviderIdType' - The type of Amazon Pinpoint ID that\'s associated with unique user IDs
-- in the recommender model. This value enables the model to use attribute
-- and event data that’s specific to a particular endpoint or user in an
-- Amazon Pinpoint application. Possible values are:
--
-- -   PINPOINT_ENDPOINT_ID - Each user in the model is associated with a
--     particular endpoint in Amazon Pinpoint. The data is correlated based
--     on endpoint IDs in Amazon Pinpoint. This is the default value.
--
-- -   PINPOINT_USER_ID - Each user in the model is associated with a
--     particular user and endpoint in Amazon Pinpoint. The data is
--     correlated based on user IDs in Amazon Pinpoint. If this value is
--     specified, an endpoint definition in Amazon Pinpoint has to specify
--     both a user ID (UserId) and an endpoint ID. Otherwise, messages
--     won’t be sent to the user\'s endpoint.
--
-- 'recommendationTransformerUri', 'recommenderConfigurationResponse_recommendationTransformerUri' - The name or Amazon Resource Name (ARN) of the AWS Lambda function that
-- Amazon Pinpoint invokes to perform additional processing of
-- recommendation data that it retrieves from the recommender model.
--
-- 'recommendationsDisplayName', 'recommenderConfigurationResponse_recommendationsDisplayName' - The custom display name for the standard endpoint or user attribute
-- (RecommendationItems) that temporarily stores recommended items for each
-- endpoint or user, depending on the value for the
-- RecommendationProviderIdType property. This name appears in the
-- __Attribute finder__ of the template editor on the Amazon Pinpoint
-- console.
--
-- This value is null if the configuration doesn\'t invoke an AWS Lambda
-- function (RecommendationTransformerUri) to perform additional processing
-- of recommendation data.
--
-- 'recommendationsPerMessage', 'recommenderConfigurationResponse_recommendationsPerMessage' - The number of recommended items that are retrieved from the model for
-- each endpoint or user, depending on the value for the
-- RecommendationProviderIdType property. This number determines how many
-- recommended items are available for use in message variables.
--
-- 'recommendationProviderUri', 'recommenderConfigurationResponse_recommendationProviderUri' - The Amazon Resource Name (ARN) of the recommender model that Amazon
-- Pinpoint retrieves the recommendation data from. This value is the ARN
-- of an Amazon Personalize campaign.
--
-- 'lastModifiedDate', 'recommenderConfigurationResponse_lastModifiedDate' - The date, in extended ISO 8601 format, when the configuration for the
-- recommender model was last modified.
--
-- 'creationDate', 'recommenderConfigurationResponse_creationDate' - The date, in extended ISO 8601 format, when the configuration was
-- created for the recommender model.
--
-- 'recommendationProviderRoleArn', 'recommenderConfigurationResponse_recommendationProviderRoleArn' - The Amazon Resource Name (ARN) of the AWS Identity and Access Management
-- (IAM) role that authorizes Amazon Pinpoint to retrieve recommendation
-- data from the recommender model.
--
-- 'id', 'recommenderConfigurationResponse_id' - The unique identifier for the recommender model configuration.
newRecommenderConfigurationResponse ::
  -- | 'recommendationProviderUri'
  Prelude.Text ->
  -- | 'lastModifiedDate'
  Prelude.Text ->
  -- | 'creationDate'
  Prelude.Text ->
  -- | 'recommendationProviderRoleArn'
  Prelude.Text ->
  -- | 'id'
  Prelude.Text ->
  RecommenderConfigurationResponse
newRecommenderConfigurationResponse :: Text
-> Text -> Text -> Text -> Text -> RecommenderConfigurationResponse
newRecommenderConfigurationResponse
  Text
pRecommendationProviderUri_
  Text
pLastModifiedDate_
  Text
pCreationDate_
  Text
pRecommendationProviderRoleArn_
  Text
pId_ =
    RecommenderConfigurationResponse'
      { $sel:attributes:RecommenderConfigurationResponse' :: Maybe (HashMap Text Text)
attributes =
          forall a. Maybe a
Prelude.Nothing,
        $sel:description:RecommenderConfigurationResponse' :: Maybe Text
description = forall a. Maybe a
Prelude.Nothing,
        $sel:name:RecommenderConfigurationResponse' :: Maybe Text
name = forall a. Maybe a
Prelude.Nothing,
        $sel:recommendationProviderIdType:RecommenderConfigurationResponse' :: Maybe Text
recommendationProviderIdType =
          forall a. Maybe a
Prelude.Nothing,
        $sel:recommendationTransformerUri:RecommenderConfigurationResponse' :: Maybe Text
recommendationTransformerUri =
          forall a. Maybe a
Prelude.Nothing,
        $sel:recommendationsDisplayName:RecommenderConfigurationResponse' :: Maybe Text
recommendationsDisplayName =
          forall a. Maybe a
Prelude.Nothing,
        $sel:recommendationsPerMessage:RecommenderConfigurationResponse' :: Maybe Int
recommendationsPerMessage =
          forall a. Maybe a
Prelude.Nothing,
        $sel:recommendationProviderUri:RecommenderConfigurationResponse' :: Text
recommendationProviderUri =
          Text
pRecommendationProviderUri_,
        $sel:lastModifiedDate:RecommenderConfigurationResponse' :: Text
lastModifiedDate = Text
pLastModifiedDate_,
        $sel:creationDate:RecommenderConfigurationResponse' :: Text
creationDate = Text
pCreationDate_,
        $sel:recommendationProviderRoleArn:RecommenderConfigurationResponse' :: Text
recommendationProviderRoleArn =
          Text
pRecommendationProviderRoleArn_,
        $sel:id:RecommenderConfigurationResponse' :: Text
id = Text
pId_
      }

-- | A map that defines 1-10 custom endpoint or user attributes, depending on
-- the value for the RecommendationProviderIdType property. Each of these
-- attributes temporarily stores a recommended item that\'s retrieved from
-- the recommender model and sent to an AWS Lambda function for additional
-- processing. Each attribute can be used as a message variable in a
-- message template.
--
-- This value is null if the configuration doesn\'t invoke an AWS Lambda
-- function (RecommendationTransformerUri) to perform additional processing
-- of recommendation data.
recommenderConfigurationResponse_attributes :: Lens.Lens' RecommenderConfigurationResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
recommenderConfigurationResponse_attributes :: Lens' RecommenderConfigurationResponse (Maybe (HashMap Text Text))
recommenderConfigurationResponse_attributes = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RecommenderConfigurationResponse' {Maybe (HashMap Text Text)
attributes :: Maybe (HashMap Text Text)
$sel:attributes:RecommenderConfigurationResponse' :: RecommenderConfigurationResponse -> Maybe (HashMap Text Text)
attributes} -> Maybe (HashMap Text Text)
attributes) (\s :: RecommenderConfigurationResponse
s@RecommenderConfigurationResponse' {} Maybe (HashMap Text Text)
a -> RecommenderConfigurationResponse
s {$sel:attributes:RecommenderConfigurationResponse' :: Maybe (HashMap Text Text)
attributes = Maybe (HashMap Text Text)
a} :: RecommenderConfigurationResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The custom description of the configuration for the recommender model.
recommenderConfigurationResponse_description :: Lens.Lens' RecommenderConfigurationResponse (Prelude.Maybe Prelude.Text)
recommenderConfigurationResponse_description :: Lens' RecommenderConfigurationResponse (Maybe Text)
recommenderConfigurationResponse_description = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RecommenderConfigurationResponse' {Maybe Text
description :: Maybe Text
$sel:description:RecommenderConfigurationResponse' :: RecommenderConfigurationResponse -> Maybe Text
description} -> Maybe Text
description) (\s :: RecommenderConfigurationResponse
s@RecommenderConfigurationResponse' {} Maybe Text
a -> RecommenderConfigurationResponse
s {$sel:description:RecommenderConfigurationResponse' :: Maybe Text
description = Maybe Text
a} :: RecommenderConfigurationResponse)

-- | The custom name of the configuration for the recommender model.
recommenderConfigurationResponse_name :: Lens.Lens' RecommenderConfigurationResponse (Prelude.Maybe Prelude.Text)
recommenderConfigurationResponse_name :: Lens' RecommenderConfigurationResponse (Maybe Text)
recommenderConfigurationResponse_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RecommenderConfigurationResponse' {Maybe Text
name :: Maybe Text
$sel:name:RecommenderConfigurationResponse' :: RecommenderConfigurationResponse -> Maybe Text
name} -> Maybe Text
name) (\s :: RecommenderConfigurationResponse
s@RecommenderConfigurationResponse' {} Maybe Text
a -> RecommenderConfigurationResponse
s {$sel:name:RecommenderConfigurationResponse' :: Maybe Text
name = Maybe Text
a} :: RecommenderConfigurationResponse)

-- | The type of Amazon Pinpoint ID that\'s associated with unique user IDs
-- in the recommender model. This value enables the model to use attribute
-- and event data that’s specific to a particular endpoint or user in an
-- Amazon Pinpoint application. Possible values are:
--
-- -   PINPOINT_ENDPOINT_ID - Each user in the model is associated with a
--     particular endpoint in Amazon Pinpoint. The data is correlated based
--     on endpoint IDs in Amazon Pinpoint. This is the default value.
--
-- -   PINPOINT_USER_ID - Each user in the model is associated with a
--     particular user and endpoint in Amazon Pinpoint. The data is
--     correlated based on user IDs in Amazon Pinpoint. If this value is
--     specified, an endpoint definition in Amazon Pinpoint has to specify
--     both a user ID (UserId) and an endpoint ID. Otherwise, messages
--     won’t be sent to the user\'s endpoint.
recommenderConfigurationResponse_recommendationProviderIdType :: Lens.Lens' RecommenderConfigurationResponse (Prelude.Maybe Prelude.Text)
recommenderConfigurationResponse_recommendationProviderIdType :: Lens' RecommenderConfigurationResponse (Maybe Text)
recommenderConfigurationResponse_recommendationProviderIdType = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RecommenderConfigurationResponse' {Maybe Text
recommendationProviderIdType :: Maybe Text
$sel:recommendationProviderIdType:RecommenderConfigurationResponse' :: RecommenderConfigurationResponse -> Maybe Text
recommendationProviderIdType} -> Maybe Text
recommendationProviderIdType) (\s :: RecommenderConfigurationResponse
s@RecommenderConfigurationResponse' {} Maybe Text
a -> RecommenderConfigurationResponse
s {$sel:recommendationProviderIdType:RecommenderConfigurationResponse' :: Maybe Text
recommendationProviderIdType = Maybe Text
a} :: RecommenderConfigurationResponse)

-- | The name or Amazon Resource Name (ARN) of the AWS Lambda function that
-- Amazon Pinpoint invokes to perform additional processing of
-- recommendation data that it retrieves from the recommender model.
recommenderConfigurationResponse_recommendationTransformerUri :: Lens.Lens' RecommenderConfigurationResponse (Prelude.Maybe Prelude.Text)
recommenderConfigurationResponse_recommendationTransformerUri :: Lens' RecommenderConfigurationResponse (Maybe Text)
recommenderConfigurationResponse_recommendationTransformerUri = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RecommenderConfigurationResponse' {Maybe Text
recommendationTransformerUri :: Maybe Text
$sel:recommendationTransformerUri:RecommenderConfigurationResponse' :: RecommenderConfigurationResponse -> Maybe Text
recommendationTransformerUri} -> Maybe Text
recommendationTransformerUri) (\s :: RecommenderConfigurationResponse
s@RecommenderConfigurationResponse' {} Maybe Text
a -> RecommenderConfigurationResponse
s {$sel:recommendationTransformerUri:RecommenderConfigurationResponse' :: Maybe Text
recommendationTransformerUri = Maybe Text
a} :: RecommenderConfigurationResponse)

-- | The custom display name for the standard endpoint or user attribute
-- (RecommendationItems) that temporarily stores recommended items for each
-- endpoint or user, depending on the value for the
-- RecommendationProviderIdType property. This name appears in the
-- __Attribute finder__ of the template editor on the Amazon Pinpoint
-- console.
--
-- This value is null if the configuration doesn\'t invoke an AWS Lambda
-- function (RecommendationTransformerUri) to perform additional processing
-- of recommendation data.
recommenderConfigurationResponse_recommendationsDisplayName :: Lens.Lens' RecommenderConfigurationResponse (Prelude.Maybe Prelude.Text)
recommenderConfigurationResponse_recommendationsDisplayName :: Lens' RecommenderConfigurationResponse (Maybe Text)
recommenderConfigurationResponse_recommendationsDisplayName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RecommenderConfigurationResponse' {Maybe Text
recommendationsDisplayName :: Maybe Text
$sel:recommendationsDisplayName:RecommenderConfigurationResponse' :: RecommenderConfigurationResponse -> Maybe Text
recommendationsDisplayName} -> Maybe Text
recommendationsDisplayName) (\s :: RecommenderConfigurationResponse
s@RecommenderConfigurationResponse' {} Maybe Text
a -> RecommenderConfigurationResponse
s {$sel:recommendationsDisplayName:RecommenderConfigurationResponse' :: Maybe Text
recommendationsDisplayName = Maybe Text
a} :: RecommenderConfigurationResponse)

-- | The number of recommended items that are retrieved from the model for
-- each endpoint or user, depending on the value for the
-- RecommendationProviderIdType property. This number determines how many
-- recommended items are available for use in message variables.
recommenderConfigurationResponse_recommendationsPerMessage :: Lens.Lens' RecommenderConfigurationResponse (Prelude.Maybe Prelude.Int)
recommenderConfigurationResponse_recommendationsPerMessage :: Lens' RecommenderConfigurationResponse (Maybe Int)
recommenderConfigurationResponse_recommendationsPerMessage = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RecommenderConfigurationResponse' {Maybe Int
recommendationsPerMessage :: Maybe Int
$sel:recommendationsPerMessage:RecommenderConfigurationResponse' :: RecommenderConfigurationResponse -> Maybe Int
recommendationsPerMessage} -> Maybe Int
recommendationsPerMessage) (\s :: RecommenderConfigurationResponse
s@RecommenderConfigurationResponse' {} Maybe Int
a -> RecommenderConfigurationResponse
s {$sel:recommendationsPerMessage:RecommenderConfigurationResponse' :: Maybe Int
recommendationsPerMessage = Maybe Int
a} :: RecommenderConfigurationResponse)

-- | The Amazon Resource Name (ARN) of the recommender model that Amazon
-- Pinpoint retrieves the recommendation data from. This value is the ARN
-- of an Amazon Personalize campaign.
recommenderConfigurationResponse_recommendationProviderUri :: Lens.Lens' RecommenderConfigurationResponse Prelude.Text
recommenderConfigurationResponse_recommendationProviderUri :: Lens' RecommenderConfigurationResponse Text
recommenderConfigurationResponse_recommendationProviderUri = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RecommenderConfigurationResponse' {Text
recommendationProviderUri :: Text
$sel:recommendationProviderUri:RecommenderConfigurationResponse' :: RecommenderConfigurationResponse -> Text
recommendationProviderUri} -> Text
recommendationProviderUri) (\s :: RecommenderConfigurationResponse
s@RecommenderConfigurationResponse' {} Text
a -> RecommenderConfigurationResponse
s {$sel:recommendationProviderUri:RecommenderConfigurationResponse' :: Text
recommendationProviderUri = Text
a} :: RecommenderConfigurationResponse)

-- | The date, in extended ISO 8601 format, when the configuration for the
-- recommender model was last modified.
recommenderConfigurationResponse_lastModifiedDate :: Lens.Lens' RecommenderConfigurationResponse Prelude.Text
recommenderConfigurationResponse_lastModifiedDate :: Lens' RecommenderConfigurationResponse Text
recommenderConfigurationResponse_lastModifiedDate = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RecommenderConfigurationResponse' {Text
lastModifiedDate :: Text
$sel:lastModifiedDate:RecommenderConfigurationResponse' :: RecommenderConfigurationResponse -> Text
lastModifiedDate} -> Text
lastModifiedDate) (\s :: RecommenderConfigurationResponse
s@RecommenderConfigurationResponse' {} Text
a -> RecommenderConfigurationResponse
s {$sel:lastModifiedDate:RecommenderConfigurationResponse' :: Text
lastModifiedDate = Text
a} :: RecommenderConfigurationResponse)

-- | The date, in extended ISO 8601 format, when the configuration was
-- created for the recommender model.
recommenderConfigurationResponse_creationDate :: Lens.Lens' RecommenderConfigurationResponse Prelude.Text
recommenderConfigurationResponse_creationDate :: Lens' RecommenderConfigurationResponse Text
recommenderConfigurationResponse_creationDate = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RecommenderConfigurationResponse' {Text
creationDate :: Text
$sel:creationDate:RecommenderConfigurationResponse' :: RecommenderConfigurationResponse -> Text
creationDate} -> Text
creationDate) (\s :: RecommenderConfigurationResponse
s@RecommenderConfigurationResponse' {} Text
a -> RecommenderConfigurationResponse
s {$sel:creationDate:RecommenderConfigurationResponse' :: Text
creationDate = Text
a} :: RecommenderConfigurationResponse)

-- | The Amazon Resource Name (ARN) of the AWS Identity and Access Management
-- (IAM) role that authorizes Amazon Pinpoint to retrieve recommendation
-- data from the recommender model.
recommenderConfigurationResponse_recommendationProviderRoleArn :: Lens.Lens' RecommenderConfigurationResponse Prelude.Text
recommenderConfigurationResponse_recommendationProviderRoleArn :: Lens' RecommenderConfigurationResponse Text
recommenderConfigurationResponse_recommendationProviderRoleArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RecommenderConfigurationResponse' {Text
recommendationProviderRoleArn :: Text
$sel:recommendationProviderRoleArn:RecommenderConfigurationResponse' :: RecommenderConfigurationResponse -> Text
recommendationProviderRoleArn} -> Text
recommendationProviderRoleArn) (\s :: RecommenderConfigurationResponse
s@RecommenderConfigurationResponse' {} Text
a -> RecommenderConfigurationResponse
s {$sel:recommendationProviderRoleArn:RecommenderConfigurationResponse' :: Text
recommendationProviderRoleArn = Text
a} :: RecommenderConfigurationResponse)

-- | The unique identifier for the recommender model configuration.
recommenderConfigurationResponse_id :: Lens.Lens' RecommenderConfigurationResponse Prelude.Text
recommenderConfigurationResponse_id :: Lens' RecommenderConfigurationResponse Text
recommenderConfigurationResponse_id = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RecommenderConfigurationResponse' {Text
id :: Text
$sel:id:RecommenderConfigurationResponse' :: RecommenderConfigurationResponse -> Text
id} -> Text
id) (\s :: RecommenderConfigurationResponse
s@RecommenderConfigurationResponse' {} Text
a -> RecommenderConfigurationResponse
s {$sel:id:RecommenderConfigurationResponse' :: Text
id = Text
a} :: RecommenderConfigurationResponse)

instance
  Data.FromJSON
    RecommenderConfigurationResponse
  where
  parseJSON :: Value -> Parser RecommenderConfigurationResponse
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"RecommenderConfigurationResponse"
      ( \Object
x ->
          Maybe (HashMap Text Text)
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Text
-> Text
-> Text
-> Text
-> Text
-> RecommenderConfigurationResponse
RecommenderConfigurationResponse'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Attributes" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Description")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Name")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"RecommendationProviderIdType")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"RecommendationTransformerUri")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"RecommendationsDisplayName")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"RecommendationsPerMessage")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"RecommendationProviderUri")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"LastModifiedDate")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"CreationDate")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"RecommendationProviderRoleArn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"Id")
      )

instance
  Prelude.Hashable
    RecommenderConfigurationResponse
  where
  hashWithSalt :: Int -> RecommenderConfigurationResponse -> Int
hashWithSalt
    Int
_salt
    RecommenderConfigurationResponse' {Maybe Int
Maybe Text
Maybe (HashMap Text Text)
Text
id :: Text
recommendationProviderRoleArn :: Text
creationDate :: Text
lastModifiedDate :: Text
recommendationProviderUri :: Text
recommendationsPerMessage :: Maybe Int
recommendationsDisplayName :: Maybe Text
recommendationTransformerUri :: Maybe Text
recommendationProviderIdType :: Maybe Text
name :: Maybe Text
description :: Maybe Text
attributes :: Maybe (HashMap Text Text)
$sel:id:RecommenderConfigurationResponse' :: RecommenderConfigurationResponse -> Text
$sel:recommendationProviderRoleArn:RecommenderConfigurationResponse' :: RecommenderConfigurationResponse -> Text
$sel:creationDate:RecommenderConfigurationResponse' :: RecommenderConfigurationResponse -> Text
$sel:lastModifiedDate:RecommenderConfigurationResponse' :: RecommenderConfigurationResponse -> Text
$sel:recommendationProviderUri:RecommenderConfigurationResponse' :: RecommenderConfigurationResponse -> Text
$sel:recommendationsPerMessage:RecommenderConfigurationResponse' :: RecommenderConfigurationResponse -> Maybe Int
$sel:recommendationsDisplayName:RecommenderConfigurationResponse' :: RecommenderConfigurationResponse -> Maybe Text
$sel:recommendationTransformerUri:RecommenderConfigurationResponse' :: RecommenderConfigurationResponse -> Maybe Text
$sel:recommendationProviderIdType:RecommenderConfigurationResponse' :: RecommenderConfigurationResponse -> Maybe Text
$sel:name:RecommenderConfigurationResponse' :: RecommenderConfigurationResponse -> Maybe Text
$sel:description:RecommenderConfigurationResponse' :: RecommenderConfigurationResponse -> Maybe Text
$sel:attributes:RecommenderConfigurationResponse' :: RecommenderConfigurationResponse -> Maybe (HashMap Text Text)
..} =
      Int
_salt
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (HashMap Text Text)
attributes
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
description
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
name
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
recommendationProviderIdType
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
recommendationTransformerUri
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
recommendationsDisplayName
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
recommendationsPerMessage
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
recommendationProviderUri
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
lastModifiedDate
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
creationDate
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
recommendationProviderRoleArn
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
id

instance
  Prelude.NFData
    RecommenderConfigurationResponse
  where
  rnf :: RecommenderConfigurationResponse -> ()
rnf RecommenderConfigurationResponse' {Maybe Int
Maybe Text
Maybe (HashMap Text Text)
Text
id :: Text
recommendationProviderRoleArn :: Text
creationDate :: Text
lastModifiedDate :: Text
recommendationProviderUri :: Text
recommendationsPerMessage :: Maybe Int
recommendationsDisplayName :: Maybe Text
recommendationTransformerUri :: Maybe Text
recommendationProviderIdType :: Maybe Text
name :: Maybe Text
description :: Maybe Text
attributes :: Maybe (HashMap Text Text)
$sel:id:RecommenderConfigurationResponse' :: RecommenderConfigurationResponse -> Text
$sel:recommendationProviderRoleArn:RecommenderConfigurationResponse' :: RecommenderConfigurationResponse -> Text
$sel:creationDate:RecommenderConfigurationResponse' :: RecommenderConfigurationResponse -> Text
$sel:lastModifiedDate:RecommenderConfigurationResponse' :: RecommenderConfigurationResponse -> Text
$sel:recommendationProviderUri:RecommenderConfigurationResponse' :: RecommenderConfigurationResponse -> Text
$sel:recommendationsPerMessage:RecommenderConfigurationResponse' :: RecommenderConfigurationResponse -> Maybe Int
$sel:recommendationsDisplayName:RecommenderConfigurationResponse' :: RecommenderConfigurationResponse -> Maybe Text
$sel:recommendationTransformerUri:RecommenderConfigurationResponse' :: RecommenderConfigurationResponse -> Maybe Text
$sel:recommendationProviderIdType:RecommenderConfigurationResponse' :: RecommenderConfigurationResponse -> Maybe Text
$sel:name:RecommenderConfigurationResponse' :: RecommenderConfigurationResponse -> Maybe Text
$sel:description:RecommenderConfigurationResponse' :: RecommenderConfigurationResponse -> Maybe Text
$sel:attributes:RecommenderConfigurationResponse' :: RecommenderConfigurationResponse -> Maybe (HashMap Text Text)
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text Text)
attributes
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
description
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
name
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
recommendationProviderIdType
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
recommendationTransformerUri
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
recommendationsDisplayName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
recommendationsPerMessage
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
recommendationProviderUri
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
lastModifiedDate
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
creationDate
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
recommendationProviderRoleArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
id