Class LogConfiguration

    • Method Detail

      • logDestination

        public final LogDestination logDestination()

        The type of log collection to use for a fleet.

        • CLOUDWATCH -- (default value) Send logs to an Amazon CloudWatch log group that you define. Each container emits a log stream, which is organized in the log group.

        • S3 -- Store logs in an Amazon S3 bucket that you define.

        • NONE -- Don't collect container logs.

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

        Returns:
        The type of log collection to use for a fleet.

        • CLOUDWATCH -- (default value) Send logs to an Amazon CloudWatch log group that you define. Each container emits a log stream, which is organized in the log group.

        • S3 -- Store logs in an Amazon S3 bucket that you define.

        • NONE -- Don't collect container logs.

        See Also:
        LogDestination
      • logDestinationAsString

        public final String logDestinationAsString()

        The type of log collection to use for a fleet.

        • CLOUDWATCH -- (default value) Send logs to an Amazon CloudWatch log group that you define. Each container emits a log stream, which is organized in the log group.

        • S3 -- Store logs in an Amazon S3 bucket that you define.

        • NONE -- Don't collect container logs.

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

        Returns:
        The type of log collection to use for a fleet.

        • CLOUDWATCH -- (default value) Send logs to an Amazon CloudWatch log group that you define. Each container emits a log stream, which is organized in the log group.

        • S3 -- Store logs in an Amazon S3 bucket that you define.

        • NONE -- Don't collect container logs.

        See Also:
        LogDestination
      • s3BucketName

        public final String s3BucketName()

        If log destination is S3, logs are sent to the specified Amazon S3 bucket name.

        Returns:
        If log destination is S3, logs are sent to the specified Amazon S3 bucket name.
      • logGroupArn

        public final String logGroupArn()

        If log destination is CLOUDWATCH, logs are sent to the specified log group in Amazon CloudWatch.

        Returns:
        If log destination is CLOUDWATCH, logs are sent to the specified log group in Amazon CloudWatch.
      • 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)