Struct aws_sdk_iot::types::FirehoseAction
source · #[non_exhaustive]pub struct FirehoseAction {
pub role_arn: String,
pub delivery_stream_name: String,
pub separator: Option<String>,
pub batch_mode: Option<bool>,
}
Expand description
Describes an action that writes data to an Amazon Kinesis Firehose stream.
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: String
The IAM role that grants access to the Amazon Kinesis Firehose stream.
delivery_stream_name: String
The delivery stream name.
separator: Option<String>
A character separator that will be used to separate records written to the Firehose stream. Valid values are: '\n' (newline), '\t' (tab), '\r\n' (Windows newline), ',' (comma).
batch_mode: Option<bool>
Whether to deliver the Kinesis Data Firehose stream as a batch by using PutRecordBatch
. The default value is false
.
When batchMode
is true
and the rule's SQL statement evaluates to an Array, each Array element forms one record in the PutRecordBatch
request. The resulting array can't have more than 500 records.
Implementations§
source§impl FirehoseAction
impl FirehoseAction
sourcepub fn role_arn(&self) -> &str
pub fn role_arn(&self) -> &str
The IAM role that grants access to the Amazon Kinesis Firehose stream.
sourcepub fn delivery_stream_name(&self) -> &str
pub fn delivery_stream_name(&self) -> &str
The delivery stream name.
sourcepub fn separator(&self) -> Option<&str>
pub fn separator(&self) -> Option<&str>
A character separator that will be used to separate records written to the Firehose stream. Valid values are: '\n' (newline), '\t' (tab), '\r\n' (Windows newline), ',' (comma).
sourcepub fn batch_mode(&self) -> Option<bool>
pub fn batch_mode(&self) -> Option<bool>
Whether to deliver the Kinesis Data Firehose stream as a batch by using PutRecordBatch
. The default value is false
.
When batchMode
is true
and the rule's SQL statement evaluates to an Array, each Array element forms one record in the PutRecordBatch
request. The resulting array can't have more than 500 records.
source§impl FirehoseAction
impl FirehoseAction
sourcepub fn builder() -> FirehoseActionBuilder
pub fn builder() -> FirehoseActionBuilder
Creates a new builder-style object to manufacture FirehoseAction
.
Trait Implementations§
source§impl Clone for FirehoseAction
impl Clone for FirehoseAction
source§fn clone(&self) -> FirehoseAction
fn clone(&self) -> FirehoseAction
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FirehoseAction
impl Debug for FirehoseAction
source§impl PartialEq for FirehoseAction
impl PartialEq for FirehoseAction
source§fn eq(&self, other: &FirehoseAction) -> bool
fn eq(&self, other: &FirehoseAction) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for FirehoseAction
Auto Trait Implementations§
impl Freeze for FirehoseAction
impl RefUnwindSafe for FirehoseAction
impl Send for FirehoseAction
impl Sync for FirehoseAction
impl Unpin for FirehoseAction
impl UnwindSafe for FirehoseAction
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