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 moreAuto Trait Implementations§
impl Freeze for PresigningConfig
impl RefUnwindSafe for PresigningConfig
impl Send for PresigningConfig
impl Sync for PresigningConfig
impl Unpin for PresigningConfig
impl UnwindSafe for PresigningConfig
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,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.