Method: AWS::S3::S3Object#key

Defined in:
lib/aws/s3/object.rb

#keyObject

Returns the key of the object. If the key is not set, a NoKeySpecified exception will be raised. For cases where you are not sure if the key has been set, you can use the key_set? method. Objects must have a key set to be saved onto S3. Objects which have already been saved onto S3 will always have their key set.



461
462
463
# File 'lib/aws/s3/object.rb', line 461

def key
  attributes['key'] or raise NoKeySpecified
end