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

Defined in Amazonka.IoT.TransferCertificate

Read TransferCertificate Source # 
Instance details

Defined in Amazonka.IoT.TransferCertificate

Show TransferCertificate Source # 
Instance details

Defined in Amazonka.IoT.TransferCertificate

Generic TransferCertificate Source # 
Instance details

Defined in Amazonka.IoT.TransferCertificate

Associated Types

type Rep TransferCertificate :: Type -> Type #

NFData TransferCertificate Source # 
Instance details

Defined in Amazonka.IoT.TransferCertificate

Methods

rnf :: TransferCertificate -> () #

Hashable TransferCertificate Source # 
Instance details

Defined in Amazonka.IoT.TransferCertificate

ToJSON TransferCertificate Source # 
Instance details

Defined in Amazonka.IoT.TransferCertificate

AWSRequest TransferCertificate Source # 
Instance details

Defined in Amazonka.IoT.TransferCertificate

Associated Types

type AWSResponse 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

type Rep TransferCertificate Source # 
Instance details

Defined in Amazonka.IoT.TransferCertificate

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

Defined in Amazonka.IoT.TransferCertificate

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:

$sel:transferMessage:TransferCertificate', transferCertificate_transferMessage - The transfer message.

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

Defined in Amazonka.IoT.TransferCertificate

Read TransferCertificateResponse Source # 
Instance details

Defined in Amazonka.IoT.TransferCertificate

Show TransferCertificateResponse Source # 
Instance details

Defined in Amazonka.IoT.TransferCertificate

Generic TransferCertificateResponse Source # 
Instance details

Defined in Amazonka.IoT.TransferCertificate

Associated Types

type Rep TransferCertificateResponse :: Type -> Type #

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