aws-sdk-licensemanager 1.40.0 → 1.42.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-licensemanager/client.rb +172 -6
- data/lib/aws-sdk-licensemanager/client_api.rb +53 -0
- data/lib/aws-sdk-licensemanager/endpoint_parameters.rb +66 -0
- data/lib/aws-sdk-licensemanager/endpoint_provider.rb +112 -0
- data/lib/aws-sdk-licensemanager/endpoints.rb +715 -0
- data/lib/aws-sdk-licensemanager/plugins/endpoints.rb +168 -0
- data/lib/aws-sdk-licensemanager/types.rb +126 -4
- data/lib/aws-sdk-licensemanager.rb +5 -1
- metadata +8 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9aca18e3533b4cb5718247a78cf2ffec90ef538bacb14f6acdfc7862b864bdfa
|
4
|
+
data.tar.gz: 7ffd555e91ba73c4ad6f29211d4f5e2d3678aaa5dfbf8b84b759e437c065cb11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c1da4ff066ae8281023b2550f42bae53dbaa3b7a6e537a28e90a45870ce556de45f0c5b75e3f2cd2ebdf7cc98209da8e9134cb5b118c0197753fc0dc151f1a4
|
7
|
+
data.tar.gz: be4d164b9bc6c62579b1dc894065908c338d4d902363aabbc281fc8a384be55efa00cccab536bb9671e7ab8581f773d3a0df28d52200f54a829c3cf0a31c7645
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.42.0 (2022-11-11)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - AWS License Manager now supports onboarded Management Accounts or Delegated Admins to view granted licenses aggregated from all accounts in the organization.
|
8
|
+
|
9
|
+
1.41.0 (2022-10-25)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
4
14
|
1.40.0 (2022-02-24)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.42.0
|
@@ -30,7 +30,7 @@ require 'aws-sdk-core/plugins/http_checksum.rb'
|
|
30
30
|
require 'aws-sdk-core/plugins/checksum_algorithm.rb'
|
31
31
|
require 'aws-sdk-core/plugins/defaults_mode.rb'
|
32
32
|
require 'aws-sdk-core/plugins/recursion_detection.rb'
|
33
|
-
require 'aws-sdk-core/plugins/
|
33
|
+
require 'aws-sdk-core/plugins/sign.rb'
|
34
34
|
require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
|
35
35
|
|
36
36
|
Aws::Plugins::GlobalConfiguration.add_identifier(:licensemanager)
|
@@ -79,8 +79,9 @@ module Aws::LicenseManager
|
|
79
79
|
add_plugin(Aws::Plugins::ChecksumAlgorithm)
|
80
80
|
add_plugin(Aws::Plugins::DefaultsMode)
|
81
81
|
add_plugin(Aws::Plugins::RecursionDetection)
|
82
|
-
add_plugin(Aws::Plugins::
|
82
|
+
add_plugin(Aws::Plugins::Sign)
|
83
83
|
add_plugin(Aws::Plugins::Protocols::JsonRpc)
|
84
|
+
add_plugin(Aws::LicenseManager::Plugins::Endpoints)
|
84
85
|
|
85
86
|
# @overload initialize(options)
|
86
87
|
# @param [Hash] options
|
@@ -297,6 +298,19 @@ module Aws::LicenseManager
|
|
297
298
|
# ** Please note ** When response stubbing is enabled, no HTTP
|
298
299
|
# requests are made, and retries are disabled.
|
299
300
|
#
|
301
|
+
# @option options [Aws::TokenProvider] :token_provider
|
302
|
+
# A Bearer Token Provider. This can be an instance of any one of the
|
303
|
+
# following classes:
|
304
|
+
#
|
305
|
+
# * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
|
306
|
+
# tokens.
|
307
|
+
#
|
308
|
+
# * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
|
309
|
+
# access token generated from `aws login`.
|
310
|
+
#
|
311
|
+
# When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
|
312
|
+
# will be used to search for tokens configured for your profile in shared configuration files.
|
313
|
+
#
|
300
314
|
# @option options [Boolean] :use_dualstack_endpoint
|
301
315
|
# When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
|
302
316
|
# will be used if available.
|
@@ -310,6 +324,9 @@ module Aws::LicenseManager
|
|
310
324
|
# When `true`, request parameters are validated before
|
311
325
|
# sending the request.
|
312
326
|
#
|
327
|
+
# @option options [Aws::LicenseManager::EndpointProvider] :endpoint_provider
|
328
|
+
# The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::LicenseManager::EndpointParameters`
|
329
|
+
#
|
313
330
|
# @option options [URI::HTTP,String] :http_proxy A proxy to send
|
314
331
|
# requests through. Formatted like 'http://proxy.com:123'.
|
315
332
|
#
|
@@ -508,6 +525,11 @@ module Aws::LicenseManager
|
|
508
525
|
|
509
526
|
# Checks out the specified license.
|
510
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
|
+
#
|
511
533
|
# @option params [required, String] :product_sku
|
512
534
|
# Product SKU.
|
513
535
|
#
|
@@ -596,7 +618,8 @@ module Aws::LicenseManager
|
|
596
618
|
# Amazon Resource Name (ARN) of the license.
|
597
619
|
#
|
598
620
|
# @option params [required, Array<String>] :principals
|
599
|
-
# The grant principals.
|
621
|
+
# The grant principals. This value should be specified as an Amazon
|
622
|
+
# Resource Name (ARN).
|
600
623
|
#
|
601
624
|
# @option params [required, String] :home_region
|
602
625
|
# Home Region of the grant.
|
@@ -912,7 +935,8 @@ module Aws::LicenseManager
|
|
912
935
|
# @option params [required, Types::LicenseConversionContext] :source_license_context
|
913
936
|
# Information that identifies the license type you are converting from.
|
914
937
|
# For the structure of the source license, see [Convert a license type
|
915
|
-
# using the
|
938
|
+
# using the Amazon Web Services CLI][1] in the *License Manager User
|
939
|
+
# Guide*.
|
916
940
|
#
|
917
941
|
#
|
918
942
|
#
|
@@ -921,7 +945,8 @@ module Aws::LicenseManager
|
|
921
945
|
# @option params [required, Types::LicenseConversionContext] :destination_license_context
|
922
946
|
# Information that identifies the license type you are converting to.
|
923
947
|
# For the structure of the destination license, see [Convert a license
|
924
|
-
# type using the
|
948
|
+
# type using the Amazon Web Services CLI][1] in the *License Manager
|
949
|
+
# User Guide*.
|
925
950
|
#
|
926
951
|
#
|
927
952
|
#
|
@@ -2360,6 +2385,68 @@ module Aws::LicenseManager
|
|
2360
2385
|
req.send_request(options)
|
2361
2386
|
end
|
2362
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
|
+
|
2363
2450
|
# Lists received licenses.
|
2364
2451
|
#
|
2365
2452
|
# @option params [Array<String>] :license_arns
|
@@ -2449,6 +2536,85 @@ module Aws::LicenseManager
|
|
2449
2536
|
req.send_request(options)
|
2450
2537
|
end
|
2451
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
|
+
|
2452
2618
|
# Lists resources managed using Systems Manager inventory.
|
2453
2619
|
#
|
2454
2620
|
# @option params [Integer] :max_results
|
@@ -2991,7 +3157,7 @@ module Aws::LicenseManager
|
|
2991
3157
|
params: params,
|
2992
3158
|
config: config)
|
2993
3159
|
context[:gem_name] = 'aws-sdk-licensemanager'
|
2994
|
-
context[:gem_version] = '1.
|
3160
|
+
context[:gem_version] = '1.42.0'
|
2995
3161
|
Seahorse::Client::Request.new(handlers, context)
|
2996
3162
|
end
|
2997
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"
|
@@ -0,0 +1,66 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
module Aws::LicenseManager
|
11
|
+
# Endpoint parameters used to influence endpoints per request.
|
12
|
+
#
|
13
|
+
# @!attribute region
|
14
|
+
# The AWS region used to dispatch the request.
|
15
|
+
#
|
16
|
+
# @return [String]
|
17
|
+
#
|
18
|
+
# @!attribute use_dual_stack
|
19
|
+
# When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
|
20
|
+
#
|
21
|
+
# @return [Boolean]
|
22
|
+
#
|
23
|
+
# @!attribute use_fips
|
24
|
+
# When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
|
25
|
+
#
|
26
|
+
# @return [Boolean]
|
27
|
+
#
|
28
|
+
# @!attribute endpoint
|
29
|
+
# Override the endpoint used to send this request
|
30
|
+
#
|
31
|
+
# @return [String]
|
32
|
+
#
|
33
|
+
EndpointParameters = Struct.new(
|
34
|
+
:region,
|
35
|
+
:use_dual_stack,
|
36
|
+
:use_fips,
|
37
|
+
:endpoint,
|
38
|
+
) do
|
39
|
+
include Aws::Structure
|
40
|
+
|
41
|
+
# @api private
|
42
|
+
class << self
|
43
|
+
PARAM_MAP = {
|
44
|
+
'Region' => :region,
|
45
|
+
'UseDualStack' => :use_dual_stack,
|
46
|
+
'UseFIPS' => :use_fips,
|
47
|
+
'Endpoint' => :endpoint,
|
48
|
+
}.freeze
|
49
|
+
end
|
50
|
+
|
51
|
+
def initialize(options = {})
|
52
|
+
self[:region] = options[:region]
|
53
|
+
self[:use_dual_stack] = options[:use_dual_stack]
|
54
|
+
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
55
|
+
if self[:use_dual_stack].nil?
|
56
|
+
raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
|
57
|
+
end
|
58
|
+
self[:use_fips] = options[:use_fips]
|
59
|
+
self[:use_fips] = false if self[:use_fips].nil?
|
60
|
+
if self[:use_fips].nil?
|
61
|
+
raise ArgumentError, "Missing required EndpointParameter: :use_fips"
|
62
|
+
end
|
63
|
+
self[:endpoint] = options[:endpoint]
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
@@ -0,0 +1,112 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
module Aws::LicenseManager
|
11
|
+
class EndpointProvider
|
12
|
+
def initialize(rule_set = nil)
|
13
|
+
@@rule_set ||= begin
|
14
|
+
endpoint_rules = Aws::Json.load(Base64.decode64(RULES))
|
15
|
+
Aws::Endpoints::RuleSet.new(
|
16
|
+
version: endpoint_rules['version'],
|
17
|
+
service_id: endpoint_rules['serviceId'],
|
18
|
+
parameters: endpoint_rules['parameters'],
|
19
|
+
rules: endpoint_rules['rules']
|
20
|
+
)
|
21
|
+
end
|
22
|
+
@provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
|
23
|
+
end
|
24
|
+
|
25
|
+
def resolve_endpoint(parameters)
|
26
|
+
@provider.resolve_endpoint(parameters)
|
27
|
+
end
|
28
|
+
|
29
|
+
# @api private
|
30
|
+
RULES = <<-JSON
|
31
|
+
eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
|
32
|
+
bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOmZhbHNlLCJkb2N1bWVu
|
33
|
+
dGF0aW9uIjoiVGhlIEFXUyByZWdpb24gdXNlZCB0byBkaXNwYXRjaCB0aGUg
|
34
|
+
cmVxdWVzdC4iLCJ0eXBlIjoiU3RyaW5nIn0sIlVzZUR1YWxTdGFjayI6eyJi
|
35
|
+
dWlsdEluIjoiQVdTOjpVc2VEdWFsU3RhY2siLCJyZXF1aXJlZCI6dHJ1ZSwi
|
36
|
+
ZGVmYXVsdCI6ZmFsc2UsImRvY3VtZW50YXRpb24iOiJXaGVuIHRydWUsIHVz
|
37
|
+
ZSB0aGUgZHVhbC1zdGFjayBlbmRwb2ludC4gSWYgdGhlIGNvbmZpZ3VyZWQg
|
38
|
+
ZW5kcG9pb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