public class InstanceIdentity
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Identity information for the EC2 instance that is hosting the task runner. You can get this value by calling a metadata URI from the EC2 instance. For more information, see Instance Metadata in the Amazon Elastic Compute Cloud User Guide. Passing in this value proves that your task runner is running on an EC2 instance, and ensures the proper AWS Data Pipeline service charges are applied to your pipeline.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
document
A description of an EC2 instance that is generated when the instance is
launched and exposed to the instance via the instance metadata service in
the form of a JSON representation of an object.
|
private java.lang.String |
signature
A signature which can be used to verify the accuracy and authenticity of
the information provided in the instance identity document.
|
Constructor and Description |
---|
InstanceIdentity() |
Modifier and Type | Method and Description |
---|---|
InstanceIdentity |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDocument()
A description of an EC2 instance that is generated when the instance is
launched and exposed to the instance via the instance metadata service in
the form of a JSON representation of an object.
|
java.lang.String |
getSignature()
A signature which can be used to verify the accuracy and authenticity of
the information provided in the instance identity document.
|
int |
hashCode() |
void |
setDocument(java.lang.String document)
A description of an EC2 instance that is generated when the instance is
launched and exposed to the instance via the instance metadata service in
the form of a JSON representation of an object.
|
void |
setSignature(java.lang.String signature)
A signature which can be used to verify the accuracy and authenticity of
the information provided in the instance identity document.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
InstanceIdentity |
withDocument(java.lang.String document)
A description of an EC2 instance that is generated when the instance is
launched and exposed to the instance via the instance metadata service in
the form of a JSON representation of an object.
|
InstanceIdentity |
withSignature(java.lang.String signature)
A signature which can be used to verify the accuracy and authenticity of
the information provided in the instance identity document.
|
private java.lang.String document
A description of an EC2 instance that is generated when the instance is launched and exposed to the instance via the instance metadata service in the form of a JSON representation of an object.
private java.lang.String signature
A signature which can be used to verify the accuracy and authenticity of the information provided in the instance identity document.
public void setDocument(java.lang.String document)
A description of an EC2 instance that is generated when the instance is launched and exposed to the instance via the instance metadata service in the form of a JSON representation of an object.
document
- A description of an EC2 instance that is generated when the
instance is launched and exposed to the instance via the instance
metadata service in the form of a JSON representation of an
object.public java.lang.String getDocument()
A description of an EC2 instance that is generated when the instance is launched and exposed to the instance via the instance metadata service in the form of a JSON representation of an object.
public InstanceIdentity withDocument(java.lang.String document)
A description of an EC2 instance that is generated when the instance is launched and exposed to the instance via the instance metadata service in the form of a JSON representation of an object.
document
- A description of an EC2 instance that is generated when the
instance is launched and exposed to the instance via the instance
metadata service in the form of a JSON representation of an
object.public void setSignature(java.lang.String signature)
A signature which can be used to verify the accuracy and authenticity of the information provided in the instance identity document.
signature
- A signature which can be used to verify the accuracy and
authenticity of the information provided in the instance identity
document.public java.lang.String getSignature()
A signature which can be used to verify the accuracy and authenticity of the information provided in the instance identity document.
public InstanceIdentity withSignature(java.lang.String signature)
A signature which can be used to verify the accuracy and authenticity of the information provided in the instance identity document.
signature
- A signature which can be used to verify the accuracy and
authenticity of the information provided in the instance identity
document.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public InstanceIdentity clone()
clone
in class java.lang.Object