Package eu.cloudhopper.mc.annotations
package eu.cloudhopper.mc.annotations
Provides annotations for declaring cloud functions and API metadata.
Application developers annotate plain methods to describe how their functions should be deployed and integrated; the annotation processor generates the provider-specific handlers and deployment artifacts.
Function and trigger annotations (applied to a method):
Function- marks a method as a deployable functionScheduledTrigger- defines a time-based (cron) triggerHttpTrigger- adds HTTP metadata for API gateway integration
RequestBody- binds the deserialized request bodyPathParam- binds a URI path template variableQueryParam- binds a query string parameterHeaderParam- binds an HTTP request header
Extension/Extensions- attach provider-specific attributes (seeExtensionKeys)
-
ClassDescriptionDeclares a vendor-specific or custom extension attribute for a
Function.Defines well-known extension keys and allowed values for use withExtension.AWS-specific extension keys.Extension key for specifying the target CPU architecture on AWS platforms.Allowed values forExtensionKeys.Aws.Architecture.KEY.Container annotation for repeatingExtensionannotations.Marks a method as a deployable cloud function.Constants representing the attribute names ofFunction.Binds a method parameter to an HTTP request header value.Declares that a function should be exposed via an HTTP endpoint.Constants representing attribute names ofHttpTrigger.Binds a method parameter to a URI path template variable declared in theHttpTrigger.path()(e.g.Binds a method parameter to a query string parameter.Marks a method parameter as the deserialized request body.Declares that the annotated function should be executed on a schedule.Constants representing attribute names ofScheduledTrigger.