Constructor for a GreengrassCoreIPC service client.
client configuration settings
Performs a AuthorizeClientDeviceAction operation.
Send a request to authorize action on some resource
data describing the AuthorizeClientDeviceAction operation to perform
Optional
options: OperationOptionsadditional eventstream options to use while performing this operation
a Promise that is resolved with the AuthorizeClientDeviceAction operation's result, or rejected with an RpcError
Performs a CancelLocalDeployment operation.
Cancel a local deployment on the device.
data describing the CancelLocalDeployment operation to perform
Optional
options: OperationOptionsadditional eventstream options to use while performing this operation
a Promise that is resolved with the CancelLocalDeployment operation's result, or rejected with an RpcError
Shuts down the client and begins the process of releasing all native resources associated with the client as well as any unclosed operations. It is critical that this function be called when finished with the client; otherwise, native resources will leak.
The client tracks unclosed operations and, as part of this process, closes them as well.
Once a client has been closed, it may no longer be used.
Attempts to open an eventstream connection to the configured remote endpoint. Returned promise will be fulfilled if the transport-level connection is successfully established and the eventstream handshake completes without error.
connect() may only be called once.
Performs a CreateDebugPassword operation.
Generate a password for the LocalDebugConsole component
data describing the CreateDebugPassword operation to perform
Optional
options: OperationOptionsadditional eventstream options to use while performing this operation
a Promise that is resolved with the CreateDebugPassword operation's result, or rejected with an RpcError
Performs a CreateLocalDeployment operation.
Creates a local deployment on the device. Also allows to remove existing components.
data describing the CreateLocalDeployment operation to perform
Optional
options: OperationOptionsadditional eventstream options to use while performing this operation
a Promise that is resolved with the CreateLocalDeployment operation's result, or rejected with an RpcError
Performs a DeferComponentUpdate operation.
Defer the update of components by a given amount of time and check again after that.
data describing the DeferComponentUpdate operation to perform
Optional
options: OperationOptionsadditional eventstream options to use while performing this operation
a Promise that is resolved with the DeferComponentUpdate operation's result, or rejected with an RpcError
Performs a DeleteThingShadow operation.
Deletes a device shadow document stored in the local shadow service
data describing the DeleteThingShadow operation to perform
Optional
options: OperationOptionsadditional eventstream options to use while performing this operation
a Promise that is resolved with the DeleteThingShadow operation's result, or rejected with an RpcError
Performs a GetClientDeviceAuthToken operation.
Get session token for a client device
data describing the GetClientDeviceAuthToken operation to perform
Optional
options: OperationOptionsadditional eventstream options to use while performing this operation
a Promise that is resolved with the GetClientDeviceAuthToken operation's result, or rejected with an RpcError
Performs a GetComponentDetails operation.
Gets the status and version of the component with the given component name
data describing the GetComponentDetails operation to perform
Optional
options: OperationOptionsadditional eventstream options to use while performing this operation
a Promise that is resolved with the GetComponentDetails operation's result, or rejected with an RpcError
Performs a GetConfiguration operation.
Get value of a given key from the configuration
data describing the GetConfiguration operation to perform
Optional
options: OperationOptionsadditional eventstream options to use while performing this operation
a Promise that is resolved with the GetConfiguration operation's result, or rejected with an RpcError
Performs a GetLocalDeploymentStatus operation.
Get status of a local deployment with the given deploymentId
data describing the GetLocalDeploymentStatus operation to perform
Optional
options: OperationOptionsadditional eventstream options to use while performing this operation
a Promise that is resolved with the GetLocalDeploymentStatus operation's result, or rejected with an RpcError
Performs a GetSecretValue operation.
Retrieves a secret stored in AWS secrets manager
data describing the GetSecretValue operation to perform
Optional
options: OperationOptionsadditional eventstream options to use while performing this operation
a Promise that is resolved with the GetSecretValue operation's result, or rejected with an RpcError
Performs a GetThingShadow operation.
Retrieves a device shadow document stored by the local shadow service
data describing the GetThingShadow operation to perform
Optional
options: OperationOptionsadditional eventstream options to use while performing this operation
a Promise that is resolved with the GetThingShadow operation's result, or rejected with an RpcError
Performs a ListComponents operation.
Request for a list of components
data describing the ListComponents operation to perform
Optional
options: OperationOptionsadditional eventstream options to use while performing this operation
a Promise that is resolved with the ListComponents operation's result, or rejected with an RpcError
Performs a ListLocalDeployments operation.
Lists the last 5 local deployments along with their statuses
data describing the ListLocalDeployments operation to perform
Optional
options: OperationOptionsadditional eventstream options to use while performing this operation
a Promise that is resolved with the ListLocalDeployments operation's result, or rejected with an RpcError
Performs a ListNamedShadowsForThing operation.
Lists the named shadows for the specified thing
data describing the ListNamedShadowsForThing operation to perform
Optional
options: OperationOptionsadditional eventstream options to use while performing this operation
a Promise that is resolved with the ListNamedShadowsForThing operation's result, or rejected with an RpcError
Performs a PauseComponent operation.
Pause a running component
data describing the PauseComponent operation to perform
Optional
options: OperationOptionsadditional eventstream options to use while performing this operation
a Promise that is resolved with the PauseComponent operation's result, or rejected with an RpcError
Performs a PublishToIoTCore operation.
Publish an MQTT message to AWS IoT message broker
data describing the PublishToIoTCore operation to perform
Optional
options: OperationOptionsadditional eventstream options to use while performing this operation
a Promise that is resolved with the PublishToIoTCore operation's result, or rejected with an RpcError
Performs a PublishToTopic operation.
Publish to a custom topic.
data describing the PublishToTopic operation to perform
Optional
options: OperationOptionsadditional eventstream options to use while performing this operation
a Promise that is resolved with the PublishToTopic operation's result, or rejected with an RpcError
Performs a PutComponentMetric operation.
Send component metrics NOTE Only usable by AWS components
data describing the PutComponentMetric operation to perform
Optional
options: OperationOptionsadditional eventstream options to use while performing this operation
a Promise that is resolved with the PutComponentMetric operation's result, or rejected with an RpcError
Performs a RestartComponent operation.
Restarts a component with the given name
data describing the RestartComponent operation to perform
Optional
options: OperationOptionsadditional eventstream options to use while performing this operation
a Promise that is resolved with the RestartComponent operation's result, or rejected with an RpcError
Performs a ResumeComponent operation.
Resume a paused component
data describing the ResumeComponent operation to perform
Optional
options: OperationOptionsadditional eventstream options to use while performing this operation
a Promise that is resolved with the ResumeComponent operation's result, or rejected with an RpcError
Performs a SendConfigurationValidityReport operation.
This operation should be used in response to event received as part of SubscribeToValidateConfigurationUpdates subscription. It is not necessary to send the report if the configuration is valid (GGC will wait for timeout period and proceed). Sending the report with invalid config status will prevent GGC from applying the updates
data describing the SendConfigurationValidityReport operation to perform
Optional
options: OperationOptionsadditional eventstream options to use while performing this operation
a Promise that is resolved with the SendConfigurationValidityReport operation's result, or rejected with an RpcError
Performs a StopComponent operation.
Stops a component with the given name
data describing the StopComponent operation to perform
Optional
options: OperationOptionsadditional eventstream options to use while performing this operation
a Promise that is resolved with the StopComponent operation's result, or rejected with an RpcError
Creates a SubscribeToCertificateUpdates streaming operation.
Create a subscription for new certificates
Once created, the streaming operation must be started by a call to activate().
If the operation allows for streaming input, the user may attach event listeners to receive messages.
If the operation allows for streaming output, the user may call sendProtocolMessage() to send messages on the operation's event stream once the operation has been activated.
The user should close() a streaming operation once finished with it. If close() is not called, the native resources associated with the streaming operation will not be freed until the client is closed.
data describing the SubscribeToCertificateUpdates streaming operation to create
Optional
options: OperationOptionsadditional eventstream options to use while this operation is active
a new StreamingOperation object
Creates a SubscribeToComponentUpdates streaming operation.
Subscribe to receive notification if GGC is about to update any components
Once created, the streaming operation must be started by a call to activate().
If the operation allows for streaming input, the user may attach event listeners to receive messages.
If the operation allows for streaming output, the user may call sendProtocolMessage() to send messages on the operation's event stream once the operation has been activated.
The user should close() a streaming operation once finished with it. If close() is not called, the native resources associated with the streaming operation will not be freed until the client is closed.
data describing the SubscribeToComponentUpdates streaming operation to create
Optional
options: OperationOptionsadditional eventstream options to use while this operation is active
a new StreamingOperation object
Creates a SubscribeToConfigurationUpdate streaming operation.
Subscribes to be notified when GGC updates the configuration for a given componentName and keyName.
Once created, the streaming operation must be started by a call to activate().
If the operation allows for streaming input, the user may attach event listeners to receive messages.
If the operation allows for streaming output, the user may call sendProtocolMessage() to send messages on the operation's event stream once the operation has been activated.
The user should close() a streaming operation once finished with it. If close() is not called, the native resources associated with the streaming operation will not be freed until the client is closed.
data describing the SubscribeToConfigurationUpdate streaming operation to create
Optional
options: OperationOptionsadditional eventstream options to use while this operation is active
a new StreamingOperation object
Creates a SubscribeToIoTCore streaming operation.
Subscribe to a topic in AWS IoT message broker.
Once created, the streaming operation must be started by a call to activate().
If the operation allows for streaming input, the user may attach event listeners to receive messages.
If the operation allows for streaming output, the user may call sendProtocolMessage() to send messages on the operation's event stream once the operation has been activated.
The user should close() a streaming operation once finished with it. If close() is not called, the native resources associated with the streaming operation will not be freed until the client is closed.
data describing the SubscribeToIoTCore streaming operation to create
Optional
options: OperationOptionsadditional eventstream options to use while this operation is active
a new StreamingOperation object
Creates a SubscribeToTopic streaming operation.
Creates a subscription for a custom topic
Once created, the streaming operation must be started by a call to activate().
If the operation allows for streaming input, the user may attach event listeners to receive messages.
If the operation allows for streaming output, the user may call sendProtocolMessage() to send messages on the operation's event stream once the operation has been activated.
The user should close() a streaming operation once finished with it. If close() is not called, the native resources associated with the streaming operation will not be freed until the client is closed.
data describing the SubscribeToTopic streaming operation to create
Optional
options: OperationOptionsadditional eventstream options to use while this operation is active
a new StreamingOperation object
Creates a SubscribeToValidateConfigurationUpdates streaming operation.
Subscribes to be notified when GGC is about to update configuration for this component GGC will wait for a timeout period before it proceeds with the update. If the new configuration is not valid this component can use the SendConfigurationValidityReport operation to indicate that
Once created, the streaming operation must be started by a call to activate().
If the operation allows for streaming input, the user may attach event listeners to receive messages.
If the operation allows for streaming output, the user may call sendProtocolMessage() to send messages on the operation's event stream once the operation has been activated.
The user should close() a streaming operation once finished with it. If close() is not called, the native resources associated with the streaming operation will not be freed until the client is closed.
data describing the SubscribeToValidateConfigurationUpdates streaming operation to create
Optional
options: OperationOptionsadditional eventstream options to use while this operation is active
a new StreamingOperation object
Performs a UpdateConfiguration operation.
Update this component's configuration by replacing the value of given keyName with the newValue. If an oldValue is specified then update will only take effect id the current value matches the given oldValue
data describing the UpdateConfiguration operation to perform
Optional
options: OperationOptionsadditional eventstream options to use while performing this operation
a Promise that is resolved with the UpdateConfiguration operation's result, or rejected with an RpcError
Performs a UpdateState operation.
Update status of this component
data describing the UpdateState operation to perform
Optional
options: OperationOptionsadditional eventstream options to use while performing this operation
a Promise that is resolved with the UpdateState operation's result, or rejected with an RpcError
Performs a UpdateThingShadow operation.
Updates a device shadow document stored in the local shadow service The update is an upsert operation, with optimistic locking support
data describing the UpdateThingShadow operation to perform
Optional
options: OperationOptionsadditional eventstream options to use while performing this operation
a Promise that is resolved with the UpdateThingShadow operation's result, or rejected with an RpcError
Performs a ValidateAuthorizationToken operation.
Validate authorization token NOTE This API can be used only by stream manager, customer component calling this API will receive UnauthorizedError
data describing the ValidateAuthorizationToken operation to perform
Optional
options: OperationOptionsadditional eventstream options to use while performing this operation
a Promise that is resolved with the ValidateAuthorizationToken operation's result, or rejected with an RpcError
Performs a VerifyClientDeviceIdentity operation.
Verify client device credentials
data describing the VerifyClientDeviceIdentity operation to perform
Optional
options: OperationOptionsadditional eventstream options to use while performing this operation
a Promise that is resolved with the VerifyClientDeviceIdentity operation's result, or rejected with an RpcError
Static
DISCONNECTIONEvent emitted when the client's underlying network connection is ended. Only emitted if the connection was previously successfully established.
Listener type: DisconnectionListener
Generated using TypeDoc
A network client for interacting with the GreengrassCoreIPC service using the eventstream RPC protocol.
Provides communication between Greengrass core and customer component