@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:40.710Z") @Stability(value=Stable) 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.*;
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
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)
Import an existing LogGroup.
|
String |
getLogStreamName()
The name of this log stream.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourcejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyRemovalPolicy, getEnv, getStackprotected LogStream(software.amazon.jsii.JsiiObjectRef objRef)
protected LogStream(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
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=Stable) @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=Stable) @NotNull public String getLogStreamName()
getLogStreamName in interface ILogStreamCopyright © 2022. All rights reserved.