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