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.TransferCertificate

Description

Transfers the specified certificate to the specified Amazon Web Services account.

Requires permission to access the TransferCertificate action.

You can cancel the transfer until it is acknowledged by the recipient.

No notification is sent to the transfer destination's account. It is up to the caller to notify the transfer target.

The certificate being transferred must not be in the ACTIVE state. You can use the UpdateCertificate action to deactivate it.

The certificate must not have any policies attached to it. You can use the DetachPolicy action to detach them.

Synopsis

Creating a Request

data TransferCertificate Source #

The input for the TransferCertificate operation.

See: newTransferCertificate smart constructor.

Constructors

TransferCertificate' 

Fields

Instances

Instances details
ToJSON TransferCertificate Source # 
Instance details

Defined in Amazonka.IoT.TransferCertificate

ToHeaders TransferCertificate Source # 
Instance details

Defined in Amazonka.IoT.TransferCertificate

ToPath TransferCertificate Source # 
Instance details

Defined in Amazonka.IoT.TransferCertificate

ToQuery TransferCertificate Source # 
Instance details

Defined in Amazonka.IoT.TransferCertificate

AWSRequest TransferCertificate Source # 
Instance details

Defined in Amazonka.IoT.TransferCertificate

Associated Types

type AWSResponse TransferCertificate #

Generic TransferCertificate Source # 
Instance details

Defined in Amazonka.IoT.TransferCertificate

Associated Types

type Rep TransferCertificate :: Type -> Type #

Read TransferCertificate Source # 
Instance details

Defined in Amazonka.IoT.TransferCertificate

Show TransferCertificate Source # 
Instance details

Defined in Amazonka.IoT.TransferCertificate

NFData TransferCertificate Source # 
Instance details

Defined in Amazonka.IoT.TransferCertificate

Methods

rnf :: TransferCertificate -> () #

Eq TransferCertificate Source # 
Instance details

Defined in Amazonka.IoT.TransferCertificate

Hashable TransferCertificate Source # 
Instance details

Defined in Amazonka.IoT.TransferCertificate

type AWSResponse TransferCertificate Source # 
Instance details

Defined in Amazonka.IoT.TransferCertificate

type Rep TransferCertificate Source # 
Instance details

Defined in Amazonka.IoT.TransferCertificate

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

newTransferCertificate Source #

Create a value of TransferCertificate 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:

TransferCertificate, transferCertificate_transferMessage - The transfer message.

TransferCertificate, transferCertificate_certificateId - The ID of the certificate. (The last part of the certificate ARN contains the certificate ID.)

$sel:targetAwsAccount:TransferCertificate', transferCertificate_targetAwsAccount - The Amazon Web Services account.

Request Lenses

transferCertificate_certificateId :: Lens' TransferCertificate Text Source #

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

Destructuring the Response

data TransferCertificateResponse Source #

The output from the TransferCertificate operation.

See: newTransferCertificateResponse smart constructor.

Constructors

TransferCertificateResponse' 

Fields

Instances

Instances details
Generic TransferCertificateResponse Source # 
Instance details

Defined in Amazonka.IoT.TransferCertificate

Associated Types

type Rep TransferCertificateResponse :: Type -> Type #

Read TransferCertificateResponse Source # 
Instance details

Defined in Amazonka.IoT.TransferCertificate

Show TransferCertificateResponse Source # 
Instance details

Defined in Amazonka.IoT.TransferCertificate

NFData TransferCertificateResponse Source # 
Instance details

Defined in Amazonka.IoT.TransferCertificate

Eq TransferCertificateResponse Source # 
Instance details

Defined in Amazonka.IoT.TransferCertificate

type Rep TransferCertificateResponse Source # 
Instance details

Defined in Amazonka.IoT.TransferCertificate

type Rep TransferCertificateResponse = D1 ('MetaData "TransferCertificateResponse" "Amazonka.IoT.TransferCertificate" "amazonka-iot-2.0-6w03vgAfmrM1SG22OsNJXL" 'False) (C1 ('MetaCons "TransferCertificateResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "transferredCertificateArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newTransferCertificateResponse Source #

Create a value of TransferCertificateResponse 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:transferredCertificateArn:TransferCertificateResponse', transferCertificateResponse_transferredCertificateArn - The ARN of the certificate.

$sel:httpStatus:TransferCertificateResponse', transferCertificateResponse_httpStatus - The response's http status code.

Response Lenses