Interface ScriptProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ScriptProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-25T14:21:25.782Z")
@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
-