Class CfnLogStream
The AWS::Logs::LogStream
resource specifies an Amazon CloudWatch Logs log stream in a specific log group.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.Logs
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnLogStream : CfnResource, IInspectable
Syntax (vb)
Public Class CfnLogStream
Inherits CfnResource
Implements IInspectable
Remarks
A log stream represents the sequence of events coming from an application instance or resource that you are monitoring.
There is no limit on the number of log streams that you can create for a log group.
You must use the following guidelines when naming a log stream:
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-logstream.html
CloudformationResource: AWS::Logs::LogStream
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;
var cfnLogStream = new CfnLogStream(this, "MyCfnLogStream", new CfnLogStreamProps {
LogGroupName = "logGroupName",
// the properties below are optional
LogStreamName = "logStreamName"
});
Synopsis
Constructors
CfnLogStream(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnLogStream(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnLogStream(Construct, String, ICfnLogStreamProps) |
Properties
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
LogGroupName | The name of the log group where the log stream is created. |
LogStreamName | The name of the log stream. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnLogStream(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnLogStream(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnLogStream(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnLogStream(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnLogStream(Construct, String, ICfnLogStreamProps)
public CfnLogStream(Construct scope, string id, ICfnLogStreamProps props)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnLogStreamProps
Resource properties.
Properties
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
LogGroupName
The name of the log group where the log stream is created.
public virtual string LogGroupName { get; set; }
Property Value
System.String
LogStreamName
The name of the log stream.
public virtual string LogStreamName { get; set; }
Property Value
System.String
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>