RebootInstance
Source:
src/AWS/EC2/RebootInstance.ts
Runtime binding for the RebootInstances operation scoped to the bound
Instance (IAM action ec2:RebootInstances on the instance ARN).
Requests an asynchronous reboot of the instance — e.g. a remediation Lambda
that bounces a wedged host after a failed health check. Provide the
implementation with Effect.provide(AWS.EC2.RebootInstanceHttp).
Instance Lifecycle Control
Section titled “Instance Lifecycle Control”// init — bind the operation to the instanceconst rebootInstance = yield* AWS.EC2.RebootInstance(instance);
// runtime — request the reboot (asynchronous)yield* rebootInstance();