class
Amazonite::CloudWatchLogs::PutIndexPolicyRequest
- Amazonite::CloudWatchLogs::PutIndexPolicyRequest
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
cloudwatch_logs/put_index_policy_request.crConstructors
Instance Method Summary
-
#==(other : self)
Returns
trueif this reference is the same as other. -
#hash(hasher)
See
Object#hash(hasher) -
#log_group_identifier : String
Specify either the log group name or log group ARN to apply this field index policy to.
-
#log_group_identifier=(log_group_identifier : String)
Specify either the log group name or log group ARN to apply this field index policy to.
-
#policy_document : String
The index policy document, in JSON format.
-
#policy_document=(policy_document : String)
The index policy document, in JSON format.
- #validate! : Nil
Constructor Detail
Instance Method Detail
Returns true if this reference is the same as other. Invokes same?.
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.
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.
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.
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.