use crate::{KeyValue, StringValue};
use super::*;
pub enum SageMakerRuntimeSpanBuilder {}
impl AwsSpanBuilder<'_> {
pub fn sagemaker_runtime(
method: impl Into<StringValue>,
endpoint_name: impl Into<StringValue>,
) -> Self {
let endpoint_name: StringValue = endpoint_name.into();
let attributes =
vec![KeyValue::new("aws.sagemaker.endpoint_name", endpoint_name)];
Self::client("SageMakerRuntime", method, attributes)
}
}
macro_rules! sagemaker_runtime_endpoint_operation {
($op: ident) => {
impl SageMakerRuntimeSpanBuilder {
#[doc = concat!("Creates a span builder for the SageMaker Runtime ", stringify!($op), " operation.")]
pub fn $op<'a>(endpoint_name: impl Into<StringValue>) -> AwsSpanBuilder<'a> {
AwsSpanBuilder::sagemaker_runtime(stringify_camel!($op), endpoint_name)
}
}
};
}
sagemaker_runtime_endpoint_operation!(invoke_endpoint);
sagemaker_runtime_endpoint_operation!(invoke_endpoint_async);
sagemaker_runtime_endpoint_operation!(invoke_endpoint_with_response_stream);