# CfnLogStreamProps

Properties for defining a `CfnLogStream`.

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

- Source: Generated at build time
- Type last changed: v2.227.0 · 21 Nov 2025

## Example

TypeScript:

```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 cfnLogStreamProps: logs.CfnLogStreamProps = {
  logGroupName: 'logGroupName',

  // the properties below are optional
  logStreamName: 'logStreamName',
};
```

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_logs as logs

cfn_log_stream_props = logs.CfnLogStreamProps(
    log_group_name="logGroupName",

    # the properties below are optional
    log_stream_name="logStreamName"
)
```

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

CfnLogStreamProps cfnLogStreamProps = CfnLogStreamProps.builder()
        .logGroupName("logGroupName")

        // the properties below are optional
        .logStreamName("logStreamName")
        .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.Logs;

var cfnLogStreamProps = new CfnLogStreamProps {
    LogGroupName = "logGroupName",

    // the properties below are optional
    LogStreamName = "logStreamName"
};
```

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"

cfnLogStreamProps := &CfnLogStreamProps{
	LogGroupName: jsii.String("logGroupName"),

	// the properties below are optional
	LogStreamName: jsii.String("logStreamName"),
}
```

## Properties

- `logGroupName`: string | [ILogGroupRef](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_logs.ILogGroupRef.html) (required) — The name of the log group where the log stream is created.

- `logStreamName`: string — The name of the log stream.

  The name must be unique within the log group.
