Struct aws_sdk_iot::types::builders::SnsActionBuilder
source · #[non_exhaustive]pub struct SnsActionBuilder { /* private fields */ }
Expand description
A builder for SnsAction
.
Implementations§
source§impl SnsActionBuilder
impl SnsActionBuilder
sourcepub fn target_arn(self, input: impl Into<String>) -> Self
pub fn target_arn(self, input: impl Into<String>) -> Self
The ARN of the SNS topic.
This field is required.sourcepub fn set_target_arn(self, input: Option<String>) -> Self
pub fn set_target_arn(self, input: Option<String>) -> Self
The ARN of the SNS topic.
sourcepub fn get_target_arn(&self) -> &Option<String>
pub fn get_target_arn(&self) -> &Option<String>
The ARN of the SNS topic.
sourcepub fn role_arn(self, input: impl Into<String>) -> Self
pub fn role_arn(self, input: impl Into<String>) -> Self
The ARN of the IAM role that grants access.
This field is required.sourcepub fn set_role_arn(self, input: Option<String>) -> Self
pub fn set_role_arn(self, input: Option<String>) -> Self
The ARN of the IAM role that grants access.
sourcepub fn get_role_arn(&self) -> &Option<String>
pub fn get_role_arn(&self) -> &Option<String>
The ARN of the IAM role that grants access.
sourcepub fn message_format(self, input: MessageFormat) -> Self
pub fn message_format(self, input: MessageFormat) -> Self
(Optional) The message format of the message to publish. Accepted values are "JSON" and "RAW". The default value of the attribute is "RAW". SNS uses this setting to determine if the payload should be parsed and relevant platform-specific bits of the payload should be extracted. To read more about SNS message formats, see https://docs.aws.amazon.com/sns/latest/dg/json-formats.html refer to their official documentation.
sourcepub fn set_message_format(self, input: Option<MessageFormat>) -> Self
pub fn set_message_format(self, input: Option<MessageFormat>) -> Self
(Optional) The message format of the message to publish. Accepted values are "JSON" and "RAW". The default value of the attribute is "RAW". SNS uses this setting to determine if the payload should be parsed and relevant platform-specific bits of the payload should be extracted. To read more about SNS message formats, see https://docs.aws.amazon.com/sns/latest/dg/json-formats.html refer to their official documentation.
sourcepub fn get_message_format(&self) -> &Option<MessageFormat>
pub fn get_message_format(&self) -> &Option<MessageFormat>
(Optional) The message format of the message to publish. Accepted values are "JSON" and "RAW". The default value of the attribute is "RAW". SNS uses this setting to determine if the payload should be parsed and relevant platform-specific bits of the payload should be extracted. To read more about SNS message formats, see https://docs.aws.amazon.com/sns/latest/dg/json-formats.html refer to their official documentation.
Trait Implementations§
source§impl Clone for SnsActionBuilder
impl Clone for SnsActionBuilder
source§fn clone(&self) -> SnsActionBuilder
fn clone(&self) -> SnsActionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SnsActionBuilder
impl Debug for SnsActionBuilder
source§impl Default for SnsActionBuilder
impl Default for SnsActionBuilder
source§fn default() -> SnsActionBuilder
fn default() -> SnsActionBuilder
source§impl PartialEq for SnsActionBuilder
impl PartialEq for SnsActionBuilder
source§fn eq(&self, other: &SnsActionBuilder) -> bool
fn eq(&self, other: &SnsActionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SnsActionBuilder
Auto Trait Implementations§
impl Freeze for SnsActionBuilder
impl RefUnwindSafe for SnsActionBuilder
impl Send for SnsActionBuilder
impl Sync for SnsActionBuilder
impl Unpin for SnsActionBuilder
impl UnwindSafe for SnsActionBuilder
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