class AWS::Core::Resource

def attribute name, options = {}, &block

def attribute name, options = {}, &block
  attr = Attribute.new(name, options)
  attr.instance_eval(&block) if block_given?
  define_attribute_getter(attr)
  define_attribute_setter(attr) if attr.mutable?
  alias_method(options[:alias], name) if options[:alias]
  attributes[attr.name] = attr
end