pulumi_wasm_providers_aws_mini::ec2::flow_log

Struct FlowLogArgsBuilder

source
pub struct FlowLogArgsBuilder<S: State = Empty> { /* private fields */ }
Expand description

Use builder syntax to set the inputs and finish with build_struct().

Implementations§

source§

impl<S: State> FlowLogArgsBuilder<S>

source

pub fn build_struct(self) -> FlowLogArgs
where S: IsComplete,

Finish building and return the requested object

source

pub fn deliver_cross_account_role( self, value: impl Into<Output<Option<String>>>, ) -> FlowLogArgsBuilder<SetDeliverCrossAccountRole<S>>
where S::DeliverCrossAccountRole: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

ARN of the IAM role that allows Amazon EC2 to publish flow logs across accounts.

source

pub fn maybe_deliver_cross_account_role( self, value: Option<impl Into<Output<Option<String>>>>, ) -> FlowLogArgsBuilder<SetDeliverCrossAccountRole<S>>
where S::DeliverCrossAccountRole: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

ARN of the IAM role that allows Amazon EC2 to publish flow logs across accounts.

source

pub fn destination_options( self, value: impl Into<Output<Option<FlowLogDestinationOptions>>>, ) -> FlowLogArgsBuilder<SetDestinationOptions<S>>
where S::DestinationOptions: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::ec2::FlowLogDestinationOptions>,
> as Default>::default()

Describes the destination options for a flow log. More details below.

source

pub fn maybe_destination_options( self, value: Option<impl Into<Output<Option<FlowLogDestinationOptions>>>>, ) -> FlowLogArgsBuilder<SetDestinationOptions<S>>
where S::DestinationOptions: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::ec2::FlowLogDestinationOptions>,
> as Default>::default()

Describes the destination options for a flow log. More details below.

source

pub fn eni_id( self, value: impl Into<Output<Option<String>>>, ) -> FlowLogArgsBuilder<SetEniId<S>>
where S::EniId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Elastic Network Interface ID to attach to

source

pub fn maybe_eni_id( self, value: Option<impl Into<Output<Option<String>>>>, ) -> FlowLogArgsBuilder<SetEniId<S>>
where S::EniId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Elastic Network Interface ID to attach to

source

pub fn iam_role_arn( self, value: impl Into<Output<Option<String>>>, ) -> FlowLogArgsBuilder<SetIamRoleArn<S>>
where S::IamRoleArn: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The ARN for the IAM role that’s used to post flow logs to a CloudWatch Logs log group

source

pub fn maybe_iam_role_arn( self, value: Option<impl Into<Output<Option<String>>>>, ) -> FlowLogArgsBuilder<SetIamRoleArn<S>>
where S::IamRoleArn: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The ARN for the IAM role that’s used to post flow logs to a CloudWatch Logs log group

source

pub fn log_destination( self, value: impl Into<Output<Option<String>>>, ) -> FlowLogArgsBuilder<SetLogDestination<S>>
where S::LogDestination: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The ARN of the logging destination. Either log_destination or log_group_name must be set.

source

pub fn maybe_log_destination( self, value: Option<impl Into<Output<Option<String>>>>, ) -> FlowLogArgsBuilder<SetLogDestination<S>>
where S::LogDestination: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The ARN of the logging destination. Either log_destination or log_group_name must be set.

source

pub fn log_destination_type( self, value: impl Into<Output<Option<String>>>, ) -> FlowLogArgsBuilder<SetLogDestinationType<S>>
where S::LogDestinationType: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The type of the logging destination. Valid values: cloud-watch-logs, s3, kinesis-data-firehose. Default: cloud-watch-logs.

source

pub fn maybe_log_destination_type( self, value: Option<impl Into<Output<Option<String>>>>, ) -> FlowLogArgsBuilder<SetLogDestinationType<S>>
where S::LogDestinationType: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The type of the logging destination. Valid values: cloud-watch-logs, s3, kinesis-data-firehose. Default: cloud-watch-logs.

source

pub fn log_format( self, value: impl Into<Output<Option<String>>>, ) -> FlowLogArgsBuilder<SetLogFormat<S>>
where S::LogFormat: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The fields to include in the flow log record. Accepted format example: "$${interface-id} $${srcaddr} $${dstaddr} $${srcport} $${dstport}".

source

pub fn maybe_log_format( self, value: Option<impl Into<Output<Option<String>>>>, ) -> FlowLogArgsBuilder<SetLogFormat<S>>
where S::LogFormat: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The fields to include in the flow log record. Accepted format example: "$${interface-id} $${srcaddr} $${dstaddr} $${srcport} $${dstport}".

source

pub fn log_group_name( self, value: impl Into<Output<Option<String>>>, ) -> FlowLogArgsBuilder<SetLogGroupName<S>>
where S::LogGroupName: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Deprecated: Use log_destination instead. The name of the CloudWatch log group. Either log_group_name or log_destination must be set.

source

pub fn maybe_log_group_name( self, value: Option<impl Into<Output<Option<String>>>>, ) -> FlowLogArgsBuilder<SetLogGroupName<S>>
where S::LogGroupName: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Deprecated: Use log_destination instead. The name of the CloudWatch log group. Either log_group_name or log_destination must be set.

source

pub fn max_aggregation_interval( self, value: impl Into<Output<Option<i32>>>, ) -> FlowLogArgsBuilder<SetMaxAggregationInterval<S>>
where S::MaxAggregationInterval: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<i32>> as Default>::default().

The maximum interval of time during which a flow of packets is captured and aggregated into a flow log record. Valid Values: 60 seconds (1 minute) or 600 seconds (10 minutes). Default: 600. When transit_gateway_id or transit_gateway_attachment_id is specified, max_aggregation_interval must be 60 seconds (1 minute).

source

pub fn maybe_max_aggregation_interval( self, value: Option<impl Into<Output<Option<i32>>>>, ) -> FlowLogArgsBuilder<SetMaxAggregationInterval<S>>
where S::MaxAggregationInterval: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<i32>> as Default>::default().

The maximum interval of time during which a flow of packets is captured and aggregated into a flow log record. Valid Values: 60 seconds (1 minute) or 600 seconds (10 minutes). Default: 600. When transit_gateway_id or transit_gateway_attachment_id is specified, max_aggregation_interval must be 60 seconds (1 minute).

source

pub fn subnet_id( self, value: impl Into<Output<Option<String>>>, ) -> FlowLogArgsBuilder<SetSubnetId<S>>
where S::SubnetId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Subnet ID to attach to

source

pub fn maybe_subnet_id( self, value: Option<impl Into<Output<Option<String>>>>, ) -> FlowLogArgsBuilder<SetSubnetId<S>>
where S::SubnetId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Subnet ID to attach to

source

pub fn tags( self, value: impl Into<Output<Option<HashMap<String, String>>>>, ) -> FlowLogArgsBuilder<SetTags<S>>
where S::Tags: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<std::collections::HashMap<String, String>>,
> as Default>::default()

Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

source

pub fn maybe_tags( self, value: Option<impl Into<Output<Option<HashMap<String, String>>>>>, ) -> FlowLogArgsBuilder<SetTags<S>>
where S::Tags: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<std::collections::HashMap<String, String>>,
> as Default>::default()

Key-value map of resource tags. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

source

pub fn traffic_type( self, value: impl Into<Output<Option<String>>>, ) -> FlowLogArgsBuilder<SetTrafficType<S>>
where S::TrafficType: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The type of traffic to capture. Valid values: ACCEPT,REJECT, ALL.

source

pub fn maybe_traffic_type( self, value: Option<impl Into<Output<Option<String>>>>, ) -> FlowLogArgsBuilder<SetTrafficType<S>>
where S::TrafficType: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

The type of traffic to capture. Valid values: ACCEPT,REJECT, ALL.

source

pub fn transit_gateway_attachment_id( self, value: impl Into<Output<Option<String>>>, ) -> FlowLogArgsBuilder<SetTransitGatewayAttachmentId<S>>
where S::TransitGatewayAttachmentId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Transit Gateway Attachment ID to attach to

source

pub fn maybe_transit_gateway_attachment_id( self, value: Option<impl Into<Output<Option<String>>>>, ) -> FlowLogArgsBuilder<SetTransitGatewayAttachmentId<S>>
where S::TransitGatewayAttachmentId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Transit Gateway Attachment ID to attach to

source

pub fn transit_gateway_id( self, value: impl Into<Output<Option<String>>>, ) -> FlowLogArgsBuilder<SetTransitGatewayId<S>>
where S::TransitGatewayId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Transit Gateway ID to attach to

source

pub fn maybe_transit_gateway_id( self, value: Option<impl Into<Output<Option<String>>>>, ) -> FlowLogArgsBuilder<SetTransitGatewayId<S>>
where S::TransitGatewayId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Transit Gateway ID to attach to

source

pub fn vpc_id( self, value: impl Into<Output<Option<String>>>, ) -> FlowLogArgsBuilder<SetVpcId<S>>
where S::VpcId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

VPC ID to attach to

source

pub fn maybe_vpc_id( self, value: Option<impl Into<Output<Option<String>>>>, ) -> FlowLogArgsBuilder<SetVpcId<S>>
where S::VpcId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

VPC ID to attach to

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where 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, U> Into<U> for T
where 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, U> TryFrom<U> for T
where U: Into<T>,

source§

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 T
where U: TryFrom<T>,

source§

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.