aws-sdk-servicequotas 1.30.0 → 1.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-servicequotas/client.rb +259 -77
- data/lib/aws-sdk-servicequotas/client_api.rb +20 -0
- data/lib/aws-sdk-servicequotas/endpoint_provider.rb +29 -26
- data/lib/aws-sdk-servicequotas/types.rb +340 -102
- data/lib/aws-sdk-servicequotas.rb +1 -1
- metadata +4 -4
@@ -16,6 +16,7 @@ module Aws::ServiceQuotas
|
|
16
16
|
AWSServiceAccessNotEnabledException = Shapes::StructureShape.new(name: 'AWSServiceAccessNotEnabledException')
|
17
17
|
AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
|
18
18
|
AmazonResourceName = Shapes::StringShape.new(name: 'AmazonResourceName')
|
19
|
+
AppliedLevelEnum = Shapes::StringShape.new(name: 'AppliedLevelEnum')
|
19
20
|
AssociateServiceQuotaTemplateRequest = Shapes::StructureShape.new(name: 'AssociateServiceQuotaTemplateRequest')
|
20
21
|
AssociateServiceQuotaTemplateResponse = Shapes::StructureShape.new(name: 'AssociateServiceQuotaTemplateResponse')
|
21
22
|
AwsRegion = Shapes::StringShape.new(name: 'AwsRegion')
|
@@ -77,6 +78,10 @@ module Aws::ServiceQuotas
|
|
77
78
|
QuotaAdjustable = Shapes::BooleanShape.new(name: 'QuotaAdjustable')
|
78
79
|
QuotaArn = Shapes::StringShape.new(name: 'QuotaArn')
|
79
80
|
QuotaCode = Shapes::StringShape.new(name: 'QuotaCode')
|
81
|
+
QuotaContextId = Shapes::StringShape.new(name: 'QuotaContextId')
|
82
|
+
QuotaContextInfo = Shapes::StructureShape.new(name: 'QuotaContextInfo')
|
83
|
+
QuotaContextScope = Shapes::StringShape.new(name: 'QuotaContextScope')
|
84
|
+
QuotaContextScopeType = Shapes::StringShape.new(name: 'QuotaContextScopeType')
|
80
85
|
QuotaExceededException = Shapes::StructureShape.new(name: 'QuotaExceededException')
|
81
86
|
QuotaMetricName = Shapes::StringShape.new(name: 'QuotaMetricName')
|
82
87
|
QuotaMetricNamespace = Shapes::StringShape.new(name: 'QuotaMetricNamespace')
|
@@ -172,6 +177,7 @@ module Aws::ServiceQuotas
|
|
172
177
|
|
173
178
|
GetServiceQuotaRequest.add_member(:service_code, Shapes::ShapeRef.new(shape: ServiceCode, required: true, location_name: "ServiceCode"))
|
174
179
|
GetServiceQuotaRequest.add_member(:quota_code, Shapes::ShapeRef.new(shape: QuotaCode, required: true, location_name: "QuotaCode"))
|
180
|
+
GetServiceQuotaRequest.add_member(:context_id, Shapes::ShapeRef.new(shape: QuotaContextId, location_name: "ContextId"))
|
175
181
|
GetServiceQuotaRequest.struct_class = Types::GetServiceQuotaRequest
|
176
182
|
|
177
183
|
GetServiceQuotaResponse.add_member(:quota, Shapes::ShapeRef.new(shape: ServiceQuota, location_name: "Quota"))
|
@@ -204,6 +210,7 @@ module Aws::ServiceQuotas
|
|
204
210
|
ListRequestedServiceQuotaChangeHistoryByQuotaRequest.add_member(:status, Shapes::ShapeRef.new(shape: RequestStatus, location_name: "Status"))
|
205
211
|
ListRequestedServiceQuotaChangeHistoryByQuotaRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
206
212
|
ListRequestedServiceQuotaChangeHistoryByQuotaRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
|
213
|
+
ListRequestedServiceQuotaChangeHistoryByQuotaRequest.add_member(:quota_requested_at_level, Shapes::ShapeRef.new(shape: AppliedLevelEnum, location_name: "QuotaRequestedAtLevel"))
|
207
214
|
ListRequestedServiceQuotaChangeHistoryByQuotaRequest.struct_class = Types::ListRequestedServiceQuotaChangeHistoryByQuotaRequest
|
208
215
|
|
209
216
|
ListRequestedServiceQuotaChangeHistoryByQuotaResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
@@ -214,6 +221,7 @@ module Aws::ServiceQuotas
|
|
214
221
|
ListRequestedServiceQuotaChangeHistoryRequest.add_member(:status, Shapes::ShapeRef.new(shape: RequestStatus, location_name: "Status"))
|
215
222
|
ListRequestedServiceQuotaChangeHistoryRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
216
223
|
ListRequestedServiceQuotaChangeHistoryRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
|
224
|
+
ListRequestedServiceQuotaChangeHistoryRequest.add_member(:quota_requested_at_level, Shapes::ShapeRef.new(shape: AppliedLevelEnum, location_name: "QuotaRequestedAtLevel"))
|
217
225
|
ListRequestedServiceQuotaChangeHistoryRequest.struct_class = Types::ListRequestedServiceQuotaChangeHistoryRequest
|
218
226
|
|
219
227
|
ListRequestedServiceQuotaChangeHistoryResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
@@ -233,6 +241,8 @@ module Aws::ServiceQuotas
|
|
233
241
|
ListServiceQuotasRequest.add_member(:service_code, Shapes::ShapeRef.new(shape: ServiceCode, required: true, location_name: "ServiceCode"))
|
234
242
|
ListServiceQuotasRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
235
243
|
ListServiceQuotasRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
|
244
|
+
ListServiceQuotasRequest.add_member(:quota_code, Shapes::ShapeRef.new(shape: QuotaCode, location_name: "QuotaCode"))
|
245
|
+
ListServiceQuotasRequest.add_member(:quota_applied_at_level, Shapes::ShapeRef.new(shape: AppliedLevelEnum, location_name: "QuotaAppliedAtLevel"))
|
236
246
|
ListServiceQuotasRequest.struct_class = Types::ListServiceQuotasRequest
|
237
247
|
|
238
248
|
ListServiceQuotasResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
@@ -282,6 +292,11 @@ module Aws::ServiceQuotas
|
|
282
292
|
PutServiceQuotaIncreaseRequestIntoTemplateResponse.add_member(:service_quota_increase_request_in_template, Shapes::ShapeRef.new(shape: ServiceQuotaIncreaseRequestInTemplate, location_name: "ServiceQuotaIncreaseRequestInTemplate"))
|
283
293
|
PutServiceQuotaIncreaseRequestIntoTemplateResponse.struct_class = Types::PutServiceQuotaIncreaseRequestIntoTemplateResponse
|
284
294
|
|
295
|
+
QuotaContextInfo.add_member(:context_scope, Shapes::ShapeRef.new(shape: QuotaContextScope, location_name: "ContextScope"))
|
296
|
+
QuotaContextInfo.add_member(:context_scope_type, Shapes::ShapeRef.new(shape: QuotaContextScopeType, location_name: "ContextScopeType"))
|
297
|
+
QuotaContextInfo.add_member(:context_id, Shapes::ShapeRef.new(shape: QuotaContextId, location_name: "ContextId"))
|
298
|
+
QuotaContextInfo.struct_class = Types::QuotaContextInfo
|
299
|
+
|
285
300
|
QuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "Message"))
|
286
301
|
QuotaExceededException.struct_class = Types::QuotaExceededException
|
287
302
|
|
@@ -292,6 +307,7 @@ module Aws::ServiceQuotas
|
|
292
307
|
RequestServiceQuotaIncreaseRequest.add_member(:service_code, Shapes::ShapeRef.new(shape: ServiceCode, required: true, location_name: "ServiceCode"))
|
293
308
|
RequestServiceQuotaIncreaseRequest.add_member(:quota_code, Shapes::ShapeRef.new(shape: QuotaCode, required: true, location_name: "QuotaCode"))
|
294
309
|
RequestServiceQuotaIncreaseRequest.add_member(:desired_value, Shapes::ShapeRef.new(shape: QuotaValue, required: true, location_name: "DesiredValue"))
|
310
|
+
RequestServiceQuotaIncreaseRequest.add_member(:context_id, Shapes::ShapeRef.new(shape: QuotaContextId, location_name: "ContextId"))
|
295
311
|
RequestServiceQuotaIncreaseRequest.struct_class = Types::RequestServiceQuotaIncreaseRequest
|
296
312
|
|
297
313
|
RequestServiceQuotaIncreaseResponse.add_member(:requested_quota, Shapes::ShapeRef.new(shape: RequestedServiceQuotaChange, location_name: "RequestedQuota"))
|
@@ -311,6 +327,8 @@ module Aws::ServiceQuotas
|
|
311
327
|
RequestedServiceQuotaChange.add_member(:quota_arn, Shapes::ShapeRef.new(shape: QuotaArn, location_name: "QuotaArn"))
|
312
328
|
RequestedServiceQuotaChange.add_member(:global_quota, Shapes::ShapeRef.new(shape: GlobalQuota, location_name: "GlobalQuota"))
|
313
329
|
RequestedServiceQuotaChange.add_member(:unit, Shapes::ShapeRef.new(shape: QuotaUnit, location_name: "Unit"))
|
330
|
+
RequestedServiceQuotaChange.add_member(:quota_requested_at_level, Shapes::ShapeRef.new(shape: AppliedLevelEnum, location_name: "QuotaRequestedAtLevel"))
|
331
|
+
RequestedServiceQuotaChange.add_member(:quota_context, Shapes::ShapeRef.new(shape: QuotaContextInfo, location_name: "QuotaContext"))
|
314
332
|
RequestedServiceQuotaChange.struct_class = Types::RequestedServiceQuotaChange
|
315
333
|
|
316
334
|
RequestedServiceQuotaChangeHistoryListDefinition.member = Shapes::ShapeRef.new(shape: RequestedServiceQuotaChange)
|
@@ -339,6 +357,8 @@ module Aws::ServiceQuotas
|
|
339
357
|
ServiceQuota.add_member(:usage_metric, Shapes::ShapeRef.new(shape: MetricInfo, location_name: "UsageMetric"))
|
340
358
|
ServiceQuota.add_member(:period, Shapes::ShapeRef.new(shape: QuotaPeriod, location_name: "Period"))
|
341
359
|
ServiceQuota.add_member(:error_reason, Shapes::ShapeRef.new(shape: ErrorReason, location_name: "ErrorReason"))
|
360
|
+
ServiceQuota.add_member(:quota_applied_at_level, Shapes::ShapeRef.new(shape: AppliedLevelEnum, location_name: "QuotaAppliedAtLevel"))
|
361
|
+
ServiceQuota.add_member(:quota_context, Shapes::ShapeRef.new(shape: QuotaContextInfo, location_name: "QuotaContext"))
|
342
362
|
ServiceQuota.struct_class = Types::ServiceQuota
|
343
363
|
|
344
364
|
ServiceQuotaIncreaseRequestInTemplate.add_member(:service_code, Shapes::ShapeRef.new(shape: ServiceCode, location_name: "ServiceCode"))
|
@@ -14,39 +14,42 @@ module Aws::ServiceQuotas
|
|
14
14
|
use_dual_stack = parameters.use_dual_stack
|
15
15
|
use_fips = parameters.use_fips
|
16
16
|
endpoint = parameters.endpoint
|
17
|
-
if
|
18
|
-
if Aws::Endpoints::Matchers.
|
19
|
-
|
20
|
-
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
21
|
-
end
|
22
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
23
|
-
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
24
|
-
end
|
25
|
-
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
17
|
+
if Aws::Endpoints::Matchers.set?(endpoint)
|
18
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
19
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
26
20
|
end
|
27
|
-
if Aws::Endpoints::Matchers.boolean_equals?(
|
28
|
-
|
29
|
-
return Aws::Endpoints::Endpoint.new(url: "https://servicequotas-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
30
|
-
end
|
31
|
-
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
21
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
22
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
32
23
|
end
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
24
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
25
|
+
end
|
26
|
+
if Aws::Endpoints::Matchers.set?(region)
|
27
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
28
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
29
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
30
|
+
return Aws::Endpoints::Endpoint.new(url: "https://servicequotas-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
37
31
|
end
|
38
|
-
|
32
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
39
33
|
end
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
34
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
36
|
+
if Aws::Endpoints::Matchers.string_equals?("aws-us-gov", Aws::Endpoints::Matchers.attr(partition_result, "name"))
|
37
|
+
return Aws::Endpoints::Endpoint.new(url: "https://servicequotas.#{region}.amazonaws.com", headers: {}, properties: {})
|
38
|
+
end
|
39
|
+
return Aws::Endpoints::Endpoint.new(url: "https://servicequotas-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
40
|
+
end
|
41
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
42
|
+
end
|
43
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
44
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
45
|
+
return Aws::Endpoints::Endpoint.new(url: "https://servicequotas.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
46
|
+
end
|
47
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
45
48
|
end
|
46
|
-
|
49
|
+
return Aws::Endpoints::Endpoint.new(url: "https://servicequotas.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
47
50
|
end
|
48
|
-
return Aws::Endpoints::Endpoint.new(url: "https://servicequotas.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
49
51
|
end
|
52
|
+
raise ArgumentError, "Invalid Configuration: Missing Region"
|
50
53
|
raise ArgumentError, 'No endpoint could be resolved'
|
51
54
|
|
52
55
|
end
|