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.CreateIPSet

Contents

Description

Creates an IPSet , which you use to specify which web requests you want to allow or block based on the IP addresses that the requests originate from. For example, if you're receiving a lot of requests from one or more individual IP addresses or one or more ranges of IP addresses and you want to block the requests, you can create an IPSet that contains those IP addresses and then configure AWS WAF to block the requests.

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

  • Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of a CreateIPSet request.
  • Submit a CreateIPSet request.
  • Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of an UpdateIPSet request.
  • Submit an UpdateIPSet request to specify the IP addresses that you want AWS WAF to watch for.

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

createIPSet Source #

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

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

  • cisName - A friendly name or description of the IPSet . You can't change Name after you create the IPSet .
  • cisChangeToken - The value returned by the most recent call to GetChangeToken .

data CreateIPSet Source #

See: createIPSet smart constructor.

Instances
Eq CreateIPSet Source # 
Instance details

Defined in Network.AWS.WAFRegional.CreateIPSet

Data CreateIPSet Source # 
Instance details

Defined in Network.AWS.WAFRegional.CreateIPSet

Methods

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

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

toConstr :: CreateIPSet -> Constr #

dataTypeOf :: CreateIPSet -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateIPSet Source # 
Instance details

Defined in Network.AWS.WAFRegional.CreateIPSet

Show CreateIPSet Source # 
Instance details

Defined in Network.AWS.WAFRegional.CreateIPSet

Generic CreateIPSet Source # 
Instance details

Defined in Network.AWS.WAFRegional.CreateIPSet

Associated Types

type Rep CreateIPSet :: Type -> Type #

Hashable CreateIPSet Source # 
Instance details

Defined in Network.AWS.WAFRegional.CreateIPSet

ToJSON CreateIPSet Source # 
Instance details

Defined in Network.AWS.WAFRegional.CreateIPSet

AWSRequest CreateIPSet Source # 
Instance details

Defined in Network.AWS.WAFRegional.CreateIPSet

Associated Types

type Rs CreateIPSet :: Type #

ToHeaders CreateIPSet Source # 
Instance details

Defined in Network.AWS.WAFRegional.CreateIPSet

Methods

toHeaders :: CreateIPSet -> [Header] #

ToPath CreateIPSet Source # 
Instance details

Defined in Network.AWS.WAFRegional.CreateIPSet

ToQuery CreateIPSet Source # 
Instance details

Defined in Network.AWS.WAFRegional.CreateIPSet

NFData CreateIPSet Source # 
Instance details

Defined in Network.AWS.WAFRegional.CreateIPSet

Methods

rnf :: CreateIPSet -> () #

type Rep CreateIPSet Source # 
Instance details

Defined in Network.AWS.WAFRegional.CreateIPSet

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

Defined in Network.AWS.WAFRegional.CreateIPSet

Request Lenses

cisName :: Lens' CreateIPSet Text Source #

A friendly name or description of the IPSet . You can't change Name after you create the IPSet .

cisChangeToken :: Lens' CreateIPSet Text Source #

The value returned by the most recent call to GetChangeToken .

Destructuring the Response

createIPSetResponse Source #

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

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

  • cisrsChangeToken - The ChangeToken that you used to submit the CreateIPSet request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus .
  • cisrsIPSet - The IPSet returned in the CreateIPSet response.
  • cisrsResponseStatus - -- | The response status code.

data CreateIPSetResponse Source #

See: createIPSetResponse smart constructor.

Instances
Eq CreateIPSetResponse Source # 
Instance details

Defined in Network.AWS.WAFRegional.CreateIPSet

Data CreateIPSetResponse Source # 
Instance details

Defined in Network.AWS.WAFRegional.CreateIPSet

Methods

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

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

toConstr :: CreateIPSetResponse -> Constr #

dataTypeOf :: CreateIPSetResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateIPSetResponse Source # 
Instance details

Defined in Network.AWS.WAFRegional.CreateIPSet

Show CreateIPSetResponse Source # 
Instance details

Defined in Network.AWS.WAFRegional.CreateIPSet

Generic CreateIPSetResponse Source # 
Instance details

Defined in Network.AWS.WAFRegional.CreateIPSet

Associated Types

type Rep CreateIPSetResponse :: Type -> Type #

NFData CreateIPSetResponse Source # 
Instance details

Defined in Network.AWS.WAFRegional.CreateIPSet

Methods

rnf :: CreateIPSetResponse -> () #

type Rep CreateIPSetResponse Source # 
Instance details

Defined in Network.AWS.WAFRegional.CreateIPSet

type Rep CreateIPSetResponse = D1 (MetaData "CreateIPSetResponse" "Network.AWS.WAFRegional.CreateIPSet" "amazonka-waf-regional-1.6.1-IvDSn8aH4TMJoxm1GVf7Ug" False) (C1 (MetaCons "CreateIPSetResponse'" PrefixI True) (S1 (MetaSel (Just "_cisrsChangeToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_cisrsIPSet") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe IPSet)) :*: S1 (MetaSel (Just "_cisrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

cisrsChangeToken :: Lens' CreateIPSetResponse (Maybe Text) Source #

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

cisrsIPSet :: Lens' CreateIPSetResponse (Maybe IPSet) Source #

The IPSet returned in the CreateIPSet response.

cisrsResponseStatus :: Lens' CreateIPSetResponse Int Source #

  • - | The response status code.