aws-sdk-licensemanagerusersubscriptions 1.0.0 → 1.2.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: ada33f230cbf8bf607a07e508c7039f8b3667c021b30e0950d675bcfbf8c55ce
4
- data.tar.gz: 87d0797a2ddda5e54260076403a35abb0bfff36867b589cbe5904bf3f336a0f6
3
+ metadata.gz: ff4a01d8dda6c197a53dee1e25ad1061103e3a70063755950c88fd34a3d25045
4
+ data.tar.gz: 44dcf6f06e4fb4e92b6dbbcd716c91ac0485bbf1c1fd30bb2caac2e92cf0d7e3
5
5
  SHA512:
6
- metadata.gz: 1d082717dd9b2542ba2108be4aaa0088762c6353f309e43bcc2faf0d8e95cf3477d412e03b29d87a584a5821b78c0e9b770a8c0b937c83ce8d3336abbc999a58
7
- data.tar.gz: 5dfeca86e270e22566deafa1250bc7b89e68bfe16f0310c88146451ee97ef964810a15e1c353ed4350aebb09416854c468bc1dc0328e45596e8f542314974542
6
+ metadata.gz: 8de60c13e08e48a42d79ae05571c77d037e259f2187ebd9616fdfd0fe7eb1080916642e1a528b2d8b744da0d224d67af310db9c7022789cc393e29425fb916a6
7
+ data.tar.gz: 221010228e9e9a7671fe389b7b1d25c3f6cb56f4e5007939df199cfe90d48b63c55b5d0c0f9772484d2ef99f57c18c6d602d506ac782a237a3342124378aaf76
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.2.0 (2022-11-29)
5
+ ------------------
6
+
7
+ * Feature - AWS now offers fully-compliant, Amazon-provided licenses for Microsoft Office Professional Plus 2021 Amazon Machine Images (AMIs) on Amazon EC2. These AMIs are now available on the Amazon EC2 console and on AWS Marketplace to launch instances on-demand without any long-term licensing commitments.
8
+
9
+ 1.1.0 (2022-10-25)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.0.0 (2022-08-02)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.2.0
@@ -30,7 +30,7 @@ require 'aws-sdk-core/plugins/http_checksum.rb'
30
30
  require 'aws-sdk-core/plugins/checksum_algorithm.rb'
31
31
  require 'aws-sdk-core/plugins/defaults_mode.rb'
32
32
  require 'aws-sdk-core/plugins/recursion_detection.rb'
33
- require 'aws-sdk-core/plugins/signature_v4.rb'
33
+ require 'aws-sdk-core/plugins/sign.rb'
34
34
  require 'aws-sdk-core/plugins/protocols/rest_json.rb'
35
35
 
36
36
  Aws::Plugins::GlobalConfiguration.add_identifier(:licensemanagerusersubscriptions)
@@ -79,8 +79,9 @@ module Aws::LicenseManagerUserSubscriptions
79
79
  add_plugin(Aws::Plugins::ChecksumAlgorithm)
80
80
  add_plugin(Aws::Plugins::DefaultsMode)
81
81
  add_plugin(Aws::Plugins::RecursionDetection)
82
- add_plugin(Aws::Plugins::SignatureV4)
82
+ add_plugin(Aws::Plugins::Sign)
83
83
  add_plugin(Aws::Plugins::Protocols::RestJson)
84
+ add_plugin(Aws::LicenseManagerUserSubscriptions::Plugins::Endpoints)
84
85
 
85
86
  # @overload initialize(options)
86
87
  # @param [Hash] options
@@ -287,6 +288,19 @@ module Aws::LicenseManagerUserSubscriptions
287
288
  # ** Please note ** When response stubbing is enabled, no HTTP
288
289
  # requests are made, and retries are disabled.
289
290
  #
291
+ # @option options [Aws::TokenProvider] :token_provider
292
+ # A Bearer Token Provider. This can be an instance of any one of the
293
+ # following classes:
294
+ #
295
+ # * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
296
+ # tokens.
297
+ #
298
+ # * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
299
+ # access token generated from `aws login`.
300
+ #
301
+ # When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
302
+ # will be used to search for tokens configured for your profile in shared configuration files.
303
+ #
290
304
  # @option options [Boolean] :use_dualstack_endpoint
291
305
  # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
292
306
  # will be used if available.
@@ -300,6 +314,9 @@ module Aws::LicenseManagerUserSubscriptions
300
314
  # When `true`, request parameters are validated before
301
315
  # sending the request.
302
316
  #
317
+ # @option options [Aws::LicenseManagerUserSubscriptions::EndpointProvider] :endpoint_provider
318
+ # The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::LicenseManagerUserSubscriptions::EndpointParameters`
319
+ #
303
320
  # @option options [URI::HTTP,String] :http_proxy A proxy to send
304
321
  # requests through. Formatted like 'http://proxy.com:123'.
305
322
  #
@@ -354,6 +371,18 @@ module Aws::LicenseManagerUserSubscriptions
354
371
  # Associates the user to an EC2 instance to utilize user-based
355
372
  # subscriptions.
356
373
  #
374
+ # <note markdown="1"> Your estimated bill for charges on the number of users and related
375
+ # costs will take 48 hours to appear for billing periods that haven't
376
+ # closed (marked as **Pending** billing status) in Amazon Web Services
377
+ # Billing. For more information, see [Viewing your monthly charges][1]
378
+ # in the *Amazon Web Services Billing User Guide*.
379
+ #
380
+ # </note>
381
+ #
382
+ #
383
+ #
384
+ # [1]: https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/invoice.html
385
+ #
357
386
  # @option params [String] :domain
358
387
  # The domain name of the user.
359
388
  #
@@ -432,6 +461,9 @@ module Aws::LicenseManagerUserSubscriptions
432
461
  # resp.identity_provider_summary.failure_message #=> String
433
462
  # resp.identity_provider_summary.identity_provider.active_directory_identity_provider.directory_id #=> String
434
463
  # resp.identity_provider_summary.product #=> String
464
+ # resp.identity_provider_summary.settings.security_group_id #=> String
465
+ # resp.identity_provider_summary.settings.subnets #=> Array
466
+ # resp.identity_provider_summary.settings.subnets[0] #=> String
435
467
  # resp.identity_provider_summary.status #=> String
436
468
  #
437
469
  # @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-user-subscriptions-2018-05-10/DeregisterIdentityProvider AWS API Documentation
@@ -523,6 +555,9 @@ module Aws::LicenseManagerUserSubscriptions
523
555
  # resp.identity_provider_summaries[0].failure_message #=> String
524
556
  # resp.identity_provider_summaries[0].identity_provider.active_directory_identity_provider.directory_id #=> String
525
557
  # resp.identity_provider_summaries[0].product #=> String
558
+ # resp.identity_provider_summaries[0].settings.security_group_id #=> String
559
+ # resp.identity_provider_summaries[0].settings.subnets #=> Array
560
+ # resp.identity_provider_summaries[0].settings.subnets[0] #=> String
526
561
  # resp.identity_provider_summaries[0].status #=> String
527
562
  # resp.next_token #=> String
528
563
  #
@@ -731,6 +766,10 @@ module Aws::LicenseManagerUserSubscriptions
731
766
  # @option params [required, String] :product
732
767
  # The name of the user-based subscription product.
733
768
  #
769
+ # @option params [Types::Settings] :settings
770
+ # The registered identity provider’s product related configuration
771
+ # settings such as the subnets to provision VPC endpoints.
772
+ #
734
773
  # @return [Types::RegisterIdentityProviderResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
735
774
  #
736
775
  # * {Types::RegisterIdentityProviderResponse#identity_provider_summary #identity_provider_summary} => Types::IdentityProviderSummary
@@ -744,6 +783,10 @@ module Aws::LicenseManagerUserSubscriptions
744
783
  # },
745
784
  # },
746
785
  # product: "String", # required
786
+ # settings: {
787
+ # security_group_id: "SecurityGroup", # required
788
+ # subnets: ["Subnet"], # required
789
+ # },
747
790
  # })
748
791
  #
749
792
  # @example Response structure
@@ -751,6 +794,9 @@ module Aws::LicenseManagerUserSubscriptions
751
794
  # resp.identity_provider_summary.failure_message #=> String
752
795
  # resp.identity_provider_summary.identity_provider.active_directory_identity_provider.directory_id #=> String
753
796
  # resp.identity_provider_summary.product #=> String
797
+ # resp.identity_provider_summary.settings.security_group_id #=> String
798
+ # resp.identity_provider_summary.settings.subnets #=> Array
799
+ # resp.identity_provider_summary.settings.subnets[0] #=> String
754
800
  # resp.identity_provider_summary.status #=> String
755
801
  #
756
802
  # @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-user-subscriptions-2018-05-10/RegisterIdentityProvider AWS API Documentation
@@ -765,6 +811,18 @@ module Aws::LicenseManagerUserSubscriptions
765
811
  # Starts a product subscription for a user with the specified identity
766
812
  # provider.
767
813
  #
814
+ # <note markdown="1"> Your estimated bill for charges on the number of users and related
815
+ # costs will take 48 hours to appear for billing periods that haven't
816
+ # closed (marked as **Pending** billing status) in Amazon Web Services
817
+ # Billing. For more information, see [Viewing your monthly charges][1]
818
+ # in the *Amazon Web Services Billing User Guide*.
819
+ #
820
+ # </note>
821
+ #
822
+ #
823
+ #
824
+ # [1]: https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/invoice.html
825
+ #
768
826
  # @option params [String] :domain
769
827
  # The domain name of the user.
770
828
  #
@@ -866,6 +924,65 @@ module Aws::LicenseManagerUserSubscriptions
866
924
  req.send_request(options)
867
925
  end
868
926
 
927
+ # Updates additional product configuration settings for the registered
928
+ # identity provider.
929
+ #
930
+ # @option params [required, Types::IdentityProvider] :identity_provider
931
+ # Details about an identity provider.
932
+ #
933
+ # @option params [required, String] :product
934
+ # The name of the user-based subscription product.
935
+ #
936
+ # @option params [required, Types::UpdateSettings] :update_settings
937
+ # Updates the registered identity provider’s product related
938
+ # configuration settings. You can update any combination of settings in
939
+ # a single operation such as the:
940
+ #
941
+ # * Subnets which you want to add to provision VPC endpoints.
942
+ #
943
+ # * Subnets which you want to remove the VPC endpoints from.
944
+ #
945
+ # * Security group ID which permits traffic to the VPC endpoints.
946
+ #
947
+ # @return [Types::UpdateIdentityProviderSettingsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
948
+ #
949
+ # * {Types::UpdateIdentityProviderSettingsResponse#identity_provider_summary #identity_provider_summary} => Types::IdentityProviderSummary
950
+ #
951
+ # @example Request syntax with placeholder values
952
+ #
953
+ # resp = client.update_identity_provider_settings({
954
+ # identity_provider: { # required
955
+ # active_directory_identity_provider: {
956
+ # directory_id: "String",
957
+ # },
958
+ # },
959
+ # product: "String", # required
960
+ # update_settings: { # required
961
+ # add_subnets: ["Subnet"], # required
962
+ # remove_subnets: ["Subnet"], # required
963
+ # security_group_id: "SecurityGroup",
964
+ # },
965
+ # })
966
+ #
967
+ # @example Response structure
968
+ #
969
+ # resp.identity_provider_summary.failure_message #=> String
970
+ # resp.identity_provider_summary.identity_provider.active_directory_identity_provider.directory_id #=> String
971
+ # resp.identity_provider_summary.product #=> String
972
+ # resp.identity_provider_summary.settings.security_group_id #=> String
973
+ # resp.identity_provider_summary.settings.subnets #=> Array
974
+ # resp.identity_provider_summary.settings.subnets[0] #=> String
975
+ # resp.identity_provider_summary.status #=> String
976
+ #
977
+ # @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-user-subscriptions-2018-05-10/UpdateIdentityProviderSettings AWS API Documentation
978
+ #
979
+ # @overload update_identity_provider_settings(params = {})
980
+ # @param [Hash] params ({})
981
+ def update_identity_provider_settings(params = {}, options = {})
982
+ req = build_request(:update_identity_provider_settings, params)
983
+ req.send_request(options)
984
+ end
985
+
869
986
  # @!endgroup
870
987
 
871
988
  # @param params ({})
@@ -879,7 +996,7 @@ module Aws::LicenseManagerUserSubscriptions
879
996
  params: params,
880
997
  config: config)
881
998
  context[:gem_name] = 'aws-sdk-licensemanagerusersubscriptions'
882
- context[:gem_version] = '1.0.0'
999
+ context[:gem_version] = '1.2.0'
883
1000
  Seahorse::Client::Request.new(handlers, context)
884
1001
  end
885
1002
 
@@ -46,14 +46,22 @@ module Aws::LicenseManagerUserSubscriptions
46
46
  RegisterIdentityProviderRequest = Shapes::StructureShape.new(name: 'RegisterIdentityProviderRequest')
47
47
  RegisterIdentityProviderResponse = Shapes::StructureShape.new(name: 'RegisterIdentityProviderResponse')
48
48
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
49
+ SecurityGroup = Shapes::StringShape.new(name: 'SecurityGroup')
49
50
  ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
51
+ Settings = Shapes::StructureShape.new(name: 'Settings')
52
+ SettingsSubnetsList = Shapes::ListShape.new(name: 'SettingsSubnetsList')
50
53
  StartProductSubscriptionRequest = Shapes::StructureShape.new(name: 'StartProductSubscriptionRequest')
51
54
  StartProductSubscriptionResponse = Shapes::StructureShape.new(name: 'StartProductSubscriptionResponse')
52
55
  StopProductSubscriptionRequest = Shapes::StructureShape.new(name: 'StopProductSubscriptionRequest')
53
56
  StopProductSubscriptionResponse = Shapes::StructureShape.new(name: 'StopProductSubscriptionResponse')
54
57
  String = Shapes::StringShape.new(name: 'String')
55
58
  StringList = Shapes::ListShape.new(name: 'StringList')
59
+ Subnet = Shapes::StringShape.new(name: 'Subnet')
60
+ Subnets = Shapes::ListShape.new(name: 'Subnets')
56
61
  ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
62
+ UpdateIdentityProviderSettingsRequest = Shapes::StructureShape.new(name: 'UpdateIdentityProviderSettingsRequest')
63
+ UpdateIdentityProviderSettingsResponse = Shapes::StructureShape.new(name: 'UpdateIdentityProviderSettingsResponse')
64
+ UpdateSettings = Shapes::StructureShape.new(name: 'UpdateSettings')
57
65
  ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
58
66
 
59
67
  AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
@@ -106,6 +114,7 @@ module Aws::LicenseManagerUserSubscriptions
106
114
  IdentityProviderSummary.add_member(:failure_message, Shapes::ShapeRef.new(shape: String, location_name: "FailureMessage"))
107
115
  IdentityProviderSummary.add_member(:identity_provider, Shapes::ShapeRef.new(shape: IdentityProvider, required: true, location_name: "IdentityProvider"))
108
116
  IdentityProviderSummary.add_member(:product, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Product"))
117
+ IdentityProviderSummary.add_member(:settings, Shapes::ShapeRef.new(shape: Settings, required: true, location_name: "Settings"))
109
118
  IdentityProviderSummary.add_member(:status, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Status"))
110
119
  IdentityProviderSummary.struct_class = Types::IdentityProviderSummary
111
120
 
@@ -188,6 +197,7 @@ module Aws::LicenseManagerUserSubscriptions
188
197
 
189
198
  RegisterIdentityProviderRequest.add_member(:identity_provider, Shapes::ShapeRef.new(shape: IdentityProvider, required: true, location_name: "IdentityProvider"))
190
199
  RegisterIdentityProviderRequest.add_member(:product, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Product"))
200
+ RegisterIdentityProviderRequest.add_member(:settings, Shapes::ShapeRef.new(shape: Settings, location_name: "Settings"))
191
201
  RegisterIdentityProviderRequest.struct_class = Types::RegisterIdentityProviderRequest
192
202
 
193
203
  RegisterIdentityProviderResponse.add_member(:identity_provider_summary, Shapes::ShapeRef.new(shape: IdentityProviderSummary, required: true, location_name: "IdentityProviderSummary"))
@@ -199,6 +209,12 @@ module Aws::LicenseManagerUserSubscriptions
199
209
  ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
200
210
  ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
201
211
 
212
+ Settings.add_member(:security_group_id, Shapes::ShapeRef.new(shape: SecurityGroup, required: true, location_name: "SecurityGroupId"))
213
+ Settings.add_member(:subnets, Shapes::ShapeRef.new(shape: SettingsSubnetsList, required: true, location_name: "Subnets"))
214
+ Settings.struct_class = Types::Settings
215
+
216
+ SettingsSubnetsList.member = Shapes::ShapeRef.new(shape: Subnet)
217
+
202
218
  StartProductSubscriptionRequest.add_member(:domain, Shapes::ShapeRef.new(shape: String, location_name: "Domain"))
203
219
  StartProductSubscriptionRequest.add_member(:identity_provider, Shapes::ShapeRef.new(shape: IdentityProvider, required: true, location_name: "IdentityProvider"))
204
220
  StartProductSubscriptionRequest.add_member(:product, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Product"))
@@ -219,9 +235,24 @@ module Aws::LicenseManagerUserSubscriptions
219
235
 
220
236
  StringList.member = Shapes::ShapeRef.new(shape: String)
221
237
 
238
+ Subnets.member = Shapes::ShapeRef.new(shape: Subnet)
239
+
222
240
  ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
223
241
  ThrottlingException.struct_class = Types::ThrottlingException
224
242
 
243
+ UpdateIdentityProviderSettingsRequest.add_member(:identity_provider, Shapes::ShapeRef.new(shape: IdentityProvider, required: true, location_name: "IdentityProvider"))
244
+ UpdateIdentityProviderSettingsRequest.add_member(:product, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Product"))
245
+ UpdateIdentityProviderSettingsRequest.add_member(:update_settings, Shapes::ShapeRef.new(shape: UpdateSettings, required: true, location_name: "UpdateSettings"))
246
+ UpdateIdentityProviderSettingsRequest.struct_class = Types::UpdateIdentityProviderSettingsRequest
247
+
248
+ UpdateIdentityProviderSettingsResponse.add_member(:identity_provider_summary, Shapes::ShapeRef.new(shape: IdentityProviderSummary, required: true, location_name: "IdentityProviderSummary"))
249
+ UpdateIdentityProviderSettingsResponse.struct_class = Types::UpdateIdentityProviderSettingsResponse
250
+
251
+ UpdateSettings.add_member(:add_subnets, Shapes::ShapeRef.new(shape: Subnets, required: true, location_name: "AddSubnets"))
252
+ UpdateSettings.add_member(:remove_subnets, Shapes::ShapeRef.new(shape: Subnets, required: true, location_name: "RemoveSubnets"))
253
+ UpdateSettings.add_member(:security_group_id, Shapes::ShapeRef.new(shape: SecurityGroup, location_name: "SecurityGroupId"))
254
+ UpdateSettings.struct_class = Types::UpdateSettings
255
+
225
256
  ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
226
257
  ValidationException.struct_class = Types::ValidationException
227
258
 
@@ -416,6 +447,18 @@ module Aws::LicenseManagerUserSubscriptions
416
447
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
417
448
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
418
449
  end)
450
+
451
+ api.add_operation(:update_identity_provider_settings, Seahorse::Model::Operation.new.tap do |o|
452
+ o.name = "UpdateIdentityProviderSettings"
453
+ o.http_method = "POST"
454
+ o.http_request_uri = "/identity-provider/UpdateIdentityProviderSettings"
455
+ o.input = Shapes::ShapeRef.new(shape: UpdateIdentityProviderSettingsRequest)
456
+ o.output = Shapes::ShapeRef.new(shape: UpdateIdentityProviderSettingsResponse)
457
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
458
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
459
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
460
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
461
+ end)
419
462
  end
420
463
 
421
464
  end
@@ -0,0 +1,66 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::LicenseManagerUserSubscriptions
11
+ # Endpoint parameters used to influence endpoints per request.
12
+ #
13
+ # @!attribute region
14
+ # The AWS region used to dispatch the request.
15
+ #
16
+ # @return [String]
17
+ #
18
+ # @!attribute use_dual_stack
19
+ # When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
20
+ #
21
+ # @return [Boolean]
22
+ #
23
+ # @!attribute use_fips
24
+ # When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
25
+ #
26
+ # @return [Boolean]
27
+ #
28
+ # @!attribute endpoint
29
+ # Override the endpoint used to send this request
30
+ #
31
+ # @return [String]
32
+ #
33
+ EndpointParameters = Struct.new(
34
+ :region,
35
+ :use_dual_stack,
36
+ :use_fips,
37
+ :endpoint,
38
+ ) do
39
+ include Aws::Structure
40
+
41
+ # @api private
42
+ class << self
43
+ PARAM_MAP = {
44
+ 'Region' => :region,
45
+ 'UseDualStack' => :use_dual_stack,
46
+ 'UseFIPS' => :use_fips,
47
+ 'Endpoint' => :endpoint,
48
+ }.freeze
49
+ end
50
+
51
+ def initialize(options = {})
52
+ self[:region] = options[:region]
53
+ self[:use_dual_stack] = options[:use_dual_stack]
54
+ self[:use_dual_stack] = false if self[:use_dual_stack].nil?
55
+ if self[:use_dual_stack].nil?
56
+ raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
57
+ end
58
+ self[:use_fips] = options[:use_fips]
59
+ self[:use_fips] = false if self[:use_fips].nil?
60
+ if self[:use_fips].nil?
61
+ raise ArgumentError, "Missing required EndpointParameter: :use_fips"
62
+ end
63
+ self[:endpoint] = options[:endpoint]
64
+ end
65
+ end
66
+ end
@@ -0,0 +1,113 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::LicenseManagerUserSubscriptions
11
+ class EndpointProvider
12
+ def initialize(rule_set = nil)
13
+ @@rule_set ||= begin
14
+ endpoint_rules = Aws::Json.load(Base64.decode64(RULES))
15
+ Aws::Endpoints::RuleSet.new(
16
+ version: endpoint_rules['version'],
17
+ service_id: endpoint_rules['serviceId'],
18
+ parameters: endpoint_rules['parameters'],
19
+ rules: endpoint_rules['rules']
20
+ )
21
+ end
22
+ @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
+ end
24
+
25
+ def resolve_endpoint(parameters)
26
+ @provider.resolve_endpoint(parameters)
27
+ end
28
+
29
+ # @api private
30
+ RULES = <<-JSON
31
+ eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
32
+ bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOmZhbHNlLCJkb2N1bWVu
33
+ dGF0aW9uIjoiVGhlIEFXUyByZWdpb24gdXNlZCB0byBkaXNwYXRjaCB0aGUg
34
+ cmVxdWVzdC4iLCJ0eXBlIjoiU3RyaW5n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aHR0
100
+ cHM6Ly9saWNlbnNlLW1hbmFnZXItdXNlci1zdWJzY3JpcHRpb25zLntSZWdp
101
+ b259LntQYXJ0aXRpb25SZXN1bHQjZHVhbFN0YWNrRG5zU3VmZml4fSIsInBy
102
+ b3BlcnRpZXMiOnt9LCJoZWFkZXJzIjp7fX0sInR5cGUiOiJlbmRwb2ludCJ9
103
+ XX0seyJjb25kaXRpb25zIjpbXSwiZXJyb3IiOiJEdWFsU3RhY2sgaXMgZW5h
104
+ YmxlZCBidXQgdGhpcyBwYXJ0aXRpb24gZG9lcyBub3Qgc3VwcG9ydCBEdWFs
105
+ U3RhY2siLCJ0eXBlIjoiZXJyb3IifV19LHsiY29uZGl0aW9ucyI6W10sImVu
106
+ ZHBvaW50Ijp7InVybCI6Imh0dHBzOi8vbGljZW5zZS1tYW5hZ2VyLXVzZXIt
107
+ c3Vic2NyaXB0aW9ucy57UmVnaW9ufS57UGFydGl0aW9uUmVzdWx0I2Ruc1N1
108
+ ZmZpeH0iLCJwcm9wZXJ0aWVzIjp7fSwiaGVhZGVycyI6e319LCJ0eXBlIjoi
109
+ ZW5kcG9pbnQifV19XX0=
110
+
111
+ JSON
112
+ end
113
+ end
@@ -0,0 +1,169 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+
11
+ module Aws::LicenseManagerUserSubscriptions
12
+ module Endpoints
13
+
14
+ class AssociateUser
15
+ def self.build(context)
16
+ unless context.config.regional_endpoint
17
+ endpoint = context.config.endpoint.to_s
18
+ end
19
+ Aws::LicenseManagerUserSubscriptions::EndpointParameters.new(
20
+ region: context.config.region,
21
+ use_dual_stack: context.config.use_dualstack_endpoint,
22
+ use_fips: context.config.use_fips_endpoint,
23
+ endpoint: endpoint,
24
+ )
25
+ end
26
+ end
27
+
28
+ class DeregisterIdentityProvider
29
+ def self.build(context)
30
+ unless context.config.regional_endpoint
31
+ endpoint = context.config.endpoint.to_s
32
+ end
33
+ Aws::LicenseManagerUserSubscriptions::EndpointParameters.new(
34
+ region: context.config.region,
35
+ use_dual_stack: context.config.use_dualstack_endpoint,
36
+ use_fips: context.config.use_fips_endpoint,
37
+ endpoint: endpoint,
38
+ )
39
+ end
40
+ end
41
+
42
+ class DisassociateUser
43
+ def self.build(context)
44
+ unless context.config.regional_endpoint
45
+ endpoint = context.config.endpoint.to_s
46
+ end
47
+ Aws::LicenseManagerUserSubscriptions::EndpointParameters.new(
48
+ region: context.config.region,
49
+ use_dual_stack: context.config.use_dualstack_endpoint,
50
+ use_fips: context.config.use_fips_endpoint,
51
+ endpoint: endpoint,
52
+ )
53
+ end
54
+ end
55
+
56
+ class ListIdentityProviders
57
+ def self.build(context)
58
+ unless context.config.regional_endpoint
59
+ endpoint = context.config.endpoint.to_s
60
+ end
61
+ Aws::LicenseManagerUserSubscriptions::EndpointParameters.new(
62
+ region: context.config.region,
63
+ use_dual_stack: context.config.use_dualstack_endpoint,
64
+ use_fips: context.config.use_fips_endpoint,
65
+ endpoint: endpoint,
66
+ )
67
+ end
68
+ end
69
+
70
+ class ListInstances
71
+ def self.build(context)
72
+ unless context.config.regional_endpoint
73
+ endpoint = context.config.endpoint.to_s
74
+ end
75
+ Aws::LicenseManagerUserSubscriptions::EndpointParameters.new(
76
+ region: context.config.region,
77
+ use_dual_stack: context.config.use_dualstack_endpoint,
78
+ use_fips: context.config.use_fips_endpoint,
79
+ endpoint: endpoint,
80
+ )
81
+ end
82
+ end
83
+
84
+ class ListProductSubscriptions
85
+ def self.build(context)
86
+ unless context.config.regional_endpoint
87
+ endpoint = context.config.endpoint.to_s
88
+ end
89
+ Aws::LicenseManagerUserSubscriptions::EndpointParameters.new(
90
+ region: context.config.region,
91
+ use_dual_stack: context.config.use_dualstack_endpoint,
92
+ use_fips: context.config.use_fips_endpoint,
93
+ endpoint: endpoint,
94
+ )
95
+ end
96
+ end
97
+
98
+ class ListUserAssociations
99
+ def self.build(context)
100
+ unless context.config.regional_endpoint
101
+ endpoint = context.config.endpoint.to_s
102
+ end
103
+ Aws::LicenseManagerUserSubscriptions::EndpointParameters.new(
104
+ region: context.config.region,
105
+ use_dual_stack: context.config.use_dualstack_endpoint,
106
+ use_fips: context.config.use_fips_endpoint,
107
+ endpoint: endpoint,
108
+ )
109
+ end
110
+ end
111
+
112
+ class RegisterIdentityProvider
113
+ def self.build(context)
114
+ unless context.config.regional_endpoint
115
+ endpoint = context.config.endpoint.to_s
116
+ end
117
+ Aws::LicenseManagerUserSubscriptions::EndpointParameters.new(
118
+ region: context.config.region,
119
+ use_dual_stack: context.config.use_dualstack_endpoint,
120
+ use_fips: context.config.use_fips_endpoint,
121
+ endpoint: endpoint,
122
+ )
123
+ end
124
+ end
125
+
126
+ class StartProductSubscription
127
+ def self.build(context)
128
+ unless context.config.regional_endpoint
129
+ endpoint = context.config.endpoint.to_s
130
+ end
131
+ Aws::LicenseManagerUserSubscriptions::EndpointParameters.new(
132
+ region: context.config.region,
133
+ use_dual_stack: context.config.use_dualstack_endpoint,
134
+ use_fips: context.config.use_fips_endpoint,
135
+ endpoint: endpoint,
136
+ )
137
+ end
138
+ end
139
+
140
+ class StopProductSubscription
141
+ def self.build(context)
142
+ unless context.config.regional_endpoint
143
+ endpoint = context.config.endpoint.to_s
144
+ end
145
+ Aws::LicenseManagerUserSubscriptions::EndpointParameters.new(
146
+ region: context.config.region,
147
+ use_dual_stack: context.config.use_dualstack_endpoint,
148
+ use_fips: context.config.use_fips_endpoint,
149
+ endpoint: endpoint,
150
+ )
151
+ end
152
+ end
153
+
154
+ class UpdateIdentityProviderSettings
155
+ def self.build(context)
156
+ unless context.config.regional_endpoint
157
+ endpoint = context.config.endpoint.to_s
158
+ end
159
+ Aws::LicenseManagerUserSubscriptions::EndpointParameters.new(
160
+ region: context.config.region,
161
+ use_dual_stack: context.config.use_dualstack_endpoint,
162
+ use_fips: context.config.use_fips_endpoint,
163
+ endpoint: endpoint,
164
+ )
165
+ end
166
+ end
167
+
168
+ end
169
+ end
@@ -0,0 +1,90 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+
11
+ module Aws::LicenseManagerUserSubscriptions
12
+ module Plugins
13
+ class Endpoints < Seahorse::Client::Plugin
14
+ option(
15
+ :endpoint_provider,
16
+ doc_type: 'Aws::LicenseManagerUserSubscriptions::EndpointProvider',
17
+ docstring: 'The endpoint provider used to resolve endpoints. Any '\
18
+ 'object that responds to `#resolve_endpoint(parameters)` '\
19
+ 'where `parameters` is a Struct similar to '\
20
+ '`Aws::LicenseManagerUserSubscriptions::EndpointParameters`'
21
+ ) do |cfg|
22
+ Aws::LicenseManagerUserSubscriptions::EndpointProvider.new
23
+ end
24
+
25
+ # @api private
26
+ class Handler < Seahorse::Client::Handler
27
+ def call(context)
28
+ # If endpoint was discovered, do not resolve or apply the endpoint.
29
+ unless context[:discovered_endpoint]
30
+ params = parameters_for_operation(context)
31
+ endpoint = context.config.endpoint_provider.resolve_endpoint(params)
32
+
33
+ context.http_request.endpoint = endpoint.url
34
+ apply_endpoint_headers(context, endpoint.headers)
35
+ end
36
+
37
+ context[:endpoint_params] = params
38
+ context[:auth_scheme] =
39
+ Aws::Endpoints.resolve_auth_scheme(context, endpoint)
40
+
41
+ @handler.call(context)
42
+ end
43
+
44
+ private
45
+
46
+ def apply_endpoint_headers(context, headers)
47
+ headers.each do |key, values|
48
+ value = values
49
+ .compact
50
+ .map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
51
+ .join(',')
52
+
53
+ context.http_request.headers[key] = value
54
+ end
55
+ end
56
+
57
+ def parameters_for_operation(context)
58
+ case context.operation_name
59
+ when :associate_user
60
+ Aws::LicenseManagerUserSubscriptions::Endpoints::AssociateUser.build(context)
61
+ when :deregister_identity_provider
62
+ Aws::LicenseManagerUserSubscriptions::Endpoints::DeregisterIdentityProvider.build(context)
63
+ when :disassociate_user
64
+ Aws::LicenseManagerUserSubscriptions::Endpoints::DisassociateUser.build(context)
65
+ when :list_identity_providers
66
+ Aws::LicenseManagerUserSubscriptions::Endpoints::ListIdentityProviders.build(context)
67
+ when :list_instances
68
+ Aws::LicenseManagerUserSubscriptions::Endpoints::ListInstances.build(context)
69
+ when :list_product_subscriptions
70
+ Aws::LicenseManagerUserSubscriptions::Endpoints::ListProductSubscriptions.build(context)
71
+ when :list_user_associations
72
+ Aws::LicenseManagerUserSubscriptions::Endpoints::ListUserAssociations.build(context)
73
+ when :register_identity_provider
74
+ Aws::LicenseManagerUserSubscriptions::Endpoints::RegisterIdentityProvider.build(context)
75
+ when :start_product_subscription
76
+ Aws::LicenseManagerUserSubscriptions::Endpoints::StartProductSubscription.build(context)
77
+ when :stop_product_subscription
78
+ Aws::LicenseManagerUserSubscriptions::Endpoints::StopProductSubscription.build(context)
79
+ when :update_identity_provider_settings
80
+ Aws::LicenseManagerUserSubscriptions::Endpoints::UpdateIdentityProviderSettings.build(context)
81
+ end
82
+ end
83
+ end
84
+
85
+ def add_handlers(handlers, _config)
86
+ handlers.add(Handler, step: :build, priority: 75)
87
+ end
88
+ end
89
+ end
90
+ end
@@ -278,6 +278,12 @@ module Aws::LicenseManagerUserSubscriptions
278
278
  # The name of the user-based subscription product.
279
279
  # @return [String]
280
280
  #
281
+ # @!attribute [rw] settings
282
+ # An object that details the registered identity provider’s product
283
+ # related configuration settings such as the subnets to provision VPC
284
+ # endpoints.
285
+ # @return [Types::Settings]
286
+ #
281
287
  # @!attribute [rw] status
282
288
  # The status of an identity provider.
283
289
  # @return [String]
@@ -288,6 +294,7 @@ module Aws::LicenseManagerUserSubscriptions
288
294
  :failure_message,
289
295
  :identity_provider,
290
296
  :product,
297
+ :settings,
291
298
  :status)
292
299
  SENSITIVE = []
293
300
  include Aws::Structure
@@ -690,6 +697,10 @@ module Aws::LicenseManagerUserSubscriptions
690
697
  # },
691
698
  # },
692
699
  # product: "String", # required
700
+ # settings: {
701
+ # security_group_id: "SecurityGroup", # required
702
+ # subnets: ["Subnet"], # required
703
+ # },
693
704
  # }
694
705
  #
695
706
  # @!attribute [rw] identity_provider
@@ -700,11 +711,17 @@ module Aws::LicenseManagerUserSubscriptions
700
711
  # The name of the user-based subscription product.
701
712
  # @return [String]
702
713
  #
714
+ # @!attribute [rw] settings
715
+ # The registered identity provider’s product related configuration
716
+ # settings such as the subnets to provision VPC endpoints.
717
+ # @return [Types::Settings]
718
+ #
703
719
  # @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-user-subscriptions-2018-05-10/RegisterIdentityProviderRequest AWS API Documentation
704
720
  #
705
721
  class RegisterIdentityProviderRequest < Struct.new(
706
722
  :identity_provider,
707
- :product)
723
+ :product,
724
+ :settings)
708
725
  SENSITIVE = []
709
726
  include Aws::Structure
710
727
  end
@@ -748,6 +765,39 @@ module Aws::LicenseManagerUserSubscriptions
748
765
  include Aws::Structure
749
766
  end
750
767
 
768
+ # The registered identity provider’s product related configuration
769
+ # settings such as the subnets to provision VPC endpoints, and the
770
+ # security group ID that is associated with the VPC endpoints. The
771
+ # security group should permit inbound TCP port 1688 communication from
772
+ # resources in the VPC.
773
+ #
774
+ # @note When making an API call, you may pass Settings
775
+ # data as a hash:
776
+ #
777
+ # {
778
+ # security_group_id: "SecurityGroup", # required
779
+ # subnets: ["Subnet"], # required
780
+ # }
781
+ #
782
+ # @!attribute [rw] security_group_id
783
+ # A security group ID that allows inbound TCP port 1688 communication
784
+ # between resources in your VPC and the VPC endpoint for activation
785
+ # servers.
786
+ # @return [String]
787
+ #
788
+ # @!attribute [rw] subnets
789
+ # The subnets defined for the registered identity provider.
790
+ # @return [Array<String>]
791
+ #
792
+ # @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-user-subscriptions-2018-05-10/Settings AWS API Documentation
793
+ #
794
+ class Settings < Struct.new(
795
+ :security_group_id,
796
+ :subnets)
797
+ SENSITIVE = []
798
+ include Aws::Structure
799
+ end
800
+
751
801
  # @note When making an API call, you may pass StartProductSubscriptionRequest
752
802
  # data as a hash:
753
803
  #
@@ -868,6 +918,103 @@ module Aws::LicenseManagerUserSubscriptions
868
918
  include Aws::Structure
869
919
  end
870
920
 
921
+ # @note When making an API call, you may pass UpdateIdentityProviderSettingsRequest
922
+ # data as a hash:
923
+ #
924
+ # {
925
+ # identity_provider: { # required
926
+ # active_directory_identity_provider: {
927
+ # directory_id: "String",
928
+ # },
929
+ # },
930
+ # product: "String", # required
931
+ # update_settings: { # required
932
+ # add_subnets: ["Subnet"], # required
933
+ # remove_subnets: ["Subnet"], # required
934
+ # security_group_id: "SecurityGroup",
935
+ # },
936
+ # }
937
+ #
938
+ # @!attribute [rw] identity_provider
939
+ # Details about an identity provider.
940
+ # @return [Types::IdentityProvider]
941
+ #
942
+ # @!attribute [rw] product
943
+ # The name of the user-based subscription product.
944
+ # @return [String]
945
+ #
946
+ # @!attribute [rw] update_settings
947
+ # Updates the registered identity provider’s product related
948
+ # configuration settings. You can update any combination of settings
949
+ # in a single operation such as the:
950
+ #
951
+ # * Subnets which you want to add to provision VPC endpoints.
952
+ #
953
+ # * Subnets which you want to remove the VPC endpoints from.
954
+ #
955
+ # * Security group ID which permits traffic to the VPC endpoints.
956
+ # @return [Types::UpdateSettings]
957
+ #
958
+ # @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-user-subscriptions-2018-05-10/UpdateIdentityProviderSettingsRequest AWS API Documentation
959
+ #
960
+ class UpdateIdentityProviderSettingsRequest < Struct.new(
961
+ :identity_provider,
962
+ :product,
963
+ :update_settings)
964
+ SENSITIVE = []
965
+ include Aws::Structure
966
+ end
967
+
968
+ # @!attribute [rw] identity_provider_summary
969
+ # Describes an identity provider.
970
+ # @return [Types::IdentityProviderSummary]
971
+ #
972
+ # @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-user-subscriptions-2018-05-10/UpdateIdentityProviderSettingsResponse AWS API Documentation
973
+ #
974
+ class UpdateIdentityProviderSettingsResponse < Struct.new(
975
+ :identity_provider_summary)
976
+ SENSITIVE = []
977
+ include Aws::Structure
978
+ end
979
+
980
+ # Updates the registered identity provider’s product related
981
+ # configuration settings such as the subnets to provision VPC endpoints.
982
+ #
983
+ # @note When making an API call, you may pass UpdateSettings
984
+ # data as a hash:
985
+ #
986
+ # {
987
+ # add_subnets: ["Subnet"], # required
988
+ # remove_subnets: ["Subnet"], # required
989
+ # security_group_id: "SecurityGroup",
990
+ # }
991
+ #
992
+ # @!attribute [rw] add_subnets
993
+ # The ID of one or more subnets in which License Manager will create a
994
+ # VPC endpoint for products that require connectivity to activation
995
+ # servers.
996
+ # @return [Array<String>]
997
+ #
998
+ # @!attribute [rw] remove_subnets
999
+ # The ID of one or more subnets to remove.
1000
+ # @return [Array<String>]
1001
+ #
1002
+ # @!attribute [rw] security_group_id
1003
+ # A security group ID that allows inbound TCP port 1688 communication
1004
+ # between resources in your VPC and the VPC endpoints for activation
1005
+ # servers.
1006
+ # @return [String]
1007
+ #
1008
+ # @see http://docs.aws.amazon.com/goto/WebAPI/license-manager-user-subscriptions-2018-05-10/UpdateSettings AWS API Documentation
1009
+ #
1010
+ class UpdateSettings < Struct.new(
1011
+ :add_subnets,
1012
+ :remove_subnets,
1013
+ :security_group_id)
1014
+ SENSITIVE = []
1015
+ include Aws::Structure
1016
+ end
1017
+
871
1018
  # A parameter is not valid.
872
1019
  #
873
1020
  # @!attribute [rw] message
@@ -13,9 +13,13 @@ require 'aws-sigv4'
13
13
 
14
14
  require_relative 'aws-sdk-licensemanagerusersubscriptions/types'
15
15
  require_relative 'aws-sdk-licensemanagerusersubscriptions/client_api'
16
+ require_relative 'aws-sdk-licensemanagerusersubscriptions/plugins/endpoints.rb'
16
17
  require_relative 'aws-sdk-licensemanagerusersubscriptions/client'
17
18
  require_relative 'aws-sdk-licensemanagerusersubscriptions/errors'
18
19
  require_relative 'aws-sdk-licensemanagerusersubscriptions/resource'
20
+ require_relative 'aws-sdk-licensemanagerusersubscriptions/endpoint_parameters'
21
+ require_relative 'aws-sdk-licensemanagerusersubscriptions/endpoint_provider'
22
+ require_relative 'aws-sdk-licensemanagerusersubscriptions/endpoints'
19
23
  require_relative 'aws-sdk-licensemanagerusersubscriptions/customizations'
20
24
 
21
25
  # This module provides support for AWS License Manager User Subscriptions. This module is available in the
@@ -48,6 +52,6 @@ require_relative 'aws-sdk-licensemanagerusersubscriptions/customizations'
48
52
  # @!group service
49
53
  module Aws::LicenseManagerUserSubscriptions
50
54
 
51
- GEM_VERSION = '1.0.0'
55
+ GEM_VERSION = '1.2.0'
52
56
 
53
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-licensemanagerusersubscriptions
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-02 00:00:00.000000000 Z
11
+ date: 2022-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.127.0
22
+ version: 3.165.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.127.0
32
+ version: 3.165.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -59,7 +59,11 @@ files:
59
59
  - lib/aws-sdk-licensemanagerusersubscriptions/client.rb
60
60
  - lib/aws-sdk-licensemanagerusersubscriptions/client_api.rb
61
61
  - lib/aws-sdk-licensemanagerusersubscriptions/customizations.rb
62
+ - lib/aws-sdk-licensemanagerusersubscriptions/endpoint_parameters.rb
63
+ - lib/aws-sdk-licensemanagerusersubscriptions/endpoint_provider.rb
64
+ - lib/aws-sdk-licensemanagerusersubscriptions/endpoints.rb
62
65
  - lib/aws-sdk-licensemanagerusersubscriptions/errors.rb
66
+ - lib/aws-sdk-licensemanagerusersubscriptions/plugins/endpoints.rb
63
67
  - lib/aws-sdk-licensemanagerusersubscriptions/resource.rb
64
68
  - lib/aws-sdk-licensemanagerusersubscriptions/types.rb
65
69
  homepage: https://github.com/aws/aws-sdk-ruby