@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:42.042Z") public class LogStream extends Resource implements ILogStream
Example:
// 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.*; import software.amazon.awscdk.core.*; LogGroup logGroup; LogStream logStream = LogStream.Builder.create(this, "MyLogStream") .logGroup(logGroup) // the properties below are optional .logStreamName("logStreamName") .removalPolicy(RemovalPolicy.DESTROY) .build();
Modifier and Type | Class and Description |
---|---|
static class |
LogStream.Builder
A fluent builder for
LogStream . |
ILogStream.Jsii$Default, ILogStream.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
LogStream(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
LogStream(software.amazon.jsii.JsiiObjectRef objRef) |
|
LogStream(software.constructs.Construct scope,
java.lang.String id,
LogStreamProps props) |
Modifier and Type | Method and Description |
---|---|
static ILogStream |
fromLogStreamName(software.constructs.Construct scope,
java.lang.String id,
java.lang.String logStreamName)
Import an existing LogGroup.
|
java.lang.String |
getLogStreamName()
The name of this log stream.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResource
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyRemovalPolicy, getEnv, getStack
getNode
protected LogStream(software.amazon.jsii.JsiiObjectRef objRef)
protected LogStream(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public LogStream(software.constructs.Construct scope, java.lang.String id, LogStreamProps props)
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.public static ILogStream fromLogStreamName(software.constructs.Construct scope, java.lang.String id, java.lang.String logStreamName)
scope
- This parameter is required.id
- This parameter is required.logStreamName
- This parameter is required.public java.lang.String getLogStreamName()
getLogStreamName
in interface ILogStream