aws-sdk-marketplacecatalog 1.25.0 → 1.26.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: 07eff050f2b0f46039b691bf433317d9144ae61235932c5f0fd35eb311a58952
4
- data.tar.gz: acabbda9312bbd8290665f1745a987955a124bd0c773ba29b571de9d7a7c3a9c
3
+ metadata.gz: d15657d197ee28bbb5d11cabaad35869fe856c19e705f99b9bceeaa7c5664407
4
+ data.tar.gz: ff50e8740ea012d4a46e1e71973b55baa38e1920ae16dafe37ea3efe3dfcce84
5
5
  SHA512:
6
- metadata.gz: 4285af8ebe7a6718aabeeb4996585cb6138d7597fcff2082a2546187832bff5b9fbf378bdf77f26d9b13e50d931b16aa6c5adac48ed5f47dd7a9747f6ad655c4
7
- data.tar.gz: bf88dc32f7d9bf9a5a842caa2316f7371ee23cb3fab72510a69018aca2daab7788aa7198541b1d3e7a2d88831f082c99dbc7025b5725ecf9059d9dfaab234a1a
6
+ metadata.gz: 3be5a4fdec4e856d743b71c6020993d2a8846d4aa321e33c9243d996313fcd0823ff418dec643f5acbc9454d3bd48fddc46fe3155f01f8f58c8afd2fcc2a86f9
7
+ data.tar.gz: f176395699edbc88102a94b9a9829bd47f0346214b432b87be72e87be2adeebc93075e76570a1a101cff0e756699f8851408404a961652a11c776a613d0760ba
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.26.0 (2023-04-10)
5
+ ------------------
6
+
7
+ * Feature - Added three new APIs to support resource sharing: GetResourcePolicy, PutResourcePolicy, and DeleteResourcePolicy. Added new OwnershipType field to ListEntities request to let users filter on entities that are shared with them. Increased max page size of ListEntities response from 20 to 50 results.
8
+
4
9
  1.25.0 (2023-01-18)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.25.0
1
+ 1.26.0
@@ -407,6 +407,30 @@ module Aws::MarketplaceCatalog
407
407
  req.send_request(options)
408
408
  end
409
409
 
410
+ # Deletes a resource-based policy on an Entity that is identified by its
411
+ # resource ARN.
412
+ #
413
+ # @option params [required, String] :resource_arn
414
+ # The Amazon Resource Name (ARN) of the Entity resource that is
415
+ # associated with the resource policy.
416
+ #
417
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
418
+ #
419
+ # @example Request syntax with placeholder values
420
+ #
421
+ # resp = client.delete_resource_policy({
422
+ # resource_arn: "ResourceARN", # required
423
+ # })
424
+ #
425
+ # @see http://docs.aws.amazon.com/goto/WebAPI/marketplace-catalog-2018-09-17/DeleteResourcePolicy AWS API Documentation
426
+ #
427
+ # @overload delete_resource_policy(params = {})
428
+ # @param [Hash] params ({})
429
+ def delete_resource_policy(params = {}, options = {})
430
+ req = build_request(:delete_resource_policy, params)
431
+ req.send_request(options)
432
+ end
433
+
410
434
  # Provides information about a given change set.
411
435
  #
412
436
  # @option params [required, String] :catalog
@@ -506,6 +530,36 @@ module Aws::MarketplaceCatalog
506
530
  req.send_request(options)
507
531
  end
508
532
 
533
+ # Gets a resource-based policy of an Entity that is identified by its
534
+ # resource ARN.
535
+ #
536
+ # @option params [required, String] :resource_arn
537
+ # The Amazon Resource Name (ARN) of the Entity resource that is
538
+ # associated with the resource policy.
539
+ #
540
+ # @return [Types::GetResourcePolicyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
541
+ #
542
+ # * {Types::GetResourcePolicyResponse#policy #policy} => String
543
+ #
544
+ # @example Request syntax with placeholder values
545
+ #
546
+ # resp = client.get_resource_policy({
547
+ # resource_arn: "ResourceARN", # required
548
+ # })
549
+ #
550
+ # @example Response structure
551
+ #
552
+ # resp.policy #=> String
553
+ #
554
+ # @see http://docs.aws.amazon.com/goto/WebAPI/marketplace-catalog-2018-09-17/GetResourcePolicy AWS API Documentation
555
+ #
556
+ # @overload get_resource_policy(params = {})
557
+ # @param [Hash] params ({})
558
+ def get_resource_policy(params = {}, options = {})
559
+ req = build_request(:get_resource_policy, params)
560
+ req.send_request(options)
561
+ end
562
+
509
563
  # Returns the list of change sets owned by the account being used to
510
564
  # make the call. You can filter this list by providing any combination
511
565
  # of `entityId`, `ChangeSetName`, and status. If you provide more than
@@ -604,6 +658,8 @@ module Aws::MarketplaceCatalog
604
658
  # Specifies the upper limit of the elements on a single page. If a value
605
659
  # isn't provided, the default value is 20.
606
660
  #
661
+ # @option params [String] :ownership_type
662
+ #
607
663
  # @return [Types::ListEntitiesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
608
664
  #
609
665
  # * {Types::ListEntitiesResponse#entity_summary_list #entity_summary_list} => Array<Types::EntitySummary>
@@ -628,6 +684,7 @@ module Aws::MarketplaceCatalog
628
684
  # },
629
685
  # next_token: "NextToken",
630
686
  # max_results: 1,
687
+ # ownership_type: "SELF", # accepts SELF, SHARED
631
688
  # })
632
689
  #
633
690
  # @example Response structure
@@ -689,6 +746,34 @@ module Aws::MarketplaceCatalog
689
746
  req.send_request(options)
690
747
  end
691
748
 
749
+ # Attaches a resource-based policy to an Entity. Examples of an entity
750
+ # include: `AmiProduct` and `ContainerProduct`.
751
+ #
752
+ # @option params [required, String] :resource_arn
753
+ # The Amazon Resource Name (ARN) of the Entity resource you want to
754
+ # associate with a resource policy.
755
+ #
756
+ # @option params [required, String] :policy
757
+ # The policy document to set; formatted in JSON.
758
+ #
759
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
760
+ #
761
+ # @example Request syntax with placeholder values
762
+ #
763
+ # resp = client.put_resource_policy({
764
+ # resource_arn: "ResourceARN", # required
765
+ # policy: "ResourcePolicyJson", # required
766
+ # })
767
+ #
768
+ # @see http://docs.aws.amazon.com/goto/WebAPI/marketplace-catalog-2018-09-17/PutResourcePolicy AWS API Documentation
769
+ #
770
+ # @overload put_resource_policy(params = {})
771
+ # @param [Hash] params ({})
772
+ def put_resource_policy(params = {}, options = {})
773
+ req = build_request(:put_resource_policy, params)
774
+ req.send_request(options)
775
+ end
776
+
692
777
  # Allows you to request changes for your entities. Within a single
693
778
  # `ChangeSet`, you can't start the same change type against the same
694
779
  # entity multiple times. Additionally, when a `ChangeSet` is running,
@@ -704,12 +789,17 @@ module Aws::MarketplaceCatalog
704
789
  # (`entity-id@1`).
705
790
  #
706
791
  # For more information about working with change sets, see [ Working
707
- # with change sets][2].
792
+ # with change sets][2]. For information on change types for single-AMI
793
+ # products, see [Working with single-AMI products][3]. Als, for more
794
+ # information on change types available for container-based products,
795
+ # see [Working with container products][4].
708
796
  #
709
797
  #
710
798
  #
711
799
  # [1]: https://docs.aws.amazon.com/marketplace-catalog/latest/api-reference/API_StartChangeSet.html#API_StartChangeSet_Examples
712
800
  # [2]: https://docs.aws.amazon.com/marketplace-catalog/latest/api-reference/welcome.html#working-with-change-sets
801
+ # [3]: https://docs.aws.amazon.com/marketplace-catalog/latest/api-reference/ami-products.html#working-with-single-AMI-products
802
+ # [4]: https://docs.aws.amazon.com/marketplace-catalog/latest/api-reference/container-products.html#working-with-container-products
713
803
  #
714
804
  # @option params [required, String] :catalog
715
805
  # The catalog related to the request. Fixed value: `AWSMarketplace`
@@ -866,7 +956,7 @@ module Aws::MarketplaceCatalog
866
956
  params: params,
867
957
  config: config)
868
958
  context[:gem_name] = 'aws-sdk-marketplacecatalog'
869
- context[:gem_version] = '1.25.0'
959
+ context[:gem_version] = '1.26.0'
870
960
  Seahorse::Client::Request.new(handlers, context)
871
961
  end
872
962
 
@@ -29,6 +29,8 @@ module Aws::MarketplaceCatalog
29
29
  ChangeType = Shapes::StringShape.new(name: 'ChangeType')
30
30
  ClientRequestToken = Shapes::StringShape.new(name: 'ClientRequestToken')
31
31
  DateTimeISO8601 = Shapes::StringShape.new(name: 'DateTimeISO8601')
32
+ DeleteResourcePolicyRequest = Shapes::StructureShape.new(name: 'DeleteResourcePolicyRequest')
33
+ DeleteResourcePolicyResponse = Shapes::StructureShape.new(name: 'DeleteResourcePolicyResponse')
32
34
  DescribeChangeSetRequest = Shapes::StructureShape.new(name: 'DescribeChangeSetRequest')
33
35
  DescribeChangeSetResponse = Shapes::StructureShape.new(name: 'DescribeChangeSetResponse')
34
36
  DescribeEntityRequest = Shapes::StructureShape.new(name: 'DescribeEntityRequest')
@@ -47,17 +49,23 @@ module Aws::MarketplaceCatalog
47
49
  FilterList = Shapes::ListShape.new(name: 'FilterList')
48
50
  FilterName = Shapes::StringShape.new(name: 'FilterName')
49
51
  FilterValueContent = Shapes::StringShape.new(name: 'FilterValueContent')
52
+ GetResourcePolicyRequest = Shapes::StructureShape.new(name: 'GetResourcePolicyRequest')
53
+ GetResourcePolicyResponse = Shapes::StructureShape.new(name: 'GetResourcePolicyResponse')
50
54
  Identifier = Shapes::StringShape.new(name: 'Identifier')
51
55
  InternalServiceException = Shapes::StructureShape.new(name: 'InternalServiceException')
52
56
  Json = Shapes::StringShape.new(name: 'Json')
57
+ ListChangeSetsMaxResultInteger = Shapes::IntegerShape.new(name: 'ListChangeSetsMaxResultInteger')
53
58
  ListChangeSetsRequest = Shapes::StructureShape.new(name: 'ListChangeSetsRequest')
54
59
  ListChangeSetsResponse = Shapes::StructureShape.new(name: 'ListChangeSetsResponse')
60
+ ListEntitiesMaxResultInteger = Shapes::IntegerShape.new(name: 'ListEntitiesMaxResultInteger')
55
61
  ListEntitiesRequest = Shapes::StructureShape.new(name: 'ListEntitiesRequest')
56
62
  ListEntitiesResponse = Shapes::StructureShape.new(name: 'ListEntitiesResponse')
57
63
  ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
58
64
  ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
59
- MaxResultInteger = Shapes::IntegerShape.new(name: 'MaxResultInteger')
60
65
  NextToken = Shapes::StringShape.new(name: 'NextToken')
66
+ OwnershipType = Shapes::StringShape.new(name: 'OwnershipType')
67
+ PutResourcePolicyRequest = Shapes::StructureShape.new(name: 'PutResourcePolicyRequest')
68
+ PutResourcePolicyResponse = Shapes::StructureShape.new(name: 'PutResourcePolicyResponse')
61
69
  RequestedChangeList = Shapes::ListShape.new(name: 'RequestedChangeList')
62
70
  ResourceARN = Shapes::StringShape.new(name: 'ResourceARN')
63
71
  ResourceId = Shapes::StringShape.new(name: 'ResourceId')
@@ -65,6 +73,7 @@ module Aws::MarketplaceCatalog
65
73
  ResourceInUseException = Shapes::StructureShape.new(name: 'ResourceInUseException')
66
74
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
67
75
  ResourceNotSupportedException = Shapes::StructureShape.new(name: 'ResourceNotSupportedException')
76
+ ResourcePolicyJson = Shapes::StringShape.new(name: 'ResourcePolicyJson')
68
77
  ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
69
78
  Sort = Shapes::StructureShape.new(name: 'Sort')
70
79
  SortBy = Shapes::StringShape.new(name: 'SortBy')
@@ -124,6 +133,11 @@ module Aws::MarketplaceCatalog
124
133
  ChangeSummary.add_member(:change_name, Shapes::ShapeRef.new(shape: ChangeName, location_name: "ChangeName"))
125
134
  ChangeSummary.struct_class = Types::ChangeSummary
126
135
 
136
+ DeleteResourcePolicyRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceARN, required: true, location: "querystring", location_name: "resourceArn"))
137
+ DeleteResourcePolicyRequest.struct_class = Types::DeleteResourcePolicyRequest
138
+
139
+ DeleteResourcePolicyResponse.struct_class = Types::DeleteResourcePolicyResponse
140
+
127
141
  DescribeChangeSetRequest.add_member(:catalog, Shapes::ShapeRef.new(shape: Catalog, required: true, location: "querystring", location_name: "catalog"))
128
142
  DescribeChangeSetRequest.add_member(:change_set_id, Shapes::ShapeRef.new(shape: ResourceId, required: true, location: "querystring", location_name: "changeSetId"))
129
143
  DescribeChangeSetRequest.struct_class = Types::DescribeChangeSetRequest
@@ -176,13 +190,19 @@ module Aws::MarketplaceCatalog
176
190
 
177
191
  FilterList.member = Shapes::ShapeRef.new(shape: Filter)
178
192
 
193
+ GetResourcePolicyRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceARN, required: true, location: "querystring", location_name: "resourceArn"))
194
+ GetResourcePolicyRequest.struct_class = Types::GetResourcePolicyRequest
195
+
196
+ GetResourcePolicyResponse.add_member(:policy, Shapes::ShapeRef.new(shape: ResourcePolicyJson, location_name: "Policy"))
197
+ GetResourcePolicyResponse.struct_class = Types::GetResourcePolicyResponse
198
+
179
199
  InternalServiceException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessageContent, location_name: "Message"))
180
200
  InternalServiceException.struct_class = Types::InternalServiceException
181
201
 
182
202
  ListChangeSetsRequest.add_member(:catalog, Shapes::ShapeRef.new(shape: Catalog, required: true, location_name: "Catalog"))
183
203
  ListChangeSetsRequest.add_member(:filter_list, Shapes::ShapeRef.new(shape: FilterList, location_name: "FilterList"))
184
204
  ListChangeSetsRequest.add_member(:sort, Shapes::ShapeRef.new(shape: Sort, location_name: "Sort"))
185
- ListChangeSetsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResultInteger, location_name: "MaxResults"))
205
+ ListChangeSetsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListChangeSetsMaxResultInteger, location_name: "MaxResults"))
186
206
  ListChangeSetsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
187
207
  ListChangeSetsRequest.struct_class = Types::ListChangeSetsRequest
188
208
 
@@ -195,7 +215,8 @@ module Aws::MarketplaceCatalog
195
215
  ListEntitiesRequest.add_member(:filter_list, Shapes::ShapeRef.new(shape: FilterList, location_name: "FilterList"))
196
216
  ListEntitiesRequest.add_member(:sort, Shapes::ShapeRef.new(shape: Sort, location_name: "Sort"))
197
217
  ListEntitiesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
198
- ListEntitiesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResultInteger, location_name: "MaxResults"))
218
+ ListEntitiesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListEntitiesMaxResultInteger, location_name: "MaxResults"))
219
+ ListEntitiesRequest.add_member(:ownership_type, Shapes::ShapeRef.new(shape: OwnershipType, location_name: "OwnershipType"))
199
220
  ListEntitiesRequest.struct_class = Types::ListEntitiesRequest
200
221
 
201
222
  ListEntitiesResponse.add_member(:entity_summary_list, Shapes::ShapeRef.new(shape: EntitySummaryList, location_name: "EntitySummaryList"))
@@ -209,6 +230,12 @@ module Aws::MarketplaceCatalog
209
230
  ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
210
231
  ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
211
232
 
233
+ PutResourcePolicyRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceARN, required: true, location_name: "ResourceArn"))
234
+ PutResourcePolicyRequest.add_member(:policy, Shapes::ShapeRef.new(shape: ResourcePolicyJson, required: true, location_name: "Policy"))
235
+ PutResourcePolicyRequest.struct_class = Types::PutResourcePolicyRequest
236
+
237
+ PutResourcePolicyResponse.struct_class = Types::PutResourcePolicyResponse
238
+
212
239
  RequestedChangeList.member = Shapes::ShapeRef.new(shape: Change)
213
240
 
214
241
  ResourceIdList.member = Shapes::ShapeRef.new(shape: ResourceId)
@@ -301,6 +328,19 @@ module Aws::MarketplaceCatalog
301
328
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
302
329
  end)
303
330
 
331
+ api.add_operation(:delete_resource_policy, Seahorse::Model::Operation.new.tap do |o|
332
+ o.name = "DeleteResourcePolicy"
333
+ o.http_method = "DELETE"
334
+ o.http_request_uri = "/DeleteResourcePolicy"
335
+ o.input = Shapes::ShapeRef.new(shape: DeleteResourcePolicyRequest)
336
+ o.output = Shapes::ShapeRef.new(shape: DeleteResourcePolicyResponse)
337
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
338
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
339
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
340
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
341
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
342
+ end)
343
+
304
344
  api.add_operation(:describe_change_set, Seahorse::Model::Operation.new.tap do |o|
305
345
  o.name = "DescribeChangeSet"
306
346
  o.http_method = "GET"
@@ -328,6 +368,19 @@ module Aws::MarketplaceCatalog
328
368
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
329
369
  end)
330
370
 
371
+ api.add_operation(:get_resource_policy, Seahorse::Model::Operation.new.tap do |o|
372
+ o.name = "GetResourcePolicy"
373
+ o.http_method = "GET"
374
+ o.http_request_uri = "/GetResourcePolicy"
375
+ o.input = Shapes::ShapeRef.new(shape: GetResourcePolicyRequest)
376
+ o.output = Shapes::ShapeRef.new(shape: GetResourcePolicyResponse)
377
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
378
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
379
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
380
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
381
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
382
+ end)
383
+
331
384
  api.add_operation(:list_change_sets, Seahorse::Model::Operation.new.tap do |o|
332
385
  o.name = "ListChangeSets"
333
386
  o.http_method = "POST"
@@ -378,6 +431,19 @@ module Aws::MarketplaceCatalog
378
431
  o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
379
432
  end)
380
433
 
434
+ api.add_operation(:put_resource_policy, Seahorse::Model::Operation.new.tap do |o|
435
+ o.name = "PutResourcePolicy"
436
+ o.http_method = "POST"
437
+ o.http_request_uri = "/PutResourcePolicy"
438
+ o.input = Shapes::ShapeRef.new(shape: PutResourcePolicyRequest)
439
+ o.output = Shapes::ShapeRef.new(shape: PutResourcePolicyResponse)
440
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
441
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
442
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
443
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
444
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
445
+ end)
446
+
381
447
  api.add_operation(:start_change_set, Seahorse::Model::Operation.new.tap do |o|
382
448
  o.name = "StartChangeSet"
383
449
  o.http_method = "POST"
@@ -14,36 +14,39 @@ module Aws::MarketplaceCatalog
14
14
  use_dual_stack = parameters.use_dual_stack
15
15
  use_fips = parameters.use_fips
16
16
  endpoint = parameters.endpoint
17
- if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
- if Aws::Endpoints::Matchers.set?(endpoint) && (url = Aws::Endpoints::Matchers.parse_url(endpoint))
19
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
20
- raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
21
- end
22
- if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
23
- raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
24
- end
25
- return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
26
- end
27
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
28
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
29
- return Aws::Endpoints::Endpoint.new(url: "https://catalog.marketplace-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
30
- end
31
- raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
32
- end
17
+ if Aws::Endpoints::Matchers.set?(endpoint)
33
18
  if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
34
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
- return Aws::Endpoints::Endpoint.new(url: "https://catalog.marketplace-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
36
- end
37
- raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
19
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
38
20
  end
39
21
  if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
40
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
41
- return Aws::Endpoints::Endpoint.new(url: "https://catalog.marketplace.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
22
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
23
+ end
24
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
25
+ end
26
+ if Aws::Endpoints::Matchers.set?(region)
27
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
28
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
29
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
30
+ return Aws::Endpoints::Endpoint.new(url: "https://catalog.marketplace-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
31
+ end
32
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
+ end
34
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
35
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
36
+ return Aws::Endpoints::Endpoint.new(url: "https://catalog.marketplace-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
37
+ end
38
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
39
+ end
40
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
41
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
42
+ return Aws::Endpoints::Endpoint.new(url: "https://catalog.marketplace.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
43
+ end
44
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
42
45
  end
43
- raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
46
+ return Aws::Endpoints::Endpoint.new(url: "https://catalog.marketplace.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
44
47
  end
45
- return Aws::Endpoints::Endpoint.new(url: "https://catalog.marketplace.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
46
48
  end
49
+ raise ArgumentError, "Invalid Configuration: Missing Region"
47
50
  raise ArgumentError, 'No endpoint could be resolved'
48
51
 
49
52
  end
@@ -25,6 +25,20 @@ module Aws::MarketplaceCatalog
25
25
  end
26
26
  end
27
27
 
28
+ class DeleteResourcePolicy
29
+ def self.build(context)
30
+ unless context.config.regional_endpoint
31
+ endpoint = context.config.endpoint.to_s
32
+ end
33
+ Aws::MarketplaceCatalog::EndpointParameters.new(
34
+ region: context.config.region,
35
+ use_dual_stack: context.config.use_dualstack_endpoint,
36
+ use_fips: context.config.use_fips_endpoint,
37
+ endpoint: endpoint,
38
+ )
39
+ end
40
+ end
41
+
28
42
  class DescribeChangeSet
29
43
  def self.build(context)
30
44
  unless context.config.regional_endpoint
@@ -53,6 +67,20 @@ module Aws::MarketplaceCatalog
53
67
  end
54
68
  end
55
69
 
70
+ class GetResourcePolicy
71
+ def self.build(context)
72
+ unless context.config.regional_endpoint
73
+ endpoint = context.config.endpoint.to_s
74
+ end
75
+ Aws::MarketplaceCatalog::EndpointParameters.new(
76
+ region: context.config.region,
77
+ use_dual_stack: context.config.use_dualstack_endpoint,
78
+ use_fips: context.config.use_fips_endpoint,
79
+ endpoint: endpoint,
80
+ )
81
+ end
82
+ end
83
+
56
84
  class ListChangeSets
57
85
  def self.build(context)
58
86
  unless context.config.regional_endpoint
@@ -95,6 +123,20 @@ module Aws::MarketplaceCatalog
95
123
  end
96
124
  end
97
125
 
126
+ class PutResourcePolicy
127
+ def self.build(context)
128
+ unless context.config.regional_endpoint
129
+ endpoint = context.config.endpoint.to_s
130
+ end
131
+ Aws::MarketplaceCatalog::EndpointParameters.new(
132
+ region: context.config.region,
133
+ use_dual_stack: context.config.use_dualstack_endpoint,
134
+ use_fips: context.config.use_fips_endpoint,
135
+ endpoint: endpoint,
136
+ )
137
+ end
138
+ end
139
+
98
140
  class StartChangeSet
99
141
  def self.build(context)
100
142
  unless context.config.regional_endpoint
@@ -58,16 +58,22 @@ module Aws::MarketplaceCatalog
58
58
  case context.operation_name
59
59
  when :cancel_change_set
60
60
  Aws::MarketplaceCatalog::Endpoints::CancelChangeSet.build(context)
61
+ when :delete_resource_policy
62
+ Aws::MarketplaceCatalog::Endpoints::DeleteResourcePolicy.build(context)
61
63
  when :describe_change_set
62
64
  Aws::MarketplaceCatalog::Endpoints::DescribeChangeSet.build(context)
63
65
  when :describe_entity
64
66
  Aws::MarketplaceCatalog::Endpoints::DescribeEntity.build(context)
67
+ when :get_resource_policy
68
+ Aws::MarketplaceCatalog::Endpoints::GetResourcePolicy.build(context)
65
69
  when :list_change_sets
66
70
  Aws::MarketplaceCatalog::Endpoints::ListChangeSets.build(context)
67
71
  when :list_entities
68
72
  Aws::MarketplaceCatalog::Endpoints::ListEntities.build(context)
69
73
  when :list_tags_for_resource
70
74
  Aws::MarketplaceCatalog::Endpoints::ListTagsForResource.build(context)
75
+ when :put_resource_policy
76
+ Aws::MarketplaceCatalog::Endpoints::PutResourcePolicy.build(context)
71
77
  when :start_change_set
72
78
  Aws::MarketplaceCatalog::Endpoints::StartChangeSet.build(context)
73
79
  when :tag_resource
@@ -12,6 +12,8 @@ module Aws::MarketplaceCatalog
12
12
 
13
13
  # Access is denied.
14
14
  #
15
+ # HTTP status code: 403
16
+ #
15
17
  # @!attribute [rw] message
16
18
  # @return [String]
17
19
  #
@@ -64,7 +66,16 @@ module Aws::MarketplaceCatalog
64
66
  # @!attribute [rw] change_type
65
67
  # Change types are single string values that describe your intention
66
68
  # for the change. Each change type is unique for each `EntityType`
67
- # provided in the change's scope.
69
+ # provided in the change's scope. For more information on change
70
+ # types available for single-AMI products, see [Working with
71
+ # single-AMI products][1]. Also, for more information on change types
72
+ # available for container-based products, see [Working with container
73
+ # products][2].
74
+ #
75
+ #
76
+ #
77
+ # [1]: https://docs.aws.amazon.com/marketplace-catalog/latest/api-reference/ami-products.html#working-with-single-AMI-products
78
+ # [2]: https://docs.aws.amazon.com/marketplace-catalog/latest/api-reference/container-products.html#working-with-container-products
68
79
  # @return [String]
69
80
  #
70
81
  # @!attribute [rw] entity
@@ -77,7 +88,15 @@ module Aws::MarketplaceCatalog
77
88
  #
78
89
  # @!attribute [rw] details
79
90
  # This object contains details specific to the change type of the
80
- # requested change.
91
+ # requested change. For more information on change types available for
92
+ # single-AMI products, see [Working with single-AMI products][1].
93
+ # Also, for more information on change types available for
94
+ # container-based products, see [Working with container products][2].
95
+ #
96
+ #
97
+ #
98
+ # [1]: https://docs.aws.amazon.com/marketplace-catalog/latest/api-reference/ami-products.html#working-with-single-AMI-products
99
+ # [2]: https://docs.aws.amazon.com/marketplace-catalog/latest/api-reference/container-products.html#working-with-container-products
81
100
  # @return [String]
82
101
  #
83
102
  # @!attribute [rw] change_name
@@ -191,6 +210,23 @@ module Aws::MarketplaceCatalog
191
210
  include Aws::Structure
192
211
  end
193
212
 
213
+ # @!attribute [rw] resource_arn
214
+ # The Amazon Resource Name (ARN) of the Entity resource that is
215
+ # associated with the resource policy.
216
+ # @return [String]
217
+ #
218
+ # @see http://docs.aws.amazon.com/goto/WebAPI/marketplace-catalog-2018-09-17/DeleteResourcePolicyRequest AWS API Documentation
219
+ #
220
+ class DeleteResourcePolicyRequest < Struct.new(
221
+ :resource_arn)
222
+ SENSITIVE = []
223
+ include Aws::Structure
224
+ end
225
+
226
+ # @see http://docs.aws.amazon.com/goto/WebAPI/marketplace-catalog-2018-09-17/DeleteResourcePolicyResponse AWS API Documentation
227
+ #
228
+ class DeleteResourcePolicyResponse < Aws::EmptyStructure; end
229
+
194
230
  # @!attribute [rw] catalog
195
231
  # Required. The catalog related to the request. Fixed value:
196
232
  # `AWSMarketplace`
@@ -459,8 +495,35 @@ module Aws::MarketplaceCatalog
459
495
  include Aws::Structure
460
496
  end
461
497
 
498
+ # @!attribute [rw] resource_arn
499
+ # The Amazon Resource Name (ARN) of the Entity resource that is
500
+ # associated with the resource policy.
501
+ # @return [String]
502
+ #
503
+ # @see http://docs.aws.amazon.com/goto/WebAPI/marketplace-catalog-2018-09-17/GetResourcePolicyRequest AWS API Documentation
504
+ #
505
+ class GetResourcePolicyRequest < Struct.new(
506
+ :resource_arn)
507
+ SENSITIVE = []
508
+ include Aws::Structure
509
+ end
510
+
511
+ # @!attribute [rw] policy
512
+ # The policy document to set; formatted in JSON.
513
+ # @return [String]
514
+ #
515
+ # @see http://docs.aws.amazon.com/goto/WebAPI/marketplace-catalog-2018-09-17/GetResourcePolicyResponse AWS API Documentation
516
+ #
517
+ class GetResourcePolicyResponse < Struct.new(
518
+ :policy)
519
+ SENSITIVE = []
520
+ include Aws::Structure
521
+ end
522
+
462
523
  # There was an internal service exception.
463
524
  #
525
+ # HTTP status code: 500
526
+ #
464
527
  # @!attribute [rw] message
465
528
  # @return [String]
466
529
  #
@@ -552,6 +615,9 @@ module Aws::MarketplaceCatalog
552
615
  # value isn't provided, the default value is 20.
553
616
  # @return [Integer]
554
617
  #
618
+ # @!attribute [rw] ownership_type
619
+ # @return [String]
620
+ #
555
621
  # @see http://docs.aws.amazon.com/goto/WebAPI/marketplace-catalog-2018-09-17/ListEntitiesRequest AWS API Documentation
556
622
  #
557
623
  class ListEntitiesRequest < Struct.new(
@@ -560,7 +626,8 @@ module Aws::MarketplaceCatalog
560
626
  :filter_list,
561
627
  :sort,
562
628
  :next_token,
563
- :max_results)
629
+ :max_results,
630
+ :ownership_type)
564
631
  SENSITIVE = []
565
632
  include Aws::Structure
566
633
  end
@@ -615,6 +682,28 @@ module Aws::MarketplaceCatalog
615
682
  include Aws::Structure
616
683
  end
617
684
 
685
+ # @!attribute [rw] resource_arn
686
+ # The Amazon Resource Name (ARN) of the Entity resource you want to
687
+ # associate with a resource policy.
688
+ # @return [String]
689
+ #
690
+ # @!attribute [rw] policy
691
+ # The policy document to set; formatted in JSON.
692
+ # @return [String]
693
+ #
694
+ # @see http://docs.aws.amazon.com/goto/WebAPI/marketplace-catalog-2018-09-17/PutResourcePolicyRequest AWS API Documentation
695
+ #
696
+ class PutResourcePolicyRequest < Struct.new(
697
+ :resource_arn,
698
+ :policy)
699
+ SENSITIVE = []
700
+ include Aws::Structure
701
+ end
702
+
703
+ # @see http://docs.aws.amazon.com/goto/WebAPI/marketplace-catalog-2018-09-17/PutResourcePolicyResponse AWS API Documentation
704
+ #
705
+ class PutResourcePolicyResponse < Aws::EmptyStructure; end
706
+
618
707
  # The resource is currently in use.
619
708
  #
620
709
  # @!attribute [rw] message
@@ -630,6 +719,8 @@ module Aws::MarketplaceCatalog
630
719
 
631
720
  # The specified resource wasn't found.
632
721
  #
722
+ # HTTP status code: 404
723
+ #
633
724
  # @!attribute [rw] message
634
725
  # @return [String]
635
726
  #
@@ -790,6 +881,8 @@ module Aws::MarketplaceCatalog
790
881
 
791
882
  # Too many requests.
792
883
  #
884
+ # HTTP status code: 429
885
+ #
793
886
  # @!attribute [rw] message
794
887
  # @return [String]
795
888
  #
@@ -826,6 +919,8 @@ module Aws::MarketplaceCatalog
826
919
 
827
920
  # An error occurred during validation.
828
921
  #
922
+ # HTTP status code: 422
923
+ #
829
924
  # @!attribute [rw] message
830
925
  # @return [String]
831
926
  #
@@ -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.25.0'
55
+ GEM_VERSION = '1.26.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.25.0
4
+ version: 1.26.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-01-18 00:00:00.000000000 Z
11
+ date: 2023-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core