Class ScriptProps.Builder
java.lang.Object
software.amazon.awscdk.services.gamelift.alpha.ScriptProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ScriptProps>
- Enclosing interface:
ScriptProps
@Stability(Experimental)
public static final class ScriptProps.Builder
extends Object
implements software.amazon.jsii.Builder<ScriptProps>
A builder for
ScriptProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofScriptProps.getContent()
Sets the value ofScriptProps.getRole()
scriptName
(String scriptName) Sets the value ofScriptProps.getScriptName()
scriptVersion
(String scriptVersion) Sets the value ofScriptProps.getScriptVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
content
Sets the value ofScriptProps.getContent()
- Parameters:
content
- The game content. This parameter is required.- Returns:
this
-
role
Sets the value ofScriptProps.getRole()
- Parameters:
role
- 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" }] }- Returns:
this
-
scriptName
Sets the value ofScriptProps.getScriptName()
- Parameters:
scriptName
- Name of this realtime server script.- Returns:
this
-
scriptVersion
Sets the value ofScriptProps.getScriptVersion()
- Parameters:
scriptVersion
- Version of this realtime server script.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ScriptProps>
- Returns:
- a new instance of
ScriptProps
- Throws:
NullPointerException
- if any required attribute was not provided
-