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 +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-licensemanagerlinuxsubscriptions/client.rb +278 -19
- data/lib/aws-sdk-licensemanagerlinuxsubscriptions/client_api.rb +189 -0
- data/lib/aws-sdk-licensemanagerlinuxsubscriptions/endpoint_provider.rb +1 -1
- data/lib/aws-sdk-licensemanagerlinuxsubscriptions/endpoints.rb +98 -0
- data/lib/aws-sdk-licensemanagerlinuxsubscriptions/errors.rb +16 -0
- data/lib/aws-sdk-licensemanagerlinuxsubscriptions/plugins/endpoints.rb +14 -0
- data/lib/aws-sdk-licensemanagerlinuxsubscriptions/types.rb +365 -20
- data/lib/aws-sdk-licensemanagerlinuxsubscriptions.rb +2 -2
- data/sig/client.rbs +81 -0
- data/sig/errors.rbs +3 -0
- data/sig/types.rbs +98 -0
- metadata +4 -4
@@ -16,8 +16,12 @@ module Aws::LicenseManagerLinuxSubscriptions
|
|
16
16
|
Boolean = Shapes::BooleanShape.new(name: 'Boolean')
|
17
17
|
BoxInteger = Shapes::IntegerShape.new(name: 'BoxInteger')
|
18
18
|
BoxLong = Shapes::IntegerShape.new(name: 'BoxLong')
|
19
|
+
DeregisterSubscriptionProviderRequest = Shapes::StructureShape.new(name: 'DeregisterSubscriptionProviderRequest')
|
20
|
+
DeregisterSubscriptionProviderResponse = Shapes::StructureShape.new(name: 'DeregisterSubscriptionProviderResponse')
|
19
21
|
Filter = Shapes::StructureShape.new(name: 'Filter')
|
20
22
|
FilterList = Shapes::ListShape.new(name: 'FilterList')
|
23
|
+
GetRegisteredSubscriptionProviderRequest = Shapes::StructureShape.new(name: 'GetRegisteredSubscriptionProviderRequest')
|
24
|
+
GetRegisteredSubscriptionProviderResponse = Shapes::StructureShape.new(name: 'GetRegisteredSubscriptionProviderResponse')
|
21
25
|
GetServiceSettingsRequest = Shapes::StructureShape.new(name: 'GetServiceSettingsRequest')
|
22
26
|
GetServiceSettingsResponse = Shapes::StructureShape.new(name: 'GetServiceSettingsResponse')
|
23
27
|
Instance = Shapes::StructureShape.new(name: 'Instance')
|
@@ -31,9 +35,20 @@ module Aws::LicenseManagerLinuxSubscriptions
|
|
31
35
|
ListLinuxSubscriptionsRequest = Shapes::StructureShape.new(name: 'ListLinuxSubscriptionsRequest')
|
32
36
|
ListLinuxSubscriptionsRequestNextTokenString = Shapes::StringShape.new(name: 'ListLinuxSubscriptionsRequestNextTokenString')
|
33
37
|
ListLinuxSubscriptionsResponse = Shapes::StructureShape.new(name: 'ListLinuxSubscriptionsResponse')
|
38
|
+
ListRegisteredSubscriptionProvidersRequest = Shapes::StructureShape.new(name: 'ListRegisteredSubscriptionProvidersRequest')
|
39
|
+
ListRegisteredSubscriptionProvidersRequestMaxResultsInteger = Shapes::IntegerShape.new(name: 'ListRegisteredSubscriptionProvidersRequestMaxResultsInteger')
|
40
|
+
ListRegisteredSubscriptionProvidersResponse = Shapes::StructureShape.new(name: 'ListRegisteredSubscriptionProvidersResponse')
|
41
|
+
ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
|
42
|
+
ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
|
34
43
|
Operator = Shapes::StringShape.new(name: 'Operator')
|
35
44
|
OrganizationIntegration = Shapes::StringShape.new(name: 'OrganizationIntegration')
|
36
45
|
ProductCodeList = Shapes::ListShape.new(name: 'ProductCodeList')
|
46
|
+
RegisterSubscriptionProviderRequest = Shapes::StructureShape.new(name: 'RegisterSubscriptionProviderRequest')
|
47
|
+
RegisterSubscriptionProviderResponse = Shapes::StructureShape.new(name: 'RegisterSubscriptionProviderResponse')
|
48
|
+
RegisteredSubscriptionProvider = Shapes::StructureShape.new(name: 'RegisteredSubscriptionProvider')
|
49
|
+
RegisteredSubscriptionProviderList = Shapes::ListShape.new(name: 'RegisteredSubscriptionProviderList')
|
50
|
+
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
51
|
+
SecretArn = Shapes::StringShape.new(name: 'SecretArn')
|
37
52
|
Status = Shapes::StringShape.new(name: 'Status')
|
38
53
|
String = Shapes::StringShape.new(name: 'String')
|
39
54
|
StringList = Shapes::ListShape.new(name: 'StringList')
|
@@ -41,11 +56,26 @@ module Aws::LicenseManagerLinuxSubscriptions
|
|
41
56
|
StringMap = Shapes::MapShape.new(name: 'StringMap')
|
42
57
|
Subscription = Shapes::StructureShape.new(name: 'Subscription')
|
43
58
|
SubscriptionList = Shapes::ListShape.new(name: 'SubscriptionList')
|
59
|
+
SubscriptionProviderArn = Shapes::StringShape.new(name: 'SubscriptionProviderArn')
|
60
|
+
SubscriptionProviderSource = Shapes::StringShape.new(name: 'SubscriptionProviderSource')
|
61
|
+
SubscriptionProviderSourceList = Shapes::ListShape.new(name: 'SubscriptionProviderSourceList')
|
62
|
+
SubscriptionProviderStatus = Shapes::StringShape.new(name: 'SubscriptionProviderStatus')
|
63
|
+
TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
|
64
|
+
TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
|
65
|
+
TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
|
66
|
+
Tags = Shapes::MapShape.new(name: 'Tags')
|
44
67
|
ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
|
68
|
+
UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
|
69
|
+
UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
|
45
70
|
UpdateServiceSettingsRequest = Shapes::StructureShape.new(name: 'UpdateServiceSettingsRequest')
|
46
71
|
UpdateServiceSettingsResponse = Shapes::StructureShape.new(name: 'UpdateServiceSettingsResponse')
|
47
72
|
ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
|
48
73
|
|
74
|
+
DeregisterSubscriptionProviderRequest.add_member(:subscription_provider_arn, Shapes::ShapeRef.new(shape: SubscriptionProviderArn, required: true, location_name: "SubscriptionProviderArn"))
|
75
|
+
DeregisterSubscriptionProviderRequest.struct_class = Types::DeregisterSubscriptionProviderRequest
|
76
|
+
|
77
|
+
DeregisterSubscriptionProviderResponse.struct_class = Types::DeregisterSubscriptionProviderResponse
|
78
|
+
|
49
79
|
Filter.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "Name"))
|
50
80
|
Filter.add_member(:operator, Shapes::ShapeRef.new(shape: Operator, location_name: "Operator"))
|
51
81
|
Filter.add_member(:values, Shapes::ShapeRef.new(shape: StringList, location_name: "Values"))
|
@@ -53,6 +83,17 @@ module Aws::LicenseManagerLinuxSubscriptions
|
|
53
83
|
|
54
84
|
FilterList.member = Shapes::ShapeRef.new(shape: Filter)
|
55
85
|
|
86
|
+
GetRegisteredSubscriptionProviderRequest.add_member(:subscription_provider_arn, Shapes::ShapeRef.new(shape: SubscriptionProviderArn, required: true, location_name: "SubscriptionProviderArn"))
|
87
|
+
GetRegisteredSubscriptionProviderRequest.struct_class = Types::GetRegisteredSubscriptionProviderRequest
|
88
|
+
|
89
|
+
GetRegisteredSubscriptionProviderResponse.add_member(:last_successful_data_retrieval_time, Shapes::ShapeRef.new(shape: String, location_name: "LastSuccessfulDataRetrievalTime"))
|
90
|
+
GetRegisteredSubscriptionProviderResponse.add_member(:secret_arn, Shapes::ShapeRef.new(shape: SecretArn, location_name: "SecretArn"))
|
91
|
+
GetRegisteredSubscriptionProviderResponse.add_member(:subscription_provider_arn, Shapes::ShapeRef.new(shape: SubscriptionProviderArn, location_name: "SubscriptionProviderArn"))
|
92
|
+
GetRegisteredSubscriptionProviderResponse.add_member(:subscription_provider_source, Shapes::ShapeRef.new(shape: SubscriptionProviderSource, location_name: "SubscriptionProviderSource"))
|
93
|
+
GetRegisteredSubscriptionProviderResponse.add_member(:subscription_provider_status, Shapes::ShapeRef.new(shape: SubscriptionProviderStatus, location_name: "SubscriptionProviderStatus"))
|
94
|
+
GetRegisteredSubscriptionProviderResponse.add_member(:subscription_provider_status_message, Shapes::ShapeRef.new(shape: String, location_name: "SubscriptionProviderStatusMessage"))
|
95
|
+
GetRegisteredSubscriptionProviderResponse.struct_class = Types::GetRegisteredSubscriptionProviderResponse
|
96
|
+
|
56
97
|
GetServiceSettingsRequest.struct_class = Types::GetServiceSettingsRequest
|
57
98
|
|
58
99
|
GetServiceSettingsResponse.add_member(:home_regions, Shapes::ShapeRef.new(shape: StringList, location_name: "HomeRegions"))
|
@@ -64,13 +105,18 @@ module Aws::LicenseManagerLinuxSubscriptions
|
|
64
105
|
|
65
106
|
Instance.add_member(:account_id, Shapes::ShapeRef.new(shape: String, location_name: "AccountID"))
|
66
107
|
Instance.add_member(:ami_id, Shapes::ShapeRef.new(shape: String, location_name: "AmiId"))
|
108
|
+
Instance.add_member(:dual_subscription, Shapes::ShapeRef.new(shape: String, location_name: "DualSubscription"))
|
67
109
|
Instance.add_member(:instance_id, Shapes::ShapeRef.new(shape: String, location_name: "InstanceID"))
|
68
110
|
Instance.add_member(:instance_type, Shapes::ShapeRef.new(shape: String, location_name: "InstanceType"))
|
69
111
|
Instance.add_member(:last_updated_time, Shapes::ShapeRef.new(shape: String, location_name: "LastUpdatedTime"))
|
112
|
+
Instance.add_member(:os_version, Shapes::ShapeRef.new(shape: String, location_name: "OsVersion"))
|
70
113
|
Instance.add_member(:product_code, Shapes::ShapeRef.new(shape: ProductCodeList, location_name: "ProductCode"))
|
71
114
|
Instance.add_member(:region, Shapes::ShapeRef.new(shape: String, location_name: "Region"))
|
115
|
+
Instance.add_member(:registered_with_subscription_provider, Shapes::ShapeRef.new(shape: String, location_name: "RegisteredWithSubscriptionProvider"))
|
72
116
|
Instance.add_member(:status, Shapes::ShapeRef.new(shape: String, location_name: "Status"))
|
73
117
|
Instance.add_member(:subscription_name, Shapes::ShapeRef.new(shape: String, location_name: "SubscriptionName"))
|
118
|
+
Instance.add_member(:subscription_provider_create_time, Shapes::ShapeRef.new(shape: String, location_name: "SubscriptionProviderCreateTime"))
|
119
|
+
Instance.add_member(:subscription_provider_update_time, Shapes::ShapeRef.new(shape: String, location_name: "SubscriptionProviderUpdateTime"))
|
74
120
|
Instance.add_member(:usage_operation, Shapes::ShapeRef.new(shape: String, location_name: "UsageOperation"))
|
75
121
|
Instance.struct_class = Types::Instance
|
76
122
|
|
@@ -101,8 +147,46 @@ module Aws::LicenseManagerLinuxSubscriptions
|
|
101
147
|
ListLinuxSubscriptionsResponse.add_member(:subscriptions, Shapes::ShapeRef.new(shape: SubscriptionList, location_name: "Subscriptions"))
|
102
148
|
ListLinuxSubscriptionsResponse.struct_class = Types::ListLinuxSubscriptionsResponse
|
103
149
|
|
150
|
+
ListRegisteredSubscriptionProvidersRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListRegisteredSubscriptionProvidersRequestMaxResultsInteger, location_name: "MaxResults"))
|
151
|
+
ListRegisteredSubscriptionProvidersRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
|
152
|
+
ListRegisteredSubscriptionProvidersRequest.add_member(:subscription_provider_sources, Shapes::ShapeRef.new(shape: SubscriptionProviderSourceList, location_name: "SubscriptionProviderSources"))
|
153
|
+
ListRegisteredSubscriptionProvidersRequest.struct_class = Types::ListRegisteredSubscriptionProvidersRequest
|
154
|
+
|
155
|
+
ListRegisteredSubscriptionProvidersResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
|
156
|
+
ListRegisteredSubscriptionProvidersResponse.add_member(:registered_subscription_providers, Shapes::ShapeRef.new(shape: RegisteredSubscriptionProviderList, location_name: "RegisteredSubscriptionProviders"))
|
157
|
+
ListRegisteredSubscriptionProvidersResponse.struct_class = Types::ListRegisteredSubscriptionProvidersResponse
|
158
|
+
|
159
|
+
ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: SubscriptionProviderArn, required: true, location: "uri", location_name: "resourceArn"))
|
160
|
+
ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
|
161
|
+
|
162
|
+
ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "tags"))
|
163
|
+
ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
|
164
|
+
|
104
165
|
ProductCodeList.member = Shapes::ShapeRef.new(shape: String)
|
105
166
|
|
167
|
+
RegisterSubscriptionProviderRequest.add_member(:secret_arn, Shapes::ShapeRef.new(shape: SecretArn, required: true, location_name: "SecretArn"))
|
168
|
+
RegisterSubscriptionProviderRequest.add_member(:subscription_provider_source, Shapes::ShapeRef.new(shape: SubscriptionProviderSource, required: true, location_name: "SubscriptionProviderSource"))
|
169
|
+
RegisterSubscriptionProviderRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "Tags"))
|
170
|
+
RegisterSubscriptionProviderRequest.struct_class = Types::RegisterSubscriptionProviderRequest
|
171
|
+
|
172
|
+
RegisterSubscriptionProviderResponse.add_member(:subscription_provider_arn, Shapes::ShapeRef.new(shape: String, location_name: "SubscriptionProviderArn"))
|
173
|
+
RegisterSubscriptionProviderResponse.add_member(:subscription_provider_source, Shapes::ShapeRef.new(shape: SubscriptionProviderSource, location_name: "SubscriptionProviderSource"))
|
174
|
+
RegisterSubscriptionProviderResponse.add_member(:subscription_provider_status, Shapes::ShapeRef.new(shape: SubscriptionProviderStatus, location_name: "SubscriptionProviderStatus"))
|
175
|
+
RegisterSubscriptionProviderResponse.struct_class = Types::RegisterSubscriptionProviderResponse
|
176
|
+
|
177
|
+
RegisteredSubscriptionProvider.add_member(:last_successful_data_retrieval_time, Shapes::ShapeRef.new(shape: String, location_name: "LastSuccessfulDataRetrievalTime"))
|
178
|
+
RegisteredSubscriptionProvider.add_member(:secret_arn, Shapes::ShapeRef.new(shape: SecretArn, location_name: "SecretArn"))
|
179
|
+
RegisteredSubscriptionProvider.add_member(:subscription_provider_arn, Shapes::ShapeRef.new(shape: SubscriptionProviderArn, location_name: "SubscriptionProviderArn"))
|
180
|
+
RegisteredSubscriptionProvider.add_member(:subscription_provider_source, Shapes::ShapeRef.new(shape: SubscriptionProviderSource, location_name: "SubscriptionProviderSource"))
|
181
|
+
RegisteredSubscriptionProvider.add_member(:subscription_provider_status, Shapes::ShapeRef.new(shape: SubscriptionProviderStatus, location_name: "SubscriptionProviderStatus"))
|
182
|
+
RegisteredSubscriptionProvider.add_member(:subscription_provider_status_message, Shapes::ShapeRef.new(shape: String, location_name: "SubscriptionProviderStatusMessage"))
|
183
|
+
RegisteredSubscriptionProvider.struct_class = Types::RegisteredSubscriptionProvider
|
184
|
+
|
185
|
+
RegisteredSubscriptionProviderList.member = Shapes::ShapeRef.new(shape: RegisteredSubscriptionProvider)
|
186
|
+
|
187
|
+
ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
188
|
+
ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
|
189
|
+
|
106
190
|
StringList.member = Shapes::ShapeRef.new(shape: StringListMemberString)
|
107
191
|
|
108
192
|
StringMap.key = Shapes::ShapeRef.new(shape: String)
|
@@ -115,9 +199,28 @@ module Aws::LicenseManagerLinuxSubscriptions
|
|
115
199
|
|
116
200
|
SubscriptionList.member = Shapes::ShapeRef.new(shape: Subscription)
|
117
201
|
|
202
|
+
SubscriptionProviderSourceList.member = Shapes::ShapeRef.new(shape: SubscriptionProviderSource)
|
203
|
+
|
204
|
+
TagKeyList.member = Shapes::ShapeRef.new(shape: String)
|
205
|
+
|
206
|
+
TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: SubscriptionProviderArn, required: true, location: "uri", location_name: "resourceArn"))
|
207
|
+
TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, required: true, location_name: "tags"))
|
208
|
+
TagResourceRequest.struct_class = Types::TagResourceRequest
|
209
|
+
|
210
|
+
TagResourceResponse.struct_class = Types::TagResourceResponse
|
211
|
+
|
212
|
+
Tags.key = Shapes::ShapeRef.new(shape: String)
|
213
|
+
Tags.value = Shapes::ShapeRef.new(shape: String)
|
214
|
+
|
118
215
|
ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
119
216
|
ThrottlingException.struct_class = Types::ThrottlingException
|
120
217
|
|
218
|
+
UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: SubscriptionProviderArn, required: true, location: "uri", location_name: "resourceArn"))
|
219
|
+
UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location: "querystring", location_name: "tagKeys"))
|
220
|
+
UntagResourceRequest.struct_class = Types::UntagResourceRequest
|
221
|
+
|
222
|
+
UntagResourceResponse.struct_class = Types::UntagResourceResponse
|
223
|
+
|
121
224
|
UpdateServiceSettingsRequest.add_member(:allow_update, Shapes::ShapeRef.new(shape: Boolean, location_name: "AllowUpdate"))
|
122
225
|
UpdateServiceSettingsRequest.add_member(:linux_subscriptions_discovery, Shapes::ShapeRef.new(shape: LinuxSubscriptionsDiscovery, required: true, location_name: "LinuxSubscriptionsDiscovery"))
|
123
226
|
UpdateServiceSettingsRequest.add_member(:linux_subscriptions_discovery_settings, Shapes::ShapeRef.new(shape: LinuxSubscriptionsDiscoverySettings, required: true, location_name: "LinuxSubscriptionsDiscoverySettings"))
|
@@ -141,9 +244,11 @@ module Aws::LicenseManagerLinuxSubscriptions
|
|
141
244
|
|
142
245
|
api.metadata = {
|
143
246
|
"apiVersion" => "2018-05-10",
|
247
|
+
"auth" => ["aws.auth#sigv4"],
|
144
248
|
"endpointPrefix" => "license-manager-linux-subscriptions",
|
145
249
|
"jsonVersion" => "1.1",
|
146
250
|
"protocol" => "rest-json",
|
251
|
+
"protocols" => ["rest-json"],
|
147
252
|
"serviceFullName" => "AWS License Manager Linux Subscriptions",
|
148
253
|
"serviceId" => "License Manager Linux Subscriptions",
|
149
254
|
"signatureVersion" => "v4",
|
@@ -151,6 +256,30 @@ module Aws::LicenseManagerLinuxSubscriptions
|
|
151
256
|
"uid" => "license-manager-linux-subscriptions-2018-05-10",
|
152
257
|
}
|
153
258
|
|
259
|
+
api.add_operation(:deregister_subscription_provider, Seahorse::Model::Operation.new.tap do |o|
|
260
|
+
o.name = "DeregisterSubscriptionProvider"
|
261
|
+
o.http_method = "POST"
|
262
|
+
o.http_request_uri = "/subscription/DeregisterSubscriptionProvider"
|
263
|
+
o.input = Shapes::ShapeRef.new(shape: DeregisterSubscriptionProviderRequest)
|
264
|
+
o.output = Shapes::ShapeRef.new(shape: DeregisterSubscriptionProviderResponse)
|
265
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
266
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
267
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
268
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
269
|
+
end)
|
270
|
+
|
271
|
+
api.add_operation(:get_registered_subscription_provider, Seahorse::Model::Operation.new.tap do |o|
|
272
|
+
o.name = "GetRegisteredSubscriptionProvider"
|
273
|
+
o.http_method = "POST"
|
274
|
+
o.http_request_uri = "/subscription/GetRegisteredSubscriptionProvider"
|
275
|
+
o.input = Shapes::ShapeRef.new(shape: GetRegisteredSubscriptionProviderRequest)
|
276
|
+
o.output = Shapes::ShapeRef.new(shape: GetRegisteredSubscriptionProviderResponse)
|
277
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
278
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
279
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
280
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
281
|
+
end)
|
282
|
+
|
154
283
|
api.add_operation(:get_service_settings, Seahorse::Model::Operation.new.tap do |o|
|
155
284
|
o.name = "GetServiceSettings"
|
156
285
|
o.http_method = "POST"
|
@@ -196,6 +325,66 @@ module Aws::LicenseManagerLinuxSubscriptions
|
|
196
325
|
)
|
197
326
|
end)
|
198
327
|
|
328
|
+
api.add_operation(:list_registered_subscription_providers, Seahorse::Model::Operation.new.tap do |o|
|
329
|
+
o.name = "ListRegisteredSubscriptionProviders"
|
330
|
+
o.http_method = "POST"
|
331
|
+
o.http_request_uri = "/subscription/ListRegisteredSubscriptionProviders"
|
332
|
+
o.input = Shapes::ShapeRef.new(shape: ListRegisteredSubscriptionProvidersRequest)
|
333
|
+
o.output = Shapes::ShapeRef.new(shape: ListRegisteredSubscriptionProvidersResponse)
|
334
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
335
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
336
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
337
|
+
o[:pager] = Aws::Pager.new(
|
338
|
+
limit_key: "max_results",
|
339
|
+
tokens: {
|
340
|
+
"next_token" => "next_token"
|
341
|
+
}
|
342
|
+
)
|
343
|
+
end)
|
344
|
+
|
345
|
+
api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
|
346
|
+
o.name = "ListTagsForResource"
|
347
|
+
o.http_method = "GET"
|
348
|
+
o.http_request_uri = "/tags/{resourceArn}"
|
349
|
+
o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
|
350
|
+
o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
|
351
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
352
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
353
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
354
|
+
end)
|
355
|
+
|
356
|
+
api.add_operation(:register_subscription_provider, Seahorse::Model::Operation.new.tap do |o|
|
357
|
+
o.name = "RegisterSubscriptionProvider"
|
358
|
+
o.http_method = "POST"
|
359
|
+
o.http_request_uri = "/subscription/RegisterSubscriptionProvider"
|
360
|
+
o.input = Shapes::ShapeRef.new(shape: RegisterSubscriptionProviderRequest)
|
361
|
+
o.output = Shapes::ShapeRef.new(shape: RegisterSubscriptionProviderResponse)
|
362
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
363
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
364
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
365
|
+
end)
|
366
|
+
|
367
|
+
api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
|
368
|
+
o.name = "TagResource"
|
369
|
+
o.http_method = "PUT"
|
370
|
+
o.http_request_uri = "/tags/{resourceArn}"
|
371
|
+
o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
|
372
|
+
o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
|
373
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
374
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
375
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
376
|
+
end)
|
377
|
+
|
378
|
+
api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
|
379
|
+
o.name = "UntagResource"
|
380
|
+
o.http_method = "DELETE"
|
381
|
+
o.http_request_uri = "/tags/{resourceArn}"
|
382
|
+
o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
|
383
|
+
o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
|
384
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
385
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
386
|
+
end)
|
387
|
+
|
199
388
|
api.add_operation(:update_service_settings, Seahorse::Model::Operation.new.tap do |o|
|
200
389
|
o.name = "UpdateServiceSettings"
|
201
390
|
o.http_method = "POST"
|
@@ -32,7 +32,7 @@ module Aws::LicenseManagerLinuxSubscriptions
|
|
32
32
|
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
33
|
end
|
34
34
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
35
|
-
if Aws::Endpoints::Matchers.boolean_equals?(
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
36
36
|
return Aws::Endpoints::Endpoint.new(url: "https://license-manager-linux-subscriptions-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
37
37
|
end
|
38
38
|
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
@@ -12,6 +12,34 @@ module Aws::LicenseManagerLinuxSubscriptions
|
|
12
12
|
# @api private
|
13
13
|
module Endpoints
|
14
14
|
|
15
|
+
class DeregisterSubscriptionProvider
|
16
|
+
def self.build(context)
|
17
|
+
unless context.config.regional_endpoint
|
18
|
+
endpoint = context.config.endpoint.to_s
|
19
|
+
end
|
20
|
+
Aws::LicenseManagerLinuxSubscriptions::EndpointParameters.new(
|
21
|
+
region: context.config.region,
|
22
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
23
|
+
use_fips: context.config.use_fips_endpoint,
|
24
|
+
endpoint: endpoint,
|
25
|
+
)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
class GetRegisteredSubscriptionProvider
|
30
|
+
def self.build(context)
|
31
|
+
unless context.config.regional_endpoint
|
32
|
+
endpoint = context.config.endpoint.to_s
|
33
|
+
end
|
34
|
+
Aws::LicenseManagerLinuxSubscriptions::EndpointParameters.new(
|
35
|
+
region: context.config.region,
|
36
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
37
|
+
use_fips: context.config.use_fips_endpoint,
|
38
|
+
endpoint: endpoint,
|
39
|
+
)
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
15
43
|
class GetServiceSettings
|
16
44
|
def self.build(context)
|
17
45
|
unless context.config.regional_endpoint
|
@@ -54,6 +82,76 @@ module Aws::LicenseManagerLinuxSubscriptions
|
|
54
82
|
end
|
55
83
|
end
|
56
84
|
|
85
|
+
class ListRegisteredSubscriptionProviders
|
86
|
+
def self.build(context)
|
87
|
+
unless context.config.regional_endpoint
|
88
|
+
endpoint = context.config.endpoint.to_s
|
89
|
+
end
|
90
|
+
Aws::LicenseManagerLinuxSubscriptions::EndpointParameters.new(
|
91
|
+
region: context.config.region,
|
92
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
93
|
+
use_fips: context.config.use_fips_endpoint,
|
94
|
+
endpoint: endpoint,
|
95
|
+
)
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
class ListTagsForResource
|
100
|
+
def self.build(context)
|
101
|
+
unless context.config.regional_endpoint
|
102
|
+
endpoint = context.config.endpoint.to_s
|
103
|
+
end
|
104
|
+
Aws::LicenseManagerLinuxSubscriptions::EndpointParameters.new(
|
105
|
+
region: context.config.region,
|
106
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
107
|
+
use_fips: context.config.use_fips_endpoint,
|
108
|
+
endpoint: endpoint,
|
109
|
+
)
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
113
|
+
class RegisterSubscriptionProvider
|
114
|
+
def self.build(context)
|
115
|
+
unless context.config.regional_endpoint
|
116
|
+
endpoint = context.config.endpoint.to_s
|
117
|
+
end
|
118
|
+
Aws::LicenseManagerLinuxSubscriptions::EndpointParameters.new(
|
119
|
+
region: context.config.region,
|
120
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
121
|
+
use_fips: context.config.use_fips_endpoint,
|
122
|
+
endpoint: endpoint,
|
123
|
+
)
|
124
|
+
end
|
125
|
+
end
|
126
|
+
|
127
|
+
class TagResource
|
128
|
+
def self.build(context)
|
129
|
+
unless context.config.regional_endpoint
|
130
|
+
endpoint = context.config.endpoint.to_s
|
131
|
+
end
|
132
|
+
Aws::LicenseManagerLinuxSubscriptions::EndpointParameters.new(
|
133
|
+
region: context.config.region,
|
134
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
135
|
+
use_fips: context.config.use_fips_endpoint,
|
136
|
+
endpoint: endpoint,
|
137
|
+
)
|
138
|
+
end
|
139
|
+
end
|
140
|
+
|
141
|
+
class UntagResource
|
142
|
+
def self.build(context)
|
143
|
+
unless context.config.regional_endpoint
|
144
|
+
endpoint = context.config.endpoint.to_s
|
145
|
+
end
|
146
|
+
Aws::LicenseManagerLinuxSubscriptions::EndpointParameters.new(
|
147
|
+
region: context.config.region,
|
148
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
149
|
+
use_fips: context.config.use_fips_endpoint,
|
150
|
+
endpoint: endpoint,
|
151
|
+
)
|
152
|
+
end
|
153
|
+
end
|
154
|
+
|
57
155
|
class UpdateServiceSettings
|
58
156
|
def self.build(context)
|
59
157
|
unless context.config.regional_endpoint
|
@@ -28,6 +28,7 @@ module Aws::LicenseManagerLinuxSubscriptions
|
|
28
28
|
#
|
29
29
|
# ## Error Classes
|
30
30
|
# * {InternalServerException}
|
31
|
+
# * {ResourceNotFoundException}
|
31
32
|
# * {ThrottlingException}
|
32
33
|
# * {ValidationException}
|
33
34
|
#
|
@@ -52,6 +53,21 @@ module Aws::LicenseManagerLinuxSubscriptions
|
|
52
53
|
end
|
53
54
|
end
|
54
55
|
|
56
|
+
class ResourceNotFoundException < ServiceError
|
57
|
+
|
58
|
+
# @param [Seahorse::Client::RequestContext] context
|
59
|
+
# @param [String] message
|
60
|
+
# @param [Aws::LicenseManagerLinuxSubscriptions::Types::ResourceNotFoundException] data
|
61
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
62
|
+
super(context, message, data)
|
63
|
+
end
|
64
|
+
|
65
|
+
# @return [String]
|
66
|
+
def message
|
67
|
+
@message || @data[:message]
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
55
71
|
class ThrottlingException < ServiceError
|
56
72
|
|
57
73
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -58,12 +58,26 @@ module Aws::LicenseManagerLinuxSubscriptions
|
|
58
58
|
|
59
59
|
def parameters_for_operation(context)
|
60
60
|
case context.operation_name
|
61
|
+
when :deregister_subscription_provider
|
62
|
+
Aws::LicenseManagerLinuxSubscriptions::Endpoints::DeregisterSubscriptionProvider.build(context)
|
63
|
+
when :get_registered_subscription_provider
|
64
|
+
Aws::LicenseManagerLinuxSubscriptions::Endpoints::GetRegisteredSubscriptionProvider.build(context)
|
61
65
|
when :get_service_settings
|
62
66
|
Aws::LicenseManagerLinuxSubscriptions::Endpoints::GetServiceSettings.build(context)
|
63
67
|
when :list_linux_subscription_instances
|
64
68
|
Aws::LicenseManagerLinuxSubscriptions::Endpoints::ListLinuxSubscriptionInstances.build(context)
|
65
69
|
when :list_linux_subscriptions
|
66
70
|
Aws::LicenseManagerLinuxSubscriptions::Endpoints::ListLinuxSubscriptions.build(context)
|
71
|
+
when :list_registered_subscription_providers
|
72
|
+
Aws::LicenseManagerLinuxSubscriptions::Endpoints::ListRegisteredSubscriptionProviders.build(context)
|
73
|
+
when :list_tags_for_resource
|
74
|
+
Aws::LicenseManagerLinuxSubscriptions::Endpoints::ListTagsForResource.build(context)
|
75
|
+
when :register_subscription_provider
|
76
|
+
Aws::LicenseManagerLinuxSubscriptions::Endpoints::RegisterSubscriptionProvider.build(context)
|
77
|
+
when :tag_resource
|
78
|
+
Aws::LicenseManagerLinuxSubscriptions::Endpoints::TagResource.build(context)
|
79
|
+
when :untag_resource
|
80
|
+
Aws::LicenseManagerLinuxSubscriptions::Endpoints::UntagResource.build(context)
|
67
81
|
when :update_service_settings
|
68
82
|
Aws::LicenseManagerLinuxSubscriptions::Endpoints::UpdateServiceSettings.build(context)
|
69
83
|
end
|