Interface LogRedactionConfiguration.Builder

  • Method Details

    • entitiesToRedactWithStrings

      LogRedactionConfiguration.Builder entitiesToRedactWithStrings(Collection<String> entitiesToRedact)

      Specifies the entities to be redacted from logs. Entities to redact are "ALL_PERSONALLY_IDENTIFIABLE_INFORMATION", "NUMBERS","CUSTOM". If CUSTOM is supplied or configured, custom patterns (customDataIdentifiers) should be provided, and the patterns will be redacted in logs or error messages.

      Parameters:
      entitiesToRedact - Specifies the entities to be redacted from logs. Entities to redact are "ALL_PERSONALLY_IDENTIFIABLE_INFORMATION", "NUMBERS","CUSTOM". If CUSTOM is supplied or configured, custom patterns (customDataIdentifiers) should be provided, and the patterns will be redacted in logs or error messages.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • entitiesToRedactWithStrings

      LogRedactionConfiguration.Builder entitiesToRedactWithStrings(String... entitiesToRedact)

      Specifies the entities to be redacted from logs. Entities to redact are "ALL_PERSONALLY_IDENTIFIABLE_INFORMATION", "NUMBERS","CUSTOM". If CUSTOM is supplied or configured, custom patterns (customDataIdentifiers) should be provided, and the patterns will be redacted in logs or error messages.

      Parameters:
      entitiesToRedact - Specifies the entities to be redacted from logs. Entities to redact are "ALL_PERSONALLY_IDENTIFIABLE_INFORMATION", "NUMBERS","CUSTOM". If CUSTOM is supplied or configured, custom patterns (customDataIdentifiers) should be provided, and the patterns will be redacted in logs or error messages.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • entitiesToRedact

      LogRedactionConfiguration.Builder entitiesToRedact(Collection<EntityType> entitiesToRedact)

      Specifies the entities to be redacted from logs. Entities to redact are "ALL_PERSONALLY_IDENTIFIABLE_INFORMATION", "NUMBERS","CUSTOM". If CUSTOM is supplied or configured, custom patterns (customDataIdentifiers) should be provided, and the patterns will be redacted in logs or error messages.

      Parameters:
      entitiesToRedact - Specifies the entities to be redacted from logs. Entities to redact are "ALL_PERSONALLY_IDENTIFIABLE_INFORMATION", "NUMBERS","CUSTOM". If CUSTOM is supplied or configured, custom patterns (customDataIdentifiers) should be provided, and the patterns will be redacted in logs or error messages.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • entitiesToRedact

      LogRedactionConfiguration.Builder entitiesToRedact(EntityType... entitiesToRedact)

      Specifies the entities to be redacted from logs. Entities to redact are "ALL_PERSONALLY_IDENTIFIABLE_INFORMATION", "NUMBERS","CUSTOM". If CUSTOM is supplied or configured, custom patterns (customDataIdentifiers) should be provided, and the patterns will be redacted in logs or error messages.

      Parameters:
      entitiesToRedact - Specifies the entities to be redacted from logs. Entities to redact are "ALL_PERSONALLY_IDENTIFIABLE_INFORMATION", "NUMBERS","CUSTOM". If CUSTOM is supplied or configured, custom patterns (customDataIdentifiers) should be provided, and the patterns will be redacted in logs or error messages.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • customEntityConfig

      LogRedactionConfiguration.Builder customEntityConfig(CustomEntityConfig customEntityConfig)

      Specifies the configuration for custom entities in the context of log redaction.

      Parameters:
      customEntityConfig - Specifies the configuration for custom entities in the context of log redaction.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • customEntityConfig

      default LogRedactionConfiguration.Builder customEntityConfig(Consumer<CustomEntityConfig.Builder> customEntityConfig)

      Specifies the configuration for custom entities in the context of log redaction.

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

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

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