IoT / Client / get_registration_code

get_registration_code#

IoT.Client.get_registration_code()#

Gets a registration code used to register a CA certificate with IoT.

Requires permission to access the GetRegistrationCode action.

See also: AWS API Documentation

Request Syntax

response = client.get_registration_code()
Return type:

dict

Returns:

Response Syntax

{
    'registrationCode': 'string'
}

Response Structure

  • (dict) –

    The output from the GetRegistrationCode operation.

    • registrationCode (string) –

      The CA certificate registration code.

Exceptions

  • IoT.Client.exceptions.ThrottlingException

  • IoT.Client.exceptions.UnauthorizedException

  • IoT.Client.exceptions.ServiceUnavailableException

  • IoT.Client.exceptions.InternalFailureException

  • IoT.Client.exceptions.InvalidRequestException