# StorageLocationProperty

Struct · External

The location in Amazon S3 where build or script files are stored for access by Amazon GameLift.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C#:

```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:

```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

- `bucket`: string (required) — 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 (.).

- `key`: string (required) — The name of the zip file that contains the build files or script files.

- `objectVersion`: 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.

- `roleArn`: string (required) — The ARNfor an IAM role that allows Amazon GameLift to access the S3 bucket.
