func (r *AWSOpsWorksVolume) MarshalJSON() ([]byte, error) {
	type Properties AWSOpsWorksVolume
	return json.Marshal(&struct {
		Type       string
		Properties Properties
	}{
		Type:       r.AWSCloudFormationType(),
		Properties: (Properties)(*r),
	})
}
MarshalJSON is a custom JSON marshalling hook that embeds this object into
an AWS CloudFormation JSON resource's 'Properties' field and adds a 'Type'.
package cloudformation
import (
	"encoding/json"
	"errors"
	"fmt"
)
type AWSOpsWorksVolume struct {
	Ec2VolumeId string `json:"Ec2VolumeId,omitempty"`
	MountPoint string `json:"MountPoint,omitempty"`
	Name string `json:"Name,omitempty"`
	StackId string `json:"StackId,omitempty"`
}
func (r *AWSOpsWorksVolume) AWSCloudFormationType() string {
	return "AWS::OpsWorks::Volume"
}