@ConfigurationProperties(value="micronaut.application.ec2.metadata")
@Requires(notEnv="function") @Requires(env="ec2")
@Primary
public class AmazonMetadataConfiguration
extends java.lang.Object
implements io.micronaut.core.util.Toggleable
ComputePlatform.AMAZON_EC2
.Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_ENABLED
The default enable value.
|
static java.lang.String |
DEFAULT_URL
The default url value.
|
static java.lang.String |
PREFIX
Prefix for Amazon EC2 configuration metadata.
|
Constructor and Description |
---|
AmazonMetadataConfiguration() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getInstanceDocumentUrl() |
java.lang.String |
getMetadataUrl() |
java.lang.String |
getUrl() |
boolean |
isEnabled() |
void |
setEnabled(boolean enabled)
Default value (true).
|
void |
setInstanceDocumentUrl(java.lang.String instanceDocumentUrl) |
void |
setMetadataUrl(java.lang.String metadataUrl) |
void |
setUrl(java.lang.String url)
Default value ("http://169.254.169.254").
|
public static final java.lang.String PREFIX
public static final boolean DEFAULT_ENABLED
public static final java.lang.String DEFAULT_URL
public boolean isEnabled()
isEnabled
in interface io.micronaut.core.util.Toggleable
public void setEnabled(boolean enabled)
enabled
- Enable or disable the Amazon EC2 configurationpublic java.lang.String getUrl()
public void setUrl(java.lang.String url)
url
- The urlpublic java.lang.String getMetadataUrl()
public void setMetadataUrl(java.lang.String metadataUrl)
metadataUrl
- The metadata Urlpublic java.lang.String getInstanceDocumentUrl()
public void setInstanceDocumentUrl(java.lang.String instanceDocumentUrl)
instanceDocumentUrl
- The instance document Url