Class Build.Builder

java.lang.Object
software.amazon.awscdk.services.gamelift.alpha.Build.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<Build>
Enclosing class:
Build

@Stability(Experimental) public static final class Build.Builder extends Object implements software.amazon.jsii.Builder<Build>
(experimental) A fluent builder for Build.
  • Method Details

    • create

      @Stability(Experimental) public static Build.Builder create(software.constructs.Construct scope, String id)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      Returns:
      a new instance of Build.Builder.
    • content

      @Stability(Experimental) public Build.Builder content(Content content)
      (experimental) The game build file storage.

      Parameters:
      content - The game build file storage. This parameter is required.
      Returns:
      this
    • buildName

      @Stability(Experimental) public Build.Builder buildName(String buildName)
      (experimental) Name of this build.

      Default: No name

      Parameters:
      buildName - Name of this build. This parameter is required.
      Returns:
      this
    • buildVersion

      @Stability(Experimental) public Build.Builder buildVersion(String buildVersion)
      (experimental) Version of this build.

      Default: No version

      Parameters:
      buildVersion - Version of this build. This parameter is required.
      Returns:
      this
    • operatingSystem

      @Stability(Experimental) public Build.Builder operatingSystem(OperatingSystem operatingSystem)
      (experimental) The operating system that the game server binaries are built to run on.

      Default: No version

      Parameters:
      operatingSystem - The operating system that the game server binaries are built to run on. This parameter is required.
      Returns:
      this
    • role

      @Stability(Experimental) public Build.Builder role(IRole role)
      (experimental) The IAM role assumed by GameLift to access server build 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 build in S3. This parameter is required.
      Returns:
      this
      See Also:
    • serverSdkVersion

      @Stability(Experimental) public Build.Builder serverSdkVersion(String serverSdkVersion)
      (experimental) A server SDK version you used when integrating your game server build with Amazon GameLift.

      Default: - 4.0.2

      Parameters:
      serverSdkVersion - A server SDK version you used when integrating your game server build with Amazon GameLift. This parameter is required.
      Returns:
      this
      See Also:
    • build

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