{-# 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.KinesisAnalytics.Types.KinesisFirehoseInput -- 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.KinesisAnalytics.Types.KinesisFirehoseInput 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 -- | Identifies an Amazon Kinesis Firehose delivery stream as the streaming -- source. You provide the delivery stream\'s Amazon Resource Name (ARN) -- and an IAM role ARN that enables Amazon Kinesis Analytics to access the -- stream on your behalf. -- -- /See:/ 'newKinesisFirehoseInput' smart constructor. data KinesisFirehoseInput = KinesisFirehoseInput' { -- | ARN of the input delivery stream. resourceARN :: Prelude.Text, -- | ARN of the IAM role that Amazon Kinesis Analytics can assume to access -- the stream on your behalf. You need to make sure that the role has the -- necessary permissions to access the stream. roleARN :: Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'KinesisFirehoseInput' 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', 'kinesisFirehoseInput_resourceARN' - ARN of the input delivery stream. -- -- 'roleARN', 'kinesisFirehoseInput_roleARN' - ARN of the IAM role that Amazon Kinesis Analytics can assume to access -- the stream on your behalf. You need to make sure that the role has the -- necessary permissions to access the stream. newKinesisFirehoseInput :: -- | 'resourceARN' Prelude.Text -> -- | 'roleARN' Prelude.Text -> KinesisFirehoseInput newKinesisFirehoseInput pResourceARN_ pRoleARN_ = KinesisFirehoseInput' { resourceARN = pResourceARN_, roleARN = pRoleARN_ } -- | ARN of the input delivery stream. kinesisFirehoseInput_resourceARN :: Lens.Lens' KinesisFirehoseInput Prelude.Text kinesisFirehoseInput_resourceARN = Lens.lens (\KinesisFirehoseInput' {resourceARN} -> resourceARN) (\s@KinesisFirehoseInput' {} a -> s {resourceARN = a} :: KinesisFirehoseInput) -- | ARN of the IAM role that Amazon Kinesis Analytics can assume to access -- the stream on your behalf. You need to make sure that the role has the -- necessary permissions to access the stream. kinesisFirehoseInput_roleARN :: Lens.Lens' KinesisFirehoseInput Prelude.Text kinesisFirehoseInput_roleARN = Lens.lens (\KinesisFirehoseInput' {roleARN} -> roleARN) (\s@KinesisFirehoseInput' {} a -> s {roleARN = a} :: KinesisFirehoseInput) instance Prelude.Hashable KinesisFirehoseInput where hashWithSalt _salt KinesisFirehoseInput' {..} = _salt `Prelude.hashWithSalt` resourceARN `Prelude.hashWithSalt` roleARN instance Prelude.NFData KinesisFirehoseInput where rnf KinesisFirehoseInput' {..} = Prelude.rnf resourceARN `Prelude.seq` Prelude.rnf roleARN instance Data.ToJSON KinesisFirehoseInput where toJSON KinesisFirehoseInput' {..} = Data.object ( Prelude.catMaybes [ Prelude.Just ("ResourceARN" Data..= resourceARN), Prelude.Just ("RoleARN" Data..= roleARN) ] )