S3LocationProperty Struct
The location in Amazon S3 where build or script files can be stored for access by Amazon GameLift.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_gamelift as gamelift } from 'aws-cdk-lib';
const s3LocationProperty: gamelift.CfnScript.S3LocationProperty = {
bucket: 'bucket',
key: 'key',
roleArn: 'roleArn',
// the properties below are optional
objectVersion: 'objectVersion',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_gamelift as gamelift
s3_location_property = gamelift.CfnScript.S3LocationProperty(
bucket="bucket",
key="key",
role_arn="roleArn",
# the properties below are optional
object_version="objectVersion"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.gamelift.*;
S3LocationProperty s3LocationProperty = S3LocationProperty.builder()
.bucket("bucket")
.key("key")
.roleArn("roleArn")
// the properties below are optional
.objectVersion("objectVersion")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.GameLift;
var s3LocationProperty = new S3LocationProperty {
Bucket = "bucket",
Key = "key",
RoleArn = "roleArn",
// the properties below are optional
ObjectVersion = "objectVersion"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
s3LocationProperty := &S3LocationProperty{
Bucket: jsii.String("bucket"),
Key: jsii.String("key"),
RoleArn: jsii.String("roleArn"),
// the properties below are optional
ObjectVersion: jsii.String("objectVersion"),
}
Properties
An Amazon S3 bucket identifier. Thename of the S3 bucket.
Amazon GameLift Servers doesn't support uploading from Amazon S3 buckets with names that contain a dot (.).
The name of the zip file that contains the build files or script files.
objectVersionoptionalstringobject_versionoptionalstrobjectVersionoptionalStringObjectVersionoptionalstringObjectVersionoptional*string #The version of the file, if object versioning is turned on for the bucket.
Amazon GameLift Servers uses this information when retrieving files from an S3 bucket that you own. Use this parameter to specify a specific version of the file. If not set, the latest version of the file is retrieved.