Skip to content

Commit 84be17d

Browse files
Add new optional SupportCaseAllowed query parameter to the RequestServiceQuotaIncrease API
1 parent 6295b5d commit 84be17d

25 files changed

+427
-186
lines changed

generator/ServiceModels/service-quotas/service-quotas-2019-06-24.api.json

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@
55
"endpointPrefix":"servicequotas",
66
"jsonVersion":"1.1",
77
"protocol":"json",
8+
"protocols":["json"],
89
"serviceFullName":"Service Quotas",
910
"serviceId":"Service Quotas",
1011
"signatureVersion":"v4",
1112
"targetPrefix":"ServiceQuotasV20190624",
12-
"uid":"service-quotas-2019-06-24"
13+
"uid":"service-quotas-2019-06-24",
14+
"auth":["aws.auth#sigv4"]
1315
},
1416
"operations":{
1517
"AssociateServiceQuotaTemplate":{
@@ -789,6 +791,12 @@
789791
]
790792
},
791793
"QuotaContextScopeType":{"type":"string"},
794+
"QuotaDescription":{
795+
"type":"string",
796+
"max":350,
797+
"min":0,
798+
"pattern":"^.{0,350}$"
799+
},
792800
"QuotaExceededException":{
793801
"type":"structure",
794802
"members":{
@@ -829,7 +837,8 @@
829837
"ServiceCode":{"shape":"ServiceCode"},
830838
"QuotaCode":{"shape":"QuotaCode"},
831839
"DesiredValue":{"shape":"QuotaValue"},
832-
"ContextId":{"shape":"QuotaContextId"}
840+
"ContextId":{"shape":"QuotaContextId"},
841+
"SupportCaseAllowed":{"shape":"SupportCaseAllowed"}
833842
}
834843
},
835844
"RequestServiceQuotaIncreaseResponse":{
@@ -925,7 +934,8 @@
925934
"Period":{"shape":"QuotaPeriod"},
926935
"ErrorReason":{"shape":"ErrorReason"},
927936
"QuotaAppliedAtLevel":{"shape":"AppliedLevelEnum"},
928-
"QuotaContext":{"shape":"QuotaContextInfo"}
937+
"QuotaContext":{"shape":"QuotaContextInfo"},
938+
"Description":{"shape":"QuotaDescription"}
929939
}
930940
},
931941
"ServiceQuotaIncreaseRequestInTemplate":{
@@ -969,6 +979,7 @@
969979
"min":1,
970980
"pattern":"(Sum|Maximum)"
971981
},
982+
"SupportCaseAllowed":{"type":"boolean"},
972983
"Tag":{
973984
"type":"structure",
974985
"required":[

generator/ServiceModels/service-quotas/service-quotas-2019-06-24.docs.json

Lines changed: 35 additions & 23 deletions
Large diffs are not rendered by default.

generator/ServiceModels/service-quotas/service-quotas-2019-06-24.normal.json

Lines changed: 41 additions & 24 deletions
Large diffs are not rendered by default.

sdk/code-analysis/ServiceAnalysis/ServiceQuotas/Generated/PropertyValueRules.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,12 @@
297297
<max>63</max>
298298
<pattern>[a-zA-Z][a-zA-Z0-9-]{1,63}</pattern>
299299
</property-value-rule>
300+
<property-value-rule>
301+
<property>Amazon.ServiceQuotas.Model.ServiceQuota.Description</property>
302+
<min>0</min>
303+
<max>350</max>
304+
<pattern>^.{0,350}$</pattern>
305+
</property-value-rule>
300306
<property-value-rule>
301307
<property>Amazon.ServiceQuotas.Model.ServiceQuota.QuotaCode</property>
302308
<min>1</min>

sdk/src/Services/ServiceQuotas/Generated/Model/ErrorReason.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,16 @@ public partial class ErrorReason
4646
/// <para>
4747
/// <c>DEPENDENCY_ACCESS_DENIED_ERROR</c> - The caller does not have the required permissions
4848
/// to complete the action. To resolve the error, you must have permission to access the
49-
/// Amazon Web Service or quota.
49+
/// Amazon Web Services service or quota.
5050
/// </para>
5151
/// </li> <li>
5252
/// <para>
53-
/// <c>DEPENDENCY_THROTTLING_ERROR</c> - The Amazon Web Service is throttling Service
54-
/// Quotas.
53+
/// <c>DEPENDENCY_THROTTLING_ERROR</c> - The Amazon Web Services service is throttling
54+
/// Service Quotas.
5555
/// </para>
5656
/// </li> <li>
5757
/// <para>
58-
/// <c>DEPENDENCY_SERVICE_ERROR</c> - The Amazon Web Service is not available.
58+
/// <c>DEPENDENCY_SERVICE_ERROR</c> - The Amazon Web Services service is not available.
5959
/// </para>
6060
/// </li> <li>
6161
/// <para>

sdk/src/Services/ServiceQuotas/Generated/Model/GetServiceQuotaRequest.cs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ namespace Amazon.ServiceQuotas.Model
3131
{
3232
/// <summary>
3333
/// Container for the parameters to the GetServiceQuota operation.
34-
/// Retrieves the applied quota value for the specified quota. For some quotas, only the
35-
/// default values are available. If the applied quota value is not available for a quota,
36-
/// the quota is not retrieved.
34+
/// Retrieves the applied quota value for the specified account-level or resource-level
35+
/// quota. For some quotas, only the default values are available. If the applied quota
36+
/// value is not available for a quota, the quota is not retrieved.
3737
/// </summary>
3838
public partial class GetServiceQuotaRequest : AmazonServiceQuotasRequest
3939
{
@@ -44,9 +44,7 @@ public partial class GetServiceQuotaRequest : AmazonServiceQuotasRequest
4444
/// <summary>
4545
/// Gets and sets the property ContextId.
4646
/// <para>
47-
/// Specifies the Amazon Web Services account or resource to which the quota applies.
48-
/// The value in this field depends on the context scope associated with the specified
49-
/// service quota.
47+
/// Specifies the resource with an Amazon Resource Name (ARN).
5048
/// </para>
5149
/// </summary>
5250
public string ContextId

sdk/src/Services/ServiceQuotas/Generated/Model/Internal/MarshallTransformations/RequestServiceQuotaIncreaseRequestMarshaller.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,12 @@ public IRequest Marshall(RequestServiceQuotaIncreaseRequest publicRequest)
100100
context.Writer.Write(publicRequest.ServiceCode);
101101
}
102102

103+
if(publicRequest.IsSetSupportCaseAllowed())
104+
{
105+
context.Writer.WritePropertyName("SupportCaseAllowed");
106+
context.Writer.Write(publicRequest.SupportCaseAllowed);
107+
}
108+
103109
writer.WriteObjectEnd();
104110
string snippet = stringWriter.ToString();
105111
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);

sdk/src/Services/ServiceQuotas/Generated/Model/Internal/MarshallTransformations/ServiceQuotaUnmarshaller.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@ public ServiceQuota Unmarshall(JsonUnmarshallerContext context)
7272
unmarshalledObject.Adjustable = unmarshaller.Unmarshall(context);
7373
continue;
7474
}
75+
if (context.TestExpression("Description", targetDepth))
76+
{
77+
var unmarshaller = StringUnmarshaller.Instance;
78+
unmarshalledObject.Description = unmarshaller.Unmarshall(context);
79+
continue;
80+
}
7581
if (context.TestExpression("ErrorReason", targetDepth))
7682
{
7783
var unmarshaller = ErrorReasonUnmarshaller.Instance;

sdk/src/Services/ServiceQuotas/Generated/Model/ListAWSDefaultServiceQuotasRequest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ namespace Amazon.ServiceQuotas.Model
3131
{
3232
/// <summary>
3333
/// Container for the parameters to the ListAWSDefaultServiceQuotas operation.
34-
/// Lists the default values for the quotas for the specified Amazon Web Service. A default
35-
/// value does not reflect any quota increases.
34+
/// Lists the default values for the quotas for the specified Amazon Web Services service.
35+
/// A default value does not reflect any quota increases.
3636
/// </summary>
3737
public partial class ListAWSDefaultServiceQuotasRequest : AmazonServiceQuotasRequest
3838
{

sdk/src/Services/ServiceQuotas/Generated/Model/ListRequestedServiceQuotaChangeHistoryByQuotaRequest.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ namespace Amazon.ServiceQuotas.Model
3131
{
3232
/// <summary>
3333
/// Container for the parameters to the ListRequestedServiceQuotaChangeHistoryByQuota operation.
34-
/// Retrieves the quota increase requests for the specified quota.
34+
/// Retrieves the quota increase requests for the specified quota. Filter responses to
35+
/// return quota requests at either the account level, resource level, or all levels.
3536
/// </summary>
3637
public partial class ListRequestedServiceQuotaChangeHistoryByQuotaRequest : AmazonServiceQuotasRequest
3738
{
@@ -119,8 +120,8 @@ internal bool IsSetQuotaCode()
119120
/// <summary>
120121
/// Gets and sets the property QuotaRequestedAtLevel.
121122
/// <para>
122-
/// Specifies at which level within the Amazon Web Services account the quota request
123-
/// applies to.
123+
/// Filters the response to return quota requests for the <c>ACCOUNT</c>, <c>RESOURCE</c>,
124+
/// or <c>ALL</c> levels. <c>ACCOUNT</c> is the default.
124125
/// </para>
125126
/// </summary>
126127
public AppliedLevelEnum QuotaRequestedAtLevel

0 commit comments

Comments
 (0)