@Stability(value=Stable) public static final class CfnLoggerDefinition.LoggerProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnLoggerDefinition.LoggerProperty>
CfnLoggerDefinition.LoggerProperty| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnLoggerDefinition.LoggerProperty |
build()
Builds the configured instance.
|
CfnLoggerDefinition.LoggerProperty.Builder |
component(String component)
Sets the value of
CfnLoggerDefinition.LoggerProperty.getComponent() |
CfnLoggerDefinition.LoggerProperty.Builder |
id(String id)
Sets the value of
CfnLoggerDefinition.LoggerProperty.getId() |
CfnLoggerDefinition.LoggerProperty.Builder |
level(String level)
Sets the value of
CfnLoggerDefinition.LoggerProperty.getLevel() |
CfnLoggerDefinition.LoggerProperty.Builder |
space(Number space)
Sets the value of
CfnLoggerDefinition.LoggerProperty.getSpace() |
CfnLoggerDefinition.LoggerProperty.Builder |
type(String type)
Sets the value of
CfnLoggerDefinition.LoggerProperty.getType() |
@Stability(value=Stable) public CfnLoggerDefinition.LoggerProperty.Builder component(String component)
CfnLoggerDefinition.LoggerProperty.getComponent()component - The source of the log event. This parameter is required.
Valid values are GreengrassSystem or Lambda . When GreengrassSystem is used, events from Greengrass system components are logged. When Lambda is used, events from user-defined Lambda functions are logged.this@Stability(value=Stable) public CfnLoggerDefinition.LoggerProperty.Builder id(String id)
CfnLoggerDefinition.LoggerProperty.getId()id - A descriptive or arbitrary ID for the logger. This parameter is required.
This value must be unique within the logger definition version. Maximum length is 128 characters with pattern [a-zA-Z0-9:_-]+ .this@Stability(value=Stable) public CfnLoggerDefinition.LoggerProperty.Builder level(String level)
CfnLoggerDefinition.LoggerProperty.getLevel()level - The log-level threshold. This parameter is required.
Log events below this threshold are filtered out and aren't stored. Valid values are DEBUG , INFO (recommended), WARN , ERROR , or FATAL .this@Stability(value=Stable) public CfnLoggerDefinition.LoggerProperty.Builder type(String type)
CfnLoggerDefinition.LoggerProperty.getType()type - The storage mechanism for log events. This parameter is required.
Valid values are FileSystem or AWSCloudWatch . When AWSCloudWatch is used, log events are sent to CloudWatch Logs . When FileSystem is used, log events are stored on the local file system.this@Stability(value=Stable) public CfnLoggerDefinition.LoggerProperty.Builder space(Number space)
CfnLoggerDefinition.LoggerProperty.getSpace()space - The amount of file space (in KB) to use when writing logs to the local file system.
This property does not apply for CloudWatch Logs .this@Stability(value=Stable) public CfnLoggerDefinition.LoggerProperty build()
build in interface software.amazon.jsii.Builder<CfnLoggerDefinition.LoggerProperty>CfnLoggerDefinition.LoggerPropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.