Module: AWS::EC2::HasPermissions

Included in:
Image, Snapshot
Defined in:
lib/aws/ec2/has_permissions.rb

Overview

Helper methods for managing EC2 resource permissions. See Image and Snapshot for usage examples.

Instance Method Summary collapse

Instance Method Details

#permissionsPermissionCollection



38
39
40
# File 'lib/aws/ec2/has_permissions.rb', line 38

def permissions
  PermissionCollection.new(self, :config => config)
end

#private?Boolean



27
28
29
# File 'lib/aws/ec2/has_permissions.rb', line 27

def private?
  permissions.private?
end

#public=(value) ⇒ nil

Sets whether the resource is public or not. This has no effect on the explicit AWS account IDs that may already have permissions to use the resource.



32
33
34
# File 'lib/aws/ec2/has_permissions.rb', line 32

def public=(value)
  permissions.public = value
end

#public?Boolean



22
23
24
# File 'lib/aws/ec2/has_permissions.rb', line 22

def public?
  permissions.public?
end