Interface LogsConfigurationPolicy.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<LogsConfigurationPolicy.Builder,
,LogsConfigurationPolicy> SdkBuilder<LogsConfigurationPolicy.Builder,
,LogsConfigurationPolicy> SdkPojo
- Enclosing class:
LogsConfigurationPolicy
@Mutable
@NotThreadSafe
public static interface LogsConfigurationPolicy.Builder
extends SdkPojo, CopyableBuilder<LogsConfigurationPolicy.Builder,LogsConfigurationPolicy>
-
Method Summary
Modifier and TypeMethodDescriptionallowedAccountIds
(String... allowedAccountIds) A list of account IDs that are allowed to access the logs.allowedAccountIds
(Collection<String> allowedAccountIds) A list of account IDs that are allowed to access the logs.filterPattern
(String filterPattern) A regular expression pattern that is used to parse the logs and return information that matches the pattern.default LogsConfigurationPolicy.Builder
logRedactionConfiguration
(Consumer<LogRedactionConfiguration.Builder> logRedactionConfiguration) Specifies the log redaction configuration for this policy.logRedactionConfiguration
(LogRedactionConfiguration logRedactionConfiguration) Specifies the log redaction configuration for this policy.Specifies the type of log this policy applies to.Specifies the type of log this policy applies to.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
allowedAccountIds
A list of account IDs that are allowed to access the logs.
- Parameters:
allowedAccountIds
- A list of account IDs that are allowed to access the logs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allowedAccountIds
A list of account IDs that are allowed to access the logs.
- Parameters:
allowedAccountIds
- A list of account IDs that are allowed to access the logs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filterPattern
A regular expression pattern that is used to parse the logs and return information that matches the pattern.
- Parameters:
filterPattern
- A regular expression pattern that is used to parse the logs and return information that matches the pattern.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logType
Specifies the type of log this policy applies to. The currently supported policies are ALL or ERROR_SUMMARY.
- Parameters:
logType
- Specifies the type of log this policy applies to. The currently supported policies are ALL or ERROR_SUMMARY.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
logType
Specifies the type of log this policy applies to. The currently supported policies are ALL or ERROR_SUMMARY.
- Parameters:
logType
- Specifies the type of log this policy applies to. The currently supported policies are ALL or ERROR_SUMMARY.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
logRedactionConfiguration
LogsConfigurationPolicy.Builder logRedactionConfiguration(LogRedactionConfiguration logRedactionConfiguration) Specifies the log redaction configuration for this policy.
- Parameters:
logRedactionConfiguration
- Specifies the log redaction configuration for this policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logRedactionConfiguration
default LogsConfigurationPolicy.Builder logRedactionConfiguration(Consumer<LogRedactionConfiguration.Builder> logRedactionConfiguration) Specifies the log redaction configuration for this policy.
This is a convenience method that creates an instance of theLogRedactionConfiguration.Builder
avoiding the need to create one manually viaLogRedactionConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tologRedactionConfiguration(LogRedactionConfiguration)
.- Parameters:
logRedactionConfiguration
- a consumer that will call methods onLogRedactionConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-