def resource(name, type, options = {}, &block)
      Preconditions.check_argument(/[[:alnum:]]+/ =~ name, "Resource name must be alphanumeric")

      clazz = Cfer::Core::Resource.resource_class(type)
      rc = clazz.new(name, type, self, options, &block)

      self[:Resources][name] = rc
      rc.handle
    end
def resource(name, type, options = {}, &block)
      Preconditions.check_argument(/[[:alnum:]]+/ =~ name, "Resource name must be alphanumeric")

      clazz = Cfer::Core::Resource.resource_class(type)
      rc = clazz.new(name, type, self, options, &block)

      self[:Resources][name] = rc
      rc.handle
    end
Creates a CloudFormation resource
 @param name [String] The name of the resource (must be alphanumeric)
 @param type [String] The type of CloudFormation resource to create.
 @param options [Hash] Additional attributes to add to the resource block (such as the `UpdatePolicy` for an `AWS::AutoScaling::AutoScalingGroup`)