StorageLocationProperty Struct
The location in Amazon S3 where build or script files are 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 storageLocationProperty: gamelift.CfnBuild.StorageLocationProperty = {
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
storage_location_property = gamelift.CfnBuild.StorageLocationProperty(
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.*;
StorageLocationProperty storageLocationProperty = StorageLocationProperty.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 storageLocationProperty = new StorageLocationProperty {
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"
storageLocationProperty := &StorageLocationProperty{
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. The name of the S3 bucket.
Amazon GameLift 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 #A version of a stored file to retrieve, if the object versioning feature is turned on for the S3 bucket.
Use this parameter to specify a specific version. If this parameter isn't set, Amazon GameLift Servers retrieves the latest version of the file.
The ARNfor an IAM role that allows Amazon GameLift to access the S3 bucket.