Struct aws_sdk_s3::presigning::PresigningConfig
source · #[non_exhaustive]pub struct PresigningConfig { /* private fields */ }
Expand description
Presigning config values required for creating a presigned request.
Implementations§
source§impl PresigningConfig
impl PresigningConfig
sourcepub fn expires_in(
expires_in: Duration
) -> Result<PresigningConfig, PresigningConfigError>
pub fn expires_in( expires_in: Duration ) -> Result<PresigningConfig, PresigningConfigError>
Creates a PresigningConfig
with the given expires_in
duration.
The expires_in
duration is the total amount of time the presigned request should
be valid for. Other config values are defaulted.
Credential expiration time takes priority over the expires_in
value.
If the credentials used to sign the request expire before the presigned request is
set to expire, then the presigned request will become invalid.
sourcepub fn builder() -> PresigningConfigBuilder
pub fn builder() -> PresigningConfigBuilder
Creates a new builder for creating a PresigningConfig
.
sourcepub fn expires(&self) -> Duration
pub fn expires(&self) -> Duration
Returns the amount of time the presigned request should be valid for.
sourcepub fn start_time(&self) -> SystemTime
pub fn start_time(&self) -> SystemTime
Returns the start time. The presigned request will be valid between this and the end
time produced by adding the expires()
value to it.
Trait Implementations§
source§impl Clone for PresigningConfig
impl Clone for PresigningConfig
source§fn clone(&self) -> PresigningConfig
fn clone(&self) -> PresigningConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more