Class LogStream
Define a Log Stream in a Log Group.
Inherited Members
Namespace: Amazon.CDK.AWS.Logs
Assembly: Amazon.CDK.AWS.Logs.dll
Syntax (csharp)
public class LogStream : Resource, ILogStream, IResource, IConstruct, IDependable
Syntax (vb)
Public Class LogStream
Inherits Resource
Implements ILogStream, IResource, IConstruct, IDependable
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Logs;
using Amazon.CDK;
LogGroup logGroup;
var logStream = new LogStream(this, "MyLogStream", new LogStreamProps {
LogGroup = logGroup,
// the properties below are optional
LogStreamName = "logStreamName",
RemovalPolicy = RemovalPolicy.DESTROY
});
Synopsis
Constructors
LogStream(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
LogStream(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
LogStream(Construct, String, ILogStreamProps) |
Properties
LogStreamName | The name of this log stream. |
Methods
FromLogStreamName(Construct, String, String) | Import an existing LogGroup. |
Constructors
LogStream(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected LogStream(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
LogStream(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected LogStream(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
LogStream(Construct, String, ILogStreamProps)
public LogStream(Construct scope, string id, ILogStreamProps props)
Parameters
- scope Constructs.Construct
- id System.String
- props ILogStreamProps
Properties
LogStreamName
The name of this log stream.
public virtual string LogStreamName { get; }
Property Value
System.String
Methods
FromLogStreamName(Construct, String, String)
Import an existing LogGroup.
public static ILogStream FromLogStreamName(Construct scope, string id, string logStreamName)
Parameters
- scope Constructs.Construct
- id System.String
- logStreamName System.String
Returns
Implements
Constructs.IConstruct