{-# 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.KinesisStreamsOutputUpdate -- 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.KinesisStreamsOutputUpdate 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 updating an output configuration using the -- -- operation, provides information about an Amazon Kinesis stream -- configured as the destination. -- -- /See:/ 'newKinesisStreamsOutputUpdate' smart constructor. data KinesisStreamsOutputUpdate = KinesisStreamsOutputUpdate' { -- | Amazon Resource Name (ARN) of the Amazon Kinesis stream where you want -- to write the output. resourceARNUpdate :: Prelude.Maybe Prelude.Text, -- | ARN of the IAM role that Amazon Kinesis Analytics can assume to access -- the stream on your behalf. You need to grant the necessary permissions -- to this role. roleARNUpdate :: Prelude.Maybe Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'KinesisStreamsOutputUpdate' 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', 'kinesisStreamsOutputUpdate_resourceARNUpdate' - Amazon Resource Name (ARN) of the Amazon Kinesis stream where you want -- to write the output. -- -- 'roleARNUpdate', 'kinesisStreamsOutputUpdate_roleARNUpdate' - ARN of the IAM role that Amazon Kinesis Analytics can assume to access -- the stream on your behalf. You need to grant the necessary permissions -- to this role. newKinesisStreamsOutputUpdate :: KinesisStreamsOutputUpdate newKinesisStreamsOutputUpdate = KinesisStreamsOutputUpdate' { resourceARNUpdate = Prelude.Nothing, roleARNUpdate = Prelude.Nothing } -- | Amazon Resource Name (ARN) of the Amazon Kinesis stream where you want -- to write the output. kinesisStreamsOutputUpdate_resourceARNUpdate :: Lens.Lens' KinesisStreamsOutputUpdate (Prelude.Maybe Prelude.Text) kinesisStreamsOutputUpdate_resourceARNUpdate = Lens.lens (\KinesisStreamsOutputUpdate' {resourceARNUpdate} -> resourceARNUpdate) (\s@KinesisStreamsOutputUpdate' {} a -> s {resourceARNUpdate = a} :: KinesisStreamsOutputUpdate) -- | ARN of the IAM role that Amazon Kinesis Analytics can assume to access -- the stream on your behalf. You need to grant the necessary permissions -- to this role. kinesisStreamsOutputUpdate_roleARNUpdate :: Lens.Lens' KinesisStreamsOutputUpdate (Prelude.Maybe Prelude.Text) kinesisStreamsOutputUpdate_roleARNUpdate = Lens.lens (\KinesisStreamsOutputUpdate' {roleARNUpdate} -> roleARNUpdate) (\s@KinesisStreamsOutputUpdate' {} a -> s {roleARNUpdate = a} :: KinesisStreamsOutputUpdate) instance Prelude.Hashable KinesisStreamsOutputUpdate where hashWithSalt _salt KinesisStreamsOutputUpdate' {..} = _salt `Prelude.hashWithSalt` resourceARNUpdate `Prelude.hashWithSalt` roleARNUpdate instance Prelude.NFData KinesisStreamsOutputUpdate where rnf KinesisStreamsOutputUpdate' {..} = Prelude.rnf resourceARNUpdate `Prelude.seq` Prelude.rnf roleARNUpdate instance Data.ToJSON KinesisStreamsOutputUpdate where toJSON KinesisStreamsOutputUpdate' {..} = Data.object ( Prelude.catMaybes [ ("ResourceARNUpdate" Data..=) Prelude.<$> resourceARNUpdate, ("RoleARNUpdate" Data..=) Prelude.<$> roleARNUpdate ] )