Struct aws_sdk_iot::types::PresignedUrlConfig
source · #[non_exhaustive]pub struct PresignedUrlConfig {
pub role_arn: Option<String>,
pub expires_in_sec: Option<i64>,
}
Expand description
Configuration for pre-signed S3 URLs.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.role_arn: Option<String>
The ARN of an IAM role that grants permission to download files from the S3 bucket where the job data/updates are stored. The role must also grant permission for IoT to download the files.
For information about addressing the confused deputy problem, see cross-service confused deputy prevention in the Amazon Web Services IoT Core developer guide.
expires_in_sec: Option<i64>
How long (in seconds) pre-signed URLs are valid. Valid values are 60 - 3600, the default value is 3600 seconds. Pre-signed URLs are generated when Jobs receives an MQTT request for the job document.
Implementations§
source§impl PresignedUrlConfig
impl PresignedUrlConfig
sourcepub fn role_arn(&self) -> Option<&str>
pub fn role_arn(&self) -> Option<&str>
The ARN of an IAM role that grants permission to download files from the S3 bucket where the job data/updates are stored. The role must also grant permission for IoT to download the files.
For information about addressing the confused deputy problem, see cross-service confused deputy prevention in the Amazon Web Services IoT Core developer guide.
sourcepub fn expires_in_sec(&self) -> Option<i64>
pub fn expires_in_sec(&self) -> Option<i64>
How long (in seconds) pre-signed URLs are valid. Valid values are 60 - 3600, the default value is 3600 seconds. Pre-signed URLs are generated when Jobs receives an MQTT request for the job document.
source§impl PresignedUrlConfig
impl PresignedUrlConfig
sourcepub fn builder() -> PresignedUrlConfigBuilder
pub fn builder() -> PresignedUrlConfigBuilder
Creates a new builder-style object to manufacture PresignedUrlConfig
.
Trait Implementations§
source§impl Clone for PresignedUrlConfig
impl Clone for PresignedUrlConfig
source§fn clone(&self) -> PresignedUrlConfig
fn clone(&self) -> PresignedUrlConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PresignedUrlConfig
impl Debug for PresignedUrlConfig
source§impl PartialEq for PresignedUrlConfig
impl PartialEq for PresignedUrlConfig
source§fn eq(&self, other: &PresignedUrlConfig) -> bool
fn eq(&self, other: &PresignedUrlConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PresignedUrlConfig
Auto Trait Implementations§
impl Freeze for PresignedUrlConfig
impl RefUnwindSafe for PresignedUrlConfig
impl Send for PresignedUrlConfig
impl Sync for PresignedUrlConfig
impl Unpin for PresignedUrlConfig
impl UnwindSafe for PresignedUrlConfig
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
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>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more