pub fn delete_aws_sigv4(
url: impl Into<String>,
headers: impl IntoIterator<Item = (String, String)>,
aws_credentials: Credentials,
region: impl Into<String>,
service: impl Into<String>,
) -> Result<Response, HttpDeleteError>Expand description
HTTP DELETE with AWS SigV4 signing provided by the host
use momento_functions_host::build_environment_aws_credentials;
http::delete_aws_sigv4(
"https://bedrock-runtime.us-west-2.amazonaws.com/model/us.amazon.nova-pro-v1:0/invoke",
[],
build_environment_aws_credentials!(),
"us-west-2",
"bedrock",
)?;
http::delete_aws_sigv4(
"https://bedrock-runtime.us-west-2.amazonaws.com/model/us.amazon.nova-pro-v1:0/invoke",
[
("other_header".to_string(), "abc123".to_string()),
],
build_environment_aws_credentials!(),
"us-west-2",
"bedrock",
)?;