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 ==
.impl StructuralPartialEq for PresignedUrlConfigBuilder
Auto Trait Implementations§
impl Freeze for PresignedUrlConfigBuilder
impl RefUnwindSafe for PresignedUrlConfigBuilder
impl Send for PresignedUrlConfigBuilder
impl Sync for PresignedUrlConfigBuilder
impl Unpin for PresignedUrlConfigBuilder
impl UnwindSafe for PresignedUrlConfigBuilder
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