R/sagemakerruntime_interfaces.R

Defines functions invoke_endpoint_with_response_stream_output invoke_endpoint_with_response_stream_input invoke_endpoint_async_output invoke_endpoint_async_input invoke_endpoint_output invoke_endpoint_input

# This file is generated by make.paws. Please do not edit here.
#' @importFrom paws.common populate
#' @include sagemakerruntime_service.R
NULL

.sagemakerruntime$invoke_endpoint_input <- function(...) {
  args <- c(as.list(environment()), list(...))
  shape <- structure(list(EndpointName = structure(logical(0), tags = list(location = "uri", locationName = "EndpointName", type = "string")), Body = structure(logical(0), tags = list(type = "blob", sensitive = TRUE)), ContentType = structure(logical(0), tags = list(location = "header", locationName = "Content-Type", type = "string")), Accept = structure(logical(0), tags = list(location = "header", locationName = "Accept", type = "string")), CustomAttributes = structure(logical(0), tags = list(location = "header", locationName = "X-Amzn-SageMaker-Custom-Attributes", type = "string", sensitive = TRUE)), TargetModel = structure(logical(0), tags = list(location = "header", locationName = "X-Amzn-SageMaker-Target-Model", type = "string")), TargetVariant = structure(logical(0), tags = list(location = "header", locationName = "X-Amzn-SageMaker-Target-Variant", type = "string")), TargetContainerHostname = structure(logical(0), tags = list(location = "header", locationName = "X-Amzn-SageMaker-Target-Container-Hostname", type = "string")), InferenceId = structure(logical(0), tags = list(location = "header", locationName = "X-Amzn-SageMaker-Inference-Id", type = "string")), EnableExplanations = structure(logical(0), tags = list(location = "header", locationName = "X-Amzn-SageMaker-Enable-Explanations", type = "string"))), tags = list(type = "structure", payload = "Body"))
  return(populate(args, shape))
}

.sagemakerruntime$invoke_endpoint_output <- function(...) {
  args <- c(as.list(environment()), list(...))
  shape <- structure(list(Body = structure(logical(0), tags = list(type = "blob", sensitive = TRUE)), ContentType = structure(logical(0), tags = list(location = "header", locationName = "Content-Type", type = "string")), InvokedProductionVariant = structure(logical(0), tags = list(location = "header", locationName = "x-Amzn-Invoked-Production-Variant", type = "string")), CustomAttributes = structure(logical(0), tags = list(location = "header", locationName = "X-Amzn-SageMaker-Custom-Attributes", type = "string", sensitive = TRUE))), tags = list(type = "structure", payload = "Body"))
  return(populate(args, shape))
}

.sagemakerruntime$invoke_endpoint_async_input <- function(...) {
  args <- c(as.list(environment()), list(...))
  shape <- structure(list(EndpointName = structure(logical(0), tags = list(location = "uri", locationName = "EndpointName", type = "string")), ContentType = structure(logical(0), tags = list(location = "header", locationName = "X-Amzn-SageMaker-Content-Type", type = "string")), Accept = structure(logical(0), tags = list(location = "header", locationName = "X-Amzn-SageMaker-Accept", type = "string")), CustomAttributes = structure(logical(0), tags = list(location = "header", locationName = "X-Amzn-SageMaker-Custom-Attributes", type = "string", sensitive = TRUE)), InferenceId = structure(logical(0), tags = list(location = "header", locationName = "X-Amzn-SageMaker-Inference-Id", type = "string")), InputLocation = structure(logical(0), tags = list(location = "header", locationName = "X-Amzn-SageMaker-InputLocation", type = "string")), RequestTTLSeconds = structure(logical(0), tags = list(location = "header", locationName = "X-Amzn-SageMaker-RequestTTLSeconds", type = "integer")), InvocationTimeoutSeconds = structure(logical(0), tags = list(location = "header", locationName = "X-Amzn-SageMaker-InvocationTimeoutSeconds", type = "integer"))), tags = list(type = "structure"))
  return(populate(args, shape))
}

.sagemakerruntime$invoke_endpoint_async_output <- function(...) {
  args <- c(as.list(environment()), list(...))
  shape <- structure(list(InferenceId = structure(logical(0), tags = list(type = "string")), OutputLocation = structure(logical(0), tags = list(location = "header", locationName = "X-Amzn-SageMaker-OutputLocation", type = "string")), FailureLocation = structure(logical(0), tags = list(location = "header", locationName = "X-Amzn-SageMaker-FailureLocation", type = "string"))), tags = list(type = "structure"))
  return(populate(args, shape))
}

.sagemakerruntime$invoke_endpoint_with_response_stream_input <- function(...) {
  args <- c(as.list(environment()), list(...))
  shape <- structure(list(EndpointName = structure(logical(0), tags = list(location = "uri", locationName = "EndpointName", type = "string")), Body = structure(logical(0), tags = list(type = "blob", sensitive = TRUE)), ContentType = structure(logical(0), tags = list(location = "header", locationName = "Content-Type", type = "string")), Accept = structure(logical(0), tags = list(location = "header", locationName = "X-Amzn-SageMaker-Accept", type = "string")), CustomAttributes = structure(logical(0), tags = list(location = "header", locationName = "X-Amzn-SageMaker-Custom-Attributes", type = "string", sensitive = TRUE)), TargetVariant = structure(logical(0), tags = list(location = "header", locationName = "X-Amzn-SageMaker-Target-Variant", type = "string")), TargetContainerHostname = structure(logical(0), tags = list(location = "header", locationName = "X-Amzn-SageMaker-Target-Container-Hostname", type = "string")), InferenceId = structure(logical(0), tags = list(location = "header", locationName = "X-Amzn-SageMaker-Inference-Id", type = "string"))), tags = list(type = "structure", payload = "Body"))
  return(populate(args, shape))
}

.sagemakerruntime$invoke_endpoint_with_response_stream_output <- function(...) {
  args <- c(as.list(environment()), list(...))
  shape <- structure(list(Body = structure(list(PayloadPart = structure(list(Bytes = structure(logical(0), tags = list(eventpayload = TRUE, type = "blob", sensitive = TRUE))), tags = list(type = "structure", event = TRUE)), ModelStreamError = structure(list(Message = structure(logical(0), tags = list(type = "string")), ErrorCode = structure(logical(0), tags = list(type = "string"))), tags = list(type = "structure", exception = TRUE, synthetic = TRUE)), InternalStreamFailure = structure(list(Message = structure(logical(0), tags = list(type = "string"))), tags = list(type = "structure", exception = TRUE, fault = TRUE, synthetic = TRUE))), tags = list(type = "structure", eventstream = TRUE)), ContentType = structure(logical(0), tags = list(location = "header", locationName = "X-Amzn-SageMaker-Content-Type", type = "string")), InvokedProductionVariant = structure(logical(0), tags = list(location = "header", locationName = "x-Amzn-Invoked-Production-Variant", type = "string")), CustomAttributes = structure(logical(0), tags = list(location = "header", locationName = "X-Amzn-SageMaker-Custom-Attributes", type = "string", sensitive = TRUE))), tags = list(type = "structure", payload = "Body"))
  return(populate(args, shape))
}

Try the paws.machine.learning package in your browser

Any scripts or data that you put into this service are public.

paws.machine.learning documentation built on Sept. 12, 2023, 1:14 a.m.