// Provides information for all active EC2 instances and EC2 instances terminated
// in the last 30 days, up to a maximum of 2,000. EC2 instances in any of the
// following states are considered active: AWAITING_FULFILLMENT, PROVISIONING,
// BOOTSTRAPPING, RUNNING.
Provides information for all active EC2 instances and EC2 instances terminated
in the last 30 days, up to a maximum of 2,000. EC2 instances in any of the
following states are considered active: AWAITING_FULFILLMENT, PROVISIONING,
BOOTSTRAPPING, RUNNING.
// Provides information for all active EC2 instances and EC2 instances terminated // in the last 30 days up to a maximum of 2 000 . EC2 instances in any of the // following states are considered active : AWAITING_FULFILLMENT PROVISIONING // BOOTSTRAPPING RUNNING .
func (c *Client) ListInstances(ctx context.Context, params *ListInstancesInput, optFns ...func(*Options)) (*ListInstancesOutput, error) {
	if params == nil {
		params = &ListInstancesInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "ListInstances", params, optFns, addOperationListInstancesMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*ListInstancesOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) ListInstances ( ctx context . Context , params * ListInstancesInput , optFns ... func ( * Options ) ) ( * ListInstancesOutput , error ) { if params == nil { params = & ListInstancesInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationListInstancesMiddlewares ) if err != nil { return nil , err } out := result . ( * ListInstancesOutput ) out . ResultMetadata = metadata return out , nil }
Provides information for all active EC2 instances and EC2 instances terminated
in the last 30 days, up to a maximum of 2,000.
Provides information for all active EC2 instances and EC2 instances terminated in the last 30 days up to a maximum of 2 000 .