aws-sdk-marketplacecatalog 1.37.0 → 1.38.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3dab9ec081f9b37daf0e38a8ca3ac7145510a77f141beea52364dc630fcc264f
4
- data.tar.gz: f52767c90a9b913488329d59b281cccf365f4ff100ddc0d5c478edebeeb28ee9
3
+ metadata.gz: 51884d1443c764ad52bd321c404603208c854d739376c01e44ccdc55eba11800
4
+ data.tar.gz: 30a1aa3c44b627ddcc80fef9719cf891c54cf365ea1670f62e9275d06f17a8d1
5
5
  SHA512:
6
- metadata.gz: 4ebed5d9f71e74942917bebc7b8294cfc2d76c552171e25f29cc982bbeb0ea18e2450c4c81459f47c160d81ec2e6e3c77077ae0468c77207c40692ff6a364e7a
7
- data.tar.gz: ae8c76c4e98ece2df7f6c884afbc791df006c1c375ee81cc670809c323177f105ad1eaf64f0e04d36839c785f7648b1a10cc0df47b28db41df77f81c7c30ee56
6
+ metadata.gz: 15354c806c8b83e035944429dc0837ed3c4b7df0e0c3bcd5b31df248dcaa1a56ad680c156c99771054a0f6f4541ff9c40d30e7e4683a29e77d087f3f16f10771
7
+ data.tar.gz: e999189a3757bb4eaf8835e4430ad1c80e9858e3d29da3a9db68e951536c013bc54d6d66acc75eb943786057524c0e4dccacb8ef7eb9e3972d468815287277fc
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.38.0 (2023-12-19)
5
+ ------------------
6
+
7
+ * Feature - AWS Marketplace now supports a new API, BatchDescribeEntities, which returns metadata and content for multiple entities.
8
+
4
9
  1.37.0 (2023-11-30)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.37.0
1
+ 1.38.0
@@ -388,6 +388,47 @@ module Aws::MarketplaceCatalog
388
388
 
389
389
  # @!group API Operations
390
390
 
391
+ # Returns metadata and content for multiple entities.
392
+ #
393
+ # @option params [required, Array<Types::EntityRequest>] :entity_request_list
394
+ # List of entity IDs and the catalogs the entities are present in.
395
+ #
396
+ # @return [Types::BatchDescribeEntitiesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
397
+ #
398
+ # * {Types::BatchDescribeEntitiesResponse#entity_details #entity_details} => Hash&lt;String,Types::EntityDetail&gt;
399
+ # * {Types::BatchDescribeEntitiesResponse#errors #errors} => Hash&lt;String,Types::BatchDescribeErrorDetail&gt;
400
+ #
401
+ # @example Request syntax with placeholder values
402
+ #
403
+ # resp = client.batch_describe_entities({
404
+ # entity_request_list: [ # required
405
+ # {
406
+ # catalog: "Catalog", # required
407
+ # entity_id: "EntityId", # required
408
+ # },
409
+ # ],
410
+ # })
411
+ #
412
+ # @example Response structure
413
+ #
414
+ # resp.entity_details #=> Hash
415
+ # resp.entity_details["EntityId"].entity_type #=> String
416
+ # resp.entity_details["EntityId"].entity_arn #=> String
417
+ # resp.entity_details["EntityId"].entity_identifier #=> String
418
+ # resp.entity_details["EntityId"].last_modified_date #=> String
419
+ # resp.errors #=> Hash
420
+ # resp.errors["EntityId"].error_code #=> String
421
+ # resp.errors["EntityId"].error_message #=> String
422
+ #
423
+ # @see http://docs.aws.amazon.com/goto/WebAPI/marketplace-catalog-2018-09-17/BatchDescribeEntities AWS API Documentation
424
+ #
425
+ # @overload batch_describe_entities(params = {})
426
+ # @param [Hash] params ({})
427
+ def batch_describe_entities(params = {}, options = {})
428
+ req = build_request(:batch_describe_entities, params)
429
+ req.send_request(options)
430
+ end
431
+
391
432
  # Used to cancel an open change request. Must be sent before the status
392
433
  # of the request changes to `APPLYING`, the final stage of completing
393
434
  # your change request. You can describe a change during the 60-day
@@ -662,10 +703,10 @@ module Aws::MarketplaceCatalog
662
703
  # The catalog related to the request. Fixed value: `AWSMarketplace`
663
704
  #
664
705
  # @option params [required, String] :entity_type
665
- # The type of entities to retrieve. Valid values are: `ServerProduct`,
666
- # `AmiProduct`, `ContainerProduct`, `DataProduct`, `SaaSProduct`,
667
- # `ProcurementPolicy`, `Experience`, `Audience`, `BrandingSettings`,
668
- # `Offer`, `Seller`, `ResaleAuthorization`.
706
+ # The type of entities to retrieve. Valid values are: `AmiProduct`,
707
+ # `ContainerProduct`, `DataProduct`, `SaaSProduct`, `ProcurementPolicy`,
708
+ # `Experience`, `Audience`, `BrandingSettings`, `Offer`, `Seller`,
709
+ # `ResaleAuthorization`.
669
710
  #
670
711
  # @option params [Array<Types::Filter>] :filter_list
671
712
  # An array of filter objects. Each filter object contains two
@@ -1224,7 +1265,7 @@ module Aws::MarketplaceCatalog
1224
1265
  params: params,
1225
1266
  config: config)
1226
1267
  context[:gem_name] = 'aws-sdk-marketplacecatalog'
1227
- context[:gem_version] = '1.37.0'
1268
+ context[:gem_version] = '1.38.0'
1228
1269
  Seahorse::Client::Request.new(handlers, context)
1229
1270
  end
1230
1271
 
@@ -30,6 +30,11 @@ module Aws::MarketplaceCatalog
30
30
  AmiProductVisibilityFilter = Shapes::StructureShape.new(name: 'AmiProductVisibilityFilter')
31
31
  AmiProductVisibilityFilterValueList = Shapes::ListShape.new(name: 'AmiProductVisibilityFilterValueList')
32
32
  AmiProductVisibilityString = Shapes::StringShape.new(name: 'AmiProductVisibilityString')
33
+ BatchDescribeEntitiesRequest = Shapes::StructureShape.new(name: 'BatchDescribeEntitiesRequest')
34
+ BatchDescribeEntitiesResponse = Shapes::StructureShape.new(name: 'BatchDescribeEntitiesResponse')
35
+ BatchDescribeErrorCodeString = Shapes::StringShape.new(name: 'BatchDescribeErrorCodeString')
36
+ BatchDescribeErrorDetail = Shapes::StructureShape.new(name: 'BatchDescribeErrorDetail')
37
+ BatchDescribeErrorMessageContent = Shapes::StringShape.new(name: 'BatchDescribeErrorMessageContent')
33
38
  CancelChangeSetRequest = Shapes::StructureShape.new(name: 'CancelChangeSetRequest')
34
39
  CancelChangeSetResponse = Shapes::StructureShape.new(name: 'CancelChangeSetResponse')
35
40
  Catalog = Shapes::StringShape.new(name: 'Catalog')
@@ -81,7 +86,12 @@ module Aws::MarketplaceCatalog
81
86
  DescribeEntityRequest = Shapes::StructureShape.new(name: 'DescribeEntityRequest')
82
87
  DescribeEntityResponse = Shapes::StructureShape.new(name: 'DescribeEntityResponse')
83
88
  Entity = Shapes::StructureShape.new(name: 'Entity')
89
+ EntityDetail = Shapes::StructureShape.new(name: 'EntityDetail')
90
+ EntityDetails = Shapes::MapShape.new(name: 'EntityDetails')
91
+ EntityId = Shapes::StringShape.new(name: 'EntityId')
84
92
  EntityNameString = Shapes::StringShape.new(name: 'EntityNameString')
93
+ EntityRequest = Shapes::StructureShape.new(name: 'EntityRequest')
94
+ EntityRequestList = Shapes::ListShape.new(name: 'EntityRequestList')
85
95
  EntitySummary = Shapes::StructureShape.new(name: 'EntitySummary')
86
96
  EntitySummaryList = Shapes::ListShape.new(name: 'EntitySummaryList')
87
97
  EntityType = Shapes::StringShape.new(name: 'EntityType')
@@ -90,6 +100,7 @@ module Aws::MarketplaceCatalog
90
100
  ErrorCodeString = Shapes::StringShape.new(name: 'ErrorCodeString')
91
101
  ErrorDetail = Shapes::StructureShape.new(name: 'ErrorDetail')
92
102
  ErrorDetailList = Shapes::ListShape.new(name: 'ErrorDetailList')
103
+ Errors = Shapes::MapShape.new(name: 'Errors')
93
104
  ExceptionMessageContent = Shapes::StringShape.new(name: 'ExceptionMessageContent')
94
105
  FailureCode = Shapes::StringShape.new(name: 'FailureCode')
95
106
  Filter = Shapes::StructureShape.new(name: 'Filter')
@@ -276,6 +287,17 @@ module Aws::MarketplaceCatalog
276
287
 
277
288
  AmiProductVisibilityFilterValueList.member = Shapes::ShapeRef.new(shape: AmiProductVisibilityString)
278
289
 
290
+ BatchDescribeEntitiesRequest.add_member(:entity_request_list, Shapes::ShapeRef.new(shape: EntityRequestList, required: true, location_name: "EntityRequestList"))
291
+ BatchDescribeEntitiesRequest.struct_class = Types::BatchDescribeEntitiesRequest
292
+
293
+ BatchDescribeEntitiesResponse.add_member(:entity_details, Shapes::ShapeRef.new(shape: EntityDetails, location_name: "EntityDetails"))
294
+ BatchDescribeEntitiesResponse.add_member(:errors, Shapes::ShapeRef.new(shape: Errors, location_name: "Errors"))
295
+ BatchDescribeEntitiesResponse.struct_class = Types::BatchDescribeEntitiesResponse
296
+
297
+ BatchDescribeErrorDetail.add_member(:error_code, Shapes::ShapeRef.new(shape: BatchDescribeErrorCodeString, location_name: "ErrorCode"))
298
+ BatchDescribeErrorDetail.add_member(:error_message, Shapes::ShapeRef.new(shape: BatchDescribeErrorMessageContent, location_name: "ErrorMessage"))
299
+ BatchDescribeErrorDetail.struct_class = Types::BatchDescribeErrorDetail
300
+
279
301
  CancelChangeSetRequest.add_member(:catalog, Shapes::ShapeRef.new(shape: Catalog, required: true, location: "querystring", location_name: "catalog"))
280
302
  CancelChangeSetRequest.add_member(:change_set_id, Shapes::ShapeRef.new(shape: ResourceId, required: true, location: "querystring", location_name: "changeSetId"))
281
303
  CancelChangeSetRequest.struct_class = Types::CancelChangeSetRequest
@@ -424,6 +446,22 @@ module Aws::MarketplaceCatalog
424
446
  Entity.add_member(:identifier, Shapes::ShapeRef.new(shape: Identifier, location_name: "Identifier"))
425
447
  Entity.struct_class = Types::Entity
426
448
 
449
+ EntityDetail.add_member(:entity_type, Shapes::ShapeRef.new(shape: EntityType, location_name: "EntityType"))
450
+ EntityDetail.add_member(:entity_arn, Shapes::ShapeRef.new(shape: ARN, location_name: "EntityArn"))
451
+ EntityDetail.add_member(:entity_identifier, Shapes::ShapeRef.new(shape: Identifier, location_name: "EntityIdentifier"))
452
+ EntityDetail.add_member(:last_modified_date, Shapes::ShapeRef.new(shape: DateTimeISO8601, location_name: "LastModifiedDate"))
453
+ EntityDetail.add_member(:details_document, Shapes::ShapeRef.new(shape: JsonDocumentType, location_name: "DetailsDocument"))
454
+ EntityDetail.struct_class = Types::EntityDetail
455
+
456
+ EntityDetails.key = Shapes::ShapeRef.new(shape: EntityId)
457
+ EntityDetails.value = Shapes::ShapeRef.new(shape: EntityDetail)
458
+
459
+ EntityRequest.add_member(:catalog, Shapes::ShapeRef.new(shape: Catalog, required: true, location_name: "Catalog"))
460
+ EntityRequest.add_member(:entity_id, Shapes::ShapeRef.new(shape: EntityId, required: true, location_name: "EntityId"))
461
+ EntityRequest.struct_class = Types::EntityRequest
462
+
463
+ EntityRequestList.member = Shapes::ShapeRef.new(shape: EntityRequest)
464
+
427
465
  EntitySummary.add_member(:name, Shapes::ShapeRef.new(shape: EntityNameString, location_name: "Name"))
428
466
  EntitySummary.add_member(:entity_type, Shapes::ShapeRef.new(shape: EntityType, location_name: "EntityType"))
429
467
  EntitySummary.add_member(:entity_id, Shapes::ShapeRef.new(shape: ResourceId, location_name: "EntityId"))
@@ -478,6 +516,9 @@ module Aws::MarketplaceCatalog
478
516
 
479
517
  ErrorDetailList.member = Shapes::ShapeRef.new(shape: ErrorDetail)
480
518
 
519
+ Errors.key = Shapes::ShapeRef.new(shape: EntityId)
520
+ Errors.value = Shapes::ShapeRef.new(shape: BatchDescribeErrorDetail)
521
+
481
522
  Filter.add_member(:name, Shapes::ShapeRef.new(shape: FilterName, location_name: "Name"))
482
523
  Filter.add_member(:value_list, Shapes::ShapeRef.new(shape: ValueList, location_name: "ValueList"))
483
524
  Filter.struct_class = Types::Filter
@@ -841,6 +882,18 @@ module Aws::MarketplaceCatalog
841
882
  "uid" => "marketplace-catalog-2018-09-17",
842
883
  }
843
884
 
885
+ api.add_operation(:batch_describe_entities, Seahorse::Model::Operation.new.tap do |o|
886
+ o.name = "BatchDescribeEntities"
887
+ o.http_method = "POST"
888
+ o.http_request_uri = "/BatchDescribeEntities"
889
+ o.input = Shapes::ShapeRef.new(shape: BatchDescribeEntitiesRequest)
890
+ o.output = Shapes::ShapeRef.new(shape: BatchDescribeEntitiesResponse)
891
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
892
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
893
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
894
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
895
+ end)
896
+
844
897
  api.add_operation(:cancel_change_set, Seahorse::Model::Operation.new.tap do |o|
845
898
  o.name = "CancelChangeSet"
846
899
  o.http_method = "PATCH"
@@ -12,6 +12,20 @@ module Aws::MarketplaceCatalog
12
12
  # @api private
13
13
  module Endpoints
14
14
 
15
+ class BatchDescribeEntities
16
+ def self.build(context)
17
+ unless context.config.regional_endpoint
18
+ endpoint = context.config.endpoint.to_s
19
+ end
20
+ Aws::MarketplaceCatalog::EndpointParameters.new(
21
+ region: context.config.region,
22
+ use_dual_stack: context.config.use_dualstack_endpoint,
23
+ use_fips: context.config.use_fips_endpoint,
24
+ endpoint: endpoint,
25
+ )
26
+ end
27
+ end
28
+
15
29
  class CancelChangeSet
16
30
  def self.build(context)
17
31
  unless context.config.regional_endpoint
@@ -57,6 +57,8 @@ module Aws::MarketplaceCatalog
57
57
 
58
58
  def parameters_for_operation(context)
59
59
  case context.operation_name
60
+ when :batch_describe_entities
61
+ Aws::MarketplaceCatalog::Endpoints::BatchDescribeEntities.build(context)
60
62
  when :cancel_change_set
61
63
  Aws::MarketplaceCatalog::Endpoints::CancelChangeSet.build(context)
62
64
  when :delete_resource_policy
@@ -180,6 +180,55 @@ module Aws::MarketplaceCatalog
180
180
  include Aws::Structure
181
181
  end
182
182
 
183
+ # @!attribute [rw] entity_request_list
184
+ # List of entity IDs and the catalogs the entities are present in.
185
+ # @return [Array<Types::EntityRequest>]
186
+ #
187
+ # @see http://docs.aws.amazon.com/goto/WebAPI/marketplace-catalog-2018-09-17/BatchDescribeEntitiesRequest AWS API Documentation
188
+ #
189
+ class BatchDescribeEntitiesRequest < Struct.new(
190
+ :entity_request_list)
191
+ SENSITIVE = []
192
+ include Aws::Structure
193
+ end
194
+
195
+ # @!attribute [rw] entity_details
196
+ # Details about each entity.
197
+ # @return [Hash<String,Types::EntityDetail>]
198
+ #
199
+ # @!attribute [rw] errors
200
+ # A map of errors returned, with `EntityId` as the key and
201
+ # `errorDetail` as the value.
202
+ # @return [Hash<String,Types::BatchDescribeErrorDetail>]
203
+ #
204
+ # @see http://docs.aws.amazon.com/goto/WebAPI/marketplace-catalog-2018-09-17/BatchDescribeEntitiesResponse AWS API Documentation
205
+ #
206
+ class BatchDescribeEntitiesResponse < Struct.new(
207
+ :entity_details,
208
+ :errors)
209
+ SENSITIVE = []
210
+ include Aws::Structure
211
+ end
212
+
213
+ # An object that contains an error code and error message.
214
+ #
215
+ # @!attribute [rw] error_code
216
+ # The error code returned.
217
+ # @return [String]
218
+ #
219
+ # @!attribute [rw] error_message
220
+ # The error message returned.
221
+ # @return [String]
222
+ #
223
+ # @see http://docs.aws.amazon.com/goto/WebAPI/marketplace-catalog-2018-09-17/BatchDescribeErrorDetail AWS API Documentation
224
+ #
225
+ class BatchDescribeErrorDetail < Struct.new(
226
+ :error_code,
227
+ :error_message)
228
+ SENSITIVE = []
229
+ include Aws::Structure
230
+ end
231
+
183
232
  # @!attribute [rw] catalog
184
233
  # Required. The catalog related to the request. Fixed value:
185
234
  # `AWSMarketplace`.
@@ -221,7 +270,7 @@ module Aws::MarketplaceCatalog
221
270
  # @!attribute [rw] change_type
222
271
  # Change types are single string values that describe your intention
223
272
  # for the change. Each change type is unique for each `EntityType`
224
- # provided in the change's scope. For more information on change
273
+ # provided in the change's scope. For more information about change
225
274
  # types available for single-AMI products, see [Working with
226
275
  # single-AMI products][1]. Also, for more information about change
227
276
  # types available for container-based products, see [Working with
@@ -865,6 +914,62 @@ module Aws::MarketplaceCatalog
865
914
  include Aws::Structure
866
915
  end
867
916
 
917
+ # An object that contains metadata and details about the entity.
918
+ #
919
+ # @!attribute [rw] entity_type
920
+ # The entity type of the entity, in the format of
921
+ # `EntityType@Version`.
922
+ # @return [String]
923
+ #
924
+ # @!attribute [rw] entity_arn
925
+ # The Amazon Resource Name (ARN) of the entity.
926
+ # @return [String]
927
+ #
928
+ # @!attribute [rw] entity_identifier
929
+ # The ID of the entity, in the format of `EntityId@RevisionId`.
930
+ # @return [String]
931
+ #
932
+ # @!attribute [rw] last_modified_date
933
+ # The last time the entity was modified.
934
+ # @return [String]
935
+ #
936
+ # @!attribute [rw] details_document
937
+ # An object that contains all the details of the entity.
938
+ # @return [Hash,Array,String,Numeric,Boolean]
939
+ #
940
+ # @see http://docs.aws.amazon.com/goto/WebAPI/marketplace-catalog-2018-09-17/EntityDetail AWS API Documentation
941
+ #
942
+ class EntityDetail < Struct.new(
943
+ :entity_type,
944
+ :entity_arn,
945
+ :entity_identifier,
946
+ :last_modified_date,
947
+ :details_document)
948
+ SENSITIVE = []
949
+ include Aws::Structure
950
+ end
951
+
952
+ # An object that contains entity ID and the catalog in which the entity
953
+ # is present.
954
+ #
955
+ # @!attribute [rw] catalog
956
+ # The name of the catalog the entity is present in. The only value at
957
+ # this time is `AWSMarketplace`.
958
+ # @return [String]
959
+ #
960
+ # @!attribute [rw] entity_id
961
+ # The ID of the entity.
962
+ # @return [String]
963
+ #
964
+ # @see http://docs.aws.amazon.com/goto/WebAPI/marketplace-catalog-2018-09-17/EntityRequest AWS API Documentation
965
+ #
966
+ class EntityRequest < Struct.new(
967
+ :catalog,
968
+ :entity_id)
969
+ SENSITIVE = []
970
+ include Aws::Structure
971
+ end
972
+
868
973
  # This object is a container for common summary information about the
869
974
  # entity. The summary doesn't contain the whole entity structure, but
870
975
  # it does contain information common across all entities.
@@ -1210,8 +1315,8 @@ module Aws::MarketplaceCatalog
1210
1315
  # @return [String]
1211
1316
  #
1212
1317
  # @!attribute [rw] entity_type
1213
- # The type of entities to retrieve. Valid values are: `ServerProduct`,
1214
- # `AmiProduct`, `ContainerProduct`, `DataProduct`, `SaaSProduct`,
1318
+ # The type of entities to retrieve. Valid values are: `AmiProduct`,
1319
+ # `ContainerProduct`, `DataProduct`, `SaaSProduct`,
1215
1320
  # `ProcurementPolicy`, `Experience`, `Audience`, `BrandingSettings`,
1216
1321
  # `Offer`, `Seller`, `ResaleAuthorization`.
1217
1322
  # @return [String]
@@ -32,7 +32,7 @@ require_relative 'aws-sdk-marketplacecatalog/customizations'
32
32
  # structure.
33
33
  #
34
34
  # marketplace_catalog = Aws::MarketplaceCatalog::Client.new
35
- # resp = marketplace_catalog.cancel_change_set(params)
35
+ # resp = marketplace_catalog.batch_describe_entities(params)
36
36
  #
37
37
  # See {Client} for more information.
38
38
  #
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-marketplacecatalog/customizations'
52
52
  # @!group service
53
53
  module Aws::MarketplaceCatalog
54
54
 
55
- GEM_VERSION = '1.37.0'
55
+ GEM_VERSION = '1.38.0'
56
56
 
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-marketplacecatalog
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.37.0
4
+ version: 1.38.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-30 00:00:00.000000000 Z
11
+ date: 2023-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core