# CfnAwsLogSourceProps

Properties for defining a `CfnAwsLogSource`.

Used as props by: [CfnAwsLogSource](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_securitylake.CfnAwsLogSource.html)

- Source: Generated at build time
- Type last changed: v2.138.0 · 18 Apr 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 cfnAwsLogSourceProps: securitylake.CfnAwsLogSourceProps = {
  dataLakeArn: 'dataLakeArn',
  sourceName: 'sourceName',
  sourceVersion: 'sourceVersion',

  // the properties below are optional
  accounts: ['accounts'],
};
```

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

cfn_aws_log_source_props = securitylake.CfnAwsLogSourceProps(
    data_lake_arn="dataLakeArn",
    source_name="sourceName",
    source_version="sourceVersion",

    # the properties below are optional
    accounts=["accounts"]
)
```

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.*;

CfnAwsLogSourceProps cfnAwsLogSourceProps = CfnAwsLogSourceProps.builder()
        .dataLakeArn("dataLakeArn")
        .sourceName("sourceName")
        .sourceVersion("sourceVersion")

        // the properties below are optional
        .accounts(List.of("accounts"))
        .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 cfnAwsLogSourceProps = new CfnAwsLogSourceProps {
    DataLakeArn = "dataLakeArn",
    SourceName = "sourceName",
    SourceVersion = "sourceVersion",

    // the properties below are optional
    Accounts = new [] { "accounts" }
};
```

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"

cfnAwsLogSourceProps := &CfnAwsLogSourceProps{
	DataLakeArn: jsii.String("dataLakeArn"),
	SourceName: jsii.String("sourceName"),
	SourceVersion: jsii.String("sourceVersion"),

	// the properties below are optional
	Accounts: []*string{
		jsii.String("accounts"),
	},
}
```

## Properties

- `accounts`: string[] — Specify the AWS account information where you want to enable Security Lake.

- `dataLakeArn`: string (required) — The Amazon Resource Name (ARN) used to create the data lake.

- `sourceName`: string (required) — The name for a AWS source.

  This must be a Regionally unique value. For the list of sources supported by Amazon Security Lake see [Collecting data from AWS services](https://docs.aws.amazon.com//security-lake/latest/userguide/internal-sources.html) in the Amazon Security Lake User Guide.

- `sourceVersion`: string (required) — The version for a AWS source.

  For more details about source versions supported by Amazon Security Lake see [OCSF source identification](https://docs.aws.amazon.com//security-lake/latest/userguide/open-cybersecurity-schema-framework.html#ocsf-source-identification) in the Amazon Security Lake User Guide. This must be a Regionally unique value.
