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

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
Eq DeleteCertificate Source # 
Instance details

Defined in Amazonka.IoT.DeleteCertificate

Read DeleteCertificate Source # 
Instance details

Defined in Amazonka.IoT.DeleteCertificate

Show DeleteCertificate Source # 
Instance details

Defined in Amazonka.IoT.DeleteCertificate

Generic DeleteCertificate Source # 
Instance details

Defined in Amazonka.IoT.DeleteCertificate

Associated Types

type Rep DeleteCertificate :: Type -> Type #

NFData DeleteCertificate Source # 
Instance details

Defined in Amazonka.IoT.DeleteCertificate

Methods

rnf :: DeleteCertificate -> () #

Hashable DeleteCertificate Source # 
Instance details

Defined in Amazonka.IoT.DeleteCertificate

AWSRequest DeleteCertificate Source # 
Instance details

Defined in Amazonka.IoT.DeleteCertificate

Associated Types

type AWSResponse DeleteCertificate #

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

type Rep DeleteCertificate Source # 
Instance details

Defined in Amazonka.IoT.DeleteCertificate

type Rep DeleteCertificate = D1 ('MetaData "DeleteCertificate" "Amazonka.IoT.DeleteCertificate" "libZSservicesZSamazonka-iotZSamazonka-iot" '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)))
type AWSResponse DeleteCertificate Source # 
Instance details

Defined in Amazonka.IoT.DeleteCertificate

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.

$sel:certificateId: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
Eq DeleteCertificateResponse Source # 
Instance details

Defined in Amazonka.IoT.DeleteCertificate

Read DeleteCertificateResponse Source # 
Instance details

Defined in Amazonka.IoT.DeleteCertificate

Show DeleteCertificateResponse Source # 
Instance details

Defined in Amazonka.IoT.DeleteCertificate

Generic DeleteCertificateResponse Source # 
Instance details

Defined in Amazonka.IoT.DeleteCertificate

Associated Types

type Rep DeleteCertificateResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-iotZSamazonka-iot" '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.