Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

Interface IComponentInstance2

interface IComponentInstance2
Extends IComponentInstance IComponentInstance2 interface provides the additional method to mark execution as complete for a component instance.

Methods

executionCompleted()

void executionCompleted()
Marks execution as complete for a component instance and initiates termination. Initiates the shutdown sequence and ultimately invokes the onStop callback to stop the component. For the invocation to be successful this method should be called from within the application process this component instance is a part of.

Throws

  • InvalidOperationError — if called from outside of the application process this instance is a part of.

Last modified on October 29, 2026