AWS IoT Device SDK C++ v2  1.34.0
AWS IoT Device SDK C++ v2
GreengrassCoreIpcClient.h
Go to the documentation of this file.
1 #pragma once
2 
7 /* This file is generated. */
8 
10 
11 #include <memory>
12 
13 using namespace Aws::Eventstreamrpc;
14 
15 namespace Aws
16 {
17  namespace Greengrass
18  {
20  {
21  public:
22  DefaultConnectionConfig() noexcept;
23  };
24 
26  {
27  public:
29  Aws::Crt::Io::ClientBootstrap &clientBootstrap,
30  Aws::Crt::Allocator *allocator = Aws::Crt::g_allocator) noexcept;
38  std::future<RpcError> Connect(
39  ConnectionLifecycleHandler &lifecycleHandler,
40  const ConnectionConfig &connectionConfig = DefaultConnectionConfig()) noexcept;
41  bool IsConnected() const noexcept { return m_connection.IsOpen(); }
42  void Close() noexcept;
43  void WithLaunchMode(std::launch mode) noexcept;
44 
48  std::shared_ptr<SubscribeToIoTCoreOperation> NewSubscribeToIoTCore(
49  std::shared_ptr<SubscribeToIoTCoreStreamHandler> streamHandler) noexcept;
50 
54  std::shared_ptr<ResumeComponentOperation> NewResumeComponent() noexcept;
55 
59  std::shared_ptr<PublishToIoTCoreOperation> NewPublishToIoTCore() noexcept;
60 
64  std::shared_ptr<SubscribeToConfigurationUpdateOperation> NewSubscribeToConfigurationUpdate(
65  std::shared_ptr<SubscribeToConfigurationUpdateStreamHandler> streamHandler) noexcept;
66 
70  std::shared_ptr<DeleteThingShadowOperation> NewDeleteThingShadow() noexcept;
71 
76  std::shared_ptr<PutComponentMetricOperation> NewPutComponentMetric() noexcept;
77 
81  std::shared_ptr<DeferComponentUpdateOperation> NewDeferComponentUpdate() noexcept;
82 
90  NewSubscribeToValidateConfigurationUpdates(
91  std::shared_ptr<SubscribeToValidateConfigurationUpdatesStreamHandler> streamHandler) noexcept;
92 
96  std::shared_ptr<GetConfigurationOperation> NewGetConfiguration() noexcept;
97 
101  std::shared_ptr<SubscribeToTopicOperation> NewSubscribeToTopic(
102  std::shared_ptr<SubscribeToTopicStreamHandler> streamHandler) noexcept;
103 
107  std::shared_ptr<GetComponentDetailsOperation> NewGetComponentDetails() noexcept;
108 
112  std::shared_ptr<GetClientDeviceAuthTokenOperation> NewGetClientDeviceAuthToken() noexcept;
113 
117  std::shared_ptr<PublishToTopicOperation> NewPublishToTopic() noexcept;
118 
122  std::shared_ptr<SubscribeToCertificateUpdatesOperation> NewSubscribeToCertificateUpdates(
123  std::shared_ptr<SubscribeToCertificateUpdatesStreamHandler> streamHandler) noexcept;
124 
128  std::shared_ptr<VerifyClientDeviceIdentityOperation> NewVerifyClientDeviceIdentity() noexcept;
129 
133  std::shared_ptr<AuthorizeClientDeviceActionOperation> NewAuthorizeClientDeviceAction() noexcept;
134 
138  std::shared_ptr<ListComponentsOperation> NewListComponents() noexcept;
139 
143  std::shared_ptr<CreateDebugPasswordOperation> NewCreateDebugPassword() noexcept;
144 
148  std::shared_ptr<GetThingShadowOperation> NewGetThingShadow() noexcept;
149 
156  std::shared_ptr<SendConfigurationValidityReportOperation> NewSendConfigurationValidityReport() noexcept;
157 
162  std::shared_ptr<UpdateThingShadowOperation> NewUpdateThingShadow() noexcept;
163 
169  std::shared_ptr<UpdateConfigurationOperation> NewUpdateConfiguration() noexcept;
170 
176  std::shared_ptr<ValidateAuthorizationTokenOperation> NewValidateAuthorizationToken() noexcept;
177 
181  std::shared_ptr<RestartComponentOperation> NewRestartComponent() noexcept;
182 
186  std::shared_ptr<GetLocalDeploymentStatusOperation> NewGetLocalDeploymentStatus() noexcept;
187 
191  std::shared_ptr<GetSecretValueOperation> NewGetSecretValue() noexcept;
192 
196  std::shared_ptr<UpdateStateOperation> NewUpdateState() noexcept;
197 
201  std::shared_ptr<CancelLocalDeploymentOperation> NewCancelLocalDeployment() noexcept;
202 
206  std::shared_ptr<ListNamedShadowsForThingOperation> NewListNamedShadowsForThing() noexcept;
207 
211  std::shared_ptr<SubscribeToComponentUpdatesOperation> NewSubscribeToComponentUpdates(
212  std::shared_ptr<SubscribeToComponentUpdatesStreamHandler> streamHandler) noexcept;
213 
217  std::shared_ptr<ListLocalDeploymentsOperation> NewListLocalDeployments() noexcept;
218 
222  std::shared_ptr<StopComponentOperation> NewStopComponent() noexcept;
223 
227  std::shared_ptr<PauseComponentOperation> NewPauseComponent() noexcept;
228 
232  std::shared_ptr<CreateLocalDeploymentOperation> NewCreateLocalDeployment() noexcept;
233 
234  ~GreengrassCoreIpcClient() noexcept;
235 
236  private:
237  GreengrassCoreIpcServiceModel m_greengrassCoreIpcServiceModel;
238  ClientConnection m_connection;
239  Aws::Crt::Io::ClientBootstrap &m_clientBootstrap;
240  Aws::Crt::Allocator *m_allocator;
241  MessageAmendment m_connectAmendment;
242  std::launch m_asyncLaunchMode;
243  };
244  } // namespace Greengrass
245 } // namespace Aws
Aws::Greengrass::SubscribeToCertificateUpdatesOperation
Definition: GreengrassCoreIpcModel.h:5558
Aws::Greengrass::GetComponentDetailsOperation
Definition: GreengrassCoreIpcModel.h:5296
Aws::Eventstreamrpc::ConnectionLifecycleHandler
Definition: EventStreamClient.h:212
Aws::Greengrass::AuthorizeClientDeviceActionOperation
Definition: GreengrassCoreIpcModel.h:5691
Aws::Greengrass::GreengrassCoreIpcServiceModel
Definition: GreengrassCoreIpcModel.h:6929
Aws::Greengrass::ListLocalDeploymentsOperation
Definition: GreengrassCoreIpcModel.h:6713
Aws::Greengrass::SubscribeToValidateConfigurationUpdatesOperation
Definition: GreengrassCoreIpcModel.h:5038
GreengrassCoreIpcModel.h
Aws::Greengrass::SubscribeToConfigurationUpdateOperation
Definition: GreengrassCoreIpcModel.h:4729
Aws::Greengrass::SubscribeToComponentUpdatesStreamHandler
Definition: GreengrassCoreIpcModel.h:6549
Aws::Greengrass::RestartComponentOperation
Definition: GreengrassCoreIpcModel.h:6201
Aws::Greengrass::ListComponentsOperation
Definition: GreengrassCoreIpcModel.h:5754
Aws::Greengrass::GetThingShadowOperation
Definition: GreengrassCoreIpcModel.h:5880
Aws::Greengrass::VerifyClientDeviceIdentityOperation
Definition: GreengrassCoreIpcModel.h:5625
Aws::Greengrass::GetSecretValueOperation
Definition: GreengrassCoreIpcModel.h:6330
Aws::Greengrass::PauseComponentOperation
Definition: GreengrassCoreIpcModel.h:6839
Aws::Eventstreamrpc::ClientConnection
Definition: EventStreamClient.h:716
Aws::Greengrass::GetClientDeviceAuthTokenOperation
Definition: GreengrassCoreIpcModel.h:5362
Aws::Greengrass::DeferComponentUpdateOperation
Definition: GreengrassCoreIpcModel.h:4921
Aws::Greengrass::ListNamedShadowsForThingOperation
Definition: GreengrassCoreIpcModel.h:6524
Aws::Greengrass::SubscribeToComponentUpdatesOperation
Definition: GreengrassCoreIpcModel.h:6647
Aws::Greengrass::SubscribeToTopicStreamHandler
Definition: GreengrassCoreIpcModel.h:5127
Aws::Greengrass::GreengrassCoreIpcClient
Definition: GreengrassCoreIpcClient.h:26
Aws::Greengrass::SubscribeToIoTCoreStreamHandler
Definition: GreengrassCoreIpcModel.h:4384
Aws::Greengrass::SubscribeToCertificateUpdatesStreamHandler
Definition: GreengrassCoreIpcModel.h:5450
Aws::Eventstreamrpc::ConnectionConfig
Definition: EventStreamClient.h:132
AWS_GREENGRASSCOREIPC_API
#define AWS_GREENGRASSCOREIPC_API
Definition: Exports.h:19
Aws::Greengrass::CreateLocalDeploymentOperation
Definition: GreengrassCoreIpcModel.h:6904
Aws::Greengrass::ValidateAuthorizationTokenOperation
Definition: GreengrassCoreIpcModel.h:6138
Aws::Greengrass::StopComponentOperation
Definition: GreengrassCoreIpcModel.h:6776
Aws::Greengrass::DefaultConnectionConfig
Definition: GreengrassCoreIpcClient.h:20
Aws::Crt::g_allocator
AWS_CRT_CPP_API Allocator * g_allocator
Definition: Allocator.cpp:22
Aws::Greengrass::GreengrassCoreIpcClient::IsConnected
bool IsConnected() const noexcept
Definition: GreengrassCoreIpcClient.h:41
Aws::Greengrass::UpdateConfigurationOperation
Definition: GreengrassCoreIpcModel.h:6072
Aws::Greengrass::PublishToTopicOperation
Definition: GreengrassCoreIpcModel.h:5425
Aws::Greengrass::PutComponentMetricOperation
Definition: GreengrassCoreIpcModel.h:4856
Aws::Greengrass::PublishToIoTCoreOperation
Definition: GreengrassCoreIpcModel.h:4606
Aws::Greengrass::GetLocalDeploymentStatusOperation
Definition: GreengrassCoreIpcModel.h:6267
Aws::Greengrass::SubscribeToValidateConfigurationUpdatesStreamHandler
Definition: GreengrassCoreIpcModel.h:4947
Aws::Greengrass::CancelLocalDeploymentOperation
Definition: GreengrassCoreIpcModel.h:6458
Aws::Greengrass::ResumeComponentOperation
Definition: GreengrassCoreIpcModel.h:4543
Aws::Greengrass::DeleteThingShadowOperation
Definition: GreengrassCoreIpcModel.h:4793
Aws::Greengrass::UpdateThingShadowOperation
Definition: GreengrassCoreIpcModel.h:6009
std
Definition: StringView.h:852
Aws::Greengrass::GetConfigurationOperation
Definition: GreengrassCoreIpcModel.h:5102
Aws
Definition: Allocator.h:11
Aws::Greengrass::UpdateStateOperation
Definition: GreengrassCoreIpcModel.h:6393
Aws::Crt::Allocator
aws_allocator Allocator
Definition: Allocator.h:14
Aws::Eventstreamrpc
Definition: EventStreamClient.h:38
Aws::Greengrass::SubscribeToTopicOperation
Definition: GreengrassCoreIpcModel.h:5232
Aws::Crt::Io::ClientBootstrap
Definition: Bootstrap.h:35
Aws::Greengrass::SubscribeToIoTCoreOperation
Definition: GreengrassCoreIpcModel.h:4479
Aws::Greengrass::SendConfigurationValidityReportOperation
Definition: GreengrassCoreIpcModel.h:5946
Aws::Greengrass::SubscribeToConfigurationUpdateStreamHandler
Definition: GreengrassCoreIpcModel.h:4631
Aws::Eventstreamrpc::MessageAmendment
Definition: EventStreamClient.h:99
Aws::Greengrass::CreateDebugPasswordOperation
Definition: GreengrassCoreIpcModel.h:5817