#[non_exhaustive]pub struct AwsMsk {
pub state: State,
pub cluster_arn: String,
pub topic: String,
pub aws_role_arn: String,
pub gcp_service_account: String,
/* private fields */
}Expand description
Ingestion settings for Amazon MSK.
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.state: StateOutput only. An output-only field that indicates the state of the Amazon MSK ingestion source.
cluster_arn: StringRequired. The Amazon Resource Name (ARN) that uniquely identifies the cluster.
topic: StringRequired. The name of the topic in the Amazon MSK cluster that Pub/Sub will import from.
aws_role_arn: StringRequired. AWS role ARN to be used for Federated Identity authentication with Amazon MSK. Check the Pub/Sub docs for how to set up this role and the required permissions that need to be attached to it.
gcp_service_account: StringRequired. The GCP service account to be used for Federated Identity
authentication with Amazon MSK (via a AssumeRoleWithWebIdentity call
for the provided role). The aws_role_arn must be set up with
accounts.google.com:sub equals to this service account number.
Implementations§
Source§impl AwsMsk
impl AwsMsk
Sourcepub fn set_cluster_arn<T: Into<String>>(self, v: T) -> Self
pub fn set_cluster_arn<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_aws_role_arn<T: Into<String>>(self, v: T) -> Self
pub fn set_aws_role_arn<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_gcp_service_account<T: Into<String>>(self, v: T) -> Self
pub fn set_gcp_service_account<T: Into<String>>(self, v: T) -> Self
Sets the value of gcp_service_account.
§Example
let x = AwsMsk::new().set_gcp_service_account("example");Trait Implementations§
impl StructuralPartialEq for AwsMsk
Auto Trait Implementations§
impl Freeze for AwsMsk
impl RefUnwindSafe for AwsMsk
impl Send for AwsMsk
impl Sync for AwsMsk
impl Unpin for AwsMsk
impl UnsafeUnpin for AwsMsk
impl UnwindSafe for AwsMsk
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request