{-# 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.KinesisFirehoseInputDescription -- 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.KinesisFirehoseInputDescription 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 -- | Describes the Amazon Kinesis Data Firehose delivery stream that is -- configured as the streaming source in the application input -- configuration. -- -- /See:/ 'newKinesisFirehoseInputDescription' smart constructor. data KinesisFirehoseInputDescription = KinesisFirehoseInputDescription' { -- | The ARN of the IAM role that Kinesis Data Analytics assumes to access -- the stream. -- -- Provided for backward compatibility. Applications that are created with -- the current API version have an application-level service execution role -- rather than a resource-level role. roleARN :: Prelude.Maybe Prelude.Text, -- | The Amazon Resource Name (ARN) of the delivery stream. resourceARN :: Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'KinesisFirehoseInputDescription' 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: -- -- 'roleARN', 'kinesisFirehoseInputDescription_roleARN' - The ARN of the IAM role that Kinesis Data Analytics assumes to access -- the stream. -- -- Provided for backward compatibility. Applications that are created with -- the current API version have an application-level service execution role -- rather than a resource-level role. -- -- 'resourceARN', 'kinesisFirehoseInputDescription_resourceARN' - The Amazon Resource Name (ARN) of the delivery stream. newKinesisFirehoseInputDescription :: -- | 'resourceARN' Prelude.Text -> KinesisFirehoseInputDescription newKinesisFirehoseInputDescription pResourceARN_ = KinesisFirehoseInputDescription' { roleARN = Prelude.Nothing, resourceARN = pResourceARN_ } -- | The ARN of the IAM role that Kinesis Data Analytics assumes to access -- the stream. -- -- Provided for backward compatibility. Applications that are created with -- the current API version have an application-level service execution role -- rather than a resource-level role. kinesisFirehoseInputDescription_roleARN :: Lens.Lens' KinesisFirehoseInputDescription (Prelude.Maybe Prelude.Text) kinesisFirehoseInputDescription_roleARN = Lens.lens (\KinesisFirehoseInputDescription' {roleARN} -> roleARN) (\s@KinesisFirehoseInputDescription' {} a -> s {roleARN = a} :: KinesisFirehoseInputDescription) -- | The Amazon Resource Name (ARN) of the delivery stream. kinesisFirehoseInputDescription_resourceARN :: Lens.Lens' KinesisFirehoseInputDescription Prelude.Text kinesisFirehoseInputDescription_resourceARN = Lens.lens (\KinesisFirehoseInputDescription' {resourceARN} -> resourceARN) (\s@KinesisFirehoseInputDescription' {} a -> s {resourceARN = a} :: KinesisFirehoseInputDescription) instance Data.FromJSON KinesisFirehoseInputDescription where parseJSON = Data.withObject "KinesisFirehoseInputDescription" ( \x -> KinesisFirehoseInputDescription' Prelude.<$> (x Data..:? "RoleARN") Prelude.<*> (x Data..: "ResourceARN") ) instance Prelude.Hashable KinesisFirehoseInputDescription where hashWithSalt _salt KinesisFirehoseInputDescription' {..} = _salt `Prelude.hashWithSalt` roleARN `Prelude.hashWithSalt` resourceARN instance Prelude.NFData KinesisFirehoseInputDescription where rnf KinesisFirehoseInputDescription' {..} = Prelude.rnf roleARN `Prelude.seq` Prelude.rnf resourceARN