Module aws_sdk_secretsmanager::client::customize

source ·
Expand description

Operation customization and supporting types.

The underlying HTTP requests made during an operation can be customized by calling the customize() method on the builder returned from a client operation call. For example, this can be used to add an additional HTTP header:

use ::http::header::{HeaderName, HeaderValue};

let result = client.batch_get_secret_value()
    .customize()
    .mutate_request(|req| {
        // Add `x-example-header` with value
        req.headers_mut()
            .insert(
                HeaderName::from_static("x-example-header"),
                HeaderValue::from_static("1"),
            );
    })
    .send()
    .await;

Structs§

  • CustomizableOperation allows for configuring a single operation invocation before it is sent.