> **Experimental**
>
> `@aws-cdk/aws-gamelift-alpha` is an [**experimental**](/stability) (alpha) package: its API may change in any release, without a major version bump.
# BuildAttributes

Represents a Build content defined outside of this stack.

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`lib/build.ts`](https://github.com/aws/aws-cdk/blob/v2.277.0/packages/@aws-cdk/aws-gamelift-alpha/lib/build.ts#L91)

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as gamelift_alpha from '@aws-cdk/aws-gamelift-alpha';
import { aws_iam as iam } from 'aws-cdk-lib';

declare const role: iam.Role;
const buildAttributes: gamelift_alpha.BuildAttributes = {
  buildArn: 'buildArn',
  buildId: 'buildId',
  role: role,
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_gamelift_alpha as gamelift_alpha
from aws_cdk import aws_iam as iam

# role: iam.Role

build_attributes = gamelift_alpha.BuildAttributes(
    build_arn="buildArn",
    build_id="buildId",
    role=role
)
```

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.alpha.*;
import software.amazon.awscdk.services.iam.*;

Role role;

BuildAttributes buildAttributes = BuildAttributes.builder()
        .buildArn("buildArn")
        .buildId("buildId")
        .role(role)
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.AWS.GameLift.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.GameLift.Alpha;
using Amazon.CDK.AWS.IAM;

Role role;

var buildAttributes = new BuildAttributes {
    BuildArn = "buildArn",
    BuildId = "buildId",
    Role = role
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdkgameliftalpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import gamelift_alpha "github.com/aws/aws-cdk-go/awscdkgameliftalpha"
import "github.com/aws/aws-cdk-go/awscdk"

var role Role

buildAttributes := &BuildAttributes{
	BuildArn: jsii.String("buildArn"),
	BuildId: jsii.String("buildId"),
	Role: role,
}
```

## Properties

- `buildArn`: string — The ARN of the build.

  **Default:** derived from `buildId`.

  At least one of `buildArn` and `buildId` must be provided.

- `buildId`: string — The identifier of the build.

  **Default:** derived from `buildArn`.

  At least one of `buildId` and `buildArn`  must be provided.

- `role`: [IRole](/cdk/api/v2/docs/aws-cdk-lib.aws_iam.IRole.html) — The IAM role assumed by GameLift to access server build in S3.

  **Default:** the imported fleet cannot be granted access to other resources as an `iam.IGrantable`.
