Class CfnLogStream.Builder
java.lang.Object
software.amazon.awscdk.services.logs.CfnLogStream.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLogStream>
- Enclosing class:
CfnLogStream
@Stability(Stable)
public static final class CfnLogStream.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLogStream>
A fluent builder for
CfnLogStream.-
Method Summary
Modifier and TypeMethodDescriptionbuild()static CfnLogStream.BuilderlogGroupName(String logGroupName) The name of the log group where the log stream is created.logGroupName(ILogGroupRef logGroupName) The name of the log group where the log stream is created.logStreamName(String logStreamName) The name of the log stream.
-
Method Details
-
create
@Stability(Stable) public static CfnLogStream.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnLogStream.Builder.
-
logGroupName
The name of the log group where the log stream is created.- Parameters:
logGroupName- The name of the log group where the log stream is created. This parameter is required.- Returns:
this- See Also:
-
logGroupName
The name of the log group where the log stream is created.- Parameters:
logGroupName- The name of the log group where the log stream is created. This parameter is required.- Returns:
this- See Also:
-
logStreamName
The name of the log stream.The name must be unique within the log group.
- Parameters:
logStreamName- The name of the log stream. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLogStream>- Returns:
- a newly built instance of
CfnLogStream.
-