Liking cljdoc? Tell your friends :D

biiwide.sandboxica.alpha


always-failclj

(always-fail client-fn)

This client-fn middleware builds clients that always throw an UnsupportedOperationException for every client action.

This client-fn middleware builds clients that always throw
an UnsupportedOperationException for every client action.
sourceraw docstring

always-nothingclj

(always-nothing client-fn)

This client middleware function builds clients that always return a "nothing" value for every client action.

Typically the "nothing" value is nil, but will also return: false, 0, and NaN for methods with primitive return types.

This client middleware function builds clients that
always return a "nothing" value for every client action.

Typically the "nothing" value is nil, but will also return:
  false, 0, and NaN for methods with primitive return types.
sourceraw docstring

coerce-method-implementationclj

(coerce-method-implementation f method)

Returns a wrapped function that will marshall arguments to Clojure values, and unmarshall Clojure values to a result type based on the given method signature.

Returns a wrapped function that will marshall arguments to Clojure values,
and unmarshall Clojure values to a result type based on the given method signature.
sourceraw docstring

get-deep-fieldsclj

(get-deep-fields obj)

Returns a map of all non-null values returned by invoking all public getters on the specified object. The functionality is similar to amazonica.core/get-fields but also performs a limitted search of the object's parent classes.

This function can be used to implement the amazonica.core/IMarshall protocol for classes that are not well supported, such as com.amazonaws.services.s3.model.PutObjectRequest.

Returns a map of all non-null values returned by invoking all
public getters on the specified object.  The functionality is
similar to amazonica.core/get-fields but also performs a limitted
search of the object's parent classes.

This function can be used to implement the amazonica.core/IMarshall
protocol for classes that are not well supported, such as
com.amazonaws.services.s3.model.PutObjectRequest.
sourceraw docstring

invocation-handlercljmacro

(invocation-handler [method-sym args-sym] & body)

A macro that constructs an invocation handler for use by client proxies. Invocations handlers are functions of 2 arguments: a method, and an arguments array.

Example: (let [client (create-client class)] (invocation-handler [^Method method args] (println (.getName method) : (seq args)) (.invoke method client args)))

A macro that constructs an invocation handler for use by client proxies.
Invocations handlers are functions of 2 arguments: a method, and an arguments array.

Example:
(let [client (create-client class)]
  (invocation-handler [^Method method args]
    (println (.getName method) \: (seq args))
    (.invoke method client args)))
sourceraw docstring

justcljmacro

(just & impls)

This macro constructs a client middleware function which just implements specific AWS endpoint calls for specific clients. The endpoint calls are defined based on the corresponding Amazonica function. All other clients and method calls are delegated to the original client function and client methods. See also: 'just* Example: (just (amazonica.aws.ec2/describe-instances [req] (println "Request:" req) {:next-token "abc" :reservations []}) (amazonica.aws.sqs/delete-message ([req] (println "Request:" req) {}) ([queue-url receipt-handle] (println "QueueUrl:" queue-url "ReceiptHandle:" receipt-handle) {})))

This macro constructs a client middleware function
which just implements specific AWS endpoint calls for
specific clients.  The endpoint calls are defined based
on the corresponding Amazonica function.
All other clients and method calls are delegated to the
original client function and client methods.
See also: 'just*
Example:
(just (amazonica.aws.ec2/describe-instances [req]
        (println "Request:" req)
        {:next-token "abc"
         :reservations []})
      (amazonica.aws.sqs/delete-message
        ([req]
          (println "Request:" req)
          {})
        ([queue-url receipt-handle]
          (println "QueueUrl:" queue-url "ReceiptHandle:" receipt-handle)
          {})))
sourceraw docstring

just*clj

(just* implementations)

Constructs a client middleware function that just implements specific AWS endpoint calls for specific clients. The client endpoints are constructed based on a map of Amazonica function names to implementing functions. All other clients and method calls are delegated to the original client function and client methods. See also: 'just Example: (just* {'amazonica.aws.ecs/describe-instances (fn [req] (println "Request:" req) {}) 'amazonica.aws.sqs/delete-message (fn ([req] (println "Request:" req) {}) ([queue-url receipt-handle] (println {:queue-url queue-url, :receipt-handle: receipt-handle}) {})))

Constructs a client middleware function that just
implements specific AWS endpoint calls for specific clients.
The client endpoints are constructed based on a map of
Amazonica function names to implementing functions.
All other clients and method calls are delegated to the
original client function and client methods.
See also: 'just
Example:
(just* {'amazonica.aws.ecs/describe-instances
        (fn [req]
          (println "Request:" req)
          {})
        'amazonica.aws.sqs/delete-message
        (fn ([req]
              (println "Request:" req)
              {})
            ([queue-url receipt-handle]
              (println {:queue-url queue-url, :receipt-handle: receipt-handle})
              {})))
sourceraw docstring

marshall++clj

(marshall++ x)

Like amazonica.core/marshall but improves handling of some edge cases.

Like amazonica.core/marshall but improves handling of
some edge cases.
sourceraw docstring

method-coercionsclj

(method-coercions f methods)

Given a function and a collection of methods, returns a map of composed functions that will coerce arguments and results to match the method signatures. See also: coerce-method-implementation

Given a function and a collection of methods,
returns a map of composed functions that will coerce arguments and
results to match the method signatures.
See also: coerce-method-implementation
sourceraw docstring

withcljmacro

(with client-middleware & body)

This macro creates a scope that overrides the construction of AmazonWebServiceClients by amazonica.

It relies on a dynamic var to override these behaviors, so all caveats that appy to dynamic vars apply here. Example: (sandbox/with sandbox/always-nothing (amazonica.aws.ec2/run-instances {:image-id "foo" ...}))

This macro creates a scope that overrides the construction
of AmazonWebServiceClients by amazonica.

It relies on a dynamic var to override these behaviors, so
all caveats that appy to dynamic vars apply here.
Example:
(sandbox/with
  sandbox/always-nothing
  (amazonica.aws.ec2/run-instances {:image-id "foo" ...}))
sourceraw docstring

with-client-middleware*clj

(with-client-middleware* client-middleware f)

Evaluates a function in the context of the provided amazon-client-fn.

Evaluates a function in the context of the provided amazon-client-fn.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close