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

Before deploying your GameLift-enabled multiplayer game servers for hosting with the GameLift service, you need to upload your game server files.

The class helps you on preparing and uploading custom game server build files or Realtime Servers server script files.

Extends: Content
Superclass of: AssetContent, S3Content

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`lib/content.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0-alpha.0/packages/@aws-cdk/aws-gamelift-alpha/lib/content.ts#L11)

## Example

```ts
declare const bucket: s3.Bucket;
const build = new gamelift.Build(this, 'Build', {
  content: gamelift.Content.fromBucket(bucket, "sample-asset-key"),
  serverSdkVersion: '5.0.0',
});
```

## Initializer

```ts
new Content()
```

## Methods

- `bind(scope: Construct, role: IRole): ContentConfig` — Called when the Build is initialized to allow this object to bind.

- `fromAsset(path: string, options?: AssetOptions): AssetContent` (static) — Loads the game content from a local disk path.

  **Parameters**

  - `path` — Either a directory with the game content bundle or a .zip file.

- `fromBucket(bucket: IBucket, key: string, objectVersion?: string): S3Content` (static) — Game content as an S3 object.

  **Parameters**

  - `bucket` — The S3 bucket.
  - `key` — The object key.
  - `objectVersion` — Optional S3 ob ject version.
