aws-sdk-ec2 1.574.0 → 1.575.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 217d7a59a65bb261fe86dda86fb9ef23d78cba68588de8895809dbe9f9cade4a
4
- data.tar.gz: 708972b2b0ea8219b8d70a4edb03ce352d293c5d860d17516e53052a152f6ad9
3
+ metadata.gz: 69f8898f04c9437087026b71db792aa441ab3711d3ab27322cb2b34f91ab66e2
4
+ data.tar.gz: e753c771a878d6f399c7494f239cb47c698baa1ae7cc5680c2df46f2af337485
5
5
  SHA512:
6
- metadata.gz: 123fa1696aeca604a26bc152ca3374e2d46df7798654c8755c51d9666f7cb4e999382ba53e4552b6766275211bd9bb76bd110ce4d4982ed71545d83d1bb8599e
7
- data.tar.gz: a52121ea571166a8448a6bfcaa1de5a0ef2f54003b19cc1c31ee035fc26e07dd92e228e2941000e479a0ff6b78afa39a3a33ec743a35a5df2b1eeed3f972dd65
6
+ metadata.gz: ea578468ecea7ae8865893210e0a9bbcd806bdb4df59a7ba75f71baa7f7828392aad1611f090fd3763fb6b2b463e57d38268a7ac58d991d56952bb3a6493540a
7
+ data.tar.gz: 98696d6bbfec52b92c7a756d55b5cdef9b3a37868c4240bf55f1c8029bf73e91bdaae40c49531cd1338bb604ac63b3c5d8d76acdf2620c89f71dc4fc9f5b95fa
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.575.0 (2025-11-12)
5
+ ------------------
6
+
7
+ * Feature - Adds complete AMI ancestry tracing from immediate parent through each preceding generation back to the root AMI
8
+
4
9
  1.574.0 (2025-11-11)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.574.0
1
+ 1.575.0
@@ -49253,6 +49253,52 @@ module Aws::EC2
49253
49253
  req.send_request(options)
49254
49254
  end
49255
49255
 
49256
+ # Retrieves the ancestry chain of the specified AMI, tracing its lineage
49257
+ # back to the root AMI. For more information, see [AMI ancestry][1] in
49258
+ # *Amazon EC2 User Guide*.
49259
+ #
49260
+ #
49261
+ #
49262
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-ancestry.html
49263
+ #
49264
+ # @option params [required, String] :image_id
49265
+ # The ID of the AMI whose ancestry you want to trace.
49266
+ #
49267
+ # @option params [Boolean] :dry_run
49268
+ # Checks whether you have the required permissions for the action,
49269
+ # without actually making the request, and provides an error response.
49270
+ # If you have the required permissions, the error response is
49271
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
49272
+ #
49273
+ # @return [Types::GetImageAncestryResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
49274
+ #
49275
+ # * {Types::GetImageAncestryResult#image_ancestry_entries #image_ancestry_entries} => Array<Types::ImageAncestryEntry>
49276
+ #
49277
+ # @example Request syntax with placeholder values
49278
+ #
49279
+ # resp = client.get_image_ancestry({
49280
+ # image_id: "ImageId", # required
49281
+ # dry_run: false,
49282
+ # })
49283
+ #
49284
+ # @example Response structure
49285
+ #
49286
+ # resp.image_ancestry_entries #=> Array
49287
+ # resp.image_ancestry_entries[0].creation_date #=> Time
49288
+ # resp.image_ancestry_entries[0].image_id #=> String
49289
+ # resp.image_ancestry_entries[0].image_owner_alias #=> String
49290
+ # resp.image_ancestry_entries[0].source_image_id #=> String
49291
+ # resp.image_ancestry_entries[0].source_image_region #=> String
49292
+ #
49293
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetImageAncestry AWS API Documentation
49294
+ #
49295
+ # @overload get_image_ancestry(params = {})
49296
+ # @param [Hash] params ({})
49297
+ def get_image_ancestry(params = {}, options = {})
49298
+ req = build_request(:get_image_ancestry, params)
49299
+ req.send_request(options)
49300
+ end
49301
+
49256
49302
  # Gets the current state of *block public access for AMIs* at the
49257
49303
  # account level in the specified Amazon Web Services Region.
49258
49304
  #
@@ -69165,7 +69211,7 @@ module Aws::EC2
69165
69211
  tracer: tracer
69166
69212
  )
69167
69213
  context[:gem_name] = 'aws-sdk-ec2'
69168
- context[:gem_version] = '1.574.0'
69214
+ context[:gem_version] = '1.575.0'
69169
69215
  Seahorse::Client::Request.new(handlers, context)
69170
69216
  end
69171
69217
 
@@ -1727,6 +1727,8 @@ module Aws::EC2
1727
1727
  GetGroupsForCapacityReservationResult = Shapes::StructureShape.new(name: 'GetGroupsForCapacityReservationResult')
1728
1728
  GetHostReservationPurchasePreviewRequest = Shapes::StructureShape.new(name: 'GetHostReservationPurchasePreviewRequest')
1729
1729
  GetHostReservationPurchasePreviewResult = Shapes::StructureShape.new(name: 'GetHostReservationPurchasePreviewResult')
1730
+ GetImageAncestryRequest = Shapes::StructureShape.new(name: 'GetImageAncestryRequest')
1731
+ GetImageAncestryResult = Shapes::StructureShape.new(name: 'GetImageAncestryResult')
1730
1732
  GetImageBlockPublicAccessStateRequest = Shapes::StructureShape.new(name: 'GetImageBlockPublicAccessStateRequest')
1731
1733
  GetImageBlockPublicAccessStateResult = Shapes::StructureShape.new(name: 'GetImageBlockPublicAccessStateResult')
1732
1734
  GetInstanceMetadataDefaultsRequest = Shapes::StructureShape.new(name: 'GetInstanceMetadataDefaultsRequest')
@@ -1875,6 +1877,8 @@ module Aws::EC2
1875
1877
  IdFormatList = Shapes::ListShape.new(name: 'IdFormatList')
1876
1878
  Igmpv2SupportValue = Shapes::StringShape.new(name: 'Igmpv2SupportValue')
1877
1879
  Image = Shapes::StructureShape.new(name: 'Image')
1880
+ ImageAncestryEntry = Shapes::StructureShape.new(name: 'ImageAncestryEntry')
1881
+ ImageAncestryEntryList = Shapes::ListShape.new(name: 'ImageAncestryEntryList')
1878
1882
  ImageAttribute = Shapes::StructureShape.new(name: 'ImageAttribute')
1879
1883
  ImageAttributeName = Shapes::StringShape.new(name: 'ImageAttributeName')
1880
1884
  ImageBlockPublicAccessDisabledState = Shapes::StringShape.new(name: 'ImageBlockPublicAccessDisabledState')
@@ -10801,6 +10805,13 @@ module Aws::EC2
10801
10805
  GetHostReservationPurchasePreviewResult.add_member(:total_upfront_price, Shapes::ShapeRef.new(shape: String, location_name: "totalUpfrontPrice"))
10802
10806
  GetHostReservationPurchasePreviewResult.struct_class = Types::GetHostReservationPurchasePreviewResult
10803
10807
 
10808
+ GetImageAncestryRequest.add_member(:image_id, Shapes::ShapeRef.new(shape: ImageId, required: true, location_name: "ImageId"))
10809
+ GetImageAncestryRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
10810
+ GetImageAncestryRequest.struct_class = Types::GetImageAncestryRequest
10811
+
10812
+ GetImageAncestryResult.add_member(:image_ancestry_entries, Shapes::ShapeRef.new(shape: ImageAncestryEntryList, location_name: "imageAncestryEntrySet"))
10813
+ GetImageAncestryResult.struct_class = Types::GetImageAncestryResult
10814
+
10804
10815
  GetImageBlockPublicAccessStateRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
10805
10816
  GetImageBlockPublicAccessStateRequest.struct_class = Types::GetImageBlockPublicAccessStateRequest
10806
10817
 
@@ -11453,6 +11464,15 @@ module Aws::EC2
11453
11464
  Image.add_member(:platform, Shapes::ShapeRef.new(shape: PlatformValues, location_name: "platform"))
11454
11465
  Image.struct_class = Types::Image
11455
11466
 
11467
+ ImageAncestryEntry.add_member(:creation_date, Shapes::ShapeRef.new(shape: MillisecondDateTime, location_name: "creationDate"))
11468
+ ImageAncestryEntry.add_member(:image_id, Shapes::ShapeRef.new(shape: ImageId, location_name: "imageId"))
11469
+ ImageAncestryEntry.add_member(:image_owner_alias, Shapes::ShapeRef.new(shape: String, location_name: "imageOwnerAlias"))
11470
+ ImageAncestryEntry.add_member(:source_image_id, Shapes::ShapeRef.new(shape: ImageId, location_name: "sourceImageId"))
11471
+ ImageAncestryEntry.add_member(:source_image_region, Shapes::ShapeRef.new(shape: String, location_name: "sourceImageRegion"))
11472
+ ImageAncestryEntry.struct_class = Types::ImageAncestryEntry
11473
+
11474
+ ImageAncestryEntryList.member = Shapes::ShapeRef.new(shape: ImageAncestryEntry, location_name: "item")
11475
+
11456
11476
  ImageAttribute.add_member(:description, Shapes::ShapeRef.new(shape: AttributeValue, location_name: "description"))
11457
11477
  ImageAttribute.add_member(:kernel_id, Shapes::ShapeRef.new(shape: AttributeValue, location_name: "kernel"))
11458
11478
  ImageAttribute.add_member(:ramdisk_id, Shapes::ShapeRef.new(shape: AttributeValue, location_name: "ramdisk"))
@@ -23410,6 +23430,14 @@ module Aws::EC2
23410
23430
  o.output = Shapes::ShapeRef.new(shape: GetHostReservationPurchasePreviewResult)
23411
23431
  end)
23412
23432
 
23433
+ api.add_operation(:get_image_ancestry, Seahorse::Model::Operation.new.tap do |o|
23434
+ o.name = "GetImageAncestry"
23435
+ o.http_method = "POST"
23436
+ o.http_request_uri = "/"
23437
+ o.input = Shapes::ShapeRef.new(shape: GetImageAncestryRequest)
23438
+ o.output = Shapes::ShapeRef.new(shape: GetImageAncestryResult)
23439
+ end)
23440
+
23413
23441
  api.add_operation(:get_image_block_public_access_state, Seahorse::Model::Operation.new.tap do |o|
23414
23442
  o.name = "GetImageBlockPublicAccessState"
23415
23443
  o.http_method = "POST"
@@ -41941,6 +41941,39 @@ module Aws::EC2
41941
41941
  include Aws::Structure
41942
41942
  end
41943
41943
 
41944
+ # @!attribute [rw] image_id
41945
+ # The ID of the AMI whose ancestry you want to trace.
41946
+ # @return [String]
41947
+ #
41948
+ # @!attribute [rw] dry_run
41949
+ # Checks whether you have the required permissions for the action,
41950
+ # without actually making the request, and provides an error response.
41951
+ # If you have the required permissions, the error response is
41952
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
41953
+ # @return [Boolean]
41954
+ #
41955
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetImageAncestryRequest AWS API Documentation
41956
+ #
41957
+ class GetImageAncestryRequest < Struct.new(
41958
+ :image_id,
41959
+ :dry_run)
41960
+ SENSITIVE = []
41961
+ include Aws::Structure
41962
+ end
41963
+
41964
+ # @!attribute [rw] image_ancestry_entries
41965
+ # A list of entries in the AMI ancestry chain, from the specified AMI
41966
+ # to the root AMI.
41967
+ # @return [Array<Types::ImageAncestryEntry>]
41968
+ #
41969
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetImageAncestryResult AWS API Documentation
41970
+ #
41971
+ class GetImageAncestryResult < Struct.new(
41972
+ :image_ancestry_entries)
41973
+ SENSITIVE = []
41974
+ include Aws::Structure
41975
+ end
41976
+
41944
41977
  # @!attribute [rw] dry_run
41945
41978
  # Checks whether you have the required permissions for the action,
41946
41979
  # without actually making the request, and provides an error response.
@@ -45368,6 +45401,42 @@ module Aws::EC2
45368
45401
  include Aws::Structure
45369
45402
  end
45370
45403
 
45404
+ # Information about a single AMI in the ancestry chain and its source
45405
+ # (parent) AMI.
45406
+ #
45407
+ # @!attribute [rw] creation_date
45408
+ # The date and time when this AMI was created.
45409
+ # @return [Time]
45410
+ #
45411
+ # @!attribute [rw] image_id
45412
+ # The ID of this AMI.
45413
+ # @return [String]
45414
+ #
45415
+ # @!attribute [rw] image_owner_alias
45416
+ # The owner alias (`amazon` \| `aws-backup-vault` \| `aws-marketplace`
45417
+ # ) of this AMI, if one is assigned. Otherwise, the value is `null`.
45418
+ # @return [String]
45419
+ #
45420
+ # @!attribute [rw] source_image_id
45421
+ # The ID of the parent AMI.
45422
+ # @return [String]
45423
+ #
45424
+ # @!attribute [rw] source_image_region
45425
+ # The Amazon Web Services Region of the parent AMI.
45426
+ # @return [String]
45427
+ #
45428
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImageAncestryEntry AWS API Documentation
45429
+ #
45430
+ class ImageAncestryEntry < Struct.new(
45431
+ :creation_date,
45432
+ :image_id,
45433
+ :image_owner_alias,
45434
+ :source_image_id,
45435
+ :source_image_region)
45436
+ SENSITIVE = []
45437
+ include Aws::Structure
45438
+ end
45439
+
45371
45440
  # Describes an image attribute.
45372
45441
  #
45373
45442
  # @!attribute [rw] description
data/lib/aws-sdk-ec2.rb CHANGED
@@ -78,7 +78,7 @@ module Aws::EC2
78
78
  autoload :VpcPeeringConnection, 'aws-sdk-ec2/vpc_peering_connection'
79
79
  autoload :VpcAddress, 'aws-sdk-ec2/vpc_address'
80
80
 
81
- GEM_VERSION = '1.574.0'
81
+ GEM_VERSION = '1.575.0'
82
82
 
83
83
  end
84
84
 
data/sig/client.rbs CHANGED
@@ -10187,6 +10187,17 @@ module Aws
10187
10187
  ) -> _GetHostReservationPurchasePreviewResponseSuccess
10188
10188
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetHostReservationPurchasePreviewResponseSuccess
10189
10189
 
10190
+ interface _GetImageAncestryResponseSuccess
10191
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetImageAncestryResult]
10192
+ def image_ancestry_entries: () -> ::Array[Types::ImageAncestryEntry]
10193
+ end
10194
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/EC2/Client.html#get_image_ancestry-instance_method
10195
+ def get_image_ancestry: (
10196
+ image_id: ::String,
10197
+ ?dry_run: bool
10198
+ ) -> _GetImageAncestryResponseSuccess
10199
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetImageAncestryResponseSuccess
10200
+
10190
10201
  interface _GetImageBlockPublicAccessStateResponseSuccess
10191
10202
  include ::Seahorse::Client::_ResponseSuccess[Types::GetImageBlockPublicAccessStateResult]
10192
10203
  def image_block_public_access_state: () -> ::String
data/sig/types.rbs CHANGED
@@ -9188,6 +9188,17 @@ module Aws::EC2
9188
9188
  SENSITIVE: []
9189
9189
  end
9190
9190
 
9191
+ class GetImageAncestryRequest
9192
+ attr_accessor image_id: ::String
9193
+ attr_accessor dry_run: bool
9194
+ SENSITIVE: []
9195
+ end
9196
+
9197
+ class GetImageAncestryResult
9198
+ attr_accessor image_ancestry_entries: ::Array[Types::ImageAncestryEntry]
9199
+ SENSITIVE: []
9200
+ end
9201
+
9191
9202
  class GetImageBlockPublicAccessStateRequest
9192
9203
  attr_accessor dry_run: bool
9193
9204
  SENSITIVE: []
@@ -10018,6 +10029,15 @@ module Aws::EC2
10018
10029
  SENSITIVE: []
10019
10030
  end
10020
10031
 
10032
+ class ImageAncestryEntry
10033
+ attr_accessor creation_date: ::Time
10034
+ attr_accessor image_id: ::String
10035
+ attr_accessor image_owner_alias: ::String
10036
+ attr_accessor source_image_id: ::String
10037
+ attr_accessor source_image_region: ::String
10038
+ SENSITIVE: []
10039
+ end
10040
+
10021
10041
  class ImageAttribute
10022
10042
  attr_accessor description: Types::AttributeValue
10023
10043
  attr_accessor kernel_id: Types::AttributeValue
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-ec2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.574.0
4
+ version: 1.575.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services