aws-sdk-licensemanager 1.41.0 → 1.43.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 +4 -4
- data/CHANGELOG.md +13 -1
- data/VERSION +1 -1
- data/lib/aws-sdk-licensemanager/client.rb +153 -4
- data/lib/aws-sdk-licensemanager/client_api.rb +53 -0
- data/lib/aws-sdk-licensemanager/endpoint_provider.rb +35 -96
- data/lib/aws-sdk-licensemanager/endpoints.rb +28 -0
- data/lib/aws-sdk-licensemanager/plugins/endpoints.rb +4 -0
- data/lib/aws-sdk-licensemanager/types.rb +93 -804
- data/lib/aws-sdk-licensemanager.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c9fc761fb655f89cb8f0fc842cb8b387b633cc8f2e7c472216334d995e067bb
|
4
|
+
data.tar.gz: a712b74c1b459d5932d997ec449a9d0373c5b4bc4690456be12467625fe67482
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38b481b5d42c53efce00d734cd9c1258b5e04bbac395e49c5d8f8c270e22e5f610aa37d8cf8b145401b458eb2be4123636b242462f64105c61acb6442338eae1
|
7
|
+
data.tar.gz: 4233c886caa7ffd48fdab4582119a9736eff664f7ef874c20747f9ea88ebccf3327a3e3d67d537022bd75c039c38b66f284704ed429e3d136524378c40eb81e4
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,18 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.43.0 (2023-01-18)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
* Issue - Replace runtime endpoint resolution approach with generated ruby code.
|
10
|
+
|
11
|
+
1.42.0 (2022-11-11)
|
12
|
+
------------------
|
13
|
+
|
14
|
+
* Feature - AWS License Manager now supports onboarded Management Accounts or Delegated Admins to view granted licenses aggregated from all accounts in the organization.
|
15
|
+
|
4
16
|
1.41.0 (2022-10-25)
|
5
17
|
------------------
|
6
18
|
|
@@ -215,4 +227,4 @@ Unreleased Changes
|
|
215
227
|
1.0.0 (2018-11-29)
|
216
228
|
------------------
|
217
229
|
|
218
|
-
* Feature - Initial release of `aws-sdk-licensemanager`.
|
230
|
+
* Feature - Initial release of `aws-sdk-licensemanager`.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.43.0
|
@@ -525,6 +525,11 @@ module Aws::LicenseManager
|
|
525
525
|
|
526
526
|
# Checks out the specified license.
|
527
527
|
#
|
528
|
+
# <note markdown="1"> If the account that created the license is the same that is performing
|
529
|
+
# the check out, you must specify the account as the beneficiary.
|
530
|
+
#
|
531
|
+
# </note>
|
532
|
+
#
|
528
533
|
# @option params [required, String] :product_sku
|
529
534
|
# Product SKU.
|
530
535
|
#
|
@@ -613,7 +618,8 @@ module Aws::LicenseManager
|
|
613
618
|
# Amazon Resource Name (ARN) of the license.
|
614
619
|
#
|
615
620
|
# @option params [required, Array<String>] :principals
|
616
|
-
# The grant principals.
|
621
|
+
# The grant principals. This value should be specified as an Amazon
|
622
|
+
# Resource Name (ARN).
|
617
623
|
#
|
618
624
|
# @option params [required, String] :home_region
|
619
625
|
# Home Region of the grant.
|
@@ -929,7 +935,8 @@ module Aws::LicenseManager
|
|
929
935
|
# @option params [required, Types::LicenseConversionContext] :source_license_context
|
930
936
|
# Information that identifies the license type you are converting from.
|
931
937
|
# For the structure of the source license, see [Convert a license type
|
932
|
-
# using the
|
938
|
+
# using the Amazon Web Services CLI][1] in the *License Manager User
|
939
|
+
# Guide*.
|
933
940
|
#
|
934
941
|
#
|
935
942
|
#
|
@@ -938,7 +945,8 @@ module Aws::LicenseManager
|
|
938
945
|
# @option params [required, Types::LicenseConversionContext] :destination_license_context
|
939
946
|
# Information that identifies the license type you are converting to.
|
940
947
|
# For the structure of the destination license, see [Convert a license
|
941
|
-
# type using the
|
948
|
+
# type using the Amazon Web Services CLI][1] in the *License Manager
|
949
|
+
# User Guide*.
|
942
950
|
#
|
943
951
|
#
|
944
952
|
#
|
@@ -2377,6 +2385,68 @@ module Aws::LicenseManager
|
|
2377
2385
|
req.send_request(options)
|
2378
2386
|
end
|
2379
2387
|
|
2388
|
+
# Lists the grants received for all accounts in the organization.
|
2389
|
+
#
|
2390
|
+
# @option params [required, String] :license_arn
|
2391
|
+
# The Amazon Resource Name (ARN) of the received license.
|
2392
|
+
#
|
2393
|
+
# @option params [Array<Types::Filter>] :filters
|
2394
|
+
# Filters to scope the results. The following filters are supported:
|
2395
|
+
#
|
2396
|
+
# * `ParentArn`
|
2397
|
+
#
|
2398
|
+
# * `GranteePrincipalArn`
|
2399
|
+
#
|
2400
|
+
# @option params [String] :next_token
|
2401
|
+
# Token for the next set of results.
|
2402
|
+
#
|
2403
|
+
# @option params [Integer] :max_results
|
2404
|
+
# Maximum number of results to return in a single call.
|
2405
|
+
#
|
2406
|
+
# @return [Types::ListReceivedGrantsForOrganizationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2407
|
+
#
|
2408
|
+
# * {Types::ListReceivedGrantsForOrganizationResponse#grants #grants} => Array<Types::Grant>
|
2409
|
+
# * {Types::ListReceivedGrantsForOrganizationResponse#next_token #next_token} => String
|
2410
|
+
#
|
2411
|
+
# @example Request syntax with placeholder values
|
2412
|
+
#
|
2413
|
+
# resp = client.list_received_grants_for_organization({
|
2414
|
+
# license_arn: "Arn", # required
|
2415
|
+
# filters: [
|
2416
|
+
# {
|
2417
|
+
# name: "FilterName",
|
2418
|
+
# values: ["FilterValue"],
|
2419
|
+
# },
|
2420
|
+
# ],
|
2421
|
+
# next_token: "String",
|
2422
|
+
# max_results: 1,
|
2423
|
+
# })
|
2424
|
+
#
|
2425
|
+
# @example Response structure
|
2426
|
+
#
|
2427
|
+
# resp.grants #=> Array
|
2428
|
+
# resp.grants[0].grant_arn #=> String
|
2429
|
+
# resp.grants[0].grant_name #=> String
|
2430
|
+
# resp.grants[0].parent_arn #=> String
|
2431
|
+
# resp.grants[0].license_arn #=> String
|
2432
|
+
# resp.grants[0].grantee_principal_arn #=> String
|
2433
|
+
# resp.grants[0].home_region #=> String
|
2434
|
+
# resp.grants[0].grant_status #=> String, one of "PENDING_WORKFLOW", "PENDING_ACCEPT", "REJECTED", "ACTIVE", "FAILED_WORKFLOW", "DELETED", "PENDING_DELETE", "DISABLED", "WORKFLOW_COMPLETED"
|
2435
|
+
# resp.grants[0].status_reason #=> String
|
2436
|
+
# resp.grants[0].version #=> String
|
2437
|
+
# resp.grants[0].granted_operations #=> Array
|
2438
|
+
# resp.grants[0].granted_operations[0] #=> String, one of "CreateGrant", "CheckoutLicense", "CheckoutBorrowLicense", "CheckInLicense", "ExtendConsumptionLicense", "ListPurchasedLicenses", "CreateToken"
|
2439
|
+
# resp.next_token #=> String
|
2440
|
+
#
|
2441
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListReceivedGrantsForOrganization AWS API Documentation
|
2442
|
+
#
|
2443
|
+
# @overload list_received_grants_for_organization(params = {})
|
2444
|
+
# @param [Hash] params ({})
|
2445
|
+
def list_received_grants_for_organization(params = {}, options = {})
|
2446
|
+
req = build_request(:list_received_grants_for_organization, params)
|
2447
|
+
req.send_request(options)
|
2448
|
+
end
|
2449
|
+
|
2380
2450
|
# Lists received licenses.
|
2381
2451
|
#
|
2382
2452
|
# @option params [Array<String>] :license_arns
|
@@ -2466,6 +2536,85 @@ module Aws::LicenseManager
|
|
2466
2536
|
req.send_request(options)
|
2467
2537
|
end
|
2468
2538
|
|
2539
|
+
# Lists the licenses received for all accounts in the organization.
|
2540
|
+
#
|
2541
|
+
# @option params [Array<Types::Filter>] :filters
|
2542
|
+
# Filters to scope the results. The following filters are supported:
|
2543
|
+
#
|
2544
|
+
# * `Beneficiary`
|
2545
|
+
#
|
2546
|
+
# * `ProductSKU`
|
2547
|
+
#
|
2548
|
+
# @option params [String] :next_token
|
2549
|
+
# Token for the next set of results.
|
2550
|
+
#
|
2551
|
+
# @option params [Integer] :max_results
|
2552
|
+
# Maximum number of results to return in a single call.
|
2553
|
+
#
|
2554
|
+
# @return [Types::ListReceivedLicensesForOrganizationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2555
|
+
#
|
2556
|
+
# * {Types::ListReceivedLicensesForOrganizationResponse#licenses #licenses} => Array<Types::GrantedLicense>
|
2557
|
+
# * {Types::ListReceivedLicensesForOrganizationResponse#next_token #next_token} => String
|
2558
|
+
#
|
2559
|
+
# @example Request syntax with placeholder values
|
2560
|
+
#
|
2561
|
+
# resp = client.list_received_licenses_for_organization({
|
2562
|
+
# filters: [
|
2563
|
+
# {
|
2564
|
+
# name: "FilterName",
|
2565
|
+
# values: ["FilterValue"],
|
2566
|
+
# },
|
2567
|
+
# ],
|
2568
|
+
# next_token: "String",
|
2569
|
+
# max_results: 1,
|
2570
|
+
# })
|
2571
|
+
#
|
2572
|
+
# @example Response structure
|
2573
|
+
#
|
2574
|
+
# resp.licenses #=> Array
|
2575
|
+
# resp.licenses[0].license_arn #=> String
|
2576
|
+
# resp.licenses[0].license_name #=> String
|
2577
|
+
# resp.licenses[0].product_name #=> String
|
2578
|
+
# resp.licenses[0].product_sku #=> String
|
2579
|
+
# resp.licenses[0].issuer.name #=> String
|
2580
|
+
# resp.licenses[0].issuer.sign_key #=> String
|
2581
|
+
# resp.licenses[0].issuer.key_fingerprint #=> String
|
2582
|
+
# resp.licenses[0].home_region #=> String
|
2583
|
+
# resp.licenses[0].status #=> String, one of "AVAILABLE", "PENDING_AVAILABLE", "DEACTIVATED", "SUSPENDED", "EXPIRED", "PENDING_DELETE", "DELETED"
|
2584
|
+
# resp.licenses[0].validity.begin #=> String
|
2585
|
+
# resp.licenses[0].validity.end #=> String
|
2586
|
+
# resp.licenses[0].beneficiary #=> String
|
2587
|
+
# resp.licenses[0].entitlements #=> Array
|
2588
|
+
# resp.licenses[0].entitlements[0].name #=> String
|
2589
|
+
# resp.licenses[0].entitlements[0].value #=> String
|
2590
|
+
# resp.licenses[0].entitlements[0].max_count #=> Integer
|
2591
|
+
# resp.licenses[0].entitlements[0].overage #=> Boolean
|
2592
|
+
# resp.licenses[0].entitlements[0].unit #=> String, one of "Count", "None", "Seconds", "Microseconds", "Milliseconds", "Bytes", "Kilobytes", "Megabytes", "Gigabytes", "Terabytes", "Bits", "Kilobits", "Megabits", "Gigabits", "Terabits", "Percent", "Bytes/Second", "Kilobytes/Second", "Megabytes/Second", "Gigabytes/Second", "Terabytes/Second", "Bits/Second", "Kilobits/Second", "Megabits/Second", "Gigabits/Second", "Terabits/Second", "Count/Second"
|
2593
|
+
# resp.licenses[0].entitlements[0].allow_check_in #=> Boolean
|
2594
|
+
# resp.licenses[0].consumption_configuration.renew_type #=> String, one of "None", "Weekly", "Monthly"
|
2595
|
+
# resp.licenses[0].consumption_configuration.provisional_configuration.max_time_to_live_in_minutes #=> Integer
|
2596
|
+
# resp.licenses[0].consumption_configuration.borrow_configuration.allow_early_check_in #=> Boolean
|
2597
|
+
# resp.licenses[0].consumption_configuration.borrow_configuration.max_time_to_live_in_minutes #=> Integer
|
2598
|
+
# resp.licenses[0].license_metadata #=> Array
|
2599
|
+
# resp.licenses[0].license_metadata[0].name #=> String
|
2600
|
+
# resp.licenses[0].license_metadata[0].value #=> String
|
2601
|
+
# resp.licenses[0].create_time #=> String
|
2602
|
+
# resp.licenses[0].version #=> String
|
2603
|
+
# resp.licenses[0].received_metadata.received_status #=> String, one of "PENDING_WORKFLOW", "PENDING_ACCEPT", "REJECTED", "ACTIVE", "FAILED_WORKFLOW", "DELETED", "DISABLED", "WORKFLOW_COMPLETED"
|
2604
|
+
# resp.licenses[0].received_metadata.received_status_reason #=> String
|
2605
|
+
# resp.licenses[0].received_metadata.allowed_operations #=> Array
|
2606
|
+
# resp.licenses[0].received_metadata.allowed_operations[0] #=> String, one of "CreateGrant", "CheckoutLicense", "CheckoutBorrowLicense", "CheckInLicense", "ExtendConsumptionLicense", "ListPurchasedLicenses", "CreateToken"
|
2607
|
+
# resp.next_token #=> String
|
2608
|
+
#
|
2609
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListReceivedLicensesForOrganization AWS API Documentation
|
2610
|
+
#
|
2611
|
+
# @overload list_received_licenses_for_organization(params = {})
|
2612
|
+
# @param [Hash] params ({})
|
2613
|
+
def list_received_licenses_for_organization(params = {}, options = {})
|
2614
|
+
req = build_request(:list_received_licenses_for_organization, params)
|
2615
|
+
req.send_request(options)
|
2616
|
+
end
|
2617
|
+
|
2469
2618
|
# Lists resources managed using Systems Manager inventory.
|
2470
2619
|
#
|
2471
2620
|
# @option params [Integer] :max_results
|
@@ -3008,7 +3157,7 @@ module Aws::LicenseManager
|
|
3008
3157
|
params: params,
|
3009
3158
|
config: config)
|
3010
3159
|
context[:gem_name] = 'aws-sdk-licensemanager'
|
3011
|
-
context[:gem_version] = '1.
|
3160
|
+
context[:gem_version] = '1.43.0'
|
3012
3161
|
Seahorse::Client::Request.new(handlers, context)
|
3013
3162
|
end
|
3014
3163
|
|
@@ -159,8 +159,12 @@ module Aws::LicenseManager
|
|
159
159
|
ListLicenseVersionsResponse = Shapes::StructureShape.new(name: 'ListLicenseVersionsResponse')
|
160
160
|
ListLicensesRequest = Shapes::StructureShape.new(name: 'ListLicensesRequest')
|
161
161
|
ListLicensesResponse = Shapes::StructureShape.new(name: 'ListLicensesResponse')
|
162
|
+
ListReceivedGrantsForOrganizationRequest = Shapes::StructureShape.new(name: 'ListReceivedGrantsForOrganizationRequest')
|
163
|
+
ListReceivedGrantsForOrganizationResponse = Shapes::StructureShape.new(name: 'ListReceivedGrantsForOrganizationResponse')
|
162
164
|
ListReceivedGrantsRequest = Shapes::StructureShape.new(name: 'ListReceivedGrantsRequest')
|
163
165
|
ListReceivedGrantsResponse = Shapes::StructureShape.new(name: 'ListReceivedGrantsResponse')
|
166
|
+
ListReceivedLicensesForOrganizationRequest = Shapes::StructureShape.new(name: 'ListReceivedLicensesForOrganizationRequest')
|
167
|
+
ListReceivedLicensesForOrganizationResponse = Shapes::StructureShape.new(name: 'ListReceivedLicensesForOrganizationResponse')
|
164
168
|
ListReceivedLicensesRequest = Shapes::StructureShape.new(name: 'ListReceivedLicensesRequest')
|
165
169
|
ListReceivedLicensesResponse = Shapes::StructureShape.new(name: 'ListReceivedLicensesResponse')
|
166
170
|
ListResourceInventoryRequest = Shapes::StructureShape.new(name: 'ListResourceInventoryRequest')
|
@@ -833,6 +837,16 @@ module Aws::LicenseManager
|
|
833
837
|
ListLicensesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
|
834
838
|
ListLicensesResponse.struct_class = Types::ListLicensesResponse
|
835
839
|
|
840
|
+
ListReceivedGrantsForOrganizationRequest.add_member(:license_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "LicenseArn"))
|
841
|
+
ListReceivedGrantsForOrganizationRequest.add_member(:filters, Shapes::ShapeRef.new(shape: FilterList, location_name: "Filters"))
|
842
|
+
ListReceivedGrantsForOrganizationRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
|
843
|
+
ListReceivedGrantsForOrganizationRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxSize100, location_name: "MaxResults"))
|
844
|
+
ListReceivedGrantsForOrganizationRequest.struct_class = Types::ListReceivedGrantsForOrganizationRequest
|
845
|
+
|
846
|
+
ListReceivedGrantsForOrganizationResponse.add_member(:grants, Shapes::ShapeRef.new(shape: GrantList, location_name: "Grants"))
|
847
|
+
ListReceivedGrantsForOrganizationResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
|
848
|
+
ListReceivedGrantsForOrganizationResponse.struct_class = Types::ListReceivedGrantsForOrganizationResponse
|
849
|
+
|
836
850
|
ListReceivedGrantsRequest.add_member(:grant_arns, Shapes::ShapeRef.new(shape: ArnList, location_name: "GrantArns"))
|
837
851
|
ListReceivedGrantsRequest.add_member(:filters, Shapes::ShapeRef.new(shape: FilterList, location_name: "Filters"))
|
838
852
|
ListReceivedGrantsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
|
@@ -843,6 +857,15 @@ module Aws::LicenseManager
|
|
843
857
|
ListReceivedGrantsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
|
844
858
|
ListReceivedGrantsResponse.struct_class = Types::ListReceivedGrantsResponse
|
845
859
|
|
860
|
+
ListReceivedLicensesForOrganizationRequest.add_member(:filters, Shapes::ShapeRef.new(shape: FilterList, location_name: "Filters"))
|
861
|
+
ListReceivedLicensesForOrganizationRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
|
862
|
+
ListReceivedLicensesForOrganizationRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxSize100, location_name: "MaxResults"))
|
863
|
+
ListReceivedLicensesForOrganizationRequest.struct_class = Types::ListReceivedLicensesForOrganizationRequest
|
864
|
+
|
865
|
+
ListReceivedLicensesForOrganizationResponse.add_member(:licenses, Shapes::ShapeRef.new(shape: GrantedLicenseList, location_name: "Licenses"))
|
866
|
+
ListReceivedLicensesForOrganizationResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
|
867
|
+
ListReceivedLicensesForOrganizationResponse.struct_class = Types::ListReceivedLicensesForOrganizationResponse
|
868
|
+
|
846
869
|
ListReceivedLicensesRequest.add_member(:license_arns, Shapes::ShapeRef.new(shape: ArnList, location_name: "LicenseArns"))
|
847
870
|
ListReceivedLicensesRequest.add_member(:filters, Shapes::ShapeRef.new(shape: FilterList, location_name: "Filters"))
|
848
871
|
ListReceivedLicensesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
|
@@ -1620,6 +1643,21 @@ module Aws::LicenseManager
|
|
1620
1643
|
o.errors << Shapes::ShapeRef.new(shape: RateLimitExceededException)
|
1621
1644
|
end)
|
1622
1645
|
|
1646
|
+
api.add_operation(:list_received_grants_for_organization, Seahorse::Model::Operation.new.tap do |o|
|
1647
|
+
o.name = "ListReceivedGrantsForOrganization"
|
1648
|
+
o.http_method = "POST"
|
1649
|
+
o.http_request_uri = "/"
|
1650
|
+
o.input = Shapes::ShapeRef.new(shape: ListReceivedGrantsForOrganizationRequest)
|
1651
|
+
o.output = Shapes::ShapeRef.new(shape: ListReceivedGrantsForOrganizationResponse)
|
1652
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
1653
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
1654
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceLimitExceededException)
|
1655
|
+
o.errors << Shapes::ShapeRef.new(shape: ServerInternalException)
|
1656
|
+
o.errors << Shapes::ShapeRef.new(shape: AuthorizationException)
|
1657
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
1658
|
+
o.errors << Shapes::ShapeRef.new(shape: RateLimitExceededException)
|
1659
|
+
end)
|
1660
|
+
|
1623
1661
|
api.add_operation(:list_received_licenses, Seahorse::Model::Operation.new.tap do |o|
|
1624
1662
|
o.name = "ListReceivedLicenses"
|
1625
1663
|
o.http_method = "POST"
|
@@ -1635,6 +1673,21 @@ module Aws::LicenseManager
|
|
1635
1673
|
o.errors << Shapes::ShapeRef.new(shape: RateLimitExceededException)
|
1636
1674
|
end)
|
1637
1675
|
|
1676
|
+
api.add_operation(:list_received_licenses_for_organization, Seahorse::Model::Operation.new.tap do |o|
|
1677
|
+
o.name = "ListReceivedLicensesForOrganization"
|
1678
|
+
o.http_method = "POST"
|
1679
|
+
o.http_request_uri = "/"
|
1680
|
+
o.input = Shapes::ShapeRef.new(shape: ListReceivedLicensesForOrganizationRequest)
|
1681
|
+
o.output = Shapes::ShapeRef.new(shape: ListReceivedLicensesForOrganizationResponse)
|
1682
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
1683
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValueException)
|
1684
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceLimitExceededException)
|
1685
|
+
o.errors << Shapes::ShapeRef.new(shape: ServerInternalException)
|
1686
|
+
o.errors << Shapes::ShapeRef.new(shape: AuthorizationException)
|
1687
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
1688
|
+
o.errors << Shapes::ShapeRef.new(shape: RateLimitExceededException)
|
1689
|
+
end)
|
1690
|
+
|
1638
1691
|
api.add_operation(:list_resource_inventory, Seahorse::Model::Operation.new.tap do |o|
|
1639
1692
|
o.name = "ListResourceInventory"
|
1640
1693
|
o.http_method = "POST"
|
@@ -9,104 +9,43 @@
|
|
9
9
|
|
10
10
|
module Aws::LicenseManager
|
11
11
|
class EndpointProvider
|
12
|
-
def
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
12
|
+
def resolve_endpoint(parameters)
|
13
|
+
region = parameters.region
|
14
|
+
use_dual_stack = parameters.use_dual_stack
|
15
|
+
use_fips = parameters.use_fips
|
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://license-manager-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
|
33
|
+
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://license-manager-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
36
|
+
end
|
37
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
38
|
+
end
|
39
|
+
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://license-manager.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
42
|
+
end
|
43
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
44
|
+
end
|
45
|
+
return Aws::Endpoints::Endpoint.new(url: "https://license-manager.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
21
46
|
end
|
22
|
-
|
23
|
-
end
|
47
|
+
raise ArgumentError, 'No endpoint could be resolved'
|
24
48
|
|
25
|
-
def resolve_endpoint(parameters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ljZW5zZS1tYW5hZ2VyLntSZWdpb259LntQYXJ0aXRpb25S
|
107
|
-
ZXN1bHQjZG5zU3VmZml4fSIsInByb3BlcnRpZXMiOnt9LCJoZWFkZXJzIjp7
|
108
|
-
fX0sInR5cGUiOiJlbmRwb2ludCJ9XX1dfQ==
|
109
|
-
|
110
|
-
JSON
|
111
50
|
end
|
112
51
|
end
|
@@ -515,6 +515,20 @@ module Aws::LicenseManager
|
|
515
515
|
end
|
516
516
|
end
|
517
517
|
|
518
|
+
class ListReceivedGrantsForOrganization
|
519
|
+
def self.build(context)
|
520
|
+
unless context.config.regional_endpoint
|
521
|
+
endpoint = context.config.endpoint.to_s
|
522
|
+
end
|
523
|
+
Aws::LicenseManager::EndpointParameters.new(
|
524
|
+
region: context.config.region,
|
525
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
526
|
+
use_fips: context.config.use_fips_endpoint,
|
527
|
+
endpoint: endpoint,
|
528
|
+
)
|
529
|
+
end
|
530
|
+
end
|
531
|
+
|
518
532
|
class ListReceivedLicenses
|
519
533
|
def self.build(context)
|
520
534
|
unless context.config.regional_endpoint
|
@@ -529,6 +543,20 @@ module Aws::LicenseManager
|
|
529
543
|
end
|
530
544
|
end
|
531
545
|
|
546
|
+
class ListReceivedLicensesForOrganization
|
547
|
+
def self.build(context)
|
548
|
+
unless context.config.regional_endpoint
|
549
|
+
endpoint = context.config.endpoint.to_s
|
550
|
+
end
|
551
|
+
Aws::LicenseManager::EndpointParameters.new(
|
552
|
+
region: context.config.region,
|
553
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
554
|
+
use_fips: context.config.use_fips_endpoint,
|
555
|
+
endpoint: endpoint,
|
556
|
+
)
|
557
|
+
end
|
558
|
+
end
|
559
|
+
|
532
560
|
class ListResourceInventory
|
533
561
|
def self.build(context)
|
534
562
|
unless context.config.regional_endpoint
|
@@ -128,8 +128,12 @@ module Aws::LicenseManager
|
|
128
128
|
Aws::LicenseManager::Endpoints::ListLicenses.build(context)
|
129
129
|
when :list_received_grants
|
130
130
|
Aws::LicenseManager::Endpoints::ListReceivedGrants.build(context)
|
131
|
+
when :list_received_grants_for_organization
|
132
|
+
Aws::LicenseManager::Endpoints::ListReceivedGrantsForOrganization.build(context)
|
131
133
|
when :list_received_licenses
|
132
134
|
Aws::LicenseManager::Endpoints::ListReceivedLicenses.build(context)
|
135
|
+
when :list_received_licenses_for_organization
|
136
|
+
Aws::LicenseManager::Endpoints::ListReceivedLicensesForOrganization.build(context)
|
133
137
|
when :list_resource_inventory
|
134
138
|
Aws::LicenseManager::Endpoints::ListResourceInventory.build(context)
|
135
139
|
when :list_tags_for_resource
|