Interface ScriptProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ScriptProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-22T02:24:11.534Z")
@Stability(Experimental)
public interface ScriptProps
extends software.amazon.jsii.JsiiSerializable
(experimental) Properties for a new realtime server script.
Example:
Bucket bucket; Script.Builder.create(this, "Script") .content(Content.fromBucket(bucket, "sample-asset-key")) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forScriptProps
static final class
An implementation forScriptProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic ScriptProps.Builder
builder()
(experimental) The game content.default IRole
getRole()
(experimental) The IAM role assumed by GameLift to access server script in S3.default String
(experimental) Name of this realtime server script.default String
(experimental) Version of this realtime server script.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getContent
(experimental) The game content. -
getRole
(experimental) The IAM role assumed by GameLift to access server script in S3.If providing a custom role, it needs to trust the GameLift service principal (gamelift.amazonaws.com) and be granted sufficient permissions to have Read access to a specific key content into a specific S3 bucket. Below an example of required permission: { "Version": "2012-10-17", "Statement": [{ "Effect": "Allow", "Action": [ "s3:GetObject", "s3:GetObjectVersion" ], "Resource": "arn:aws:s3:::bucket-name/object-name" }] }
Default: - a role will be created with default permissions.
- See Also:
-
getScriptName
(experimental) Name of this realtime server script.Default: No name
-
getScriptVersion
(experimental) Version of this realtime server script.Default: No version
-
builder
- Returns:
- a
ScriptProps.Builder
ofScriptProps
-