Class CfnLogStream
A CloudFormation AWS::Logs::LogStream
.
Inherited Members
Namespace: Amazon.CDK.AWS.Logs
Assembly: Amazon.CDK.AWS.Logs.dll
Syntax (csharp)
public class CfnLogStream : CfnResource, IConstruct, IDependable, IInspectable
Syntax (vb)
Public Class CfnLogStream
Inherits CfnResource
Implements IConstruct, IDependable, IInspectable
Remarks
The AWS::Logs::LogStream
resource specifies an Amazon CloudWatch Logs log stream in a specific log group. 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:
CloudformationResource: AWS::Logs::LogStream
Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-logstream.html
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(Construct, String, ICfnLogStreamProps) | Create a new |
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 |
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(Construct, String, ICfnLogStreamProps)
Create a new AWS::Logs::LogStream
.
public CfnLogStream(Construct scope, string id, ICfnLogStreamProps props)
Parameters
- scope Construct
- scope in which this resource is defined.
- id System.String
- scoped id of the resource.
- props ICfnLogStreamProps
- resource properties.
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
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
Remarks
LogStreamName
The name of the log stream.
public virtual string LogStreamName { get; set; }
Property Value
System.String
Remarks
The name must be unique within the log group.
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>