aws-sdk-licensemanagerlinuxsubscriptions 1.17.0 → 1.19.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: 69deb26f692ebab83e784f1296b462bf3462f387ce01ca5d31f31af6fba48263
4
+ data.tar.gz: cb04eafa01b94cda3deea28813cbbab9175d85dd3e88fa4e45389b2ef3a72d77
5
5
  SHA512:
6
- metadata.gz: 0f3ca5221d18ced90c72baca8ff7fd3740bb99fb6e6c10555876610bcc9f331af6af25f360407838c88600da8536a470e4b5519694e5d089184054975cca6a99
7
- data.tar.gz: a58b9b56561b74d07ea679e52cf6120521805a07d0dea9bbe0846cb136d5abaaa566c773361b45d14be0a606fed13b8039597868a17be4128dfff9c4f684deca
6
+ metadata.gz: a7675d58cb32e4483e16a5597022037a909a3f4719d66d90f68c391fa51e1c1ef57db010ab46280236ed50f9c2af31aa53a7678e9538957bff88c0811b74d397
7
+ data.tar.gz: 29cf81fcbe33c0200be4e68aa6ba846de3c793a9d59a307122d1f3feae64dc89e95a99bf1fbb232ff715cdcc228c43f385ae63145cf4d8b41ac08054fa5800a1
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.19.0 (2024-09-03)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.18.0 (2024-07-10)
10
+ ------------------
11
+
12
+ * 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.
13
+
4
14
  1.17.0 (2024-07-02)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.17.0
1
+ 1.19.0
@@ -32,6 +32,7 @@ require 'aws-sdk-core/plugins/checksum_algorithm.rb'
32
32
  require 'aws-sdk-core/plugins/request_compression.rb'
33
33
  require 'aws-sdk-core/plugins/defaults_mode.rb'
34
34
  require 'aws-sdk-core/plugins/recursion_detection.rb'
35
+ require 'aws-sdk-core/plugins/telemetry.rb'
35
36
  require 'aws-sdk-core/plugins/sign.rb'
36
37
  require 'aws-sdk-core/plugins/protocols/rest_json.rb'
37
38
 
@@ -83,6 +84,7 @@ module Aws::LicenseManagerLinuxSubscriptions
83
84
  add_plugin(Aws::Plugins::RequestCompression)
84
85
  add_plugin(Aws::Plugins::DefaultsMode)
85
86
  add_plugin(Aws::Plugins::RecursionDetection)
87
+ add_plugin(Aws::Plugins::Telemetry)
86
88
  add_plugin(Aws::Plugins::Sign)
87
89
  add_plugin(Aws::Plugins::Protocols::RestJson)
88
90
  add_plugin(Aws::LicenseManagerLinuxSubscriptions::Plugins::Endpoints)
@@ -330,6 +332,16 @@ module Aws::LicenseManagerLinuxSubscriptions
330
332
  # ** Please note ** When response stubbing is enabled, no HTTP
331
333
  # requests are made, and retries are disabled.
332
334
  #
335
+ # @option options [Aws::Telemetry::TelemetryProviderBase] :telemetry_provider (Aws::Telemetry::NoOpTelemetryProvider)
336
+ # Allows you to provide a telemetry provider, which is used to
337
+ # emit telemetry data. By default, uses `NoOpTelemetryProvider` which
338
+ # will not record or emit any telemetry data. The SDK supports the
339
+ # following telemetry providers:
340
+ #
341
+ # * OpenTelemetry (OTel) - To use the OTel provider, install and require the
342
+ # `opentelemetry-sdk` gem and then, pass in an instance of a
343
+ # `Aws::Telemetry::OTelProvider` for telemetry provider.
344
+ #
333
345
  # @option options [Aws::TokenProvider] :token_provider
334
346
  # A Bearer Token Provider. This can be an instance of any one of the
335
347
  # following classes:
@@ -425,7 +437,71 @@ module Aws::LicenseManagerLinuxSubscriptions
425
437
 
426
438
  # @!group API Operations
427
439
 
428
- # Lists the Linux subscriptions service settings.
440
+ # Remove a third-party subscription provider from the Bring Your Own
441
+ # License (BYOL) subscriptions registered to your account.
442
+ #
443
+ # @option params [required, String] :subscription_provider_arn
444
+ # The Amazon Resource Name (ARN) of the subscription provider resource
445
+ # to deregister.
446
+ #
447
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
448
+ #
449
+ # @example Request syntax with placeholder values
450
+ #
451
+ # resp = client.deregister_subscription_provider({
452
+ # subscription_provider_arn: "SubscriptionProviderArn", # required
453
+ # })
454
+ #
455
+ # @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-linux-subscriptions-2018-05-10/DeregisterSubscriptionProvider AWS API Documentation
456
+ #
457
+ # @overload deregister_subscription_provider(params = {})
458
+ # @param [Hash] params ({})
459
+ def deregister_subscription_provider(params = {}, options = {})
460
+ req = build_request(:deregister_subscription_provider, params)
461
+ req.send_request(options)
462
+ end
463
+
464
+ # Get details for a Bring Your Own License (BYOL) subscription that's
465
+ # registered to your account.
466
+ #
467
+ # @option params [required, String] :subscription_provider_arn
468
+ # The Amazon Resource Name (ARN) of the BYOL registration resource to
469
+ # get details for.
470
+ #
471
+ # @return [Types::GetRegisteredSubscriptionProviderResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
472
+ #
473
+ # * {Types::GetRegisteredSubscriptionProviderResponse#last_successful_data_retrieval_time #last_successful_data_retrieval_time} => String
474
+ # * {Types::GetRegisteredSubscriptionProviderResponse#secret_arn #secret_arn} => String
475
+ # * {Types::GetRegisteredSubscriptionProviderResponse#subscription_provider_arn #subscription_provider_arn} => String
476
+ # * {Types::GetRegisteredSubscriptionProviderResponse#subscription_provider_source #subscription_provider_source} => String
477
+ # * {Types::GetRegisteredSubscriptionProviderResponse#subscription_provider_status #subscription_provider_status} => String
478
+ # * {Types::GetRegisteredSubscriptionProviderResponse#subscription_provider_status_message #subscription_provider_status_message} => String
479
+ #
480
+ # @example Request syntax with placeholder values
481
+ #
482
+ # resp = client.get_registered_subscription_provider({
483
+ # subscription_provider_arn: "SubscriptionProviderArn", # required
484
+ # })
485
+ #
486
+ # @example Response structure
487
+ #
488
+ # resp.last_successful_data_retrieval_time #=> String
489
+ # resp.secret_arn #=> String
490
+ # resp.subscription_provider_arn #=> String
491
+ # resp.subscription_provider_source #=> String, one of "RedHat"
492
+ # resp.subscription_provider_status #=> String, one of "ACTIVE", "INVALID", "PENDING"
493
+ # resp.subscription_provider_status_message #=> String
494
+ #
495
+ # @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-linux-subscriptions-2018-05-10/GetRegisteredSubscriptionProvider AWS API Documentation
496
+ #
497
+ # @overload get_registered_subscription_provider(params = {})
498
+ # @param [Hash] params ({})
499
+ def get_registered_subscription_provider(params = {}, options = {})
500
+ req = build_request(:get_registered_subscription_provider, params)
501
+ req.send_request(options)
502
+ end
503
+
504
+ # Lists the Linux subscriptions service settings for your account.
429
505
  #
430
506
  # @return [Types::GetServiceSettingsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
431
507
  #
@@ -460,31 +536,34 @@ module Aws::LicenseManagerLinuxSubscriptions
460
536
  # commercial Linux subscriptions.
461
537
  #
462
538
  # @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.
539
+ # An array of structures that you can use to filter the results by your
540
+ # specified criteria. For example, you can specify `Region` in the
541
+ # `Name`, with the `contains` operator to list all subscriptions that
542
+ # match a partial string in the `Value`, such as `us-west`.
468
543
  #
469
- # The valid names for this filter are:
544
+ # For each filter, you can specify one of the following values for the
545
+ # `Name` key to streamline results:
546
+ #
547
+ # * `AccountID`
470
548
  #
471
549
  # * `AmiID`
472
550
  #
551
+ # * `DualSubscription`
552
+ #
473
553
  # * `InstanceID`
474
554
  #
475
- # * `AccountID`
555
+ # * `InstanceType`
476
556
  #
477
- # * `Status`
557
+ # * `ProductCode`
478
558
  #
479
559
  # * `Region`
480
560
  #
481
- # * `UsageOperation`
482
- #
483
- # * `ProductCode`
561
+ # * `Status`
484
562
  #
485
- # * `InstanceType`
563
+ # * `UsageOperation`
486
564
  #
487
- # The valid Operators for this filter are:
565
+ # For each filter, you can use one of the following `Operator` values to
566
+ # define the behavior of the filter:
488
567
  #
489
568
  # * `contains`
490
569
  #
@@ -493,10 +572,11 @@ module Aws::LicenseManagerLinuxSubscriptions
493
572
  # * `Notequal`
494
573
  #
495
574
  # @option params [Integer] :max_results
496
- # Maximum number of results to return in a single call.
575
+ # The maximum items to return in a request.
497
576
  #
498
577
  # @option params [String] :next_token
499
- # Token for the next set of results.
578
+ # A token to specify where to start paginating. This is the nextToken
579
+ # from a previously truncated response.
500
580
  #
501
581
  # @return [Types::ListLinuxSubscriptionInstancesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
502
582
  #
@@ -524,14 +604,19 @@ module Aws::LicenseManagerLinuxSubscriptions
524
604
  # resp.instances #=> Array
525
605
  # resp.instances[0].account_id #=> String
526
606
  # resp.instances[0].ami_id #=> String
607
+ # resp.instances[0].dual_subscription #=> String
527
608
  # resp.instances[0].instance_id #=> String
528
609
  # resp.instances[0].instance_type #=> String
529
610
  # resp.instances[0].last_updated_time #=> String
611
+ # resp.instances[0].os_version #=> String
530
612
  # resp.instances[0].product_code #=> Array
531
613
  # resp.instances[0].product_code[0] #=> String
532
614
  # resp.instances[0].region #=> String
615
+ # resp.instances[0].registered_with_subscription_provider #=> String
533
616
  # resp.instances[0].status #=> String
534
617
  # resp.instances[0].subscription_name #=> String
618
+ # resp.instances[0].subscription_provider_create_time #=> String
619
+ # resp.instances[0].subscription_provider_update_time #=> String
535
620
  # resp.instances[0].usage_operation #=> String
536
621
  # resp.next_token #=> String
537
622
  #
@@ -570,10 +655,11 @@ module Aws::LicenseManagerLinuxSubscriptions
570
655
  # * `Notequal`
571
656
  #
572
657
  # @option params [Integer] :max_results
573
- # Maximum number of results to return in a single call.
658
+ # The maximum items to return in a request.
574
659
  #
575
660
  # @option params [String] :next_token
576
- # Token for the next set of results.
661
+ # A token to specify where to start paginating. This is the nextToken
662
+ # from a previously truncated response.
577
663
  #
578
664
  # @return [Types::ListLinuxSubscriptionsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
579
665
  #
@@ -613,6 +699,191 @@ module Aws::LicenseManagerLinuxSubscriptions
613
699
  req.send_request(options)
614
700
  end
615
701
 
702
+ # List Bring Your Own License (BYOL) subscription registration resources
703
+ # for your account.
704
+ #
705
+ # @option params [Integer] :max_results
706
+ # The maximum items to return in a request.
707
+ #
708
+ # @option params [String] :next_token
709
+ # A token to specify where to start paginating. This is the nextToken
710
+ # from a previously truncated response.
711
+ #
712
+ # @option params [Array<String>] :subscription_provider_sources
713
+ # To filter your results, specify which subscription providers to return
714
+ # in the list.
715
+ #
716
+ # @return [Types::ListRegisteredSubscriptionProvidersResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
717
+ #
718
+ # * {Types::ListRegisteredSubscriptionProvidersResponse#next_token #next_token} => String
719
+ # * {Types::ListRegisteredSubscriptionProvidersResponse#registered_subscription_providers #registered_subscription_providers} => Array&lt;Types::RegisteredSubscriptionProvider&gt;
720
+ #
721
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
722
+ #
723
+ # @example Request syntax with placeholder values
724
+ #
725
+ # resp = client.list_registered_subscription_providers({
726
+ # max_results: 1,
727
+ # next_token: "String",
728
+ # subscription_provider_sources: ["RedHat"], # accepts RedHat
729
+ # })
730
+ #
731
+ # @example Response structure
732
+ #
733
+ # resp.next_token #=> String
734
+ # resp.registered_subscription_providers #=> Array
735
+ # resp.registered_subscription_providers[0].last_successful_data_retrieval_time #=> String
736
+ # resp.registered_subscription_providers[0].secret_arn #=> String
737
+ # resp.registered_subscription_providers[0].subscription_provider_arn #=> String
738
+ # resp.registered_subscription_providers[0].subscription_provider_source #=> String, one of "RedHat"
739
+ # resp.registered_subscription_providers[0].subscription_provider_status #=> String, one of "ACTIVE", "INVALID", "PENDING"
740
+ # resp.registered_subscription_providers[0].subscription_provider_status_message #=> String
741
+ #
742
+ # @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-linux-subscriptions-2018-05-10/ListRegisteredSubscriptionProviders AWS API Documentation
743
+ #
744
+ # @overload list_registered_subscription_providers(params = {})
745
+ # @param [Hash] params ({})
746
+ def list_registered_subscription_providers(params = {}, options = {})
747
+ req = build_request(:list_registered_subscription_providers, params)
748
+ req.send_request(options)
749
+ end
750
+
751
+ # List the metadata tags that are assigned to the specified Amazon Web
752
+ # Services resource.
753
+ #
754
+ # @option params [required, String] :resource_arn
755
+ # The Amazon Resource Name (ARN) of the resource for which to list
756
+ # metadata tags.
757
+ #
758
+ # @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
759
+ #
760
+ # * {Types::ListTagsForResourceResponse#tags #tags} => Hash&lt;String,String&gt;
761
+ #
762
+ # @example Request syntax with placeholder values
763
+ #
764
+ # resp = client.list_tags_for_resource({
765
+ # resource_arn: "SubscriptionProviderArn", # required
766
+ # })
767
+ #
768
+ # @example Response structure
769
+ #
770
+ # resp.tags #=> Hash
771
+ # resp.tags["String"] #=> String
772
+ #
773
+ # @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-linux-subscriptions-2018-05-10/ListTagsForResource AWS API Documentation
774
+ #
775
+ # @overload list_tags_for_resource(params = {})
776
+ # @param [Hash] params ({})
777
+ def list_tags_for_resource(params = {}, options = {})
778
+ req = build_request(:list_tags_for_resource, params)
779
+ req.send_request(options)
780
+ end
781
+
782
+ # Register the supported third-party subscription provider for your
783
+ # Bring Your Own License (BYOL) subscription.
784
+ #
785
+ # @option params [required, String] :secret_arn
786
+ # The Amazon Resource Name (ARN) of the secret where you've stored your
787
+ # subscription provider's access token. For RHEL subscriptions managed
788
+ # through the Red Hat Subscription Manager (RHSM), the secret contains
789
+ # your Red Hat Offline token.
790
+ #
791
+ # @option params [required, String] :subscription_provider_source
792
+ # The supported Linux subscription provider to register.
793
+ #
794
+ # @option params [Hash<String,String>] :tags
795
+ # The metadata tags to assign to your registered Linux subscription
796
+ # provider resource.
797
+ #
798
+ # @return [Types::RegisterSubscriptionProviderResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
799
+ #
800
+ # * {Types::RegisterSubscriptionProviderResponse#subscription_provider_arn #subscription_provider_arn} => String
801
+ # * {Types::RegisterSubscriptionProviderResponse#subscription_provider_source #subscription_provider_source} => String
802
+ # * {Types::RegisterSubscriptionProviderResponse#subscription_provider_status #subscription_provider_status} => String
803
+ #
804
+ # @example Request syntax with placeholder values
805
+ #
806
+ # resp = client.register_subscription_provider({
807
+ # secret_arn: "SecretArn", # required
808
+ # subscription_provider_source: "RedHat", # required, accepts RedHat
809
+ # tags: {
810
+ # "String" => "String",
811
+ # },
812
+ # })
813
+ #
814
+ # @example Response structure
815
+ #
816
+ # resp.subscription_provider_arn #=> String
817
+ # resp.subscription_provider_source #=> String, one of "RedHat"
818
+ # resp.subscription_provider_status #=> String, one of "ACTIVE", "INVALID", "PENDING"
819
+ #
820
+ # @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-linux-subscriptions-2018-05-10/RegisterSubscriptionProvider AWS API Documentation
821
+ #
822
+ # @overload register_subscription_provider(params = {})
823
+ # @param [Hash] params ({})
824
+ def register_subscription_provider(params = {}, options = {})
825
+ req = build_request(:register_subscription_provider, params)
826
+ req.send_request(options)
827
+ end
828
+
829
+ # Add metadata tags to the specified Amazon Web Services resource.
830
+ #
831
+ # @option params [required, String] :resource_arn
832
+ # The Amazon Resource Name (ARN) of the Amazon Web Services resource to
833
+ # which to add the specified metadata tags.
834
+ #
835
+ # @option params [required, Hash<String,String>] :tags
836
+ # The metadata tags to assign to the Amazon Web Services resource. Tags
837
+ # are formatted as key value pairs.
838
+ #
839
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
840
+ #
841
+ # @example Request syntax with placeholder values
842
+ #
843
+ # resp = client.tag_resource({
844
+ # resource_arn: "SubscriptionProviderArn", # required
845
+ # tags: { # required
846
+ # "String" => "String",
847
+ # },
848
+ # })
849
+ #
850
+ # @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-linux-subscriptions-2018-05-10/TagResource AWS API Documentation
851
+ #
852
+ # @overload tag_resource(params = {})
853
+ # @param [Hash] params ({})
854
+ def tag_resource(params = {}, options = {})
855
+ req = build_request(:tag_resource, params)
856
+ req.send_request(options)
857
+ end
858
+
859
+ # Remove one or more metadata tag from the specified Amazon Web Services
860
+ # resource.
861
+ #
862
+ # @option params [required, String] :resource_arn
863
+ # The Amazon Resource Name (ARN) of the Amazon Web Services resource to
864
+ # remove the metadata tags from.
865
+ #
866
+ # @option params [required, Array<String>] :tag_keys
867
+ # A list of metadata tag keys to remove from the requested resource.
868
+ #
869
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
870
+ #
871
+ # @example Request syntax with placeholder values
872
+ #
873
+ # resp = client.untag_resource({
874
+ # resource_arn: "SubscriptionProviderArn", # required
875
+ # tag_keys: ["String"], # required
876
+ # })
877
+ #
878
+ # @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-linux-subscriptions-2018-05-10/UntagResource AWS API Documentation
879
+ #
880
+ # @overload untag_resource(params = {})
881
+ # @param [Hash] params ({})
882
+ def untag_resource(params = {}, options = {})
883
+ req = build_request(:untag_resource, params)
884
+ req.send_request(options)
885
+ end
886
+
616
887
  # Updates the service settings for Linux subscriptions.
617
888
  #
618
889
  # @option params [Boolean] :allow_update
@@ -674,14 +945,19 @@ module Aws::LicenseManagerLinuxSubscriptions
674
945
  # @api private
675
946
  def build_request(operation_name, params = {})
676
947
  handlers = @handlers.for(operation_name)
948
+ tracer = config.telemetry_provider.tracer_provider.tracer(
949
+ Aws::Telemetry.module_to_tracer_name('Aws::LicenseManagerLinuxSubscriptions')
950
+ )
677
951
  context = Seahorse::Client::RequestContext.new(
678
952
  operation_name: operation_name,
679
953
  operation: config.api.operation(operation_name),
680
954
  client: self,
681
955
  params: params,
682
- config: config)
956
+ config: config,
957
+ tracer: tracer
958
+ )
683
959
  context[:gem_name] = 'aws-sdk-licensemanagerlinuxsubscriptions'
684
- context[:gem_version] = '1.17.0'
960
+ context[:gem_version] = '1.19.0'
685
961
  Seahorse::Client::Request.new(handlers, context)
686
962
  end
687
963