Module: AWS::EC2::HasPermissions
Overview
Instance Method Summary collapse
-
#permissions ⇒ PermissionCollection
An object to manage the collection of permissions for this resource.
-
#private? ⇒ Boolean
True if the resource is private (i.e. not public).
-
#public=(value) ⇒ nil
Sets whether the resource is public or not.
-
#public? ⇒ Boolean
True if the resource is public.
Instance Method Details
#permissions ⇒ PermissionCollection
Returns An object to manage the collection of permissions for this resource.
40 41 42 |
# File 'lib/aws/ec2/has_permissions.rb', line 40 def PermissionCollection.new(self, :config => config) end |
#private? ⇒ Boolean
Returns True if the resource is private (i.e. not public).
29 30 31 |
# File 'lib/aws/ec2/has_permissions.rb', line 29 def private? .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.
34 35 36 |
# File 'lib/aws/ec2/has_permissions.rb', line 34 def public=(value) .public = value end |
#public? ⇒ Boolean
Returns True if the resource is public.
24 25 26 |
# File 'lib/aws/ec2/has_permissions.rb', line 24 def public? .public? end |