amazonka-waf-1.6.0: Amazon WAF 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.WAF.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 #

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 #

See: updateGeoMatchSet smart constructor.

Instances

Eq UpdateGeoMatchSet # 
Data 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 # 
Show UpdateGeoMatchSet # 
Generic UpdateGeoMatchSet # 
Hashable UpdateGeoMatchSet # 
ToJSON UpdateGeoMatchSet # 
NFData UpdateGeoMatchSet # 

Methods

rnf :: UpdateGeoMatchSet -> () #

AWSRequest UpdateGeoMatchSet # 
ToHeaders UpdateGeoMatchSet # 
ToPath UpdateGeoMatchSet # 
ToQuery UpdateGeoMatchSet # 
type Rep UpdateGeoMatchSet # 
type Rep UpdateGeoMatchSet = D1 * (MetaData "UpdateGeoMatchSet" "Network.AWS.WAF.UpdateGeoMatchSet" "amazonka-waf-1.6.0-K7okww4xWnpBRydji27mKc" False) (C1 * (MetaCons "UpdateGeoMatchSet'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_ugmsGeoMatchSetId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) ((:*:) * (S1 * (MetaSel (Just Symbol "_ugmsChangeToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_ugmsUpdates") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (List1 GeoMatchSetUpdate))))))
type Rs UpdateGeoMatchSet # 

Request Lenses

ugmsGeoMatchSetId :: Lens' UpdateGeoMatchSet Text #

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

ugmsChangeToken :: Lens' UpdateGeoMatchSet Text #

The value returned by the most recent call to GetChangeToken .

ugmsUpdates :: Lens' UpdateGeoMatchSet (NonEmpty GeoMatchSetUpdate) #

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 #

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 #

See: updateGeoMatchSetResponse smart constructor.

Instances

Eq UpdateGeoMatchSetResponse # 
Data UpdateGeoMatchSetResponse # 

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 # 
Show UpdateGeoMatchSetResponse # 
Generic UpdateGeoMatchSetResponse # 
NFData UpdateGeoMatchSetResponse # 
type Rep UpdateGeoMatchSetResponse # 
type Rep UpdateGeoMatchSetResponse = D1 * (MetaData "UpdateGeoMatchSetResponse" "Network.AWS.WAF.UpdateGeoMatchSet" "amazonka-waf-1.6.0-K7okww4xWnpBRydji27mKc" False) (C1 * (MetaCons "UpdateGeoMatchSetResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_ugmsrsChangeToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_ugmsrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses

ugmsrsChangeToken :: Lens' UpdateGeoMatchSetResponse (Maybe Text) #

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 :: Lens' UpdateGeoMatchSetResponse Int #

  • - | The response status code.