Class CloudFormationCallbackAdapter<T>

    • Constructor Detail

      • CloudFormationCallbackAdapter

        public CloudFormationCallbackAdapter​(CloudFormationProvider cloudFormationProvider,
                                             LoggerProxy loggerProxy,
                                             Serializer serializer,
                                             software.amazon.cloudformation.resource.ResourceTypeSchema resourceTypeSchema)
    • Method Detail

      • refreshClient

        public void refreshClient()
        Description copied from interface: CallbackAdapter
        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
        Specified by:
        refreshClient in interface CallbackAdapter<T>
      • reportProgress

        public void reportProgress​(String bearerToken,
                                   HandlerErrorCode errorCode,
                                   OperationStatus operationStatus,
                                   OperationStatus currentOperationStatus,
                                   T resourceModel,
                                   String statusMessage)
        Description copied from interface: CallbackAdapter
        Proxies a callback to the service entity which invoked this provisioning request
        Specified by:
        reportProgress in interface CallbackAdapter<T>
        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