Class Script.Builder
java.lang.Object
software.amazon.awscdk.services.gamelift.alpha.Script.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<Script>
- Enclosing class:
Script
@Stability(Experimental)
public static final class Script.Builder
extends Object
implements software.amazon.jsii.Builder<Script>
(experimental) A fluent builder for
Script
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
(experimental) The game content.static Script.Builder
(experimental) The IAM role assumed by GameLift to access server script in S3.scriptName
(String scriptName) (experimental) Name of this realtime server script.scriptVersion
(String scriptVersion) (experimental) Version of this realtime server script.
-
Method Details
-
create
@Stability(Experimental) public static Script.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
Script.Builder
.
-
content
(experimental) The game content.- Parameters:
content
- The game content. This parameter is required.- Returns:
this
-
role
(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.
- Parameters:
role
- The IAM role assumed by GameLift to access server script in S3. This parameter is required.- Returns:
this
- See Also:
-
scriptName
(experimental) Name of this realtime server script.Default: No name
- Parameters:
scriptName
- Name of this realtime server script. This parameter is required.- Returns:
this
-
scriptVersion
(experimental) Version of this realtime server script.Default: No version
- Parameters:
scriptVersion
- Version of this realtime server script. This parameter is required.- Returns:
this
-
build
-