Resource: awsGameliftScript
Provides an GameLift Script resource.
Example Usage
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.gameliftScript.GameliftScript(this, "example", {
name: "example-script",
storageLocation: {
bucket: "${aws_s3_bucket.example.id}",
key: "${aws_s3_object.example.key}",
roleArn: "${aws_iam_role.example.arn}",
},
});
Argument Reference
The following arguments are supported:
name- (Required) Name of the scriptstorageLocation- (Optional) Information indicating where your game script files are stored. See below.version- (Optional) Version that is associated with this script.tags- (Optional) Key-value map of resource tags. If configured with a providerdefaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.zipFile- (Optional) A data object containing your Realtime scripts and dependencies as a zip file. The zip file can have one or multiple files. Maximum size of a zip file is 5 MB.
Nested Fields
storageLocation
bucket- (Required) Name of your S3 bucket.key- (Required) Name of the zip file containing your script files.roleArn- (Required) ARN of the access role that allows Amazon GameLift to access your S3 bucket.objectVersion- (Optional) A specific version of the file. If not set, the latest version of the file is retrieved.
Attributes Reference
In addition to all arguments above, the following attributes are exported:
id- GameLift Script ID.arn- GameLift Script ARN.tagsAll- A map of tags assigned to the resource, including those inherited from the providerdefaultTagsconfiguration block.
Import
GameLift Scripts can be imported using the ID, e.g.,