lib/aws-sdk-ec2/image.rb in aws-sdk-ec2-1.487.0 vs lib/aws-sdk-ec2/image.rb in aws-sdk-ec2-1.488.0
- old
+ new
@@ -90,11 +90,11 @@
# @return [String]
def hypervisor
data[:hypervisor]
end
- # The owner alias (`amazon` \| `aws-marketplace`).
+ # The owner alias (`amazon` \| `aws-backup-vault` \| `aws-marketplace`).
# @return [String]
def image_owner_alias
data[:image_owner_alias]
end
@@ -218,9 +218,42 @@
#
# [1]: http://www.iso.org/iso/iso8601
# @return [String]
def last_launched_time
data[:last_launched_time]
+ end
+
+ # The ID of the source AMI from which the AMI was created.
+ #
+ # The ID only appears if the AMI was created using CreateImage,
+ # CopyImage, or CreateRestoreImageTask. The ID does not appear if the
+ # AMI was created using any other API. For some older AMIs, the ID might
+ # not be available. For more information, see [Identify the source AMI
+ # used to create a new AMI][1] in the *Amazon EC2 User Guide*.
+ #
+ #
+ #
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/identify-source-ami-used-to-create-new-ami.html
+ # @return [String]
+ def source_image_id
+ data[:source_image_id]
+ end
+
+ # The Region of the source AMI.
+ #
+ # The Region only appears if the AMI was created using CreateImage,
+ # CopyImage, or CreateRestoreImageTask. The Region does not appear if
+ # the AMI was created using any other API. For some older AMIs, the
+ # Region might not be available. For more information, see [Identify the
+ # source AMI used to create a new AMI][1] in the *Amazon EC2 User
+ # Guide*.
+ #
+ #
+ #
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/identify-source-ami-used-to-create-new-ami.html
+ # @return [String]
+ def source_image_region
+ data[:source_image_region]
end
# The location of the AMI.
# @return [String]
def image_location