Skip to content
v2.278.0

ParseToOCSFProperty ​

Struct Stable

Processor to parse events from CloudTrail, Route53Resolver, VPCFlow, EKSAudit and AWSWAF into OCSF V1.1 format.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_logs as logs } from 'aws-cdk-lib';
const parseToOCSFProperty: logs.ParseToOCSFProperty = {
  eventSource: logs.OCSFSourceType.CLOUD_TRAIL,
  ocsfVersion: logs.OCSFVersion.V1_1,

  // the properties below are optional
  source: 'source',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_logs as logs

parse_to_ocsf_property = logs.ParseToOCSFProperty(
    event_source=logs.OCSFSourceType.CLOUD_TRAIL,
    ocsf_version=logs.OCSFVersion.V1_1,

    # the properties below are optional
    source="source"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.logs.*;

ParseToOCSFProperty parseToOCSFProperty = ParseToOCSFProperty.builder()
        .eventSource(OCSFSourceType.CLOUD_TRAIL)
        .ocsfVersion(OCSFVersion.V1_1)

        // the properties below are optional
        .source("source")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Logs;

var parseToOCSFProperty = new ParseToOCSFProperty {
    EventSource = OCSFSourceType.CLOUD_TRAIL,
    OcsfVersion = OCSFVersion.V1_1,

    // the properties below are optional
    Source = "source"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

parseToOCSFProperty := &ParseToOCSFProperty{
	EventSource: awscdk.Aws_logs.OCSFSourceType_CLOUD_TRAIL,
	OcsfVersion: awscdk.*Aws_logs.OCSFVersion_V1_1,

	// the properties below are optional
	Source: jsii.String("source"),
}

Properties ​

eventSourceOCSFSourceTypeevent_sourceOCSFSourceTypeeventSourceOCSFSourceTypeEventSourceOCSFSourceTypeEventSourceOCSFSourceType required #
Type of input log event source to convert to OCSF format.
ocsfVersionOCSFVersionocsf_versionOCSFVersionocsfVersionOCSFVersionOcsfVersionOCSFVersionOcsfVersionOCSFVersion required #
Version of OCSF schema to convert to.
sourceoptionalstringsourceoptionalstrsourceoptionalStringSourceoptionalstringSourceoptional*string = '@message' #
Path to the field in the log event that will be parsed.

Use dot notation to access child fields.