aws_sdk_notifications/client/
get_notification_event.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`GetNotificationEvent`](crate::operation::get_notification_event::builders::GetNotificationEventFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`arn(impl Into<String>)`](crate::operation::get_notification_event::builders::GetNotificationEventFluentBuilder::arn) / [`set_arn(Option<String>)`](crate::operation::get_notification_event::builders::GetNotificationEventFluentBuilder::set_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the <code>NotificationEvent</code> to return.</p><br>
7    ///   - [`locale(LocaleCode)`](crate::operation::get_notification_event::builders::GetNotificationEventFluentBuilder::locale) / [`set_locale(Option<LocaleCode>)`](crate::operation::get_notification_event::builders::GetNotificationEventFluentBuilder::set_locale):<br>required: **false**<br><p>The locale code of the language used for the retrieved <code>NotificationEvent</code>. The default locale is English <code>en_US</code>.</p><br>
8    /// - On success, responds with [`GetNotificationEventOutput`](crate::operation::get_notification_event::GetNotificationEventOutput) with field(s):
9    ///   - [`arn(String)`](crate::operation::get_notification_event::GetNotificationEventOutput::arn): <p>The ARN of the resource.</p>
10    ///   - [`notification_configuration_arn(String)`](crate::operation::get_notification_event::GetNotificationEventOutput::notification_configuration_arn): <p>The ARN of the <code>NotificationConfiguration</code>.</p>
11    ///   - [`creation_time(DateTime)`](crate::operation::get_notification_event::GetNotificationEventOutput::creation_time): <p>The creation time of the <code>NotificationEvent</code>.</p>
12    ///   - [`content(Option<NotificationEventSchema>)`](crate::operation::get_notification_event::GetNotificationEventOutput::content): <p>The content of the <code>NotificationEvent</code>.</p>
13    /// - On failure, responds with [`SdkError<GetNotificationEventError>`](crate::operation::get_notification_event::GetNotificationEventError)
14    pub fn get_notification_event(&self) -> crate::operation::get_notification_event::builders::GetNotificationEventFluentBuilder {
15        crate::operation::get_notification_event::builders::GetNotificationEventFluentBuilder::new(self.handle.clone())
16    }
17}