Class LogGroupConfiguration
- java.lang.Object
-
- software.amazon.awssdk.services.oam.model.LogGroupConfiguration
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<LogGroupConfiguration.Builder,LogGroupConfiguration>
@Generated("software.amazon.awssdk:codegen") public final class LogGroupConfiguration extends Object implements SdkPojo, Serializable, ToCopyableBuilder<LogGroupConfiguration.Builder,LogGroupConfiguration>
This structure contains the
Filterparameter which you can use to specify which log groups are to share log events from this source account to the monitoring account.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceLogGroupConfiguration.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LogGroupConfiguration.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)Stringfilter()Use this field to specify which log groups are to share their log events with the monitoring account.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends LogGroupConfiguration.Builder>serializableBuilderClass()LogGroupConfiguration.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
filter
public final String filter()
Use this field to specify which log groups are to share their log events with the monitoring account. Use the term
LogGroupNameand one or more of the following operands. Use single quotation marks (') around log group names. The matching of log group names is case sensitive. Each filter has a limit of five conditional operands. Conditional operands areANDandOR.-
=and!= -
AND -
OR -
LIKEandNOT LIKE. These can be used only as prefix searches. Include a%at the end of the string that you want to search for and include. -
INandNOT IN, using parentheses( )
Examples:
-
LogGroupName IN ('This-Log-Group', 'Other-Log-Group')includes only the log groups with namesThis-Log-GroupandOther-Log-Group. -
LogGroupName NOT IN ('Private-Log-Group', 'Private-Log-Group-2')includes all log groups except the log groups with namesPrivate-Log-GroupandPrivate-Log-Group-2. -
LogGroupName LIKE 'aws/lambda/%' OR LogGroupName LIKE 'AWSLogs%'includes all log groups that have names that start withaws/lambda/orAWSLogs.
If you are updating a link that uses filters, you can specify
*as the only value for thefilterparameter to delete the filter and share all log groups with the monitoring account.- Returns:
- Use this field to specify which log groups are to share their log events with the monitoring account. Use
the term
LogGroupNameand one or more of the following operands. Use single quotation marks (') around log group names. The matching of log group names is case sensitive. Each filter has a limit of five conditional operands. Conditional operands areANDandOR.-
=and!= -
AND -
OR -
LIKEandNOT LIKE. These can be used only as prefix searches. Include a%at the end of the string that you want to search for and include. -
INandNOT IN, using parentheses( )
Examples:
-
LogGroupName IN ('This-Log-Group', 'Other-Log-Group')includes only the log groups with namesThis-Log-GroupandOther-Log-Group. -
LogGroupName NOT IN ('Private-Log-Group', 'Private-Log-Group-2')includes all log groups except the log groups with namesPrivate-Log-GroupandPrivate-Log-Group-2. -
LogGroupName LIKE 'aws/lambda/%' OR LogGroupName LIKE 'AWSLogs%'includes all log groups that have names that start withaws/lambda/orAWSLogs.
If you are updating a link that uses filters, you can specify
*as the only value for thefilterparameter to delete the filter and share all log groups with the monitoring account. -
-
-
toBuilder
public LogGroupConfiguration.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<LogGroupConfiguration.Builder,LogGroupConfiguration>
-
builder
public static LogGroupConfiguration.Builder builder()
-
serializableBuilderClass
public static Class<? extends LogGroupConfiguration.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-