Interface CfnFleetPropsMixin.ComputeCapacityProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnFleetPropsMixin.ComputeCapacityProperty.Jsii$Proxy
- Enclosing class:
CfnFleetPropsMixin
@Stability(Stable)
public static interface CfnFleetPropsMixin.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.cfnpropertymixins.services.appstream.*;
ComputeCapacityProperty computeCapacityProperty = ComputeCapacityProperty.builder()
.desiredInstances(123)
.desiredSessions(123)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnFleetPropsMixin.ComputeCapacityPropertystatic final classAn implementation forCfnFleetPropsMixin.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
-