Interface CfnFleet.ComputeCapacityProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnFleet.ComputeCapacityProperty.Jsii$Proxy
- Enclosing class:
CfnFleet
@Stability(Stable)
public static interface CfnFleet.ComputeCapacityProperty
extends software.amazon.jsii.JsiiSerializable
The desired capacity for a fleet.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.appstream.*; ComputeCapacityProperty computeCapacityProperty = ComputeCapacityProperty.builder() .desiredInstances(123) .desiredSessions(123) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnFleet.ComputeCapacityProperty
static final class
An implementation forCfnFleet.ComputeCapacityProperty
-
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDesiredInstances
The desired number of streaming instances.- See Also:
-
getDesiredSessions
The desired capacity in terms of number of user sessions, for the multi-session fleet.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.
- See Also:
-
builder
-