CfnLogStreamProps Struct
Properties for defining a CfnLogStream.
| 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_logs as logs } from 'aws-cdk-lib';
const cfnLogStreamProps: logs.CfnLogStreamProps = {
logGroupName: 'logGroupName',
// the properties below are optional
logStreamName: 'logStreamName',
};
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
// 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();
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"
};
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
logGroupNamestring | ILogGroupReflog_group_nametyping.Union[str, ILogGroupRef]logGroupNameStringLogGroupNamestringLogGroupNameinterface{} required #The name of the log group where the log stream is created.
logStreamNameoptionalstringlog_stream_nameoptionalstrlogStreamNameoptionalStringLogStreamNameoptionalstringLogStreamNameoptional*string #The name of the log stream.
The name must be unique within the log group.