aws-sdk-licensemanagerlinuxsubscriptions 1.17.0 → 1.18.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f0161e01ec2dc95c9535714ab64ad6d089dc83fb787d7cd2c42baa9693bf2b7c
4
- data.tar.gz: b05809ac69eb5bca506502f5845a40f4dc4d0318e2d5081fc1cfe7cb5df406c1
3
+ metadata.gz: d9206827b5a0d956d425a8a6f553c52e7c7467058924b894b75ef1eb2f100a62
4
+ data.tar.gz: 2da4577ca46234436b41c759e3d3599b5ea72eec4f2c33e3692422a00665f82b
5
5
  SHA512:
6
- metadata.gz: 0f3ca5221d18ced90c72baca8ff7fd3740bb99fb6e6c10555876610bcc9f331af6af25f360407838c88600da8536a470e4b5519694e5d089184054975cca6a99
7
- data.tar.gz: a58b9b56561b74d07ea679e52cf6120521805a07d0dea9bbe0846cb136d5abaaa566c773361b45d14be0a606fed13b8039597868a17be4128dfff9c4f684deca
6
+ metadata.gz: c85629d9778d6d8d376cee9d62c585b3ce611942185448ecdd0683df46842df1b9917489608b5c32918aaa39d6cbe1055e476eed7ece4137474222ad10476818
7
+ data.tar.gz: '05459bb3ab7d1cf262d4c91cf91fa466d6b03c06314f52b0e12661ee8528212c892e06bd6cdff1518ea00ef68f4019191999214db898927d685fd3f5c217bf4b'
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.18.0 (2024-07-10)
5
+ ------------------
6
+
7
+ * Feature - Add support for third party subscription providers, starting with RHEL subscriptions through Red Hat Subscription Manager (RHSM). Additionally, add support for tagging subscription provider resources, and detect when an instance has more than one Linux subscription and notify the customer.
8
+
4
9
  1.17.0 (2024-07-02)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.17.0
1
+ 1.18.0
@@ -425,7 +425,71 @@ module Aws::LicenseManagerLinuxSubscriptions
425
425
 
426
426
  # @!group API Operations
427
427
 
428
- # Lists the Linux subscriptions service settings.
428
+ # Remove a third-party subscription provider from the Bring Your Own
429
+ # License (BYOL) subscriptions registered to your account.
430
+ #
431
+ # @option params [required, String] :subscription_provider_arn
432
+ # The Amazon Resource Name (ARN) of the subscription provider resource
433
+ # to deregister.
434
+ #
435
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
436
+ #
437
+ # @example Request syntax with placeholder values
438
+ #
439
+ # resp = client.deregister_subscription_provider({
440
+ # subscription_provider_arn: "SubscriptionProviderArn", # required
441
+ # })
442
+ #
443
+ # @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-linux-subscriptions-2018-05-10/DeregisterSubscriptionProvider AWS API Documentation
444
+ #
445
+ # @overload deregister_subscription_provider(params = {})
446
+ # @param [Hash] params ({})
447
+ def deregister_subscription_provider(params = {}, options = {})
448
+ req = build_request(:deregister_subscription_provider, params)
449
+ req.send_request(options)
450
+ end
451
+
452
+ # Get details for a Bring Your Own License (BYOL) subscription that's
453
+ # registered to your account.
454
+ #
455
+ # @option params [required, String] :subscription_provider_arn
456
+ # The Amazon Resource Name (ARN) of the BYOL registration resource to
457
+ # get details for.
458
+ #
459
+ # @return [Types::GetRegisteredSubscriptionProviderResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
460
+ #
461
+ # * {Types::GetRegisteredSubscriptionProviderResponse#last_successful_data_retrieval_time #last_successful_data_retrieval_time} => String
462
+ # * {Types::GetRegisteredSubscriptionProviderResponse#secret_arn #secret_arn} => String
463
+ # * {Types::GetRegisteredSubscriptionProviderResponse#subscription_provider_arn #subscription_provider_arn} => String
464
+ # * {Types::GetRegisteredSubscriptionProviderResponse#subscription_provider_source #subscription_provider_source} => String
465
+ # * {Types::GetRegisteredSubscriptionProviderResponse#subscription_provider_status #subscription_provider_status} => String
466
+ # * {Types::GetRegisteredSubscriptionProviderResponse#subscription_provider_status_message #subscription_provider_status_message} => String
467
+ #
468
+ # @example Request syntax with placeholder values
469
+ #
470
+ # resp = client.get_registered_subscription_provider({
471
+ # subscription_provider_arn: "SubscriptionProviderArn", # required
472
+ # })
473
+ #
474
+ # @example Response structure
475
+ #
476
+ # resp.last_successful_data_retrieval_time #=> String
477
+ # resp.secret_arn #=> String
478
+ # resp.subscription_provider_arn #=> String
479
+ # resp.subscription_provider_source #=> String, one of "RedHat"
480
+ # resp.subscription_provider_status #=> String, one of "ACTIVE", "INVALID", "PENDING"
481
+ # resp.subscription_provider_status_message #=> String
482
+ #
483
+ # @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-linux-subscriptions-2018-05-10/GetRegisteredSubscriptionProvider AWS API Documentation
484
+ #
485
+ # @overload get_registered_subscription_provider(params = {})
486
+ # @param [Hash] params ({})
487
+ def get_registered_subscription_provider(params = {}, options = {})
488
+ req = build_request(:get_registered_subscription_provider, params)
489
+ req.send_request(options)
490
+ end
491
+
492
+ # Lists the Linux subscriptions service settings for your account.
429
493
  #
430
494
  # @return [Types::GetServiceSettingsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
431
495
  #
@@ -460,31 +524,34 @@ module Aws::LicenseManagerLinuxSubscriptions
460
524
  # commercial Linux subscriptions.
461
525
  #
462
526
  # @option params [Array<Types::Filter>] :filters
463
- # An array of structures that you can use to filter the results to those
464
- # that match one or more sets of key-value pairs that you specify. For
465
- # example, you can filter by the name of `AmiID` with an optional
466
- # operator to see subscriptions that match, partially match, or don't
467
- # match a certain Amazon Machine Image (AMI) ID.
527
+ # An array of structures that you can use to filter the results by your
528
+ # specified criteria. For example, you can specify `Region` in the
529
+ # `Name`, with the `contains` operator to list all subscriptions that
530
+ # match a partial string in the `Value`, such as `us-west`.
468
531
  #
469
- # The valid names for this filter are:
532
+ # For each filter, you can specify one of the following values for the
533
+ # `Name` key to streamline results:
534
+ #
535
+ # * `AccountID`
470
536
  #
471
537
  # * `AmiID`
472
538
  #
539
+ # * `DualSubscription`
540
+ #
473
541
  # * `InstanceID`
474
542
  #
475
- # * `AccountID`
543
+ # * `InstanceType`
476
544
  #
477
- # * `Status`
545
+ # * `ProductCode`
478
546
  #
479
547
  # * `Region`
480
548
  #
481
- # * `UsageOperation`
482
- #
483
- # * `ProductCode`
549
+ # * `Status`
484
550
  #
485
- # * `InstanceType`
551
+ # * `UsageOperation`
486
552
  #
487
- # The valid Operators for this filter are:
553
+ # For each filter, you can use one of the following `Operator` values to
554
+ # define the behavior of the filter:
488
555
  #
489
556
  # * `contains`
490
557
  #
@@ -493,10 +560,11 @@ module Aws::LicenseManagerLinuxSubscriptions
493
560
  # * `Notequal`
494
561
  #
495
562
  # @option params [Integer] :max_results
496
- # Maximum number of results to return in a single call.
563
+ # The maximum items to return in a request.
497
564
  #
498
565
  # @option params [String] :next_token
499
- # Token for the next set of results.
566
+ # A token to specify where to start paginating. This is the nextToken
567
+ # from a previously truncated response.
500
568
  #
501
569
  # @return [Types::ListLinuxSubscriptionInstancesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
502
570
  #
@@ -524,14 +592,19 @@ module Aws::LicenseManagerLinuxSubscriptions
524
592
  # resp.instances #=> Array
525
593
  # resp.instances[0].account_id #=> String
526
594
  # resp.instances[0].ami_id #=> String
595
+ # resp.instances[0].dual_subscription #=> String
527
596
  # resp.instances[0].instance_id #=> String
528
597
  # resp.instances[0].instance_type #=> String
529
598
  # resp.instances[0].last_updated_time #=> String
599
+ # resp.instances[0].os_version #=> String
530
600
  # resp.instances[0].product_code #=> Array
531
601
  # resp.instances[0].product_code[0] #=> String
532
602
  # resp.instances[0].region #=> String
603
+ # resp.instances[0].registered_with_subscription_provider #=> String
533
604
  # resp.instances[0].status #=> String
534
605
  # resp.instances[0].subscription_name #=> String
606
+ # resp.instances[0].subscription_provider_create_time #=> String
607
+ # resp.instances[0].subscription_provider_update_time #=> String
535
608
  # resp.instances[0].usage_operation #=> String
536
609
  # resp.next_token #=> String
537
610
  #
@@ -570,10 +643,11 @@ module Aws::LicenseManagerLinuxSubscriptions
570
643
  # * `Notequal`
571
644
  #
572
645
  # @option params [Integer] :max_results
573
- # Maximum number of results to return in a single call.
646
+ # The maximum items to return in a request.
574
647
  #
575
648
  # @option params [String] :next_token
576
- # Token for the next set of results.
649
+ # A token to specify where to start paginating. This is the nextToken
650
+ # from a previously truncated response.
577
651
  #
578
652
  # @return [Types::ListLinuxSubscriptionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
579
653
  #
@@ -613,6 +687,191 @@ module Aws::LicenseManagerLinuxSubscriptions
613
687
  req.send_request(options)
614
688
  end
615
689
 
690
+ # List Bring Your Own License (BYOL) subscription registration resources
691
+ # for your account.
692
+ #
693
+ # @option params [Integer] :max_results
694
+ # The maximum items to return in a request.
695
+ #
696
+ # @option params [String] :next_token
697
+ # A token to specify where to start paginating. This is the nextToken
698
+ # from a previously truncated response.
699
+ #
700
+ # @option params [Array<String>] :subscription_provider_sources
701
+ # To filter your results, specify which subscription providers to return
702
+ # in the list.
703
+ #
704
+ # @return [Types::ListRegisteredSubscriptionProvidersResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
705
+ #
706
+ # * {Types::ListRegisteredSubscriptionProvidersResponse#next_token #next_token} => String
707
+ # * {Types::ListRegisteredSubscriptionProvidersResponse#registered_subscription_providers #registered_subscription_providers} => Array&lt;Types::RegisteredSubscriptionProvider&gt;
708
+ #
709
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
710
+ #
711
+ # @example Request syntax with placeholder values
712
+ #
713
+ # resp = client.list_registered_subscription_providers({
714
+ # max_results: 1,
715
+ # next_token: "String",
716
+ # subscription_provider_sources: ["RedHat"], # accepts RedHat
717
+ # })
718
+ #
719
+ # @example Response structure
720
+ #
721
+ # resp.next_token #=> String
722
+ # resp.registered_subscription_providers #=> Array
723
+ # resp.registered_subscription_providers[0].last_successful_data_retrieval_time #=> String
724
+ # resp.registered_subscription_providers[0].secret_arn #=> String
725
+ # resp.registered_subscription_providers[0].subscription_provider_arn #=> String
726
+ # resp.registered_subscription_providers[0].subscription_provider_source #=> String, one of "RedHat"
727
+ # resp.registered_subscription_providers[0].subscription_provider_status #=> String, one of "ACTIVE", "INVALID", "PENDING"
728
+ # resp.registered_subscription_providers[0].subscription_provider_status_message #=> String
729
+ #
730
+ # @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-linux-subscriptions-2018-05-10/ListRegisteredSubscriptionProviders AWS API Documentation
731
+ #
732
+ # @overload list_registered_subscription_providers(params = {})
733
+ # @param [Hash] params ({})
734
+ def list_registered_subscription_providers(params = {}, options = {})
735
+ req = build_request(:list_registered_subscription_providers, params)
736
+ req.send_request(options)
737
+ end
738
+
739
+ # List the metadata tags that are assigned to the specified Amazon Web
740
+ # Services resource.
741
+ #
742
+ # @option params [required, String] :resource_arn
743
+ # The Amazon Resource Name (ARN) of the resource for which to list
744
+ # metadata tags.
745
+ #
746
+ # @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
747
+ #
748
+ # * {Types::ListTagsForResourceResponse#tags #tags} => Hash&lt;String,String&gt;
749
+ #
750
+ # @example Request syntax with placeholder values
751
+ #
752
+ # resp = client.list_tags_for_resource({
753
+ # resource_arn: "SubscriptionProviderArn", # required
754
+ # })
755
+ #
756
+ # @example Response structure
757
+ #
758
+ # resp.tags #=> Hash
759
+ # resp.tags["String"] #=> String
760
+ #
761
+ # @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-linux-subscriptions-2018-05-10/ListTagsForResource AWS API Documentation
762
+ #
763
+ # @overload list_tags_for_resource(params = {})
764
+ # @param [Hash] params ({})
765
+ def list_tags_for_resource(params = {}, options = {})
766
+ req = build_request(:list_tags_for_resource, params)
767
+ req.send_request(options)
768
+ end
769
+
770
+ # Register the supported third-party subscription provider for your
771
+ # Bring Your Own License (BYOL) subscription.
772
+ #
773
+ # @option params [required, String] :secret_arn
774
+ # The Amazon Resource Name (ARN) of the secret where you've stored your
775
+ # subscription provider's access token. For RHEL subscriptions managed
776
+ # through the Red Hat Subscription Manager (RHSM), the secret contains
777
+ # your Red Hat Offline token.
778
+ #
779
+ # @option params [required, String] :subscription_provider_source
780
+ # The supported Linux subscription provider to register.
781
+ #
782
+ # @option params [Hash<String,String>] :tags
783
+ # The metadata tags to assign to your registered Linux subscription
784
+ # provider resource.
785
+ #
786
+ # @return [Types::RegisterSubscriptionProviderResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
787
+ #
788
+ # * {Types::RegisterSubscriptionProviderResponse#subscription_provider_arn #subscription_provider_arn} => String
789
+ # * {Types::RegisterSubscriptionProviderResponse#subscription_provider_source #subscription_provider_source} => String
790
+ # * {Types::RegisterSubscriptionProviderResponse#subscription_provider_status #subscription_provider_status} => String
791
+ #
792
+ # @example Request syntax with placeholder values
793
+ #
794
+ # resp = client.register_subscription_provider({
795
+ # secret_arn: "SecretArn", # required
796
+ # subscription_provider_source: "RedHat", # required, accepts RedHat
797
+ # tags: {
798
+ # "String" => "String",
799
+ # },
800
+ # })
801
+ #
802
+ # @example Response structure
803
+ #
804
+ # resp.subscription_provider_arn #=> String
805
+ # resp.subscription_provider_source #=> String, one of "RedHat"
806
+ # resp.subscription_provider_status #=> String, one of "ACTIVE", "INVALID", "PENDING"
807
+ #
808
+ # @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-linux-subscriptions-2018-05-10/RegisterSubscriptionProvider AWS API Documentation
809
+ #
810
+ # @overload register_subscription_provider(params = {})
811
+ # @param [Hash] params ({})
812
+ def register_subscription_provider(params = {}, options = {})
813
+ req = build_request(:register_subscription_provider, params)
814
+ req.send_request(options)
815
+ end
816
+
817
+ # Add metadata tags to the specified Amazon Web Services resource.
818
+ #
819
+ # @option params [required, String] :resource_arn
820
+ # The Amazon Resource Name (ARN) of the Amazon Web Services resource to
821
+ # which to add the specified metadata tags.
822
+ #
823
+ # @option params [required, Hash<String,String>] :tags
824
+ # The metadata tags to assign to the Amazon Web Services resource. Tags
825
+ # are formatted as key value pairs.
826
+ #
827
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
828
+ #
829
+ # @example Request syntax with placeholder values
830
+ #
831
+ # resp = client.tag_resource({
832
+ # resource_arn: "SubscriptionProviderArn", # required
833
+ # tags: { # required
834
+ # "String" => "String",
835
+ # },
836
+ # })
837
+ #
838
+ # @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-linux-subscriptions-2018-05-10/TagResource AWS API Documentation
839
+ #
840
+ # @overload tag_resource(params = {})
841
+ # @param [Hash] params ({})
842
+ def tag_resource(params = {}, options = {})
843
+ req = build_request(:tag_resource, params)
844
+ req.send_request(options)
845
+ end
846
+
847
+ # Remove one or more metadata tag from the specified Amazon Web Services
848
+ # resource.
849
+ #
850
+ # @option params [required, String] :resource_arn
851
+ # The Amazon Resource Name (ARN) of the Amazon Web Services resource to
852
+ # remove the metadata tags from.
853
+ #
854
+ # @option params [required, Array<String>] :tag_keys
855
+ # A list of metadata tag keys to remove from the requested resource.
856
+ #
857
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
858
+ #
859
+ # @example Request syntax with placeholder values
860
+ #
861
+ # resp = client.untag_resource({
862
+ # resource_arn: "SubscriptionProviderArn", # required
863
+ # tag_keys: ["String"], # required
864
+ # })
865
+ #
866
+ # @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-linux-subscriptions-2018-05-10/UntagResource AWS API Documentation
867
+ #
868
+ # @overload untag_resource(params = {})
869
+ # @param [Hash] params ({})
870
+ def untag_resource(params = {}, options = {})
871
+ req = build_request(:untag_resource, params)
872
+ req.send_request(options)
873
+ end
874
+
616
875
  # Updates the service settings for Linux subscriptions.
617
876
  #
618
877
  # @option params [Boolean] :allow_update
@@ -681,7 +940,7 @@ module Aws::LicenseManagerLinuxSubscriptions
681
940
  params: params,
682
941
  config: config)
683
942
  context[:gem_name] = 'aws-sdk-licensemanagerlinuxsubscriptions'
684
- context[:gem_version] = '1.17.0'
943
+ context[:gem_version] = '1.18.0'
685
944
  Seahorse::Client::Request.new(handlers, context)
686
945
  end
687
946