Class: Aws::EC2::Types::EnableImageDeprecationRequest

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb

Overview

Note:

When making an API call, you may pass EnableImageDeprecationRequest data as a hash:

{
  image_id: "ImageId", # required
  deprecate_at: Time.now, # required
  dry_run: false,
}

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#deprecate_atTime

The date and time to deprecate the AMI, in UTC, in the following format: YYYY-MM-DDTHH:MM:SSZ. If you specify a value for seconds, Amazon EC2 rounds the seconds to the nearest minute.

You can’t specify a date in the past. The upper limit for DeprecateAt is 10 years from now.

Returns:

  • (Time)


28603
28604
28605
28606
28607
28608
28609
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 28603

class EnableImageDeprecationRequest < Struct.new(
  :image_id,
  :deprecate_at,
  :dry_run)
  SENSITIVE = []
  include Aws::Structure
end

#dry_runBoolean

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Returns:

  • (Boolean)


28603
28604
28605
28606
28607
28608
28609
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 28603

class EnableImageDeprecationRequest < Struct.new(
  :image_id,
  :deprecate_at,
  :dry_run)
  SENSITIVE = []
  include Aws::Structure
end

#image_idString

The ID of the AMI.

Returns:

  • (String)


28603
28604
28605
28606
28607
28608
28609
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 28603

class EnableImageDeprecationRequest < Struct.new(
  :image_id,
  :deprecate_at,
  :dry_run)
  SENSITIVE = []
  include Aws::Structure
end