public static final class CfnScriptProps.Builder
extends java.lang.Object
CfnScriptProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnScriptProps |
build()
Builds the configured instance.
|
CfnScriptProps.Builder |
name(java.lang.String name)
Sets the value of
CfnScriptProps.getName() |
CfnScriptProps.Builder |
storageLocation(CfnScript.S3LocationProperty storageLocation)
Sets the value of
CfnScriptProps.getStorageLocation() |
CfnScriptProps.Builder |
storageLocation(IResolvable storageLocation)
Sets the value of
CfnScriptProps.getStorageLocation() |
CfnScriptProps.Builder |
tags(java.util.List<? extends CfnTag> tags)
Sets the value of
CfnScriptProps.getTags() |
CfnScriptProps.Builder |
version(java.lang.String version)
Sets the value of
CfnScriptProps.getVersion() |
public CfnScriptProps.Builder storageLocation(IResolvable storageLocation)
CfnScriptProps.getStorageLocation()
storageLocation
- The location of the Amazon S3 bucket where a zipped file containing your Realtime scripts is stored. This parameter is required.
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.this
public CfnScriptProps.Builder storageLocation(CfnScript.S3LocationProperty storageLocation)
CfnScriptProps.getStorageLocation()
storageLocation
- The location of the Amazon S3 bucket where a zipped file containing your Realtime scripts is stored. This parameter is required.
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.this
public CfnScriptProps.Builder name(java.lang.String name)
CfnScriptProps.getName()
name
- A descriptive label that is associated with a script.
Script names do not need to be unique.this
public CfnScriptProps.Builder tags(java.util.List<? extends CfnTag> tags)
CfnScriptProps.getTags()
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.this
public CfnScriptProps.Builder version(java.lang.String version)
CfnScriptProps.getVersion()
version
- The version that is associated with a build or script.
Version strings do not need to be unique.this
public CfnScriptProps build()
CfnScriptProps
java.lang.NullPointerException
- if any required attribute was not provided