#[non_exhaustive]pub enum AmazonS3ConfigKey {
Show 13 variants
AccessKeyId,
SecretAccessKey,
Region,
DefaultRegion,
Token,
ImdsV1Fallback,
MetadataEndpoint,
ContainerCredentialsRelativeUri,
SkipSignature,
RoleArn,
RoleSessionName,
StsEndpoint,
Client(ClientConfigKey),
}Expand description
Configuration keys for AmazonBuilder
Configuration via keys can be done via AmazonBuilder::with_config
§Example
let builder = AmazonBuilder::new()
.with_config("aws_access_key_id".parse().unwrap(), "my-access-key-id")
.with_config(AmazonS3ConfigKey::DefaultRegion, "my-default-region");Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
AccessKeyId
AWS Access Key
Supported keys:
aws_access_key_idaccess_key_id
SecretAccessKey
Secret Access Key
Supported keys:
aws_secret_access_keysecret_access_key
Region
Region
Supported keys:
aws_regionregion
DefaultRegion
Default region
Supported keys:
aws_default_regiondefault_region
Token
Token to use for requests (passed to underlying provider)
Supported keys:
aws_session_tokenaws_tokensession_tokentoken
ImdsV1Fallback
Fall back to ImdsV1
Supported keys:
aws_imdsv1_fallbackimdsv1_fallback
MetadataEndpoint
Set the instance metadata endpoint
Supported keys:
aws_metadata_endpointmetadata_endpoint
ContainerCredentialsRelativeUri
Set the container credentials relative URI
https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-iam-roles.html
SkipSignature
Skip signing request
RoleArn
IAM role ARN to assume via STS AssumeRole.
Supported keys:
aws_role_arnrole_arn
RoleSessionName
Session name for the assumed role.
Supported keys:
aws_role_session_namerole_session_name
StsEndpoint
STS endpoint override for AssumeRole.
Supported keys:
aws_sts_endpointsts_endpoint
Client(ClientConfigKey)
Client options
Trait Implementations§
Source§impl AsRef<str> for AmazonS3ConfigKey
impl AsRef<str> for AmazonS3ConfigKey
Source§impl Clone for AmazonS3ConfigKey
impl Clone for AmazonS3ConfigKey
Source§fn clone(&self) -> AmazonS3ConfigKey
fn clone(&self) -> AmazonS3ConfigKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AmazonS3ConfigKey
Source§impl Debug for AmazonS3ConfigKey
impl Debug for AmazonS3ConfigKey
Source§impl<'de> Deserialize<'de> for AmazonS3ConfigKey
impl<'de> Deserialize<'de> for AmazonS3ConfigKey
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AmazonS3ConfigKey
Source§impl FromStr for AmazonS3ConfigKey
impl FromStr for AmazonS3ConfigKey
Source§impl Hash for AmazonS3ConfigKey
impl Hash for AmazonS3ConfigKey
Source§impl PartialEq for AmazonS3ConfigKey
impl PartialEq for AmazonS3ConfigKey
Source§fn eq(&self, other: &AmazonS3ConfigKey) -> bool
fn eq(&self, other: &AmazonS3ConfigKey) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AmazonS3ConfigKey
impl Serialize for AmazonS3ConfigKey
impl StructuralPartialEq for AmazonS3ConfigKey
Auto Trait Implementations§
impl Freeze for AmazonS3ConfigKey
impl RefUnwindSafe for AmazonS3ConfigKey
impl Send for AmazonS3ConfigKey
impl Sync for AmazonS3ConfigKey
impl Unpin for AmazonS3ConfigKey
impl UnsafeUnpin for AmazonS3ConfigKey
impl UnwindSafe for AmazonS3ConfigKey
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.