amazonka-iot-1.4.5: Amazon IoT SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.IoT.DeleteCertificate

Contents

Description

Deletes the specified certificate.

A certificate cannot be deleted if it has a policy attached to it or if its status is set to ACTIVE. To delete a certificate, first use the DetachPrincipalPolicy API to detach all policies. Next, use the UpdateCertificate API to set the certificate to the INACTIVE status.

Synopsis

Creating a Request

deleteCertificate #

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

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

data DeleteCertificate #

The input for the DeleteCertificate operation.

See: deleteCertificate smart constructor.

Instances

Eq DeleteCertificate # 
Data DeleteCertificate # 

Methods

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

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

toConstr :: DeleteCertificate -> Constr #

dataTypeOf :: DeleteCertificate -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteCertificate # 
Show DeleteCertificate # 
Generic DeleteCertificate # 
Hashable DeleteCertificate # 
NFData DeleteCertificate # 

Methods

rnf :: DeleteCertificate -> () #

AWSRequest DeleteCertificate # 
ToQuery DeleteCertificate # 
ToPath DeleteCertificate # 
ToHeaders DeleteCertificate # 
type Rep DeleteCertificate # 
type Rep DeleteCertificate = D1 (MetaData "DeleteCertificate" "Network.AWS.IoT.DeleteCertificate" "amazonka-iot-1.4.5-HnBhW38Gbiq1QAd2zPEJmJ" True) (C1 (MetaCons "DeleteCertificate'" PrefixI True) (S1 (MetaSel (Just Symbol "_dcCertificateId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type Rs DeleteCertificate # 

Request Lenses

dcCertificateId :: Lens' DeleteCertificate Text #

The ID of the certificate.

Destructuring the Response

deleteCertificateResponse :: DeleteCertificateResponse #

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

data DeleteCertificateResponse #

See: deleteCertificateResponse smart constructor.

Instances

Eq DeleteCertificateResponse # 
Data DeleteCertificateResponse # 

Methods

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

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

toConstr :: DeleteCertificateResponse -> Constr #

dataTypeOf :: DeleteCertificateResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteCertificateResponse # 
Show DeleteCertificateResponse # 
Generic DeleteCertificateResponse # 
NFData DeleteCertificateResponse # 
type Rep DeleteCertificateResponse # 
type Rep DeleteCertificateResponse = D1 (MetaData "DeleteCertificateResponse" "Network.AWS.IoT.DeleteCertificate" "amazonka-iot-1.4.5-HnBhW38Gbiq1QAd2zPEJmJ" False) (C1 (MetaCons "DeleteCertificateResponse'" PrefixI False) U1)