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 ==
.