Struct aws_sdk_fms::operation::put_notification_channel::builders::PutNotificationChannelFluentBuilder
source · pub struct PutNotificationChannelFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to PutNotificationChannel
.
Designates the IAM role and Amazon Simple Notification Service (SNS) topic that Firewall Manager uses to record SNS logs.
To perform this action outside of the console, you must first configure the SNS topic's access policy to allow the SnsRoleName
to publish SNS logs. If the SnsRoleName
provided is a role other than the AWSServiceRoleForFMS
service-linked role, this role must have a trust relationship configured to allow the Firewall Manager service principal fms.amazonaws.com
to assume this role. For information about configuring an SNS access policy, see Service roles for Firewall Manager in the Firewall Manager Developer Guide.
Implementations§
source§impl PutNotificationChannelFluentBuilder
impl PutNotificationChannelFluentBuilder
sourcepub fn as_input(&self) -> &PutNotificationChannelInputBuilder
pub fn as_input(&self) -> &PutNotificationChannelInputBuilder
Access the PutNotificationChannel as a reference.
sourcepub async fn send(
self
) -> Result<PutNotificationChannelOutput, SdkError<PutNotificationChannelError, HttpResponse>>
pub async fn send( self ) -> Result<PutNotificationChannelOutput, SdkError<PutNotificationChannelError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<PutNotificationChannelOutput, PutNotificationChannelError, Self>
pub fn customize( self ) -> CustomizableOperation<PutNotificationChannelOutput, PutNotificationChannelError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn sns_topic_arn(self, input: impl Into<String>) -> Self
pub fn sns_topic_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the SNS topic that collects notifications from Firewall Manager.
sourcepub fn set_sns_topic_arn(self, input: Option<String>) -> Self
pub fn set_sns_topic_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the SNS topic that collects notifications from Firewall Manager.
sourcepub fn get_sns_topic_arn(&self) -> &Option<String>
pub fn get_sns_topic_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the SNS topic that collects notifications from Firewall Manager.
sourcepub fn sns_role_name(self, input: impl Into<String>) -> Self
pub fn sns_role_name(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the IAM role that allows Amazon SNS to record Firewall Manager activity.
sourcepub fn set_sns_role_name(self, input: Option<String>) -> Self
pub fn set_sns_role_name(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the IAM role that allows Amazon SNS to record Firewall Manager activity.
sourcepub fn get_sns_role_name(&self) -> &Option<String>
pub fn get_sns_role_name(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the IAM role that allows Amazon SNS to record Firewall Manager activity.
Trait Implementations§
source§impl Clone for PutNotificationChannelFluentBuilder
impl Clone for PutNotificationChannelFluentBuilder
source§fn clone(&self) -> PutNotificationChannelFluentBuilder
fn clone(&self) -> PutNotificationChannelFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for PutNotificationChannelFluentBuilder
impl !RefUnwindSafe for PutNotificationChannelFluentBuilder
impl Send for PutNotificationChannelFluentBuilder
impl Sync for PutNotificationChannelFluentBuilder
impl Unpin for PutNotificationChannelFluentBuilder
impl !UnwindSafe for PutNotificationChannelFluentBuilder
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