{-# 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.KinesisAnalyticsV2.Types.InputLambdaProcessorUpdate -- 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.KinesisAnalyticsV2.Types.InputLambdaProcessorUpdate 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 -- | For a SQL-based Kinesis Data Analytics application, represents an update -- to the InputLambdaProcessor that is used to preprocess the records in -- the stream. -- -- /See:/ 'newInputLambdaProcessorUpdate' smart constructor. data InputLambdaProcessorUpdate = InputLambdaProcessorUpdate' { -- | The Amazon Resource Name (ARN) of the new Amazon Lambda function that is -- used to preprocess the records in the stream. -- -- To specify an earlier version of the Lambda function than the latest, -- include the Lambda function version in the Lambda function ARN. For more -- information about Lambda ARNs, see -- resourceARNUpdate :: Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'InputLambdaProcessorUpdate' with all optional fields omitted. -- -- Use or to modify other optional fields. -- -- The following record fields are available, with the corresponding lenses provided -- for backwards compatibility: -- -- 'resourceARNUpdate', 'inputLambdaProcessorUpdate_resourceARNUpdate' - The Amazon Resource Name (ARN) of the new Amazon Lambda function that is -- used to preprocess the records in the stream. -- -- To specify an earlier version of the Lambda function than the latest, -- include the Lambda function version in the Lambda function ARN. For more -- information about Lambda ARNs, see -- newInputLambdaProcessorUpdate :: -- | 'resourceARNUpdate' Prelude.Text -> InputLambdaProcessorUpdate newInputLambdaProcessorUpdate pResourceARNUpdate_ = InputLambdaProcessorUpdate' { resourceARNUpdate = pResourceARNUpdate_ } -- | The Amazon Resource Name (ARN) of the new Amazon Lambda function that is -- used to preprocess the records in the stream. -- -- To specify an earlier version of the Lambda function than the latest, -- include the Lambda function version in the Lambda function ARN. For more -- information about Lambda ARNs, see -- inputLambdaProcessorUpdate_resourceARNUpdate :: Lens.Lens' InputLambdaProcessorUpdate Prelude.Text inputLambdaProcessorUpdate_resourceARNUpdate = Lens.lens (\InputLambdaProcessorUpdate' {resourceARNUpdate} -> resourceARNUpdate) (\s@InputLambdaProcessorUpdate' {} a -> s {resourceARNUpdate = a} :: InputLambdaProcessorUpdate) instance Prelude.Hashable InputLambdaProcessorUpdate where hashWithSalt _salt InputLambdaProcessorUpdate' {..} = _salt `Prelude.hashWithSalt` resourceARNUpdate instance Prelude.NFData InputLambdaProcessorUpdate where rnf InputLambdaProcessorUpdate' {..} = Prelude.rnf resourceARNUpdate instance Data.ToJSON InputLambdaProcessorUpdate where toJSON InputLambdaProcessorUpdate' {..} = Data.object ( Prelude.catMaybes [ Prelude.Just ("ResourceARNUpdate" Data..= resourceARNUpdate) ] )