Class CloudWatchLogsConfig
java.lang.Object
io.floci.testcontainers.config.services.AbstractServiceConfig<CloudWatchLogsConfig.Builder>
io.floci.testcontainers.config.services.CloudWatchLogsConfig
Configuration for CloudWatch Logs-specific container settings.
Instances are created via CloudWatchLogsConfig.Builder:
CloudWatchLogsConfig config = CloudWatchLogsConfig.builder()
.maxEventsPerQuery(5000)
.build();
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class io.floci.testcontainers.config.services.AbstractServiceConfig
DEFAULT_ENABLED -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyEnvVarsToContainer(org.testcontainers.containers.Container<?> container) Applies this service configuration to the given container by setting the appropriate environment variables.static CloudWatchLogsConfig.Builderbuilder()Returns a newCloudWatchLogsConfig.Builderfor this configuration.intReturns the maximum events per query.longReturns the artificial Logs Insights query completion delay, in milliseconds.Returns a newCloudWatchLogsConfig.Builderfor this configuration, initialized with the current values of this instance.Methods inherited from class io.floci.testcontainers.config.services.AbstractServiceConfig
applyExposedPortsToContainer, isEnabled
-
Method Details
-
builder
Returns a newCloudWatchLogsConfig.Builderfor this configuration.- Returns:
- a new builder
-
toBuilder
Returns a newCloudWatchLogsConfig.Builderfor this configuration, initialized with the current values of this instance.- Specified by:
toBuilderin classAbstractServiceConfig<CloudWatchLogsConfig.Builder>- Returns:
- a new builder pre-populated with this configuration's values
-
getMaxEventsPerQuery
public int getMaxEventsPerQuery()Returns the maximum events per query.- Returns:
- the maximum events per query
-
getQueryCompletionDelayMs
public long getQueryCompletionDelayMs()Returns the artificial Logs Insights query completion delay, in milliseconds.- Returns:
- the query completion delay, in milliseconds
-
applyEnvVarsToContainer
public void applyEnvVarsToContainer(org.testcontainers.containers.Container<?> container) Description copied from class:AbstractServiceConfigApplies this service configuration to the given container by setting the appropriate environment variables.- Overrides:
applyEnvVarsToContainerin classAbstractServiceConfig<CloudWatchLogsConfig.Builder>- Parameters:
container- the container to configure
-