Interface LogsConfigurationPolicy.Builder

  • Method Details

    • allowedAccountIds

      LogsConfigurationPolicy.Builder allowedAccountIds(Collection<String> allowedAccountIds)

      A list of account IDs that are allowed to access the logs.

      Parameters:
      allowedAccountIds - A list of account IDs that are allowed to access the logs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • allowedAccountIds

      LogsConfigurationPolicy.Builder allowedAccountIds(String... allowedAccountIds)

      A list of account IDs that are allowed to access the logs.

      Parameters:
      allowedAccountIds - A list of account IDs that are allowed to access the logs.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • filterPattern

      LogsConfigurationPolicy.Builder filterPattern(String filterPattern)

      A regular expression pattern that is used to parse the logs and return information that matches the pattern.

      Parameters:
      filterPattern - A regular expression pattern that is used to parse the logs and return information that matches the pattern.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • logType

      Specifies the type of log this policy applies to. The currently supported policies are ALL or ERROR_SUMMARY.

      Parameters:
      logType - Specifies the type of log this policy applies to. The currently supported policies are ALL or ERROR_SUMMARY.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • logType

      Specifies the type of log this policy applies to. The currently supported policies are ALL or ERROR_SUMMARY.

      Parameters:
      logType - Specifies the type of log this policy applies to. The currently supported policies are ALL or ERROR_SUMMARY.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • logRedactionConfiguration

      LogsConfigurationPolicy.Builder logRedactionConfiguration(LogRedactionConfiguration logRedactionConfiguration)

      Specifies the log redaction configuration for this policy.

      Parameters:
      logRedactionConfiguration - Specifies the log redaction configuration for this policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • logRedactionConfiguration

      default LogsConfigurationPolicy.Builder logRedactionConfiguration(Consumer<LogRedactionConfiguration.Builder> logRedactionConfiguration)

      Specifies the log redaction configuration for this policy.

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

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

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