get() | post() | unary_method() | streaming methods | topic() | endpoint()HTTP, gRPC, Kafka, and Custom endpoints
Create concrete endpoints whose parameters match their connector transport.
When to use
Pass returned Endpoint objects to Pipeline.input or Pipeline.sink.
Behavior
- Every endpoint requires Function metadata and derives its key from name.
- Endpoint objects retain their owning Connector and expose function_name for inspection.
- Kafka topic options control provisioning and consumer behavior as well as topic identity.
HttpConnector.get() / post() properties
Typed HTTP endpoints.
namestrEndpoint name.
RequiredfunctionFunctionBusiness callback metadata used to generate the implementation contract.
RequiredpathstrRoute path.
Requiredtracing_enabledbool | NoneInbound tracing override.
Default:NoneTyped gRPC methods properties
Unary or streaming endpoint selected by the concrete method.
name / functionstr / FunctionEndpoint identity and callback.
Requiredmethod_namestr | NoneRPC method name; derived from endpoint name when omitted.
Default:Nonefactorymethodunary_method, client_streaming_method, server_streaming_method, or bidirectional_streaming_method selects the shape.
tracing_enabledbool | NoneInbound tracing override.
Default:NoneKafkaConnector.topic() properties
Kafka endpoint.
name / function / topicstr / Function / strEndpoint identity, callback, and Kafka topic.
RequiredenabledboolEnable runtime integration.
Default:Truecreate_topicbool | NoneAllow generated provisioning.
Default:Nonepartitions / replication_factorint | NoneProvisioned topic shape.
Default:Noneconsumer_groupstr | NoneConsumer group identity.
Default:Noneuse_partitionerbool | NoneUse configured producer partitioning.
Default:NoneCustomConnector.endpoint() properties
Custom integration endpoint.
namestrEndpoint name.
RequiredfunctionFunctionBusiness callback metadata used to generate the implementation contract.
Requiredtracing_enabledbool | NoneTracing override.
Default:NonePython example
create_order = http.post(
"Create Order",
function=Function(name="CreateOrder", package=endpoint_package),
path="/v1/orders",
)
order_created = kafka.topic(
"Order Created",
function=Function(name="OrderCreated", module=LOCAL_MODULE),
topic="orders.created",
consumer_group="orderservice",
)