@Generated(value="software.amazon.awssdk:codegen") public final class InstanceInformation extends Object implements SdkPojo, Serializable, ToCopyableBuilder<InstanceInformation.Builder,InstanceInformation>
Describes a filter for a specific list of instances.
| Modifier and Type | Class and Description |
|---|---|
static interface |
InstanceInformation.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
activationId()
The activation ID created by Systems Manager when the server or VM was registered.
|
String |
agentVersion()
The version of SSM Agent running on your Linux instance.
|
InstanceAggregatedAssociationOverview |
associationOverview()
Information about the association.
|
String |
associationStatus()
The status of the association.
|
static InstanceInformation.Builder |
builder() |
String |
computerName()
The fully qualified host name of the managed instance.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
iamRole()
The Amazon Identity and Access Management (IAM) role assigned to the on-premises Systems Manager managed
instance.
|
String |
instanceId()
The instance ID.
|
String |
ipAddress()
The IP address of the managed instance.
|
Boolean |
isLatestVersion()
Indicates whether the latest version of SSM Agent is running on your Linux Managed Instance.
|
Instant |
lastAssociationExecutionDate()
The date the association was last run.
|
Instant |
lastPingDateTime()
The date and time when the agent last pinged the Systems Manager service.
|
Instant |
lastSuccessfulAssociationExecutionDate()
The last date the association was successfully run.
|
String |
name()
The name assigned to an on-premises server or virtual machine (VM) when it is activated as a Systems Manager
managed instance.
|
PingStatus |
pingStatus()
Connection status of SSM Agent.
|
String |
pingStatusAsString()
Connection status of SSM Agent.
|
String |
platformName()
The name of the operating system platform running on your instance.
|
PlatformType |
platformType()
The operating system platform type.
|
String |
platformTypeAsString()
The operating system platform type.
|
String |
platformVersion()
The version of the OS platform running on your instance.
|
Instant |
registrationDate()
The date the server or VM was registered with AWS as a managed instance.
|
ResourceType |
resourceType()
The type of instance.
|
String |
resourceTypeAsString()
The type of instance.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends InstanceInformation.Builder> |
serializableBuilderClass() |
InstanceInformation.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String instanceId()
The instance ID.
public final PingStatus pingStatus()
Connection status of SSM Agent.
The status Inactive has been deprecated and is no longer in use.
If the service returns an enum value that is not available in the current SDK version, pingStatus will
return PingStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
pingStatusAsString().
The status Inactive has been deprecated and is no longer in use.
PingStatuspublic final String pingStatusAsString()
Connection status of SSM Agent.
The status Inactive has been deprecated and is no longer in use.
If the service returns an enum value that is not available in the current SDK version, pingStatus will
return PingStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
pingStatusAsString().
The status Inactive has been deprecated and is no longer in use.
PingStatuspublic final Instant lastPingDateTime()
The date and time when the agent last pinged the Systems Manager service.
public final String agentVersion()
The version of SSM Agent running on your Linux instance.
public final Boolean isLatestVersion()
Indicates whether the latest version of SSM Agent is running on your Linux Managed Instance. This field does not indicate whether or not the latest version is installed on Windows managed instances, because some older versions of Windows Server use the EC2Config service to process SSM requests.
public final PlatformType platformType()
The operating system platform type.
If the service returns an enum value that is not available in the current SDK version, platformType will
return PlatformType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
platformTypeAsString().
PlatformTypepublic final String platformTypeAsString()
The operating system platform type.
If the service returns an enum value that is not available in the current SDK version, platformType will
return PlatformType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
platformTypeAsString().
PlatformTypepublic final String platformName()
The name of the operating system platform running on your instance.
public final String platformVersion()
The version of the OS platform running on your instance.
public final String activationId()
The activation ID created by Systems Manager when the server or VM was registered.
public final String iamRole()
The Amazon Identity and Access Management (IAM) role assigned to the on-premises Systems Manager managed
instance. This call does not return the IAM role for EC2 instances. To retrieve the IAM role for an EC2 instance,
use the Amazon EC2 DescribeInstances action. For information, see DescribeInstances in
the Amazon EC2 API Reference or describe-instances in the
AWS CLI Command Reference.
DescribeInstances action. For information, see DescribeInstances in the Amazon EC2 API Reference or describe-instances
in the AWS CLI Command Reference.public final Instant registrationDate()
The date the server or VM was registered with AWS as a managed instance.
public final ResourceType resourceType()
The type of instance. Instances are either EC2 instances or managed instances.
If the service returns an enum value that is not available in the current SDK version, resourceType will
return ResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
resourceTypeAsString().
ResourceTypepublic final String resourceTypeAsString()
The type of instance. Instances are either EC2 instances or managed instances.
If the service returns an enum value that is not available in the current SDK version, resourceType will
return ResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
resourceTypeAsString().
ResourceTypepublic final String name()
The name assigned to an on-premises server or virtual machine (VM) when it is activated as a Systems Manager
managed instance. The name is specified as the DefaultInstanceName property using the
CreateActivation command. It is applied to the managed instance by specifying the Activation Code and
Activation ID when you install SSM Agent on the instance, as explained in Install SSM
Agent for a hybrid environment (Linux) and Install SSM
Agent for a hybrid environment (Windows). To retrieve the Name tag of an EC2 instance, use the Amazon EC2
DescribeInstances action. For information, see DescribeInstances in
the Amazon EC2 API Reference or describe-instances in the
AWS CLI Command Reference.
DefaultInstanceName property using
the CreateActivation command. It is applied to the managed instance by specifying the Activation
Code and Activation ID when you install SSM Agent on the instance, as explained in Install SSM Agent for a hybrid environment (Linux) and Install SSM Agent for a hybrid environment (Windows). To retrieve the Name tag of an EC2 instance,
use the Amazon EC2 DescribeInstances action. For information, see DescribeInstances in the Amazon EC2 API Reference or describe-instances
in the AWS CLI Command Reference.public final String ipAddress()
The IP address of the managed instance.
public final String computerName()
The fully qualified host name of the managed instance.
public final String associationStatus()
The status of the association.
public final Instant lastAssociationExecutionDate()
The date the association was last run.
public final Instant lastSuccessfulAssociationExecutionDate()
The last date the association was successfully run.
public final InstanceAggregatedAssociationOverview associationOverview()
Information about the association.
public InstanceInformation.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<InstanceInformation.Builder,InstanceInformation>public static InstanceInformation.Builder builder()
public static Class<? extends InstanceInformation.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.