Interface CloudWatchLogsSource.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<CloudWatchLogsSource.Builder,,CloudWatchLogsSource> SdkBuilder<CloudWatchLogsSource.Builder,,CloudWatchLogsSource> SdkPojo
- Enclosing class:
CloudWatchLogsSource
-
Method Summary
Modifier and TypeMethodDescriptiondefault CloudWatchLogsSource.BuilderfilterConfig(Consumer<CloudWatchFilterConfig.Builder> filterConfig) Optional filter configuration to narrow down which sessions to evaluate.filterConfig(CloudWatchFilterConfig filterConfig) Optional filter configuration to narrow down which sessions to evaluate.logGroupNamePrefixes(String... logGroupNamePrefixes) The list of CloudWatch log group name prefixes to read agent traces from.logGroupNamePrefixes(Collection<String> logGroupNamePrefixes) The list of CloudWatch log group name prefixes to read agent traces from.logGroupNames(String... logGroupNames) The list of CloudWatch log group names to read agent traces from.logGroupNames(Collection<String> logGroupNames) The list of CloudWatch log group names to read agent traces from.serviceNames(String... serviceNames) The list of agent service names to filter traces within the specified log groups.serviceNames(Collection<String> serviceNames) The list of agent service names to filter traces within the specified log groups.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
serviceNames
The list of agent service names to filter traces within the specified log groups.
- Parameters:
serviceNames- The list of agent service names to filter traces within the specified log groups.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serviceNames
The list of agent service names to filter traces within the specified log groups.
- Parameters:
serviceNames- The list of agent service names to filter traces within the specified log groups.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logGroupNames
The list of CloudWatch log group names to read agent traces from. Maximum of 10 log groups.
- Parameters:
logGroupNames- The list of CloudWatch log group names to read agent traces from. Maximum of 10 log groups.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logGroupNames
The list of CloudWatch log group names to read agent traces from. Maximum of 10 log groups.
- Parameters:
logGroupNames- The list of CloudWatch log group names to read agent traces from. Maximum of 10 log groups.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logGroupNamePrefixes
The list of CloudWatch log group name prefixes to read agent traces from. Specify this instead of
logGroupNamesto match log groups by prefix. Maximum of 5 prefixes. Specify eitherlogGroupNamesorlogGroupNamePrefixes, not both. One of the two is required.- Parameters:
logGroupNamePrefixes- The list of CloudWatch log group name prefixes to read agent traces from. Specify this instead oflogGroupNamesto match log groups by prefix. Maximum of 5 prefixes. Specify eitherlogGroupNamesorlogGroupNamePrefixes, not both. One of the two is required.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logGroupNamePrefixes
The list of CloudWatch log group name prefixes to read agent traces from. Specify this instead of
logGroupNamesto match log groups by prefix. Maximum of 5 prefixes. Specify eitherlogGroupNamesorlogGroupNamePrefixes, not both. One of the two is required.- Parameters:
logGroupNamePrefixes- The list of CloudWatch log group name prefixes to read agent traces from. Specify this instead oflogGroupNamesto match log groups by prefix. Maximum of 5 prefixes. Specify eitherlogGroupNamesorlogGroupNamePrefixes, not both. One of the two is required.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filterConfig
Optional filter configuration to narrow down which sessions to evaluate.
- Parameters:
filterConfig- Optional filter configuration to narrow down which sessions to evaluate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filterConfig
default CloudWatchLogsSource.Builder filterConfig(Consumer<CloudWatchFilterConfig.Builder> filterConfig) Optional filter configuration to narrow down which sessions to evaluate.
This is a convenience method that creates an instance of theCloudWatchFilterConfig.Builderavoiding the need to create one manually viaCloudWatchFilterConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofilterConfig(CloudWatchFilterConfig).- Parameters:
filterConfig- a consumer that will call methods onCloudWatchFilterConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-