// 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 do not specify instance IDs, it returns
// information for all your instances. If you specify an instance ID that is not
// valid or an instance that you do not own, you receive an error. The IamRole
// field for this API action is the Amazon Identity and Access Management (IAM)
// role assigned to on-premises instances. This call does not return the IAM role
// for EC2 instances.
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 do not specify instance IDs, it returns
information for all your instances. If you specify an instance ID that is not
valid or an instance that you do not own, you receive an error. The IamRole
field for this API action is the Amazon Identity and Access Management (IAM)
role assigned to on-premises instances. This call does not return the IAM role
for EC2 instances.
// 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 do not specify instance IDs it returns // information for all your instances . If you specify an instance ID that is not // valid or an instance that you do not own you receive an error . The IamRole // field for this API action is the Amazon Identity and Access Management ( IAM ) // role assigned to on - premises instances . This call does not return the IAM role // for EC2 instances .
func (c *Client) DescribeInstanceInformation(ctx context.Context, params *DescribeInstanceInformationInput, optFns ...func(*Options)) (*DescribeInstanceInformationOutput, error) {
	if params == nil {
		params = &DescribeInstanceInformationInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "DescribeInstanceInformation", params, optFns, addOperationDescribeInstanceInformationMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*DescribeInstanceInformationOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) DescribeInstanceInformation ( ctx context . Context , params * DescribeInstanceInformationInput , optFns ... func ( * Options ) ) ( * DescribeInstanceInformationOutput , error ) { if params == nil { params = & DescribeInstanceInformationInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationDescribeInstanceInformationMiddlewares ) if err != nil { return nil , err } out := result . ( * DescribeInstanceInformationOutput ) out . ResultMetadata = metadata return out , nil }
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.
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 .