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

  • dcForceDelete - Forces a certificate request to be deleted.
  • dcCertificateId - The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.)

data DeleteCertificate Source #

The input for the DeleteCertificate operation.

See: deleteCertificate smart constructor.

Instances
Eq DeleteCertificate Source # 
Instance details

Defined in Network.AWS.IoT.DeleteCertificate

Data DeleteCertificate Source # 
Instance details

Defined in Network.AWS.IoT.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 Source # 
Instance details

Defined in Network.AWS.IoT.DeleteCertificate

Show DeleteCertificate Source # 
Instance details

Defined in Network.AWS.IoT.DeleteCertificate

Generic DeleteCertificate Source # 
Instance details

Defined in Network.AWS.IoT.DeleteCertificate

Associated Types

type Rep DeleteCertificate :: Type -> Type #

Hashable DeleteCertificate Source # 
Instance details

Defined in Network.AWS.IoT.DeleteCertificate

AWSRequest DeleteCertificate Source # 
Instance details

Defined in Network.AWS.IoT.DeleteCertificate

Associated Types

type Rs DeleteCertificate :: Type #

ToHeaders DeleteCertificate Source # 
Instance details

Defined in Network.AWS.IoT.DeleteCertificate

ToPath DeleteCertificate Source # 
Instance details

Defined in Network.AWS.IoT.DeleteCertificate

ToQuery DeleteCertificate Source # 
Instance details

Defined in Network.AWS.IoT.DeleteCertificate

NFData DeleteCertificate Source # 
Instance details

Defined in Network.AWS.IoT.DeleteCertificate

Methods

rnf :: DeleteCertificate -> () #

type Rep DeleteCertificate Source # 
Instance details

Defined in Network.AWS.IoT.DeleteCertificate

type Rep DeleteCertificate = D1 (MetaData "DeleteCertificate" "Network.AWS.IoT.DeleteCertificate" "amazonka-iot-1.6.1-1U0NSVSRVsCEeZIE9W0TkV" False) (C1 (MetaCons "DeleteCertificate'" PrefixI True) (S1 (MetaSel (Just "_dcForceDelete") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_dcCertificateId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Rs DeleteCertificate Source # 
Instance details

Defined in Network.AWS.IoT.DeleteCertificate

Request Lenses

dcForceDelete :: Lens' DeleteCertificate (Maybe Bool) Source #

Forces a certificate request to be deleted.

dcCertificateId :: Lens' DeleteCertificate Text Source #

The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.)

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

Defined in Network.AWS.IoT.DeleteCertificate

Data DeleteCertificateResponse Source # 
Instance details

Defined in Network.AWS.IoT.DeleteCertificate

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

Defined in Network.AWS.IoT.DeleteCertificate

Show DeleteCertificateResponse Source # 
Instance details

Defined in Network.AWS.IoT.DeleteCertificate

Generic DeleteCertificateResponse Source # 
Instance details

Defined in Network.AWS.IoT.DeleteCertificate

Associated Types

type Rep DeleteCertificateResponse :: Type -> Type #

NFData DeleteCertificateResponse Source # 
Instance details

Defined in Network.AWS.IoT.DeleteCertificate

type Rep DeleteCertificateResponse Source # 
Instance details

Defined in Network.AWS.IoT.DeleteCertificate

type Rep DeleteCertificateResponse = D1 (MetaData "DeleteCertificateResponse" "Network.AWS.IoT.DeleteCertificate" "amazonka-iot-1.6.1-1U0NSVSRVsCEeZIE9W0TkV" False) (C1 (MetaCons "DeleteCertificateResponse'" PrefixI False) (U1 :: Type -> Type))