@Stability(value=Experimental) public static final class SplunkLogDriverProps.Builder extends Object implements software.amazon.jsii.Builder<SplunkLogDriverProps>
SplunkLogDriverProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Experimental) public SplunkLogDriverProps.Builder token(SecretValue token)
SplunkLogDriverProps.getToken()token - Splunk HTTP Event Collector token. This parameter is required.this@Stability(value=Experimental) public SplunkLogDriverProps.Builder url(String url)
SplunkLogDriverProps.getUrl()url - Path to your Splunk Enterprise, self-service Splunk Cloud instance, or Splunk Cloud managed cluster (including port and scheme used by HTTP Event Collector) in one of the following formats: https://your_splunk_instance:8088 or https://input-prd-p-XXXXXXX.cloud.splunk.com:8088 or https://http-inputs-XXXXXXXX.splunkcloud.com. This parameter is required.this@Stability(value=Experimental) public SplunkLogDriverProps.Builder caName(String caName)
SplunkLogDriverProps.getCaName()caName - Name to use for validating server certificate.this@Stability(value=Experimental) public SplunkLogDriverProps.Builder caPath(String caPath)
SplunkLogDriverProps.getCaPath()caPath - Path to root certificate.this@Stability(value=Experimental) public SplunkLogDriverProps.Builder format(SplunkLogFormat format)
SplunkLogDriverProps.getFormat()format - Message format.
Can be inline, json or raw.this@Stability(value=Experimental) public SplunkLogDriverProps.Builder gzip(Boolean gzip)
SplunkLogDriverProps.getGzip()gzip - Enable/disable gzip compression to send events to Splunk Enterprise or Splunk Cloud instance.this@Stability(value=Experimental) public SplunkLogDriverProps.Builder gzipLevel(Number gzipLevel)
SplunkLogDriverProps.getGzipLevel()gzipLevel - Set compression level for gzip.
Valid values are -1 (default), 0 (no compression),
1 (best speed) ... 9 (best compression).this@Stability(value=Experimental) public SplunkLogDriverProps.Builder index(String index)
SplunkLogDriverProps.getIndex()index - Event index.this@Stability(value=Experimental) public SplunkLogDriverProps.Builder insecureSkipVerify(String insecureSkipVerify)
SplunkLogDriverProps.getInsecureSkipVerify()insecureSkipVerify - Ignore server certificate validation.this@Stability(value=Experimental) public SplunkLogDriverProps.Builder source(String source)
SplunkLogDriverProps.getSource()source - Event source.this@Stability(value=Experimental) public SplunkLogDriverProps.Builder sourceType(String sourceType)
SplunkLogDriverProps.getSourceType()sourceType - Event source type.this@Stability(value=Experimental) public SplunkLogDriverProps.Builder verifyConnection(Boolean verifyConnection)
SplunkLogDriverProps.getVerifyConnection()verifyConnection - Verify on start, that docker can connect to Splunk server.this@Stability(value=Experimental) public SplunkLogDriverProps.Builder env(List<String> env)
BaseLogDriverProps.getEnv()env - The env option takes an array of keys.
If there is collision between
label and env keys, the value of the env takes precedence. Adds additional fields
to the extra attributes of a logging message.this@Stability(value=Experimental) public SplunkLogDriverProps.Builder envRegex(String envRegex)
BaseLogDriverProps.getEnvRegex()envRegex - The env-regex option is similar to and compatible with env.
Its value is a regular
expression to match logging-related environment variables. It is used for advanced
log tag options.this@Stability(value=Experimental) public SplunkLogDriverProps.Builder labels(List<String> labels)
BaseLogDriverProps.getLabels()labels - The labels option takes an array of keys.
If there is collision
between label and env keys, the value of the env takes precedence. Adds additional
fields to the extra attributes of a logging message.this@Stability(value=Experimental) public SplunkLogDriverProps.Builder tag(String tag)
BaseLogDriverProps.getTag()tag - By default, Docker uses the first 12 characters of the container ID to tag log messages.
Refer to the log tag option documentation for customizing the
log tag format.this@Stability(value=Experimental) public SplunkLogDriverProps build()
build in interface software.amazon.jsii.Builder<SplunkLogDriverProps>SplunkLogDriverPropsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.