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
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods 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: Theawslogsconfiguration in the task definition is used. If no logging parameter is specified, it defaults to this value. If noawslogslog driver is configured in the task definition, the output won't be logged. -
OVERRIDE: Specify the logging details as a part oflogConfiguration. If theOVERRIDElogging option is specified, thelogConfigurationis 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: Theawslogsconfiguration in the task definition is used. If no logging parameter is specified, it defaults to this value. If noawslogslog driver is configured in the task definition, the output won't be logged. -
OVERRIDE: Specify the logging details as a part oflogConfiguration. If theOVERRIDElogging option is specified, thelogConfigurationis 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: Theawslogsconfiguration in the task definition is used. If no logging parameter is specified, it defaults to this value. If noawslogslog driver is configured in the task definition, the output won't be logged. -
OVERRIDE: Specify the logging details as a part oflogConfiguration. If theOVERRIDElogging option is specified, thelogConfigurationis 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: Theawslogsconfiguration in the task definition is used. If no logging parameter is specified, it defaults to this value. If noawslogslog driver is configured in the task definition, the output won't be logged. -
OVERRIDE: Specify the logging details as a part oflogConfiguration. If theOVERRIDElogging option is specified, thelogConfigurationis 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=OVERRIDEis specified, alogConfigurationmust 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=OVERRIDEis specified, alogConfigurationmust 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=OVERRIDEis specified, alogConfigurationmust be provided.ExecuteCommandLogConfiguration.Builderavoiding the need to create one manually viaExecuteCommandLogConfiguration.builder().When the
Consumercompletes,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:
-