Class Build
(experimental) A GameLift build, that is installed and runs on instances in an Amazon GameLift fleet.
Inherited Members
Namespace: Amazon.CDK.AWS.GameLift.Alpha
Assembly: Amazon.CDK.AWS.GameLift.Alpha.dll
Syntax (csharp)
public class Build : BuildBase, IBuild, IResource, IGrantable
Syntax (vb)
Public Class Build
Inherits BuildBase
Implements IBuild, IResource, IGrantable
Remarks
It consists of a zip file with all of the components of the game server build.
Stability: Experimental
See: https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-build-cli-uploading.html
Resource: AWS::GameLift::Build
ExampleMetadata: infused
Examples
Bucket bucket;
var build = new Build(this, "Build", new BuildProps {
Content = Content.FromBucket(bucket, "sample-asset-key")
});
new CfnOutput(this, "BuildArn", new CfnOutputProps { Value = build.BuildArn });
new CfnOutput(this, "BuildId", new CfnOutputProps { Value = build.BuildId });
Synopsis
Constructors
Build(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Build(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Build(Construct, String, IBuildProps) |
Properties
BuildArn | (experimental) The ARN of the build. |
BuildId | (experimental) The Identifier of the build. |
GrantPrincipal | (experimental) The principal this GameLift Build is using. |
Role | (experimental) The IAM role GameLift assumes to acccess server build content. |
Methods
FromAsset(Construct, String, String, IAssetOptions) | (experimental) Create a new Build from asset content. |
FromBucket(Construct, String, IBucket, String, String) | (experimental) Create a new Build from s3 content. |
FromBuildArn(Construct, String, String) | (experimental) Import a build into CDK using its ARN. |
FromBuildAttributes(Construct, String, IBuildAttributes) | (experimental) Import an existing build from its attributes. |
FromBuildId(Construct, String, String) | (experimental) Import a build into CDK using its identifier. |
Constructors
Build(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected Build(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
Build(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected Build(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Build(Construct, String, IBuildProps)
public Build(Construct scope, string id, IBuildProps props)
Parameters
- scope Constructs.Construct
- id System.String
- props IBuildProps
Remarks
Stability: Experimental
Properties
BuildArn
(experimental) The ARN of the build.
public override string BuildArn { get; }
Property Value
System.String
Overrides
Remarks
Stability: Experimental
BuildId
(experimental) The Identifier of the build.
public override string BuildId { get; }
Property Value
System.String
Overrides
Remarks
Stability: Experimental
GrantPrincipal
(experimental) The principal this GameLift Build is using.
public override IPrincipal GrantPrincipal { get; }
Property Value
Overrides
Remarks
Stability: Experimental
Role
(experimental) The IAM role GameLift assumes to acccess server build content.
public virtual IRole Role { get; }
Property Value
Remarks
Stability: Experimental
Methods
FromAsset(Construct, String, String, IAssetOptions)
(experimental) Create a new Build from asset content.
public static Build FromAsset(Construct scope, string id, string path, IAssetOptions options = null)
Parameters
- scope Constructs.Construct
- id System.String
- path System.String
- options IAssetOptions
Returns
Remarks
Stability: Experimental
FromBucket(Construct, String, IBucket, String, String)
(experimental) Create a new Build from s3 content.
public static Build FromBucket(Construct scope, string id, IBucket bucket, string key, string objectVersion = null)
Parameters
- scope Constructs.Construct
- id System.String
- bucket IBucket
- key System.String
- objectVersion System.String
Returns
Remarks
Stability: Experimental
FromBuildArn(Construct, String, String)
(experimental) Import a build into CDK using its ARN.
public static IBuild FromBuildArn(Construct scope, string id, string buildArn)
Parameters
- scope Constructs.Construct
- id System.String
- buildArn System.String
Returns
Remarks
Stability: Experimental
FromBuildAttributes(Construct, String, IBuildAttributes)
(experimental) Import an existing build from its attributes.
public static IBuild FromBuildAttributes(Construct scope, string id, IBuildAttributes attrs)
Parameters
- scope Constructs.Construct
- id System.String
- attrs IBuildAttributes
Returns
Remarks
Stability: Experimental
FromBuildId(Construct, String, String)
(experimental) Import a build into CDK using its identifier.
public static IBuild FromBuildId(Construct scope, string id, string buildId)
Parameters
- scope Constructs.Construct
- id System.String
- buildId System.String
Returns
Remarks
Stability: Experimental