Show / Hide Table of Contents

Class Content

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

Inheritance
object
Content
AssetContent
S3Content
Namespace: Amazon.CDK.AWS.GameLift.Alpha
Assembly: Amazon.CDK.AWS.GameLift.Alpha.dll
Syntax (csharp)
public abstract class Content : DeputyBase
Syntax (vb)
Public MustInherit Class Content Inherits DeputyBase
Remarks

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

Stability: Experimental

ExampleMetadata: infused

Examples
Bucket bucket;

             var build = new Build(this, "Build", new BuildProps {
                 Content = Content.FromBucket(bucket, "sample-asset-key"),
                 ServerSdkVersion = "5.0.0"
             });

Synopsis

Constructors

Content()

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

Methods

Bind(Construct, IRole)

(experimental) Called when the Build is initialized to allow this object to bind.

FromAsset(string, IAssetOptions?)

(experimental) Loads the game content from a local disk path.

FromBucket(IBucket, string, string?)

(experimental) Game content as an S3 object.

Constructors

Content()

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

protected Content()
Remarks

Stability: Experimental

Methods

Bind(Construct, IRole)

(experimental) Called when the Build is initialized to allow this object to bind.

public abstract IContentConfig Bind(Construct scope, IRole role)
Parameters
scope Construct
role IRole
Returns

IContentConfig

Remarks

Stability: Experimental

FromAsset(string, IAssetOptions?)

(experimental) Loads the game content from a local disk path.

public static AssetContent FromAsset(string path, IAssetOptions? options = null)
Parameters
path string

Either a directory with the game content bundle or a .zip file.

options IAssetOptions

Either a directory with the game content bundle or a .zip file.

Returns

AssetContent

Remarks

Stability: Experimental

FromBucket(IBucket, string, string?)

(experimental) Game content as an S3 object.

public static S3Content FromBucket(IBucket bucket, string key, string? objectVersion = null)
Parameters
bucket IBucket

The S3 bucket.

key string

The object key.

objectVersion string

Optional S3 ob ject version.

Returns

S3Content

Remarks

Stability: Experimental

Back to top Generated by DocFX