{-# 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.ECR.Types.Remediation -- 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.ECR.Types.Remediation where import qualified Amazonka.Core as Core import qualified Amazonka.Core.Lens.Internal as Lens import qualified Amazonka.Data as Data import Amazonka.ECR.Types.Recommendation import qualified Amazonka.Prelude as Prelude -- | Information on how to remediate a finding. -- -- /See:/ 'newRemediation' smart constructor. data Remediation = Remediation' { -- | An object that contains information about the recommended course of -- action to remediate the finding. recommendation :: Prelude.Maybe Recommendation } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'Remediation' 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: -- -- 'recommendation', 'remediation_recommendation' - An object that contains information about the recommended course of -- action to remediate the finding. newRemediation :: Remediation newRemediation = Remediation' {recommendation = Prelude.Nothing} -- | An object that contains information about the recommended course of -- action to remediate the finding. remediation_recommendation :: Lens.Lens' Remediation (Prelude.Maybe Recommendation) remediation_recommendation = Lens.lens (\Remediation' {recommendation} -> recommendation) (\s@Remediation' {} a -> s {recommendation = a} :: Remediation) instance Data.FromJSON Remediation where parseJSON = Data.withObject "Remediation" ( \x -> Remediation' Prelude.<$> (x Data..:? "recommendation") ) instance Prelude.Hashable Remediation where hashWithSalt _salt Remediation' {..} = _salt `Prelude.hashWithSalt` recommendation instance Prelude.NFData Remediation where rnf Remediation' {..} = Prelude.rnf recommendation