Module Values.StartAsyncInvokeRequestSource

Starts an asynchronous invocation. This operation requires permission for the bedrock:InvokeModel action. To deny all inference access to resources that you specify in the modelId field, you need to deny access to the bedrock:InvokeModel and bedrock:InvokeModelWithResponseStream actions. Doing this also denies access to the resource through the Converse API actions (Converse and ConverseStream). For more information see Deny access for inference on specific models.

Sourcetype nonrec t = {
  1. clientRequestToken : AsyncInvokeIdempotencyToken.t option;
    (*

    Specify idempotency token to ensure that requests are not duplicated.

    *)
  2. modelId : AsyncInvokeIdentifier.t;
    (*

    The model to invoke.

    *)
  3. modelInput : ModelInputPayload.t;
    (*

    Input to send to the model.

    *)
  4. outputDataConfig : AsyncInvokeOutputDataConfig.t;
    (*

    Where to store the output.

    *)
  5. tags : TagList.t option;
    (*

    Tags to apply to the invocation.

    *)
}
Sourceval context_ : string
Sourceval make : ?clientRequestToken:??? -> ?tags:??? -> modelId:AsyncInvokeIdentifier.t -> modelInput:ModelInputPayload.t -> outputDataConfig:AsyncInvokeOutputDataConfig.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `List of [> `Structure of (string * [> `String of TagKey.t ]) list ] list | `String of AsyncInvokeIdempotencyToken.t | `Structure of (string * [> `Structure of (string * [> `String of S3Uri.t ]) list ]) list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t