amazonka-iot-2.0: Amazon IoT SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.IoT.DeleteCertificate

Description

Deletes the specified certificate.

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

Requires permission to access the DeleteCertificate action.

Synopsis

Creating a Request

data DeleteCertificate Source #

The input for the DeleteCertificate operation.

See: newDeleteCertificate smart constructor.

Constructors

DeleteCertificate' 

Fields

  • forceDelete :: Maybe Bool

    Forces the deletion of a certificate if it is inactive and is not attached to an IoT thing.

  • certificateId :: Text

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

Instances

Instances details
ToHeaders DeleteCertificate Source # 
Instance details

Defined in Amazonka.IoT.DeleteCertificate

ToPath DeleteCertificate Source # 
Instance details

Defined in Amazonka.IoT.DeleteCertificate

ToQuery DeleteCertificate Source # 
Instance details

Defined in Amazonka.IoT.DeleteCertificate

AWSRequest DeleteCertificate Source # 
Instance details

Defined in Amazonka.IoT.DeleteCertificate

Associated Types

type AWSResponse DeleteCertificate #

Generic DeleteCertificate Source # 
Instance details

Defined in Amazonka.IoT.DeleteCertificate

Associated Types

type Rep DeleteCertificate :: Type -> Type #

Read DeleteCertificate Source # 
Instance details

Defined in Amazonka.IoT.DeleteCertificate

Show DeleteCertificate Source # 
Instance details

Defined in Amazonka.IoT.DeleteCertificate

NFData DeleteCertificate Source # 
Instance details

Defined in Amazonka.IoT.DeleteCertificate

Methods

rnf :: DeleteCertificate -> () #

Eq DeleteCertificate Source # 
Instance details

Defined in Amazonka.IoT.DeleteCertificate

Hashable DeleteCertificate Source # 
Instance details

Defined in Amazonka.IoT.DeleteCertificate

type AWSResponse DeleteCertificate Source # 
Instance details

Defined in Amazonka.IoT.DeleteCertificate

type Rep DeleteCertificate Source # 
Instance details

Defined in Amazonka.IoT.DeleteCertificate

type Rep DeleteCertificate = D1 ('MetaData "DeleteCertificate" "Amazonka.IoT.DeleteCertificate" "amazonka-iot-2.0-6w03vgAfmrM1SG22OsNJXL" 'False) (C1 ('MetaCons "DeleteCertificate'" 'PrefixI 'True) (S1 ('MetaSel ('Just "forceDelete") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "certificateId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newDeleteCertificate Source #

Create a value of DeleteCertificate with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:forceDelete:DeleteCertificate', deleteCertificate_forceDelete - Forces the deletion of a certificate if it is inactive and is not attached to an IoT thing.

DeleteCertificate, deleteCertificate_certificateId - The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.)

Request Lenses

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

Forces the deletion of a certificate if it is inactive and is not attached to an IoT thing.

deleteCertificate_certificateId :: Lens' DeleteCertificate Text Source #

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

Destructuring the Response

data DeleteCertificateResponse Source #

See: newDeleteCertificateResponse smart constructor.

Instances

Instances details
Generic DeleteCertificateResponse Source # 
Instance details

Defined in Amazonka.IoT.DeleteCertificate

Associated Types

type Rep DeleteCertificateResponse :: Type -> Type #

Read DeleteCertificateResponse Source # 
Instance details

Defined in Amazonka.IoT.DeleteCertificate

Show DeleteCertificateResponse Source # 
Instance details

Defined in Amazonka.IoT.DeleteCertificate

NFData DeleteCertificateResponse Source # 
Instance details

Defined in Amazonka.IoT.DeleteCertificate

Eq DeleteCertificateResponse Source # 
Instance details

Defined in Amazonka.IoT.DeleteCertificate

type Rep DeleteCertificateResponse Source # 
Instance details

Defined in Amazonka.IoT.DeleteCertificate

type Rep DeleteCertificateResponse = D1 ('MetaData "DeleteCertificateResponse" "Amazonka.IoT.DeleteCertificate" "amazonka-iot-2.0-6w03vgAfmrM1SG22OsNJXL" 'False) (C1 ('MetaCons "DeleteCertificateResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newDeleteCertificateResponse :: DeleteCertificateResponse Source #

Create a value of DeleteCertificateResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.