// Returns descriptions for existing environments.
Returns descriptions for existing environments.
// Returns descriptions for existing environments .
func (c *Client) DescribeEnvironments(ctx context.Context, params *DescribeEnvironmentsInput, optFns ...func(*Options)) (*DescribeEnvironmentsOutput, error) {
	if params == nil {
		params = &DescribeEnvironmentsInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "DescribeEnvironments", params, optFns, addOperationDescribeEnvironmentsMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*DescribeEnvironmentsOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) DescribeEnvironments ( ctx context . Context , params * DescribeEnvironmentsInput , optFns ... func ( * Options ) ) ( * DescribeEnvironmentsOutput , error ) { if params == nil { params = & DescribeEnvironmentsInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationDescribeEnvironmentsMiddlewares ) if err != nil { return nil , err } out := result . ( * DescribeEnvironmentsOutput ) out . ResultMetadata = metadata return out , nil }
Returns descriptions for existing environments.
Returns descriptions for existing environments .