Trait aws_smithy_runtime_api::client::auth::Sign

source ·
pub trait Sign: Send + Sync + Debug {
    // Required method
    fn sign_http_request(
        &self,
        request: &mut HttpRequest,
        identity: &Identity,
        auth_scheme_endpoint_config: AuthSchemeEndpointConfig<'_>,
        runtime_components: &RuntimeComponents,
        config_bag: &ConfigBag
    ) -> Result<(), BoxError>;
}
Expand description

Signing implementation for an auth scheme.

Required Methods§

source

fn sign_http_request( &self, request: &mut HttpRequest, identity: &Identity, auth_scheme_endpoint_config: AuthSchemeEndpointConfig<'_>, runtime_components: &RuntimeComponents, config_bag: &ConfigBag ) -> Result<(), BoxError>

Sign the given request with the given identity, components, and config.

If the provided identity is incompatible with this signer, an error must be returned.

Implementors§