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 Source #

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 Source #

The input for the DeleteCertificate operation.

See: deleteCertificate smart constructor.

Instances

Eq DeleteCertificate Source # 
Data DeleteCertificate Source # 

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 Source # 
Show DeleteCertificate Source # 
Generic DeleteCertificate Source # 
Hashable DeleteCertificate Source # 
NFData DeleteCertificate Source # 

Methods

rnf :: DeleteCertificate -> () #

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

Request Lenses

dcCertificateId :: Lens' DeleteCertificate Text Source #

The ID of the certificate.

Destructuring the Response

deleteCertificateResponse :: DeleteCertificateResponse Source #

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

data DeleteCertificateResponse Source #

See: deleteCertificateResponse smart constructor.

Instances

Eq DeleteCertificateResponse Source # 
Data DeleteCertificateResponse Source # 

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 Source # 
Show DeleteCertificateResponse Source # 
Generic DeleteCertificateResponse Source # 
NFData DeleteCertificateResponse Source # 
type Rep DeleteCertificateResponse Source # 
type Rep DeleteCertificateResponse = D1 (MetaData "DeleteCertificateResponse" "Network.AWS.IoT.DeleteCertificate" "amazonka-iot-1.4.5-LdiOpNMei3PDsbsABUTj6X" False) (C1 (MetaCons "DeleteCertificateResponse'" PrefixI False) U1)