Interface IFleet.Jsii$Default
- All Superinterfaces:
software.constructs.IConstruct
,software.constructs.IConstruct.Jsii$Default
,software.constructs.IDependable
,software.constructs.IDependable.Jsii$Default
,IFleet
,IGameSessionQueueDestination
,IGameSessionQueueDestination.Jsii$Default
,IGrantable
,IGrantable.Jsii$Default
,IResource
,IResource.Jsii$Default
,software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
IBuildFleet.Jsii$Default
- All Known Implementing Classes:
IBuildFleet.Jsii$Proxy
,IFleet.Jsii$Proxy
- Enclosing interface:
IFleet
IFleet
.-
Nested Class Summary
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$Proxy
Nested classes/interfaces inherited from interface software.constructs.IDependable
software.constructs.IDependable.Jsii$Default, software.constructs.IDependable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.gamelift.alpha.IFleet
IFleet.Jsii$Default, IFleet.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.gamelift.alpha.IGameSessionQueueDestination
IGameSessionQueueDestination.Jsii$Default, IGameSessionQueueDestination.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.iam.IGrantable
IGrantable.Jsii$Default, IGrantable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default, IResource.Jsii$Proxy
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
applyRemovalPolicy
(RemovalPolicy policy) Apply the given removal policy to this resource.default ResourceEnvironment
getEnv()
The environment this resource belongs to.default String
(experimental) The ARN of the fleet.default String
(experimental) The Identifier of the fleet.default IPrincipal
The principal to grant permissions to.default software.constructs.Node
getNode()
The tree node.default String
(experimental) The ARN(s) to put into the destination field for a game session queue.default Stack
getStack()
The stack in which this resource is defined.default Grant
grant
(IGrantable grantee, @NotNull String... actions) (experimental) Grant thegrantee
identity permissions to performactions
.default Metric
metric
(String metricName, MetricOptions props) (experimental) Return the given named metric for this fleet.default Metric
(experimental) Instances withACTIVE
status, which means they are running active server processes.default Metric
(experimental) Target number of active instances that GameLift is working to maintain in the fleet.default Metric
metricIdleInstances
(MetricOptions props) (experimental) Active instances that are currently hosting zero (0) game sessions.default Metric
(experimental) Number of spot instances that have been interrupted.default Metric
metricMaxInstances
(MetricOptions props) (experimental) Maximum number of instances that are allowed for the fleet.default Metric
metricMinInstances
(MetricOptions props) (experimental) Minimum number of instances allowed for the fleet.default Metric
(experimental) Percentage of all active instances that are idle (calculated as IdleInstances / ActiveInstances).Methods inherited from interface software.amazon.awscdk.services.gamelift.alpha.IFleet
metric, metricActiveInstances, metricDesiredInstances, metricIdleInstances, metricInstanceInterruptions, metricMaxInstances, metricMinInstances, metricPercentIdleInstances
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getNode
@Stability(Stable) @NotNull default software.constructs.Node getNode()The tree node.- Specified by:
getNode
in interfacesoftware.constructs.IConstruct
- Specified by:
getNode
in interfacesoftware.constructs.IConstruct.Jsii$Default
- Specified by:
getNode
in interfaceIResource.Jsii$Default
-
getEnv
The environment this resource belongs to.For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
- Specified by:
getEnv
in interfaceIResource
- Specified by:
getEnv
in interfaceIResource.Jsii$Default
-
getStack
The stack in which this resource is defined.- Specified by:
getStack
in interfaceIResource
- Specified by:
getStack
in interfaceIResource.Jsii$Default
-
getGrantPrincipal
The principal to grant permissions to.- Specified by:
getGrantPrincipal
in interfaceIGrantable
- Specified by:
getGrantPrincipal
in interfaceIGrantable.Jsii$Default
-
getResourceArnForDestination
(experimental) The ARN(s) to put into the destination field for a game session queue.This property is for cdk modules to consume only. You should not need to use this property. Instead, use dedicated identifier on each components.
- Specified by:
getResourceArnForDestination
in interfaceIGameSessionQueueDestination
- Specified by:
getResourceArnForDestination
in interfaceIGameSessionQueueDestination.Jsii$Default
-
getFleetArn
(experimental) The ARN of the fleet.- Specified by:
getFleetArn
in interfaceIFleet
-
getFleetId
(experimental) The Identifier of the fleet.- Specified by:
getFleetId
in interfaceIFleet
-
applyRemovalPolicy
Apply the given removal policy to this resource.The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.
The resource can be deleted (
RemovalPolicy.DESTROY
), or left in your AWS account for data recovery and cleanup later (RemovalPolicy.RETAIN
).- Specified by:
applyRemovalPolicy
in interfaceIResource
- Specified by:
applyRemovalPolicy
in interfaceIResource.Jsii$Default
- Parameters:
policy
- This parameter is required.
-
grant
@Stability(Experimental) @NotNull default Grant grant(@NotNull IGrantable grantee, @NotNull @NotNull String... actions) (experimental) Grant thegrantee
identity permissions to performactions
. -
metric
@Stability(Experimental) @NotNull default Metric metric(@NotNull String metricName, @Nullable MetricOptions props) (experimental) Return the given named metric for this fleet. -
metricActiveInstances
@Stability(Experimental) @NotNull default Metric metricActiveInstances(@Nullable MetricOptions props) (experimental) Instances withACTIVE
status, which means they are running active server processes.The count includes idle instances and those that are hosting one or more game sessions. This metric measures current total instance capacity.
This metric can be used with automatic scaling.
- Specified by:
metricActiveInstances
in interfaceIFleet
- Parameters:
props
-
-
metricDesiredInstances
@Stability(Experimental) @NotNull default Metric metricDesiredInstances(@Nullable MetricOptions props) (experimental) Target number of active instances that GameLift is working to maintain in the fleet.With automatic scaling, this value is determined based on the scaling policies currently in force. Without automatic scaling, this value is set manually. This metric is not available when viewing data for fleet metric groups.
- Specified by:
metricDesiredInstances
in interfaceIFleet
- Parameters:
props
-
-
metricIdleInstances
(experimental) Active instances that are currently hosting zero (0) game sessions.This metric measures capacity that is available but unused. This metric can be used with automatic scaling.
- Specified by:
metricIdleInstances
in interfaceIFleet
- Parameters:
props
-
-
metricInstanceInterruptions
@Stability(Experimental) @NotNull default Metric metricInstanceInterruptions(@Nullable MetricOptions props) (experimental) Number of spot instances that have been interrupted.- Specified by:
metricInstanceInterruptions
in interfaceIFleet
- Parameters:
props
-
-
metricMaxInstances
(experimental) Maximum number of instances that are allowed for the fleet.A fleet's instance maximum determines the capacity ceiling during manual or automatic scaling up. This metric is not available when viewing data for fleet metric groups.
- Specified by:
metricMaxInstances
in interfaceIFleet
- Parameters:
props
-
-
metricMinInstances
(experimental) Minimum number of instances allowed for the fleet.A fleet's instance minimum determines the capacity floor during manual or automatic scaling down. This metric is not available when viewing data for fleet metric groups.
- Specified by:
metricMinInstances
in interfaceIFleet
- Parameters:
props
-
-
metricPercentIdleInstances
@Stability(Experimental) @NotNull default Metric metricPercentIdleInstances(@Nullable MetricOptions props) (experimental) Percentage of all active instances that are idle (calculated as IdleInstances / ActiveInstances).This metric can be used for automatic scaling.
- Specified by:
metricPercentIdleInstances
in interfaceIFleet
- Parameters:
props
-
-