Class ScriptProps
(experimental) Properties for a new realtime server script.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.GameLift.Alpha
Assembly: Amazon.CDK.AWS.GameLift.Alpha.dll
Syntax (csharp)
public class ScriptProps : Object, IScriptProps
Syntax (vb)
Public Class ScriptProps
Inherits Object
Implements IScriptProps
Remarks
Stability: Experimental
ExampleMetadata: infused
Examples
Bucket bucket;
new Script(this, "Script", new ScriptProps {
Content = Content.FromBucket(bucket, "sample-asset-key")
});
Synopsis
Constructors
ScriptProps() |
Properties
Content | (experimental) The game content. |
Role | (experimental) The IAM role assumed by GameLift to access server script in S3. |
ScriptName | (experimental) Name of this realtime server script. |
ScriptVersion | (experimental) Version of this realtime server script. |
Constructors
ScriptProps()
public ScriptProps()
Properties
Content
(experimental) The game content.
public Content Content { get; set; }
Property Value
Remarks
Stability: Experimental
Role
(experimental) The IAM role assumed by GameLift to access server script in S3.
public IRole Role { get; set; }
Property Value
Remarks
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.
Stability: Experimental
ScriptName
(experimental) Name of this realtime server script.
public string ScriptName { get; set; }
Property Value
System.String
Remarks
Default: No name
Stability: Experimental
ScriptVersion
(experimental) Version of this realtime server script.
public string ScriptVersion { get; set; }
Property Value
System.String
Remarks
Default: No version
Stability: Experimental