{-# 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.InputLambdaProcessor -- 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.InputLambdaProcessor 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 -- | An object that contains the Amazon Resource Name (ARN) of the Amazon -- Lambda function that is used to preprocess records in the stream in a -- SQL-based Kinesis Data Analytics application. -- -- /See:/ 'newInputLambdaProcessor' smart constructor. data InputLambdaProcessor = InputLambdaProcessor' { -- | The ARN of the Amazon Lambda function that operates on 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 -- resourceARN :: Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'InputLambdaProcessor' 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: -- -- 'resourceARN', 'inputLambdaProcessor_resourceARN' - The ARN of the Amazon Lambda function that operates on 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 -- newInputLambdaProcessor :: -- | 'resourceARN' Prelude.Text -> InputLambdaProcessor newInputLambdaProcessor pResourceARN_ = InputLambdaProcessor' {resourceARN = pResourceARN_} -- | The ARN of the Amazon Lambda function that operates on 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 -- inputLambdaProcessor_resourceARN :: Lens.Lens' InputLambdaProcessor Prelude.Text inputLambdaProcessor_resourceARN = Lens.lens (\InputLambdaProcessor' {resourceARN} -> resourceARN) (\s@InputLambdaProcessor' {} a -> s {resourceARN = a} :: InputLambdaProcessor) instance Prelude.Hashable InputLambdaProcessor where hashWithSalt _salt InputLambdaProcessor' {..} = _salt `Prelude.hashWithSalt` resourceARN instance Prelude.NFData InputLambdaProcessor where rnf InputLambdaProcessor' {..} = Prelude.rnf resourceARN instance Data.ToJSON InputLambdaProcessor where toJSON InputLambdaProcessor' {..} = Data.object ( Prelude.catMaybes [Prelude.Just ("ResourceARN" Data..= resourceARN)] )