aws-sdk-licensemanager 1.19.0 → 1.24.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-licensemanager.rb +2 -2
- data/lib/aws-sdk-licensemanager/client.rb +1383 -17
- data/lib/aws-sdk-licensemanager/client_api.rb +870 -0
- data/lib/aws-sdk-licensemanager/errors.rb +122 -0
- data/lib/aws-sdk-licensemanager/types.rb +2301 -82
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 78513466b6b889ce6a494898f7be0f45e4c1e9d8dd7dd8463207e0f4cad6401d
|
4
|
+
data.tar.gz: 2a080b29335d62764e75b029a0fe37bde355b5c0c73ad26bbbf3f099761ee29f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0d16e86cfb2ea4028ef8789dc66925e0bca1158b434f365389d0cb88e7469d016b18cf29f6d2e11d93e426d072c2912820756605aea2d36742824c08243b264
|
7
|
+
data.tar.gz: 40462cc8d569721376fa72cf20754b440d3b179a45f3f0ce9129520c3da09d0a33eec1bba63f057db1f86b1186ad7f5ca9f306889901f84ee661d48c807e002b
|
@@ -28,7 +28,7 @@ require_relative 'aws-sdk-licensemanager/customizations'
|
|
28
28
|
# structure.
|
29
29
|
#
|
30
30
|
# license_manager = Aws::LicenseManager::Client.new
|
31
|
-
# resp = license_manager.
|
31
|
+
# resp = license_manager.accept_grant(params)
|
32
32
|
#
|
33
33
|
# See {Client} for more information.
|
34
34
|
#
|
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-licensemanager/customizations'
|
|
48
48
|
# @!group service
|
49
49
|
module Aws::LicenseManager
|
50
50
|
|
51
|
-
GEM_VERSION = '1.
|
51
|
+
GEM_VERSION = '1.24.0'
|
52
52
|
|
53
53
|
end
|
@@ -337,6 +337,437 @@ module Aws::LicenseManager
|
|
337
337
|
|
338
338
|
# @!group API Operations
|
339
339
|
|
340
|
+
# Accepts the specified grant.
|
341
|
+
#
|
342
|
+
# @option params [required, String] :grant_arn
|
343
|
+
# Amazon Resource Name (ARN) of the grant.
|
344
|
+
#
|
345
|
+
# @return [Types::AcceptGrantResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
346
|
+
#
|
347
|
+
# * {Types::AcceptGrantResponse#grant_arn #grant_arn} => String
|
348
|
+
# * {Types::AcceptGrantResponse#status #status} => String
|
349
|
+
# * {Types::AcceptGrantResponse#version #version} => String
|
350
|
+
#
|
351
|
+
# @example Request syntax with placeholder values
|
352
|
+
#
|
353
|
+
# resp = client.accept_grant({
|
354
|
+
# grant_arn: "Arn", # required
|
355
|
+
# })
|
356
|
+
#
|
357
|
+
# @example Response structure
|
358
|
+
#
|
359
|
+
# resp.grant_arn #=> String
|
360
|
+
# resp.status #=> String, one of "PENDING_WORKFLOW", "PENDING_ACCEPT", "REJECTED", "ACTIVE", "FAILED_WORKFLOW", "DELETED", "PENDING_DELETE", "DISABLED"
|
361
|
+
# resp.version #=> String
|
362
|
+
#
|
363
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/AcceptGrant AWS API Documentation
|
364
|
+
#
|
365
|
+
# @overload accept_grant(params = {})
|
366
|
+
# @param [Hash] params ({})
|
367
|
+
def accept_grant(params = {}, options = {})
|
368
|
+
req = build_request(:accept_grant, params)
|
369
|
+
req.send_request(options)
|
370
|
+
end
|
371
|
+
|
372
|
+
# Checks in the specified license. Check in a license when it is no
|
373
|
+
# longer in use.
|
374
|
+
#
|
375
|
+
# @option params [required, String] :license_consumption_token
|
376
|
+
# License consumption token.
|
377
|
+
#
|
378
|
+
# @option params [String] :beneficiary
|
379
|
+
# License beneficiary.
|
380
|
+
#
|
381
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
382
|
+
#
|
383
|
+
# @example Request syntax with placeholder values
|
384
|
+
#
|
385
|
+
# resp = client.check_in_license({
|
386
|
+
# license_consumption_token: "String", # required
|
387
|
+
# beneficiary: "String",
|
388
|
+
# })
|
389
|
+
#
|
390
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/CheckInLicense AWS API Documentation
|
391
|
+
#
|
392
|
+
# @overload check_in_license(params = {})
|
393
|
+
# @param [Hash] params ({})
|
394
|
+
def check_in_license(params = {}, options = {})
|
395
|
+
req = build_request(:check_in_license, params)
|
396
|
+
req.send_request(options)
|
397
|
+
end
|
398
|
+
|
399
|
+
# Checks out the specified license for offline use.
|
400
|
+
#
|
401
|
+
# @option params [required, String] :license_arn
|
402
|
+
# Amazon Resource Name (ARN) of the license. The license must use the
|
403
|
+
# borrow consumption configuration.
|
404
|
+
#
|
405
|
+
# @option params [required, Array<Types::EntitlementData>] :entitlements
|
406
|
+
# License entitlements. Partial checkouts are not supported.
|
407
|
+
#
|
408
|
+
# @option params [required, String] :digital_signature_method
|
409
|
+
# Digital signature method. The possible value is JSON Web Signature
|
410
|
+
# (JWS) algorithm PS384. For more information, see [RFC 7518 Digital
|
411
|
+
# Signature with RSASSA-PSS][1].
|
412
|
+
#
|
413
|
+
#
|
414
|
+
#
|
415
|
+
# [1]: https://tools.ietf.org/html/rfc7518#section-3.5
|
416
|
+
#
|
417
|
+
# @option params [String] :node_id
|
418
|
+
# Node ID.
|
419
|
+
#
|
420
|
+
# @option params [Array<Types::Metadata>] :checkout_metadata
|
421
|
+
# Information about constraints.
|
422
|
+
#
|
423
|
+
# @option params [required, String] :client_token
|
424
|
+
# Unique, case-sensitive identifier that you provide to ensure the
|
425
|
+
# idempotency of the request.
|
426
|
+
#
|
427
|
+
# @return [Types::CheckoutBorrowLicenseResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
428
|
+
#
|
429
|
+
# * {Types::CheckoutBorrowLicenseResponse#license_arn #license_arn} => String
|
430
|
+
# * {Types::CheckoutBorrowLicenseResponse#license_consumption_token #license_consumption_token} => String
|
431
|
+
# * {Types::CheckoutBorrowLicenseResponse#entitlements_allowed #entitlements_allowed} => Array<Types::EntitlementData>
|
432
|
+
# * {Types::CheckoutBorrowLicenseResponse#node_id #node_id} => String
|
433
|
+
# * {Types::CheckoutBorrowLicenseResponse#signed_token #signed_token} => String
|
434
|
+
# * {Types::CheckoutBorrowLicenseResponse#issued_at #issued_at} => String
|
435
|
+
# * {Types::CheckoutBorrowLicenseResponse#expiration #expiration} => String
|
436
|
+
# * {Types::CheckoutBorrowLicenseResponse#checkout_metadata #checkout_metadata} => Array<Types::Metadata>
|
437
|
+
#
|
438
|
+
# @example Request syntax with placeholder values
|
439
|
+
#
|
440
|
+
# resp = client.checkout_borrow_license({
|
441
|
+
# license_arn: "Arn", # required
|
442
|
+
# entitlements: [ # required
|
443
|
+
# {
|
444
|
+
# name: "String", # required
|
445
|
+
# value: "String",
|
446
|
+
# unit: "Count", # required, accepts 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
|
447
|
+
# },
|
448
|
+
# ],
|
449
|
+
# digital_signature_method: "JWT_PS384", # required, accepts JWT_PS384
|
450
|
+
# node_id: "String",
|
451
|
+
# checkout_metadata: [
|
452
|
+
# {
|
453
|
+
# name: "String",
|
454
|
+
# value: "String",
|
455
|
+
# },
|
456
|
+
# ],
|
457
|
+
# client_token: "ClientToken", # required
|
458
|
+
# })
|
459
|
+
#
|
460
|
+
# @example Response structure
|
461
|
+
#
|
462
|
+
# resp.license_arn #=> String
|
463
|
+
# resp.license_consumption_token #=> String
|
464
|
+
# resp.entitlements_allowed #=> Array
|
465
|
+
# resp.entitlements_allowed[0].name #=> String
|
466
|
+
# resp.entitlements_allowed[0].value #=> String
|
467
|
+
# resp.entitlements_allowed[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"
|
468
|
+
# resp.node_id #=> String
|
469
|
+
# resp.signed_token #=> String
|
470
|
+
# resp.issued_at #=> String
|
471
|
+
# resp.expiration #=> String
|
472
|
+
# resp.checkout_metadata #=> Array
|
473
|
+
# resp.checkout_metadata[0].name #=> String
|
474
|
+
# resp.checkout_metadata[0].value #=> String
|
475
|
+
#
|
476
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/CheckoutBorrowLicense AWS API Documentation
|
477
|
+
#
|
478
|
+
# @overload checkout_borrow_license(params = {})
|
479
|
+
# @param [Hash] params ({})
|
480
|
+
def checkout_borrow_license(params = {}, options = {})
|
481
|
+
req = build_request(:checkout_borrow_license, params)
|
482
|
+
req.send_request(options)
|
483
|
+
end
|
484
|
+
|
485
|
+
# Checks out the specified license.
|
486
|
+
#
|
487
|
+
# @option params [required, String] :product_sku
|
488
|
+
# Product SKU.
|
489
|
+
#
|
490
|
+
# @option params [required, String] :checkout_type
|
491
|
+
# Checkout type.
|
492
|
+
#
|
493
|
+
# @option params [required, String] :key_fingerprint
|
494
|
+
# Key fingerprint identifying the license.
|
495
|
+
#
|
496
|
+
# @option params [required, Array<Types::EntitlementData>] :entitlements
|
497
|
+
# License entitlements.
|
498
|
+
#
|
499
|
+
# @option params [required, String] :client_token
|
500
|
+
# Unique, case-sensitive identifier that you provide to ensure the
|
501
|
+
# idempotency of the request.
|
502
|
+
#
|
503
|
+
# @option params [String] :beneficiary
|
504
|
+
# License beneficiary.
|
505
|
+
#
|
506
|
+
# @option params [String] :node_id
|
507
|
+
# Node ID.
|
508
|
+
#
|
509
|
+
# @return [Types::CheckoutLicenseResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
510
|
+
#
|
511
|
+
# * {Types::CheckoutLicenseResponse#checkout_type #checkout_type} => String
|
512
|
+
# * {Types::CheckoutLicenseResponse#license_consumption_token #license_consumption_token} => String
|
513
|
+
# * {Types::CheckoutLicenseResponse#entitlements_allowed #entitlements_allowed} => Array<Types::EntitlementData>
|
514
|
+
# * {Types::CheckoutLicenseResponse#signed_token #signed_token} => String
|
515
|
+
# * {Types::CheckoutLicenseResponse#node_id #node_id} => String
|
516
|
+
# * {Types::CheckoutLicenseResponse#issued_at #issued_at} => String
|
517
|
+
# * {Types::CheckoutLicenseResponse#expiration #expiration} => String
|
518
|
+
#
|
519
|
+
# @example Request syntax with placeholder values
|
520
|
+
#
|
521
|
+
# resp = client.checkout_license({
|
522
|
+
# product_sku: "String", # required
|
523
|
+
# checkout_type: "PROVISIONAL", # required, accepts PROVISIONAL
|
524
|
+
# key_fingerprint: "String", # required
|
525
|
+
# entitlements: [ # required
|
526
|
+
# {
|
527
|
+
# name: "String", # required
|
528
|
+
# value: "String",
|
529
|
+
# unit: "Count", # required, accepts 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
|
530
|
+
# },
|
531
|
+
# ],
|
532
|
+
# client_token: "ClientToken", # required
|
533
|
+
# beneficiary: "String",
|
534
|
+
# node_id: "String",
|
535
|
+
# })
|
536
|
+
#
|
537
|
+
# @example Response structure
|
538
|
+
#
|
539
|
+
# resp.checkout_type #=> String, one of "PROVISIONAL"
|
540
|
+
# resp.license_consumption_token #=> String
|
541
|
+
# resp.entitlements_allowed #=> Array
|
542
|
+
# resp.entitlements_allowed[0].name #=> String
|
543
|
+
# resp.entitlements_allowed[0].value #=> String
|
544
|
+
# resp.entitlements_allowed[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"
|
545
|
+
# resp.signed_token #=> String
|
546
|
+
# resp.node_id #=> String
|
547
|
+
# resp.issued_at #=> String
|
548
|
+
# resp.expiration #=> String
|
549
|
+
#
|
550
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/CheckoutLicense AWS API Documentation
|
551
|
+
#
|
552
|
+
# @overload checkout_license(params = {})
|
553
|
+
# @param [Hash] params ({})
|
554
|
+
def checkout_license(params = {}, options = {})
|
555
|
+
req = build_request(:checkout_license, params)
|
556
|
+
req.send_request(options)
|
557
|
+
end
|
558
|
+
|
559
|
+
# Creates a grant for the specified license. A grant shares the use of
|
560
|
+
# license entitlements with specific AWS accounts.
|
561
|
+
#
|
562
|
+
# @option params [required, String] :client_token
|
563
|
+
# Unique, case-sensitive identifier that you provide to ensure the
|
564
|
+
# idempotency of the request.
|
565
|
+
#
|
566
|
+
# @option params [required, String] :grant_name
|
567
|
+
# Grant name.
|
568
|
+
#
|
569
|
+
# @option params [required, String] :license_arn
|
570
|
+
# Amazon Resource Name (ARN) of the license.
|
571
|
+
#
|
572
|
+
# @option params [required, Array<String>] :principals
|
573
|
+
# The grant principals.
|
574
|
+
#
|
575
|
+
# @option params [required, String] :home_region
|
576
|
+
# Home Region of the grant.
|
577
|
+
#
|
578
|
+
# @option params [required, Array<String>] :allowed_operations
|
579
|
+
# Allowed operations for the grant.
|
580
|
+
#
|
581
|
+
# @return [Types::CreateGrantResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
582
|
+
#
|
583
|
+
# * {Types::CreateGrantResponse#grant_arn #grant_arn} => String
|
584
|
+
# * {Types::CreateGrantResponse#status #status} => String
|
585
|
+
# * {Types::CreateGrantResponse#version #version} => String
|
586
|
+
#
|
587
|
+
# @example Request syntax with placeholder values
|
588
|
+
#
|
589
|
+
# resp = client.create_grant({
|
590
|
+
# client_token: "String", # required
|
591
|
+
# grant_name: "String", # required
|
592
|
+
# license_arn: "Arn", # required
|
593
|
+
# principals: ["Arn"], # required
|
594
|
+
# home_region: "String", # required
|
595
|
+
# allowed_operations: ["CreateGrant"], # required, accepts CreateGrant, CheckoutLicense, CheckoutBorrowLicense, CheckInLicense, ExtendConsumptionLicense, ListPurchasedLicenses, CreateToken
|
596
|
+
# })
|
597
|
+
#
|
598
|
+
# @example Response structure
|
599
|
+
#
|
600
|
+
# resp.grant_arn #=> String
|
601
|
+
# resp.status #=> String, one of "PENDING_WORKFLOW", "PENDING_ACCEPT", "REJECTED", "ACTIVE", "FAILED_WORKFLOW", "DELETED", "PENDING_DELETE", "DISABLED"
|
602
|
+
# resp.version #=> String
|
603
|
+
#
|
604
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/CreateGrant AWS API Documentation
|
605
|
+
#
|
606
|
+
# @overload create_grant(params = {})
|
607
|
+
# @param [Hash] params ({})
|
608
|
+
def create_grant(params = {}, options = {})
|
609
|
+
req = build_request(:create_grant, params)
|
610
|
+
req.send_request(options)
|
611
|
+
end
|
612
|
+
|
613
|
+
# Creates a new version of the specified grant.
|
614
|
+
#
|
615
|
+
# @option params [required, String] :client_token
|
616
|
+
# Unique, case-sensitive identifier that you provide to ensure the
|
617
|
+
# idempotency of the request.
|
618
|
+
#
|
619
|
+
# @option params [required, String] :grant_arn
|
620
|
+
# Amazon Resource Name (ARN) of the grant.
|
621
|
+
#
|
622
|
+
# @option params [String] :grant_name
|
623
|
+
# Grant name.
|
624
|
+
#
|
625
|
+
# @option params [Array<String>] :allowed_operations
|
626
|
+
# Allowed operations for the grant.
|
627
|
+
#
|
628
|
+
# @option params [String] :status
|
629
|
+
# Grant status.
|
630
|
+
#
|
631
|
+
# @option params [String] :source_version
|
632
|
+
# Current version of the grant.
|
633
|
+
#
|
634
|
+
# @return [Types::CreateGrantVersionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
635
|
+
#
|
636
|
+
# * {Types::CreateGrantVersionResponse#grant_arn #grant_arn} => String
|
637
|
+
# * {Types::CreateGrantVersionResponse#status #status} => String
|
638
|
+
# * {Types::CreateGrantVersionResponse#version #version} => String
|
639
|
+
#
|
640
|
+
# @example Request syntax with placeholder values
|
641
|
+
#
|
642
|
+
# resp = client.create_grant_version({
|
643
|
+
# client_token: "String", # required
|
644
|
+
# grant_arn: "Arn", # required
|
645
|
+
# grant_name: "String",
|
646
|
+
# allowed_operations: ["CreateGrant"], # accepts CreateGrant, CheckoutLicense, CheckoutBorrowLicense, CheckInLicense, ExtendConsumptionLicense, ListPurchasedLicenses, CreateToken
|
647
|
+
# status: "PENDING_WORKFLOW", # accepts PENDING_WORKFLOW, PENDING_ACCEPT, REJECTED, ACTIVE, FAILED_WORKFLOW, DELETED, PENDING_DELETE, DISABLED
|
648
|
+
# source_version: "String",
|
649
|
+
# })
|
650
|
+
#
|
651
|
+
# @example Response structure
|
652
|
+
#
|
653
|
+
# resp.grant_arn #=> String
|
654
|
+
# resp.status #=> String, one of "PENDING_WORKFLOW", "PENDING_ACCEPT", "REJECTED", "ACTIVE", "FAILED_WORKFLOW", "DELETED", "PENDING_DELETE", "DISABLED"
|
655
|
+
# resp.version #=> String
|
656
|
+
#
|
657
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/CreateGrantVersion AWS API Documentation
|
658
|
+
#
|
659
|
+
# @overload create_grant_version(params = {})
|
660
|
+
# @param [Hash] params ({})
|
661
|
+
def create_grant_version(params = {}, options = {})
|
662
|
+
req = build_request(:create_grant_version, params)
|
663
|
+
req.send_request(options)
|
664
|
+
end
|
665
|
+
|
666
|
+
# Creates a license.
|
667
|
+
#
|
668
|
+
# @option params [required, String] :license_name
|
669
|
+
# License name.
|
670
|
+
#
|
671
|
+
# @option params [required, String] :product_name
|
672
|
+
# Product name.
|
673
|
+
#
|
674
|
+
# @option params [required, String] :product_sku
|
675
|
+
# Product SKU.
|
676
|
+
#
|
677
|
+
# @option params [required, Types::Issuer] :issuer
|
678
|
+
# License issuer.
|
679
|
+
#
|
680
|
+
# @option params [required, String] :home_region
|
681
|
+
# Home Region for the license.
|
682
|
+
#
|
683
|
+
# @option params [required, Types::DatetimeRange] :validity
|
684
|
+
# Date and time range during which the license is valid, in ISO8601-UTC
|
685
|
+
# format.
|
686
|
+
#
|
687
|
+
# @option params [required, Array<Types::Entitlement>] :entitlements
|
688
|
+
# License entitlements.
|
689
|
+
#
|
690
|
+
# @option params [required, String] :beneficiary
|
691
|
+
# License beneficiary.
|
692
|
+
#
|
693
|
+
# @option params [required, Types::ConsumptionConfiguration] :consumption_configuration
|
694
|
+
# Configuration for consumption of the license. Choose a provisional
|
695
|
+
# configuration for workloads running with continuous connectivity.
|
696
|
+
# Choose a borrow configuration for workloads with offline usage.
|
697
|
+
#
|
698
|
+
# @option params [Array<Types::Metadata>] :license_metadata
|
699
|
+
# Information about the license.
|
700
|
+
#
|
701
|
+
# @option params [required, String] :client_token
|
702
|
+
# Unique, case-sensitive identifier that you provide to ensure the
|
703
|
+
# idempotency of the request.
|
704
|
+
#
|
705
|
+
# @return [Types::CreateLicenseResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
706
|
+
#
|
707
|
+
# * {Types::CreateLicenseResponse#license_arn #license_arn} => String
|
708
|
+
# * {Types::CreateLicenseResponse#status #status} => String
|
709
|
+
# * {Types::CreateLicenseResponse#version #version} => String
|
710
|
+
#
|
711
|
+
# @example Request syntax with placeholder values
|
712
|
+
#
|
713
|
+
# resp = client.create_license({
|
714
|
+
# license_name: "String", # required
|
715
|
+
# product_name: "String", # required
|
716
|
+
# product_sku: "String", # required
|
717
|
+
# issuer: { # required
|
718
|
+
# name: "String", # required
|
719
|
+
# sign_key: "String",
|
720
|
+
# },
|
721
|
+
# home_region: "String", # required
|
722
|
+
# validity: { # required
|
723
|
+
# begin: "ISO8601DateTime", # required
|
724
|
+
# end: "ISO8601DateTime",
|
725
|
+
# },
|
726
|
+
# entitlements: [ # required
|
727
|
+
# {
|
728
|
+
# name: "String", # required
|
729
|
+
# value: "String",
|
730
|
+
# max_count: 1,
|
731
|
+
# overage: false,
|
732
|
+
# unit: "Count", # required, accepts 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
|
733
|
+
# allow_check_in: false,
|
734
|
+
# },
|
735
|
+
# ],
|
736
|
+
# beneficiary: "String", # required
|
737
|
+
# consumption_configuration: { # required
|
738
|
+
# renew_type: "None", # accepts None, Weekly, Monthly
|
739
|
+
# provisional_configuration: {
|
740
|
+
# max_time_to_live_in_minutes: 1, # required
|
741
|
+
# },
|
742
|
+
# borrow_configuration: {
|
743
|
+
# allow_early_check_in: false, # required
|
744
|
+
# max_time_to_live_in_minutes: 1, # required
|
745
|
+
# },
|
746
|
+
# },
|
747
|
+
# license_metadata: [
|
748
|
+
# {
|
749
|
+
# name: "String",
|
750
|
+
# value: "String",
|
751
|
+
# },
|
752
|
+
# ],
|
753
|
+
# client_token: "String", # required
|
754
|
+
# })
|
755
|
+
#
|
756
|
+
# @example Response structure
|
757
|
+
#
|
758
|
+
# resp.license_arn #=> String
|
759
|
+
# resp.status #=> String, one of "AVAILABLE", "PENDING_AVAILABLE", "DEACTIVATED", "SUSPENDED", "EXPIRED", "PENDING_DELETE", "DELETED"
|
760
|
+
# resp.version #=> String
|
761
|
+
#
|
762
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/CreateLicense AWS API Documentation
|
763
|
+
#
|
764
|
+
# @overload create_license(params = {})
|
765
|
+
# @param [Hash] params ({})
|
766
|
+
def create_license(params = {}, options = {})
|
767
|
+
req = build_request(:create_license, params)
|
768
|
+
req.send_request(options)
|
769
|
+
end
|
770
|
+
|
340
771
|
# Creates a license configuration.
|
341
772
|
#
|
342
773
|
# A license configuration is an abstraction of a customer license
|
@@ -389,6 +820,9 @@ module Aws::LicenseManager
|
|
389
820
|
# @option params [Array<Types::Tag>] :tags
|
390
821
|
# Tags to add to the license configuration.
|
391
822
|
#
|
823
|
+
# @option params [Boolean] :disassociate_when_not_found
|
824
|
+
# When true, disassociates a resource when software is uninstalled.
|
825
|
+
#
|
392
826
|
# @option params [Array<Types::ProductInformation>] :product_information_list
|
393
827
|
# Product information.
|
394
828
|
#
|
@@ -411,6 +845,7 @@ module Aws::LicenseManager
|
|
411
845
|
# value: "String",
|
412
846
|
# },
|
413
847
|
# ],
|
848
|
+
# disassociate_when_not_found: false,
|
414
849
|
# product_information_list: [
|
415
850
|
# {
|
416
851
|
# resource_type: "String", # required
|
@@ -431,34 +866,463 @@ module Aws::LicenseManager
|
|
431
866
|
#
|
432
867
|
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/CreateLicenseConfiguration AWS API Documentation
|
433
868
|
#
|
434
|
-
# @overload create_license_configuration(params = {})
|
869
|
+
# @overload create_license_configuration(params = {})
|
870
|
+
# @param [Hash] params ({})
|
871
|
+
def create_license_configuration(params = {}, options = {})
|
872
|
+
req = build_request(:create_license_configuration, params)
|
873
|
+
req.send_request(options)
|
874
|
+
end
|
875
|
+
|
876
|
+
# Creates a new version of the specified license.
|
877
|
+
#
|
878
|
+
# @option params [required, String] :license_arn
|
879
|
+
# Amazon Resource Name (ARN) of the license.
|
880
|
+
#
|
881
|
+
# @option params [required, String] :license_name
|
882
|
+
# License name.
|
883
|
+
#
|
884
|
+
# @option params [required, String] :product_name
|
885
|
+
# Product name.
|
886
|
+
#
|
887
|
+
# @option params [required, Types::Issuer] :issuer
|
888
|
+
# License issuer.
|
889
|
+
#
|
890
|
+
# @option params [required, String] :home_region
|
891
|
+
# Home Region of the license.
|
892
|
+
#
|
893
|
+
# @option params [required, Types::DatetimeRange] :validity
|
894
|
+
# Date and time range during which the license is valid, in ISO8601-UTC
|
895
|
+
# format.
|
896
|
+
#
|
897
|
+
# @option params [Array<Types::Metadata>] :license_metadata
|
898
|
+
# Information about the license.
|
899
|
+
#
|
900
|
+
# @option params [required, Array<Types::Entitlement>] :entitlements
|
901
|
+
# License entitlements.
|
902
|
+
#
|
903
|
+
# @option params [required, Types::ConsumptionConfiguration] :consumption_configuration
|
904
|
+
# Configuration for consumption of the license. Choose a provisional
|
905
|
+
# configuration for workloads running with continuous connectivity.
|
906
|
+
# Choose a borrow configuration for workloads with offline usage.
|
907
|
+
#
|
908
|
+
# @option params [required, String] :status
|
909
|
+
# License status.
|
910
|
+
#
|
911
|
+
# @option params [required, String] :client_token
|
912
|
+
# Unique, case-sensitive identifier that you provide to ensure the
|
913
|
+
# idempotency of the request.
|
914
|
+
#
|
915
|
+
# @option params [String] :source_version
|
916
|
+
# Current version of the license.
|
917
|
+
#
|
918
|
+
# @return [Types::CreateLicenseVersionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
919
|
+
#
|
920
|
+
# * {Types::CreateLicenseVersionResponse#license_arn #license_arn} => String
|
921
|
+
# * {Types::CreateLicenseVersionResponse#version #version} => String
|
922
|
+
# * {Types::CreateLicenseVersionResponse#status #status} => String
|
923
|
+
#
|
924
|
+
# @example Request syntax with placeholder values
|
925
|
+
#
|
926
|
+
# resp = client.create_license_version({
|
927
|
+
# license_arn: "Arn", # required
|
928
|
+
# license_name: "String", # required
|
929
|
+
# product_name: "String", # required
|
930
|
+
# issuer: { # required
|
931
|
+
# name: "String", # required
|
932
|
+
# sign_key: "String",
|
933
|
+
# },
|
934
|
+
# home_region: "String", # required
|
935
|
+
# validity: { # required
|
936
|
+
# begin: "ISO8601DateTime", # required
|
937
|
+
# end: "ISO8601DateTime",
|
938
|
+
# },
|
939
|
+
# license_metadata: [
|
940
|
+
# {
|
941
|
+
# name: "String",
|
942
|
+
# value: "String",
|
943
|
+
# },
|
944
|
+
# ],
|
945
|
+
# entitlements: [ # required
|
946
|
+
# {
|
947
|
+
# name: "String", # required
|
948
|
+
# value: "String",
|
949
|
+
# max_count: 1,
|
950
|
+
# overage: false,
|
951
|
+
# unit: "Count", # required, accepts 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
|
952
|
+
# allow_check_in: false,
|
953
|
+
# },
|
954
|
+
# ],
|
955
|
+
# consumption_configuration: { # required
|
956
|
+
# renew_type: "None", # accepts None, Weekly, Monthly
|
957
|
+
# provisional_configuration: {
|
958
|
+
# max_time_to_live_in_minutes: 1, # required
|
959
|
+
# },
|
960
|
+
# borrow_configuration: {
|
961
|
+
# allow_early_check_in: false, # required
|
962
|
+
# max_time_to_live_in_minutes: 1, # required
|
963
|
+
# },
|
964
|
+
# },
|
965
|
+
# status: "AVAILABLE", # required, accepts AVAILABLE, PENDING_AVAILABLE, DEACTIVATED, SUSPENDED, EXPIRED, PENDING_DELETE, DELETED
|
966
|
+
# client_token: "String", # required
|
967
|
+
# source_version: "String",
|
968
|
+
# })
|
969
|
+
#
|
970
|
+
# @example Response structure
|
971
|
+
#
|
972
|
+
# resp.license_arn #=> String
|
973
|
+
# resp.version #=> String
|
974
|
+
# resp.status #=> String, one of "AVAILABLE", "PENDING_AVAILABLE", "DEACTIVATED", "SUSPENDED", "EXPIRED", "PENDING_DELETE", "DELETED"
|
975
|
+
#
|
976
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/CreateLicenseVersion AWS API Documentation
|
977
|
+
#
|
978
|
+
# @overload create_license_version(params = {})
|
979
|
+
# @param [Hash] params ({})
|
980
|
+
def create_license_version(params = {}, options = {})
|
981
|
+
req = build_request(:create_license_version, params)
|
982
|
+
req.send_request(options)
|
983
|
+
end
|
984
|
+
|
985
|
+
# Creates a long-lived token.
|
986
|
+
#
|
987
|
+
# A refresh token is a JWT token used to get an access token. With an
|
988
|
+
# access token, you can call AssumeRoleWithWebIdentity to get role
|
989
|
+
# credentials that you can use to call License Manager to manage the
|
990
|
+
# specified license.
|
991
|
+
#
|
992
|
+
# @option params [required, String] :license_arn
|
993
|
+
# Amazon Resource Name (ARN) of the license. The ARN is mapped to the
|
994
|
+
# aud claim of the JWT token.
|
995
|
+
#
|
996
|
+
# @option params [Array<String>] :role_arns
|
997
|
+
# Amazon Resource Name (ARN) of the IAM roles to embed in the token.
|
998
|
+
# License Manager does not check whether the roles are in use.
|
999
|
+
#
|
1000
|
+
# @option params [Integer] :expiration_in_days
|
1001
|
+
# Token expiration, in days, counted from token creation. The default is
|
1002
|
+
# 365 days.
|
1003
|
+
#
|
1004
|
+
# @option params [Array<String>] :token_properties
|
1005
|
+
# Data specified by the caller to be included in the JWT token. The data
|
1006
|
+
# is mapped to the amr claim of the JWT token.
|
1007
|
+
#
|
1008
|
+
# @option params [required, String] :client_token
|
1009
|
+
# Idempotency token, valid for 10 minutes.
|
1010
|
+
#
|
1011
|
+
# @return [Types::CreateTokenResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1012
|
+
#
|
1013
|
+
# * {Types::CreateTokenResponse#token_id #token_id} => String
|
1014
|
+
# * {Types::CreateTokenResponse#token_type #token_type} => String
|
1015
|
+
# * {Types::CreateTokenResponse#token #token} => String
|
1016
|
+
#
|
1017
|
+
# @example Request syntax with placeholder values
|
1018
|
+
#
|
1019
|
+
# resp = client.create_token({
|
1020
|
+
# license_arn: "Arn", # required
|
1021
|
+
# role_arns: ["Arn"],
|
1022
|
+
# expiration_in_days: 1,
|
1023
|
+
# token_properties: ["String"],
|
1024
|
+
# client_token: "IdempotencyToken", # required
|
1025
|
+
# })
|
1026
|
+
#
|
1027
|
+
# @example Response structure
|
1028
|
+
#
|
1029
|
+
# resp.token_id #=> String
|
1030
|
+
# resp.token_type #=> String, one of "REFRESH_TOKEN"
|
1031
|
+
# resp.token #=> String
|
1032
|
+
#
|
1033
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/CreateToken AWS API Documentation
|
1034
|
+
#
|
1035
|
+
# @overload create_token(params = {})
|
1036
|
+
# @param [Hash] params ({})
|
1037
|
+
def create_token(params = {}, options = {})
|
1038
|
+
req = build_request(:create_token, params)
|
1039
|
+
req.send_request(options)
|
1040
|
+
end
|
1041
|
+
|
1042
|
+
# Deletes the specified grant.
|
1043
|
+
#
|
1044
|
+
# @option params [required, String] :grant_arn
|
1045
|
+
# Amazon Resource Name (ARN) of the grant.
|
1046
|
+
#
|
1047
|
+
# @option params [required, String] :version
|
1048
|
+
# Current version of the grant.
|
1049
|
+
#
|
1050
|
+
# @return [Types::DeleteGrantResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1051
|
+
#
|
1052
|
+
# * {Types::DeleteGrantResponse#grant_arn #grant_arn} => String
|
1053
|
+
# * {Types::DeleteGrantResponse#status #status} => String
|
1054
|
+
# * {Types::DeleteGrantResponse#version #version} => String
|
1055
|
+
#
|
1056
|
+
# @example Request syntax with placeholder values
|
1057
|
+
#
|
1058
|
+
# resp = client.delete_grant({
|
1059
|
+
# grant_arn: "Arn", # required
|
1060
|
+
# version: "String", # required
|
1061
|
+
# })
|
1062
|
+
#
|
1063
|
+
# @example Response structure
|
1064
|
+
#
|
1065
|
+
# resp.grant_arn #=> String
|
1066
|
+
# resp.status #=> String, one of "PENDING_WORKFLOW", "PENDING_ACCEPT", "REJECTED", "ACTIVE", "FAILED_WORKFLOW", "DELETED", "PENDING_DELETE", "DISABLED"
|
1067
|
+
# resp.version #=> String
|
1068
|
+
#
|
1069
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/DeleteGrant AWS API Documentation
|
1070
|
+
#
|
1071
|
+
# @overload delete_grant(params = {})
|
1072
|
+
# @param [Hash] params ({})
|
1073
|
+
def delete_grant(params = {}, options = {})
|
1074
|
+
req = build_request(:delete_grant, params)
|
1075
|
+
req.send_request(options)
|
1076
|
+
end
|
1077
|
+
|
1078
|
+
# Deletes the specified license.
|
1079
|
+
#
|
1080
|
+
# @option params [required, String] :license_arn
|
1081
|
+
# Amazon Resource Name (ARN) of the license.
|
1082
|
+
#
|
1083
|
+
# @option params [required, String] :source_version
|
1084
|
+
# Current version of the license.
|
1085
|
+
#
|
1086
|
+
# @return [Types::DeleteLicenseResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1087
|
+
#
|
1088
|
+
# * {Types::DeleteLicenseResponse#status #status} => String
|
1089
|
+
# * {Types::DeleteLicenseResponse#deletion_date #deletion_date} => String
|
1090
|
+
#
|
1091
|
+
# @example Request syntax with placeholder values
|
1092
|
+
#
|
1093
|
+
# resp = client.delete_license({
|
1094
|
+
# license_arn: "Arn", # required
|
1095
|
+
# source_version: "String", # required
|
1096
|
+
# })
|
1097
|
+
#
|
1098
|
+
# @example Response structure
|
1099
|
+
#
|
1100
|
+
# resp.status #=> String, one of "PENDING_DELETE", "DELETED"
|
1101
|
+
# resp.deletion_date #=> String
|
1102
|
+
#
|
1103
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/DeleteLicense AWS API Documentation
|
1104
|
+
#
|
1105
|
+
# @overload delete_license(params = {})
|
1106
|
+
# @param [Hash] params ({})
|
1107
|
+
def delete_license(params = {}, options = {})
|
1108
|
+
req = build_request(:delete_license, params)
|
1109
|
+
req.send_request(options)
|
1110
|
+
end
|
1111
|
+
|
1112
|
+
# Deletes the specified license configuration.
|
1113
|
+
#
|
1114
|
+
# You cannot delete a license configuration that is in use.
|
1115
|
+
#
|
1116
|
+
# @option params [required, String] :license_configuration_arn
|
1117
|
+
# ID of the license configuration.
|
1118
|
+
#
|
1119
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1120
|
+
#
|
1121
|
+
# @example Request syntax with placeholder values
|
1122
|
+
#
|
1123
|
+
# resp = client.delete_license_configuration({
|
1124
|
+
# license_configuration_arn: "String", # required
|
1125
|
+
# })
|
1126
|
+
#
|
1127
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/DeleteLicenseConfiguration AWS API Documentation
|
1128
|
+
#
|
1129
|
+
# @overload delete_license_configuration(params = {})
|
1130
|
+
# @param [Hash] params ({})
|
1131
|
+
def delete_license_configuration(params = {}, options = {})
|
1132
|
+
req = build_request(:delete_license_configuration, params)
|
1133
|
+
req.send_request(options)
|
1134
|
+
end
|
1135
|
+
|
1136
|
+
# Deletes the specified token. Must be called in the license home
|
1137
|
+
# Region.
|
1138
|
+
#
|
1139
|
+
# @option params [required, String] :token_id
|
1140
|
+
# Token ID.
|
1141
|
+
#
|
1142
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1143
|
+
#
|
1144
|
+
# @example Request syntax with placeholder values
|
1145
|
+
#
|
1146
|
+
# resp = client.delete_token({
|
1147
|
+
# token_id: "String", # required
|
1148
|
+
# })
|
1149
|
+
#
|
1150
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/DeleteToken AWS API Documentation
|
1151
|
+
#
|
1152
|
+
# @overload delete_token(params = {})
|
1153
|
+
# @param [Hash] params ({})
|
1154
|
+
def delete_token(params = {}, options = {})
|
1155
|
+
req = build_request(:delete_token, params)
|
1156
|
+
req.send_request(options)
|
1157
|
+
end
|
1158
|
+
|
1159
|
+
# Extends the expiration date for license consumption.
|
1160
|
+
#
|
1161
|
+
# @option params [required, String] :license_consumption_token
|
1162
|
+
# License consumption token.
|
1163
|
+
#
|
1164
|
+
# @option params [Boolean] :dry_run
|
1165
|
+
# Checks whether you have the required permissions for the action,
|
1166
|
+
# without actually making the request. Provides an error response if you
|
1167
|
+
# do not have the required permissions.
|
1168
|
+
#
|
1169
|
+
# @return [Types::ExtendLicenseConsumptionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1170
|
+
#
|
1171
|
+
# * {Types::ExtendLicenseConsumptionResponse#license_consumption_token #license_consumption_token} => String
|
1172
|
+
# * {Types::ExtendLicenseConsumptionResponse#expiration #expiration} => String
|
1173
|
+
#
|
1174
|
+
# @example Request syntax with placeholder values
|
1175
|
+
#
|
1176
|
+
# resp = client.extend_license_consumption({
|
1177
|
+
# license_consumption_token: "String", # required
|
1178
|
+
# dry_run: false,
|
1179
|
+
# })
|
1180
|
+
#
|
1181
|
+
# @example Response structure
|
1182
|
+
#
|
1183
|
+
# resp.license_consumption_token #=> String
|
1184
|
+
# resp.expiration #=> String
|
1185
|
+
#
|
1186
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ExtendLicenseConsumption AWS API Documentation
|
1187
|
+
#
|
1188
|
+
# @overload extend_license_consumption(params = {})
|
1189
|
+
# @param [Hash] params ({})
|
1190
|
+
def extend_license_consumption(params = {}, options = {})
|
1191
|
+
req = build_request(:extend_license_consumption, params)
|
1192
|
+
req.send_request(options)
|
1193
|
+
end
|
1194
|
+
|
1195
|
+
# Gets a temporary access token to use with AssumeRoleWithWebIdentity.
|
1196
|
+
# Access tokens are valid for one hour.
|
1197
|
+
#
|
1198
|
+
# @option params [required, String] :token
|
1199
|
+
# Refresh token, encoded as a JWT token.
|
1200
|
+
#
|
1201
|
+
# @option params [Array<String>] :token_properties
|
1202
|
+
# Token properties to validate against those present in the JWT token.
|
1203
|
+
#
|
1204
|
+
# @return [Types::GetAccessTokenResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1205
|
+
#
|
1206
|
+
# * {Types::GetAccessTokenResponse#access_token #access_token} => String
|
1207
|
+
#
|
1208
|
+
# @example Request syntax with placeholder values
|
1209
|
+
#
|
1210
|
+
# resp = client.get_access_token({
|
1211
|
+
# token: "TokenString", # required
|
1212
|
+
# token_properties: ["String"],
|
1213
|
+
# })
|
1214
|
+
#
|
1215
|
+
# @example Response structure
|
1216
|
+
#
|
1217
|
+
# resp.access_token #=> String
|
1218
|
+
#
|
1219
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/GetAccessToken AWS API Documentation
|
1220
|
+
#
|
1221
|
+
# @overload get_access_token(params = {})
|
1222
|
+
# @param [Hash] params ({})
|
1223
|
+
def get_access_token(params = {}, options = {})
|
1224
|
+
req = build_request(:get_access_token, params)
|
1225
|
+
req.send_request(options)
|
1226
|
+
end
|
1227
|
+
|
1228
|
+
# Gets detailed information about the specified grant.
|
1229
|
+
#
|
1230
|
+
# @option params [required, String] :grant_arn
|
1231
|
+
# Amazon Resource Name (ARN) of the grant.
|
1232
|
+
#
|
1233
|
+
# @option params [String] :version
|
1234
|
+
# Grant version.
|
1235
|
+
#
|
1236
|
+
# @return [Types::GetGrantResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1237
|
+
#
|
1238
|
+
# * {Types::GetGrantResponse#grant #grant} => Types::Grant
|
1239
|
+
#
|
1240
|
+
# @example Request syntax with placeholder values
|
1241
|
+
#
|
1242
|
+
# resp = client.get_grant({
|
1243
|
+
# grant_arn: "Arn", # required
|
1244
|
+
# version: "String",
|
1245
|
+
# })
|
1246
|
+
#
|
1247
|
+
# @example Response structure
|
1248
|
+
#
|
1249
|
+
# resp.grant.grant_arn #=> String
|
1250
|
+
# resp.grant.grant_name #=> String
|
1251
|
+
# resp.grant.parent_arn #=> String
|
1252
|
+
# resp.grant.license_arn #=> String
|
1253
|
+
# resp.grant.grantee_principal_arn #=> String
|
1254
|
+
# resp.grant.home_region #=> String
|
1255
|
+
# resp.grant.grant_status #=> String, one of "PENDING_WORKFLOW", "PENDING_ACCEPT", "REJECTED", "ACTIVE", "FAILED_WORKFLOW", "DELETED", "PENDING_DELETE", "DISABLED"
|
1256
|
+
# resp.grant.status_reason #=> String
|
1257
|
+
# resp.grant.version #=> String
|
1258
|
+
# resp.grant.granted_operations #=> Array
|
1259
|
+
# resp.grant.granted_operations[0] #=> String, one of "CreateGrant", "CheckoutLicense", "CheckoutBorrowLicense", "CheckInLicense", "ExtendConsumptionLicense", "ListPurchasedLicenses", "CreateToken"
|
1260
|
+
#
|
1261
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/GetGrant AWS API Documentation
|
1262
|
+
#
|
1263
|
+
# @overload get_grant(params = {})
|
435
1264
|
# @param [Hash] params ({})
|
436
|
-
def
|
437
|
-
req = build_request(:
|
1265
|
+
def get_grant(params = {}, options = {})
|
1266
|
+
req = build_request(:get_grant, params)
|
438
1267
|
req.send_request(options)
|
439
1268
|
end
|
440
1269
|
|
441
|
-
#
|
1270
|
+
# Gets detailed information about the specified license.
|
442
1271
|
#
|
443
|
-
#
|
1272
|
+
# @option params [required, String] :license_arn
|
1273
|
+
# Amazon Resource Name (ARN) of the license.
|
444
1274
|
#
|
445
|
-
# @option params [
|
446
|
-
#
|
1275
|
+
# @option params [String] :version
|
1276
|
+
# License version.
|
447
1277
|
#
|
448
|
-
# @return [
|
1278
|
+
# @return [Types::GetLicenseResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1279
|
+
#
|
1280
|
+
# * {Types::GetLicenseResponse#license #license} => Types::License
|
449
1281
|
#
|
450
1282
|
# @example Request syntax with placeholder values
|
451
1283
|
#
|
452
|
-
# resp = client.
|
453
|
-
#
|
1284
|
+
# resp = client.get_license({
|
1285
|
+
# license_arn: "Arn", # required
|
1286
|
+
# version: "String",
|
454
1287
|
# })
|
455
1288
|
#
|
456
|
-
# @
|
1289
|
+
# @example Response structure
|
457
1290
|
#
|
458
|
-
#
|
1291
|
+
# resp.license.license_arn #=> String
|
1292
|
+
# resp.license.license_name #=> String
|
1293
|
+
# resp.license.product_name #=> String
|
1294
|
+
# resp.license.product_sku #=> String
|
1295
|
+
# resp.license.issuer.name #=> String
|
1296
|
+
# resp.license.issuer.sign_key #=> String
|
1297
|
+
# resp.license.issuer.key_fingerprint #=> String
|
1298
|
+
# resp.license.home_region #=> String
|
1299
|
+
# resp.license.status #=> String, one of "AVAILABLE", "PENDING_AVAILABLE", "DEACTIVATED", "SUSPENDED", "EXPIRED", "PENDING_DELETE", "DELETED"
|
1300
|
+
# resp.license.validity.begin #=> String
|
1301
|
+
# resp.license.validity.end #=> String
|
1302
|
+
# resp.license.beneficiary #=> String
|
1303
|
+
# resp.license.entitlements #=> Array
|
1304
|
+
# resp.license.entitlements[0].name #=> String
|
1305
|
+
# resp.license.entitlements[0].value #=> String
|
1306
|
+
# resp.license.entitlements[0].max_count #=> Integer
|
1307
|
+
# resp.license.entitlements[0].overage #=> Boolean
|
1308
|
+
# resp.license.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"
|
1309
|
+
# resp.license.entitlements[0].allow_check_in #=> Boolean
|
1310
|
+
# resp.license.consumption_configuration.renew_type #=> String, one of "None", "Weekly", "Monthly"
|
1311
|
+
# resp.license.consumption_configuration.provisional_configuration.max_time_to_live_in_minutes #=> Integer
|
1312
|
+
# resp.license.consumption_configuration.borrow_configuration.allow_early_check_in #=> Boolean
|
1313
|
+
# resp.license.consumption_configuration.borrow_configuration.max_time_to_live_in_minutes #=> Integer
|
1314
|
+
# resp.license.license_metadata #=> Array
|
1315
|
+
# resp.license.license_metadata[0].name #=> String
|
1316
|
+
# resp.license.license_metadata[0].value #=> String
|
1317
|
+
# resp.license.create_time #=> String
|
1318
|
+
# resp.license.version #=> String
|
1319
|
+
#
|
1320
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/GetLicense AWS API Documentation
|
1321
|
+
#
|
1322
|
+
# @overload get_license(params = {})
|
459
1323
|
# @param [Hash] params ({})
|
460
|
-
def
|
461
|
-
req = build_request(:
|
1324
|
+
def get_license(params = {}, options = {})
|
1325
|
+
req = build_request(:get_license, params)
|
462
1326
|
req.send_request(options)
|
463
1327
|
end
|
464
1328
|
|
@@ -485,6 +1349,7 @@ module Aws::LicenseManager
|
|
485
1349
|
# * {Types::GetLicenseConfigurationResponse#tags #tags} => Array<Types::Tag>
|
486
1350
|
# * {Types::GetLicenseConfigurationResponse#product_information_list #product_information_list} => Array<Types::ProductInformation>
|
487
1351
|
# * {Types::GetLicenseConfigurationResponse#automated_discovery_information #automated_discovery_information} => Types::AutomatedDiscoveryInformation
|
1352
|
+
# * {Types::GetLicenseConfigurationResponse#disassociate_when_not_found #disassociate_when_not_found} => Boolean
|
488
1353
|
#
|
489
1354
|
# @example Request syntax with placeholder values
|
490
1355
|
#
|
@@ -523,6 +1388,7 @@ module Aws::LicenseManager
|
|
523
1388
|
# resp.product_information_list[0].product_information_filter_list[0].product_information_filter_value[0] #=> String
|
524
1389
|
# resp.product_information_list[0].product_information_filter_list[0].product_information_filter_comparator #=> String
|
525
1390
|
# resp.automated_discovery_information.last_run_time #=> Time
|
1391
|
+
# resp.disassociate_when_not_found #=> Boolean
|
526
1392
|
#
|
527
1393
|
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/GetLicenseConfiguration AWS API Documentation
|
528
1394
|
#
|
@@ -533,6 +1399,38 @@ module Aws::LicenseManager
|
|
533
1399
|
req.send_request(options)
|
534
1400
|
end
|
535
1401
|
|
1402
|
+
# Gets detailed information about the usage of the specified license.
|
1403
|
+
#
|
1404
|
+
# @option params [required, String] :license_arn
|
1405
|
+
# Amazon Resource Name (ARN) of the license.
|
1406
|
+
#
|
1407
|
+
# @return [Types::GetLicenseUsageResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1408
|
+
#
|
1409
|
+
# * {Types::GetLicenseUsageResponse#license_usage #license_usage} => Types::LicenseUsage
|
1410
|
+
#
|
1411
|
+
# @example Request syntax with placeholder values
|
1412
|
+
#
|
1413
|
+
# resp = client.get_license_usage({
|
1414
|
+
# license_arn: "Arn", # required
|
1415
|
+
# })
|
1416
|
+
#
|
1417
|
+
# @example Response structure
|
1418
|
+
#
|
1419
|
+
# resp.license_usage.entitlement_usages #=> Array
|
1420
|
+
# resp.license_usage.entitlement_usages[0].name #=> String
|
1421
|
+
# resp.license_usage.entitlement_usages[0].consumed_value #=> String
|
1422
|
+
# resp.license_usage.entitlement_usages[0].max_count #=> String
|
1423
|
+
# resp.license_usage.entitlement_usages[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"
|
1424
|
+
#
|
1425
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/GetLicenseUsage AWS API Documentation
|
1426
|
+
#
|
1427
|
+
# @overload get_license_usage(params = {})
|
1428
|
+
# @param [Hash] params ({})
|
1429
|
+
def get_license_usage(params = {}, options = {})
|
1430
|
+
req = build_request(:get_license_usage, params)
|
1431
|
+
req.send_request(options)
|
1432
|
+
end
|
1433
|
+
|
536
1434
|
# Gets the License Manager settings for the current Region.
|
537
1435
|
#
|
538
1436
|
# @return [Types::GetServiceSettingsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
@@ -596,6 +1494,7 @@ module Aws::LicenseManager
|
|
596
1494
|
# resp.license_configuration_associations[0].resource_type #=> String, one of "EC2_INSTANCE", "EC2_HOST", "EC2_AMI", "RDS", "SYSTEMS_MANAGER_MANAGED_INSTANCE"
|
597
1495
|
# resp.license_configuration_associations[0].resource_owner_id #=> String
|
598
1496
|
# resp.license_configuration_associations[0].association_time #=> Time
|
1497
|
+
# resp.license_configuration_associations[0].ami_association_scope #=> String
|
599
1498
|
# resp.next_token #=> String
|
600
1499
|
#
|
601
1500
|
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListAssociationsForLicenseConfiguration AWS API Documentation
|
@@ -607,6 +1506,72 @@ module Aws::LicenseManager
|
|
607
1506
|
req.send_request(options)
|
608
1507
|
end
|
609
1508
|
|
1509
|
+
# Lists the grants distributed for the specified license.
|
1510
|
+
#
|
1511
|
+
# @option params [Array<String>] :grant_arns
|
1512
|
+
# Amazon Resource Names (ARNs) of the grants.
|
1513
|
+
#
|
1514
|
+
# @option params [Array<Types::Filter>] :filters
|
1515
|
+
# Filters to scope the results. The following filters are supported:
|
1516
|
+
#
|
1517
|
+
# * `LicenseARN`
|
1518
|
+
#
|
1519
|
+
# * `Status`
|
1520
|
+
#
|
1521
|
+
# * `PrincipalARN`
|
1522
|
+
#
|
1523
|
+
# * `ParentARN`
|
1524
|
+
#
|
1525
|
+
# @option params [String] :next_token
|
1526
|
+
# Token for the next set of results.
|
1527
|
+
#
|
1528
|
+
# @option params [Integer] :max_results
|
1529
|
+
# Maximum number of results to return in a single call.
|
1530
|
+
#
|
1531
|
+
# @return [Types::ListDistributedGrantsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1532
|
+
#
|
1533
|
+
# * {Types::ListDistributedGrantsResponse#grants #grants} => Array<Types::Grant>
|
1534
|
+
# * {Types::ListDistributedGrantsResponse#next_token #next_token} => String
|
1535
|
+
#
|
1536
|
+
# @example Request syntax with placeholder values
|
1537
|
+
#
|
1538
|
+
# resp = client.list_distributed_grants({
|
1539
|
+
# grant_arns: ["Arn"],
|
1540
|
+
# filters: [
|
1541
|
+
# {
|
1542
|
+
# name: "FilterName",
|
1543
|
+
# values: ["FilterValue"],
|
1544
|
+
# },
|
1545
|
+
# ],
|
1546
|
+
# next_token: "String",
|
1547
|
+
# max_results: 1,
|
1548
|
+
# })
|
1549
|
+
#
|
1550
|
+
# @example Response structure
|
1551
|
+
#
|
1552
|
+
# resp.grants #=> Array
|
1553
|
+
# resp.grants[0].grant_arn #=> String
|
1554
|
+
# resp.grants[0].grant_name #=> String
|
1555
|
+
# resp.grants[0].parent_arn #=> String
|
1556
|
+
# resp.grants[0].license_arn #=> String
|
1557
|
+
# resp.grants[0].grantee_principal_arn #=> String
|
1558
|
+
# resp.grants[0].home_region #=> String
|
1559
|
+
# resp.grants[0].grant_status #=> String, one of "PENDING_WORKFLOW", "PENDING_ACCEPT", "REJECTED", "ACTIVE", "FAILED_WORKFLOW", "DELETED", "PENDING_DELETE", "DISABLED"
|
1560
|
+
# resp.grants[0].status_reason #=> String
|
1561
|
+
# resp.grants[0].version #=> String
|
1562
|
+
# resp.grants[0].granted_operations #=> Array
|
1563
|
+
# resp.grants[0].granted_operations[0] #=> String, one of "CreateGrant", "CheckoutLicense", "CheckoutBorrowLicense", "CheckInLicense", "ExtendConsumptionLicense", "ListPurchasedLicenses", "CreateToken"
|
1564
|
+
# resp.next_token #=> String
|
1565
|
+
#
|
1566
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListDistributedGrants AWS API Documentation
|
1567
|
+
#
|
1568
|
+
# @overload list_distributed_grants(params = {})
|
1569
|
+
# @param [Hash] params ({})
|
1570
|
+
def list_distributed_grants(params = {}, options = {})
|
1571
|
+
req = build_request(:list_distributed_grants, params)
|
1572
|
+
req.send_request(options)
|
1573
|
+
end
|
1574
|
+
|
610
1575
|
# Lists the license configuration operations that failed.
|
611
1576
|
#
|
612
1577
|
# @option params [required, String] :license_configuration_arn
|
@@ -713,6 +1678,7 @@ module Aws::LicenseManager
|
|
713
1678
|
# resp.license_configurations[0].license_rules[0] #=> String
|
714
1679
|
# resp.license_configurations[0].license_count #=> Integer
|
715
1680
|
# resp.license_configurations[0].license_count_hard_limit #=> Boolean
|
1681
|
+
# resp.license_configurations[0].disassociate_when_not_found #=> Boolean
|
716
1682
|
# resp.license_configurations[0].consumed_licenses #=> Integer
|
717
1683
|
# resp.license_configurations[0].status #=> String
|
718
1684
|
# resp.license_configurations[0].owner_account_id #=> String
|
@@ -770,6 +1736,7 @@ module Aws::LicenseManager
|
|
770
1736
|
#
|
771
1737
|
# resp.license_specifications #=> Array
|
772
1738
|
# resp.license_specifications[0].license_configuration_arn #=> String
|
1739
|
+
# resp.license_specifications[0].ami_association_scope #=> String
|
773
1740
|
# resp.next_token #=> String
|
774
1741
|
#
|
775
1742
|
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListLicenseSpecificationsForResource AWS API Documentation
|
@@ -781,6 +1748,303 @@ module Aws::LicenseManager
|
|
781
1748
|
req.send_request(options)
|
782
1749
|
end
|
783
1750
|
|
1751
|
+
# Lists all versions of the specified license.
|
1752
|
+
#
|
1753
|
+
# @option params [required, String] :license_arn
|
1754
|
+
# Amazon Resource Name (ARN) of the license.
|
1755
|
+
#
|
1756
|
+
# @option params [String] :next_token
|
1757
|
+
# Token for the next set of results.
|
1758
|
+
#
|
1759
|
+
# @option params [Integer] :max_results
|
1760
|
+
# Maximum number of results to return in a single call.
|
1761
|
+
#
|
1762
|
+
# @return [Types::ListLicenseVersionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1763
|
+
#
|
1764
|
+
# * {Types::ListLicenseVersionsResponse#licenses #licenses} => Array<Types::License>
|
1765
|
+
# * {Types::ListLicenseVersionsResponse#next_token #next_token} => String
|
1766
|
+
#
|
1767
|
+
# @example Request syntax with placeholder values
|
1768
|
+
#
|
1769
|
+
# resp = client.list_license_versions({
|
1770
|
+
# license_arn: "Arn", # required
|
1771
|
+
# next_token: "String",
|
1772
|
+
# max_results: 1,
|
1773
|
+
# })
|
1774
|
+
#
|
1775
|
+
# @example Response structure
|
1776
|
+
#
|
1777
|
+
# resp.licenses #=> Array
|
1778
|
+
# resp.licenses[0].license_arn #=> String
|
1779
|
+
# resp.licenses[0].license_name #=> String
|
1780
|
+
# resp.licenses[0].product_name #=> String
|
1781
|
+
# resp.licenses[0].product_sku #=> String
|
1782
|
+
# resp.licenses[0].issuer.name #=> String
|
1783
|
+
# resp.licenses[0].issuer.sign_key #=> String
|
1784
|
+
# resp.licenses[0].issuer.key_fingerprint #=> String
|
1785
|
+
# resp.licenses[0].home_region #=> String
|
1786
|
+
# resp.licenses[0].status #=> String, one of "AVAILABLE", "PENDING_AVAILABLE", "DEACTIVATED", "SUSPENDED", "EXPIRED", "PENDING_DELETE", "DELETED"
|
1787
|
+
# resp.licenses[0].validity.begin #=> String
|
1788
|
+
# resp.licenses[0].validity.end #=> String
|
1789
|
+
# resp.licenses[0].beneficiary #=> String
|
1790
|
+
# resp.licenses[0].entitlements #=> Array
|
1791
|
+
# resp.licenses[0].entitlements[0].name #=> String
|
1792
|
+
# resp.licenses[0].entitlements[0].value #=> String
|
1793
|
+
# resp.licenses[0].entitlements[0].max_count #=> Integer
|
1794
|
+
# resp.licenses[0].entitlements[0].overage #=> Boolean
|
1795
|
+
# 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"
|
1796
|
+
# resp.licenses[0].entitlements[0].allow_check_in #=> Boolean
|
1797
|
+
# resp.licenses[0].consumption_configuration.renew_type #=> String, one of "None", "Weekly", "Monthly"
|
1798
|
+
# resp.licenses[0].consumption_configuration.provisional_configuration.max_time_to_live_in_minutes #=> Integer
|
1799
|
+
# resp.licenses[0].consumption_configuration.borrow_configuration.allow_early_check_in #=> Boolean
|
1800
|
+
# resp.licenses[0].consumption_configuration.borrow_configuration.max_time_to_live_in_minutes #=> Integer
|
1801
|
+
# resp.licenses[0].license_metadata #=> Array
|
1802
|
+
# resp.licenses[0].license_metadata[0].name #=> String
|
1803
|
+
# resp.licenses[0].license_metadata[0].value #=> String
|
1804
|
+
# resp.licenses[0].create_time #=> String
|
1805
|
+
# resp.licenses[0].version #=> String
|
1806
|
+
# resp.next_token #=> String
|
1807
|
+
#
|
1808
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListLicenseVersions AWS API Documentation
|
1809
|
+
#
|
1810
|
+
# @overload list_license_versions(params = {})
|
1811
|
+
# @param [Hash] params ({})
|
1812
|
+
def list_license_versions(params = {}, options = {})
|
1813
|
+
req = build_request(:list_license_versions, params)
|
1814
|
+
req.send_request(options)
|
1815
|
+
end
|
1816
|
+
|
1817
|
+
# Lists the licenses for your account.
|
1818
|
+
#
|
1819
|
+
# @option params [Array<String>] :license_arns
|
1820
|
+
# Amazon Resource Names (ARNs) of the licenses.
|
1821
|
+
#
|
1822
|
+
# @option params [Array<Types::Filter>] :filters
|
1823
|
+
# Filters to scope the results. The following filters are supported:
|
1824
|
+
#
|
1825
|
+
# * `Beneficiary`
|
1826
|
+
#
|
1827
|
+
# * `ProductSKU`
|
1828
|
+
#
|
1829
|
+
# * `KeyFingerprint`
|
1830
|
+
#
|
1831
|
+
# * `Status`
|
1832
|
+
#
|
1833
|
+
# @option params [String] :next_token
|
1834
|
+
# Token for the next set of results.
|
1835
|
+
#
|
1836
|
+
# @option params [Integer] :max_results
|
1837
|
+
# Maximum number of results to return in a single call.
|
1838
|
+
#
|
1839
|
+
# @return [Types::ListLicensesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1840
|
+
#
|
1841
|
+
# * {Types::ListLicensesResponse#licenses #licenses} => Array<Types::License>
|
1842
|
+
# * {Types::ListLicensesResponse#next_token #next_token} => String
|
1843
|
+
#
|
1844
|
+
# @example Request syntax with placeholder values
|
1845
|
+
#
|
1846
|
+
# resp = client.list_licenses({
|
1847
|
+
# license_arns: ["Arn"],
|
1848
|
+
# filters: [
|
1849
|
+
# {
|
1850
|
+
# name: "FilterName",
|
1851
|
+
# values: ["FilterValue"],
|
1852
|
+
# },
|
1853
|
+
# ],
|
1854
|
+
# next_token: "String",
|
1855
|
+
# max_results: 1,
|
1856
|
+
# })
|
1857
|
+
#
|
1858
|
+
# @example Response structure
|
1859
|
+
#
|
1860
|
+
# resp.licenses #=> Array
|
1861
|
+
# resp.licenses[0].license_arn #=> String
|
1862
|
+
# resp.licenses[0].license_name #=> String
|
1863
|
+
# resp.licenses[0].product_name #=> String
|
1864
|
+
# resp.licenses[0].product_sku #=> String
|
1865
|
+
# resp.licenses[0].issuer.name #=> String
|
1866
|
+
# resp.licenses[0].issuer.sign_key #=> String
|
1867
|
+
# resp.licenses[0].issuer.key_fingerprint #=> String
|
1868
|
+
# resp.licenses[0].home_region #=> String
|
1869
|
+
# resp.licenses[0].status #=> String, one of "AVAILABLE", "PENDING_AVAILABLE", "DEACTIVATED", "SUSPENDED", "EXPIRED", "PENDING_DELETE", "DELETED"
|
1870
|
+
# resp.licenses[0].validity.begin #=> String
|
1871
|
+
# resp.licenses[0].validity.end #=> String
|
1872
|
+
# resp.licenses[0].beneficiary #=> String
|
1873
|
+
# resp.licenses[0].entitlements #=> Array
|
1874
|
+
# resp.licenses[0].entitlements[0].name #=> String
|
1875
|
+
# resp.licenses[0].entitlements[0].value #=> String
|
1876
|
+
# resp.licenses[0].entitlements[0].max_count #=> Integer
|
1877
|
+
# resp.licenses[0].entitlements[0].overage #=> Boolean
|
1878
|
+
# 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"
|
1879
|
+
# resp.licenses[0].entitlements[0].allow_check_in #=> Boolean
|
1880
|
+
# resp.licenses[0].consumption_configuration.renew_type #=> String, one of "None", "Weekly", "Monthly"
|
1881
|
+
# resp.licenses[0].consumption_configuration.provisional_configuration.max_time_to_live_in_minutes #=> Integer
|
1882
|
+
# resp.licenses[0].consumption_configuration.borrow_configuration.allow_early_check_in #=> Boolean
|
1883
|
+
# resp.licenses[0].consumption_configuration.borrow_configuration.max_time_to_live_in_minutes #=> Integer
|
1884
|
+
# resp.licenses[0].license_metadata #=> Array
|
1885
|
+
# resp.licenses[0].license_metadata[0].name #=> String
|
1886
|
+
# resp.licenses[0].license_metadata[0].value #=> String
|
1887
|
+
# resp.licenses[0].create_time #=> String
|
1888
|
+
# resp.licenses[0].version #=> String
|
1889
|
+
# resp.next_token #=> String
|
1890
|
+
#
|
1891
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListLicenses AWS API Documentation
|
1892
|
+
#
|
1893
|
+
# @overload list_licenses(params = {})
|
1894
|
+
# @param [Hash] params ({})
|
1895
|
+
def list_licenses(params = {}, options = {})
|
1896
|
+
req = build_request(:list_licenses, params)
|
1897
|
+
req.send_request(options)
|
1898
|
+
end
|
1899
|
+
|
1900
|
+
# Lists grants that are received but not accepted.
|
1901
|
+
#
|
1902
|
+
# @option params [Array<String>] :grant_arns
|
1903
|
+
# Amazon Resource Names (ARNs) of the grants.
|
1904
|
+
#
|
1905
|
+
# @option params [Array<Types::Filter>] :filters
|
1906
|
+
# Filters to scope the results. The following filters are supported:
|
1907
|
+
#
|
1908
|
+
# * `LicenseARN`
|
1909
|
+
#
|
1910
|
+
# * `Status`
|
1911
|
+
#
|
1912
|
+
# @option params [String] :next_token
|
1913
|
+
# Token for the next set of results.
|
1914
|
+
#
|
1915
|
+
# @option params [Integer] :max_results
|
1916
|
+
# Maximum number of results to return in a single call.
|
1917
|
+
#
|
1918
|
+
# @return [Types::ListReceivedGrantsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1919
|
+
#
|
1920
|
+
# * {Types::ListReceivedGrantsResponse#grants #grants} => Array<Types::Grant>
|
1921
|
+
# * {Types::ListReceivedGrantsResponse#next_token #next_token} => String
|
1922
|
+
#
|
1923
|
+
# @example Request syntax with placeholder values
|
1924
|
+
#
|
1925
|
+
# resp = client.list_received_grants({
|
1926
|
+
# grant_arns: ["Arn"],
|
1927
|
+
# filters: [
|
1928
|
+
# {
|
1929
|
+
# name: "FilterName",
|
1930
|
+
# values: ["FilterValue"],
|
1931
|
+
# },
|
1932
|
+
# ],
|
1933
|
+
# next_token: "String",
|
1934
|
+
# max_results: 1,
|
1935
|
+
# })
|
1936
|
+
#
|
1937
|
+
# @example Response structure
|
1938
|
+
#
|
1939
|
+
# resp.grants #=> Array
|
1940
|
+
# resp.grants[0].grant_arn #=> String
|
1941
|
+
# resp.grants[0].grant_name #=> String
|
1942
|
+
# resp.grants[0].parent_arn #=> String
|
1943
|
+
# resp.grants[0].license_arn #=> String
|
1944
|
+
# resp.grants[0].grantee_principal_arn #=> String
|
1945
|
+
# resp.grants[0].home_region #=> String
|
1946
|
+
# resp.grants[0].grant_status #=> String, one of "PENDING_WORKFLOW", "PENDING_ACCEPT", "REJECTED", "ACTIVE", "FAILED_WORKFLOW", "DELETED", "PENDING_DELETE", "DISABLED"
|
1947
|
+
# resp.grants[0].status_reason #=> String
|
1948
|
+
# resp.grants[0].version #=> String
|
1949
|
+
# resp.grants[0].granted_operations #=> Array
|
1950
|
+
# resp.grants[0].granted_operations[0] #=> String, one of "CreateGrant", "CheckoutLicense", "CheckoutBorrowLicense", "CheckInLicense", "ExtendConsumptionLicense", "ListPurchasedLicenses", "CreateToken"
|
1951
|
+
# resp.next_token #=> String
|
1952
|
+
#
|
1953
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListReceivedGrants AWS API Documentation
|
1954
|
+
#
|
1955
|
+
# @overload list_received_grants(params = {})
|
1956
|
+
# @param [Hash] params ({})
|
1957
|
+
def list_received_grants(params = {}, options = {})
|
1958
|
+
req = build_request(:list_received_grants, params)
|
1959
|
+
req.send_request(options)
|
1960
|
+
end
|
1961
|
+
|
1962
|
+
# Lists received licenses.
|
1963
|
+
#
|
1964
|
+
# @option params [Array<String>] :license_arns
|
1965
|
+
# Amazon Resource Names (ARNs) of the licenses.
|
1966
|
+
#
|
1967
|
+
# @option params [Array<Types::Filter>] :filters
|
1968
|
+
# Filters to scope the results. The following filters are supported:
|
1969
|
+
#
|
1970
|
+
# * `ProductSKU`
|
1971
|
+
#
|
1972
|
+
# * `Status`
|
1973
|
+
#
|
1974
|
+
# * `KeyFingerprint`
|
1975
|
+
#
|
1976
|
+
# * `Issuer`
|
1977
|
+
#
|
1978
|
+
# @option params [String] :next_token
|
1979
|
+
# Token for the next set of results.
|
1980
|
+
#
|
1981
|
+
# @option params [Integer] :max_results
|
1982
|
+
# Maximum number of results to return in a single call.
|
1983
|
+
#
|
1984
|
+
# @return [Types::ListReceivedLicensesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1985
|
+
#
|
1986
|
+
# * {Types::ListReceivedLicensesResponse#licenses #licenses} => Array<Types::GrantedLicense>
|
1987
|
+
# * {Types::ListReceivedLicensesResponse#next_token #next_token} => String
|
1988
|
+
#
|
1989
|
+
# @example Request syntax with placeholder values
|
1990
|
+
#
|
1991
|
+
# resp = client.list_received_licenses({
|
1992
|
+
# license_arns: ["Arn"],
|
1993
|
+
# filters: [
|
1994
|
+
# {
|
1995
|
+
# name: "FilterName",
|
1996
|
+
# values: ["FilterValue"],
|
1997
|
+
# },
|
1998
|
+
# ],
|
1999
|
+
# next_token: "String",
|
2000
|
+
# max_results: 1,
|
2001
|
+
# })
|
2002
|
+
#
|
2003
|
+
# @example Response structure
|
2004
|
+
#
|
2005
|
+
# resp.licenses #=> Array
|
2006
|
+
# resp.licenses[0].license_arn #=> String
|
2007
|
+
# resp.licenses[0].license_name #=> String
|
2008
|
+
# resp.licenses[0].product_name #=> String
|
2009
|
+
# resp.licenses[0].product_sku #=> String
|
2010
|
+
# resp.licenses[0].issuer.name #=> String
|
2011
|
+
# resp.licenses[0].issuer.sign_key #=> String
|
2012
|
+
# resp.licenses[0].issuer.key_fingerprint #=> String
|
2013
|
+
# resp.licenses[0].home_region #=> String
|
2014
|
+
# resp.licenses[0].status #=> String, one of "AVAILABLE", "PENDING_AVAILABLE", "DEACTIVATED", "SUSPENDED", "EXPIRED", "PENDING_DELETE", "DELETED"
|
2015
|
+
# resp.licenses[0].validity.begin #=> String
|
2016
|
+
# resp.licenses[0].validity.end #=> String
|
2017
|
+
# resp.licenses[0].beneficiary #=> String
|
2018
|
+
# resp.licenses[0].entitlements #=> Array
|
2019
|
+
# resp.licenses[0].entitlements[0].name #=> String
|
2020
|
+
# resp.licenses[0].entitlements[0].value #=> String
|
2021
|
+
# resp.licenses[0].entitlements[0].max_count #=> Integer
|
2022
|
+
# resp.licenses[0].entitlements[0].overage #=> Boolean
|
2023
|
+
# 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"
|
2024
|
+
# resp.licenses[0].entitlements[0].allow_check_in #=> Boolean
|
2025
|
+
# resp.licenses[0].consumption_configuration.renew_type #=> String, one of "None", "Weekly", "Monthly"
|
2026
|
+
# resp.licenses[0].consumption_configuration.provisional_configuration.max_time_to_live_in_minutes #=> Integer
|
2027
|
+
# resp.licenses[0].consumption_configuration.borrow_configuration.allow_early_check_in #=> Boolean
|
2028
|
+
# resp.licenses[0].consumption_configuration.borrow_configuration.max_time_to_live_in_minutes #=> Integer
|
2029
|
+
# resp.licenses[0].license_metadata #=> Array
|
2030
|
+
# resp.licenses[0].license_metadata[0].name #=> String
|
2031
|
+
# resp.licenses[0].license_metadata[0].value #=> String
|
2032
|
+
# resp.licenses[0].create_time #=> String
|
2033
|
+
# resp.licenses[0].version #=> String
|
2034
|
+
# resp.licenses[0].received_metadata.received_status #=> String, one of "PENDING_WORKFLOW", "PENDING_ACCEPT", "REJECTED", "ACTIVE", "FAILED_WORKFLOW", "DELETED", "DISABLED"
|
2035
|
+
# resp.licenses[0].received_metadata.allowed_operations #=> Array
|
2036
|
+
# resp.licenses[0].received_metadata.allowed_operations[0] #=> String, one of "CreateGrant", "CheckoutLicense", "CheckoutBorrowLicense", "CheckInLicense", "ExtendConsumptionLicense", "ListPurchasedLicenses", "CreateToken"
|
2037
|
+
# resp.next_token #=> String
|
2038
|
+
#
|
2039
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListReceivedLicenses AWS API Documentation
|
2040
|
+
#
|
2041
|
+
# @overload list_received_licenses(params = {})
|
2042
|
+
# @param [Hash] params ({})
|
2043
|
+
def list_received_licenses(params = {}, options = {})
|
2044
|
+
req = build_request(:list_received_licenses, params)
|
2045
|
+
req.send_request(options)
|
2046
|
+
end
|
2047
|
+
|
784
2048
|
# Lists resources managed using Systems Manager inventory.
|
785
2049
|
#
|
786
2050
|
# @option params [Integer] :max_results
|
@@ -810,6 +2074,10 @@ module Aws::LicenseManager
|
|
810
2074
|
# * `resource_id` - The ID of the resource. Logical operators are
|
811
2075
|
# `EQUALS` \| `NOT_EQUALS`.
|
812
2076
|
#
|
2077
|
+
# * `tag:<key>` - The key/value combination of a tag assigned to the
|
2078
|
+
# resource. Logical operators are `EQUALS` (single account) or
|
2079
|
+
# `EQUALS` \| `NOT_EQUALS` (cross account).
|
2080
|
+
#
|
813
2081
|
# @return [Types::ListResourceInventoryResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
814
2082
|
#
|
815
2083
|
# * {Types::ListResourceInventoryResponse#resource_inventory_list #resource_inventory_list} => Array<Types::ResourceInventory>
|
@@ -879,6 +2147,66 @@ module Aws::LicenseManager
|
|
879
2147
|
req.send_request(options)
|
880
2148
|
end
|
881
2149
|
|
2150
|
+
# Lists your tokens.
|
2151
|
+
#
|
2152
|
+
# @option params [Array<String>] :token_ids
|
2153
|
+
# Token IDs.
|
2154
|
+
#
|
2155
|
+
# @option params [Array<Types::Filter>] :filters
|
2156
|
+
# Filters to scope the results. The following filter is supported:
|
2157
|
+
#
|
2158
|
+
# * `licenseArns`
|
2159
|
+
#
|
2160
|
+
# ^
|
2161
|
+
#
|
2162
|
+
# @option params [String] :next_token
|
2163
|
+
# Token for the next set of results.
|
2164
|
+
#
|
2165
|
+
# @option params [Integer] :max_results
|
2166
|
+
# Maximum number of results to return in a single call.
|
2167
|
+
#
|
2168
|
+
# @return [Types::ListTokensResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2169
|
+
#
|
2170
|
+
# * {Types::ListTokensResponse#tokens #tokens} => Array<Types::TokenData>
|
2171
|
+
# * {Types::ListTokensResponse#next_token #next_token} => String
|
2172
|
+
#
|
2173
|
+
# @example Request syntax with placeholder values
|
2174
|
+
#
|
2175
|
+
# resp = client.list_tokens({
|
2176
|
+
# token_ids: ["String"],
|
2177
|
+
# filters: [
|
2178
|
+
# {
|
2179
|
+
# name: "FilterName",
|
2180
|
+
# values: ["FilterValue"],
|
2181
|
+
# },
|
2182
|
+
# ],
|
2183
|
+
# next_token: "String",
|
2184
|
+
# max_results: 1,
|
2185
|
+
# })
|
2186
|
+
#
|
2187
|
+
# @example Response structure
|
2188
|
+
#
|
2189
|
+
# resp.tokens #=> Array
|
2190
|
+
# resp.tokens[0].token_id #=> String
|
2191
|
+
# resp.tokens[0].token_type #=> String
|
2192
|
+
# resp.tokens[0].license_arn #=> String
|
2193
|
+
# resp.tokens[0].expiration_time #=> String
|
2194
|
+
# resp.tokens[0].token_properties #=> Array
|
2195
|
+
# resp.tokens[0].token_properties[0] #=> String
|
2196
|
+
# resp.tokens[0].role_arns #=> Array
|
2197
|
+
# resp.tokens[0].role_arns[0] #=> String
|
2198
|
+
# resp.tokens[0].status #=> String
|
2199
|
+
# resp.next_token #=> String
|
2200
|
+
#
|
2201
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/ListTokens AWS API Documentation
|
2202
|
+
#
|
2203
|
+
# @overload list_tokens(params = {})
|
2204
|
+
# @param [Hash] params ({})
|
2205
|
+
def list_tokens(params = {}, options = {})
|
2206
|
+
req = build_request(:list_tokens, params)
|
2207
|
+
req.send_request(options)
|
2208
|
+
end
|
2209
|
+
|
882
2210
|
# Lists all license usage records for a license configuration,
|
883
2211
|
# displaying license consumption details by resource at a selected point
|
884
2212
|
# in time. Use this action to audit the current license consumption for
|
@@ -900,8 +2228,8 @@ module Aws::LicenseManager
|
|
900
2228
|
# * `resourceArn` - The ARN of the license configuration resource.
|
901
2229
|
# Logical operators are `EQUALS` \| `NOT_EQUALS`.
|
902
2230
|
#
|
903
|
-
# * `resourceType` - The resource type (
|
904
|
-
#
|
2231
|
+
# * `resourceType` - The resource type (`EC2_INSTANCE` \| `EC2_HOST` \|
|
2232
|
+
# `EC2_AMI` \| `SYSTEMS_MANAGER_MANAGED_INSTANCE`). Logical operators
|
905
2233
|
# are `EQUALS` \| `NOT_EQUALS`.
|
906
2234
|
#
|
907
2235
|
# * `resourceAccount` - The ID of the account that owns the resource.
|
@@ -946,6 +2274,38 @@ module Aws::LicenseManager
|
|
946
2274
|
req.send_request(options)
|
947
2275
|
end
|
948
2276
|
|
2277
|
+
# Rejects the specified grant.
|
2278
|
+
#
|
2279
|
+
# @option params [required, String] :grant_arn
|
2280
|
+
# Amazon Resource Name (ARN) of the grant.
|
2281
|
+
#
|
2282
|
+
# @return [Types::RejectGrantResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2283
|
+
#
|
2284
|
+
# * {Types::RejectGrantResponse#grant_arn #grant_arn} => String
|
2285
|
+
# * {Types::RejectGrantResponse#status #status} => String
|
2286
|
+
# * {Types::RejectGrantResponse#version #version} => String
|
2287
|
+
#
|
2288
|
+
# @example Request syntax with placeholder values
|
2289
|
+
#
|
2290
|
+
# resp = client.reject_grant({
|
2291
|
+
# grant_arn: "Arn", # required
|
2292
|
+
# })
|
2293
|
+
#
|
2294
|
+
# @example Response structure
|
2295
|
+
#
|
2296
|
+
# resp.grant_arn #=> String
|
2297
|
+
# resp.status #=> String, one of "PENDING_WORKFLOW", "PENDING_ACCEPT", "REJECTED", "ACTIVE", "FAILED_WORKFLOW", "DELETED", "PENDING_DELETE", "DISABLED"
|
2298
|
+
# resp.version #=> String
|
2299
|
+
#
|
2300
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/RejectGrant AWS API Documentation
|
2301
|
+
#
|
2302
|
+
# @overload reject_grant(params = {})
|
2303
|
+
# @param [Hash] params ({})
|
2304
|
+
def reject_grant(params = {}, options = {})
|
2305
|
+
req = build_request(:reject_grant, params)
|
2306
|
+
req.send_request(options)
|
2307
|
+
end
|
2308
|
+
|
949
2309
|
# Adds the specified tags to the specified license configuration.
|
950
2310
|
#
|
951
2311
|
# @option params [required, String] :resource_arn
|
@@ -1030,6 +2390,9 @@ module Aws::LicenseManager
|
|
1030
2390
|
# @option params [Array<Types::ProductInformation>] :product_information_list
|
1031
2391
|
# New product information.
|
1032
2392
|
#
|
2393
|
+
# @option params [Boolean] :disassociate_when_not_found
|
2394
|
+
# When true, disassociates a resource when software is uninstalled.
|
2395
|
+
#
|
1033
2396
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1034
2397
|
#
|
1035
2398
|
# @example Request syntax with placeholder values
|
@@ -1054,6 +2417,7 @@ module Aws::LicenseManager
|
|
1054
2417
|
# ],
|
1055
2418
|
# },
|
1056
2419
|
# ],
|
2420
|
+
# disassociate_when_not_found: false,
|
1057
2421
|
# })
|
1058
2422
|
#
|
1059
2423
|
# @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-2018-08-01/UpdateLicenseConfiguration AWS API Documentation
|
@@ -1091,11 +2455,13 @@ module Aws::LicenseManager
|
|
1091
2455
|
# add_license_specifications: [
|
1092
2456
|
# {
|
1093
2457
|
# license_configuration_arn: "String", # required
|
2458
|
+
# ami_association_scope: "String",
|
1094
2459
|
# },
|
1095
2460
|
# ],
|
1096
2461
|
# remove_license_specifications: [
|
1097
2462
|
# {
|
1098
2463
|
# license_configuration_arn: "String", # required
|
2464
|
+
# ami_association_scope: "String",
|
1099
2465
|
# },
|
1100
2466
|
# ],
|
1101
2467
|
# })
|
@@ -1161,7 +2527,7 @@ module Aws::LicenseManager
|
|
1161
2527
|
params: params,
|
1162
2528
|
config: config)
|
1163
2529
|
context[:gem_name] = 'aws-sdk-licensemanager'
|
1164
|
-
context[:gem_version] = '1.
|
2530
|
+
context[:gem_version] = '1.24.0'
|
1165
2531
|
Seahorse::Client::Request.new(handlers, context)
|
1166
2532
|
end
|
1167
2533
|
|