{-# 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.Neptune.Types.CloudwatchLogsExportConfiguration -- 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.Neptune.Types.CloudwatchLogsExportConfiguration 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 -- | The configuration setting for the log types to be enabled for export to -- CloudWatch Logs for a specific DB instance or DB cluster. -- -- The @EnableLogTypes@ and @DisableLogTypes@ arrays determine which logs -- will be exported (or not exported) to CloudWatch Logs. -- -- /See:/ 'newCloudwatchLogsExportConfiguration' smart constructor. data CloudwatchLogsExportConfiguration = CloudwatchLogsExportConfiguration' { -- | The list of log types to disable. disableLogTypes :: Prelude.Maybe [Prelude.Text], -- | The list of log types to enable. enableLogTypes :: Prelude.Maybe [Prelude.Text] } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'CloudwatchLogsExportConfiguration' 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: -- -- 'disableLogTypes', 'cloudwatchLogsExportConfiguration_disableLogTypes' - The list of log types to disable. -- -- 'enableLogTypes', 'cloudwatchLogsExportConfiguration_enableLogTypes' - The list of log types to enable. newCloudwatchLogsExportConfiguration :: CloudwatchLogsExportConfiguration newCloudwatchLogsExportConfiguration = CloudwatchLogsExportConfiguration' { disableLogTypes = Prelude.Nothing, enableLogTypes = Prelude.Nothing } -- | The list of log types to disable. cloudwatchLogsExportConfiguration_disableLogTypes :: Lens.Lens' CloudwatchLogsExportConfiguration (Prelude.Maybe [Prelude.Text]) cloudwatchLogsExportConfiguration_disableLogTypes = Lens.lens (\CloudwatchLogsExportConfiguration' {disableLogTypes} -> disableLogTypes) (\s@CloudwatchLogsExportConfiguration' {} a -> s {disableLogTypes = a} :: CloudwatchLogsExportConfiguration) Prelude.. Lens.mapping Lens.coerced -- | The list of log types to enable. cloudwatchLogsExportConfiguration_enableLogTypes :: Lens.Lens' CloudwatchLogsExportConfiguration (Prelude.Maybe [Prelude.Text]) cloudwatchLogsExportConfiguration_enableLogTypes = Lens.lens (\CloudwatchLogsExportConfiguration' {enableLogTypes} -> enableLogTypes) (\s@CloudwatchLogsExportConfiguration' {} a -> s {enableLogTypes = a} :: CloudwatchLogsExportConfiguration) Prelude.. Lens.mapping Lens.coerced instance Prelude.Hashable CloudwatchLogsExportConfiguration where hashWithSalt _salt CloudwatchLogsExportConfiguration' {..} = _salt `Prelude.hashWithSalt` disableLogTypes `Prelude.hashWithSalt` enableLogTypes instance Prelude.NFData CloudwatchLogsExportConfiguration where rnf CloudwatchLogsExportConfiguration' {..} = Prelude.rnf disableLogTypes `Prelude.seq` Prelude.rnf enableLogTypes instance Data.ToQuery CloudwatchLogsExportConfiguration where toQuery CloudwatchLogsExportConfiguration' {..} = Prelude.mconcat [ "DisableLogTypes" Data.=: Data.toQuery ( Data.toQueryList "member" Prelude.<$> disableLogTypes ), "EnableLogTypes" Data.=: Data.toQuery ( Data.toQueryList "member" Prelude.<$> enableLogTypes ) ]