{-# 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.KinesisFirehoseOutput -- 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.KinesisFirehoseOutput 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 -- | When configuring application output, identifies an Amazon Kinesis -- Firehose delivery stream as the destination. You provide the stream -- Amazon Resource Name (ARN) and an IAM role that enables Amazon Kinesis -- Analytics to write to the stream on your behalf. -- -- /See:/ 'newKinesisFirehoseOutput' smart constructor. data KinesisFirehoseOutput = KinesisFirehoseOutput' { -- | ARN of the destination Amazon Kinesis Firehose delivery stream to write -- to. resourceARN :: Prelude.Text, -- | ARN of the IAM role that Amazon Kinesis Analytics can assume to write to -- the destination stream on your behalf. You need to grant the necessary -- permissions to this role. roleARN :: Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'KinesisFirehoseOutput' 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', 'kinesisFirehoseOutput_resourceARN' - ARN of the destination Amazon Kinesis Firehose delivery stream to write -- to. -- -- 'roleARN', 'kinesisFirehoseOutput_roleARN' - ARN of the IAM role that Amazon Kinesis Analytics can assume to write to -- the destination stream on your behalf. You need to grant the necessary -- permissions to this role. newKinesisFirehoseOutput :: -- | 'resourceARN' Prelude.Text -> -- | 'roleARN' Prelude.Text -> KinesisFirehoseOutput newKinesisFirehoseOutput pResourceARN_ pRoleARN_ = KinesisFirehoseOutput' { resourceARN = pResourceARN_, roleARN = pRoleARN_ } -- | ARN of the destination Amazon Kinesis Firehose delivery stream to write -- to. kinesisFirehoseOutput_resourceARN :: Lens.Lens' KinesisFirehoseOutput Prelude.Text kinesisFirehoseOutput_resourceARN = Lens.lens (\KinesisFirehoseOutput' {resourceARN} -> resourceARN) (\s@KinesisFirehoseOutput' {} a -> s {resourceARN = a} :: KinesisFirehoseOutput) -- | ARN of the IAM role that Amazon Kinesis Analytics can assume to write to -- the destination stream on your behalf. You need to grant the necessary -- permissions to this role. kinesisFirehoseOutput_roleARN :: Lens.Lens' KinesisFirehoseOutput Prelude.Text kinesisFirehoseOutput_roleARN = Lens.lens (\KinesisFirehoseOutput' {roleARN} -> roleARN) (\s@KinesisFirehoseOutput' {} a -> s {roleARN = a} :: KinesisFirehoseOutput) instance Prelude.Hashable KinesisFirehoseOutput where hashWithSalt _salt KinesisFirehoseOutput' {..} = _salt `Prelude.hashWithSalt` resourceARN `Prelude.hashWithSalt` roleARN instance Prelude.NFData KinesisFirehoseOutput where rnf KinesisFirehoseOutput' {..} = Prelude.rnf resourceARN `Prelude.seq` Prelude.rnf roleARN instance Data.ToJSON KinesisFirehoseOutput where toJSON KinesisFirehoseOutput' {..} = Data.object ( Prelude.catMaybes [ Prelude.Just ("ResourceARN" Data..= resourceARN), Prelude.Just ("RoleARN" Data..= roleARN) ] )