amazonka-waf-1.6.1: 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.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 #

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

data GetChangeToken #

See: getChangeToken smart constructor.

Instances
Eq GetChangeToken # 
Instance details

Defined in Network.AWS.WAF.GetChangeToken

Data GetChangeToken # 
Instance details

Defined in Network.AWS.WAF.GetChangeToken

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 # 
Instance details

Defined in Network.AWS.WAF.GetChangeToken

Show GetChangeToken # 
Instance details

Defined in Network.AWS.WAF.GetChangeToken

Generic GetChangeToken # 
Instance details

Defined in Network.AWS.WAF.GetChangeToken

Associated Types

type Rep GetChangeToken :: Type -> Type #

Hashable GetChangeToken # 
Instance details

Defined in Network.AWS.WAF.GetChangeToken

ToJSON GetChangeToken # 
Instance details

Defined in Network.AWS.WAF.GetChangeToken

AWSRequest GetChangeToken # 
Instance details

Defined in Network.AWS.WAF.GetChangeToken

Associated Types

type Rs GetChangeToken :: Type #

ToHeaders GetChangeToken # 
Instance details

Defined in Network.AWS.WAF.GetChangeToken

ToPath GetChangeToken # 
Instance details

Defined in Network.AWS.WAF.GetChangeToken

ToQuery GetChangeToken # 
Instance details

Defined in Network.AWS.WAF.GetChangeToken

NFData GetChangeToken # 
Instance details

Defined in Network.AWS.WAF.GetChangeToken

Methods

rnf :: GetChangeToken -> () #

type Rep GetChangeToken # 
Instance details

Defined in Network.AWS.WAF.GetChangeToken

type Rep GetChangeToken = D1 (MetaData "GetChangeToken" "Network.AWS.WAF.GetChangeToken" "amazonka-waf-1.6.1-58qiOW5VcwnIkfAeSj6srS" False) (C1 (MetaCons "GetChangeToken'" PrefixI False) (U1 :: Type -> Type))
type Rs GetChangeToken # 
Instance details

Defined in Network.AWS.WAF.GetChangeToken

Destructuring the Response

getChangeTokenResponse #

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 #

See: getChangeTokenResponse smart constructor.

Instances
Eq GetChangeTokenResponse # 
Instance details

Defined in Network.AWS.WAF.GetChangeToken

Data GetChangeTokenResponse # 
Instance details

Defined in Network.AWS.WAF.GetChangeToken

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 # 
Instance details

Defined in Network.AWS.WAF.GetChangeToken

Show GetChangeTokenResponse # 
Instance details

Defined in Network.AWS.WAF.GetChangeToken

Generic GetChangeTokenResponse # 
Instance details

Defined in Network.AWS.WAF.GetChangeToken

Associated Types

type Rep GetChangeTokenResponse :: Type -> Type #

NFData GetChangeTokenResponse # 
Instance details

Defined in Network.AWS.WAF.GetChangeToken

Methods

rnf :: GetChangeTokenResponse -> () #

type Rep GetChangeTokenResponse # 
Instance details

Defined in Network.AWS.WAF.GetChangeToken

type Rep GetChangeTokenResponse = D1 (MetaData "GetChangeTokenResponse" "Network.AWS.WAF.GetChangeToken" "amazonka-waf-1.6.1-58qiOW5VcwnIkfAeSj6srS" False) (C1 (MetaCons "GetChangeTokenResponse'" PrefixI True) (S1 (MetaSel (Just "_gctrsChangeToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_gctrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses

gctrsChangeToken :: Lens' GetChangeTokenResponse (Maybe Text) #

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

gctrsResponseStatus :: Lens' GetChangeTokenResponse Int #

  • - | The response status code.