Class Content
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.gamelift.alpha.Content
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
- Direct Known Subclasses:
AssetContent
,S3Content
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-25T14:21:25.727Z")
@Stability(Experimental)
public abstract class Content
extends software.amazon.jsii.JsiiObject
(experimental) 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.
Example:
Bucket bucket; Build build = Build.Builder.create(this, "Build") .content(Content.fromBucket(bucket, "sample-asset-key")) .serverSdkVersion("5.0.0") .build();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract ContentConfig
(experimental) Called when the Build is initialized to allow this object to bind.static AssetContent
(experimental) Loads the game content from a local disk path.static AssetContent
fromAsset
(String path, AssetOptions options) (experimental) Loads the game content from a local disk path.static S3Content
fromBucket
(IBucket bucket, String key) (experimental) Game content as an S3 object.static S3Content
fromBucket
(IBucket bucket, String key, String objectVersion) (experimental) Game content as an S3 object.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
Content
protected Content(software.amazon.jsii.JsiiObjectRef objRef) -
Content
protected Content(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
Content
@Stability(Experimental) protected Content()
-
-
Method Details
-
fromAsset
@Stability(Experimental) @NotNull public static AssetContent fromAsset(@NotNull String path, @Nullable AssetOptions options) (experimental) Loads the game content from a local disk path.- Parameters:
path
- Either a directory with the game content bundle or a .zip file. This parameter is required.options
-
-
fromAsset
(experimental) Loads the game content from a local disk path.- Parameters:
path
- Either a directory with the game content bundle or a .zip file. This parameter is required.
-
fromBucket
@Stability(Experimental) @NotNull public static S3Content fromBucket(@NotNull IBucket bucket, @NotNull String key, @Nullable String objectVersion) (experimental) Game content as an S3 object.- Parameters:
bucket
- The S3 bucket. This parameter is required.key
- The object key. This parameter is required.objectVersion
- Optional S3 ob ject version.
-
fromBucket
@Stability(Experimental) @NotNull public static S3Content fromBucket(@NotNull IBucket bucket, @NotNull String key) (experimental) Game content as an S3 object.- Parameters:
bucket
- The S3 bucket. This parameter is required.key
- The object key. This parameter is required.
-
bind
@Stability(Experimental) @NotNull public abstract ContentConfig bind(@NotNull software.constructs.Construct scope, @NotNull IRole role) (experimental) Called when the Build is initialized to allow this object to bind.- Parameters:
scope
- This parameter is required.role
- This parameter is required.
-