Skip to content
v2.277.0

Experimental

@aws-cdk/aws-gamelift-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

BuildAttributes Struct ​

Represents a Build content defined outside of this stack.

Example ​

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
# 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
// 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();
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
};
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 ​

buildArnoptionalstringbuild_arnoptionalstrbuildArnoptionalStringBuildArnoptionalstringBuildArnoptional*string #
The ARN of the build.

Default: derived from buildId.

At least one of buildArn and buildId must be provided.

buildIdoptionalstringbuild_idoptionalstrbuildIdoptionalStringBuildIdoptionalstringBuildIdoptional*string #
The identifier of the build.

Default: derived from buildArn.

At least one of buildId and buildArn must be provided.

roleoptionalIRoleroleoptionalIRoleroleoptionalIRoleRoleoptionalIRoleRoleoptionalIRole #
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.