/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the ssm-2014-11-06.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.SimpleSystemsManagement.Model
{
///
/// Describes a filter for a specific list of managed nodes.
///
public partial class InstanceInformation
{
private string _activationId;
private string _agentVersion;
private InstanceAggregatedAssociationOverview _associationOverview;
private string _associationStatus;
private string _computerName;
private string _iamRole;
private string _instanceId;
private string _ipAddress;
private bool? _isLatestVersion;
private DateTime? _lastAssociationExecutionDate;
private DateTime? _lastPingDateTime;
private DateTime? _lastSuccessfulAssociationExecutionDate;
private string _name;
private PingStatus _pingStatus;
private string _platformName;
private PlatformType _platformType;
private string _platformVersion;
private DateTime? _registrationDate;
private ResourceType _resourceType;
private string _sourceId;
private SourceType _sourceType;
///
/// Gets and sets the property ActivationId.
///
/// The activation ID created by Amazon Web Services Systems Manager when the server or
/// virtual machine (VM) was registered.
///
///
public string ActivationId
{
get { return this._activationId; }
set { this._activationId = value; }
}
// Check to see if ActivationId property is set
internal bool IsSetActivationId()
{
return this._activationId != null;
}
///
/// Gets and sets the property AgentVersion.
///
/// The version of SSM Agent running on your Linux managed node.
///
///
public string AgentVersion
{
get { return this._agentVersion; }
set { this._agentVersion = value; }
}
// Check to see if AgentVersion property is set
internal bool IsSetAgentVersion()
{
return this._agentVersion != null;
}
///
/// Gets and sets the property AssociationOverview.
///
/// Information about the association.
///
///
public InstanceAggregatedAssociationOverview AssociationOverview
{
get { return this._associationOverview; }
set { this._associationOverview = value; }
}
// Check to see if AssociationOverview property is set
internal bool IsSetAssociationOverview()
{
return this._associationOverview != null;
}
///
/// Gets and sets the property AssociationStatus.
///
/// The status of the association.
///
///
public string AssociationStatus
{
get { return this._associationStatus; }
set { this._associationStatus = value; }
}
// Check to see if AssociationStatus property is set
internal bool IsSetAssociationStatus()
{
return this._associationStatus != null;
}
///
/// Gets and sets the property ComputerName.
///
/// The fully qualified host name of the managed node.
///
///
[AWSProperty(Min=1, Max=255)]
public string ComputerName
{
get { return this._computerName; }
set { this._computerName = value; }
}
// Check to see if ComputerName property is set
internal bool IsSetComputerName()
{
return this._computerName != null;
}
///
/// Gets and sets the property IamRole.
///
/// The Identity and Access Management (IAM) role assigned to the on-premises Systems
/// Manager managed node. This call doesn't return the IAM role for Amazon Elastic Compute
/// Cloud (Amazon EC2) instances. To retrieve the IAM role for an EC2 instance, use the
/// Amazon EC2 DescribeInstances
operation. For information, see DescribeInstances
/// in the Amazon EC2 API Reference or describe-instances
/// in the Amazon Web Services CLI Command Reference.
///
///
[AWSProperty(Max=64)]
public string IamRole
{
get { return this._iamRole; }
set { this._iamRole = value; }
}
// Check to see if IamRole property is set
internal bool IsSetIamRole()
{
return this._iamRole != null;
}
///
/// Gets and sets the property InstanceId.
///
/// The managed node ID.
///
///
public string InstanceId
{
get { return this._instanceId; }
set { this._instanceId = value; }
}
// Check to see if InstanceId property is set
internal bool IsSetInstanceId()
{
return this._instanceId != null;
}
///
/// Gets and sets the property IPAddress.
///
/// The IP address of the managed node.
///
///
[AWSProperty(Min=1, Max=46)]
public string IPAddress
{
get { return this._ipAddress; }
set { this._ipAddress = value; }
}
// Check to see if IPAddress property is set
internal bool IsSetIPAddress()
{
return this._ipAddress != null;
}
///
/// Gets and sets the property IsLatestVersion.
///
/// Indicates whether the latest version of SSM Agent is running on your Linux managed
/// node. This field doesn't indicate whether or not the latest version is installed on
/// Windows managed nodes, because some older versions of Windows Server use the EC2Config
/// service to process Systems Manager requests.
///
///
public bool IsLatestVersion
{
get { return this._isLatestVersion.GetValueOrDefault(); }
set { this._isLatestVersion = value; }
}
// Check to see if IsLatestVersion property is set
internal bool IsSetIsLatestVersion()
{
return this._isLatestVersion.HasValue;
}
///
/// Gets and sets the property LastAssociationExecutionDate.
///
/// The date the association was last run.
///
///
public DateTime LastAssociationExecutionDate
{
get { return this._lastAssociationExecutionDate.GetValueOrDefault(); }
set { this._lastAssociationExecutionDate = value; }
}
// Check to see if LastAssociationExecutionDate property is set
internal bool IsSetLastAssociationExecutionDate()
{
return this._lastAssociationExecutionDate.HasValue;
}
///
/// Gets and sets the property LastPingDateTime.
///
/// The date and time when the agent last pinged the Systems Manager service.
///
///
public DateTime LastPingDateTime
{
get { return this._lastPingDateTime.GetValueOrDefault(); }
set { this._lastPingDateTime = value; }
}
// Check to see if LastPingDateTime property is set
internal bool IsSetLastPingDateTime()
{
return this._lastPingDateTime.HasValue;
}
///
/// Gets and sets the property LastSuccessfulAssociationExecutionDate.
///
/// The last date the association was successfully run.
///
///
public DateTime LastSuccessfulAssociationExecutionDate
{
get { return this._lastSuccessfulAssociationExecutionDate.GetValueOrDefault(); }
set { this._lastSuccessfulAssociationExecutionDate = value; }
}
// Check to see if LastSuccessfulAssociationExecutionDate property is set
internal bool IsSetLastSuccessfulAssociationExecutionDate()
{
return this._lastSuccessfulAssociationExecutionDate.HasValue;
}
///
/// Gets and sets the property Name.
///
/// The name assigned to an on-premises server, edge device, or virtual machine (VM) when
/// it is activated as a Systems Manager managed node. The name is specified as the DefaultInstanceName
/// property using the CreateActivation command. It is applied to the managed node
/// by specifying the Activation Code and Activation ID when you install SSM Agent on
/// the node, 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
operation.
/// For information, see DescribeInstances
/// in the Amazon EC2 API Reference or describe-instances
/// in the Amazon Web Services CLI Command Reference.
///
///
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
///
/// Gets and sets the property PingStatus.
///
/// Connection status of SSM Agent.
///
///
///
/// The status Inactive
has been deprecated and is no longer in use.
///
///
///
public PingStatus PingStatus
{
get { return this._pingStatus; }
set { this._pingStatus = value; }
}
// Check to see if PingStatus property is set
internal bool IsSetPingStatus()
{
return this._pingStatus != null;
}
///
/// Gets and sets the property PlatformName.
///
/// The name of the operating system platform running on your managed node.
///
///
public string PlatformName
{
get { return this._platformName; }
set { this._platformName = value; }
}
// Check to see if PlatformName property is set
internal bool IsSetPlatformName()
{
return this._platformName != null;
}
///
/// Gets and sets the property PlatformType.
///
/// The operating system platform type.
///
///
public PlatformType PlatformType
{
get { return this._platformType; }
set { this._platformType = value; }
}
// Check to see if PlatformType property is set
internal bool IsSetPlatformType()
{
return this._platformType != null;
}
///
/// Gets and sets the property PlatformVersion.
///
/// The version of the OS platform running on your managed node.
///
///
public string PlatformVersion
{
get { return this._platformVersion; }
set { this._platformVersion = value; }
}
// Check to see if PlatformVersion property is set
internal bool IsSetPlatformVersion()
{
return this._platformVersion != null;
}
///
/// Gets and sets the property RegistrationDate.
///
/// The date the server or VM was registered with Amazon Web Services as a managed node.
///
///
public DateTime RegistrationDate
{
get { return this._registrationDate.GetValueOrDefault(); }
set { this._registrationDate = value; }
}
// Check to see if RegistrationDate property is set
internal bool IsSetRegistrationDate()
{
return this._registrationDate.HasValue;
}
///
/// Gets and sets the property ResourceType.
///
/// The type of instance. Instances are either EC2 instances or managed instances.
///
///
public ResourceType ResourceType
{
get { return this._resourceType; }
set { this._resourceType = value; }
}
// Check to see if ResourceType property is set
internal bool IsSetResourceType()
{
return this._resourceType != null;
}
///
/// Gets and sets the property SourceId.
///
/// The ID of the source resource. For IoT Greengrass devices, SourceId
is
/// the Thing name.
///
///
[AWSProperty(Min=0, Max=128)]
public string SourceId
{
get { return this._sourceId; }
set { this._sourceId = value; }
}
// Check to see if SourceId property is set
internal bool IsSetSourceId()
{
return this._sourceId != null;
}
///
/// Gets and sets the property SourceType.
///
/// The type of the source resource. For IoT Greengrass devices, SourceType
/// is AWS::IoT::Thing
.
///
///
public SourceType SourceType
{
get { return this._sourceType; }
set { this._sourceType = value; }
}
// Check to see if SourceType property is set
internal bool IsSetSourceType()
{
return this._sourceType != null;
}
}
}