@Stability(value=Stable) public static final class AwsLogDriverProps.Builder extends Object implements software.amazon.jsii.Builder<AwsLogDriverProps>
AwsLogDriverProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
AwsLogDriverProps |
build()
Builds the configured instance.
|
AwsLogDriverProps.Builder |
datetimeFormat(String datetimeFormat)
Sets the value of
AwsLogDriverProps.getDatetimeFormat() |
AwsLogDriverProps.Builder |
logGroup(ILogGroup logGroup)
Sets the value of
AwsLogDriverProps.getLogGroup() |
AwsLogDriverProps.Builder |
logRetention(RetentionDays logRetention)
Sets the value of
AwsLogDriverProps.getLogRetention() |
AwsLogDriverProps.Builder |
mode(AwsLogDriverMode mode)
Sets the value of
AwsLogDriverProps.getMode() |
AwsLogDriverProps.Builder |
multilinePattern(String multilinePattern)
Sets the value of
AwsLogDriverProps.getMultilinePattern() |
AwsLogDriverProps.Builder |
streamPrefix(String streamPrefix)
Sets the value of
AwsLogDriverProps.getStreamPrefix() |
@Stability(value=Stable) public AwsLogDriverProps.Builder streamPrefix(String streamPrefix)
AwsLogDriverProps.getStreamPrefix()
streamPrefix
- Prefix for the log streams. This parameter is required.
The awslogs-stream-prefix option allows you to associate a log stream
with the specified prefix, the container name, and the ID of the Amazon
ECS task to which the container belongs. If you specify a prefix with
this option, then the log stream takes the following format:
prefix-name/container-name/ecs-task-id
this
@Stability(value=Stable) public AwsLogDriverProps.Builder datetimeFormat(String datetimeFormat)
AwsLogDriverProps.getDatetimeFormat()
datetimeFormat
- This option defines a multiline start pattern in Python strftime format.
A log message consists of a line that matches the pattern and any
following lines that don’t match the pattern. Thus the matched line is
the delimiter between log messages.this
@Stability(value=Stable) public AwsLogDriverProps.Builder logGroup(ILogGroup logGroup)
AwsLogDriverProps.getLogGroup()
logGroup
- The log group to log to.this
@Stability(value=Stable) public AwsLogDriverProps.Builder logRetention(RetentionDays logRetention)
AwsLogDriverProps.getLogRetention()
logRetention
- The number of days log events are kept in CloudWatch Logs when the log group is automatically created by this construct.this
@Stability(value=Stable) public AwsLogDriverProps.Builder mode(AwsLogDriverMode mode)
AwsLogDriverProps.getMode()
mode
- The delivery mode of log messages from the container to awslogs.this
@Stability(value=Stable) public AwsLogDriverProps.Builder multilinePattern(String multilinePattern)
AwsLogDriverProps.getMultilinePattern()
multilinePattern
- This option defines a multiline start pattern using a regular expression.
A log message consists of a line that matches the pattern and any
following lines that don’t match the pattern. Thus the matched line is
the delimiter between log messages.
This option is ignored if datetimeFormat is also configured.
this
@Stability(value=Stable) public AwsLogDriverProps build()
build
in interface software.amazon.jsii.Builder<AwsLogDriverProps>
AwsLogDriverProps
NullPointerException
- if any required attribute was not providedCopyright © 2021. All rights reserved.