lib/aws-sdk-ec2/customizations/instance.rb in aws-sdk-ec2-1.475.0 vs lib/aws-sdk-ec2/customizations/instance.rb in aws-sdk-ec2-1.476.0
- old
+ new
@@ -13,9 +13,26 @@
pem_bytes = File.open(key_pair_path, 'rb') { |f| f.read }
private_key = OpenSSL::PKey::RSA.new(pem_bytes)
private_key.private_decrypt(decoded)
end
+ class Collection < Aws::Resources::Collection
+ extend Aws::Deprecations
+
+ {
+ create_tags: :batch_create_tags,
+ monitor: :batch_create_tags,
+ reboot: :batch_reboot,
+ start: :batch_start,
+ stop: :batch_stop,
+ terminate: :batch_terminate!,
+ unmonitor: :batch_unmonitor
+ }.each do |old_method, new_method|
+ alias_method old_method, new_method
+ deprecated old_method, use: new_method
+ end
+ end
+
private
def encrypted_password
bytes = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
client.get_password_data(instance_id: id).password_data