Show / Hide Table of Contents

Class ScriptProps

(experimental) Properties for a new realtime server script.

Inheritance
object
ScriptProps
Implements
IScriptProps
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.GameLift.Alpha
Assembly: Amazon.CDK.AWS.GameLift.Alpha.dll
Syntax (csharp)
public class ScriptProps : IScriptProps
Syntax (vb)
Public Class ScriptProps 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()

(experimental) Properties for a new realtime server script.

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()

(experimental) Properties for a new realtime server script.

public ScriptProps()
Remarks

Stability: Experimental

ExampleMetadata: infused

Examples
Bucket bucket;

             new Script(this, "Script", new ScriptProps {
                 Content = Content.FromBucket(bucket, "sample-asset-key")
             });

Properties

Content

(experimental) The game content.

public Content Content { get; set; }
Property Value

Content

Remarks

Stability: Experimental

Role

(experimental) The IAM role assumed by GameLift to access server script in S3.

public IRole? Role { get; set; }
Property Value

IRole

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

See: https://docs.aws.amazon.com/gamelift/latest/developerguide/security_iam_id-based-policy-examples.html#security_iam_id-based-policy-examples-access-storage-loc

ScriptName

(experimental) Name of this realtime server script.

public string? ScriptName { get; set; }
Property Value

string

Remarks

Default: No name

Stability: Experimental

ScriptVersion

(experimental) Version of this realtime server script.

public string? ScriptVersion { get; set; }
Property Value

string

Remarks

Default: No version

Stability: Experimental

Implements

IScriptProps
Back to top Generated by DocFX