libZSservicesZSamazonka-ssmZSamazonka-ssm
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.SSM.DescribeInstanceInformation

Description

Describes one or more of your instances, including information about the operating system platform, the version of SSM Agent installed on the instance, instance status, and so on.

If you specify one or more instance IDs, it returns information for those instances. If you don't specify instance IDs, it returns information for all your instances. If you specify an instance ID that isn't valid or an instance that you don't own, you receive an error.

The IamRole field for this API operation is the Identity and Access Management (IAM) role assigned to on-premises instances. This call doesn't return the IAM role for EC2 instances.

This operation returns paginated results.

Synopsis

Creating a Request

data DescribeInstanceInformation Source #

See: newDescribeInstanceInformation smart constructor.

Constructors

DescribeInstanceInformation' 

Fields

  • instanceInformationFilterList :: Maybe [InstanceInformationFilter]

    This is a legacy method. We recommend that you don't use this method. Instead, use the Filters data type. Filters enables you to return instance information by filtering based on tags applied to managed instances.

    Attempting to use InstanceInformationFilterList and Filters leads to an exception error.

  • filters :: Maybe [InstanceInformationStringFilter]

    One or more filters. Use a filter to return a more specific list of instances. You can filter based on tags applied to EC2 instances. Use this Filters data type instead of InstanceInformationFilterList, which is deprecated.

  • nextToken :: Maybe Text

    The token for the next set of items to return. (You received this token from a previous call.)

  • maxResults :: Maybe Natural

    The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.

Instances

Instances details
Eq DescribeInstanceInformation Source # 
Instance details

Defined in Amazonka.SSM.DescribeInstanceInformation

Read DescribeInstanceInformation Source # 
Instance details

Defined in Amazonka.SSM.DescribeInstanceInformation

Show DescribeInstanceInformation Source # 
Instance details

Defined in Amazonka.SSM.DescribeInstanceInformation

Generic DescribeInstanceInformation Source # 
Instance details

Defined in Amazonka.SSM.DescribeInstanceInformation

Associated Types

type Rep DescribeInstanceInformation :: Type -> Type #

NFData DescribeInstanceInformation Source # 
Instance details

Defined in Amazonka.SSM.DescribeInstanceInformation

Hashable DescribeInstanceInformation Source # 
Instance details

Defined in Amazonka.SSM.DescribeInstanceInformation

ToJSON DescribeInstanceInformation Source # 
Instance details

Defined in Amazonka.SSM.DescribeInstanceInformation

AWSPager DescribeInstanceInformation Source # 
Instance details

Defined in Amazonka.SSM.DescribeInstanceInformation

AWSRequest DescribeInstanceInformation Source # 
Instance details

Defined in Amazonka.SSM.DescribeInstanceInformation

ToHeaders DescribeInstanceInformation Source # 
Instance details

Defined in Amazonka.SSM.DescribeInstanceInformation

ToPath DescribeInstanceInformation Source # 
Instance details

Defined in Amazonka.SSM.DescribeInstanceInformation

ToQuery DescribeInstanceInformation Source # 
Instance details

Defined in Amazonka.SSM.DescribeInstanceInformation

type Rep DescribeInstanceInformation Source # 
Instance details

Defined in Amazonka.SSM.DescribeInstanceInformation

type Rep DescribeInstanceInformation = D1 ('MetaData "DescribeInstanceInformation" "Amazonka.SSM.DescribeInstanceInformation" "libZSservicesZSamazonka-ssmZSamazonka-ssm" 'False) (C1 ('MetaCons "DescribeInstanceInformation'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "instanceInformationFilterList") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [InstanceInformationFilter])) :*: S1 ('MetaSel ('Just "filters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [InstanceInformationStringFilter]))) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)))))
type AWSResponse DescribeInstanceInformation Source # 
Instance details

Defined in Amazonka.SSM.DescribeInstanceInformation

newDescribeInstanceInformation :: DescribeInstanceInformation Source #

Create a value of DescribeInstanceInformation with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:instanceInformationFilterList:DescribeInstanceInformation', describeInstanceInformation_instanceInformationFilterList - This is a legacy method. We recommend that you don't use this method. Instead, use the Filters data type. Filters enables you to return instance information by filtering based on tags applied to managed instances.

Attempting to use InstanceInformationFilterList and Filters leads to an exception error.

$sel:filters:DescribeInstanceInformation', describeInstanceInformation_filters - One or more filters. Use a filter to return a more specific list of instances. You can filter based on tags applied to EC2 instances. Use this Filters data type instead of InstanceInformationFilterList, which is deprecated.

$sel:nextToken:DescribeInstanceInformation', describeInstanceInformation_nextToken - The token for the next set of items to return. (You received this token from a previous call.)

$sel:maxResults:DescribeInstanceInformation', describeInstanceInformation_maxResults - The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.

Request Lenses

describeInstanceInformation_instanceInformationFilterList :: Lens' DescribeInstanceInformation (Maybe [InstanceInformationFilter]) Source #

This is a legacy method. We recommend that you don't use this method. Instead, use the Filters data type. Filters enables you to return instance information by filtering based on tags applied to managed instances.

Attempting to use InstanceInformationFilterList and Filters leads to an exception error.

describeInstanceInformation_filters :: Lens' DescribeInstanceInformation (Maybe [InstanceInformationStringFilter]) Source #

One or more filters. Use a filter to return a more specific list of instances. You can filter based on tags applied to EC2 instances. Use this Filters data type instead of InstanceInformationFilterList, which is deprecated.

describeInstanceInformation_nextToken :: Lens' DescribeInstanceInformation (Maybe Text) Source #

The token for the next set of items to return. (You received this token from a previous call.)

describeInstanceInformation_maxResults :: Lens' DescribeInstanceInformation (Maybe Natural) Source #

The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.

Destructuring the Response

data DescribeInstanceInformationResponse Source #

Constructors

DescribeInstanceInformationResponse' 

Fields

Instances

Instances details
Eq DescribeInstanceInformationResponse Source # 
Instance details

Defined in Amazonka.SSM.DescribeInstanceInformation

Read DescribeInstanceInformationResponse Source # 
Instance details

Defined in Amazonka.SSM.DescribeInstanceInformation

Show DescribeInstanceInformationResponse Source # 
Instance details

Defined in Amazonka.SSM.DescribeInstanceInformation

Generic DescribeInstanceInformationResponse Source # 
Instance details

Defined in Amazonka.SSM.DescribeInstanceInformation

NFData DescribeInstanceInformationResponse Source # 
Instance details

Defined in Amazonka.SSM.DescribeInstanceInformation

type Rep DescribeInstanceInformationResponse Source # 
Instance details

Defined in Amazonka.SSM.DescribeInstanceInformation

type Rep DescribeInstanceInformationResponse = D1 ('MetaData "DescribeInstanceInformationResponse" "Amazonka.SSM.DescribeInstanceInformation" "libZSservicesZSamazonka-ssmZSamazonka-ssm" 'False) (C1 ('MetaCons "DescribeInstanceInformationResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "instanceInformationList") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [InstanceInformation])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newDescribeInstanceInformationResponse Source #

Create a value of DescribeInstanceInformationResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:nextToken:DescribeInstanceInformation', describeInstanceInformationResponse_nextToken - The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.

$sel:instanceInformationList:DescribeInstanceInformationResponse', describeInstanceInformationResponse_instanceInformationList - The instance information list.

$sel:httpStatus:DescribeInstanceInformationResponse', describeInstanceInformationResponse_httpStatus - The response's http status code.

Response Lenses

describeInstanceInformationResponse_nextToken :: Lens' DescribeInstanceInformationResponse (Maybe Text) Source #

The token to use when requesting the next set of items. If there are no additional items to return, the string is empty.