Struct aws_sdk_iot::types::KafkaAction
source · #[non_exhaustive]pub struct KafkaAction {
pub destination_arn: String,
pub topic: String,
pub key: Option<String>,
pub partition: Option<String>,
pub client_properties: HashMap<String, String>,
pub headers: Option<Vec<KafkaActionHeader>>,
}
Expand description
Send messages to an Amazon Managed Streaming for Apache Kafka (Amazon MSK) or self-managed Apache Kafka cluster.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.destination_arn: String
The ARN of Kafka action's VPC TopicRuleDestination
.
topic: String
The Kafka topic for messages to be sent to the Kafka broker.
key: Option<String>
The Kafka message key.
partition: Option<String>
The Kafka message partition.
client_properties: HashMap<String, String>
Properties of the Apache Kafka producer client.
headers: Option<Vec<KafkaActionHeader>>
The list of Kafka headers that you specify.
Implementations§
source§impl KafkaAction
impl KafkaAction
sourcepub fn destination_arn(&self) -> &str
pub fn destination_arn(&self) -> &str
The ARN of Kafka action's VPC TopicRuleDestination
.
sourcepub fn client_properties(&self) -> &HashMap<String, String>
pub fn client_properties(&self) -> &HashMap<String, String>
Properties of the Apache Kafka producer client.
sourcepub fn headers(&self) -> &[KafkaActionHeader]
pub fn headers(&self) -> &[KafkaActionHeader]
The list of Kafka headers that you specify.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .headers.is_none()
.
source§impl KafkaAction
impl KafkaAction
sourcepub fn builder() -> KafkaActionBuilder
pub fn builder() -> KafkaActionBuilder
Creates a new builder-style object to manufacture KafkaAction
.
Trait Implementations§
source§impl Clone for KafkaAction
impl Clone for KafkaAction
source§fn clone(&self) -> KafkaAction
fn clone(&self) -> KafkaAction
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for KafkaAction
impl Debug for KafkaAction
source§impl PartialEq for KafkaAction
impl PartialEq for KafkaAction
source§fn eq(&self, other: &KafkaAction) -> bool
fn eq(&self, other: &KafkaAction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for KafkaAction
Auto Trait Implementations§
impl RefUnwindSafe for KafkaAction
impl Send for KafkaAction
impl Sync for KafkaAction
impl Unpin for KafkaAction
impl UnwindSafe for KafkaAction
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
Mutably borrows from an owned value. Read more
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>
Creates a shared type from an unshared type.