Experimental
@aws-cdk/aws-pipes-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
IncludeExecutionData Enum
Log data configuration for a pipe.
Example
ts
declare const sourceQueue: sqs.Queue;
declare const targetQueue: sqs.Queue;
declare const logGroup: logs.LogGroup;
const cwlLogDestination = new pipes.CloudwatchLogsLogDestination(logGroup);
const pipe = new pipes.Pipe(this, 'Pipe', {
source: new SqsSource(sourceQueue),
target: new SqsTarget(targetQueue),
logLevel: pipes.LogLevel.TRACE,
logIncludeExecutionData: [pipes.IncludeExecutionData.ALL],
logDestinations: [cwlLogDestination],
});
python
# source_queue: sqs.Queue
# target_queue: sqs.Queue
# log_group: logs.LogGroup
cwl_log_destination = pipes.CloudwatchLogsLogDestination(log_group)
pipe = pipes.Pipe(self, "Pipe",
source=SqsSource(source_queue),
target=SqsTarget(target_queue),
log_level=pipes.LogLevel.TRACE,
log_include_execution_data=[pipes.IncludeExecutionData.ALL],
log_destinations=[cwl_log_destination]
)
java
Queue sourceQueue;
Queue targetQueue;
LogGroup logGroup;
CloudwatchLogsLogDestination cwlLogDestination = new CloudwatchLogsLogDestination(logGroup);
Pipe pipe = Pipe.Builder.create(this, "Pipe")
.source(new SqsSource(sourceQueue))
.target(new SqsTarget(targetQueue))
.logLevel(LogLevel.TRACE)
.logIncludeExecutionData(List.of(IncludeExecutionData.ALL))
.logDestinations(List.of(cwlLogDestination))
.build();
csharp
// Install: dotnet add package Amazon.CDK.AWS.Pipes.Alpha
Queue sourceQueue;
Queue targetQueue;
LogGroup logGroup;
var cwlLogDestination = new CloudwatchLogsLogDestination(logGroup);
var pipe = new Pipe(this, "Pipe", new PipeProps {
Source = new SqsSource(sourceQueue),
Target = new SqsTarget(targetQueue),
LogLevel = LogLevel.TRACE,
LogIncludeExecutionData = new [] { IncludeExecutionData.ALL },
LogDestinations = new [] { cwlLogDestination }
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdkpipesalpha/v2
var sourceQueue Queue
var targetQueue Queue
var logGroup LogGroup
cwlLogDestination := pipes.NewCloudwatchLogsLogDestination(logGroup)
pipe := pipes.NewPipe(this, jsii.String("Pipe"), &PipeProps{
Source: awscdkpipessourcesalpha.NewSqsSource(sourceQueue),
Target: awscdkpipestargetsalpha.NewSqsTarget(targetQueue),
LogLevel: pipes.LogLevel_TRACE,
LogIncludeExecutionData: []aLL{
pipes.IncludeExecutionData_*aLL,
},
LogDestinations: []ILogDestination{
cwlLogDestination,
},
})
Members
| Member | Description |
|---|---|
ALL | Specify ALL to include the execution data (specifically, the payload, awsRequest, and awsResponse fields) in the log messages for this pipe. |
Referenced by
PipeProps.logIncludeExecutionDatalog_include_execution_datalogIncludeExecutionDataLogIncludeExecutionDataLogIncludeExecutionData