aws_sdk_mailmanager/client/
get_traffic_policy.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 [`GetTrafficPolicy`](crate::operation::get_traffic_policy::builders::GetTrafficPolicyFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`traffic_policy_id(impl Into<String>)`](crate::operation::get_traffic_policy::builders::GetTrafficPolicyFluentBuilder::traffic_policy_id) / [`set_traffic_policy_id(Option<String>)`](crate::operation::get_traffic_policy::builders::GetTrafficPolicyFluentBuilder::set_traffic_policy_id):<br>required: **true**<br><p>The identifier of the traffic policy resource.</p><br>
7    /// - On success, responds with [`GetTrafficPolicyOutput`](crate::operation::get_traffic_policy::GetTrafficPolicyOutput) with field(s):
8    ///   - [`traffic_policy_name(String)`](crate::operation::get_traffic_policy::GetTrafficPolicyOutput::traffic_policy_name): <p>A user-friendly name for the traffic policy resource.</p>
9    ///   - [`traffic_policy_id(String)`](crate::operation::get_traffic_policy::GetTrafficPolicyOutput::traffic_policy_id): <p>The identifier of the traffic policy resource.</p>
10    ///   - [`traffic_policy_arn(Option<String>)`](crate::operation::get_traffic_policy::GetTrafficPolicyOutput::traffic_policy_arn): <p>The Amazon Resource Name (ARN) of the traffic policy resource.</p>
11    ///   - [`policy_statements(Option<Vec::<PolicyStatement>>)`](crate::operation::get_traffic_policy::GetTrafficPolicyOutput::policy_statements): <p>The list of conditions which are in the traffic policy resource.</p>
12    ///   - [`max_message_size_bytes(Option<i32>)`](crate::operation::get_traffic_policy::GetTrafficPolicyOutput::max_message_size_bytes): <p>The maximum message size in bytes of email which is allowed in by this traffic policy—anything larger will be blocked.</p>
13    ///   - [`default_action(Option<AcceptAction>)`](crate::operation::get_traffic_policy::GetTrafficPolicyOutput::default_action): <p>The default action of the traffic policy.</p>
14    ///   - [`created_timestamp(Option<DateTime>)`](crate::operation::get_traffic_policy::GetTrafficPolicyOutput::created_timestamp): <p>The timestamp of when the traffic policy was created.</p>
15    ///   - [`last_updated_timestamp(Option<DateTime>)`](crate::operation::get_traffic_policy::GetTrafficPolicyOutput::last_updated_timestamp): <p>The timestamp of when the traffic policy was last updated.</p>
16    /// - On failure, responds with [`SdkError<GetTrafficPolicyError>`](crate::operation::get_traffic_policy::GetTrafficPolicyError)
17    pub fn get_traffic_policy(&self) -> crate::operation::get_traffic_policy::builders::GetTrafficPolicyFluentBuilder {
18        crate::operation::get_traffic_policy::builders::GetTrafficPolicyFluentBuilder::new(self.handle.clone())
19    }
20}