Skip to content

Commit 9c0593e

Browse files
Added the new AlwaysOn running mode for WorkSpaces Pools. Customers can now choose between AlwaysOn (for instant access, with hourly usage billing regardless of connection status), or AutoStop (to optimize cost, with a brief startup delay) for their pools.
1 parent cc535ab commit 9c0593e

10 files changed

+194
-10
lines changed

generator/ServiceModels/workspaces/workspaces-2015-04-08.api.json

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2170,7 +2170,8 @@
21702170
"Capacity":{"shape":"Capacity"},
21712171
"Tags":{"shape":"TagList"},
21722172
"ApplicationSettings":{"shape":"ApplicationSettingsRequest"},
2173-
"TimeoutSettings":{"shape":"TimeoutSettings"}
2173+
"TimeoutSettings":{"shape":"TimeoutSettings"},
2174+
"RunningMode":{"shape":"PoolsRunningMode"}
21742175
}
21752176
},
21762177
"CreateWorkspacesPoolResult":{
@@ -3618,6 +3619,13 @@
36183619
"type":"list",
36193620
"member":{"shape":"PendingCreateStandbyWorkspacesRequest"}
36203621
},
3622+
"PoolsRunningMode":{
3623+
"type":"string",
3624+
"enum":[
3625+
"AUTO_STOP",
3626+
"ALWAYS_ON"
3627+
]
3628+
},
36213629
"Protocol":{
36223630
"type":"string",
36233631
"enum":[
@@ -4301,7 +4309,8 @@
43014309
"DirectoryId":{"shape":"DirectoryId"},
43024310
"Capacity":{"shape":"Capacity"},
43034311
"ApplicationSettings":{"shape":"ApplicationSettingsRequest"},
4304-
"TimeoutSettings":{"shape":"TimeoutSettings"}
4312+
"TimeoutSettings":{"shape":"TimeoutSettings"},
4313+
"RunningMode":{"shape":"PoolsRunningMode"}
43054314
}
43064315
},
43074316
"UpdateWorkspacesPoolResult":{
@@ -4681,7 +4690,10 @@
46814690
"MultipleUserProfiles",
46824691
"StagedAppxPackage",
46834692
"UnsupportedOsUpgrade",
4684-
"InsufficientRearmCount"
4693+
"InsufficientRearmCount",
4694+
"ProtocolOSIncompatibility",
4695+
"MemoryIntegrityIncompatibility",
4696+
"RestrictedDriveLetterInUse"
46854697
]
46864698
},
46874699
"WorkspaceImageId":{
@@ -4853,7 +4865,8 @@
48534865
"State",
48544866
"CreatedAt",
48554867
"BundleId",
4856-
"DirectoryId"
4868+
"DirectoryId",
4869+
"RunningMode"
48574870
],
48584871
"members":{
48594872
"PoolId":{"shape":"WorkspacesPoolId"},
@@ -4867,7 +4880,8 @@
48674880
"DirectoryId":{"shape":"DirectoryId"},
48684881
"Errors":{"shape":"WorkspacesPoolErrors"},
48694882
"ApplicationSettings":{"shape":"ApplicationSettingsResponse"},
4870-
"TimeoutSettings":{"shape":"TimeoutSettings"}
4883+
"TimeoutSettings":{"shape":"TimeoutSettings"},
4884+
"RunningMode":{"shape":"PoolsRunningMode"}
48714885
}
48724886
},
48734887
"WorkspacesPoolError":{

generator/ServiceModels/workspaces/workspaces-2015-04-08.docs.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2085,6 +2085,14 @@
20852085
"CreateStandbyWorkspacesResult$PendingStandbyRequests": "<p>Information about the standby WorkSpace that was created.</p>"
20862086
}
20872087
},
2088+
"PoolsRunningMode": {
2089+
"base": null,
2090+
"refs": {
2091+
"CreateWorkspacesPoolRequest$RunningMode": "<p>The running mode for the pool.</p>",
2092+
"UpdateWorkspacesPoolRequest$RunningMode": "<p>The desired running mode for the pool. The running mode can only be updated when the pool is in a stopped state.</p>",
2093+
"WorkspacesPool$RunningMode": "<p>The running mode of the pool.</p>"
2094+
}
2095+
},
20882096
"Protocol": {
20892097
"base": null,
20902098
"refs": {
@@ -3187,7 +3195,7 @@
31873195
"base": null,
31883196
"refs": {
31893197
"CreateWorkspacesPoolRequest$PoolName": "<p>The name of the pool.</p>",
3190-
"WorkspacesPool$PoolName": "<p>The name of the pool,</p>"
3198+
"WorkspacesPool$PoolName": "<p>The name of the pool.</p>"
31913199
}
31923200
},
31933201
"WorkspacesPoolSession": {

generator/ServiceModels/workspaces/workspaces-2015-04-08.normal.json

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2668,6 +2668,10 @@
26682668
"TimeoutSettings":{
26692669
"shape":"TimeoutSettings",
26702670
"documentation":"<p>Indicates the timeout settings of the pool.</p>"
2671+
},
2672+
"RunningMode":{
2673+
"shape":"PoolsRunningMode",
2674+
"documentation":"<p>The running mode for the pool.</p>"
26712675
}
26722676
}
26732677
},
@@ -4992,6 +4996,13 @@
49924996
"type":"list",
49934997
"member":{"shape":"PendingCreateStandbyWorkspacesRequest"}
49944998
},
4999+
"PoolsRunningMode":{
5000+
"type":"string",
5001+
"enum":[
5002+
"AUTO_STOP",
5003+
"ALWAYS_ON"
5004+
]
5005+
},
49955006
"Protocol":{
49965007
"type":"string",
49975008
"enum":[
@@ -6001,6 +6012,10 @@
60016012
"TimeoutSettings":{
60026013
"shape":"TimeoutSettings",
60036014
"documentation":"<p>Indicates the timeout settings of the specified pool.</p>"
6015+
},
6016+
"RunningMode":{
6017+
"shape":"PoolsRunningMode",
6018+
"documentation":"<p>The desired running mode for the pool. The running mode can only be updated when the pool is in a stopped state.</p>"
60046019
}
60056020
}
60066021
},
@@ -6708,7 +6723,10 @@
67086723
"MultipleUserProfiles",
67096724
"StagedAppxPackage",
67106725
"UnsupportedOsUpgrade",
6711-
"InsufficientRearmCount"
6726+
"InsufficientRearmCount",
6727+
"ProtocolOSIncompatibility",
6728+
"MemoryIntegrityIncompatibility",
6729+
"RestrictedDriveLetterInUse"
67126730
]
67136731
},
67146732
"WorkspaceImageId":{
@@ -6969,7 +6987,8 @@
69696987
"State",
69706988
"CreatedAt",
69716989
"BundleId",
6972-
"DirectoryId"
6990+
"DirectoryId",
6991+
"RunningMode"
69736992
],
69746993
"members":{
69756994
"PoolId":{
@@ -6986,7 +7005,7 @@
69867005
},
69877006
"PoolName":{
69887007
"shape":"WorkspacesPoolName",
6989-
"documentation":"<p>The name of the pool,</p>"
7008+
"documentation":"<p>The name of the pool.</p>"
69907009
},
69917010
"Description":{
69927011
"shape":"UpdateDescription",
@@ -7019,6 +7038,10 @@
70197038
"TimeoutSettings":{
70207039
"shape":"TimeoutSettings",
70217040
"documentation":"<p>The amount of time that a pool session remains active after users disconnect. If they try to reconnect to the pool session after a disconnection or network interruption within this time interval, they are connected to their previous session. Otherwise, they are connected to a new session with a new pool instance.</p>"
7041+
},
7042+
"RunningMode":{
7043+
"shape":"PoolsRunningMode",
7044+
"documentation":"<p>The running mode of the pool.</p>"
70227045
}
70237046
},
70247047
"documentation":"<p>Describes a pool of WorkSpaces.</p>"

sdk/src/Services/WorkSpaces/Generated/Model/CreateWorkspacesPoolRequest.cs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ public partial class CreateWorkspacesPoolRequest : AmazonWorkSpacesRequest
4141
private string _description;
4242
private string _directoryId;
4343
private string _poolName;
44+
private PoolsRunningMode _runningMode;
4445
private List<Tag> _tags = AWSConfigs.InitializeCollections ? new List<Tag>() : null;
4546
private TimeoutSettings _timeoutSettings;
4647

@@ -157,6 +158,24 @@ internal bool IsSetPoolName()
157158
return this._poolName != null;
158159
}
159160

161+
/// <summary>
162+
/// Gets and sets the property RunningMode.
163+
/// <para>
164+
/// The running mode for the pool.
165+
/// </para>
166+
/// </summary>
167+
public PoolsRunningMode RunningMode
168+
{
169+
get { return this._runningMode; }
170+
set { this._runningMode = value; }
171+
}
172+
173+
// Check to see if RunningMode property is set
174+
internal bool IsSetRunningMode()
175+
{
176+
return this._runningMode != null;
177+
}
178+
160179
/// <summary>
161180
/// Gets and sets the property Tags.
162181
/// <para>

sdk/src/Services/WorkSpaces/Generated/Model/Internal/MarshallTransformations/CreateWorkspacesPoolRequestMarshaller.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,12 @@ public IRequest Marshall(CreateWorkspacesPoolRequest publicRequest)
121121
context.Writer.WriteStringValue(publicRequest.PoolName);
122122
}
123123

124+
if(publicRequest.IsSetRunningMode())
125+
{
126+
context.Writer.WritePropertyName("RunningMode");
127+
context.Writer.WriteStringValue(publicRequest.RunningMode);
128+
}
129+
124130
if(publicRequest.IsSetTags())
125131
{
126132
context.Writer.WritePropertyName("Tags");

sdk/src/Services/WorkSpaces/Generated/Model/Internal/MarshallTransformations/UpdateWorkspacesPoolRequestMarshaller.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,12 @@ public IRequest Marshall(UpdateWorkspacesPoolRequest publicRequest)
121121
context.Writer.WriteStringValue(publicRequest.PoolId);
122122
}
123123

124+
if(publicRequest.IsSetRunningMode())
125+
{
126+
context.Writer.WritePropertyName("RunningMode");
127+
context.Writer.WriteStringValue(publicRequest.RunningMode);
128+
}
129+
124130
if(publicRequest.IsSetTimeoutSettings())
125131
{
126132
context.Writer.WritePropertyName("TimeoutSettings");

sdk/src/Services/WorkSpaces/Generated/Model/Internal/MarshallTransformations/WorkspacesPoolUnmarshaller.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,12 @@ public WorkspacesPool Unmarshall(JsonUnmarshallerContext context, ref StreamingU
116116
unmarshalledObject.PoolName = unmarshaller.Unmarshall(context, ref reader);
117117
continue;
118118
}
119+
if (context.TestExpression("RunningMode", targetDepth))
120+
{
121+
var unmarshaller = StringUnmarshaller.Instance;
122+
unmarshalledObject.RunningMode = unmarshaller.Unmarshall(context, ref reader);
123+
continue;
124+
}
119125
if (context.TestExpression("State", targetDepth))
120126
{
121127
var unmarshaller = StringUnmarshaller.Instance;

sdk/src/Services/WorkSpaces/Generated/Model/UpdateWorkspacesPoolRequest.cs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ public partial class UpdateWorkspacesPoolRequest : AmazonWorkSpacesRequest
4141
private string _description;
4242
private string _directoryId;
4343
private string _poolId;
44+
private PoolsRunningMode _runningMode;
4445
private TimeoutSettings _timeoutSettings;
4546

4647
/// <summary>
@@ -154,6 +155,25 @@ internal bool IsSetPoolId()
154155
return this._poolId != null;
155156
}
156157

158+
/// <summary>
159+
/// Gets and sets the property RunningMode.
160+
/// <para>
161+
/// The desired running mode for the pool. The running mode can only be updated when the
162+
/// pool is in a stopped state.
163+
/// </para>
164+
/// </summary>
165+
public PoolsRunningMode RunningMode
166+
{
167+
get { return this._runningMode; }
168+
set { this._runningMode = value; }
169+
}
170+
171+
// Check to see if RunningMode property is set
172+
internal bool IsSetRunningMode()
173+
{
174+
return this._runningMode != null;
175+
}
176+
157177
/// <summary>
158178
/// Gets and sets the property TimeoutSettings.
159179
/// <para>

sdk/src/Services/WorkSpaces/Generated/Model/WorkspacesPool.cs

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public partial class WorkspacesPool
4444
private string _poolArn;
4545
private string _poolId;
4646
private string _poolName;
47+
private PoolsRunningMode _runningMode;
4748
private WorkspacesPoolState _state;
4849
private TimeoutSettings _timeoutSettings;
4950

@@ -219,7 +220,7 @@ internal bool IsSetPoolId()
219220
/// <summary>
220221
/// Gets and sets the property PoolName.
221222
/// <para>
222-
/// The name of the pool,
223+
/// The name of the pool.
223224
/// </para>
224225
/// </summary>
225226
[AWSProperty(Required=true)]
@@ -235,6 +236,25 @@ internal bool IsSetPoolName()
235236
return this._poolName != null;
236237
}
237238

239+
/// <summary>
240+
/// Gets and sets the property RunningMode.
241+
/// <para>
242+
/// The running mode of the pool.
243+
/// </para>
244+
/// </summary>
245+
[AWSProperty(Required=true)]
246+
public PoolsRunningMode RunningMode
247+
{
248+
get { return this._runningMode; }
249+
set { this._runningMode = value; }
250+
}
251+
252+
// Check to see if RunningMode property is set
253+
internal bool IsSetRunningMode()
254+
{
255+
return this._runningMode != null;
256+
}
257+
238258
/// <summary>
239259
/// Gets and sets the property State.
240260
/// <para>

0 commit comments

Comments
 (0)