{-# 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.WAFRegional.Types.RegexPatternSetSummary -- 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.WAFRegional.Types.RegexPatternSetSummary 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 -- | This is __AWS WAF Classic__ documentation. For more information, see -- -- in the developer guide. -- -- __For the latest version of AWS WAF__, use the AWS WAFV2 API and see the -- . -- With the latest version, AWS WAF has a single set of endpoints for -- regional and global use. -- -- Returned by ListRegexPatternSets. Each @RegexPatternSetSummary@ object -- includes the @Name@ and @RegexPatternSetId@ for one RegexPatternSet. -- -- /See:/ 'newRegexPatternSetSummary' smart constructor. data RegexPatternSetSummary = RegexPatternSetSummary' { -- | The @RegexPatternSetId@ for a @RegexPatternSet@. You use -- @RegexPatternSetId@ to get information about a @RegexPatternSet@, update -- a @RegexPatternSet@, remove a @RegexPatternSet@ from a @RegexMatchSet@, -- and delete a @RegexPatternSet@ from AWS WAF. -- -- @RegexPatternSetId@ is returned by CreateRegexPatternSet and by -- ListRegexPatternSets. regexPatternSetId :: Prelude.Text, -- | A friendly name or description of the RegexPatternSet. You can\'t change -- @Name@ after you create a @RegexPatternSet@. name :: Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'RegexPatternSetSummary' 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: -- -- 'regexPatternSetId', 'regexPatternSetSummary_regexPatternSetId' - The @RegexPatternSetId@ for a @RegexPatternSet@. You use -- @RegexPatternSetId@ to get information about a @RegexPatternSet@, update -- a @RegexPatternSet@, remove a @RegexPatternSet@ from a @RegexMatchSet@, -- and delete a @RegexPatternSet@ from AWS WAF. -- -- @RegexPatternSetId@ is returned by CreateRegexPatternSet and by -- ListRegexPatternSets. -- -- 'name', 'regexPatternSetSummary_name' - A friendly name or description of the RegexPatternSet. You can\'t change -- @Name@ after you create a @RegexPatternSet@. newRegexPatternSetSummary :: -- | 'regexPatternSetId' Prelude.Text -> -- | 'name' Prelude.Text -> RegexPatternSetSummary newRegexPatternSetSummary pRegexPatternSetId_ pName_ = RegexPatternSetSummary' { regexPatternSetId = pRegexPatternSetId_, name = pName_ } -- | The @RegexPatternSetId@ for a @RegexPatternSet@. You use -- @RegexPatternSetId@ to get information about a @RegexPatternSet@, update -- a @RegexPatternSet@, remove a @RegexPatternSet@ from a @RegexMatchSet@, -- and delete a @RegexPatternSet@ from AWS WAF. -- -- @RegexPatternSetId@ is returned by CreateRegexPatternSet and by -- ListRegexPatternSets. regexPatternSetSummary_regexPatternSetId :: Lens.Lens' RegexPatternSetSummary Prelude.Text regexPatternSetSummary_regexPatternSetId = Lens.lens (\RegexPatternSetSummary' {regexPatternSetId} -> regexPatternSetId) (\s@RegexPatternSetSummary' {} a -> s {regexPatternSetId = a} :: RegexPatternSetSummary) -- | A friendly name or description of the RegexPatternSet. You can\'t change -- @Name@ after you create a @RegexPatternSet@. regexPatternSetSummary_name :: Lens.Lens' RegexPatternSetSummary Prelude.Text regexPatternSetSummary_name = Lens.lens (\RegexPatternSetSummary' {name} -> name) (\s@RegexPatternSetSummary' {} a -> s {name = a} :: RegexPatternSetSummary) instance Data.FromJSON RegexPatternSetSummary where parseJSON = Data.withObject "RegexPatternSetSummary" ( \x -> RegexPatternSetSummary' Prelude.<$> (x Data..: "RegexPatternSetId") Prelude.<*> (x Data..: "Name") ) instance Prelude.Hashable RegexPatternSetSummary where hashWithSalt _salt RegexPatternSetSummary' {..} = _salt `Prelude.hashWithSalt` regexPatternSetId `Prelude.hashWithSalt` name instance Prelude.NFData RegexPatternSetSummary where rnf RegexPatternSetSummary' {..} = Prelude.rnf regexPatternSetId `Prelude.seq` Prelude.rnf name