Struct aws_sdk_iot::types::builders::PresignedUrlConfigBuilder
source · #[non_exhaustive]pub struct PresignedUrlConfigBuilder { /* private fields */ }
Expand description
A builder for PresignedUrlConfig
.
Implementations§
source§impl PresignedUrlConfigBuilder
impl PresignedUrlConfigBuilder
sourcepub fn role_arn(self, input: impl Into<String>) -> Self
pub fn role_arn(self, input: impl Into<String>) -> Self
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 set_role_arn(self, input: Option<String>) -> Self
pub fn set_role_arn(self, input: Option<String>) -> Self
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 get_role_arn(&self) -> &Option<String>
pub fn get_role_arn(&self) -> &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.
sourcepub fn expires_in_sec(self, input: i64) -> Self
pub fn expires_in_sec(self, input: i64) -> Self
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.
sourcepub fn set_expires_in_sec(self, input: Option<i64>) -> Self
pub fn set_expires_in_sec(self, input: Option<i64>) -> Self
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.
sourcepub fn get_expires_in_sec(&self) -> &Option<i64>
pub fn get_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.
sourcepub fn build(self) -> PresignedUrlConfig
pub fn build(self) -> PresignedUrlConfig
Consumes the builder and constructs a PresignedUrlConfig
.
Trait Implementations§
source§impl Clone for PresignedUrlConfigBuilder
impl Clone for PresignedUrlConfigBuilder
source§fn clone(&self) -> PresignedUrlConfigBuilder
fn clone(&self) -> PresignedUrlConfigBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PresignedUrlConfigBuilder
impl Debug for PresignedUrlConfigBuilder
source§impl Default for PresignedUrlConfigBuilder
impl Default for PresignedUrlConfigBuilder
source§fn default() -> PresignedUrlConfigBuilder
fn default() -> PresignedUrlConfigBuilder
source§impl PartialEq for PresignedUrlConfigBuilder
impl PartialEq for PresignedUrlConfigBuilder
source§fn eq(&self, other: &PresignedUrlConfigBuilder) -> bool
fn eq(&self, other: &PresignedUrlConfigBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.