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 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

      @Stability(Experimental) public Script.Builder content(Content content)
      (experimental) The game content.

      Parameters:
      content - The game content. This parameter is required.
      Returns:
      this
    • role

      @Stability(Experimental) public Script.Builder role(IRole 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

      @Stability(Experimental) public Script.Builder scriptName(String 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

      @Stability(Experimental) public Script.Builder scriptVersion(String 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

      @Stability(Experimental) public Script build()
      Specified by:
      build in interface software.amazon.jsii.Builder<Script>
      Returns:
      a newly built instance of Script.