{-# 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.SqlInjectionMatchSetSummary -- 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.SqlInjectionMatchSetSummary 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. -- -- The @Id@ and @Name@ of a @SqlInjectionMatchSet@. -- -- /See:/ 'newSqlInjectionMatchSetSummary' smart constructor. data SqlInjectionMatchSetSummary = SqlInjectionMatchSetSummary' { -- | A unique identifier for a @SqlInjectionMatchSet@. You use -- @SqlInjectionMatchSetId@ to get information about a -- @SqlInjectionMatchSet@ (see GetSqlInjectionMatchSet), update a -- @SqlInjectionMatchSet@ (see UpdateSqlInjectionMatchSet), insert a -- @SqlInjectionMatchSet@ into a @Rule@ or delete one from a @Rule@ (see -- UpdateRule), and delete a @SqlInjectionMatchSet@ from AWS WAF (see -- DeleteSqlInjectionMatchSet). -- -- @SqlInjectionMatchSetId@ is returned by CreateSqlInjectionMatchSet and -- by ListSqlInjectionMatchSets. sqlInjectionMatchSetId :: Prelude.Text, -- | The name of the @SqlInjectionMatchSet@, if any, specified by @Id@. name :: Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'SqlInjectionMatchSetSummary' 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: -- -- 'sqlInjectionMatchSetId', 'sqlInjectionMatchSetSummary_sqlInjectionMatchSetId' - A unique identifier for a @SqlInjectionMatchSet@. You use -- @SqlInjectionMatchSetId@ to get information about a -- @SqlInjectionMatchSet@ (see GetSqlInjectionMatchSet), update a -- @SqlInjectionMatchSet@ (see UpdateSqlInjectionMatchSet), insert a -- @SqlInjectionMatchSet@ into a @Rule@ or delete one from a @Rule@ (see -- UpdateRule), and delete a @SqlInjectionMatchSet@ from AWS WAF (see -- DeleteSqlInjectionMatchSet). -- -- @SqlInjectionMatchSetId@ is returned by CreateSqlInjectionMatchSet and -- by ListSqlInjectionMatchSets. -- -- 'name', 'sqlInjectionMatchSetSummary_name' - The name of the @SqlInjectionMatchSet@, if any, specified by @Id@. newSqlInjectionMatchSetSummary :: -- | 'sqlInjectionMatchSetId' Prelude.Text -> -- | 'name' Prelude.Text -> SqlInjectionMatchSetSummary newSqlInjectionMatchSetSummary pSqlInjectionMatchSetId_ pName_ = SqlInjectionMatchSetSummary' { sqlInjectionMatchSetId = pSqlInjectionMatchSetId_, name = pName_ } -- | A unique identifier for a @SqlInjectionMatchSet@. You use -- @SqlInjectionMatchSetId@ to get information about a -- @SqlInjectionMatchSet@ (see GetSqlInjectionMatchSet), update a -- @SqlInjectionMatchSet@ (see UpdateSqlInjectionMatchSet), insert a -- @SqlInjectionMatchSet@ into a @Rule@ or delete one from a @Rule@ (see -- UpdateRule), and delete a @SqlInjectionMatchSet@ from AWS WAF (see -- DeleteSqlInjectionMatchSet). -- -- @SqlInjectionMatchSetId@ is returned by CreateSqlInjectionMatchSet and -- by ListSqlInjectionMatchSets. sqlInjectionMatchSetSummary_sqlInjectionMatchSetId :: Lens.Lens' SqlInjectionMatchSetSummary Prelude.Text sqlInjectionMatchSetSummary_sqlInjectionMatchSetId = Lens.lens (\SqlInjectionMatchSetSummary' {sqlInjectionMatchSetId} -> sqlInjectionMatchSetId) (\s@SqlInjectionMatchSetSummary' {} a -> s {sqlInjectionMatchSetId = a} :: SqlInjectionMatchSetSummary) -- | The name of the @SqlInjectionMatchSet@, if any, specified by @Id@. sqlInjectionMatchSetSummary_name :: Lens.Lens' SqlInjectionMatchSetSummary Prelude.Text sqlInjectionMatchSetSummary_name = Lens.lens (\SqlInjectionMatchSetSummary' {name} -> name) (\s@SqlInjectionMatchSetSummary' {} a -> s {name = a} :: SqlInjectionMatchSetSummary) instance Data.FromJSON SqlInjectionMatchSetSummary where parseJSON = Data.withObject "SqlInjectionMatchSetSummary" ( \x -> SqlInjectionMatchSetSummary' Prelude.<$> (x Data..: "SqlInjectionMatchSetId") Prelude.<*> (x Data..: "Name") ) instance Prelude.Hashable SqlInjectionMatchSetSummary where hashWithSalt _salt SqlInjectionMatchSetSummary' {..} = _salt `Prelude.hashWithSalt` sqlInjectionMatchSetId `Prelude.hashWithSalt` name instance Prelude.NFData SqlInjectionMatchSetSummary where rnf SqlInjectionMatchSetSummary' {..} = Prelude.rnf sqlInjectionMatchSetId `Prelude.seq` Prelude.rnf name