{-# 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.GuardDuty.Types.OrganizationS3LogsConfigurationResult -- 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.GuardDuty.Types.OrganizationS3LogsConfigurationResult 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 current configuration of S3 data event logs as a data source for the -- organization. -- -- /See:/ 'newOrganizationS3LogsConfigurationResult' smart constructor. data OrganizationS3LogsConfigurationResult = OrganizationS3LogsConfigurationResult' { -- | A value that describes whether S3 data event logs are automatically -- enabled for new members of the organization. autoEnable :: Prelude.Bool } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'OrganizationS3LogsConfigurationResult' 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: -- -- 'autoEnable', 'organizationS3LogsConfigurationResult_autoEnable' - A value that describes whether S3 data event logs are automatically -- enabled for new members of the organization. newOrganizationS3LogsConfigurationResult :: -- | 'autoEnable' Prelude.Bool -> OrganizationS3LogsConfigurationResult newOrganizationS3LogsConfigurationResult pAutoEnable_ = OrganizationS3LogsConfigurationResult' { autoEnable = pAutoEnable_ } -- | A value that describes whether S3 data event logs are automatically -- enabled for new members of the organization. organizationS3LogsConfigurationResult_autoEnable :: Lens.Lens' OrganizationS3LogsConfigurationResult Prelude.Bool organizationS3LogsConfigurationResult_autoEnable = Lens.lens (\OrganizationS3LogsConfigurationResult' {autoEnable} -> autoEnable) (\s@OrganizationS3LogsConfigurationResult' {} a -> s {autoEnable = a} :: OrganizationS3LogsConfigurationResult) instance Data.FromJSON OrganizationS3LogsConfigurationResult where parseJSON = Data.withObject "OrganizationS3LogsConfigurationResult" ( \x -> OrganizationS3LogsConfigurationResult' Prelude.<$> (x Data..: "autoEnable") ) instance Prelude.Hashable OrganizationS3LogsConfigurationResult where hashWithSalt _salt OrganizationS3LogsConfigurationResult' {..} = _salt `Prelude.hashWithSalt` autoEnable instance Prelude.NFData OrganizationS3LogsConfigurationResult where rnf OrganizationS3LogsConfigurationResult' {..} = Prelude.rnf autoEnable