Package io.micronaut.discovery.cloud.aws
Enum Class EC2MetadataKeys
- All Implemented Interfaces:
Serializable
,Comparable<EC2MetadataKeys>
,Constable
A enum of Amazon EC2 metadata.
- Since:
- 1.0
- Author:
- rvanderwerf, Graeme Rocher
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
The URL for metadata information.toString()
Returns the name of this enum constant, as contained in the declaration.static EC2MetadataKeys
Returns the enum constant of this class with the specified name.static EC2MetadataKeys[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
instanceId
-
amiId
-
region
-
instanceType
-
localIpv4
-
localHostname
-
availabilityZone
-
publicHostname
-
publicIpv4
-
mac
-
vpcId
-
accountId
-
-
Field Details
-
AWS_API_VERSION
- See Also:
-
AWS_METADATA_URL
- See Also:
-
path
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getName
- Returns:
- The name of key
-
getURL
The URL for metadata information. Override to apply prepend and append.- Parameters:
prepend
- Building the URL endpointsappend
- Region- Returns:
- The URL for the Metadata information of specific
Enum.name()
. - Throws:
MalformedURLException
- If the URL is invalid
-
toString
Returns the name of this enum constant, as contained in the declaration. This method may be overridden, though it typically isn't necessary or desirable. An enum type should override this method when a more "programmer-friendly" string form exists.- Overrides:
toString
in classEnum<EC2MetadataKeys>
- Returns:
- the name of this enum constant
-