Class CfnLogging.Builder

java.lang.Object
software.amazon.awscdk.services.iot.CfnLogging.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLogging>
Enclosing class:
CfnLogging

@Stability(Stable) public static final class CfnLogging.Builder extends Object implements software.amazon.jsii.Builder<CfnLogging>
A fluent builder for CfnLogging.
  • Method Details

    • create

      @Stability(Stable) public static CfnLogging.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 CfnLogging.Builder.
    • accountId

      @Stability(Stable) public CfnLogging.Builder accountId(String accountId)
      The account ID.

      Parameters:
      accountId - The account ID. This parameter is required.
      Returns:
      this
    • defaultLogLevel

      @Stability(Stable) public CfnLogging.Builder defaultLogLevel(String defaultLogLevel)
      The default log level.

      Valid Values: DEBUG | INFO | ERROR | WARN | DISABLED

      Parameters:
      defaultLogLevel - The default log level. This parameter is required.
      Returns:
      this
    • roleArn

      @Stability(Stable) public CfnLogging.Builder roleArn(String roleArn)
      The role ARN used for the log.

      Parameters:
      roleArn - The role ARN used for the log. This parameter is required.
      Returns:
      this
    • build

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