Package io.micronaut.opensearch.aws
Class AmazonOpenSearchConfigurationProperties
java.lang.Object
io.micronaut.opensearch.aws.AmazonOpenSearchConfigurationProperties
- All Implemented Interfaces:
io.micronaut.core.util.Toggleable
,AmazonOpenSearchConfiguration
@ConfigurationProperties("micronaut.opensearch.aws")
public class AmazonOpenSearchConfigurationProperties
extends Object
implements AmazonOpenSearchConfiguration
ConfigurationProperties
implementation of AmazonOpenSearchConfiguration
.- Since:
- 1.0.0
- Author:
- Sergio del Amo
-
Field Summary
Modifier and TypeFieldDescriptionstatic final boolean
The default enable value.static final String
The prefix to use for Amazon OpenSearch settings. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionsoftware.amazon.awssdk.regions.Region
boolean
void
setEnabled
(boolean enabled) Whether Amazon OpenSearch Service integration is enabled.void
setEndpoint
(String endpoint) Sets the OpenSearch endpoint, without https:// For example: `search-...us-east-1.aoss.amazonaws.com`.void
setSigningRegion
(software.amazon.awssdk.regions.Region signingRegion) The region to use for signing requests.
-
Field Details
-
DEFAULT_ENABLED
public static final boolean DEFAULT_ENABLEDThe default enable value.- See Also:
-
PREFIX
The prefix to use for Amazon OpenSearch settings.- See Also:
-
-
Constructor Details
-
AmazonOpenSearchConfigurationProperties
public AmazonOpenSearchConfigurationProperties()
-
-
Method Details
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceio.micronaut.core.util.Toggleable
-
setEnabled
public void setEnabled(boolean enabled) Whether Amazon OpenSearch Service integration is enabled. Default value true- Parameters:
enabled
- True if security is enabled
-
getEndpoint
- Specified by:
getEndpoint
in interfaceAmazonOpenSearchConfiguration
- Returns:
- OpenSearch endpoint, without https:// For example: `search-...us-east-1.aoss.amazonaws.com`.
-
setEndpoint
Sets the OpenSearch endpoint, without https:// For example: `search-...us-east-1.aoss.amazonaws.com`.- Parameters:
endpoint
- OpenSearch endpoint, without https:// For example: `search-...us-east-1.aoss.amazonaws.com`.
-
getSigningRegion
@Nonnull public software.amazon.awssdk.regions.Region getSigningRegion()- Specified by:
getSigningRegion
in interfaceAmazonOpenSearchConfiguration
- Returns:
- The region to use for signing requests.
-
setSigningRegion
public void setSigningRegion(software.amazon.awssdk.regions.Region signingRegion) The region to use for signing requests. For example: `us-east-1`.- Parameters:
signingRegion
- The region to use for signing requests. For example:Region.US_EAST_1
.
-