// List all supported Elasticsearch versions
List all supported Elasticsearch versions
// List all supported Elasticsearch versions
func (c *Client) ListElasticsearchVersions(ctx context.Context, params *ListElasticsearchVersionsInput, optFns ...func(*Options)) (*ListElasticsearchVersionsOutput, error) {
	if params == nil {
		params = &ListElasticsearchVersionsInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "ListElasticsearchVersions", params, optFns, addOperationListElasticsearchVersionsMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*ListElasticsearchVersionsOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) ListElasticsearchVersions ( ctx context . Context , params * ListElasticsearchVersionsInput , optFns ... func ( * Options ) ) ( * ListElasticsearchVersionsOutput , error ) { if params == nil { params = & ListElasticsearchVersionsInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationListElasticsearchVersionsMiddlewares ) if err != nil { return nil , err } out := result . ( * ListElasticsearchVersionsOutput ) out . ResultMetadata = metadata return out , nil }
List all supported Elasticsearch versions
List all supported Elasticsearch versions