> **Experimental**
>
> `@aws-cdk/aws-gamelift-alpha` is an [**experimental**](https://docs.aws.amazon.com/cdk/api/stability.html) (alpha) package: its API may change in any release, without a major version bump.
# IBuildFleet

Represents a GameLift Fleet used to run a custom game build.

Extends: [IFleet](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-gamelift-alpha.IFleet.html)
Implemented by: [BuildFleet](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-gamelift-alpha.BuildFleet.html)
Obtainable from: [BuildFleet.fromBuildFleetArn](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-gamelift-alpha.BuildFleet.html#frombuildfleetarn), [BuildFleet.fromBuildFleetId](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-gamelift-alpha.BuildFleet.html#frombuildfleetid)

- Stability: [Experimental](https://docs.aws.amazon.com/cdk/api/stability.html)
- Source: [`lib/build-fleet.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/@aws-cdk/aws-gamelift-alpha/lib/build-fleet.ts#L16)

## Properties

- `env`: [ResourceEnvironment](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.ResourceEnvironment.html) — The environment this resource belongs to.

  For resources that are created and managed in a Stack (those created by
  creating new class instances like `new Role()`, `new Bucket()`, etc.), this
  is always the same as the environment of the stack they belong to.

  For referenced resources (those obtained from referencing methods like
  `Role.fromRoleArn()`, `Bucket.fromBucketName()`, etc.), they might be
  different than the stack they were imported into.

- `fleetArn`: string — The ARN of the fleet.

- `fleetId`: string — The Identifier of the fleet.

- `grantPrincipal`: [IPrincipal](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iam.IPrincipal.html) — The principal to grant permissions to.

- `node`: [Node](https://docs.aws.amazon.com/cdk/api/v2/docs/constructs.Node.html) — The tree node.

- `resourceArnForDestination`: 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`: [Stack](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.Stack.html) — The stack in which this resource is defined.

## Methods

- `applyRemovalPolicy(policy: RemovalPolicy): void` — 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: IGrantable, ...actions: string[]): Grant` — Grant the `grantee` identity permissions to perform `actions`.

- `metric(metricName: string, props?: MetricOptions): Metric` — Return the given named metric for this fleet.

- `metricActiveInstances(props?: MetricOptions): 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?: MetricOptions): 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?: MetricOptions): 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?: MetricOptions): Metric` — Number of spot instances that have been interrupted.

- `metricMaxInstances(props?: MetricOptions): 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?: MetricOptions): 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?: MetricOptions): Metric` — Percentage of all active instances that are idle (calculated as IdleInstances / ActiveInstances).

  This metric can be used for automatic scaling.

- `with(...mixins: IMixin[]): IConstruct` — Applies one or more mixins to this construct.

  Mixins are applied in order. The list of constructs is captured at the
  start of the call, so constructs added by a mixin will not be visited.

  **Parameters**

  - `mixins` — The mixins to apply.

  **Returns:** This construct for chaining
