@Requires(env="ec2") @Requires(property="aws.route53.discovery.enabled",value="true",defaultValue="false")
@ConfigurationProperties(value="aws.route53.discovery")
public class Route53DiscoveryConfiguration
extends io.micronaut.discovery.DiscoveryConfiguration
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PREFIX |
Constructor and Description |
---|
Route53DiscoveryConfiguration() |
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 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