amazonka-waf-regional-1.6.1: Amazon WAF Regional SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.WAFRegional.UpdateGeoMatchSet

Contents

Description

Inserts or deletes GeoMatchConstraint objects in an GeoMatchSet . For each GeoMatchConstraint object, you specify the following values:

  • Whether to insert or delete the object from the array. If you want to change an GeoMatchConstraint object, you delete the existing object and add a new one.
  • The Type . The only valid value for Type is Country .
  • The Value , which is a two character code for the country to add to the GeoMatchConstraint object. Valid codes are listed in 'GeoMatchConstraint$Value' .

To create and configure an GeoMatchSet , perform the following steps:

  • Submit a CreateGeoMatchSet request.
  • Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of an UpdateGeoMatchSet request.
  • Submit an UpdateGeoMatchSet request to specify the country that you want AWS WAF to watch for.

When you update an GeoMatchSet , you specify the country that you want to add and/or the country that you want to delete. If you want to change a country, you delete the existing country and add the new one.

For more information about how to use the AWS WAF API to allow or block HTTP requests, see the AWS WAF Developer Guide .

Synopsis

Creating a Request

updateGeoMatchSet Source #

Creates a value of UpdateGeoMatchSet with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • ugmsGeoMatchSetId - The GeoMatchSetId of the GeoMatchSet that you want to update. GeoMatchSetId is returned by CreateGeoMatchSet and by ListGeoMatchSets .
  • ugmsChangeToken - The value returned by the most recent call to GetChangeToken .
  • ugmsUpdates - An array of GeoMatchSetUpdate objects that you want to insert into or delete from an GeoMatchSet . For more information, see the applicable data types: * GeoMatchSetUpdate : Contains Action and GeoMatchConstraint * GeoMatchConstraint : Contains Type and Value You can have only one Type and Value per GeoMatchConstraint . To add multiple countries, include multiple GeoMatchSetUpdate objects in your request.

data UpdateGeoMatchSet Source #

See: updateGeoMatchSet smart constructor.

Instances
Eq UpdateGeoMatchSet Source # 
Instance details

Defined in Network.AWS.WAFRegional.UpdateGeoMatchSet

Data UpdateGeoMatchSet Source # 
Instance details

Defined in Network.AWS.WAFRegional.UpdateGeoMatchSet

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> UpdateGeoMatchSet -> c UpdateGeoMatchSet #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c UpdateGeoMatchSet #

toConstr :: UpdateGeoMatchSet -> Constr #

dataTypeOf :: UpdateGeoMatchSet -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c UpdateGeoMatchSet) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c UpdateGeoMatchSet) #

gmapT :: (forall b. Data b => b -> b) -> UpdateGeoMatchSet -> UpdateGeoMatchSet #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> UpdateGeoMatchSet -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> UpdateGeoMatchSet -> r #

gmapQ :: (forall d. Data d => d -> u) -> UpdateGeoMatchSet -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> UpdateGeoMatchSet -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> UpdateGeoMatchSet -> m UpdateGeoMatchSet #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdateGeoMatchSet -> m UpdateGeoMatchSet #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdateGeoMatchSet -> m UpdateGeoMatchSet #

Read UpdateGeoMatchSet Source # 
Instance details

Defined in Network.AWS.WAFRegional.UpdateGeoMatchSet

Show UpdateGeoMatchSet Source # 
Instance details

Defined in Network.AWS.WAFRegional.UpdateGeoMatchSet

Generic UpdateGeoMatchSet Source # 
Instance details

Defined in Network.AWS.WAFRegional.UpdateGeoMatchSet

Associated Types

type Rep UpdateGeoMatchSet :: Type -> Type #

Hashable UpdateGeoMatchSet Source # 
Instance details

Defined in Network.AWS.WAFRegional.UpdateGeoMatchSet

ToJSON UpdateGeoMatchSet Source # 
Instance details

Defined in Network.AWS.WAFRegional.UpdateGeoMatchSet

AWSRequest UpdateGeoMatchSet Source # 
Instance details

Defined in Network.AWS.WAFRegional.UpdateGeoMatchSet

Associated Types

type Rs UpdateGeoMatchSet :: Type #

ToHeaders UpdateGeoMatchSet Source # 
Instance details

Defined in Network.AWS.WAFRegional.UpdateGeoMatchSet

ToPath UpdateGeoMatchSet Source # 
Instance details

Defined in Network.AWS.WAFRegional.UpdateGeoMatchSet

ToQuery UpdateGeoMatchSet Source # 
Instance details

Defined in Network.AWS.WAFRegional.UpdateGeoMatchSet

NFData UpdateGeoMatchSet Source # 
Instance details

Defined in Network.AWS.WAFRegional.UpdateGeoMatchSet

Methods

rnf :: UpdateGeoMatchSet -> () #

type Rep UpdateGeoMatchSet Source # 
Instance details

Defined in Network.AWS.WAFRegional.UpdateGeoMatchSet

type Rep UpdateGeoMatchSet = D1 (MetaData "UpdateGeoMatchSet" "Network.AWS.WAFRegional.UpdateGeoMatchSet" "amazonka-waf-regional-1.6.1-IvDSn8aH4TMJoxm1GVf7Ug" False) (C1 (MetaCons "UpdateGeoMatchSet'" PrefixI True) (S1 (MetaSel (Just "_ugmsGeoMatchSetId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_ugmsChangeToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_ugmsUpdates") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (List1 GeoMatchSetUpdate)))))
type Rs UpdateGeoMatchSet Source # 
Instance details

Defined in Network.AWS.WAFRegional.UpdateGeoMatchSet

Request Lenses

ugmsGeoMatchSetId :: Lens' UpdateGeoMatchSet Text Source #

The GeoMatchSetId of the GeoMatchSet that you want to update. GeoMatchSetId is returned by CreateGeoMatchSet and by ListGeoMatchSets .

ugmsChangeToken :: Lens' UpdateGeoMatchSet Text Source #

The value returned by the most recent call to GetChangeToken .

ugmsUpdates :: Lens' UpdateGeoMatchSet (NonEmpty GeoMatchSetUpdate) Source #

An array of GeoMatchSetUpdate objects that you want to insert into or delete from an GeoMatchSet . For more information, see the applicable data types: * GeoMatchSetUpdate : Contains Action and GeoMatchConstraint * GeoMatchConstraint : Contains Type and Value You can have only one Type and Value per GeoMatchConstraint . To add multiple countries, include multiple GeoMatchSetUpdate objects in your request.

Destructuring the Response

updateGeoMatchSetResponse Source #

Creates a value of UpdateGeoMatchSetResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • ugmsrsChangeToken - The ChangeToken that you used to submit the UpdateGeoMatchSet request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus .
  • ugmsrsResponseStatus - -- | The response status code.

data UpdateGeoMatchSetResponse Source #

See: updateGeoMatchSetResponse smart constructor.

Instances
Eq UpdateGeoMatchSetResponse Source # 
Instance details

Defined in Network.AWS.WAFRegional.UpdateGeoMatchSet

Data UpdateGeoMatchSetResponse Source # 
Instance details

Defined in Network.AWS.WAFRegional.UpdateGeoMatchSet

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> UpdateGeoMatchSetResponse -> c UpdateGeoMatchSetResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c UpdateGeoMatchSetResponse #

toConstr :: UpdateGeoMatchSetResponse -> Constr #

dataTypeOf :: UpdateGeoMatchSetResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c UpdateGeoMatchSetResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c UpdateGeoMatchSetResponse) #

gmapT :: (forall b. Data b => b -> b) -> UpdateGeoMatchSetResponse -> UpdateGeoMatchSetResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> UpdateGeoMatchSetResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> UpdateGeoMatchSetResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> UpdateGeoMatchSetResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> UpdateGeoMatchSetResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> UpdateGeoMatchSetResponse -> m UpdateGeoMatchSetResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdateGeoMatchSetResponse -> m UpdateGeoMatchSetResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> UpdateGeoMatchSetResponse -> m UpdateGeoMatchSetResponse #

Read UpdateGeoMatchSetResponse Source # 
Instance details

Defined in Network.AWS.WAFRegional.UpdateGeoMatchSet

Show UpdateGeoMatchSetResponse Source # 
Instance details

Defined in Network.AWS.WAFRegional.UpdateGeoMatchSet

Generic UpdateGeoMatchSetResponse Source # 
Instance details

Defined in Network.AWS.WAFRegional.UpdateGeoMatchSet

Associated Types

type Rep UpdateGeoMatchSetResponse :: Type -> Type #

NFData UpdateGeoMatchSetResponse Source # 
Instance details

Defined in Network.AWS.WAFRegional.UpdateGeoMatchSet

type Rep UpdateGeoMatchSetResponse Source # 
Instance details

Defined in Network.AWS.WAFRegional.UpdateGeoMatchSet

type Rep UpdateGeoMatchSetResponse = D1 (MetaData "UpdateGeoMatchSetResponse" "Network.AWS.WAFRegional.UpdateGeoMatchSet" "amazonka-waf-regional-1.6.1-IvDSn8aH4TMJoxm1GVf7Ug" False) (C1 (MetaCons "UpdateGeoMatchSetResponse'" PrefixI True) (S1 (MetaSel (Just "_ugmsrsChangeToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_ugmsrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses

ugmsrsChangeToken :: Lens' UpdateGeoMatchSetResponse (Maybe Text) Source #

The ChangeToken that you used to submit the UpdateGeoMatchSet request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus .