Class CfnScript.Builder

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

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

    • create

      @Stability(Stable) public static CfnScript.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnScript.Builder.
    • storageLocation

      @Stability(Stable) public CfnScript.Builder storageLocation(IResolvable storageLocation)
      The location of the Amazon S3 bucket where a zipped file containing your Realtime scripts is stored.

      The storage location must specify the Amazon S3 bucket name, the zip file name (the "key"), and a role ARN that allows Amazon GameLift to access the Amazon S3 storage location. The S3 bucket must be in the same Region where you want to create a new script. By default, Amazon GameLift uploads the latest version of the zip file; if you have S3 object versioning turned on, you can use the ObjectVersion parameter to specify an earlier version.

      Parameters:
      storageLocation - The location of the Amazon S3 bucket where a zipped file containing your Realtime scripts is stored. This parameter is required.
      Returns:
      this
    • storageLocation

      @Stability(Stable) public CfnScript.Builder storageLocation(CfnScript.S3LocationProperty storageLocation)
      The location of the Amazon S3 bucket where a zipped file containing your Realtime scripts is stored.

      The storage location must specify the Amazon S3 bucket name, the zip file name (the "key"), and a role ARN that allows Amazon GameLift to access the Amazon S3 storage location. The S3 bucket must be in the same Region where you want to create a new script. By default, Amazon GameLift uploads the latest version of the zip file; if you have S3 object versioning turned on, you can use the ObjectVersion parameter to specify an earlier version.

      Parameters:
      storageLocation - The location of the Amazon S3 bucket where a zipped file containing your Realtime scripts is stored. This parameter is required.
      Returns:
      this
    • name

      @Stability(Stable) public CfnScript.Builder name(String name)
      A descriptive label that is associated with a script.

      Script names do not need to be unique.

      Parameters:
      name - A descriptive label that is associated with a script. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnScript.Builder tags(List<? extends CfnTag> tags)
      A list of labels to assign to the new script resource.

      Tags are developer-defined key-value pairs. Tagging AWS resources are useful for resource management, access management and cost allocation. For more information, see Tagging AWS Resources in the AWS General Reference . Once the resource is created, you can use TagResource, UntagResource, and ListTagsForResource to add, remove, and view tags. The maximum tag limit may be lower than stated. See the AWS General Reference for actual tagging limits.

      Parameters:
      tags - A list of labels to assign to the new script resource. This parameter is required.
      Returns:
      this
    • version

      @Stability(Stable) public CfnScript.Builder version(String version)
      The version that is associated with a build or script.

      Version strings do not need to be unique.

      Parameters:
      version - The version that is associated with a build or script. This parameter is required.
      Returns:
      this
    • build

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