lib/aws-sdk-ec2/image.rb in aws-sdk-ec2-1.450.0 vs lib/aws-sdk-ec2/image.rb in aws-sdk-ec2-1.451.0

- old
+ new

@@ -270,10 +270,32 @@ # @return [String] def source_instance_id data[:source_instance_id] end + # Indicates whether deregistration protection is enabled for the AMI. + # @return [String] + def deregistration_protection + data[:deregistration_protection] + end + + # The date and time, in [ISO 8601 date-time format][1], when the AMI was + # last used to launch an EC2 instance. When the AMI is used to launch an + # instance, there is a 24-hour delay before that usage is reported. + # + # <note markdown="1"> `lastLaunchedTime` data is available starting April 2017. + # + # </note> + # + # + # + # [1]: http://www.iso.org/iso/iso8601 + # @return [String] + def last_launched_time + data[:last_launched_time] + end + # @!endgroup # @return [Client] def client @client @@ -551,10 +573,10 @@ end # @example Request syntax with placeholder values # # image.describe_attribute({ - # attribute: "description", # required, accepts description, kernel, ramdisk, launchPermission, productCodes, blockDeviceMapping, sriovNetSupport, bootMode, tpmSupport, uefiData, lastLaunchedTime, imdsSupport + # attribute: "description", # required, accepts description, kernel, ramdisk, launchPermission, productCodes, blockDeviceMapping, sriovNetSupport, bootMode, tpmSupport, uefiData, lastLaunchedTime, imdsSupport, deregistrationProtection # dry_run: false, # }) # @param [Hash] options ({}) # @option options [required, String] :attribute # The AMI attribute.