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

Game content from an S3 archive.

Extends: Content › S3Content

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

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as gamelift_alpha from '@aws-cdk/aws-gamelift-alpha';
import { aws_s3 as s3 } from 'aws-cdk-lib';

declare const bucket: s3.Bucket;
const s3Content = new gamelift_alpha.S3Content(bucket, 'key', /* all optional props */ 'objectVersion');
```

## Initializer

```ts
new S3Content(bucket: IBucket, key: string, objectVersion?: string)
```

## 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 // chainable` (static) — Game content as an S3 object.

  **Parameters**

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