pub struct ManagerBuilder { /* private fields */ }
Expand description
Flexible builder for a Manager
.
This sample should be all you ever need to use. It is identical to Manager::default
but does not panic on failure.
let manager = ManagerBuilder::new().build()?;
Implementations§
source§impl ManagerBuilder
impl ManagerBuilder
sourcepub fn with_port(self, port: u16) -> Self
pub fn with_port(self, port: u16) -> Self
Use the given port for the extension server instead of the default.
If this is not called before build
, then the “PARAMETERS_SECRETS_EXTENSION_HTTP_PORT”
environment variable will be used, or 2773 if this is not set.
sourcepub fn with_token(self, token: String) -> Self
pub fn with_token(self, token: String) -> Self
Use the given token to authenticate with the extension server instead of the default.
If this is not called before build
, then the “AWS_SESSION_TOKEN”
environment variable will be used.