Struct aws_sdk_ec2::types::builders::FlowLogBuilder
source · #[non_exhaustive]pub struct FlowLogBuilder { /* private fields */ }
Expand description
A builder for FlowLog
.
Implementations§
source§impl FlowLogBuilder
impl FlowLogBuilder
sourcepub fn creation_time(self, input: DateTime) -> Self
pub fn creation_time(self, input: DateTime) -> Self
The date and time the flow log was created.
sourcepub fn set_creation_time(self, input: Option<DateTime>) -> Self
pub fn set_creation_time(self, input: Option<DateTime>) -> Self
The date and time the flow log was created.
sourcepub fn get_creation_time(&self) -> &Option<DateTime>
pub fn get_creation_time(&self) -> &Option<DateTime>
The date and time the flow log was created.
sourcepub fn deliver_logs_error_message(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_deliver_logs_error_message(self, input: Option<String>) -> Self
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.
sourcepub fn get_deliver_logs_error_message(&self) -> &Option<String>
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.
sourcepub fn deliver_logs_permission_arn(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_deliver_logs_permission_arn(self, input: Option<String>) -> Self
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.
sourcepub fn get_deliver_logs_permission_arn(&self) -> &Option<String>
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.
sourcepub fn deliver_cross_account_role(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_deliver_cross_account_role(self, input: Option<String>) -> Self
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.
sourcepub fn get_deliver_cross_account_role(&self) -> &Option<String>
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.
sourcepub fn deliver_logs_status(self, input: impl Into<String>) -> Self
pub fn deliver_logs_status(self, input: impl Into<String>) -> Self
The status of the logs delivery (SUCCESS
| FAILED
).
sourcepub fn set_deliver_logs_status(self, input: Option<String>) -> Self
pub fn set_deliver_logs_status(self, input: Option<String>) -> Self
The status of the logs delivery (SUCCESS
| FAILED
).
sourcepub fn get_deliver_logs_status(&self) -> &Option<String>
pub fn get_deliver_logs_status(&self) -> &Option<String>
The status of the logs delivery (SUCCESS
| FAILED
).
sourcepub fn flow_log_id(self, input: impl Into<String>) -> Self
pub fn flow_log_id(self, input: impl Into<String>) -> Self
The ID of the flow log.
sourcepub fn set_flow_log_id(self, input: Option<String>) -> Self
pub fn set_flow_log_id(self, input: Option<String>) -> Self
The ID of the flow log.
sourcepub fn get_flow_log_id(&self) -> &Option<String>
pub fn get_flow_log_id(&self) -> &Option<String>
The ID of the flow log.
sourcepub fn flow_log_status(self, input: impl Into<String>) -> Self
pub fn flow_log_status(self, input: impl Into<String>) -> Self
The status of the flow log (ACTIVE
).
sourcepub fn set_flow_log_status(self, input: Option<String>) -> Self
pub fn set_flow_log_status(self, input: Option<String>) -> Self
The status of the flow log (ACTIVE
).
sourcepub fn get_flow_log_status(&self) -> &Option<String>
pub fn get_flow_log_status(&self) -> &Option<String>
The status of the flow log (ACTIVE
).
sourcepub fn log_group_name(self, input: impl Into<String>) -> Self
pub fn log_group_name(self, input: impl Into<String>) -> Self
The name of the flow log group.
sourcepub fn set_log_group_name(self, input: Option<String>) -> Self
pub fn set_log_group_name(self, input: Option<String>) -> Self
The name of the flow log group.
sourcepub fn get_log_group_name(&self) -> &Option<String>
pub fn get_log_group_name(&self) -> &Option<String>
The name of the flow log group.
sourcepub fn resource_id(self, input: impl Into<String>) -> Self
pub fn resource_id(self, input: impl Into<String>) -> Self
The ID of the resource being monitored.
sourcepub fn set_resource_id(self, input: Option<String>) -> Self
pub fn set_resource_id(self, input: Option<String>) -> Self
The ID of the resource being monitored.
sourcepub fn get_resource_id(&self) -> &Option<String>
pub fn get_resource_id(&self) -> &Option<String>
The ID of the resource being monitored.
sourcepub fn traffic_type(self, input: TrafficType) -> Self
pub fn traffic_type(self, input: TrafficType) -> Self
The type of traffic captured for the flow log.
sourcepub fn set_traffic_type(self, input: Option<TrafficType>) -> Self
pub fn set_traffic_type(self, input: Option<TrafficType>) -> Self
The type of traffic captured for the flow log.
sourcepub fn get_traffic_type(&self) -> &Option<TrafficType>
pub fn get_traffic_type(&self) -> &Option<TrafficType>
The type of traffic captured for the flow log.
sourcepub fn log_destination_type(self, input: LogDestinationType) -> Self
pub fn log_destination_type(self, input: LogDestinationType) -> Self
The type of destination for the flow log data.
sourcepub fn set_log_destination_type(self, input: Option<LogDestinationType>) -> Self
pub fn set_log_destination_type(self, input: Option<LogDestinationType>) -> Self
The type of destination for the flow log data.
sourcepub fn get_log_destination_type(&self) -> &Option<LogDestinationType>
pub fn get_log_destination_type(&self) -> &Option<LogDestinationType>
The type of destination for the flow log data.
sourcepub fn log_destination(self, input: impl Into<String>) -> Self
pub fn log_destination(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the destination for the flow log data.
sourcepub fn set_log_destination(self, input: Option<String>) -> Self
pub fn set_log_destination(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the destination for the flow log data.
sourcepub fn get_log_destination(&self) -> &Option<String>
pub fn get_log_destination(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the destination for the flow log data.
sourcepub fn log_format(self, input: impl Into<String>) -> Self
pub fn log_format(self, input: impl Into<String>) -> Self
The format of the flow log record.
sourcepub fn set_log_format(self, input: Option<String>) -> Self
pub fn set_log_format(self, input: Option<String>) -> Self
The format of the flow log record.
sourcepub fn get_log_format(&self) -> &Option<String>
pub fn get_log_format(&self) -> &Option<String>
The format of the flow log record.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
The tags for the flow log.
The tags for the flow log.
The tags for the flow log.
sourcepub fn max_aggregation_interval(self, input: i32) -> Self
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
sourcepub fn set_max_aggregation_interval(self, input: Option<i32>) -> Self
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
sourcepub fn get_max_aggregation_interval(&self) -> &Option<i32>
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
sourcepub fn destination_options(self, input: DestinationOptionsResponse) -> Self
pub fn destination_options(self, input: DestinationOptionsResponse) -> Self
The destination options.
sourcepub fn set_destination_options(
self,
input: Option<DestinationOptionsResponse>
) -> Self
pub fn set_destination_options( self, input: Option<DestinationOptionsResponse> ) -> Self
The destination options.
sourcepub fn get_destination_options(&self) -> &Option<DestinationOptionsResponse>
pub fn get_destination_options(&self) -> &Option<DestinationOptionsResponse>
The destination options.
Trait Implementations§
source§impl Clone for FlowLogBuilder
impl Clone for FlowLogBuilder
source§fn clone(&self) -> FlowLogBuilder
fn clone(&self) -> FlowLogBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FlowLogBuilder
impl Debug for FlowLogBuilder
source§impl Default for FlowLogBuilder
impl Default for FlowLogBuilder
source§fn default() -> FlowLogBuilder
fn default() -> FlowLogBuilder
source§impl PartialEq for FlowLogBuilder
impl PartialEq for FlowLogBuilder
source§fn eq(&self, other: &FlowLogBuilder) -> bool
fn eq(&self, other: &FlowLogBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.