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 #

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 #

The input for the DeletePolicyVersion operation.

See: deletePolicyVersion smart constructor.

Instances
Eq DeletePolicyVersion # 
Instance details

Defined in Network.AWS.IoT.DeletePolicyVersion

Data DeletePolicyVersion # 
Instance details

Defined in Network.AWS.IoT.DeletePolicyVersion

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

Defined in Network.AWS.IoT.DeletePolicyVersion

Show DeletePolicyVersion # 
Instance details

Defined in Network.AWS.IoT.DeletePolicyVersion

Generic DeletePolicyVersion # 
Instance details

Defined in Network.AWS.IoT.DeletePolicyVersion

Associated Types

type Rep DeletePolicyVersion :: * -> * #

Hashable DeletePolicyVersion # 
Instance details

Defined in Network.AWS.IoT.DeletePolicyVersion

AWSRequest DeletePolicyVersion # 
Instance details

Defined in Network.AWS.IoT.DeletePolicyVersion

Associated Types

type Rs DeletePolicyVersion :: * #

ToHeaders DeletePolicyVersion # 
Instance details

Defined in Network.AWS.IoT.DeletePolicyVersion

ToPath DeletePolicyVersion # 
Instance details

Defined in Network.AWS.IoT.DeletePolicyVersion

ToQuery DeletePolicyVersion # 
Instance details

Defined in Network.AWS.IoT.DeletePolicyVersion

NFData DeletePolicyVersion # 
Instance details

Defined in Network.AWS.IoT.DeletePolicyVersion

Methods

rnf :: DeletePolicyVersion -> () #

type Rep DeletePolicyVersion # 
Instance details

Defined in Network.AWS.IoT.DeletePolicyVersion

type Rep DeletePolicyVersion = D1 (MetaData "DeletePolicyVersion" "Network.AWS.IoT.DeletePolicyVersion" "amazonka-iot-1.6.0-CAejnyMMkfk3pNFUOERBSd" False) (C1 (MetaCons "DeletePolicyVersion'" PrefixI True) (S1 (MetaSel (Just "_dpvPolicyName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_dpvPolicyVersionId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Rs DeletePolicyVersion # 
Instance details

Defined in Network.AWS.IoT.DeletePolicyVersion

Request Lenses

dpvPolicyName :: Lens' DeletePolicyVersion Text #

The name of the policy.

Destructuring the Response

deletePolicyVersionResponse :: DeletePolicyVersionResponse #

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

data DeletePolicyVersionResponse #

See: deletePolicyVersionResponse smart constructor.

Instances
Eq DeletePolicyVersionResponse # 
Instance details

Defined in Network.AWS.IoT.DeletePolicyVersion

Data DeletePolicyVersionResponse # 
Instance details

Defined in Network.AWS.IoT.DeletePolicyVersion

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

Defined in Network.AWS.IoT.DeletePolicyVersion

Show DeletePolicyVersionResponse # 
Instance details

Defined in Network.AWS.IoT.DeletePolicyVersion

Generic DeletePolicyVersionResponse # 
Instance details

Defined in Network.AWS.IoT.DeletePolicyVersion

Associated Types

type Rep DeletePolicyVersionResponse :: * -> * #

NFData DeletePolicyVersionResponse # 
Instance details

Defined in Network.AWS.IoT.DeletePolicyVersion

type Rep DeletePolicyVersionResponse # 
Instance details

Defined in Network.AWS.IoT.DeletePolicyVersion

type Rep DeletePolicyVersionResponse = D1 (MetaData "DeletePolicyVersionResponse" "Network.AWS.IoT.DeletePolicyVersion" "amazonka-iot-1.6.0-CAejnyMMkfk3pNFUOERBSd" False) (C1 (MetaCons "DeletePolicyVersionResponse'" PrefixI False) (U1 :: * -> *))