{-# 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.Route53RecoveryReadiness.Types.ListRulesOutput -- 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.Route53RecoveryReadiness.Types.ListRulesOutput 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 -- | Readiness rule information, including the resource type, rule ID, and -- rule description. -- -- /See:/ 'newListRulesOutput' smart constructor. data ListRulesOutput = ListRulesOutput' { -- | The description of a readiness rule. ruleDescription :: Prelude.Text, -- | The ID for the readiness rule. ruleId :: Prelude.Text, -- | The resource type that the readiness rule applies to. resourceType :: Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'ListRulesOutput' 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: -- -- 'ruleDescription', 'listRulesOutput_ruleDescription' - The description of a readiness rule. -- -- 'ruleId', 'listRulesOutput_ruleId' - The ID for the readiness rule. -- -- 'resourceType', 'listRulesOutput_resourceType' - The resource type that the readiness rule applies to. newListRulesOutput :: -- | 'ruleDescription' Prelude.Text -> -- | 'ruleId' Prelude.Text -> -- | 'resourceType' Prelude.Text -> ListRulesOutput newListRulesOutput pRuleDescription_ pRuleId_ pResourceType_ = ListRulesOutput' { ruleDescription = pRuleDescription_, ruleId = pRuleId_, resourceType = pResourceType_ } -- | The description of a readiness rule. listRulesOutput_ruleDescription :: Lens.Lens' ListRulesOutput Prelude.Text listRulesOutput_ruleDescription = Lens.lens (\ListRulesOutput' {ruleDescription} -> ruleDescription) (\s@ListRulesOutput' {} a -> s {ruleDescription = a} :: ListRulesOutput) -- | The ID for the readiness rule. listRulesOutput_ruleId :: Lens.Lens' ListRulesOutput Prelude.Text listRulesOutput_ruleId = Lens.lens (\ListRulesOutput' {ruleId} -> ruleId) (\s@ListRulesOutput' {} a -> s {ruleId = a} :: ListRulesOutput) -- | The resource type that the readiness rule applies to. listRulesOutput_resourceType :: Lens.Lens' ListRulesOutput Prelude.Text listRulesOutput_resourceType = Lens.lens (\ListRulesOutput' {resourceType} -> resourceType) (\s@ListRulesOutput' {} a -> s {resourceType = a} :: ListRulesOutput) instance Data.FromJSON ListRulesOutput where parseJSON = Data.withObject "ListRulesOutput" ( \x -> ListRulesOutput' Prelude.<$> (x Data..: "ruleDescription") Prelude.<*> (x Data..: "ruleId") Prelude.<*> (x Data..: "resourceType") ) instance Prelude.Hashable ListRulesOutput where hashWithSalt _salt ListRulesOutput' {..} = _salt `Prelude.hashWithSalt` ruleDescription `Prelude.hashWithSalt` ruleId `Prelude.hashWithSalt` resourceType instance Prelude.NFData ListRulesOutput where rnf ListRulesOutput' {..} = Prelude.rnf ruleDescription `Prelude.seq` Prelude.rnf ruleId `Prelude.seq` Prelude.rnf resourceType