Menu
AWS IoT
Developer Guide

RejectCertificateTransfer

RejectCertificateTransfer

Rejects a pending certificate transfer. After AWS IoT rejects a certificate transfer, the certificate status changes from PENDING_TRANSFER to INACTIVE.

To check for pending certificate transfers, call ListCertificates to enumerate your certificates.

This operation can only be called by the transfer destination. After it is called, the certificate will be returned to the source's account in the INACTIVE state.

https

Request syntax:

PATCH /reject-certificate-transfer/certificateId Content-type: application/json { "rejectReason": "string" }

URI Request Parameters:

Name

Type

Req?

Description

certificateId

CertificateId

yes

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

Request Body Parameters:

Name

Type

Req?

Description

rejectReason

Message

no

The reason the certificate transfer was rejected.

Errors:

ResourceNotFoundException

The specified resource does not exist.

HTTP response code: 404

TransferAlreadyCompletedException

You can't revert the certificate transfer because the transfer is already complete.

HTTP response code: 410

InvalidRequestException

The contents of the request were invalid. For example, this code is returned when an UpdateJobExecution request contains invalid status details. The message contains details about the error.

HTTP response code: 400

ThrottlingException

The rate exceeds the limit.

HTTP response code: 429

UnauthorizedException

You are not authorized to perform this operation.

HTTP response code: 401

ServiceUnavailableException

The service is temporarily unavailable.

HTTP response code: 503

InternalFailureException

An unexpected error has occurred.

HTTP response code: 500

cli

Synopsis:

aws iot reject-certificate-transfer \ --certificate-id <value> \ [--reject-reason <value>] \ [--cli-input-json <value>] \ [--generate-cli-skeleton]

cli-input-json format:

{ "certificateId": "string", "rejectReason": "string" }

cli-input-json fields:

Name

Type

Description

certificateId

string

length- max:64 min:64

pattern: (0x)?[a-fA-F0-9]+

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

rejectReason

string

length- max:128

The reason the certificate transfer was rejected.

Output:

None

Errors:

ResourceNotFoundException

The specified resource does not exist.

TransferAlreadyCompletedException

You can't revert the certificate transfer because the transfer is already complete.

InvalidRequestException

The contents of the request were invalid. For example, this code is returned when an UpdateJobExecution request contains invalid status details. The message contains details about the error.

ThrottlingException

The rate exceeds the limit.

UnauthorizedException

You are not authorized to perform this operation.

ServiceUnavailableException

The service is temporarily unavailable.

InternalFailureException

An unexpected error has occurred.