Class CfnScriptMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.gamelift.CfnScriptMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnScriptMixinProps>
- Enclosing interface:
CfnScriptMixinProps
@Stability(Stable)
public static final class CfnScriptMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnScriptMixinProps>
A builder for
CfnScriptMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnScriptMixinProps.getName()nodeJsVersion(String nodeJsVersion) Sets the value ofCfnScriptMixinProps.getNodeJsVersion()storageLocation(CfnScriptPropsMixin.S3LocationProperty storageLocation) Sets the value ofCfnScriptMixinProps.getStorageLocation()storageLocation(IResolvable storageLocation) Sets the value ofCfnScriptMixinProps.getStorageLocation()Sets the value ofCfnScriptMixinProps.getTags()Sets the value ofCfnScriptMixinProps.getVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnScriptMixinProps.getName()- Parameters:
name- A descriptive label that is associated with a script. Script names do not need to be unique.- Returns:
this
-
nodeJsVersion
Sets the value ofCfnScriptMixinProps.getNodeJsVersion()- Parameters:
nodeJsVersion- The Node.js version used for execution of the Realtime script.- Returns:
this
-
storageLocation
Sets the value ofCfnScriptMixinProps.getStorageLocation()- Parameters:
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 Servers 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 Servers uploads the latest version of the zip file; if you have S3 object versioning turned on, you can use theObjectVersionparameter to specify an earlier version.- Returns:
this
-
storageLocation
@Stability(Stable) public CfnScriptMixinProps.Builder storageLocation(CfnScriptPropsMixin.S3LocationProperty storageLocation) Sets the value ofCfnScriptMixinProps.getStorageLocation()- Parameters:
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 Servers 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 Servers uploads the latest version of the zip file; if you have S3 object versioning turned on, you can use theObjectVersionparameter to specify an earlier version.- Returns:
this
-
tags
Sets the value ofCfnScriptMixinProps.getTags()- Parameters:
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.- Returns:
this
-
version
Sets the value ofCfnScriptMixinProps.getVersion()- Parameters:
version- The version that is associated with a build or script. Version strings do not need to be unique.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnScriptMixinProps>- Returns:
- a new instance of
CfnScriptMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-