Class PutIndexPolicyRequest
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<PutIndexPolicyRequest.Builder,PutIndexPolicyRequest>
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final StringSpecify either the log group name or log group ARN to apply this field index policy to.final StringThe index policy document, in JSON format.static Class<? extends PutIndexPolicyRequest.Builder>final StringtoString()Returns a string representation of this object.Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfigurationMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
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
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
FieldsV2to specify the type for each field. Supported types areFIELD_INDEXandFACET. Field names withinFieldsandFieldsV2must 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:
- 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
FieldsV2to specify the type for each field. Supported types areFIELD_INDEXandFACET. Field names withinFieldsandFieldsV2must 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.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<PutIndexPolicyRequest.Builder,PutIndexPolicyRequest> - Specified by:
toBuilderin classCloudWatchLogsRequest
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode()- Overrides:
hashCodein classAwsRequest
-
equals
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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. -
getValueForField
- Overrides:
getValueForFieldin classSdkRequest
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-