Class CfnStreamGroupPropsMixin
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable,software.constructs.IMixin
AWS::GameLiftStreams::StreamGroup resource defines a group of compute resources that will be running and streaming your game.
When you create a stream group, you specify the hardware configuration (CPU, GPU, RAM) that will run your game (known as the stream class ), the geographical locations where your game can run, and the number of streams that can run simultaneously in each location (known as stream capacity ). Stream groups manage how Amazon GameLift Streams allocates resources and handles concurrent streams, allowing you to effectively manage capacity and costs.
There are two types of stream capacity: always-on and on-demand.
- Always-on : The streaming capacity that is allocated and ready to handle stream requests without delay. You pay for this capacity whether it's in use or not. Best for quickest time from streaming request to streaming session. Default is 1 (2 for high stream classes) when creating a stream group or adding a location.
- On-demand : The streaming capacity that Amazon GameLift Streams can allocate in response to stream requests, and then de-allocate when the session has terminated. This offers a cost control measure at the expense of a greater startup time (typically under 5 minutes). Default is 0 when creating a stream group or adding a location.
Values for capacity must be whole number multiples of the tenancy value of the stream group's stream class.
Application association is not currently supported in CloudFormation . To link additional applications to a stream group, use the Amazon GameLift Streams console or the AWS CLI .
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.gameliftstreams.*;
import software.amazon.awscdk.*;
IMergeStrategy mergeStrategy;
CfnStreamGroupPropsMixin cfnStreamGroupPropsMixin = CfnStreamGroupPropsMixin.Builder.create(CfnStreamGroupMixinProps.builder()
.defaultApplication(DefaultApplicationProperty.builder()
.arn("arn")
.id("id")
.build())
.description("description")
.locationConfigurations(List.of(LocationConfigurationProperty.builder()
.alwaysOnCapacity(123)
.locationName("locationName")
.maximumCapacity(123)
.onDemandCapacity(123)
.targetIdleCapacity(123)
.build()))
.streamClass("streamClass")
.tags(Map.of(
"tagsKey", "tags"))
.build())
.strategy(mergeStrategy)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnStreamGroupPropsMixin.static interfaceRepresents the default Amazon GameLift Streams application that a stream group hosts.static interfaceConfiguration settings that define a stream group's stream capacity for a location.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IMixin
software.constructs.IMixin.Jsii$Default, software.constructs.IMixin.Jsii$Proxy -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreate a mixin to apply properties toAWS::GameLiftStreams::StreamGroup.CfnStreamGroupPropsMixin(CfnStreamGroupMixinProps props, CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::GameLiftStreams::StreamGroup.protectedCfnStreamGroupPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnStreamGroupPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(software.constructs.IConstruct construct) Apply the mixin properties to the construct.protected CfnStreamGroupMixinPropsgetProps()protected IMergeStrategysupports(software.constructs.IConstruct construct) Check if this mixin supports the given construct.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_PROPERTY_KEYS
-
-
Constructor Details
-
CfnStreamGroupPropsMixin
protected CfnStreamGroupPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
CfnStreamGroupPropsMixin
protected CfnStreamGroupPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnStreamGroupPropsMixin
@Stability(Stable) public CfnStreamGroupPropsMixin(@NotNull CfnStreamGroupMixinProps props, @Nullable CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::GameLiftStreams::StreamGroup.- Parameters:
props- L1 properties to apply. This parameter is required.options- Mixin options.
-
CfnStreamGroupPropsMixin
Create a mixin to apply properties toAWS::GameLiftStreams::StreamGroup.- Parameters:
props- L1 properties to apply. This parameter is required.
-
-
Method Details
-
applyTo
@Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct) Apply the mixin properties to the construct. -
supports
@Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct) Check if this mixin supports the given construct. -
getProps
-
getStrategy
-