@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:40.698Z") @Stability(value=Stable) public class CfnLogStream extends CfnResource implements IInspectable
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:
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.logs.*;
CfnLogStream cfnLogStream = CfnLogStream.Builder.create(this, "MyCfnLogStream")
.logGroupName("logGroupName")
// the properties below are optional
.logStreamName("logStreamName")
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnLogStream.Builder
A fluent builder for
CfnLogStream. |
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnLogStream(software.constructs.Construct scope,
String id,
CfnLogStreamProps props)
Create a new `AWS::Logs::LogStream`.
|
protected |
CfnLogStream(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnLogStream(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Object> |
getCfnProperties() |
String |
getLogGroupName()
The name of the log group where the log stream is created.
|
String |
getLogStreamName()
The name of the log stream.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setLogGroupName(String value)
The name of the log group where the log stream is created.
|
void |
setLogStreamName(String value)
The name of the log stream.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnLogStream(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnLogStream(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnLogStream(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnLogStreamProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public String getLogGroupName()
@Stability(value=Stable)
public void setLogGroupName(@NotNull
String value)
@Stability(value=Stable) @Nullable public String getLogStreamName()
The name must be unique within the log group.
@Stability(value=Stable)
public void setLogStreamName(@Nullable
String value)
The name must be unique within the log group.
Copyright © 2022. All rights reserved.