getRegistrationCode method

Future<GetRegistrationCodeResponse> getRegistrationCode()

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

May throw ThrottlingException. May throw UnauthorizedException. May throw ServiceUnavailableException. May throw InternalFailureException. May throw InvalidRequestException.

Implementation

Future<GetRegistrationCodeResponse> getRegistrationCode() async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/registrationcode',
    exceptionFnMap: _exceptionFns,
  );
  return GetRegistrationCodeResponse.fromJson(response);
}