Interface PutIndexPolicyRequest.Builder

  • Method Details

    • logGroupIdentifier

      PutIndexPolicyRequest.Builder logGroupIdentifier(String logGroupIdentifier)

      Specify either the log group name or log group ARN to apply this field index policy to. If you specify an ARN, use the format arn:aws:logs:region:account-id:log-group:log_group_name Don't include an * at the end.

      Parameters:
      logGroupIdentifier - Specify either the log group name or log group ARN to apply this field index policy to. If you specify an ARN, use the format arn:aws:logs:region:account-id:log-group:log_group_name Don't include an * at the end.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • policyDocument

      PutIndexPolicyRequest.Builder policyDocument(String policyDocument)

      The index policy document, in JSON format. The following is an example of an index policy document that creates indexes with different types.

      "policyDocument": "{"Fields": [ "TransactionId" ], "FieldsV2": {"RequestId": {"type": "FIELD_INDEX"}, "APIName": {"type": "FACET"}, "StatusCode": {"type": "FACET"}}}"

      You can use FieldsV2 to specify the type for each field. Supported types are FIELD_INDEX and FACET. Field names within Fields and FieldsV2 must be mutually exclusive.

      The policy document must include at least one field index. For more information about the fields that can be included and other restrictions, see Field index syntax and quotas.

      Parameters:
      policyDocument - The index policy document, in JSON format. The following is an example of an index policy document that creates indexes with different types.

      "policyDocument": "{"Fields": [ "TransactionId" ], "FieldsV2": {"RequestId": {"type": "FIELD_INDEX"}, "APIName": {"type": "FACET"}, "StatusCode": {"type": "FACET"}}}"

      You can use FieldsV2 to specify the type for each field. Supported types are FIELD_INDEX and FACET. Field names within Fields and FieldsV2 must be mutually exclusive.

      The policy document must include at least one field index. For more information about the fields that can be included and other restrictions, see Field index syntax and quotas.

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

      PutIndexPolicyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.