Skip to content
v2.278.0

CfnAwsLogSourceProps Struct ​

Properties for defining a CfnAwsLogSource.

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 cfnAwsLogSourceProps: securitylake.CfnAwsLogSourceProps = {
  dataLakeArn: 'dataLakeArn',
  sourceName: 'sourceName',
  sourceVersion: 'sourceVersion',

  // the properties below are optional
  accounts: ['accounts'],
};
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
// 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();
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" }
};
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 ​

accountsoptionalstring[]accountsoptionaltyping.List[str]accountsoptionalList<String>Accountsoptionalstring[]Accountsoptional*[]*string #
Specify the AWS account information where you want to enable Security Lake.
dataLakeArnstringdata_lake_arnstrdataLakeArnStringDataLakeArnstringDataLakeArn*string required #
The Amazon Resource Name (ARN) used to create the data lake.
sourceNamestringsource_namestrsourceNameStringSourceNamestringSourceName*string required #
The name for a AWS source.
notes

This must be a Regionally unique value. For the list of sources supported by Amazon Security Lake see Collecting data from AWS services in the Amazon Security Lake User Guide.

sourceVersionstringsource_versionstrsourceVersionStringSourceVersionstringSourceVersion*string required #
The version for a AWS source.
notes

For more details about source versions supported by Amazon Security Lake see OCSF source identification in the Amazon Security Lake User Guide. This must be a Regionally unique value.