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.
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
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
Remarks
Stability: Experimental