Package io.floci.testcontainers
Class FlociContainer
java.lang.Object
org.testcontainers.containers.GenericContainer<FlociContainer>
io.floci.testcontainers.FlociContainer
- All Implemented Interfaces:
AutoCloseable,org.testcontainers.containers.Container<FlociContainer>,org.testcontainers.containers.ContainerState,org.testcontainers.containers.traits.LinkableContainer,org.testcontainers.containers.wait.strategy.WaitStrategyTarget,org.testcontainers.lifecycle.Startable
Testcontainers module for Floci — a
free, open-source local AWS emulator.
Starts a Floci container that exposes all emulated AWS services on a single HTTP
endpoint. Use getEndpoint() to obtain the URL for configuring AWS SDK clients.
Container-based services (RDS, ElastiCache, Lambda, ECS) require access to the Docker daemon. This module automatically mounts the Docker socket and runs as root to enable these services. Sibling containers created by Floci (e.g. PostgreSQL for RDS) are accessible on the Docker host via their mapped ports.
try (FlociContainer floci = new FlociContainer()) {
floci.start();
String endpoint = floci.getEndpoint();
// configure your AWS SDK client with the endpoint
}
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.testcontainers.containers.Container
org.testcontainers.containers.Container.ExecResult -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDefault port used to startup Floci containerFields inherited from class org.testcontainers.containers.GenericContainer
CONTAINER_RUNNING_TIMEOUT_SEC, dependencies, dockerClient, INTERNAL_HOST_HOSTNAME, waitStrategyFields inherited from interface org.testcontainers.containers.ContainerState
STATE_HEALTHY -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new Floci container with the default image (floci/floci:latest).FlociContainer(String dockerImageName) Creates a new Floci container with the specified image name.FlociContainer(org.testcontainers.utility.DockerImageName dockerImageName) Creates a new Floci container with the specified Docker image name. -
Method Summary
Modifier and TypeMethodDescriptionDisables all services in this Floci container.Returns the AWS access key to use with this instance.ACM-specific settings such as certificate validation timingAmazon MQ-specific settings such as mock mode and default image.API Gateway-specific settingsAPI Gateway V2-specific settingsAppConfig-specific settingsAppConfig Data-specific settingsAppSync-specific settings.Athena-specific settings.Backup-specific settings such as job completion delay.Batch-specific settings such as runner mode and Docker network.BCM Data Exports-specific settings such as emit mode.Bedrock Runtime-specific settings.Cloud Control API-specific settings.CloudFormation-specific settingsCloudFront-specific settings such as domain suffixCloudMap-specific settings such as operation completion delay.CloudTrail-specific settings.CloudWatch Logs-specific settings such as query event limitsCloudWatch Metrics-specific settingsCodeBuild-specific settingsCodeDeploy-specific settingsCodePipeline-specific settings.Cognito-specific settingsAWS Config-specific settingsCost Explorer-specific settings such as the synthetic monthly credit.CUR (Cost and Usage Reports)-specific settings such as emit mode and staging bucket.Returns the name of the dedicated Docker network configured for this container, ornullif no dedicated network is configured.Returns the configured default AWS account ID.Returns the configured default availability zone.DocumentDB-specific settings such as mock mode, default image and Docker network.Returns the current DuckDB configuration.DynamoDB-specific settingsEC2-specific settingsECR-specific settings such as registry ports and TLS configurationECS-specific settings such as mock mode and default task resourcesEKS-specific settings such as mock mode, provider, API server ports and default image.ElastiCache-specific settings such as proxy ports and default imageElastic Beanstalk-specific settings.ELBv2-specific settingsEMR-specific settings such as default release label and cluster startup delay.Returns the endpoint URL for connecting to Floci (e.g.EventBridge-specific settingsFirehose-specific settings.Glue-specific settings.IAM-specific settingsIoT Core-specific settings such as the embedded MQTT broker.IoT Data Plane-specific settings.Kinesis-specific settingsKMS-specific settingsLambda-specific settings such as the Runtime API port rangeLightsail-specific settings.org.slf4j.event.LevelReturns the log level configured for this Floci instance.MemoryDB-specific settings such as mock mode, proxy port range and default image.MSK-specific settings such as mock mode and default image.Neptune-specific settings such as proxy ports and default image.OpenSearch-specific settings such as mode, proxy ports and default imagePipes-specific settings.Pricing-specific settings such as an optional snapshot path override.Returns the current protocols configuration.RDS-specific settings such as proxy ports and default database images.RDS Data API-specific settings such as transaction TTL.Returns the configured AWS region.Resource Groups Tagging-specific settings.Route 53-specific settings such as default nameservers.S3-specific settings such as presigned URL expiryS3 Vectors-specific settings.Scheduler-specific settingsReturns the AWS secret key to use with this instance.Secrets Manager-specific settings such as recovery windowReturns the current security configuration.SES-specific settingsSNS-specific settingsSQS-specific settings such as visibility timeout and message size limitsSSM-specific settings such as parameter history limitsStep Functions-specific settingsReturns the storage configuration.Textract-specific settings.Returns the TLS configuration.Transfer Family-specific settings.WAF V2-specific settings.voidstop()withAcmConfig(Consumer<AcmConfig.Builder> configurer) Configures acm-specific settings such as certificate validation timing.withAmazonMqConfig(Consumer<AmazonMqConfig.Builder> configurer) Configures Amazon MQ-specific settings such as mock mode and default image.withApiGatewayConfig(Consumer<ApiGatewayConfig.Builder> configurer) Configures api gateway-specific settings.withApiGatewayV2Config(Consumer<ApiGatewayV2Config.Builder> configurer) Configures api gateway v2-specific settings.withAppConfigConfig(Consumer<AppConfigConfig.Builder> configurer) Configures appconfig-specific settings.withAppConfigDataConfig(Consumer<AppConfigDataConfig.Builder> configurer) Configures appconfig data-specific settings.withAppSyncConfig(Consumer<AppSyncConfig.Builder> configurer) Configures AppSync-specific settings.withAthenaConfig(Consumer<AthenaConfig.Builder> configurer) Configures athena-specific settings.withBackupConfig(Consumer<BackupConfig.Builder> configurer) Configures Backup-specific settings such as job completion delay.withBatchConfig(Consumer<BatchConfig.Builder> configurer) Configures Batch-specific settings such as runner mode and Docker network.withBcmDataExportsConfig(Consumer<BcmDataExportsConfig.Builder> configurer) Configures BCM Data Exports-specific settings such as emit mode.withBedrockRuntimeConfig(Consumer<BedrockRuntimeConfig.Builder> configurer) Configures bedrock runtime-specific settings.withCloudControlConfig(Consumer<CloudControlConfig.Builder> configurer) Configures Cloud Control API-specific settings.withCloudFormationConfig(Consumer<CloudFormationConfig.Builder> configurer) Configures cloudformation-specific settings.withCloudFrontConfig(Consumer<CloudFrontConfig.Builder> configurer) Configures cloudfront-specific settings such as domain suffix.withCloudMapConfig(Consumer<CloudMapConfig.Builder> configurer) Configures CloudMap-specific settings such as operation completion delay.withCloudTrailConfig(Consumer<CloudTrailConfig.Builder> configurer) Configures CloudTrail-specific settings.withCloudWatchLogsConfig(Consumer<CloudWatchLogsConfig.Builder> configurer) Configures cloudwatch logs-specific settings such as query event limits.Configures cloudwatch metrics-specific settings.withCodeBuildConfig(Consumer<CodeBuildConfig.Builder> configurer) Configures CodeBuild-specific settings.withCodeDeployConfig(Consumer<CodeDeployConfig.Builder> configurer) Configures CodeDeploy-specific settings.withCodePipelineConfig(Consumer<CodePipelineConfig.Builder> configurer) Configures CodePipeline-specific settings.withCognitoConfig(Consumer<CognitoConfig.Builder> configurer) Configures cognito-specific settings.withConfigServiceConfig(Consumer<ConfigServiceConfig.Builder> configurer) Configures AWS Config-specific settings.withCostExplorerConfig(Consumer<CostExplorerConfig.Builder> configurer) Configures Cost Explorer-specific settings such as the synthetic monthly credit.withCurConfig(Consumer<CurConfig.Builder> configurer) Configures CUR (Cost and Usage Reports)-specific settings such as emit mode and staging bucket.Configures a dedicated Docker network for this container that will be used by Floci itself and by all services, that spin up additional containers like RDS, Lambda or ElasticCache.withDefaultAccountId(String accountId) Sets the default AWS account ID for this Floci instance.withDefaultAvailabilityZone(String availabilityZone) Sets the default availability zone for this Floci instance.withDocumentDbConfig(Consumer<DocumentDbConfig.Builder> configurer) Configures DocumentDB-specific settings such as mock mode, default image and Docker network.withDuckDbConfig(Consumer<DuckDbConfig.Builder> configurer) Configures DuckDB-specific settings such as custom URL or default image.withDynamoDbConfig(Consumer<DynamoDbConfig.Builder> configurer) Configures dynamodb-specific settings.withEc2Config(Consumer<Ec2Config.Builder> configurer) Configures ec2-specific settings.withEcrConfig(Consumer<EcrConfig.Builder> configurer) Configures ECR-specific settings such as registry ports and TLS configuration.withEcsConfig(Consumer<EcsConfig.Builder> configurer) Configures ECS-specific settings such as mock mode and default task resources.withEksConfig(Consumer<EksConfig.Builder> configurer) Configures EKS-specific settings such as mock mode, provider, API server ports and default image.withElastiCacheConfig(Consumer<ElastiCacheConfig.Builder> configurer) Configures ElastiCache-specific settings such as proxy ports and default image.Configures Elastic Beanstalk-specific settings.withElbV2Config(Consumer<ElbV2Config.Builder> configurer) Configures ELBv2-specific settings.withEmrConfig(Consumer<EmrConfig.Builder> configurer) Configures EMR-specific settings such as default release label and cluster startup delay.withEventBridgeConfig(Consumer<EventBridgeConfig.Builder> configurer) Configures eventbridge-specific settings.withFirehoseConfig(Consumer<FirehoseConfig.Builder> configurer) Configures firehose-specific settings.withGlueConfig(Consumer<GlueConfig.Builder> configurer) Configures glue-specific settings.withIamConfig(Consumer<IamConfig.Builder> configurer) Configures iam-specific settings.withIotConfig(Consumer<IotConfig.Builder> configurer) Configures IoT Core-specific settings such as the embedded MQTT broker.withIotDataConfig(Consumer<IotDataConfig.Builder> configurer) Configures IoT Data Plane-specific settings.withKinesisConfig(Consumer<KinesisConfig.Builder> configurer) Configures kinesis-specific settings.withKmsConfig(Consumer<KmsConfig.Builder> configurer) Configures kms-specific settings.withLambdaConfig(Consumer<LambdaConfig.Builder> configurer) Configures Lambda-specific settings such as the Runtime API port range.withLightsailConfig(Consumer<LightsailConfig.Builder> configurer) Configures Lightsail-specific settings.withLogLevel(org.slf4j.event.Level logLevel) Sets the log level for this Floci instance.withMemoryDbConfig(Consumer<MemoryDbConfig.Builder> configurer) Configures MemoryDB-specific settings such as mock mode, proxy port range and default image.withMskConfig(Consumer<MskConfig.Builder> configurer) Configures MSK-specific settings such as mock mode and default image.withNeptuneConfig(Consumer<NeptuneConfig.Builder> configurer) Configures Neptune-specific settings such as proxy ports and default image.withOpenSearchConfig(Consumer<OpenSearchConfig.Builder> configurer) Configures OpenSearch-specific settings such as mode, proxy ports and default image.withPipesConfig(Consumer<PipesConfig.Builder> configurer) Configures pipes-specific settings.withPricingConfig(Consumer<PricingConfig.Builder> configurer) Configures Pricing-specific settings such as an optional snapshot path override.withProtocolsConfig(Consumer<ProtocolsConfig.Builder> configurer) Configures protocol-related settings such as strict RPC protocol claiming.withRdsConfig(Consumer<RdsConfig.Builder> configurer) Configures RDS-specific settings such as proxy ports and default database images.withRdsDataConfig(Consumer<RdsDataConfig.Builder> configurer) Configures RDS Data API-specific settings such as transaction TTL.withRegion(String region) Sets the AWS region for this Floci instance.Configures resource groups tagging-specific settings.withRoute53Config(Consumer<Route53Config.Builder> configurer) Configures Route 53-specific settings such as default nameservers.withS3Config(Consumer<S3Config.Builder> configurer) Configures s3-specific settings such as presigned url expiry.withS3VectorsConfig(Consumer<S3VectorsConfig.Builder> configurer) Configures S3 Vectors-specific settings.withSchedulerConfig(Consumer<SchedulerConfig.Builder> configurer) Configures scheduler-specific settings.withSecretsManagerConfig(Consumer<SecretsManagerConfig.Builder> configurer) Configures secrets manager-specific settings such as recovery window.withSecurityConfig(Consumer<SecurityConfig.Builder> configurer) Configures security settings such as CORS allowed origins, headers, and expose headers.withSesConfig(Consumer<SesConfig.Builder> configurer) Configures ses-specific settings.withSnsConfig(Consumer<SnsConfig.Builder> configurer) Configures sns-specific settings.withSqsConfig(Consumer<SqsConfig.Builder> configurer) Configures sqs-specific settings such as visibility timeout and message size limits.withSsmConfig(Consumer<SsmConfig.Builder> configurer) Configures ssm-specific settings such as parameter history limits.withStepFunctionsConfig(Consumer<StepFunctionsConfig.Builder> configurer) Configures step functions-specific settings.withStorageConfig(Consumer<StorageConfig.Builder> configurer) Configures storage-specific settings.withTextractConfig(Consumer<TextractConfig.Builder> configurer) Configures Textract-specific settings.withTlsConfig(Consumer<TlsConfig.Builder> configurer) Configures TLS/HTTPS for the Floci server.withTransferFamilyConfig(Consumer<TransferFamilyConfig.Builder> configurer) Configures Transfer Family-specific settings.withWafV2Config(Consumer<WafV2Config.Builder> configurer) Configures WAF V2-specific settings.Methods inherited from class org.testcontainers.containers.GenericContainer
addEnv, addExposedPort, addExposedPorts, addFileSystemBind, addFixedExposedPort, addFixedExposedPort, addLink, canBeReused, configure, containerIsCreated, containerIsStarted, containerIsStarted, containerIsStarting, containerIsStarting, containerIsStopped, containerIsStopping, copyFileFromContainer, createVolumeDirectory, dependsOn, dependsOn, dependsOn, doStart, equals, getBinds, getCommandParts, getContainerId, getContainerInfo, getContainerName, getCopyToFileContainerPathMap, getCreateContainerCmdModifiers, getDependencies, getDockerClient, getDockerImageName, getEnv, getEnvMap, getExposedPorts, getExtraHosts, getImage, getIpAddress, getLabels, getLinkedContainers, getLivenessCheckPort, getLivenessCheckPortNumbers, getLivenessCheckPorts, getLogConsumers, getNetwork, getNetworkAliases, getNetworkMode, getPortBindings, getShmSize, getStartupAttempts, getStartupCheckStrategy, getTestHostIpAddress, getTmpFsMapping, getVolumesFroms, getWaitStrategy, getWorkingDirectory, hashCode, isHostAccessible, isPrivilegedMode, isShouldBeReused, logger, setBinds, setCommand, setCommand, setCommandParts, setContainerDef, setCopyToFileContainerPathMap, setDockerImageName, setEnv, setExposedPorts, setExtraHosts, setHostAccessible, setImage, setLabels, setLinkedContainers, setLogConsumers, setNetwork, setNetworkAliases, setNetworkMode, setPortBindings, setPrivilegedMode, setShmSize, setStartupAttempts, setStartupCheckStrategy, setTmpFsMapping, setVolumesFroms, setWaitStrategy, setWorkingDirectory, start, toString, waitingFor, waitUntilContainerStarted, withAccessToHost, withClasspathResourceMapping, withClasspathResourceMapping, withCommand, withCommand, withCopyFileToContainer, withCopyToContainer, withCreateContainerCmdModifier, withEnv, withEnv, withExposedPorts, withExtraHost, withFileSystemBind, withImagePullPolicy, withLabel, withLabels, withLogConsumer, withMinimumRunningDuration, withNetwork, withNetworkAliases, withNetworkMode, withPrivilegedMode, withReuse, withSharedMemorySize, withStartupAttempts, withStartupCheckStrategy, withStartupTimeout, withTmpFs, withVolumesFrom, withWorkingDirectoryMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.testcontainers.containers.Container
addFileSystemBind, followOutput, followOutput, self, withEnv, withFileSystemBindMethods inherited from interface org.testcontainers.containers.ContainerState
copyFileFromContainer, copyFileToContainer, copyFileToContainer, execInContainer, execInContainer, execInContainer, execInContainer, execInContainerWithUser, execInContainerWithUser, getBoundPortNumbers, getContainerIpAddress, getCurrentContainerInfo, getFirstMappedPort, getHost, getLogs, getLogs, getMappedPort, isCreated, isHealthy, isRunningMethods inherited from interface org.testcontainers.lifecycle.Startable
close
-
Field Details
-
PORT
public static final int PORTDefault port used to startup Floci container- See Also:
-
-
Constructor Details
-
FlociContainer
public FlociContainer()Creates a new Floci container with the default image (floci/floci:latest). -
FlociContainer
Creates a new Floci container with the specified image name.- Parameters:
dockerImageName- the Docker image name (must be compatible withfloci/floci)
-
FlociContainer
public FlociContainer(org.testcontainers.utility.DockerImageName dockerImageName) Creates a new Floci container with the specified Docker image name.- Parameters:
dockerImageName- the Docker image name
-
-
Method Details
-
stop
public void stop()- Specified by:
stopin interfaceorg.testcontainers.lifecycle.Startable- Overrides:
stopin classorg.testcontainers.containers.GenericContainer<FlociContainer>
-
getEndpoint
Returns the endpoint URL for connecting to Floci (e.g.http://localhost:32781).- Returns:
- the endpoint URL
-
getRegion
Returns the configured AWS region. Defaults to "us-east-1".- Returns:
- the AWS region
-
getAccessKey
Returns the AWS access key to use with this instance. Defaults to "test".- Returns:
- the access key
-
getSecretKey
Returns the AWS secret key to use with this instance. Defaults to "test".- Returns:
- the secret key
-
withRegion
Sets the AWS region for this Floci instance.- Parameters:
region- the AWS region (e.g.eu-west-1)- Returns:
- this container instance
-
getDefaultAvailabilityZone
Returns the configured default availability zone. Defaults to "us-east-1a".- Returns:
- the availability zone
-
withDefaultAvailabilityZone
Sets the default availability zone for this Floci instance.- Parameters:
availabilityZone- the availability zone (e.g.eu-west-1a)- Returns:
- this container instance
-
getDefaultAccountId
Returns the configured default AWS account ID. Defaults to "000000000000".- Returns:
- the account ID
-
withDefaultAccountId
Sets the default AWS account ID for this Floci instance.- Parameters:
accountId- the AWS account ID (e.g.123456789012)- Returns:
- this container instance
-
withLogLevel
Sets the log level for this Floci instance. Defaults toLevel.WARN.- Parameters:
logLevel- the log level- Returns:
- this container instance
-
getLogLevel
public org.slf4j.event.Level getLogLevel()Returns the log level configured for this Floci instance. Defaults toLevel.WARN.- Returns:
- the log level
-
withDedicatedNetwork
Configures a dedicated Docker network for this container that will be used by Floci itself and by all services, that spin up additional containers like RDS, Lambda or ElasticCache.- Returns:
- this container instance
-
getDedicatedNetworkName
Returns the name of the dedicated Docker network configured for this container, ornullif no dedicated network is configured.- Returns:
- the name of the dedicated Docker network, or
nullif not configured
-
disableAllServices
Disables all services in this Floci container. This is useful for testing scenarios where you want to start the container without any services running and without any ports being exposed (e.g. to improve startup performance)- Returns:
- this container instance
-
getTlsConfig
Returns the TLS configuration.- Returns:
- the TLS configuration
-
withTlsConfig
Configures TLS/HTTPS for the Floci server.By default, a self-signed certificate is auto-generated. To use a custom certificate, provide paths to the PEM certificate and private key files:
new FlociContainer() .withTls(c -> c.enabled(true).certPath("/certs/server.crt").keyPath("/certs/server.key"));To enable TLS with a self-signed certificate:
new FlociContainer() .withTls(c -> c.enabled(true));- Parameters:
configurer- a consumer that receives aTlsConfig.Builderto modify- Returns:
- this container instance
-
getStorageConfig
Returns the storage configuration.- Returns:
- the storage configuration
-
withStorageConfig
Configures storage-specific settings.new FlociContainer() .withStorageConfig(c -> c.pruneVolumesOnDelete(true));- Parameters:
configurer- a consumer that receives aStorageConfig.Builderto modify- Returns:
- this container instance
-
getDuckDbConfig
Returns the current DuckDB configuration. Defaults to the default image and no custom URL.- Returns:
- the DuckDB configuration
-
withDuckDbConfig
Configures DuckDB-specific settings such as custom URL or default image.new FlociContainer() .withDuckDbConfig(c -> c .url("http://duckdb:8080") .defaultImage("floci/floci-duck:1.5.18"));- Parameters:
configurer- a consumer that receives aDuckDbConfig.Builderto modify- Returns:
- this container instance
-
getSecurityConfig
Returns the current security configuration. Defaults to CORS headers enabled and no extra CORS lists.- Returns:
- the security configuration
-
withSecurityConfig
Configures security settings such as CORS allowed origins, headers, and expose headers.new FlociContainer() .withSecurityConfig(c -> c .extraCorsAllowedOrigins(List.of("https://example.com")) .disableCorsHeaders(false));- Parameters:
configurer- a consumer that receives aSecurityConfig.Builderto modify- Returns:
- this container instance
-
getProtocolsConfig
Returns the current protocols configuration.- Returns:
- the protocols configuration
-
withProtocolsConfig
Configures protocol-related settings such as strict RPC protocol claiming.new FlociContainer() .withProtocolsConfig(c -> c.strictClaiming(true));- Parameters:
configurer- a consumer that receives aProtocolsConfig.Builderto modify- Returns:
- this container instance
-
getAcmConfig
ACM-specific settings such as certificate validation timing- Returns:
- the ACM configuration
-
withAcmConfig
Configures acm-specific settings such as certificate validation timing.new FlociContainer() .withAcmConfig(c -> c...);- Parameters:
configurer- a consumer that receives aAcmConfig.Builderto modify- Returns:
- this container instance
-
getApiGatewayConfig
API Gateway-specific settings- Returns:
- the API Gateway configuration
-
withApiGatewayConfig
Configures api gateway-specific settings.new FlociContainer() .withApiGatewayConfig(c -> c...);- Parameters:
configurer- a consumer that receives aApiGatewayConfig.Builderto modify- Returns:
- this container instance
-
getApiGatewayV2Config
API Gateway V2-specific settings- Returns:
- the API Gateway V2 configuration
-
withApiGatewayV2Config
Configures api gateway v2-specific settings.new FlociContainer() .withApiGatewayV2Config(c -> c...);- Parameters:
configurer- a consumer that receives aApiGatewayV2Config.Builderto modify- Returns:
- this container instance
-
getAppConfigConfig
AppConfig-specific settings- Returns:
- the AppConfig configuration
-
withAppConfigConfig
Configures appconfig-specific settings.new FlociContainer() .withAppConfigConfig(c -> c...);- Parameters:
configurer- a consumer that receives aAppConfigConfig.Builderto modify- Returns:
- this container instance
-
getAppConfigDataConfig
AppConfig Data-specific settings- Returns:
- the AppConfig Data configuration
-
withAppConfigDataConfig
Configures appconfig data-specific settings.new FlociContainer() .withAppConfigDataConfig(c -> c...);- Parameters:
configurer- a consumer that receives aAppConfigDataConfig.Builderto modify- Returns:
- this container instance
-
getAppSyncConfig
AppSync-specific settings.- Returns:
- the AppSync configuration
-
withAppSyncConfig
Configures AppSync-specific settings.new FlociContainer() .withAppSyncConfig(c -> c.enabled(false));- Parameters:
configurer- a consumer that receives aAppSyncConfig.Builderto modify- Returns:
- this container instance
-
getCloudFormationConfig
CloudFormation-specific settings- Returns:
- the CloudFormation configuration
-
withCloudFormationConfig
Configures cloudformation-specific settings.new FlociContainer() .withCloudFormationConfig(c -> c...);- Parameters:
configurer- a consumer that receives aCloudFormationConfig.Builderto modify- Returns:
- this container instance
-
getCloudFrontConfig
CloudFront-specific settings such as domain suffix- Returns:
- the CloudFront configuration
-
withCloudFrontConfig
Configures cloudfront-specific settings such as domain suffix.new FlociContainer() .withCloudFrontConfig(c -> c.domainSuffix("example.net"));- Parameters:
configurer- a consumer that receives aCloudFrontConfig.Builderto modify- Returns:
- this container instance
-
getCloudMapConfig
CloudMap-specific settings such as operation completion delay.- Returns:
- the CloudMap configuration
-
withCloudMapConfig
Configures CloudMap-specific settings such as operation completion delay.new FlociContainer() .withCloudMapConfig(c -> c.operationCompletionDelaySeconds(5));- Parameters:
configurer- a consumer that receives aCloudMapConfig.Builderto modify- Returns:
- this container instance
-
getCloudWatchLogsConfig
CloudWatch Logs-specific settings such as query event limits- Returns:
- the CloudWatch Logs configuration
-
withCloudWatchLogsConfig
Configures cloudwatch logs-specific settings such as query event limits.new FlociContainer() .withCloudWatchLogsConfig(c -> c...);- Parameters:
configurer- a consumer that receives aCloudWatchLogsConfig.Builderto modify- Returns:
- this container instance
-
getCloudWatchMetricsConfig
CloudWatch Metrics-specific settings- Returns:
- the CloudWatch Metrics configuration
-
withCloudWatchMetricsConfig
public FlociContainer withCloudWatchMetricsConfig(Consumer<CloudWatchMetricsConfig.Builder> configurer) Configures cloudwatch metrics-specific settings.new FlociContainer() .withCloudWatchMetricsConfig(c -> c...);- Parameters:
configurer- a consumer that receives aCloudWatchMetricsConfig.Builderto modify- Returns:
- this container instance
-
getCognitoConfig
Cognito-specific settings- Returns:
- the Cognito configuration
-
withCognitoConfig
Configures cognito-specific settings.new FlociContainer() .withCognitoConfig(c -> c...);- Parameters:
configurer- a consumer that receives aCognitoConfig.Builderto modify- Returns:
- this container instance
-
getConfigServiceConfig
AWS Config-specific settings- Returns:
- the AWS Config configuration
-
withConfigServiceConfig
Configures AWS Config-specific settings.new FlociContainer() .withConfigServiceConfig(c -> c.enabled(false));- Parameters:
configurer- a consumer that receives aConfigServiceConfig.Builderto modify- Returns:
- this container instance
-
getDynamoDbConfig
DynamoDB-specific settings- Returns:
- the DynamoDB configuration
-
withDynamoDbConfig
Configures dynamodb-specific settings.new FlociContainer() .withDynamoDbConfig(c -> c...);- Parameters:
configurer- a consumer that receives aDynamoDbConfig.Builderto modify- Returns:
- this container instance
-
getEc2Config
EC2-specific settings- Returns:
- the EC2 configuration
-
withEc2Config
Configures ec2-specific settings.new FlociContainer() .withEc2Config(c -> c...);- Parameters:
configurer- a consumer that receives aEc2Config.Builderto modify- Returns:
- this container instance
-
getEcrConfig
ECR-specific settings such as registry ports and TLS configuration- Returns:
- the ECR configuration
-
withEcrConfig
Configures ECR-specific settings such as registry ports and TLS configuration.new FlociContainer() .withEcrConfig(c -> c .registryPortRange(5000, 100) .registryImage("registry:2"));- Parameters:
configurer- a consumer that receives aEcrConfig.Builderto modify- Returns:
- this container instance
-
getEcsConfig
ECS-specific settings such as mock mode and default task resources- Returns:
- the ECS configuration
-
withEcsConfig
Configures ECS-specific settings such as mock mode and default task resources.new FlociContainer() .withEcsConfig(c -> c .mock(true) .defaultMemoryMb(1024));- Parameters:
configurer- a consumer that receives aEcsConfig.Builderto modify- Returns:
- this container instance
-
getElastiCacheConfig
ElastiCache-specific settings such as proxy ports and default image- Returns:
- the ElastiCache configuration
-
withElastiCacheConfig
Configures ElastiCache-specific settings such as proxy ports and default image.new FlociContainer() .withElastiCacheConfig(c -> c .proxyPortRange(6379, 21) .defaultImage("valkey/valkey:8"));- Parameters:
configurer- a consumer that receives aElastiCacheConfig.Builderto modify- Returns:
- this container instance
-
getEventBridgeConfig
EventBridge-specific settings- Returns:
- the EventBridge configuration
-
withEventBridgeConfig
Configures eventbridge-specific settings.new FlociContainer() .withEventBridgeConfig(c -> c...);- Parameters:
configurer- a consumer that receives aEventBridgeConfig.Builderto modify- Returns:
- this container instance
-
getIamConfig
IAM-specific settings- Returns:
- the IAM configuration
-
withIamConfig
Configures iam-specific settings.new FlociContainer() .withIamConfig(c -> c...);- Parameters:
configurer- a consumer that receives aIamConfig.Builderto modify- Returns:
- this container instance
-
getKinesisConfig
Kinesis-specific settings- Returns:
- the Kinesis configuration
-
withKinesisConfig
Configures kinesis-specific settings.new FlociContainer() .withKinesisConfig(c -> c...);- Parameters:
configurer- a consumer that receives aKinesisConfig.Builderto modify- Returns:
- this container instance
-
getKmsConfig
KMS-specific settings- Returns:
- the KMS configuration
-
withKmsConfig
Configures kms-specific settings.new FlociContainer() .withKmsConfig(c -> c...);- Parameters:
configurer- a consumer that receives aKmsConfig.Builderto modify- Returns:
- this container instance
-
getLambdaConfig
Lambda-specific settings such as the Runtime API port range- Returns:
- the Lambda configuration
-
withLambdaConfig
Configures Lambda-specific settings such as the Runtime API port range.new FlociContainer() .withLambdaConfig(c -> c...);- Parameters:
configurer- a consumer that receives aLambdaConfig.Builderto modify- Returns:
- this container instance
-
getOpenSearchConfig
OpenSearch-specific settings such as mode, proxy ports and default image- Returns:
- the OpenSearch configuration
-
withOpenSearchConfig
Configures OpenSearch-specific settings such as mode, proxy ports and default image.new FlociContainer() .withOpenSearchConfig(c -> c .mock(true) .proxyPortRange(9400, 100));- Parameters:
configurer- a consumer that receives aOpenSearchConfig.Builderto modify- Returns:
- this container instance
-
getRdsConfig
RDS-specific settings such as proxy ports and default database images.- Returns:
- the RDS configuration
-
withRdsConfig
Configures RDS-specific settings such as proxy ports and default database images.new FlociContainer() .withRdsConfig(c -> c .proxyPortRange(7000, 7099) .defaultPostgresImage("postgres:16-alpine"));- Parameters:
configurer- a consumer that receives aRdsConfig.Builderto modify- Returns:
- this container instance
-
getS3Config
S3-specific settings such as presigned URL expiry- Returns:
- the S3 configuration
-
withS3Config
Configures s3-specific settings such as presigned url expiry.new FlociContainer() .withS3Config(c -> c...);- Parameters:
configurer- a consumer that receives aS3Config.Builderto modify- Returns:
- this container instance
-
getSchedulerConfig
Scheduler-specific settings- Returns:
- the Scheduler configuration
-
withSchedulerConfig
Configures scheduler-specific settings.new FlociContainer() .withSchedulerConfig(c -> c...);- Parameters:
configurer- a consumer that receives aSchedulerConfig.Builderto modify- Returns:
- this container instance
-
getSecretsManagerConfig
Secrets Manager-specific settings such as recovery window- Returns:
- the Secrets Manager configuration
-
withSecretsManagerConfig
Configures secrets manager-specific settings such as recovery window.new FlociContainer() .withSecretsManagerConfig(c -> c...);- Parameters:
configurer- a consumer that receives aSecretsManagerConfig.Builderto modify- Returns:
- this container instance
-
getSesConfig
SES-specific settings- Returns:
- the SES configuration
-
withSesConfig
Configures ses-specific settings.new FlociContainer() .withSesConfig(c -> c...);- Parameters:
configurer- a consumer that receives aSesConfig.Builderto modify- Returns:
- this container instance
-
getSnsConfig
SNS-specific settings- Returns:
- the SNS configuration
-
withSnsConfig
Configures sns-specific settings.new FlociContainer() .withSnsConfig(c -> c...);- Parameters:
configurer- a consumer that receives aSnsConfig.Builderto modify- Returns:
- this container instance
-
getSqsConfig
SQS-specific settings such as visibility timeout and message size limits- Returns:
- the SQS configuration
-
withSqsConfig
Configures sqs-specific settings such as visibility timeout and message size limits.new FlociContainer() .withSqsConfig(c -> c...);- Parameters:
configurer- a consumer that receives aSqsConfig.Builderto modify- Returns:
- this container instance
-
getSsmConfig
SSM-specific settings such as parameter history limits- Returns:
- the SSM configuration
-
withSsmConfig
Configures ssm-specific settings such as parameter history limits.new FlociContainer() .withSsmConfig(c -> c...);- Parameters:
configurer- a consumer that receives aSsmConfig.Builderto modify- Returns:
- this container instance
-
getStepFunctionsConfig
Step Functions-specific settings- Returns:
- the Step Functions configuration
-
withStepFunctionsConfig
Configures step functions-specific settings.new FlociContainer() .withStepFunctionsConfig(c -> c...);- Parameters:
configurer- a consumer that receives aStepFunctionsConfig.Builderto modify- Returns:
- this container instance
-
getMskConfig
MSK-specific settings such as mock mode and default image.- Returns:
- the MSK configuration
-
withMskConfig
Configures MSK-specific settings such as mock mode and default image.new FlociContainer() .withMskConfig(c -> c .mock(true) .defaultImage("redpandadata/redpanda:v24") .kafkaHostPortRange(9300, 10));- Parameters:
configurer- a consumer that receives aMskConfig.Builderto modify- Returns:
- this container instance
-
getFirehoseConfig
Firehose-specific settings.- Returns:
- the Firehose configuration
-
withFirehoseConfig
Configures firehose-specific settings.new FlociContainer() .withFirehoseConfig(c -> c.enabled(false));- Parameters:
configurer- a consumer that receives aFirehoseConfig.Builderto modify- Returns:
- this container instance
-
getAthenaConfig
Athena-specific settings.- Returns:
- the Athena configuration
-
withAthenaConfig
Configures athena-specific settings.new FlociContainer() .withAthenaConfig(c -> c.enabled(false));- Parameters:
configurer- a consumer that receives aAthenaConfig.Builderto modify- Returns:
- this container instance
-
getGlueConfig
Glue-specific settings.- Returns:
- the Glue configuration
-
withGlueConfig
Configures glue-specific settings.new FlociContainer() .withGlueConfig(c -> c.enabled(false));- Parameters:
configurer- a consumer that receives aGlueConfig.Builderto modify- Returns:
- this container instance
-
getResourceGroupsTaggingConfig
Resource Groups Tagging-specific settings.- Returns:
- the Resource Groups Tagging configuration
-
withResourceGroupsTaggingConfig
public FlociContainer withResourceGroupsTaggingConfig(Consumer<ResourceGroupsTaggingConfig.Builder> configurer) Configures resource groups tagging-specific settings.new FlociContainer() .withResourceGroupsTaggingConfig(c -> c.enabled(false));- Parameters:
configurer- a consumer that receives aResourceGroupsTaggingConfig.Builderto modify- Returns:
- this container instance
-
getBedrockRuntimeConfig
Bedrock Runtime-specific settings.- Returns:
- the Bedrock Runtime configuration
-
withBedrockRuntimeConfig
Configures bedrock runtime-specific settings.new FlociContainer() .withBedrockRuntimeConfig(c -> c.enabled(false));- Parameters:
configurer- a consumer that receives aBedrockRuntimeConfig.Builderto modify- Returns:
- this container instance
-
getPipesConfig
Pipes-specific settings.- Returns:
- the Pipes configuration
-
withPipesConfig
Configures pipes-specific settings.new FlociContainer() .withPipesConfig(c -> c.enabled(false));- Parameters:
configurer- a consumer that receives aPipesConfig.Builderto modify- Returns:
- this container instance
-
getEksConfig
EKS-specific settings such as mock mode, provider, API server ports and default image.- Returns:
- the EKS configuration
-
withEksConfig
Configures EKS-specific settings such as mock mode, provider, API server ports and default image.new FlociContainer() .withEksConfig(c -> c .mock(true) .apiServerPortRange(6500, 100));- Parameters:
configurer- a consumer that receives aEksConfig.Builderto modify- Returns:
- this container instance
-
getCodeBuildConfig
CodeBuild-specific settings- Returns:
- the CodeBuild configuration
-
withCodeBuildConfig
Configures CodeBuild-specific settings.new FlociContainer() .withCodeBuildConfig(c -> c.enabled(true));- Parameters:
configurer- a consumer that receives aCodeBuildConfig.Builderto modify- Returns:
- this container instance
-
getCodeDeployConfig
CodeDeploy-specific settings- Returns:
- the CodeDeploy configuration
-
withCodeDeployConfig
Configures CodeDeploy-specific settings.new FlociContainer() .withCodeDeployConfig(c -> c.enabled(true));- Parameters:
configurer- a consumer that receives aCodeDeployConfig.Builderto modify- Returns:
- this container instance
-
getElbV2Config
ELBv2-specific settings- Returns:
- the ELBv2 configuration
-
withElbV2Config
Configures ELBv2-specific settings.new FlociContainer() .withElbV2Config(c -> c.enabled(true));- Parameters:
configurer- a consumer that receives aElbV2Config.Builderto modify- Returns:
- this container instance
-
getBackupConfig
Backup-specific settings such as job completion delay.- Returns:
- the Backup configuration
-
withBackupConfig
Configures Backup-specific settings such as job completion delay.new FlociContainer() .withBackupConfig(c -> c.jobCompletionDelaySeconds(5));- Parameters:
configurer- a consumer that receives aBackupConfig.Builderto modify- Returns:
- this container instance
-
getTransferFamilyConfig
Transfer Family-specific settings.- Returns:
- the Transfer Family configuration
-
withTransferFamilyConfig
Configures Transfer Family-specific settings.new FlociContainer() .withTransferConfig(c -> c.enabled(false));- Parameters:
configurer- a consumer that receives aTransferFamilyConfig.Builderto modify- Returns:
- this container instance
-
getRoute53Config
Route 53-specific settings such as default nameservers.- Returns:
- the Route 53 configuration
-
withRoute53Config
Configures Route 53-specific settings such as default nameservers.new FlociContainer() .withRoute53Config(c -> c.defaultNameserver1("ns1.example.com"));- Parameters:
configurer- a consumer that receives aRoute53Config.Builderto modify- Returns:
- this container instance
-
getTextractConfig
Textract-specific settings.- Returns:
- the Textract configuration
-
withTextractConfig
Configures Textract-specific settings.new FlociContainer() .withTextractConfig(c -> c.enabled(false));- Parameters:
configurer- a consumer that receives aTextractConfig.Builderto modify- Returns:
- this container instance
-
getPricingConfig
Pricing-specific settings such as an optional snapshot path override.- Returns:
- the Pricing configuration
-
withPricingConfig
Configures Pricing-specific settings such as an optional snapshot path override.new FlociContainer() .withPricingConfig(c -> c.snapshotPath("/data/pricing"));- Parameters:
configurer- a consumer that receives aPricingConfig.Builderto modify- Returns:
- this container instance
-
getNeptuneConfig
Neptune-specific settings such as proxy ports and default image.- Returns:
- the Neptune configuration
-
withNeptuneConfig
Configures Neptune-specific settings such as proxy ports and default image.new FlociContainer() .withNeptuneConfig(c -> c .proxyPortRange(8182, 8282) .defaultImage("tinkerpop/gremlin-server:3.7.3"));- Parameters:
configurer- a consumer that receives aNeptuneConfig.Builderto modify- Returns:
- this container instance
-
getCostExplorerConfig
Cost Explorer-specific settings such as the synthetic monthly credit.- Returns:
- the Cost Explorer configuration
-
withCostExplorerConfig
Configures Cost Explorer-specific settings such as the synthetic monthly credit.new FlociContainer() .withCostExplorerConfig(c -> c.creditUsdMonthly(100.0));- Parameters:
configurer- a consumer that receives aCostExplorerConfig.Builderto modify- Returns:
- this container instance
-
getCurConfig
CUR (Cost and Usage Reports)-specific settings such as emit mode and staging bucket.- Returns:
- the CUR configuration
-
withCurConfig
Configures CUR (Cost and Usage Reports)-specific settings such as emit mode and staging bucket.new FlociContainer() .withCurConfig(c -> c.emitMode("daily").stagingBucket("my-bucket"));- Parameters:
configurer- a consumer that receives aCurConfig.Builderto modify- Returns:
- this container instance
-
getBcmDataExportsConfig
BCM Data Exports-specific settings such as emit mode.- Returns:
- the BCM Data Exports configuration
-
withBcmDataExportsConfig
Configures BCM Data Exports-specific settings such as emit mode.new FlociContainer() .withBcmDataExportsConfig(c -> c.emitMode("daily"));- Parameters:
configurer- a consumer that receives aBcmDataExportsConfig.Builderto modify- Returns:
- this container instance
-
getCloudTrailConfig
CloudTrail-specific settings.- Returns:
- the CloudTrail configuration
-
withCloudTrailConfig
Configures CloudTrail-specific settings.new FlociContainer() .withCloudTrailConfig(c -> c.enabled(false));- Parameters:
configurer- a consumer that receives aCloudTrailConfig.Builderto modify- Returns:
- this container instance
-
getBatchConfig
Batch-specific settings such as runner mode and Docker network.- Returns:
- the Batch configuration
-
withBatchConfig
Configures Batch-specific settings such as runner mode and Docker network.new FlociContainer() .withBatchConfig(c -> c.runnerMode("deferred"));- Parameters:
configurer- a consumer that receives aBatchConfig.Builderto modify- Returns:
- this container instance
-
getRdsDataConfig
RDS Data API-specific settings such as transaction TTL.- Returns:
- the RDS Data configuration
-
withRdsDataConfig
Configures RDS Data API-specific settings such as transaction TTL.new FlociContainer() .withRdsDataConfig(c -> c.transactionTtlSeconds(300));- Parameters:
configurer- a consumer that receives aRdsDataConfig.Builderto modify- Returns:
- this container instance
-
getDocumentDbConfig
DocumentDB-specific settings such as mock mode, default image and Docker network.- Returns:
- the DocumentDB configuration
-
withDocumentDbConfig
Configures DocumentDB-specific settings such as mock mode, default image and Docker network.new FlociContainer() .withDocumentDbConfig(c -> c .mock(true) .defaultImage("mongo:8.0"));- Parameters:
configurer- a consumer that receives aDocumentDbConfig.Builderto modify- Returns:
- this container instance
-
getEmrConfig
EMR-specific settings such as default release label and cluster startup delay.- Returns:
- the EMR configuration
-
withEmrConfig
Configures EMR-specific settings such as default release label and cluster startup delay.new FlociContainer() .withEmrConfig(c -> c.defaultReleaseLabel("emr-7.8.0"));- Parameters:
configurer- a consumer that receives aEmrConfig.Builderto modify- Returns:
- this container instance
-
getWafV2Config
WAF V2-specific settings.- Returns:
- the WAF V2 configuration
-
withWafV2Config
Configures WAF V2-specific settings.new FlociContainer() .withWafV2Config(c -> c.enabled(false));- Parameters:
configurer- a consumer that receives aWafV2Config.Builderto modify- Returns:
- this container instance
-
getIotConfig
IoT Core-specific settings such as the embedded MQTT broker.- Returns:
- the IoT Core configuration
-
withIotConfig
Configures IoT Core-specific settings such as the embedded MQTT broker.new FlociContainer() .withIotConfig(c -> c .mqttAutoStart(true) .mqttPort(1883));- Parameters:
configurer- a consumer that receives aIotConfig.Builderto modify- Returns:
- this container instance
-
getIotDataConfig
IoT Data Plane-specific settings.- Returns:
- the IoT Data Plane configuration
-
withIotDataConfig
Configures IoT Data Plane-specific settings.new FlociContainer() .withIotDataConfig(c -> c.enabled(false));- Parameters:
configurer- a consumer that receives aIotDataConfig.Builderto modify- Returns:
- this container instance
-
getLightsailConfig
Lightsail-specific settings.- Returns:
- the Lightsail configuration
-
withLightsailConfig
Configures Lightsail-specific settings.new FlociContainer() .withLightsailConfig(c -> c.enabled(false));- Parameters:
configurer- a consumer that receives aLightsailConfig.Builderto modify- Returns:
- this container instance
-
getCloudControlConfig
Cloud Control API-specific settings.- Returns:
- the Cloud Control API configuration
-
withCloudControlConfig
Configures Cloud Control API-specific settings.new FlociContainer() .withCloudControlConfig(c -> c.enabled(false));- Parameters:
configurer- a consumer that receives aCloudControlConfig.Builderto modify- Returns:
- this container instance
-
getS3VectorsConfig
S3 Vectors-specific settings.- Returns:
- the S3 Vectors configuration
-
withS3VectorsConfig
Configures S3 Vectors-specific settings.new FlociContainer() .withS3VectorsConfig(c -> c.enabled(false));- Parameters:
configurer- a consumer that receives aS3VectorsConfig.Builderto modify- Returns:
- this container instance
-
getElasticBeanstalkConfig
Elastic Beanstalk-specific settings.- Returns:
- the Elastic Beanstalk configuration
-
withElasticBeanstalkConfig
public FlociContainer withElasticBeanstalkConfig(Consumer<ElasticBeanstalkConfig.Builder> configurer) Configures Elastic Beanstalk-specific settings.new FlociContainer() .withElasticBeanstalkConfig(c -> c.enabled(false));- Parameters:
configurer- a consumer that receives aElasticBeanstalkConfig.Builderto modify- Returns:
- this container instance
-
getCodePipelineConfig
CodePipeline-specific settings.- Returns:
- the CodePipeline configuration
-
withCodePipelineConfig
Configures CodePipeline-specific settings.new FlociContainer() .withCodePipelineConfig(c -> c.enabled(false));- Parameters:
configurer- a consumer that receives aCodePipelineConfig.Builderto modify- Returns:
- this container instance
-
getAmazonMqConfig
Amazon MQ-specific settings such as mock mode and default image.- Returns:
- the Amazon MQ configuration
-
withAmazonMqConfig
Configures Amazon MQ-specific settings such as mock mode and default image.new FlociContainer() .withAmazonMqConfig(c -> c .mock(true) .defaultImage("rabbitmq:4-management"));- Parameters:
configurer- a consumer that receives aAmazonMqConfig.Builderto modify- Returns:
- this container instance
-
getMemoryDbConfig
MemoryDB-specific settings such as mock mode, proxy port range and default image.- Returns:
- the MemoryDB configuration
-
withMemoryDbConfig
Configures MemoryDB-specific settings such as mock mode, proxy port range and default image.new FlociContainer() .withMemoryDbConfig(c -> c .mock(true) .proxyPortRange(6400, 20) .defaultImage("valkey/valkey:9"));- Parameters:
configurer- a consumer that receives aMemoryDbConfig.Builderto modify- Returns:
- this container instance
-