Class CfnStreamGroup
- All Implemented Interfaces:
IInspectable,IStreamGroupRef,IEnvironmentAware,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
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 AWS 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.services.gameliftstreams.*;
CfnStreamGroup cfnStreamGroup = CfnStreamGroup.Builder.create(this, "MyCfnStreamGroup")
.description("description")
.locationConfigurations(List.of(LocationConfigurationProperty.builder()
.locationName("locationName")
// the properties below are optional
.alwaysOnCapacity(123)
.onDemandCapacity(123)
.build()))
.streamClass("streamClass")
// the properties below are optional
.defaultApplication(DefaultApplicationProperty.builder()
.arn("arn")
.id("id")
.build())
.tags(Map.of(
"tagsKey", "tags"))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnStreamGroup.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.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.gameliftstreams.IStreamGroupRef
IStreamGroupRef.Jsii$Default, IStreamGroupRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnStreamGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnStreamGroup(software.amazon.jsii.JsiiObjectRef objRef) CfnStreamGroup(software.constructs.Construct scope, String id, CfnStreamGroupProps props) Create a newAWS::GameLiftStreams::StreamGroup. -
Method Summary
Modifier and TypeMethodDescriptionAn Amazon Resource Name (ARN) that uniquely identifies the stream group resource.An ID that uniquely identifies the stream group resource.Tag Manager which manages the tags for this resource.Object that identifies the Amazon GameLift Streams application to stream with this stream group.A descriptive label for the stream group.A set of one or more locations and the streaming capacity for each location.The target stream quality for sessions that are hosted in this stream group.A reference to a StreamGroup resource.getTags()A list of labels to assign to the new stream group resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetDefaultApplication(IResolvable value) Object that identifies the Amazon GameLift Streams application to stream with this stream group.voidObject that identifies the Amazon GameLift Streams application to stream with this stream group.voidsetDescription(String value) A descriptive label for the stream group.voidsetLocationConfigurations(List<Object> value) A set of one or more locations and the streaming capacity for each location.voidA set of one or more locations and the streaming capacity for each location.voidsetStreamClass(String value) The target stream quality for sessions that are hosted in this stream group.voidA list of labels to assign to the new stream group resource.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods 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, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnStreamGroup
protected CfnStreamGroup(software.amazon.jsii.JsiiObjectRef objRef) -
CfnStreamGroup
protected CfnStreamGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnStreamGroup
@Stability(Stable) public CfnStreamGroup(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnStreamGroupProps props) Create a newAWS::GameLiftStreams::StreamGroup.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
An Amazon Resource Name (ARN) that uniquely identifies the stream group resource. For example:arn:aws:gameliftstreams:us-west-2:123456789012:streamgroup/sg-1AB2C3De4. -
getAttrId
An ID that uniquely identifies the stream group resource.For example:
sg-1AB2C3De4. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getStreamGroupRef
A reference to a StreamGroup resource.- Specified by:
getStreamGroupRefin interfaceIStreamGroupRef
-
getDescription
A descriptive label for the stream group. -
setDescription
A descriptive label for the stream group. -
getLocationConfigurations
A set of one or more locations and the streaming capacity for each location.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnStreamGroup.LocationConfigurationProperty> -
setLocationConfigurations
A set of one or more locations and the streaming capacity for each location. -
setLocationConfigurations
A set of one or more locations and the streaming capacity for each location. -
getStreamClass
The target stream quality for sessions that are hosted in this stream group. -
setStreamClass
The target stream quality for sessions that are hosted in this stream group. -
getDefaultApplication
Object that identifies the Amazon GameLift Streams application to stream with this stream group.Returns union: either
IResolvableorCfnStreamGroup.DefaultApplicationProperty -
setDefaultApplication
Object that identifies the Amazon GameLift Streams application to stream with this stream group. -
setDefaultApplication
@Stability(Stable) public void setDefaultApplication(@Nullable CfnStreamGroup.DefaultApplicationProperty value) Object that identifies the Amazon GameLift Streams application to stream with this stream group. -
getTags
A list of labels to assign to the new stream group resource. -
setTags
A list of labels to assign to the new stream group resource.
-