Struct aws_sdk_ec2::input::CreateFlowLogsInput
source · #[non_exhaustive]pub struct CreateFlowLogsInput { /* private fields */ }
Implementations§
source§impl CreateFlowLogsInput
impl CreateFlowLogsInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateFlowLogs, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateFlowLogs, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<CreateFlowLogs
>
Examples found in repository?
16194 16195 16196 16197 16198 16199 16200 16201 16202 16203 16204 16205 16206 16207 16208 16209 16210 16211 16212 16213 16214 16215 16216 16217 16218 16219 16220 16221 16222 16223 16224 16225 16226 16227 16228 16229 16230 16231 16232 16233 16234 16235 16236
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CreateFlowLogs,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::CreateFlowLogsError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::CreateFlowLogsOutput,
aws_smithy_http::result::SdkError<crate::error::CreateFlowLogsError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture CreateFlowLogsInput
.
source§impl CreateFlowLogsInput
impl CreateFlowLogsInput
sourcepub fn dry_run(&self) -> Option<bool>
pub fn dry_run(&self) -> Option<bool>
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
sourcepub fn client_token(&self) -> Option<&str>
pub fn client_token(&self) -> Option<&str>
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency.
sourcepub fn deliver_logs_permission_arn(&self) -> Option<&str>
pub fn deliver_logs_permission_arn(&self) -> Option<&str>
The ARN of the IAM role that allows Amazon EC2 to publish flow logs to a CloudWatch Logs log group in your account.
This parameter is required if the destination type is cloud-watch-logs
and unsupported otherwise.
sourcepub fn deliver_cross_account_role(&self) -> Option<&str>
pub fn deliver_cross_account_role(&self) -> Option<&str>
The ARN of the IAM role that allows Amazon EC2 to publish flow logs across accounts.
sourcepub fn log_group_name(&self) -> Option<&str>
pub fn log_group_name(&self) -> Option<&str>
The name of a new or existing CloudWatch Logs log group where Amazon EC2 publishes your flow logs.
This parameter is valid only if the destination type is cloud-watch-logs
.
sourcepub fn resource_ids(&self) -> Option<&[String]>
pub fn resource_ids(&self) -> Option<&[String]>
The IDs of the resources to monitor. For example, if the resource type is VPC
, specify the IDs of the VPCs.
Constraints: Maximum of 1000 resources
sourcepub fn resource_type(&self) -> Option<&FlowLogsResourceType>
pub fn resource_type(&self) -> Option<&FlowLogsResourceType>
The type of resource to monitor.
sourcepub fn traffic_type(&self) -> Option<&TrafficType>
pub fn traffic_type(&self) -> Option<&TrafficType>
The type of traffic to monitor (accepted traffic, rejected traffic, or all traffic).
sourcepub fn log_destination_type(&self) -> Option<&LogDestinationType>
pub fn log_destination_type(&self) -> Option<&LogDestinationType>
The type of destination for the flow log data.
Default: cloud-watch-logs
sourcepub fn log_destination(&self) -> Option<&str>
pub fn log_destination(&self) -> Option<&str>
The destination for the flow log data. The meaning of this parameter depends on the destination type.
-
If the destination type is
cloud-watch-logs
, specify the ARN of a CloudWatch Logs log group. For example:arn:aws:logs:region:account_id:log-group:my_group
Alternatively, use the
LogGroupName
parameter. -
If the destination type is
s3
, specify the ARN of an S3 bucket. For example:arn:aws:s3:::my_bucket/my_subfolder/
The subfolder is optional. Note that you can't use
AWSLogs
as a subfolder name. -
If the destination type is
kinesis-data-firehose
, specify the ARN of a Kinesis Data Firehose delivery stream. For example:arn:aws:firehose:region:account_id:deliverystream:my_stream
sourcepub fn log_format(&self) -> Option<&str>
pub fn log_format(&self) -> Option<&str>
The fields to include in the flow log record. List the fields in the order in which they should appear. For more information about the available fields, see Flow log records. If you omit this parameter, the flow log is created using the default format. If you specify this parameter, you must include at least one field.
Specify the fields using the ${field-id}
format, separated by spaces. For the CLI, surround this parameter value with single quotes on Linux or double quotes on Windows.
sourcepub fn tag_specifications(&self) -> Option<&[TagSpecification]>
pub fn tag_specifications(&self) -> Option<&[TagSpecification]>
The tags to apply to the flow logs.
sourcepub fn max_aggregation_interval(&self) -> Option<i32>
pub fn max_aggregation_interval(&self) -> Option<i32>
The maximum interval of time during which a flow of packets is captured and aggregated into a flow log record. You can specify 60 seconds (1 minute) or 600 seconds (10 minutes).
When a network interface is attached to a Nitro-based instance, the aggregation interval is always 60 seconds or less, regardless of the value that you specify.
Default: 600
sourcepub fn destination_options(&self) -> Option<&DestinationOptionsRequest>
pub fn destination_options(&self) -> Option<&DestinationOptionsRequest>
The destination options.
Trait Implementations§
source§impl Clone for CreateFlowLogsInput
impl Clone for CreateFlowLogsInput
source§fn clone(&self) -> CreateFlowLogsInput
fn clone(&self) -> CreateFlowLogsInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more