@aws-cdk_aws-gamelift-alpha.IFleet

interface IFleet ๐Ÿ”น

LanguageType name
.NETAmazon.CDK.AWS.GameLift.Alpha.IFleet
Gogithub.com/aws/aws-cdk-go/awscdkgameliftalpha/v2#IFleet
Javasoftware.amazon.awscdk.services.gamelift.alpha.IFleet
Pythonaws_cdk.aws_gamelift_alpha.IFleet
TypeScript (source)@aws-cdk/aws-gamelift-alpha ยป IFleet

Implemented by BuildFleet

Obtainable from FleetBase.fromFleetAttributes()

Represents a Gamelift fleet.

Properties

NameTypeDescription
env๐Ÿ”นResourceEnvironmentThe environment this resource belongs to.
fleetArn๐Ÿ”นstringThe ARN of the fleet.
fleetId๐Ÿ”นstringThe Identifier of the fleet.
grantPrincipal๐Ÿ”นIPrincipalThe principal to grant permissions to.
node๐Ÿ”นNodeThe tree node.
resourceArnForDestination๐Ÿ”นstringThe ARN(s) to put into the destination field for a game session queue.
stack๐Ÿ”นStackThe stack in which this resource is defined.

env๐Ÿ”น

Type: ResourceEnvironment

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.


fleetArn๐Ÿ”น

Type: string

The ARN of the fleet.


fleetId๐Ÿ”น

Type: string

The Identifier of the fleet.


grantPrincipal๐Ÿ”น

Type: IPrincipal

The principal to grant permissions to.


node๐Ÿ”น

Type: Node

The tree node.


resourceArnForDestination๐Ÿ”น

Type: string

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.


stack๐Ÿ”น

Type: Stack

The stack in which this resource is defined.

Methods

NameDescription
applyRemovalPolicy(policy)๐Ÿ”นApply the given removal policy to this resource.
grant(grantee, ...actions)๐Ÿ”นGrant the grantee identity permissions to perform actions.
metric(metricName, props?)๐Ÿ”นReturn the given named metric for this fleet.
metricActiveInstances(props?)๐Ÿ”นInstances with ACTIVE status, which means they are running active server processes.
metricDesiredInstances(props?)๐Ÿ”นTarget number of active instances that GameLift is working to maintain in the fleet.
metricIdleInstances(props?)๐Ÿ”นActive instances that are currently hosting zero (0) game sessions.
metricInstanceInterruptions(props?)๐Ÿ”นNumber of spot instances that have been interrupted.
metricMaxInstances(props?)๐Ÿ”นMaximum number of instances that are allowed for the fleet.
metricMinInstances(props?)๐Ÿ”นMinimum number of instances allowed for the fleet.
metricPercentIdleInstances(props?)๐Ÿ”นPercentage of all active instances that are idle (calculated as IdleInstances / ActiveInstances).

applyRemovalPolicy(policy)๐Ÿ”น

public applyRemovalPolicy(policy: RemovalPolicy): void

Parameters

  • policy RemovalPolicy

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).


grant(grantee, ...actions)๐Ÿ”น

public grant(grantee: IGrantable, ...actions: string[]): Grant

Parameters

  • grantee IGrantable
  • actions string

Returns

  • Grant

Grant the grantee identity permissions to perform actions.


metric(metricName, props?)๐Ÿ”น

public metric(metricName: string, props?: MetricOptions): Metric

Parameters

  • metricName string
  • props MetricOptions

Returns

  • Metric

Return the given named metric for this fleet.


metricActiveInstances(props?)๐Ÿ”น

public metricActiveInstances(props?: MetricOptions): Metric

Parameters

  • props MetricOptions

Returns

  • Metric

Instances with ACTIVE 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.


metricDesiredInstances(props?)๐Ÿ”น

public metricDesiredInstances(props?: MetricOptions): Metric

Parameters

  • props MetricOptions

Returns

  • Metric

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.


metricIdleInstances(props?)๐Ÿ”น

public metricIdleInstances(props?: MetricOptions): Metric

Parameters

  • props MetricOptions

Returns

  • Metric

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.


metricInstanceInterruptions(props?)๐Ÿ”น

public metricInstanceInterruptions(props?: MetricOptions): Metric

Parameters

  • props MetricOptions

Returns

  • Metric

Number of spot instances that have been interrupted.


metricMaxInstances(props?)๐Ÿ”น

public metricMaxInstances(props?: MetricOptions): Metric

Parameters

  • props MetricOptions

Returns

  • Metric

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.


metricMinInstances(props?)๐Ÿ”น

public metricMinInstances(props?: MetricOptions): Metric

Parameters

  • props MetricOptions

Returns

  • Metric

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.


metricPercentIdleInstances(props?)๐Ÿ”น

public metricPercentIdleInstances(props?: MetricOptions): Metric

Parameters

  • props MetricOptions

Returns

  • Metric

Percentage of all active instances that are idle (calculated as IdleInstances / ActiveInstances).

This metric can be used for automatic scaling.