Class: Fog::AWS::EFS::MountTargets

Inherits:
Collection
  • Object
show all
Defined in:
lib/fog/aws/models/efs/mount_targets.rb

Instance Method Summary collapse

Instance Method Details

#allObject



11
12
13
14
# File 'lib/fog/aws/models/efs/mount_targets.rb', line 11

def all
  data = service.describe_mount_targets(:file_system_id => self.file_system_id).body["MountTargets"]
  load(data)
end

#get(identity) ⇒ Object



16
17
18
19
20
21
# File 'lib/fog/aws/models/efs/mount_targets.rb', line 16

def get(identity)
  data = service.describe_mount_targets(:id => identity).body["MountTargets"].first
  new(data)
rescue Fog::AWS::EFS::NotFound
  nil
end