Helper methods for managing EC2 resource permissions. See {Image} and {Snapshot} for usage examples.
@return [PermissionCollection] An object to manage the
collection of permissions for this resource.
# File lib/aws/ec2/has_permissions.rb, line 38 def permissions PermissionCollection.new(self, :config => config) end
(see AWS::EC2::PermissionCollection#private?)
# File lib/aws/ec2/has_permissions.rb, line 27 def private? permissions.private? end
(see AWS::EC2::PermissionCollection#public=)
# File lib/aws/ec2/has_permissions.rb, line 32 def public=(value) permissions.public = value end
(see AWS::EC2::PermissionCollection#public?)
# File lib/aws/ec2/has_permissions.rb, line 22 def public? permissions.public? end