Class PutIndexPolicyRequest

    • Method Detail

      • logGroupIdentifier

        public final 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.

        Returns:
        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.
      • policyDocument

        public final String policyDocument()

        The index policy document, in JSON format. The following is an example of an index policy document that creates two indexes, RequestId and TransactionId.

        "policyDocument": "{ "Fields": [ "RequestId", "TransactionId" ] }"

        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:
        The index policy document, in JSON format. The following is an example of an index policy document that creates two indexes, RequestId and TransactionId.

        "policyDocument": "{ "Fields": [ "RequestId", "TransactionId" ] }"

        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.

      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object