Interface LoggingEnabled.Builder

  • Method Details

    • targetBucket

      LoggingEnabled.Builder targetBucket(String targetBucket)

      The name of the general purpose bucket that logs are delivered to. The bucket must be in the same Amazon Web Services Region and owned by the same Amazon Web Services account as the table bucket. The bucket can't use SSE-KMS or DSSE-KMS default encryption, can't have S3 Object Lock enabled, and can't have Requester Pays enabled. You can deliver logs from multiple table buckets to the same target bucket. In this case, choose a different targetPrefix for each table bucket so that you can tell their log objects apart.

      Parameters:
      targetBucket - The name of the general purpose bucket that logs are delivered to. The bucket must be in the same Amazon Web Services Region and owned by the same Amazon Web Services account as the table bucket. The bucket can't use SSE-KMS or DSSE-KMS default encryption, can't have S3 Object Lock enabled, and can't have Requester Pays enabled. You can deliver logs from multiple table buckets to the same target bucket. In this case, choose a different targetPrefix for each table bucket so that you can tell their log objects apart.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • targetPrefix

      LoggingEnabled.Builder targetPrefix(String targetPrefix)

      The prefix for the keys of the log objects that are delivered to the target bucket.

      Parameters:
      targetPrefix - The prefix for the keys of the log objects that are delivered to the target bucket.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • targetObjectKeyFormat

      LoggingEnabled.Builder targetObjectKeyFormat(TargetObjectKeyFormat targetObjectKeyFormat)

      The key format of the log objects. Log object keys are always partitioned by date.

      Parameters:
      targetObjectKeyFormat - The key format of the log objects. Log object keys are always partitioned by date.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • targetObjectKeyFormat

      default LoggingEnabled.Builder targetObjectKeyFormat(Consumer<TargetObjectKeyFormat.Builder> targetObjectKeyFormat)

      The key format of the log objects. Log object keys are always partitioned by date.

      This is a convenience method that creates an instance of the TargetObjectKeyFormat.Builder avoiding the need to create one manually via TargetObjectKeyFormat.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to targetObjectKeyFormat(TargetObjectKeyFormat).

      Parameters:
      targetObjectKeyFormat - a consumer that will call methods on TargetObjectKeyFormat.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: