class Fog::AWS::KMS
Constants
- DependencyTimeoutException
- DisabledException
- InvalidArnException
- InvalidGrantTokenException
- InvalidKeyUsageException
- KMSInternalException
- MalformedPolicyDocumentException
- NotFoundException
Public Class Methods
parse_create_key_args(args)
click to toggle source
previous args (policy, description, usage) was deprecated in favor of a hash of options
# File lib/fog/aws/requests/kms/create_key.rb, line 74 def self.parse_create_key_args(args) case args.size when 0 {} when 1 if args[0].is_a?(Hash) args[0] else Fog::Logger.deprecation("create_key with distinct arguments is deprecated, use options hash instead [light_black](#{caller.first})[/]") { 'Policy' => args[0] } end when 2, 3 Fog::Logger.deprecation("create_key with distinct arguments is deprecated, use options hash instead [light_black](#{caller.first})[/]") { 'Policy' => args[0], 'Description' => args[1], 'KeyUsage' => args[2] || 'ENCRYPT_DECRYPT' } else raise "Unknown argument style: #{args.inspect}, use options hash instead." end end