AWS IoT Device SDK C++ v2  1.36.0
AWS IoT Device SDK C++ v2
Classes | Typedefs | Functions
Aws::Iotidentity Namespace Reference

Classes

class  ClientV2
 
class  CreateCertificateFromCsrRequest
 
class  CreateCertificateFromCsrResponse
 
class  CreateCertificateFromCsrSubscriptionRequest
 
class  CreateKeysAndCertificateRequest
 
class  CreateKeysAndCertificateResponse
 
class  CreateKeysAndCertificateSubscriptionRequest
 
class  ErrorResponse
 
class  IClientV2
 
class  IotIdentityClient
 
class  RegisterThingRequest
 
class  RegisterThingResponse
 
class  RegisterThingSubscriptionRequest
 
class  ServiceErrorV2
 
class  V2ErrorResponse
 

Typedefs

using OnSubscribeComplete = std::function< void(int ioErr)>
 
using OnPublishComplete = std::function< void(int ioErr)>
 
using OnSubscribeToCreateCertificateFromCsrAcceptedResponse = std::function< void(Aws::Iotidentity::CreateCertificateFromCsrResponse *, int ioErr)>
 
using OnSubscribeToCreateCertificateFromCsrRejectedResponse = std::function< void(Aws::Iotidentity::ErrorResponse *, int ioErr)>
 
using OnSubscribeToCreateKeysAndCertificateAcceptedResponse = std::function< void(Aws::Iotidentity::CreateKeysAndCertificateResponse *, int ioErr)>
 
using OnSubscribeToCreateKeysAndCertificateRejectedResponse = std::function< void(Aws::Iotidentity::ErrorResponse *, int ioErr)>
 
using OnSubscribeToRegisterThingAcceptedResponse = std::function< void(Aws::Iotidentity::RegisterThingResponse *, int ioErr)>
 
using OnSubscribeToRegisterThingRejectedResponse = std::function< void(Aws::Iotidentity::ErrorResponse *, int ioErr)>
 
using CreateCertificateFromCsrResult = Aws::Iot::RequestResponse::Result< CreateCertificateFromCsrResponse, ServiceErrorV2< V2ErrorResponse > >
 
using CreateCertificateFromCsrResultHandler = std::function< void(CreateCertificateFromCsrResult &&)>
 
using CreateKeysAndCertificateResult = Aws::Iot::RequestResponse::Result< CreateKeysAndCertificateResponse, ServiceErrorV2< V2ErrorResponse > >
 
using CreateKeysAndCertificateResultHandler = std::function< void(CreateKeysAndCertificateResult &&)>
 
using RegisterThingResult = Aws::Iot::RequestResponse::Result< RegisterThingResponse, ServiceErrorV2< V2ErrorResponse > >
 
using RegisterThingResultHandler = std::function< void(RegisterThingResult &&)>
 

Functions

AWS_IOTIDENTITY_API std::shared_ptr< IClientV2NewClientFrom5 (const Aws::Crt::Mqtt5::Mqtt5Client &protocolClient, const Aws::Iot::RequestResponse::RequestResponseClientOptions &options, Aws::Crt::Allocator *allocator=Aws::Crt::ApiAllocator())
 
AWS_IOTIDENTITY_API std::shared_ptr< IClientV2NewClientFrom311 (const Aws::Crt::Mqtt::MqttConnection &protocolClient, const Aws::Iot::RequestResponse::RequestResponseClientOptions &options, Aws::Crt::Allocator *allocator=Aws::Crt::ApiAllocator())
 
template<typename R , typename E >
static void s_applyUnmodeledErrorToHandler (const std::function< void(R &&)> &handler, int errorCode)
 
template<typename R , typename E >
static void s_applyModeledErrorToHandler (const std::function< void(R &&)> &handler, E &&modeledError)
 
static void s_CreateCertificateFromCsrResponseHandler (Aws::Iot::RequestResponse::UnmodeledResult &&result, const CreateCertificateFromCsrResultHandler &handler, const Aws::Crt::String &successPathTopic, const Aws::Crt::String &failurePathTopic)
 
static void s_CreateKeysAndCertificateResponseHandler (Aws::Iot::RequestResponse::UnmodeledResult &&result, const CreateKeysAndCertificateResultHandler &handler, const Aws::Crt::String &successPathTopic, const Aws::Crt::String &failurePathTopic)
 
static void s_RegisterThingResponseHandler (Aws::Iot::RequestResponse::UnmodeledResult &&result, const RegisterThingResultHandler &handler, const Aws::Crt::String &successPathTopic, const Aws::Crt::String &failurePathTopic)
 

Typedef Documentation

◆ CreateCertificateFromCsrResult

◆ CreateCertificateFromCsrResultHandler

◆ CreateKeysAndCertificateResult

◆ CreateKeysAndCertificateResultHandler

◆ OnPublishComplete

using Aws::Iotidentity::OnPublishComplete = typedef std::function<void(int ioErr)>

◆ OnSubscribeComplete

using Aws::Iotidentity::OnSubscribeComplete = typedef std::function<void(int ioErr)>

◆ OnSubscribeToCreateCertificateFromCsrAcceptedResponse

◆ OnSubscribeToCreateCertificateFromCsrRejectedResponse

◆ OnSubscribeToCreateKeysAndCertificateAcceptedResponse

◆ OnSubscribeToCreateKeysAndCertificateRejectedResponse

◆ OnSubscribeToRegisterThingAcceptedResponse

◆ OnSubscribeToRegisterThingRejectedResponse

◆ RegisterThingResult

◆ RegisterThingResultHandler

using Aws::Iotidentity::RegisterThingResultHandler = typedef std::function<void(RegisterThingResult &&)>

Function Documentation

◆ NewClientFrom311()

std::shared_ptr< IClientV2 > Aws::Iotidentity::NewClientFrom311 ( const Aws::Crt::Mqtt::MqttConnection protocolClient,
const Aws::Iot::RequestResponse::RequestResponseClientOptions options,
Aws::Crt::Allocator allocator = Aws::Crt::ApiAllocator() 
)

Creates a new service client that uses an SDK MQTT311 client for transport.

Parameters
protocolClientMQTT client to use as transport
optionsrequest-response MQTT client configuration options
allocatormemory allocator to use for all client functionality
Returns
a new service client

◆ NewClientFrom5()

std::shared_ptr< IClientV2 > Aws::Iotidentity::NewClientFrom5 ( const Aws::Crt::Mqtt5::Mqtt5Client protocolClient,
const Aws::Iot::RequestResponse::RequestResponseClientOptions options,
Aws::Crt::Allocator allocator = Aws::Crt::ApiAllocator() 
)

Creates a new service client that uses an SDK MQTT5 client for transport.

Parameters
protocolClientMQTT client to use as transport
optionsrequest-response MQTT client configuration options
allocatormemory allocator to use for all client functionality
Returns
a new service client

◆ s_applyModeledErrorToHandler()

template<typename R , typename E >
static void Aws::Iotidentity::s_applyModeledErrorToHandler ( const std::function< void(R &&)> &  handler,
E &&  modeledError 
)
static

◆ s_applyUnmodeledErrorToHandler()

template<typename R , typename E >
static void Aws::Iotidentity::s_applyUnmodeledErrorToHandler ( const std::function< void(R &&)> &  handler,
int  errorCode 
)
static

◆ s_CreateCertificateFromCsrResponseHandler()

static void Aws::Iotidentity::s_CreateCertificateFromCsrResponseHandler ( Aws::Iot::RequestResponse::UnmodeledResult &&  result,
const CreateCertificateFromCsrResultHandler handler,
const Aws::Crt::String successPathTopic,
const Aws::Crt::String failurePathTopic 
)
static

◆ s_CreateKeysAndCertificateResponseHandler()

static void Aws::Iotidentity::s_CreateKeysAndCertificateResponseHandler ( Aws::Iot::RequestResponse::UnmodeledResult &&  result,
const CreateKeysAndCertificateResultHandler handler,
const Aws::Crt::String successPathTopic,
const Aws::Crt::String failurePathTopic 
)
static

◆ s_RegisterThingResponseHandler()

static void Aws::Iotidentity::s_RegisterThingResponseHandler ( Aws::Iot::RequestResponse::UnmodeledResult &&  result,
const RegisterThingResultHandler handler,
const Aws::Crt::String successPathTopic,
const Aws::Crt::String failurePathTopic 
)
static