Struct aws_sdk_ec2::input::CreateFlowLogsInput
source · [−]#[non_exhaustive]pub struct CreateFlowLogsInput { /* private fields */ }
Implementations
sourceimpl CreateFlowLogsInput
impl CreateFlowLogsInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateFlowLogs, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateFlowLogs, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<CreateFlowLogs
>
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture CreateFlowLogsInput
.
sourceimpl 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 for the IAM role that permits Amazon EC2 to publish flow logs to a CloudWatch Logs log group in your account.
If you specify LogDestinationType
as s3
, do not specify DeliverLogsPermissionArn
or LogGroupName
.
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.
If you specify LogDestinationType
as s3
, do not specify DeliverLogsPermissionArn
or LogGroupName
.
sourcepub fn resource_ids(&self) -> Option<&[String]>
pub fn resource_ids(&self) -> Option<&[String]>
The ID of the subnet, network interface, or VPC for which you want to create a flow log.
Constraints: Maximum of 1000 resources
sourcepub fn resource_type(&self) -> Option<&FlowLogsResourceType>
pub fn resource_type(&self) -> Option<&FlowLogsResourceType>
The type of resource for which to create the flow log. For example, if you specified a VPC ID for the ResourceId
property, specify VPC
for this property.
sourcepub fn traffic_type(&self) -> Option<&TrafficType>
pub fn traffic_type(&self) -> Option<&TrafficType>
The type of traffic to log. You can log traffic that the resource accepts or rejects, or all traffic.
sourcepub fn log_destination_type(&self) -> Option<&LogDestinationType>
pub fn log_destination_type(&self) -> Option<&LogDestinationType>
The type of destination to which the flow log data is to be published. Flow log data can be published to CloudWatch Logs or Amazon S3. To publish flow log data to CloudWatch Logs, specify cloud-watch-logs
. To publish flow log data to Amazon S3, specify s3
.
If you specify LogDestinationType
as s3
, do not specify DeliverLogsPermissionArn
or LogGroupName
.
Default: cloud-watch-logs
sourcepub fn log_destination(&self) -> Option<&str>
pub fn log_destination(&self) -> Option<&str>
The destination to which the flow log data is to be published. Flow log data can be published to a CloudWatch Logs log group or an Amazon S3 bucket. The value specified for this parameter depends on the value specified for LogDestinationType
.
If LogDestinationType
is not specified or cloud-watch-logs
, specify the Amazon Resource Name (ARN) of the CloudWatch Logs log group. For example, to publish to a log group called my-logs
, specify arn:aws:logs:us-east-1:123456789012:log-group:my-logs
. Alternatively, use LogGroupName
instead.
If LogDestinationType is s3
, specify the ARN of the Amazon S3 bucket. You can also specify a subfolder in the bucket. To specify a subfolder in the bucket, use the following ARN format: bucket_ARN/subfolder_name/
. For example, to specify a subfolder named my-logs
in a bucket named my-bucket
, use the following ARN: arn:aws:s3:::my-bucket/my-logs/
. You cannot use AWSLogs
as a subfolder name. This is a reserved term.
sourcepub fn log_format(&self) -> Option<&str>
pub fn log_format(&self) -> Option<&str>
The fields to include in the flow log record, in the order in which they should appear. For a list of 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 specify 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
sourceimpl Clone for CreateFlowLogsInput
impl Clone for CreateFlowLogsInput
sourcefn clone(&self) -> CreateFlowLogsInput
fn clone(&self) -> CreateFlowLogsInput
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CreateFlowLogsInput
impl Debug for CreateFlowLogsInput
sourceimpl PartialEq<CreateFlowLogsInput> for CreateFlowLogsInput
impl PartialEq<CreateFlowLogsInput> for CreateFlowLogsInput
sourcefn eq(&self, other: &CreateFlowLogsInput) -> bool
fn eq(&self, other: &CreateFlowLogsInput) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl StructuralPartialEq for CreateFlowLogsInput
Auto Trait Implementations
impl RefUnwindSafe for CreateFlowLogsInput
impl Send for CreateFlowLogsInput
impl Sync for CreateFlowLogsInput
impl Unpin for CreateFlowLogsInput
impl UnwindSafe for CreateFlowLogsInput
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more