Class Script
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.gamelift.alpha.ScriptBase
software.amazon.awscdk.services.gamelift.alpha.Script
- All Implemented Interfaces:
IResource,IScript,IGrantable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:50.037Z")
@Stability(Experimental)
public class Script
extends ScriptBase
(experimental) A GameLift script, that is installed and runs on instances in an Amazon GameLift fleet.
It consists of a zip file with all of the components of the realtime game server script.
Example:
Bucket bucket;
Script.Builder.create(this, "Script")
.content(Content.fromBucket(bucket, "sample-asset-key"))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.gamelift.alpha.IScript
IScript.Jsii$Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String(experimental) Uniquely identifies this class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedScript(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedScript(software.amazon.jsii.JsiiObjectRef objRef) Script(software.constructs.Construct scope, String id, ScriptProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic Script(experimental) Create a new realtime server script from asset content.static ScriptfromAsset(software.constructs.Construct scope, String id, String path, AssetOptions options) (experimental) Create a new realtime server script from asset content.static ScriptfromBucket(software.constructs.Construct scope, String id, IBucket bucket, String key) (experimental) Create a new realtime server script from s3 content.static ScriptfromBucket(software.constructs.Construct scope, String id, IBucket bucket, String key, String objectVersion) (experimental) Create a new realtime server script from s3 content.static IScriptfromScriptArn(software.constructs.Construct scope, String id, String scriptArn) (experimental) Import a script into CDK using its ARN.static IScriptfromScriptAttributes(software.constructs.Construct scope, String id, ScriptAttributes attrs) (experimental) Import an existing realtime server script from its attributes.(experimental) The principal this GameLift script is using.getRole()(experimental) The IAM role GameLift assumes to acccess server script content.(experimental) The ARN of the realtime server script.(experimental) The Identifier of the realtime server script.Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourceMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
PROPERTY_INJECTION_ID
(experimental) Uniquely identifies this class.
-
-
Constructor Details
-
Script
protected Script(software.amazon.jsii.JsiiObjectRef objRef) -
Script
protected Script(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
Script
@Stability(Experimental) public Script(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull ScriptProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props- This parameter is required.
-
-
Method Details
-
fromAsset
@Stability(Experimental) @NotNull public static Script fromAsset(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String path, @Nullable AssetOptions options) (experimental) Create a new realtime server script from asset content.- Parameters:
scope- This parameter is required.id- This parameter is required.path- This parameter is required.options-
-
fromAsset
@Stability(Experimental) @NotNull public static Script fromAsset(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String path) (experimental) Create a new realtime server script from asset content.- Parameters:
scope- This parameter is required.id- This parameter is required.path- This parameter is required.
-
fromBucket
@Stability(Experimental) @NotNull public static Script fromBucket(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull IBucket bucket, @NotNull String key, @Nullable String objectVersion) (experimental) Create a new realtime server script from s3 content.- Parameters:
scope- This parameter is required.id- This parameter is required.bucket- This parameter is required.key- This parameter is required.objectVersion-
-
fromBucket
@Stability(Experimental) @NotNull public static Script fromBucket(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull IBucket bucket, @NotNull String key) (experimental) Create a new realtime server script from s3 content.- Parameters:
scope- This parameter is required.id- This parameter is required.bucket- This parameter is required.key- This parameter is required.
-
fromScriptArn
@Stability(Experimental) @NotNull public static IScript fromScriptArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String scriptArn) (experimental) Import a script into CDK using its ARN.- Parameters:
scope- This parameter is required.id- This parameter is required.scriptArn- This parameter is required.
-
fromScriptAttributes
@Stability(Experimental) @NotNull public static IScript fromScriptAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull ScriptAttributes attrs) (experimental) Import an existing realtime server script from its attributes.- Parameters:
scope- This parameter is required.id- This parameter is required.attrs- This parameter is required.
-
getGrantPrincipal
(experimental) The principal this GameLift script is using.- Specified by:
getGrantPrincipalin interfaceIGrantable- Specified by:
getGrantPrincipalin classScriptBase
-
getRole
(experimental) The IAM role GameLift assumes to acccess server script content. -
getScriptArn
(experimental) The ARN of the realtime server script.- Specified by:
getScriptArnin interfaceIScript- Specified by:
getScriptArnin classScriptBase
-
getScriptId
(experimental) The Identifier of the realtime server script.- Specified by:
getScriptIdin interfaceIScript- Specified by:
getScriptIdin classScriptBase
-