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 Details

    • Builder

      public Builder()
  • Method Details

    • content

      @Stability(Experimental) public ScriptProps.Builder content(Content content)
      Sets the value of ScriptProps.getContent()
      Parameters:
      content - The game content. This parameter is required.
      Returns:
      this
    • role

      @Stability(Experimental) public ScriptProps.Builder role(IRole role)
      Sets the value of ScriptProps.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

      @Stability(Experimental) public ScriptProps.Builder scriptName(String scriptName)
      Sets the value of ScriptProps.getScriptName()
      Parameters:
      scriptName - Name of this realtime server script.
      Returns:
      this
    • scriptVersion

      @Stability(Experimental) public ScriptProps.Builder scriptVersion(String scriptVersion)
      Parameters:
      scriptVersion - Version of this realtime server script.
      Returns:
      this
    • build

      @Stability(Experimental) public ScriptProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<ScriptProps>
      Returns:
      a new instance of ScriptProps
      Throws:
      NullPointerException - if any required attribute was not provided