Skip to content

Commit 1024df4

Browse files
Added minimum value to AutomaticStopTimeMinutes parameter.
1 parent 1882bab commit 1024df4

File tree

6 files changed

+10
-14
lines changed

6 files changed

+10
-14
lines changed

generator/ServiceModels/cloud9/cloud9-2017-09-23.api.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,8 @@
247247
"AutomaticStopTimeMinutes":{
248248
"type":"integer",
249249
"box":true,
250-
"max":20160
250+
"max":20160,
251+
"min":0
251252
},
252253
"BadRequestException":{
253254
"type":"structure",

generator/ServiceModels/cloud9/cloud9-2017-09-23.endpoint-rule-set.json

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"parameters": {
44
"Region": {
55
"builtIn": "AWS::Region",
6-
"required": false,
6+
"required": true,
77
"documentation": "The AWS region used to dispatch the request.",
88
"type": "String"
99
},
@@ -52,15 +52,6 @@
5252
"ref": "Endpoint"
5353
}
5454
]
55-
},
56-
{
57-
"fn": "parseURL",
58-
"argv": [
59-
{
60-
"ref": "Endpoint"
61-
}
62-
],
63-
"assign": "url"
6455
}
6556
],
6657
"type": "tree",

generator/ServiceModels/cloud9/cloud9-2017-09-23.normal.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,8 @@
260260
"AutomaticStopTimeMinutes":{
261261
"type":"integer",
262262
"box":true,
263-
"max":20160
263+
"max":20160,
264+
"min":0
264265
},
265266
"BadRequestException":{
266267
"type":"structure",

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<property-value-rules>
33
<property-value-rule>
44
<property>Amazon.Cloud9.Model.CreateEnvironmentEC2Request.AutomaticStopTimeMinutes</property>
5+
<min>0</min>
56
<max>20160</max>
67
</property-value-rule>
78
<property-value-rule>

sdk/src/Services/Cloud9/Generated/Internal/AmazonCloud9EndpointProvider.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ public Endpoint ResolveEndpoint(EndpointParameters parameters)
4040
if (parameters == null)
4141
throw new ArgumentNullException("parameters");
4242

43+
if (parameters["Region"] == null)
44+
throw new AmazonClientException("Region parameter must be set for endpoint resolution");
4345
if (parameters["UseDualStack"] == null)
4446
throw new AmazonClientException("UseDualStack parameter must be set for endpoint resolution");
4547
if (parameters["UseFIPS"] == null)
@@ -54,7 +56,7 @@ public Endpoint ResolveEndpoint(EndpointParameters parameters)
5456
};
5557
if ((refs["PartitionResult"] = Partition((string)refs["Region"])) != null)
5658
{
57-
if (IsSet(refs["Endpoint"]) && (refs["url"] = ParseURL((string)refs["Endpoint"])) != null)
59+
if (IsSet(refs["Endpoint"]))
5860
{
5961
if (Equals(refs["UseFIPS"], true))
6062
{

sdk/src/Services/Cloud9/Generated/Model/CreateEnvironmentEC2Request.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public partial class CreateEnvironmentEC2Request : AmazonCloud9Request
5454
/// has last been used.
5555
/// </para>
5656
/// </summary>
57-
[AWSProperty(Max=20160)]
57+
[AWSProperty(Min=0, Max=20160)]
5858
public int AutomaticStopTimeMinutes
5959
{
6060
get { return this._automaticStopTimeMinutes.GetValueOrDefault(); }

0 commit comments

Comments
 (0)