# SourceProperty

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: Generated at build time
- Type last changed: v2.154.0 · 22 Aug 2024

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
    }
};
```

Golang:

```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

- `awsLogSource`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnSubscriber.AwsLogSourceProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_securitylake.CfnSubscriber.AwsLogSourceProperty.html) — The natively supported AWS service which is used a Amazon Security Lake source to collect logs and events from.

- `customLogSource`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnSubscriber.CustomLogSourceProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_securitylake.CfnSubscriber.CustomLogSourceProperty.html) — The custom log source AWS which is used a Amazon Security Lake source to collect logs and events from.
