Class ExecuteCommandConfiguration

    • 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: The awslogs configuration in the task definition is used. If no logging parameter is specified, it defaults to this value. If no awslogs log driver is configured in the task definition, the output won't be logged.

        • OVERRIDE: Specify the logging details as a part of logConfiguration. If the OVERRIDE logging option is specified, the logConfiguration is required.

        If the service returns an enum value that is not available in the current SDK version, logging will return ExecuteCommandLogging.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from loggingAsString().

        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: The awslogs configuration in the task definition is used. If no logging parameter is specified, it defaults to this value. If no awslogs log driver is configured in the task definition, the output won't be logged.

        • OVERRIDE: Specify the logging details as a part of logConfiguration. If the OVERRIDE logging option is specified, the logConfiguration is 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: The awslogs configuration in the task definition is used. If no logging parameter is specified, it defaults to this value. If no awslogs log driver is configured in the task definition, the output won't be logged.

        • OVERRIDE: Specify the logging details as a part of logConfiguration. If the OVERRIDE logging option is specified, the logConfiguration is required.

        If the service returns an enum value that is not available in the current SDK version, logging will return ExecuteCommandLogging.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from loggingAsString().

        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: The awslogs configuration in the task definition is used. If no logging parameter is specified, it defaults to this value. If no awslogs log driver is configured in the task definition, the output won't be logged.

        • OVERRIDE: Specify the logging details as a part of logConfiguration. If the OVERRIDE logging option is specified, the logConfiguration is 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=OVERRIDE is specified, a logConfiguration must 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=OVERRIDE is specified, a logConfiguration must be provided.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • 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.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)