pub type Builder = Builder;
Expand description
Use aws_runtime::env_config::file::Builder instead.
Aliased Type§
struct Builder { /* private fields */ }
Implementations
Source§impl Builder
impl Builder
Sourcepub fn include_default_config_file(
self,
include_default_config_file: bool,
) -> Builder
pub fn include_default_config_file( self, include_default_config_file: bool, ) -> Builder
Include the default SDK config file in the list of profile files to be loaded.
The default SDK config typically resides in ~/.aws/config
. When this flag is enabled,
this config file will be included in the profile files that get loaded in the built
EnvConfigFiles
file set.
This flag defaults to false
when using the builder to construct EnvConfigFiles
.
Sourcepub fn include_default_credentials_file(
self,
include_default_credentials_file: bool,
) -> Builder
pub fn include_default_credentials_file( self, include_default_credentials_file: bool, ) -> Builder
Include the default SDK credentials file in the list of profile files to be loaded.
The default SDK credentials typically reside in ~/.aws/credentials
. When this flag is enabled,
this credentials file will be included in the profile files that get loaded in the built
EnvConfigFiles
file set.
This flag defaults to false
when using the builder to construct EnvConfigFiles
.
Sourcepub fn with_file(
self,
kind: EnvConfigFileKind,
file: impl Into<PathBuf>,
) -> Builder
pub fn with_file( self, kind: EnvConfigFileKind, file: impl Into<PathBuf>, ) -> Builder
Include a custom file
in the list of profile files to be loaded.
The kind
informs the parser how to treat the file. If it’s intended to be like
the SDK credentials file typically in ~/.aws/config
, then use EnvConfigFileKind::Config
.
Otherwise, use EnvConfigFileKind::Credentials
.
Sourcepub fn with_contents(
self,
kind: EnvConfigFileKind,
contents: impl Into<String>,
) -> Builder
pub fn with_contents( self, kind: EnvConfigFileKind, contents: impl Into<String>, ) -> Builder
Include custom file contents
in the list of profile files to be loaded.
The kind
informs the parser how to treat the file. If it’s intended to be like
the SDK credentials file typically in ~/.aws/config
, then use EnvConfigFileKind::Config
.
Otherwise, use EnvConfigFileKind::Credentials
.
Sourcepub fn build(self) -> EnvConfigFiles
pub fn build(self) -> EnvConfigFiles
Build the EnvConfigFiles
file set.