Interface CallbackAdapter<T>

All Known Implementing Classes:
CloudFormationCallbackAdapter

public interface CallbackAdapter<T>
Interface used to abstract the function of reporting back provisioning progress to the handler caller
  • Method Summary

    Modifier and Type Method Description
    void refreshClient()
    On Lambda re-invoke we need to supply a new set of client credentials so this function must be called whenever credentials are refreshed/changed in the owning entity
    void reportProgress​(java.lang.String bearerToken, HandlerErrorCode errorCode, OperationStatus operationStatus, OperationStatus currentOperationStatus, T resourceModel, java.lang.String statusMessage)
    Proxies a callback to the service entity which invoked this provisioning request
  • Method Details

    • refreshClient

      void refreshClient()
      On Lambda re-invoke we need to supply a new set of client credentials so this function must be called whenever credentials are refreshed/changed in the owning entity
    • reportProgress

      void reportProgress​(java.lang.String bearerToken, HandlerErrorCode errorCode, OperationStatus operationStatus, OperationStatus currentOperationStatus, T resourceModel, java.lang.String statusMessage)
      Proxies a callback to the service entity which invoked this provisioning request
      Parameters:
      bearerToken - unique identifier for this provisioning operation
      errorCode - (optional) error code in case of fault
      operationStatus - new status of provisioning operation
      currentOperationStatus - current status of provisioning operation
      resourceModel - the current state of the provisioned resource
      statusMessage - (optional) progress status which may be shown to end user