@Internal
@Requires(env="ec2") @Requires(property="aws.service-discovery.enabled",value="true",defaultValue="false")
@ConfigurationProperties(value="aws.service-discovery")
public class AwsServiceDiscoveryConfiguration
extends io.micronaut.discovery.DiscoveryConfiguration
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ENABLED
Configuration property for whether discovery is enabled.
|
static java.lang.String |
PREFIX |
Constructor and Description |
---|
AwsServiceDiscoveryConfiguration() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAwsServiceId()
AWS Service ID.
|
boolean |
isEnabled()
enable/disable this feature.
|
void |
setAwsServiceId(java.lang.String awsServiceId)
set service ID for easier testing.
|
void |
setEnabled(boolean enabled)
enable/disabled this feature.
|
public static final java.lang.String PREFIX
public static final java.lang.String ENABLED
public java.lang.String getAwsServiceId()
public void setAwsServiceId(java.lang.String awsServiceId)
awsServiceId
- aws service idpublic boolean isEnabled()
isEnabled
in interface io.micronaut.core.util.Toggleable
isEnabled
in class io.micronaut.discovery.DiscoveryConfiguration
public void setEnabled(boolean enabled)
setEnabled
in class io.micronaut.discovery.DiscoveryConfiguration
enabled
- Whether discovery is enabled