Class CfnFleet.ComputeCapacityProperty
The desired capacity for a fleet.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.AppStream
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ComputeCapacityProperty : Object, CfnFleet.IComputeCapacityProperty
Syntax (vb)
Public Class ComputeCapacityProperty
Inherits Object
Implements CfnFleet.IComputeCapacityProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AppStream;
var computeCapacityProperty = new ComputeCapacityProperty {
DesiredInstances = 123,
DesiredSessions = 123
};
Synopsis
Constructors
Compute |
Properties
Desired |
The desired number of streaming instances. |
Desired |
The desired capacity in terms of number of user sessions, for the multi-session fleet. |
Constructors
ComputeCapacityProperty()
public ComputeCapacityProperty()
Properties
DesiredInstances
The desired number of streaming instances.
public Nullable<double> DesiredInstances { get; set; }
Property Value
System.
Remarks
DesiredSessions
The desired capacity in terms of number of user sessions, for the multi-session fleet.
public Nullable<double> DesiredSessions { get; set; }
Property Value
System.
Remarks
This is not allowed for single-session fleets.
When you create a fleet, you must set define either the DesiredSessions or DesiredInstances attribute, based on the type of fleet you create. You can’t define both attributes or leave both attributes blank.