Class: Swa::KMS::Alias

Inherits:
Record
  • Object
show all
Defined in:
lib/swa/kms/alias.rb

Instance Method Summary collapse

Methods inherited from Record

#data, delegate, #initialize, list

Constructor Details

This class inherits a constructor from Swa::Record

Instance Method Details

#idObject



8
9
10
# File 'lib/swa/kms/alias.rb', line 8

def id
  name
end

#keyObject



23
24
25
# File 'lib/swa/kms/alias.rb', line 23

def key
  aws_record.target_key_id
end

#nameObject



19
20
21
# File 'lib/swa/kms/alias.rb', line 19

def name
  aws_record.alias_name
end

#summaryObject



12
13
14
15
16
17
# File 'lib/swa/kms/alias.rb', line 12

def summary
  [
    pad(name, 36),
    key
  ].join("  ")
end