Class SplunkLogDriverProps.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.SplunkLogDriverProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SplunkLogDriverProps>
- Enclosing interface:
SplunkLogDriverProps
@Stability(Stable)
public static final class SplunkLogDriverProps.Builder
extends Object
implements software.amazon.jsii.Builder<SplunkLogDriverProps>
A builder for
SplunkLogDriverProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofSplunkLogDriverProps.getCaName()
Sets the value ofSplunkLogDriverProps.getCaPath()
Sets the value ofBaseLogDriverProps.getEnv()
Sets the value ofBaseLogDriverProps.getEnvRegex()
format
(SplunkLogFormat format) Sets the value ofSplunkLogDriverProps.getFormat()
Sets the value ofSplunkLogDriverProps.getGzip()
Sets the value ofSplunkLogDriverProps.getGzipLevel()
Sets the value ofSplunkLogDriverProps.getIndex()
insecureSkipVerify
(String insecureSkipVerify) Sets the value ofSplunkLogDriverProps.getInsecureSkipVerify()
Sets the value ofBaseLogDriverProps.getLabels()
secretToken
(Secret secretToken) Sets the value ofSplunkLogDriverProps.getSecretToken()
Sets the value ofSplunkLogDriverProps.getSource()
sourceType
(String sourceType) Sets the value ofSplunkLogDriverProps.getSourceType()
Sets the value ofBaseLogDriverProps.getTag()
Sets the value ofSplunkLogDriverProps.getUrl()
verifyConnection
(Boolean verifyConnection) Sets the value ofSplunkLogDriverProps.getVerifyConnection()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
secretToken
Sets the value ofSplunkLogDriverProps.getSecretToken()
- Parameters:
secretToken
- Splunk HTTP Event Collector token (Secret). This parameter is required. The splunk-token is added to the SecretOptions property of the Log Driver Configuration. So the secret value will not be resolved or viewable as plain text.- Returns:
this
-
url
Sets the value ofSplunkLogDriverProps.getUrl()
- Parameters:
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.- Returns:
this
-
caName
Sets the value ofSplunkLogDriverProps.getCaName()
- Parameters:
caName
- Name to use for validating server certificate.- Returns:
this
-
caPath
Sets the value ofSplunkLogDriverProps.getCaPath()
- Parameters:
caPath
- Path to root certificate.- Returns:
this
-
format
Sets the value ofSplunkLogDriverProps.getFormat()
- Parameters:
format
- Message format. Can be inline, json or raw.- Returns:
this
-
gzip
Sets the value ofSplunkLogDriverProps.getGzip()
- Parameters:
gzip
- Enable/disable gzip compression to send events to Splunk Enterprise or Splunk Cloud instance.- Returns:
this
-
gzipLevel
Sets the value ofSplunkLogDriverProps.getGzipLevel()
- Parameters:
gzipLevel
- Set compression level for gzip. Valid values are -1 (default), 0 (no compression), 1 (best speed) ... 9 (best compression).- Returns:
this
-
index
Sets the value ofSplunkLogDriverProps.getIndex()
- Parameters:
index
- Event index.- Returns:
this
-
insecureSkipVerify
@Stability(Stable) public SplunkLogDriverProps.Builder insecureSkipVerify(String insecureSkipVerify) Sets the value ofSplunkLogDriverProps.getInsecureSkipVerify()
- Parameters:
insecureSkipVerify
- Ignore server certificate validation.- Returns:
this
-
source
Sets the value ofSplunkLogDriverProps.getSource()
- Parameters:
source
- Event source.- Returns:
this
-
sourceType
Sets the value ofSplunkLogDriverProps.getSourceType()
- Parameters:
sourceType
- Event source type.- Returns:
this
-
verifyConnection
Sets the value ofSplunkLogDriverProps.getVerifyConnection()
- Parameters:
verifyConnection
- Verify on start, that docker can connect to Splunk server.- Returns:
this
-
env
Sets the value ofBaseLogDriverProps.getEnv()
- Parameters:
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.- Returns:
this
-
envRegex
Sets the value ofBaseLogDriverProps.getEnvRegex()
- Parameters:
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.- Returns:
this
-
labels
Sets the value ofBaseLogDriverProps.getLabels()
- Parameters:
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.- Returns:
this
-
tag
Sets the value ofBaseLogDriverProps.getTag()
- Parameters:
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.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<SplunkLogDriverProps>
- Returns:
- a new instance of
SplunkLogDriverProps
- Throws:
NullPointerException
- if any required attribute was not provided
-