Class ExecuteCommandConfiguration
- java.lang.Object
-
- software.amazon.awssdk.services.ecs.model.ExecuteCommandConfiguration
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ExecuteCommandConfiguration.Builder,ExecuteCommandConfiguration>
@Generated("software.amazon.awssdk:codegen") public final class ExecuteCommandConfiguration extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ExecuteCommandConfiguration.Builder,ExecuteCommandConfiguration>
The details of the execute command configuration.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceExecuteCommandConfiguration.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ExecuteCommandConfiguration.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringkmsKeyId()Specify an Key Management Service key ID to encrypt the data between the local client and the container.ExecuteCommandLogConfigurationlogConfiguration()The log configuration for the results of the execute command actions.ExecuteCommandLogginglogging()The log setting to use for redirecting logs for your execute command results.StringloggingAsString()The log setting to use for redirecting logs for your execute command results.List<SdkField<?>>sdkFields()static Class<? extends ExecuteCommandConfiguration.Builder>serializableBuilderClass()ExecuteCommandConfiguration.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
kmsKeyId
public final String kmsKeyId()
Specify an Key Management Service key ID to encrypt the data between the local client and the container.
- Returns:
- Specify an Key Management Service key ID to encrypt the data between the local client and the container.
-
logging
public final ExecuteCommandLogging 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.
If the service returns an enum value that is not available in the current SDK version,
loggingwill returnExecuteCommandLogging.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromloggingAsString().- Returns:
- 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.
-
- See Also:
ExecuteCommandLogging
-
-
loggingAsString
public final String loggingAsString()
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.
If the service returns an enum value that is not available in the current SDK version,
loggingwill returnExecuteCommandLogging.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromloggingAsString().- Returns:
- 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.
-
- See Also:
ExecuteCommandLogging
-
-
logConfiguration
public final 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.- Returns:
- 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.
-
toBuilder
public ExecuteCommandConfiguration.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ExecuteCommandConfiguration.Builder,ExecuteCommandConfiguration>
-
builder
public static ExecuteCommandConfiguration.Builder builder()
-
serializableBuilderClass
public static Class<? extends ExecuteCommandConfiguration.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-