Interface ExecuteCommandConfiguration.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ExecuteCommandConfiguration.Builder,
,ExecuteCommandConfiguration> SdkBuilder<ExecuteCommandConfiguration.Builder,
,ExecuteCommandConfiguration> SdkPojo
- Enclosing class:
ExecuteCommandConfiguration
-
Method Summary
Modifier and TypeMethodDescriptionSpecify an Key Management Service key ID to encrypt the data between the local client and the container.logConfiguration
(Consumer<ExecuteCommandLogConfiguration.Builder> logConfiguration) The log configuration for the results of the execute command actions.logConfiguration
(ExecuteCommandLogConfiguration logConfiguration) The log configuration for the results of the execute command actions.The log setting to use for redirecting logs for your execute command results.logging
(ExecuteCommandLogging logging) The log setting to use for redirecting logs for your execute command results.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
kmsKeyId
Specify an Key Management Service key ID to encrypt the data between the local client and the container.
- Parameters:
kmsKeyId
- Specify an Key Management Service key ID to encrypt the data between the local client and the container.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logging
The log setting to use for redirecting logs for your execute command results. The following log settings are available.
-
NONE
: The execute command session is not logged. -
DEFAULT
: Theawslogs
configuration in the task definition is used. If no logging parameter is specified, it defaults to this value. If noawslogs
log driver is configured in the task definition, the output won't be logged. -
OVERRIDE
: Specify the logging details as a part oflogConfiguration
. If theOVERRIDE
logging option is specified, thelogConfiguration
is required.
- Parameters:
logging
- The log setting to use for redirecting logs for your execute command results. The following log settings are available.-
NONE
: The execute command session is not logged. -
DEFAULT
: Theawslogs
configuration in the task definition is used. If no logging parameter is specified, it defaults to this value. If noawslogs
log driver is configured in the task definition, the output won't be logged. -
OVERRIDE
: Specify the logging details as a part oflogConfiguration
. If theOVERRIDE
logging option is specified, thelogConfiguration
is required.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
logging
The log setting to use for redirecting logs for your execute command results. The following log settings are available.
-
NONE
: The execute command session is not logged. -
DEFAULT
: Theawslogs
configuration in the task definition is used. If no logging parameter is specified, it defaults to this value. If noawslogs
log driver is configured in the task definition, the output won't be logged. -
OVERRIDE
: Specify the logging details as a part oflogConfiguration
. If theOVERRIDE
logging option is specified, thelogConfiguration
is required.
- Parameters:
logging
- The log setting to use for redirecting logs for your execute command results. The following log settings are available.-
NONE
: The execute command session is not logged. -
DEFAULT
: Theawslogs
configuration in the task definition is used. If no logging parameter is specified, it defaults to this value. If noawslogs
log driver is configured in the task definition, the output won't be logged. -
OVERRIDE
: Specify the logging details as a part oflogConfiguration
. If theOVERRIDE
logging option is specified, thelogConfiguration
is required.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
logConfiguration
ExecuteCommandConfiguration.Builder logConfiguration(ExecuteCommandLogConfiguration logConfiguration) The log configuration for the results of the execute command actions. The logs can be sent to CloudWatch Logs or an Amazon S3 bucket. When
logging=OVERRIDE
is specified, alogConfiguration
must be provided.- Parameters:
logConfiguration
- The log configuration for the results of the execute command actions. The logs can be sent to CloudWatch Logs or an Amazon S3 bucket. Whenlogging=OVERRIDE
is specified, alogConfiguration
must be provided.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logConfiguration
default ExecuteCommandConfiguration.Builder logConfiguration(Consumer<ExecuteCommandLogConfiguration.Builder> logConfiguration) The log configuration for the results of the execute command actions. The logs can be sent to CloudWatch Logs or an Amazon S3 bucket. When
This is a convenience method that creates an instance of thelogging=OVERRIDE
is specified, alogConfiguration
must be provided.ExecuteCommandLogConfiguration.Builder
avoiding the need to create one manually viaExecuteCommandLogConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tologConfiguration(ExecuteCommandLogConfiguration)
.- Parameters:
logConfiguration
- a consumer that will call methods onExecuteCommandLogConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-