amazonka-iot-1.6.0: Amazon IoT 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.IoT.DeletePolicyVersion

Contents

Description

Deletes the specified version of the specified policy. You cannot delete the default version of a policy using this API. To delete the default version of a policy, use DeletePolicy . To find out which version of a policy is marked as the default version, use ListPolicyVersions.

Synopsis

Creating a Request

deletePolicyVersion Source #

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

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

data DeletePolicyVersion Source #

The input for the DeletePolicyVersion operation.

See: deletePolicyVersion smart constructor.

Instances

Eq DeletePolicyVersion Source # 
Data DeletePolicyVersion Source # 

Methods

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

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

toConstr :: DeletePolicyVersion -> Constr #

dataTypeOf :: DeletePolicyVersion -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeletePolicyVersion Source # 
Show DeletePolicyVersion Source # 
Generic DeletePolicyVersion Source # 
Hashable DeletePolicyVersion Source # 
NFData DeletePolicyVersion Source # 

Methods

rnf :: DeletePolicyVersion -> () #

AWSRequest DeletePolicyVersion Source # 
ToHeaders DeletePolicyVersion Source # 
ToPath DeletePolicyVersion Source # 
ToQuery DeletePolicyVersion Source # 
type Rep DeletePolicyVersion Source # 
type Rep DeletePolicyVersion = D1 * (MetaData "DeletePolicyVersion" "Network.AWS.IoT.DeletePolicyVersion" "amazonka-iot-1.6.0-GZYdsKS1TEjHFZo6BqaYJk" False) (C1 * (MetaCons "DeletePolicyVersion'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_dpvPolicyName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_dpvPolicyVersionId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))
type Rs DeletePolicyVersion Source # 

Request Lenses

Destructuring the Response

deletePolicyVersionResponse :: DeletePolicyVersionResponse Source #

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

data DeletePolicyVersionResponse Source #

See: deletePolicyVersionResponse smart constructor.

Instances

Eq DeletePolicyVersionResponse Source # 
Data DeletePolicyVersionResponse Source # 

Methods

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

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

toConstr :: DeletePolicyVersionResponse -> Constr #

dataTypeOf :: DeletePolicyVersionResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeletePolicyVersionResponse Source # 
Show DeletePolicyVersionResponse Source # 
Generic DeletePolicyVersionResponse Source # 
NFData DeletePolicyVersionResponse Source # 
type Rep DeletePolicyVersionResponse Source # 
type Rep DeletePolicyVersionResponse = D1 * (MetaData "DeletePolicyVersionResponse" "Network.AWS.IoT.DeletePolicyVersion" "amazonka-iot-1.6.0-GZYdsKS1TEjHFZo6BqaYJk" False) (C1 * (MetaCons "DeletePolicyVersionResponse'" PrefixI False) (U1 *))