Interface AdvancedFieldSelector.Builder

  • Method Details

    • field

      A field in a CloudTrail event record on which to filter events to be logged. For event data stores for CloudTrail Insights events, Config configuration items, Audit Manager evidence, or events outside of Amazon Web Services, the field is used only for selecting events as filtering is not supported.

      For more information, see AdvancedFieldSelector in the CloudTrail API Reference.

      Selectors don't support the use of wildcards like * . To match multiple values with a single condition, you may use StartsWith, EndsWith, NotStartsWith, or NotEndsWith to explicitly match the beginning or end of the event field.

      Parameters:
      field - A field in a CloudTrail event record on which to filter events to be logged. For event data stores for CloudTrail Insights events, Config configuration items, Audit Manager evidence, or events outside of Amazon Web Services, the field is used only for selecting events as filtering is not supported.

      For more information, see AdvancedFieldSelector in the CloudTrail API Reference.

      Selectors don't support the use of wildcards like * . To match multiple values with a single condition, you may use StartsWith, EndsWith, NotStartsWith, or NotEndsWith to explicitly match the beginning or end of the event field.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • equalsValue

      An operator that includes events that match the exact value of the event record field specified as the value of Field. This is the only valid operator that you can use with the readOnly, eventCategory, and resources.type fields.

      Parameters:
      equals - An operator that includes events that match the exact value of the event record field specified as the value of Field. This is the only valid operator that you can use with the readOnly, eventCategory, and resources.type fields.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • equalsValue

      AdvancedFieldSelector.Builder equalsValue(String... equals)

      An operator that includes events that match the exact value of the event record field specified as the value of Field. This is the only valid operator that you can use with the readOnly, eventCategory, and resources.type fields.

      Parameters:
      equals - An operator that includes events that match the exact value of the event record field specified as the value of Field. This is the only valid operator that you can use with the readOnly, eventCategory, and resources.type fields.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • startsWith

      An operator that includes events that match the first few characters of the event record field specified as the value of Field.

      Parameters:
      startsWith - An operator that includes events that match the first few characters of the event record field specified as the value of Field.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • startsWith

      AdvancedFieldSelector.Builder startsWith(String... startsWith)

      An operator that includes events that match the first few characters of the event record field specified as the value of Field.

      Parameters:
      startsWith - An operator that includes events that match the first few characters of the event record field specified as the value of Field.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • endsWith

      An operator that includes events that match the last few characters of the event record field specified as the value of Field.

      Parameters:
      endsWith - An operator that includes events that match the last few characters of the event record field specified as the value of Field.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • endsWith

      AdvancedFieldSelector.Builder endsWith(String... endsWith)

      An operator that includes events that match the last few characters of the event record field specified as the value of Field.

      Parameters:
      endsWith - An operator that includes events that match the last few characters of the event record field specified as the value of Field.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • notEquals

      An operator that excludes events that match the exact value of the event record field specified as the value of Field.

      Parameters:
      notEquals - An operator that excludes events that match the exact value of the event record field specified as the value of Field.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • notEquals

      AdvancedFieldSelector.Builder notEquals(String... notEquals)

      An operator that excludes events that match the exact value of the event record field specified as the value of Field.

      Parameters:
      notEquals - An operator that excludes events that match the exact value of the event record field specified as the value of Field.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • notStartsWith

      AdvancedFieldSelector.Builder notStartsWith(Collection<String> notStartsWith)

      An operator that excludes events that match the first few characters of the event record field specified as the value of Field.

      Parameters:
      notStartsWith - An operator that excludes events that match the first few characters of the event record field specified as the value of Field.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • notStartsWith

      AdvancedFieldSelector.Builder notStartsWith(String... notStartsWith)

      An operator that excludes events that match the first few characters of the event record field specified as the value of Field.

      Parameters:
      notStartsWith - An operator that excludes events that match the first few characters of the event record field specified as the value of Field.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • notEndsWith

      AdvancedFieldSelector.Builder notEndsWith(Collection<String> notEndsWith)

      An operator that excludes events that match the last few characters of the event record field specified as the value of Field.

      Parameters:
      notEndsWith - An operator that excludes events that match the last few characters of the event record field specified as the value of Field.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • notEndsWith

      AdvancedFieldSelector.Builder notEndsWith(String... notEndsWith)

      An operator that excludes events that match the last few characters of the event record field specified as the value of Field.

      Parameters:
      notEndsWith - An operator that excludes events that match the last few characters of the event record field specified as the value of Field.
      Returns:
      Returns a reference to this object so that method calls can be chained together.