#[non_exhaustive]pub struct PipeLogConfigurationParameters {
pub s3_log_destination: Option<S3LogDestinationParameters>,
pub firehose_log_destination: Option<FirehoseLogDestinationParameters>,
pub cloudwatch_logs_log_destination: Option<CloudwatchLogsLogDestinationParameters>,
pub level: LogLevel,
pub include_execution_data: Option<Vec<IncludeExecutionDataOption>>,
}
Expand description
Specifies the logging configuration settings for the pipe.
When you call UpdatePipe
, EventBridge updates the fields in the PipeLogConfigurationParameters
object atomically as one and overrides existing values. This is by design. If you don't specify an optional field in any of the Amazon Web Services service parameters objects (CloudwatchLogsLogDestinationParameters
, FirehoseLogDestinationParameters
, or S3LogDestinationParameters
), EventBridge sets that field to its system-default value during the update.
For example, suppose when you created the pipe you specified a Kinesis Data Firehose stream log destination. You then update the pipe to add an Amazon S3 log destination. In addition to specifying the S3LogDestinationParameters
for the new log destination, you must also specify the fields in the FirehoseLogDestinationParameters
object in order to retain the Kinesis Data Firehose stream log destination.
For more information on generating pipe log records, see Log EventBridge Pipes in the Amazon EventBridge User Guide.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.s3_log_destination: Option<S3LogDestinationParameters>
The Amazon S3 logging configuration settings for the pipe.
firehose_log_destination: Option<FirehoseLogDestinationParameters>
The Amazon Kinesis Data Firehose logging configuration settings for the pipe.
cloudwatch_logs_log_destination: Option<CloudwatchLogsLogDestinationParameters>
The Amazon CloudWatch Logs logging configuration settings for the pipe.
level: LogLevel
The level of logging detail to include. This applies to all log destinations for the pipe.
For more information, see Specifying EventBridge Pipes log level in the Amazon EventBridge User Guide.
include_execution_data: Option<Vec<IncludeExecutionDataOption>>
Specify ON
to include the execution data (specifically, the payload
and awsRequest
fields) in the log messages for this pipe.
This applies to all log destinations for the pipe.
For more information, see Including execution data in logs in the Amazon EventBridge User Guide.
The default is OFF
.
Implementations§
source§impl PipeLogConfigurationParameters
impl PipeLogConfigurationParameters
sourcepub fn s3_log_destination(&self) -> Option<&S3LogDestinationParameters>
pub fn s3_log_destination(&self) -> Option<&S3LogDestinationParameters>
The Amazon S3 logging configuration settings for the pipe.
sourcepub fn firehose_log_destination(
&self
) -> Option<&FirehoseLogDestinationParameters>
pub fn firehose_log_destination( &self ) -> Option<&FirehoseLogDestinationParameters>
The Amazon Kinesis Data Firehose logging configuration settings for the pipe.
sourcepub fn cloudwatch_logs_log_destination(
&self
) -> Option<&CloudwatchLogsLogDestinationParameters>
pub fn cloudwatch_logs_log_destination( &self ) -> Option<&CloudwatchLogsLogDestinationParameters>
The Amazon CloudWatch Logs logging configuration settings for the pipe.
sourcepub fn level(&self) -> &LogLevel
pub fn level(&self) -> &LogLevel
The level of logging detail to include. This applies to all log destinations for the pipe.
For more information, see Specifying EventBridge Pipes log level in the Amazon EventBridge User Guide.
sourcepub fn include_execution_data(&self) -> &[IncludeExecutionDataOption]
pub fn include_execution_data(&self) -> &[IncludeExecutionDataOption]
Specify ON
to include the execution data (specifically, the payload
and awsRequest
fields) in the log messages for this pipe.
This applies to all log destinations for the pipe.
For more information, see Including execution data in logs in the Amazon EventBridge User Guide.
The default is OFF
.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .include_execution_data.is_none()
.
source§impl PipeLogConfigurationParameters
impl PipeLogConfigurationParameters
sourcepub fn builder() -> PipeLogConfigurationParametersBuilder
pub fn builder() -> PipeLogConfigurationParametersBuilder
Creates a new builder-style object to manufacture PipeLogConfigurationParameters
.
Trait Implementations§
source§impl Clone for PipeLogConfigurationParameters
impl Clone for PipeLogConfigurationParameters
source§fn clone(&self) -> PipeLogConfigurationParameters
fn clone(&self) -> PipeLogConfigurationParameters
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for PipeLogConfigurationParameters
impl PartialEq for PipeLogConfigurationParameters
source§fn eq(&self, other: &PipeLogConfigurationParameters) -> bool
fn eq(&self, other: &PipeLogConfigurationParameters) -> bool
self
and other
values to be equal, and is used
by ==
.