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.Builder
logGroupName
(String 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
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- 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
-
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
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnLogStream>
- Returns:
- a newly built instance of
CfnLogStream
.
-