#[non_exhaustive]
pub struct FlowLogBuilder { /* private fields */ }
Expand description

A builder for FlowLog.

Implementations§

source§

impl FlowLogBuilder

source

pub fn creation_time(self, input: DateTime) -> Self

The date and time the flow log was created.

source

pub fn set_creation_time(self, input: Option<DateTime>) -> Self

The date and time the flow log was created.

source

pub fn get_creation_time(&self) -> &Option<DateTime>

The date and time the flow log was created.

source

pub fn deliver_logs_error_message(self, input: impl Into<String>) -> Self

Information about the error that occurred. Rate limited indicates that CloudWatch Logs throttling has been applied for one or more network interfaces, or that you've reached the limit on the number of log groups that you can create. Access error indicates that the IAM role associated with the flow log does not have sufficient permissions to publish to CloudWatch Logs. Unknown error indicates an internal error.

source

pub fn set_deliver_logs_error_message(self, input: Option<String>) -> Self

Information about the error that occurred. Rate limited indicates that CloudWatch Logs throttling has been applied for one or more network interfaces, or that you've reached the limit on the number of log groups that you can create. Access error indicates that the IAM role associated with the flow log does not have sufficient permissions to publish to CloudWatch Logs. Unknown error indicates an internal error.

source

pub fn get_deliver_logs_error_message(&self) -> &Option<String>

Information about the error that occurred. Rate limited indicates that CloudWatch Logs throttling has been applied for one or more network interfaces, or that you've reached the limit on the number of log groups that you can create. Access error indicates that the IAM role associated with the flow log does not have sufficient permissions to publish to CloudWatch Logs. Unknown error indicates an internal error.

source

pub fn deliver_logs_permission_arn(self, input: impl Into<String>) -> Self

The ARN of the IAM role allows the service to publish logs to CloudWatch Logs.

source

pub fn set_deliver_logs_permission_arn(self, input: Option<String>) -> Self

The ARN of the IAM role allows the service to publish logs to CloudWatch Logs.

source

pub fn get_deliver_logs_permission_arn(&self) -> &Option<String>

The ARN of the IAM role allows the service to publish logs to CloudWatch Logs.

source

pub fn deliver_cross_account_role(self, input: impl Into<String>) -> Self

The ARN of the IAM role that allows the service to publish flow logs across accounts.

source

pub fn set_deliver_cross_account_role(self, input: Option<String>) -> Self

The ARN of the IAM role that allows the service to publish flow logs across accounts.

source

pub fn get_deliver_cross_account_role(&self) -> &Option<String>

The ARN of the IAM role that allows the service to publish flow logs across accounts.

source

pub fn deliver_logs_status(self, input: impl Into<String>) -> Self

The status of the logs delivery (SUCCESS | FAILED).

source

pub fn set_deliver_logs_status(self, input: Option<String>) -> Self

The status of the logs delivery (SUCCESS | FAILED).

source

pub fn get_deliver_logs_status(&self) -> &Option<String>

The status of the logs delivery (SUCCESS | FAILED).

source

pub fn flow_log_id(self, input: impl Into<String>) -> Self

The ID of the flow log.

source

pub fn set_flow_log_id(self, input: Option<String>) -> Self

The ID of the flow log.

source

pub fn get_flow_log_id(&self) -> &Option<String>

The ID of the flow log.

source

pub fn flow_log_status(self, input: impl Into<String>) -> Self

The status of the flow log (ACTIVE).

source

pub fn set_flow_log_status(self, input: Option<String>) -> Self

The status of the flow log (ACTIVE).

source

pub fn get_flow_log_status(&self) -> &Option<String>

The status of the flow log (ACTIVE).

source

pub fn log_group_name(self, input: impl Into<String>) -> Self

The name of the flow log group.

source

pub fn set_log_group_name(self, input: Option<String>) -> Self

The name of the flow log group.

source

pub fn get_log_group_name(&self) -> &Option<String>

The name of the flow log group.

source

pub fn resource_id(self, input: impl Into<String>) -> Self

The ID of the resource being monitored.

source

pub fn set_resource_id(self, input: Option<String>) -> Self

The ID of the resource being monitored.

source

pub fn get_resource_id(&self) -> &Option<String>

The ID of the resource being monitored.

source

pub fn traffic_type(self, input: TrafficType) -> Self

The type of traffic captured for the flow log.

source

pub fn set_traffic_type(self, input: Option<TrafficType>) -> Self

The type of traffic captured for the flow log.

source

pub fn get_traffic_type(&self) -> &Option<TrafficType>

The type of traffic captured for the flow log.

source

pub fn log_destination_type(self, input: LogDestinationType) -> Self

The type of destination for the flow log data.

source

pub fn set_log_destination_type(self, input: Option<LogDestinationType>) -> Self

The type of destination for the flow log data.

source

pub fn get_log_destination_type(&self) -> &Option<LogDestinationType>

The type of destination for the flow log data.

source

pub fn log_destination(self, input: impl Into<String>) -> Self

The Amazon Resource Name (ARN) of the destination for the flow log data.

source

pub fn set_log_destination(self, input: Option<String>) -> Self

The Amazon Resource Name (ARN) of the destination for the flow log data.

source

pub fn get_log_destination(&self) -> &Option<String>

The Amazon Resource Name (ARN) of the destination for the flow log data.

source

pub fn log_format(self, input: impl Into<String>) -> Self

The format of the flow log record.

source

pub fn set_log_format(self, input: Option<String>) -> Self

The format of the flow log record.

source

pub fn get_log_format(&self) -> &Option<String>

The format of the flow log record.

source

pub fn tags(self, input: Tag) -> Self

Appends an item to tags.

To override the contents of this collection use set_tags.

The tags for the flow log.

source

pub fn set_tags(self, input: Option<Vec<Tag>>) -> Self

The tags for the flow log.

source

pub fn get_tags(&self) -> &Option<Vec<Tag>>

The tags for the flow log.

source

pub fn max_aggregation_interval(self, input: i32) -> Self

The maximum interval of time, in seconds, during which a flow of packets is captured and aggregated into a flow log record.

When a network interface is attached to a Nitro-based instance, the aggregation interval is always 60 seconds (1 minute) or less, regardless of the specified value.

Valid Values: 60 | 600

source

pub fn set_max_aggregation_interval(self, input: Option<i32>) -> Self

The maximum interval of time, in seconds, during which a flow of packets is captured and aggregated into a flow log record.

When a network interface is attached to a Nitro-based instance, the aggregation interval is always 60 seconds (1 minute) or less, regardless of the specified value.

Valid Values: 60 | 600

source

pub fn get_max_aggregation_interval(&self) -> &Option<i32>

The maximum interval of time, in seconds, during which a flow of packets is captured and aggregated into a flow log record.

When a network interface is attached to a Nitro-based instance, the aggregation interval is always 60 seconds (1 minute) or less, regardless of the specified value.

Valid Values: 60 | 600

source

pub fn destination_options(self, input: DestinationOptionsResponse) -> Self

The destination options.

source

pub fn set_destination_options( self, input: Option<DestinationOptionsResponse> ) -> Self

The destination options.

source

pub fn get_destination_options(&self) -> &Option<DestinationOptionsResponse>

The destination options.

source

pub fn build(self) -> FlowLog

Consumes the builder and constructs a FlowLog.

Trait Implementations§

source§

impl Clone for FlowLogBuilder

source§

fn clone(&self) -> FlowLogBuilder

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for FlowLogBuilder

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for FlowLogBuilder

source§

fn default() -> FlowLogBuilder

Returns the “default value” for a type. Read more
source§

impl PartialEq for FlowLogBuilder

source§

fn eq(&self, other: &FlowLogBuilder) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for FlowLogBuilder

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<Unshared, Shared> IntoShared<Shared> for Unsharedwhere Shared: FromUnshared<Unshared>,

source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more