Struct aws_sdk_ec2::types::FlowLog

source ·
#[non_exhaustive]
pub struct FlowLog {
Show 16 fields pub creation_time: Option<DateTime>, pub deliver_logs_error_message: Option<String>, pub deliver_logs_permission_arn: Option<String>, pub deliver_cross_account_role: Option<String>, pub deliver_logs_status: Option<String>, pub flow_log_id: Option<String>, pub flow_log_status: Option<String>, pub log_group_name: Option<String>, pub resource_id: Option<String>, pub traffic_type: Option<TrafficType>, pub log_destination_type: Option<LogDestinationType>, pub log_destination: Option<String>, pub log_format: Option<String>, pub tags: Option<Vec<Tag>>, pub max_aggregation_interval: Option<i32>, pub destination_options: Option<DestinationOptionsResponse>,
}
Expand description

Describes a flow log.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§creation_time: Option<DateTime>

The date and time the flow log was created.

§deliver_logs_error_message: 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.

§deliver_logs_permission_arn: Option<String>

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

§deliver_cross_account_role: Option<String>

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

§deliver_logs_status: Option<String>

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

§flow_log_id: Option<String>

The ID of the flow log.

§flow_log_status: Option<String>

The status of the flow log (ACTIVE).

§log_group_name: Option<String>

The name of the flow log group.

§resource_id: Option<String>

The ID of the resource being monitored.

§traffic_type: Option<TrafficType>

The type of traffic captured for the flow log.

§log_destination_type: Option<LogDestinationType>

The type of destination for the flow log data.

§log_destination: Option<String>

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

§log_format: Option<String>

The format of the flow log record.

§tags: Option<Vec<Tag>>

The tags for the flow log.

§max_aggregation_interval: 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

§destination_options: Option<DestinationOptionsResponse>

The destination options.

Implementations§

source§

impl FlowLog

source

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

The date and time the flow log was created.

source

pub fn deliver_logs_error_message(&self) -> Option<&str>

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) -> Option<&str>

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

source

pub fn deliver_cross_account_role(&self) -> Option<&str>

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

source

pub fn deliver_logs_status(&self) -> Option<&str>

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

source

pub fn flow_log_id(&self) -> Option<&str>

The ID of the flow log.

source

pub fn flow_log_status(&self) -> Option<&str>

The status of the flow log (ACTIVE).

source

pub fn log_group_name(&self) -> Option<&str>

The name of the flow log group.

source

pub fn resource_id(&self) -> Option<&str>

The ID of the resource being monitored.

source

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

The type of traffic captured for the flow log.

source

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

The type of destination for the flow log data.

source

pub fn log_destination(&self) -> Option<&str>

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

source

pub fn log_format(&self) -> Option<&str>

The format of the flow log record.

source

pub fn tags(&self) -> Option<&[Tag]>

The tags for the flow log.

source

pub fn 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) -> Option<&DestinationOptionsResponse>

The destination options.

source§

impl FlowLog

source

pub fn builder() -> FlowLogBuilder

Creates a new builder-style object to manufacture FlowLog.

Trait Implementations§

source§

impl Clone for FlowLog

source§

fn clone(&self) -> FlowLog

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 FlowLog

source§

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

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

impl PartialEq<FlowLog> for FlowLog

source§

fn eq(&self, other: &FlowLog) -> 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 FlowLog

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<T> Same<T> 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