@aws-cdk_aws-gamelift-alpha.ScriptProps

interface ScriptProps ๐Ÿ”น

LanguageType name
.NETAmazon.CDK.AWS.GameLift.Alpha.ScriptProps
Gogithub.com/aws/aws-cdk-go/awscdkgameliftalpha/v2#ScriptProps
Javasoftware.amazon.awscdk.services.gamelift.alpha.ScriptProps
Pythonaws_cdk.aws_gamelift_alpha.ScriptProps
TypeScript (source)@aws-cdk/aws-gamelift-alpha ยป ScriptProps

Properties for a new realtime server script.

Example

declare const bucket: s3.Bucket;
new gamelift.Script(this, 'Script', {
  content: gamelift.Content.fromBucket(bucket, "sample-asset-key")
});

Properties

NameTypeDescription
content๐Ÿ”นContentThe game content.
role?๐Ÿ”นIRoleThe IAM role assumed by GameLift to access server script in S3.
scriptName?๐Ÿ”นstringName of this realtime server script.
scriptVersion?๐Ÿ”นstringVersion of this realtime server script.

content๐Ÿ”น

Type: Content

The game content.


role?๐Ÿ”น

Type: IRole (optional, default: a role will be created with default permissions.)

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

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" }] }

See also: 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?๐Ÿ”น

Type: string (optional, default: No name)

Name of this realtime server script.


scriptVersion?๐Ÿ”น

Type: string (optional, default: No version)

Version of this realtime server script.