Struct aws_sdk_ec2::model::flow_log::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for FlowLog
.
Implementations§
source§impl Builder
impl Builder
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 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 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 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 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 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 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 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 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 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 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 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 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.
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.
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 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.