AWS IoT Device SDK C++ v2: greengrass_ipc/include/aws/greengrass/GreengrassCoreIpcClient.h Source File

AWS IoT Device SDK C++ v2 1.14.0 AWS IoT Device SDK C++ v2

GreengrassCoreIpcClient.h
Go to the documentation of this file.
1#pragma once
7/* This file is generated. */
8
9#include <aws/greengrass/GreengrassCoreIpcModel.h>
10
11using namespace Aws::Eventstreamrpc;
12
13namespace Aws
14{
15 namespace Greengrass
16 {
17 class DefaultConnectionConfig : public ConnectionConfig
18 {
19 public:
20 DefaultConnectionConfig() noexcept;
21 };
22
23 class GreengrassCoreIpcClient
24 {
25 public:
26 GreengrassCoreIpcClient(
27 Aws::Crt::Io::ClientBootstrap &clientBootstrap,
28 Aws::Crt::Allocator *allocator = Aws::Crt::g_allocator) noexcept;
36 std::future<RpcError> Connect(
37 ConnectionLifecycleHandler &lifecycleHandler,
38 const ConnectionConfig &connectionConfig = DefaultConnectionConfig()) noexcept;
39 bool IsConnected() const noexcept { return m_connection.IsOpen(); }
40 void Close() noexcept;
41 SubscribeToIoTCoreOperation NewSubscribeToIoTCore(SubscribeToIoTCoreStreamHandler &) noexcept;
42 ResumeComponentOperation NewResumeComponent() noexcept;
43 PublishToIoTCoreOperation NewPublishToIoTCore() noexcept;
44 SubscribeToConfigurationUpdateOperation NewSubscribeToConfigurationUpdate(
45 SubscribeToConfigurationUpdateStreamHandler &) noexcept;
46 DeleteThingShadowOperation NewDeleteThingShadow() noexcept;
47 DeferComponentUpdateOperation NewDeferComponentUpdate() noexcept;
48 SubscribeToValidateConfigurationUpdatesOperation NewSubscribeToValidateConfigurationUpdates(
49 SubscribeToValidateConfigurationUpdatesStreamHandler &) noexcept;
50 GetConfigurationOperation NewGetConfiguration() noexcept;
51 SubscribeToTopicOperation NewSubscribeToTopic(SubscribeToTopicStreamHandler &) noexcept;
52 GetComponentDetailsOperation NewGetComponentDetails() noexcept;
53 PublishToTopicOperation NewPublishToTopic() noexcept;
54 ListComponentsOperation NewListComponents() noexcept;
55 CreateDebugPasswordOperation NewCreateDebugPassword() noexcept;
56 GetThingShadowOperation NewGetThingShadow() noexcept;
57 SendConfigurationValidityReportOperation NewSendConfigurationValidityReport() noexcept;
58 UpdateThingShadowOperation NewUpdateThingShadow() noexcept;
59 UpdateConfigurationOperation NewUpdateConfiguration() noexcept;
60 ValidateAuthorizationTokenOperation NewValidateAuthorizationToken() noexcept;
61 RestartComponentOperation NewRestartComponent() noexcept;
62 GetLocalDeploymentStatusOperation NewGetLocalDeploymentStatus() noexcept;
63 GetSecretValueOperation NewGetSecretValue() noexcept;
64 UpdateStateOperation NewUpdateState() noexcept;
65 ListNamedShadowsForThingOperation NewListNamedShadowsForThing() noexcept;
66 SubscribeToComponentUpdatesOperation NewSubscribeToComponentUpdates(
67 SubscribeToComponentUpdatesStreamHandler &) noexcept;
68 ListLocalDeploymentsOperation NewListLocalDeployments() noexcept;
69 StopComponentOperation NewStopComponent() noexcept;
70 PauseComponentOperation NewPauseComponent() noexcept;
71 CreateLocalDeploymentOperation NewCreateLocalDeployment() noexcept;
72 ~GreengrassCoreIpcClient() noexcept;
73
74 private:
75 GreengrassCoreIpcServiceModel m_greengrassCoreIpcServiceModel;
76 ClientConnection m_connection;
77 Aws::Crt::Io::ClientBootstrap &m_clientBootstrap;
78 Aws::Crt::Allocator *m_allocator;
79 MessageAmendment m_connectAmendment;
80 };
81 } // namespace Greengrass
82} // namespace Aws
GreengrassCoreIpcModel.h
Aws::Crt::Io::ClientBootstrap
Definition: Bootstrap.h:35
Aws::Eventstreamrpc::ClientConnection
Definition: EventStreamClient.h:562
Aws::Eventstreamrpc::ClientConnection::IsOpen
bool IsOpen() const noexcept
Definition: EventStreamClient.h:590
Aws::Eventstreamrpc::ConnectionConfig
Definition: EventStreamClient.h:150
Aws::Eventstreamrpc::ConnectionLifecycleHandler
Definition: EventStreamClient.h:227
Aws::Eventstreamrpc::MessageAmendment
Definition: EventStreamClient.h:117
Aws::Greengrass::CreateDebugPasswordOperation
Definition: GreengrassCoreIpcModel.h:3553
Aws::Greengrass::CreateLocalDeploymentOperation
Definition: GreengrassCoreIpcModel.h:4575
Aws::Greengrass::DefaultConnectionConfig
Definition: GreengrassCoreIpcClient.h:18
Aws::Greengrass::DefaultConnectionConfig::DefaultConnectionConfig
DefaultConnectionConfig() noexcept
Definition: DefaultConnectionConfig.cpp:13
Aws::Greengrass::DeferComponentUpdateOperation
Definition: GreengrassCoreIpcModel.h:2991
Aws::Greengrass::DeleteThingShadowOperation
Definition: GreengrassCoreIpcModel.h:2926
Aws::Greengrass::GetComponentDetailsOperation
Definition: GreengrassCoreIpcModel.h:3364
Aws::Greengrass::GetConfigurationOperation
Definition: GreengrassCoreIpcModel.h:3170
Aws::Greengrass::GetLocalDeploymentStatusOperation
Definition: GreengrassCoreIpcModel.h:4003
Aws::Greengrass::GetSecretValueOperation
Definition: GreengrassCoreIpcModel.h:4066
Aws::Greengrass::GetThingShadowOperation
Definition: GreengrassCoreIpcModel.h:3616
Aws::Greengrass::GreengrassCoreIpcClient
Definition: GreengrassCoreIpcClient.h:24
Aws::Greengrass::GreengrassCoreIpcClient::Connect
std::future< RpcError > Connect(ConnectionLifecycleHandler &lifecycleHandler, const ConnectionConfig &connectionConfig=DefaultConnectionConfig()) noexcept
Definition: GreengrassCoreIpcClient.cpp:39
Aws::Greengrass::GreengrassCoreIpcClient::NewDeleteThingShadow
DeleteThingShadowOperation NewDeleteThingShadow() noexcept
Definition: GreengrassCoreIpcClient.cpp:78
Aws::Greengrass::GreengrassCoreIpcClient::NewListComponents
ListComponentsOperation NewListComponents() noexcept
Definition: GreengrassCoreIpcClient.cpp:122
Aws::Greengrass::GreengrassCoreIpcClient::NewPublishToTopic
PublishToTopicOperation NewPublishToTopic() noexcept
Definition: GreengrassCoreIpcClient.cpp:117
Aws::Greengrass::GreengrassCoreIpcClient::NewCreateDebugPassword
CreateDebugPasswordOperation NewCreateDebugPassword() noexcept
Definition: GreengrassCoreIpcClient.cpp:127
Aws::Greengrass::GreengrassCoreIpcClient::NewSubscribeToIoTCore
SubscribeToIoTCoreOperation NewSubscribeToIoTCore(SubscribeToIoTCoreStreamHandler &) noexcept
Definition: GreengrassCoreIpcClient.cpp:50
Aws::Greengrass::GreengrassCoreIpcClient::NewSendConfigurationValidityReport
SendConfigurationValidityReportOperation NewSendConfigurationValidityReport() noexcept
Definition: GreengrassCoreIpcClient.cpp:137
Aws::Greengrass::GreengrassCoreIpcClient::NewListNamedShadowsForThing
ListNamedShadowsForThingOperation NewListNamedShadowsForThing() noexcept
Definition: GreengrassCoreIpcClient.cpp:181
Aws::Greengrass::GreengrassCoreIpcClient::NewStopComponent
StopComponentOperation NewStopComponent() noexcept
Definition: GreengrassCoreIpcClient.cpp:200
Aws::Greengrass::GreengrassCoreIpcClient::NewGetThingShadow
GetThingShadowOperation NewGetThingShadow() noexcept
Definition: GreengrassCoreIpcClient.cpp:132
Aws::Greengrass::GreengrassCoreIpcClient::NewPauseComponent
PauseComponentOperation NewPauseComponent() noexcept
Definition: GreengrassCoreIpcClient.cpp:205
Aws::Greengrass::GreengrassCoreIpcClient::NewDeferComponentUpdate
DeferComponentUpdateOperation NewDeferComponentUpdate() noexcept
Definition: GreengrassCoreIpcClient.cpp:83
Aws::Greengrass::GreengrassCoreIpcClient::NewUpdateThingShadow
UpdateThingShadowOperation NewUpdateThingShadow() noexcept
Definition: GreengrassCoreIpcClient.cpp:144
Aws::Greengrass::GreengrassCoreIpcClient::NewUpdateState
UpdateStateOperation NewUpdateState() noexcept
Definition: GreengrassCoreIpcClient.cpp:176
Aws::Greengrass::GreengrassCoreIpcClient::NewSubscribeToValidateConfigurationUpdates
SubscribeToValidateConfigurationUpdatesOperation NewSubscribeToValidateConfigurationUpdates(SubscribeToValidateConfigurationUpdatesStreamHandler &) noexcept
Definition: GreengrassCoreIpcClient.cpp:89
Aws::Greengrass::GreengrassCoreIpcClient::NewSubscribeToConfigurationUpdate
SubscribeToConfigurationUpdateOperation NewSubscribeToConfigurationUpdate(SubscribeToConfigurationUpdateStreamHandler &) noexcept
Definition: GreengrassCoreIpcClient.cpp:69
Aws::Greengrass::GreengrassCoreIpcClient::NewGetComponentDetails
GetComponentDetailsOperation NewGetComponentDetails() noexcept
Definition: GreengrassCoreIpcClient.cpp:112
Aws::Greengrass::GreengrassCoreIpcClient::NewResumeComponent
ResumeComponentOperation NewResumeComponent() noexcept
Definition: GreengrassCoreIpcClient.cpp:59
Aws::Greengrass::GreengrassCoreIpcClient::IsConnected
bool IsConnected() const noexcept
Definition: GreengrassCoreIpcClient.h:39
Aws::Greengrass::GreengrassCoreIpcClient::NewRestartComponent
RestartComponentOperation NewRestartComponent() noexcept
Definition: GreengrassCoreIpcClient.cpp:161
Aws::Greengrass::GreengrassCoreIpcClient::NewGetSecretValue
GetSecretValueOperation NewGetSecretValue() noexcept
Definition: GreengrassCoreIpcClient.cpp:171
Aws::Greengrass::GreengrassCoreIpcClient::NewPublishToIoTCore
PublishToIoTCoreOperation NewPublishToIoTCore() noexcept
Definition: GreengrassCoreIpcClient.cpp:64
Aws::Greengrass::GreengrassCoreIpcClient::GreengrassCoreIpcClient
GreengrassCoreIpcClient(Aws::Crt::Io::ClientBootstrap &clientBootstrap, Aws::Crt::Allocator *allocator=Aws::Crt::g_allocator) noexcept
Definition: GreengrassCoreIpcClient.cpp:8
Aws::Greengrass::GreengrassCoreIpcClient::NewValidateAuthorizationToken
ValidateAuthorizationTokenOperation NewValidateAuthorizationToken() noexcept
Definition: GreengrassCoreIpcClient.cpp:154
Aws::Greengrass::GreengrassCoreIpcClient::NewGetConfiguration
GetConfigurationOperation NewGetConfiguration() noexcept
Definition: GreengrassCoreIpcClient.cpp:98
Aws::Greengrass::GreengrassCoreIpcClient::NewCreateLocalDeployment
CreateLocalDeploymentOperation NewCreateLocalDeployment() noexcept
Definition: GreengrassCoreIpcClient.cpp:210
Aws::Greengrass::GreengrassCoreIpcClient::NewSubscribeToComponentUpdates
SubscribeToComponentUpdatesOperation NewSubscribeToComponentUpdates(SubscribeToComponentUpdatesStreamHandler &) noexcept
Definition: GreengrassCoreIpcClient.cpp:186
Aws::Greengrass::GreengrassCoreIpcClient::NewListLocalDeployments
ListLocalDeploymentsOperation NewListLocalDeployments() noexcept
Definition: GreengrassCoreIpcClient.cpp:195
Aws::Greengrass::GreengrassCoreIpcClient::NewUpdateConfiguration
UpdateConfigurationOperation NewUpdateConfiguration() noexcept
Definition: GreengrassCoreIpcClient.cpp:149
Aws::Greengrass::GreengrassCoreIpcClient::Close
void Close() noexcept
Definition: GreengrassCoreIpcClient.cpp:46
Aws::Greengrass::GreengrassCoreIpcClient::NewSubscribeToTopic
SubscribeToTopicOperation NewSubscribeToTopic(SubscribeToTopicStreamHandler &) noexcept
Definition: GreengrassCoreIpcClient.cpp:103
Aws::Greengrass::GreengrassCoreIpcClient::NewGetLocalDeploymentStatus
GetLocalDeploymentStatusOperation NewGetLocalDeploymentStatus() noexcept
Definition: GreengrassCoreIpcClient.cpp:166
Aws::Greengrass::GreengrassCoreIpcServiceModel
Definition: GreengrassCoreIpcModel.h:4600
Aws::Greengrass::ListComponentsOperation
Definition: GreengrassCoreIpcModel.h:3490
Aws::Greengrass::ListLocalDeploymentsOperation
Definition: GreengrassCoreIpcModel.h:4384
Aws::Greengrass::ListNamedShadowsForThingOperation
Definition: GreengrassCoreIpcModel.h:4195
Aws::Greengrass::PauseComponentOperation
Definition: GreengrassCoreIpcModel.h:4510
Aws::Greengrass::PublishToIoTCoreOperation
Definition: GreengrassCoreIpcModel.h:2739
Aws::Greengrass::PublishToTopicOperation
Definition: GreengrassCoreIpcModel.h:3427
Aws::Greengrass::RestartComponentOperation
Definition: GreengrassCoreIpcModel.h:3937
Aws::Greengrass::ResumeComponentOperation
Definition: GreengrassCoreIpcModel.h:2676
Aws::Greengrass::SendConfigurationValidityReportOperation
Definition: GreengrassCoreIpcModel.h:3682
Aws::Greengrass::StopComponentOperation
Definition: GreengrassCoreIpcModel.h:4447
Aws::Greengrass::SubscribeToComponentUpdatesOperation
Definition: GreengrassCoreIpcModel.h:4318
Aws::Greengrass::SubscribeToComponentUpdatesStreamHandler
Definition: GreengrassCoreIpcModel.h:4220
Aws::Greengrass::SubscribeToConfigurationUpdateOperation
Definition: GreengrassCoreIpcModel.h:2862
Aws::Greengrass::SubscribeToConfigurationUpdateStreamHandler
Definition: GreengrassCoreIpcModel.h:2764
Aws::Greengrass::SubscribeToIoTCoreOperation
Definition: GreengrassCoreIpcModel.h:2612
Aws::Greengrass::SubscribeToIoTCoreStreamHandler
Definition: GreengrassCoreIpcModel.h:2517
Aws::Greengrass::SubscribeToTopicOperation
Definition: GreengrassCoreIpcModel.h:3300
Aws::Greengrass::SubscribeToTopicStreamHandler
Definition: GreengrassCoreIpcModel.h:3195
Aws::Greengrass::SubscribeToValidateConfigurationUpdatesOperation
Definition: GreengrassCoreIpcModel.h:3106
Aws::Greengrass::SubscribeToValidateConfigurationUpdatesStreamHandler
Definition: GreengrassCoreIpcModel.h:3016
Aws::Greengrass::UpdateConfigurationOperation
Definition: GreengrassCoreIpcModel.h:3808
Aws::Greengrass::UpdateStateOperation
Definition: GreengrassCoreIpcModel.h:4129
Aws::Greengrass::UpdateThingShadowOperation
Definition: GreengrassCoreIpcModel.h:3745
Aws::Greengrass::ValidateAuthorizationTokenOperation
Definition: GreengrassCoreIpcModel.h:3874
Aws::Crt::Allocator
aws_allocator Allocator
Definition: StlAllocator.h:17
Aws::Crt::g_allocator
AWS_CRT_CPP_API Allocator * g_allocator
Definition: Api.cpp:21
Aws::Eventstreamrpc
Definition: EventStreamClient.h:38
Aws
Definition: Api.h:17