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 Details

    • create

      @Stability(Stable) public static CfnLogStream.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnLogStream.Builder.
    • logGroupName

      @Stability(Stable) public CfnLogStream.Builder logGroupName(String 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

      @Stability(Stable) public CfnLogStream.Builder logStreamName(String 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

      @Stability(Stable) public CfnLogStream build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnLogStream>
      Returns:
      a newly built instance of CfnLogStream.