Values.CreateScriptOutputSourceThis API works with the following fleet types: EC2, Anywhere Creates a new script record for your Amazon GameLift Servers Realtime script. Realtime scripts are JavaScript that provide configuration settings and optional custom game logic for your game. The script is deployed when you create a Amazon GameLift Servers Realtime fleet to host your game sessions. Script logic is executed during an active game session. To create a new script record, specify a script name and provide the script file(s). The script files and all dependencies must be zipped into a single file. You can pull the zip file from either of these locations: A locally available directory. Use the ZipFile parameter for this option. An Amazon Simple Storage Service (Amazon S3) bucket under your Amazon Web Services account. Use the StorageLocation parameter for this option. You'll need to have an Identity Access Management (IAM) role that allows the Amazon GameLift Servers service to access your S3 bucket. If the call is successful, a new script record is created with a unique script ID. If the script file is provided as a local file, the file is uploaded to an Amazon GameLift Servers-owned S3 bucket and the script record's storage location reflects this location. If the script file is provided as an S3 bucket, Amazon GameLift Servers accesses the file at this storage location as needed for deployment. Learn more Amazon GameLift Servers Amazon GameLift Servers Realtime Set Up a Role for Amazon GameLift Servers Access Related actions All APIs by task
type nonrec t = {script : Script.t option;The newly created script record with a unique script ID and ARN. The new script's storage location reflects an Amazon S3 location: (1) If the script was uploaded from an S3 bucket under your account, the storage location reflects the information that was provided in the CreateScript request; (2) If the script file was uploaded from a local zip file, the storage location reflects an S3 location controls by the Amazon GameLift Servers service.
*)}type nonrec error = [ | `ConflictException of ConflictException.t| `InternalServiceException of InternalServiceException.t| `InvalidRequestException of InvalidRequestException.t| `TaggingFailedException of TaggingFailedException.t| `Unknown_operation_error of string * string option ]val error_of_json :
string ->
Yojson.Safe.t ->
[> `ConflictException of ConflictException.t
| `InternalServiceException of InternalServiceException.t
| `InvalidRequestException of InvalidRequestException.t
| `TaggingFailedException of TaggingFailedException.t
| `UnauthorizedException of UnauthorizedException.t
| `Unknown_operation_error of string * string option ]val error_of_xml :
string ->
Awso.Xml.t ->
[> `ConflictException of ConflictException.t
| `InternalServiceException of InternalServiceException.t
| `InvalidRequestException of InvalidRequestException.t
| `TaggingFailedException of TaggingFailedException.t
| `UnauthorizedException of UnauthorizedException.t
| `Unknown_operation_error of string * string option ]val to_value :
t ->
[> `Structure of
(string
* [> `Structure of
(string
* [> `Long of WholeNumberLong.t
| `String of ScriptId.t
| `Structure of
(string * [> `String of NonEmptyString.t ]) list
| `Timestamp of Timestamp.t ])
list ])
list ]