@Generated(value="jsii-pacmak/1.70.0 (build 03c2f6f)", date="2022-11-01T13:16:52.776Z") @Stability(value=Experimental) 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.core.*;
import software.amazon.awscdk.services.logs.*;
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
(experimental) A fluent builder for
LogStream. |
software.amazon.jsii.JsiiObject.InitializationModeILogStream.Jsii$Default, ILogStream.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
LogStream(software.constructs.Construct scope,
String id,
LogStreamProps props) |
protected |
LogStream(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
LogStream(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static ILogStream |
fromLogStreamName(software.constructs.Construct scope,
String id,
String logStreamName)
(experimental) Import an existing LogGroup.
|
String |
getLogStreamName()
(experimental) The name of this log stream.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourcegetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyRemovalPolicy, getEnv, getStackgetNodeprotected LogStream(software.amazon.jsii.JsiiObjectRef objRef)
protected LogStream(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public LogStream(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
LogStreamProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Experimental) @NotNull public static ILogStream fromLogStreamName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String logStreamName)
scope - This parameter is required.id - This parameter is required.logStreamName - This parameter is required.@Stability(value=Experimental) @NotNull public String getLogStreamName()
getLogStreamName in interface ILogStreamCopyright © 2022. All rights reserved.