SourceProperty Struct
Sources are logs and events generated from a single system that match a specific event class in the Open Cybersecurity Schema Framework (OCSF) schema.
Amazon Security Lake can collect logs and events from a variety of sources, including natively supported AWS services and third-party custom sources.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_securitylake as securitylake } from 'aws-cdk-lib';
const sourceProperty: securitylake.CfnSubscriber.SourceProperty = {
awsLogSource: {
sourceName: 'sourceName',
sourceVersion: 'sourceVersion',
},
customLogSource: {
sourceName: 'sourceName',
sourceVersion: 'sourceVersion',
},
};
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_securitylake as securitylake
source_property = securitylake.CfnSubscriber.SourceProperty(
aws_log_source=securitylake.CfnSubscriber.AwsLogSourceProperty(
source_name="sourceName",
source_version="sourceVersion"
),
custom_log_source=securitylake.CfnSubscriber.CustomLogSourceProperty(
source_name="sourceName",
source_version="sourceVersion"
)
)
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.securitylake.*;
SourceProperty sourceProperty = SourceProperty.builder()
.awsLogSource(AwsLogSourceProperty.builder()
.sourceName("sourceName")
.sourceVersion("sourceVersion")
.build())
.customLogSource(CustomLogSourceProperty.builder()
.sourceName("sourceName")
.sourceVersion("sourceVersion")
.build())
.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.SecurityLake;
var sourceProperty = new SourceProperty {
AwsLogSource = new AwsLogSourceProperty {
SourceName = "sourceName",
SourceVersion = "sourceVersion"
},
CustomLogSource = new CustomLogSourceProperty {
SourceName = "sourceName",
SourceVersion = "sourceVersion"
}
};
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"
sourceProperty := &SourceProperty{
AwsLogSource: &AwsLogSourceProperty{
SourceName: jsii.String("sourceName"),
SourceVersion: jsii.String("sourceVersion"),
},
CustomLogSource: &CustomLogSourceProperty{
SourceName: jsii.String("sourceName"),
SourceVersion: jsii.String("sourceVersion"),
},
}
Properties
awsLogSourceoptionalIResolvable | CfnSubscriber.aws_log_sourceoptionaltyping.Union[IResolvable, AwsLogSourceProperty]awsLogSourceoptionalIResolvableAwsLogSourceoptionalIResolvableAwsLogSourceoptionalinterface{} #The natively supported AWS service which is used a Amazon Security Lake source to collect logs and events from.
customLogSourceoptionalIResolvable | CfnSubscriber.custom_log_sourceoptionaltyping.Union[IResolvable, CustomLogSourceProperty]customLogSourceoptionalIResolvableCustomLogSourceoptionalIResolvableCustomLogSourceoptionalinterface{} #The custom log source AWS which is used a Amazon Security Lake source to collect logs and events from.