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