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

Copyright(c) 2013-2017 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.GetChangeToken

Contents

Description

When you want to create, update, or delete AWS WAF objects, get a change token and include the change token in the create, update, or delete request. Change tokens ensure that your application doesn't submit conflicting requests to AWS WAF.

Each create, update, or delete request must use a unique change token. If your application submits a GetChangeToken request and then submits a second GetChangeToken request before submitting a create, update, or delete request, the second GetChangeToken request returns the same value as the first GetChangeToken request.

When you use a change token in a create, update, or delete request, the status of the change token changes to PENDING , which indicates that AWS WAF is propagating the change to all AWS WAF servers. Use GetChangeTokenStatus to determine the status of your change token.

Synopsis

Creating a Request

getChangeToken :: GetChangeToken Source #

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

data GetChangeToken Source #

See: getChangeToken smart constructor.

Instances

Eq GetChangeToken Source # 
Data GetChangeToken Source # 

Methods

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

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

toConstr :: GetChangeToken -> Constr #

dataTypeOf :: GetChangeToken -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetChangeToken Source # 
Show GetChangeToken Source # 
Generic GetChangeToken Source # 

Associated Types

type Rep GetChangeToken :: * -> * #

Hashable GetChangeToken Source # 
ToJSON GetChangeToken Source # 
NFData GetChangeToken Source # 

Methods

rnf :: GetChangeToken -> () #

AWSRequest GetChangeToken Source # 
ToQuery GetChangeToken Source # 
ToPath GetChangeToken Source # 
ToHeaders GetChangeToken Source # 
type Rep GetChangeToken Source # 
type Rep GetChangeToken = D1 (MetaData "GetChangeToken" "Network.AWS.WAFRegional.GetChangeToken" "amazonka-waf-regional-1.5.0-Kn8HIfa7qWEERHHaTClrk5" False) (C1 (MetaCons "GetChangeToken'" PrefixI False) U1)
type Rs GetChangeToken Source # 

Destructuring the Response

getChangeTokenResponse Source #

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

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

  • gctrsChangeToken - The ChangeToken that you used in the request. Use this value in a GetChangeTokenStatus request to get the current status of the request.
  • gctrsResponseStatus - -- | The response status code.

data GetChangeTokenResponse Source #

See: getChangeTokenResponse smart constructor.

Instances

Eq GetChangeTokenResponse Source # 
Data GetChangeTokenResponse Source # 

Methods

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

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

toConstr :: GetChangeTokenResponse -> Constr #

dataTypeOf :: GetChangeTokenResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetChangeTokenResponse Source # 
Show GetChangeTokenResponse Source # 
Generic GetChangeTokenResponse Source # 
NFData GetChangeTokenResponse Source # 

Methods

rnf :: GetChangeTokenResponse -> () #

type Rep GetChangeTokenResponse Source # 
type Rep GetChangeTokenResponse = D1 (MetaData "GetChangeTokenResponse" "Network.AWS.WAFRegional.GetChangeToken" "amazonka-waf-regional-1.5.0-Kn8HIfa7qWEERHHaTClrk5" False) (C1 (MetaCons "GetChangeTokenResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_gctrsChangeToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_gctrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

gctrsChangeToken :: Lens' GetChangeTokenResponse (Maybe Text) Source #

The ChangeToken that you used in the request. Use this value in a GetChangeTokenStatus request to get the current status of the request.