Class CfnStreamGroup
- All Implemented Interfaces:
IInspectable
,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.
- 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).
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 class
A fluent builder forCfnStreamGroup
.static interface
Represents the default Amazon GameLift Streams application that a stream group hosts.static interface
Configuration 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.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
CfnStreamGroup
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnStreamGroup
(software.amazon.jsii.JsiiObjectRef objRef) CfnStreamGroup
(software.constructs.Construct scope, String id, CfnStreamGroupProps props) -
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.getTags()
A list of labels to assign to the new stream group resource.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setDefaultApplication
(IResolvable value) Object that identifies the Amazon GameLift Streams application to stream with this stream group.void
Object that identifies the Amazon GameLift Streams application to stream with this stream group.void
setDescription
(String value) A descriptive label for the stream group.void
setLocationConfigurations
(List<Object> value) A set of one or more locations and the streaming capacity for each location.void
A set of one or more locations and the streaming capacity for each location.void
setStreamClass
(String value) The target stream quality for sessions that are hosted in this stream group.void
A 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, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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) - 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:
inspect
in 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:
renderProperties
in 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:
getCdkTagManager
in interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
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. -
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. -
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.
-