Class S3PropertySources
java.lang.Object
io.awspring.cloud.autoconfigure.config.s3.S3PropertySources
Provides prefix config import support.
- Since:
- 3.3.0
- Author:
- Kunal Varpe
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreatePropertySource
(String context, boolean optional, software.amazon.awssdk.services.s3.S3Client client) Creates property source for given context.
-
Constructor Details
-
S3PropertySources
public S3PropertySources()
-
-
Method Details
-
createPropertySource
@Nullable public S3PropertySource createPropertySource(String context, boolean optional, software.amazon.awssdk.services.s3.S3Client client) Creates property source for given context.- Parameters:
context
- property source context equivalent to s3 bucket fileoptional
- if creating context should fail with exception if s3 bucket file cannot be loadedclient
- S3 client- Returns:
- a property source or null if s3 bucket file could not be loaded and optional is set to true
-